Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -10,28 +10,28 @@
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components.supportClasses
 {

-import mx.components.baseClasses.FxScrollBar;
-import mx.components.Group;
+import spark.components.supportClasses.ScrollBar;
+import spark.components.Group;
 import mx.core.ILayoutElement;
-import mx.core.IViewport;
+import spark.core.IViewport;
 import mx.core.ScrollPolicy;
-import mx.layout.LayoutBase;
-import mx.layout.LayoutElementFactory;
-import mx.components.FxScroller;
-import mx.components.baseClasses.GroupBase;
-import mx.components.Skin;
+import spark.layout.supportClasses.LayoutBase;
+import spark.layout.supportClasses.LayoutElementFactory;
+import spark.components.Scroller;
+import spark.components.supportClasses.GroupBase;
+import spark.components.supportClasses.Skin;

 [ExcludeClass]

 /**
  *  @private
  */
-internal class FxScrollerLayout extends LayoutBase
+public class ScrollerLayout extends LayoutBase
 {
-    public function FxScrollerLayout()
+    public function ScrollerLayout()
     {
         super();
     }
@@ -41,10 +41,10 @@
         return (item) ? LayoutElementFactory.getLayoutElementFor(item) : null;
     }

-    private function getScroller():FxScroller
+    private function getScroller():Scroller
     {
         var g:Skin = target as Skin;
-        return (g) ? g.fxComponent as FxScroller : null;
+        return (g) ? g.fxComponent as Scroller : null;
     }

     /**
@@ -65,7 +65,7 @@
      */
     override public function measure():void
     {
-        var scroller:FxScroller = getScroller();
+        var scroller:Scroller = getScroller();
         if (!scroller)
             return;

@@ -82,7 +82,7 @@
             measuredH = viewportElt.getPreferredBoundsHeight();
         }

-        var hsb:FxScrollBar = scroller.horizontalScrollBar;
+        var hsb:ScrollBar = scroller.horizontalScrollBar;
         var showHSB:Boolean = false;
         switch(scroller.horizontalScrollPolicy) {
             case ScrollPolicy.ON:
@@ -93,7 +93,7 @@
                 break;
         }

-        var vsb:FxScrollBar = scroller.verticalScrollBar;
+        var vsb:ScrollBar = scroller.verticalScrollBar;
         var showVSB:Boolean = false;
         switch(scroller.verticalScrollPolicy) {
            case ScrollPolicy.ON:
@@ -142,13 +142,13 @@
      */
     override public function updateDisplayList(w:Number, h:Number):void
     {
-        var scroller:FxScroller = getScroller();
+        var scroller:Scroller = getScroller();
         if (!scroller)
             return;

         var viewport:IViewport = scroller.viewport;
-        var hsb:FxScrollBar = scroller.horizontalScrollBar;
-        var vsb:FxScrollBar = scroller.verticalScrollBar;
+        var hsb:ScrollBar = scroller.horizontalScrollBar;
+        var vsb:ScrollBar = scroller.verticalScrollBar;
         var hsbElt:ILayoutElement = LayoutElementFor(hsb);
         var vsbElt:ILayoutElement = LayoutElementFor(vsb);


Transferred from the Adobe Open Source Subversion Repository

Revision: 3208
Author:   gruehle@adobe.com
Date:     2008-09-15T18:42:33.841729Z

Log Message:
-----------
More fallout from display object sharing optimizations.
* Fixed performance issue by batching up display object assignment into a single call from commitProperties()
* Make sure all display objects are correctly ordered in assignDisplayObjects()
* Always set x and y properties when a GraphicElement has its own displayObject.

Bugs: SDK-16800, and other unlogged mustella failures
Reviewer: Deepa
Checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2503,26 +2503,23 @@
         y += strokeExtents.y * 0.5;

         // Finally commit x & y property changes:
-        var doCommit:Boolean = false;
+        var changed:Boolean = false;
         if (_x != x)
         {
         	_x = x;
-        	doCommit = true;
+        	changed = true;
         }

         if (_y != y)
         {
         	_y = y;
-        	doCommit = true;
+        	changed = true;
         }

-        if (doCommit)
-        {
-        	if (displayObject)
-        		commitXY();
-        	else
-        		invalidateDisplayList();
-        }
+        if (displayObject)
+        	commitXY();
+        else if (changed)
+        	invalidateDisplayList();
     }

     /**


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2525
Author:   egeorgie@adobe.com
Date:     2008-07-18T21:22:19.726452Z

Log Message:
-----------
Fix line and path GE to take explicit width/height into account when calculating layout bounds.

Reviewed by Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -276,6 +276,7 @@
 	//----------------------------------

 	private var _height:Number = 0;
+	protected var _explicitHeight:Number;

 	[Bindable("propertyChange")]
 	[Inspectable(category="General")]
@@ -292,6 +293,7 @@

 	public function set height(value:Number):void
 	{
+		_explicitHeight = value;
 		var oldValue:Number = _height;

 		if (value != oldValue)
@@ -822,6 +824,7 @@
 	//----------------------------------

 	private var _width:Number = 0;
+	protected var _explicitWidth:Number;

 	[Bindable("propertyChange")]
 	[Inspectable(category="General")]
@@ -838,6 +841,7 @@

 	public function set width(value:Number):void
 	{
+	    _explicitWidth = value;
 		var oldValue:Number = _width;

 		if (value != oldValue)


Transferred from the Adobe Open Source Subversion Repository

Revision: 4840
Author:   egeorgie@adobe.com
Date:     2009-02-04T21:20:07.890221Z

Log Message:
-----------
Fix bug SDK-18904 Redudant APIs on UICompoennt and GraphicElement, SDK-17508 Applying a translation to a Rect causes shape to be scaled

Fix: remove layoutMatrix, layoutMatrix3D properties, add a parameter to the setLayoutMatrix, setLayoutMatrix3D methods to designate whether to trigger a layout pass after the transformation is applied.

QE Notes: None
Doc Notes: None
Bugs: SDK-18434
Reviewer: Jason
tests: checkintests, mustella flash component kit

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -259,18 +259,25 @@
         layoutFeatures.layoutY = _y;
     }

-    protected function invalidateTransform(changeInvalidatesLayering:Boolean = true,triggerLayout:Boolean = true):void
-    {
-        if(changeInvalidatesLayering)
+    protected function invalidateTransform(changeInvalidatesLayering:Boolean = true,
+                                           triggerLayout:Boolean = true):void
+    {
+        if (changeInvalidatesLayering)
             notifyElementLayerChanged();
-        if(triggerLayout)
-        {
+
+        // Make sure we apply the transform
+        if (layoutFeatures != null)
+            layoutFeatures.updatePending = true;
+
+        // If we are sharing a display object we need to redraw
+        if (!displayObject || !nextSiblingNeedsDisplayObject)
+            invalidateDisplayList();
+        else
+            invalidateProperties(); // We apply the transform in commitProperties
+
+        // Trigger a layout pass
+        if (triggerLayout)
             invalidateParentSizeAndDisplayList();
-            invalidateProperties();
-            invalidateDisplayList();
-        }
-        if(layoutFeatures != null)
-	        layoutFeatures.updatePending = true;
     }

     /**
@@ -1565,70 +1572,6 @@
         }

         _transform = value;
-    }
-
-    /**
-     *  The transform matrix that is used to calculate the component's layout relative to its siblings. This matrix
-     *  is defined by the component's 2D properties such as x, y, rotation,
-     *  scaleX, scaleY, transformX, and transformY.
-     *
This matrix is modified by the values of the offset property to determine its final, computed matrix.

-     */
-    public function get layoutMatrix():Matrix
-    {
-		// esg: _layoutFeatures keeps a single internal copy of the layoutMatrix.
-		// since this is an internal class, we don't need to worry about developers
-		// accidentally messing with this matrix, _unless_ we hand it out. Instead,
-		// we hand out a clone.
-        if(layoutFeatures != null)
-            return layoutFeatures.layoutMatrix.clone();
-        var m:Matrix = new Matrix();
-        m.translate(_x,_y);
-        return m;
-    }
-
-    /**
-     * @private
-     */
-    public function set layoutMatrix(value:Matrix):void
-    {
-        allocateLayoutFeatures();
-		var previous:Boolean = needsDisplayObject;
-	   	layoutFeatures.layoutMatrix = value;
-		invalidateTransform(previous != needsDisplayObject);
-    }
-
-    /**
-     *  The transform matrix that is used to calculate a component's layout relative to its siblings. This matrix is defined by
-     *  the component's 3D properties (which include the 2D properties such as x, y, rotation,
-     *  scaleX, scaleY, transformX, and transformY, as well as rotationX,
-     *  rotationY, scaleZ, z, and transformZ.
-     *
-     *
Most components do not have any 3D transform properties set on them.

-     *
-     *
This matrix is modified by the values of the offset property to determine its final, computed matrix.

-     */
-    public function set layoutMatrix3D(value:Matrix3D):void
-    {
-       	allocateLayoutFeatures();
-		var previous:Boolean = needsDisplayObject;
-	   	layoutFeatures.layoutMatrix3D = value;
-		invalidateTransform(previous != needsDisplayObject);
-    }
-
-    /**
-     * @private
-     */
-    public function get layoutMatrix3D():Matrix3D
-    {
-		// esg: _layoutFeatures keeps a single internal copy of the layoutMatrix.
-		// since this is an internal class, we don't need to worry about developers
-		// accidentally messing with this matrix, _unless_ we hand it out. Instead,
-		// we hand out a clone.
-        if(layoutFeatures != null)
-            return layoutFeatures.layoutMatrix3D.clone();
-        var m:Matrix3D = new Matrix3D();
-        m.appendTranslation(_x,_y,0);
-        return m;
     }

 	/**
@@ -3166,19 +3109,26 @@
      */
     public function getLayoutMatrix():Matrix
     {
-        return layoutMatrix;
-    }
-
-    /**
-     *  @inheritDoc
-     */
-    public function setLayoutMatrix(value:Matrix):void
+        // esg: _layoutFeatures keeps a single internal copy of the layoutMatrix.
+        // since this is an internal class, we don't need to worry about developers
+        // accidentally messing with this matrix, _unless_ we hand it out. Instead,
+        // we hand out a clone.
+        if(layoutFeatures != null)
+            return layoutFeatures.layoutMatrix.clone();
+        var m:Matrix = new Matrix();
+        m.translate(_x,_y);
+        return m;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function setLayoutMatrix(value:Matrix, triggerLayout:Boolean):void
     {
         allocateLayoutFeatures();
         var previous:Boolean = needsDisplayObject;
         layoutFeatures.layoutMatrix = value;
-        invalidateTransform(previous != needsDisplayObject,
-                            false /*triggerLayout*/);
+        invalidateTransform(previous != needsDisplayObject, triggerLayout);
     }

     /**
@@ -3186,20 +3136,26 @@
      */
     public function getLayoutMatrix3D():Matrix3D
     {
-        return layoutMatrix3D;
-    }
-
-    /**
-     *  @inheritDoc
-     */
-    public function setLayoutMatrix3D(value:Matrix3D):void
+        // esg: _layoutFeatures keeps a single internal copy of the layoutMatrix.
+        // since this is an internal class, we don't need to worry about developers
+        // accidentally messing with this matrix, _unless_ we hand it out. Instead,
+        // we hand out a clone.
+        if(layoutFeatures != null)
+            return layoutFeatures.layoutMatrix3D.clone();
+        var m:Matrix3D = new Matrix3D();
+        m.appendTranslation(_x,_y,0);
+        return m;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function setLayoutMatrix3D(value:Matrix3D, triggerLayout:Boolean):void
     {
         allocateLayoutFeatures();
         var previous:Boolean = needsDisplayObject;
         layoutFeatures.layoutMatrix3D = value;
-        invalidateTransform(previous != needsDisplayObject,
-                            false /*triggerLayout*/);
-		invalidateDisplayList();
+        invalidateTransform(previous != needsDisplayObject, triggerLayout);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

Reviewed by Glenn

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

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -185,7 +185,7 @@
 	protected function beginDraw(g:Graphics):void
 	{
 		if (stroke)
-			stroke.draw(g,bounds);
+			stroke.draw(g,new Rectangle(measuredX, measuredY, width, height));
 		else
 			g.lineStyle(0, 0, 0);


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

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


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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.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.transitions
 {


Removed unused imports.

Removed unused imports.

Added function getMouseDataCoordinates which returns a point of x and
y values which are the mouseX and mouseY values in data coordinates.

Tested with
Weave.root.getObject("MapTool").visualization.getMouseDataCoordinates()
and also tested with compound bar chart tool.

Change-Id: I3c94b14873b99ab8b54bf9ddcde34f85ef447ef1

--- WeaveUI/src/weave/visualization/layers/PlotLayerContainer.as
+++ WeaveUI/src/weave/visualization/layers/PlotLayerContainer.as
@@ -19,42 +19,33 @@

 package weave.visualization.layers
 {
-	import flash.events.Event;
 	import flash.geom.Point;
 	import flash.utils.Dictionary;

 	import mx.containers.Canvas;
-	import mx.events.ResizeEvent;
-	import mx.utils.ObjectUtil;

 	import weave.api.WeaveAPI;
-	import weave.api.core.ICallbackCollection;
 	import weave.api.core.ILinkableObject;
 	import weave.api.data.IQualifiedKey;
 	import weave.api.data.ISimpleGeometry;
 	import weave.api.getCallbackCollection;
-	import weave.api.getSessionState;
 	import weave.api.newLinkableChild;
 	import weave.api.primitives.IBounds2D;
 	import weave.api.registerLinkableChild;
 	import weave.api.setSessionState;
 	import weave.api.ui.IPlotLayer;
-	import weave.api.ui.IPlotterWithGeometries;
 	import weave.compiler.StandardLib;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableHashMap;
 	import weave.core.LinkableNumber;
 	import weave.core.LinkableString;
 	import weave.core.SessionManager;
-	import weave.core.StageUtils;
 	import weave.core.UIUtils;
 	import weave.primitives.Bounds2D;
-	import weave.primitives.LinkableBounds2D;
 	import weave.primitives.ZoomBounds;
 	import weave.utils.NumberUtils;
 	import weave.utils.SpatialIndex;
 	import weave.utils.ZoomUtils;
-	import weave.visualization.plotters.DynamicPlotter;

 	/**
 	 * This is a container for a list of PlotLayers
@@ -322,6 +313,12 @@
 			super.updateDisplayList(unscaledWidth, unscaledHeight);
 		}

+		/**
+		 * This function will get all the unique keys that overlap each geometry specified by
+		 * simpleGeometries.
+		 * @param simpleGeometries
+		 * @return An array of keys.
+		 */
 		public function getKeysOverlappingGeometry(simpleGeometries:Array):Array
 		{
 			var container:PlotLayerContainer = owner as PlotLayerContainer;
@@ -352,6 +349,22 @@

 			return result;
 		}
+
+		/**
+		 * Get the mouseX and mouseY properties of the container
+		 * projected into data coordinates for the container.
+		 * @return The point containing the projected mouseX and mouseY.
+		 */
+		public function getMouseDataCoordinates():Point
+		{
+			tempPoint.x = mouseX;
+			tempPoint.y = mouseY;
+			zoomBounds.getScreenBounds(tempScreenBounds);
+			zoomBounds.getDataBounds(tempDataBounds);
+			tempScreenBounds.projectPointTo(tempPoint, tempDataBounds);
+
+			return tempPoint;
+		}

 		// these variables are used to detect a change in size
 		private var _prevUnscaledWidth:Number = 0;


fixed bug: TextGlyphPlotter wasn't using the yScreenOffset value

Change-Id: I2e970cc0adc135faf40f37b3db58462d88bcdafb

--- WeaveUI/src/weave/visualization/plotters/TextGlyphPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/TextGlyphPlotter.as
@@ -106,8 +106,8 @@
 				dataBounds.projectPointTo(tempPoint, screenBounds);

 				// round to nearest pixel to get clearer text
-				bitmapText.x = Math.round(tempPoint.x+xScreenOffset.value);
-				bitmapText.y = Math.round(tempPoint.y);
+				bitmapText.x = Math.round(tempPoint.x + xScreenOffset.value);
+				bitmapText.y = Math.round(tempPoint.y + yScreenOffset.value);
 				bitmapText.text = text.getValueFromKey(recordKey, String) as String;
 				bitmapText.verticalAlign = vAlign.getValueFromKey(recordKey, String) as String;
 				bitmapText.horizontalAlign = hAlign.getValueFromKey(recordKey, String) as String;


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

--- frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.skins.halo
 {


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

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

 package mx.automation.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2878
Author:   gosmith@adobe.com
Date:     2008-08-19T01:47:49.628691Z

Log Message:
-----------
Added an ObjectUtil.getUnqualifiedClassName() utility method for use in the className getter in four classes, which previously had copy-and-paste code.

Moved the STYLE_UNINITIALIZED constant from StyleManager to StyleProtoChain, since it indicates an uninitialized style proto chain.

Reviewer: Jono
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<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/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.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/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.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/flex/graphics/graphicsClasses/TextGraphicElement.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/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
@@ -89,7 +89,7 @@
 		addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);

 		inheritingStyles = nonInheritingStyles =
-			StyleManager.STYLE_UNINITIALIZED;
+			StyleProtoChain.STYLE_UNINITIALIZED;
 	}

 	//--------------------------------------------------------------------------
@@ -325,7 +325,7 @@
         var isInheritingStyle:Boolean =
 			StyleManager.isInheritingStyle(styleProp);
         var isProtoChainInitialized:Boolean =
-			inheritingStyles != StyleManager.STYLE_UNINITIALIZED;
+			inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED;
         if (isInheritingStyle)
         {
             if (getStyle(styleProp) == newValue && isProtoChainInitialized)
@@ -527,7 +527,7 @@
         if (p)
         {
             var inheritChain:Object = p.inheritingStyles;
-            if (inheritChain == StyleManager.STYLE_UNINITIALIZED)
+            if (inheritChain == StyleProtoChain.STYLE_UNINITIALIZED)
                 inheritChain = nonInheritChain;
         }
         else


Transferred from the Adobe Open Source Subversion Repository

Revision: 20474
Author:   hmuller@adobe.com
Date:     2011-02-25T17:38:17.754344Z

Log Message:
-----------
Partial layouts, for example updates to the selection or hover indicators, now update the corresponding item renderer properties.

QE notes:
Doc notes:
Bugs: SDK-29592
Reviewer: Kevin
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayer.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/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
@@ -285,7 +285,7 @@
      *  A flag determining if this renderer should play any
      *  associated transitions when a state change occurs.
      */
-    mx_internal const playTransitions:Boolean = false;
+    mx_internal var playTransitions:Boolean = false;

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


Correcting setButtonEnabled ASDOC comments.  Better descriptions, corrected params, etc

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
@@ -550,13 +550,16 @@

     /**
-    *  Changes the enabled property of a ButtonBar's Button referencing it by the ButtonBarbutton's label.
+    *  Allows changing the enabled property of a the child ButtonBarbutton's.
+    *  It identifies the button given its label field (default) or an different optional field name may be passed.
     *
-    *
The method takes a single ButtonBarButton label, a new enabled property value, and an optional field name to search for.

-    *
myButtonBar.setButtonEnabled("My Button Label", false)

+    *
The method takes a single ButtonBarButton label, a new enabled property value, and an optional field name to use as the comparison field.

+    *

+    *  myButtonBar.setButtonEnabled("My Button Label", false)

     *
-    *  @param labelValue Is the ButtonBarButton label
-    *  @param fieldName Field used for comparing the label
+    *  @param labelValue Is the ButtonBarButton label.
+    *  @param enabledValue The buttons new enabled value.
+    *  @param fieldName Field used to compare the label value against.
     *
     *  @langversion 3.0
     *  @playerversion Flash 11.1
@@ -570,13 +573,16 @@

     /**
-    *  Disables several of a ButtonBar's Buttons, referencing them by the ButtonBarbutton's label.
+    *  Allows changing the enabled property of several child ButtonBarbutton's.
+    *  It identifies the buttons given their label fields (default) or an different optional field name may be passed.
     *
-    *
The method takes an array of ButtonBarButton labels, a new enabled property value, and an optional field name to search for.

-    *
myButtonBar.setButtonsEnabled(["My Button Label1", "My Label2"], false)

+    *
The method takes an array of ButtonBarButton labels, a new enabled property value, and an optional field name to use as the comparison field.

+    *

+    *  myButtonBar.setButtonsEnabled(["My Button Label1", "My Label2"], false)

     *
     *  @param labelValues Is an array of ButtonBarButton labels.
-    *  @param fieldName Field used for comparing the label
+    *  @param enabledValue The buttons new enabled value.
+    *  @param fieldName Field used to compare the label value against.
     *
     *  @langversion 3.0
     *  @playerversion Flash 11.1


Transferred from the Adobe Open Source Subversion Repository

Revision: 7115
Author:   jszeto@adobe.com
Date:     2009-05-20T05:39:23.225806Z

Log Message:
-----------
Changed how components are disabled

SDK-20196 Re-work disabled logic in Spark components
SDK-20197 Remove enableSkinParts() from TrackBase and Spinner

Changed the way that components, in particular, composite components, are disabled. Moved the enabled/disabled logic from SkinnableContainerBase down to SkinnableComponent. Disabled components now prevent mouse interaction with the component and its children. The skin handles the appearance of the component in the disabled state. The Spark skins currently set their alpha to .5.

Composite components like Spinner, and TrackBase no longer disabled their component skin parts.

QE Notes: None
Doc Notes: None
Bugs: SDK-20196, 20197
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/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/components/supportClasses/SkinnableContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -555,24 +555,6 @@
     }

     /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    override protected function enableSkinParts(value:Boolean):void
-    {
-        super.enableSkinParts(value);
-
-        if (decrementButton)
-            decrementButton.enabled = value;
-        if (incrementButton)
-            incrementButton.enabled = value;
-    }
-
-    /**
      *  Adds or subtracts pageSize from value.
      *  For an addition, the new value is the closest multiple of pageSize
      *  that is larger than the current value.


Removed traces

Removed traces

--- src/br/com/stimuli/string/printf.as
+++ src/br/com/stimuli/string/printf.as
@@ -80,7 +80,6 @@

                 if (padding){
                     if (padding.length == 1){
-                        trace("blah", padding );
                         paddingNum = int(padding);
                         paddingChar = " ";
                     }else{
@@ -277,7 +276,6 @@
     }
     else{
     	buf.push(str);
-    }
-    trace("str '"+ str + "'", "paddingNum", paddingNum, "char '" + paddingChar + "'", "returning '" + buf.join("") + "'");
+    }
     return buf.join("");
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2805
Author:   chaase@adobe.com
Date:     2008-08-11T20:37:18.700675Z

Log Message:
-----------
First checkin for the "Arbitrary Type Interpolation" feature. This feature has a rewritten Tween class (now named flex.effects.Animation). This class supports the old Tween capabilities, but adds functionality such as the ability to supply alternate interpolation objects (to allow animation of non-Number types), a new Easing API, and new 'repeat behavior' that will allow terser looping or reversing animations. The existing new effects were slightly changed to use the new Animation class (instead of Tween), and the superclass of the new effects, AnimateProperties (renamed 'Animate'), is now a subclass of Effect (not TweenEffect).

Added various new interpolation and easing classes, along with the new packages flex.effects.interpolation and flex.effects.easing. Also added new color-interpolation effect, 'Tint'.

Expect slight tweaks to the API during i7, but the bulk of the functionality and API changes are being checked in now.

Reviewed by Jason S.
Testing: checkintests & mustella tests/Effects (passed)

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm.mxml</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/flex/effects/effectClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Fade.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Constant.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Power.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ColorInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/TintInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/IEaser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Tint.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Move.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/AnimationEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/framework/src/mx/effects/EffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/EffectInstance.as
@@ -14,6 +14,7 @@

 import flash.events.Event;
 import flash.events.EventDispatcher;
+import flash.events.IEventDispatcher;
 import flash.events.TimerEvent;
 import flash.utils.Timer;
 import flash.utils.getQualifiedClassName;
@@ -579,7 +580,7 @@

         dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this));

-        if (target)
+        if (target && (target is IEventDispatcher))
 		{
             target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this));
 		}
@@ -650,7 +651,7 @@
         dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END,
                                      false, false, this));

-        if (target)
+        if (target && (target is IEventDispatcher))
         {
             target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END,
                                                  false, false, this));


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

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

 package mx.effects.easing
 {


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

--- frameworks/projects/framework/src/mx/logging/ILoggingTarget.as
+++ frameworks/projects/framework/src/mx/logging/ILoggingTarget.as
@@ -0,0 +1,133 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.logging
+{
+
+/**
+ *  All logger target implementations within the logging framework
+ *  must implement this interface.
+ */
+public interface ILoggingTarget
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  filters
+	//----------------------------------
+
+     /**
+     *  In addition to the level setting, filters are used to
+     *  provide a psuedo-hierarchical mapping for processing only those events
+     *  for a given category.
+     *
+     *
Each logger belongs to a category.
+     *  By convention these categories map to the fully qualified class name
+     *  in which the logger is used.
+     *  For example, a logger that is logging messages for the
+     *  mx.rpc.soap.WebService class would use
+     *  "mx.rpc.soap.WebService" as the parameter
+     *  to the Log.getLogger() call.
+     *  When messages are sent under this category only those targets that have
+     *  a filter which matches that category will receive notification of those
+     *  events.
+     *  Filter expressions may include a wildcard match, indicated with an
+     *  asterisk.
+     *  The wildcard must be the right most character in the expression.
+     *  For example: rpc~~, mx.~~, or ~~.
+     *  If an invalid expression is specified a InvalidFilterError
+     *  will be thrown.
+     *  No spaces or any of the following characters are valid within a filter
+     *  expression: []~$^&\/(){}<>+=`!#%?,:;'"@.

+     *
+     *  @example
+     *

+     *  var traceLogger:ILoggingTarget = new TraceTarget();
+     *  traceLogger.filters = [ "mx.rpc.~~", "mx.messaging.~~" ];
+     *  Log.addTarget(traceLogger);
+     *

+     */
+    function get filters():Array;
+
+    /**
+     *  @private
+     */
+    function set filters(value:Array):void;
+
+	//----------------------------------
+	//  level
+	//----------------------------------
+
+    /**
+     *  Provides access to the level this target is currently set at.
+     *  Value values are:
+     *

+     *
LogEventLevel.FATAL designates events that are very
+     *    harmful and will eventually lead to application failure

+     *
+     *
LogEventLevel.ERROR designates error events that might
+     *    still allow the application to continue running.

+     *
+     *
LogEventLevel.WARN designates events that could be
+     *    harmful to the application operation

+     *
+     *
LogEventLevel.INFO designates informational messages
+     *    that highlight the progress of the application at
+     *    coarse-grained level.

+     *
+     *
LogEventLevel.DEBUG designates informational
+     *    level messages that are fine grained and most helpful when
+     *    debugging an application.

+     *
+     *
LogEventLevel.ALL intended to force a target to
+     *    process all messages.

+     *

+     */
+    function get level():int;
+
+    /**
+     *  @private
+     */
+    function set level(value:int):void;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Sets up this target with the specified logger.
+     *  This allows this target to receive log events from the specified logger.
+     *
+     *
Note: This method is called by the framework
+     *  and should not be called by you directly.

+     *
+     *  @param logger The ILogger that this target listens to.
+     */
+    function addLogger(logger:ILogger):void;
+
+    /**
+     *  Stops this target from receiving events from the specified logger.
+     *
+     *
Note: This method is called by the framework
+     *  and should not be called by you directly.

+     *
+     *  @param logger The ILogger that this target ignores.
+     */
+    function removeLogger(logger:ILogger):void;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/logging/ILoggingTarget.as
+++ frameworks/projects/framework/src/mx/logging/ILoggingTarget.as
@@ -15,6 +15,11 @@
 /**
  *  All logger target implementations within the logging framework
  *  must implement this interface.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface ILoggingTarget
 {
@@ -58,6 +63,11 @@
      *  traceLogger.filters = [ "mx.rpc.~~", "mx.messaging.~~" ];
      *  Log.addTarget(traceLogger);
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get filters():Array;

@@ -94,6 +104,11 @@
      *
LogEventLevel.ALL intended to force a target to
      *    process all messages.

      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get level():int;

@@ -116,6 +131,11 @@
      *  and should not be called by you directly.

      *
      *  @param logger The ILogger that this target listens to.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function addLogger(logger:ILogger):void;

@@ -126,6 +146,11 @@
      *  and should not be called by you directly.

      *
      *  @param logger The ILogger that this target ignores.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function removeLogger(logger:ILogger):void;
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12682
Author:   rfrishbe@adobe.com
Date:     2009-12-09T01:24:14.258347Z

Log Message:
-----------
VideoPlayer fixes:

The first is some misplaced metadata on VideoDisplay around autoPlay.

The second is some tweaks in the skins around fullscreen mode.

QE notes: -
Doc notes: -
Bugs: SDK-24614, SDK-24615
Reviewer: Kevin
Tests run: checkintests (was seeing unexpected trace statements, but pretty sure it's not this change)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/samples/themes/graphite/src/graphite/skins/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/samples/themes/cobalt/src/cobalt/skins/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/samples/themes/zen/src/zen/skins/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/samples/themes/arcade/src/arcade/skins/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -395,9 +395,12 @@
     //  autoPlay
     //----------------------------------

+    /**
+     * @private
+     */
+    private var _autoPlay:Boolean = true;
+
     [Inspectable(category="General", defaultValue="true")]
-
-    private var _autoPlay:Boolean = true;

     /**
      *  Specifies whether the video starts playing immediately when the


added comment

added comment

--- WeaveAPI/src/weave/api/core/IStageUtils.as
+++ WeaveAPI/src/weave/api/core/IStageUtils.as
@@ -71,6 +71,7 @@
 		 *   When the task is completed, iterativeTask() should return 1.0.
 		 *   The optional parameter specifies the time when the function should return. If the function accepts the returnTime
 		 *   parameter, it will not be called repeatedly within the same frame even if it returns before the returnTime.
+		 *   It is recommended to accept the returnTime parameter because code that utilizes it properly will have higher performance.
 		 *
 		 * @example Example iteraveTask #1 (for loop replaced by if):
 		 * <listing version="3.0">


updated documentation

updated documentation

--- WeaveAPI/src/weave/api/core/IStageUtils.as
+++ WeaveAPI/src/weave/api/core/IStageUtils.as
@@ -71,7 +71,7 @@
 		 *   When the task is completed, iterativeTask() should return 1.0.
 		 *   The optional parameter specifies the time when the function should return. If the function accepts the returnTime
 		 *   parameter, it will not be called repeatedly within the same frame even if it returns before the returnTime.
-		 *   Example (for loop replaced by if):
+		 *   Example 1 (for loop replaced by if):
 		 *   <code>
 		 *       var array:Array = ['a','b','c','d'];
 		 *       var index:int = 0;
@@ -94,9 +94,11 @@
 		 *       {
 		 *           for (; index < array.length; index++)
 		 *           {
+		 *               // return time check should be at the beginning of the loop
 		 *               if (getTimer() > returnTime)
 		 *                   return index / array.length; // progress so far
 		 *
+		 *               // process the current item
 		 *               trace(array[index]);
 		 *           }
 		 *           return 1; // loop finished
@@ -112,22 +114,28 @@
 		 *       {
 		 *           for (; outerIndex < outerArray.length; outerIndex++)
 		 *           {
+		 *               // return time check can go here at the beginning of the loop, but we already have one in the inner loop
+		 *
 		 *               if (innerArray == null)
 		 *               {
 		 *                   // time to initialize inner loop
 		 *                   innerArray = outerArray[outerIndex] as Array;
 		 *                   innerIndex = 0;
+		 *                   // more code can go inside this if-block that would normally go right before the inner loop
 		 *               }
 		 *
 		 *               for (; innerIndex < innerArray.length; innerIndex++)
 		 *               {
+		 *                   // return time check should be at the beginning of the loop
 		 *                   if (getTimer() > returnTime)
 		 *                       return (outerIndex + (innerIndex / innerArray.length)) / outerArray.length; // progress so far
 		 *
+		 *                   // process the current item
 		 *                   trace('item', outerIndex, innerIndex, 'is', innerArray[innerIndex]);
 		 *               }
 		 *
 		 *               innerArray = null; // inner loop finished
+		 *               // more code can go here to be executed after the nested loop
 		 *           }
 		 *           return 1; // outer loop finished
 		 *       }


Scratch last night's change.
Having the 'value' of the element be the tooltip is too strange for me.
Discussed with mdb, decided to make everything attributes, including
a new 'name' attribute which will be shown to users in place of the
'ident', if 'name' is present.

To sum up, the XML syntax for a parameter is now (for range params):

<range ident="boardsize" minimum="4" maximum="8" start="6"
       name="Board size" tip="Sets the size of the board"/>

name and tip are both optional, so this is still compatible with
the historical Gardens xml.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@247 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/client/EZGameConfigurator.as
+++ src/as/com/threerings/ezgame/client/EZGameConfigurator.as
@@ -82,10 +82,14 @@
     protected function addXMLControl (spec :XML, control :UIComponent) :void
     {
         var ident :String = String(spec.@ident);
-        var tip :String = StringUtil.trim(String(spec.text()));
+        var name :String = String(spec.@name);
+        var tip :String = String(spec.@tip);
+        if (StringUtil.isBlank(name)) {
+            name = ident;
+        }

         var lbl :Label = new Label();
-        lbl.text = ident + ":";
+        lbl.text = name + ":";
         lbl.toolTip = tip;
         control.toolTip = tip;


Dooh, failed to save my removal of this debug statement.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@236 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/client/GameControlBackend.as
+++ src/as/com/threerings/ezgame/client/GameControlBackend.as
@@ -787,7 +787,6 @@

         } else if (EZGameObject.TICKER == name) {
             var targs :Array = event.getArgs();
-            trace("Got " + targs + " :" + targs[0] + "/" + targs[1]);
             callUserCode("messageReceived_v1", (targs[0] as String), (targs[1] as int));
         }
     }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/charts/src/mx/charts/series/renderData/PieSeriesRenderData.as
+++ frameworks/projects/charts/src/mx/charts/series/renderData/PieSeriesRenderData.as
@@ -0,0 +1,123 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts.series.renderData
+{
+
+import mx.charts.chartClasses.RenderData
+
+/**
+ *  Represents all the information needed by the PieSeries to render.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class PieSeriesRenderData extends RenderData
+{
+    include "../../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *	@param	cache	The list of PieSeriesItem objects representing the items in the dataProvider.
+	 *	@param	filteredCache	The list of PieSeriesItem objects representing the items in the dataProvider that remain after filtering.
+	 *	@param	labelScale The scale factor of the labels rendered by the PieSeries.
+	 *	@param	labelData A structure of data associated with the layout of the labels rendered by the PieSeries.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function  PieSeriesRenderData(cache:Array /* of PieSeriesItem */ = null,
+										 filteredCache:Array /* of PieSeriesItem */ = null,
+										 labelScale:Number = 1,
+										 labelData:Object = null)
+	{
+		super(cache, filteredCache);
+
+		this.labelScale = labelScale;
+		this.labelData = labelData
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  The total sum of the values represented in the pie series.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var itemSum:Number;
+
+	//----------------------------------
+	//  labelData
+    //----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  A structure of data associated with the layout of the labels rendered by the pie series.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var labelData:Object;
+
+    //----------------------------------
+	//  labelScale
+    //----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The scale factor of the labels rendered by the pie series.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var labelScale:Number;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():RenderData
+	{
+		return new PieSeriesRenderData(cache, filteredCache,
+									   labelScale, labelData);
+	}
+}
+
+}


fix wrong merge commit https://github.com/mangui/flashls/commit/533d1336dd0be7f586a0b709d67f9fcebddc46e3#diff-ea71d040ba29d01d23b9f8d40a0174b0R136

--- src/org/mangui/hls/loader/LevelLoader.as
+++ src/org/mangui/hls/loader/LevelLoader.as
@@ -155,20 +155,7 @@
             _retryTimeout = 1000;
             _retryCount = 0;
             _altAudioTracks = null;
-            _hls.dispatchEvent(new HLSEvent(HLSEvent.MANIFEST_LOADING, url));
-            _metrics = new HLSLoadMetrics(HLSLoaderTypes.MANIFEST);
-            _metrics.loading_request_time = getTimer();
-            if (DataUri.isDataUri(url)) {
-                CONFIG::LOGGING {
-                    Log.debug("Identified main manifest <" + url + "> as a data URI.");
-                }
-                _metrics.loading_begin_time = getTimer();
-                var data : String = new DataUri(url).extractData();
-                _metrics.loading_end_time = getTimer();
-                _parseManifest(data || "");
-            } else {
-                _urlloader.load(new URLRequest(url));
-            }
+            _loadManifest();
         }

         /** loading progress handler, use to determine loading latency **/


Transferred from the Adobe Open Source Subversion Repository

Revision: 22688
Author:   chiedozi@adobe.com
Date:     2011-09-22T17:56:02.534521Z

Log Message:
-----------
Use the visible property instead of setVisible() method in SplitViewNavigator.showFirstViewNavigatorInPopUp() to make sure the SHOW effect is dispatched.  This allows a navigator to be re-included in layout before showing the popup.

QE notes:
Doc notes:
Bugs: SDK-31605
Reviewer: Kevin L
Tests run: checkintests-mobile
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as
@@ -361,6 +361,9 @@
      *
If the popup is already open or the popup skin part does not exist,
      *  this method does nothing.

      *
+     *
It is recommended that this method only be used on ViewNavigators
+     *  that are currently hidden.

+     *
      *  @langversion 3.0
      *  @playerversion AIR 3
      *  @productversion Flex 4.6
@@ -432,9 +435,8 @@
         viewNavigatorPopUp.addEventListener('mouseDownOutside', navigatorPopUp_mouseDownOutsideHandler, false, 0, true);
         viewNavigatorPopUp.addElement(_popUpNavigator);

-        // Make sure the first navigator is visible and prevent the
-        // SHOW event from being dispatched.
-        _popUpNavigator.setVisible(true, true);
+        // Make sure the first navigator is visible
+        _popUpNavigator.visible = true;

         // Open the popup
         viewNavigatorPopUp.open(owner, true);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4256
Author:   egeorgie@adobe.com
Date:     2008-12-08T23:33:25.536347Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-18230 setLayoutMatrix does not apply matrix immediately to GraphicElement with more than one DisplayObject
http://bugs.adobe.com/jira/browse/SDK-18231 setLayoutMatrix does not apply immediately to BitmapGraphic

There are two problems that caused these bugs: 1 - we had an obsolete check in computeMatrix() that was returning null if the GraphicElement didn't have its display object assigned just yet. 2 - the setLayoutMatrix and setLayoutMatrix3D methods didn't invalidate properly GraphicElements that are sharing display objects.

QE Notes: None
Doc Notes: None
Bugs: SDK-18230, SDK-18231
Reviewer: Jason
tests: checkintests, mustella (layout)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2873,10 +2873,7 @@
      */
     protected function computeMatrix():Matrix
     {
-        if (!displayObject)
-            return null;
-
-        if(layoutFeatures == null)
+        if (layoutFeatures == null)
             return null;

         var m:Matrix = layoutFeatures.layoutMatrix;
@@ -3113,8 +3110,9 @@
     public function setLayoutMatrix(value:Matrix):void
     {
         allocateLayoutFeatures();
+        var previous:Boolean = needsDisplayObject;
         layoutFeatures.layoutMatrix = value;
- 	    invalidateTransform(false /*changeInvalidatesLayering*/,
+        invalidateTransform(previous != needsDisplayObject,
                             false /*triggerLayout*/);
     }

@@ -3132,8 +3130,9 @@
     public function setLayoutMatrix3D(value:Matrix3D):void
     {
         allocateLayoutFeatures();
+        var previous:Boolean = needsDisplayObject;
         layoutFeatures.layoutMatrix3D = value;
-        invalidateTransform(false /*changeInvalidatesLayering*/,
+        invalidateTransform(previous != needsDisplayObject,
                             false /*triggerLayout*/);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8723
Author:   chaase@adobe.com
Date:     2009-07-21T23:19:39.441122Z

Log Message:
-----------
Fixed 2 areas of effects bugs (playheadTime and transform effects shared instances). Also fixed bug in GraphicElement.localToGlobal(). Fixes remaining transform effects bugs prior to feature signoff.

QE Notes: None
Doc Notes: None
Bugs: SDK-22315, sdk-22304, sdk-22302, sdk-21931, sdk-21068, sdk-20179, sdk-21069
Reviewer: Hans, Jason (GraphicElement), Glenn (SharedObjectDepot)
API Change: None
Is noteworthy for integration: No
tests: checkintests mustella spark/effects,mx/effects (run locally and in cyclone by Matt)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SharedObjectDepot.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/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2530,12 +2530,15 @@
         if (!displayObject || !displayObject.parent)
             return new Point(x, y);

-        if (needsDisplayObject)
-            return displayObject.localToGlobal(point);
+        var returnVal:Point = displayObject.localToGlobal(point);
+
+        if (!needsDisplayObject)
+        {
+            // If we're sharing the displayObject, add in our offset
+            returnVal.x += drawX;
+            returnVal.y += drawY;
+        }

-        var returnVal:Point = displayObject.parent.localToGlobal(point);
-        returnVal.x += drawX;
-        returnVal.y += drawY;
         return returnVal;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6404
Author:   rfrishbe@adobe.com
Date:     2009-04-30T00:34:09.399480Z

Log Message:
-----------
Finishing up VideoPlayer/VideoElement. Added support for streaming videos and fixed a few of the bugs.  Added the skins from XD.  These still need a little tweaking, and I'll go over them with XD. For the skins, I had to add some new sub-components, like the VideoPlayerVolumeBar and VideoPlayScrubBar.

Also added 3 new events for TrackBase (thumbDrag, thumbPress, thumbRelease).  These were in Halo's Slider, and I needed them for the VideoPlayerScrubBar.

Also fixed some other bugs, like needing to call removeDynamicPartInstance() on the Slider when the dataTip is removed.  Also fixed a bug around alternatingItemsColor for ItemRenderer.

QE Notes: -
Doc Notes: -
Bugs: SDK-19486, SDK-20105, SDK-20789
Reviewer: Glenn, Jason
tests: checkintests, some mustella tests were failing, but seemed like random 1 pixel differences in DropDownList.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBarMuteButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarMuteButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/StreamItem.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarMuteButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenButtonSkin.mxml</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="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarThumbSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerMuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenFullScreenButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/swfobject/index.template.html</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -211,13 +211,13 @@
      *  @private
      *  storage for the x property. This property is used when a GraphicElement has a simple transform.
      */
-     private var _x:Number = 0;
+    private var _x:Number = 0;

     /**
      *  @private
      *  storage for the y property. This property is used when a GraphicElement has a simple transform.
      */
-     private var _y:Number = 0;
+    private var _y:Number = 0;

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


Fix SetIntervalTimer to not switch behavior of setTimout and setInterval

--- src/flash/utils/SetIntervalTimer.as
+++ src/flash/utils/SetIntervalTimer.as
@@ -28,7 +28,7 @@

     public function SetIntervalTimer(closure:Function, delay:Number, repeats:Boolean, rest:Array) {

-      super(delay, repeats ? 1 : 0);
+      super(delay, repeats ? 0 : 1);

       this.closure = closure;
       this.rest = rest;


Change `enable-autoplay' and `enable-looping' to `autoplay' and `loop'.

--- src/goplayer/ConfigurationParser.as
+++ src/goplayer/ConfigurationParser.as
@@ -9,7 +9,7 @@

     public static const VALID_PARAMETERS : Array = [
       "api", "tracker", "skin", "movie", "bitrate",
-      "enablertmp", "enableautoplay", "enablelooping",
+      "enablertmp", "autoplay", "loop",
       "enablechrome", "enabletitle" ]

     private const result : Configuration = new Configuration
@@ -32,8 +32,8 @@
       result.movieID = getString("movie", null)
       result.bitratePolicy = getBitratePolicy("bitrate", BitratePolicy.BEST)
       result.enableRTMP = getBoolean("enablertmp", true)
-      result.enableAutoplay = getBoolean("enableautoplay", false)
-      result.enableLooping = getBoolean("enablelooping", false)
+      result.enableAutoplay = getBoolean("autoplay", false)
+      result.enableLooping = getBoolean("loop", false)
       result.enableChrome = getBoolean("enablechrome", true)
       result.enableTitle = getBoolean("enabletitle", true)
     }


Use XflLibrary's symbol lookup in Preview

The texture loading from disk is gone for now

--- src/main/as/flump/export/Preview.as
+++ src/main/as/flump/export/Preview.as
@@ -5,10 +5,6 @@

 import flash.display.BitmapData;
 import flash.filesystem.File;
-
-import executor.Executor;
-import executor.load.ImageLoader;
-import executor.load.LoadedImage;

 import flump.display.Movie;
 import flump.xfl.XflLibrary;
@@ -20,60 +16,22 @@
 import starling.display.Sprite;
 import starling.textures.Texture;

-import com.threerings.util.Map;
-import com.threerings.util.Maps;
-
 import com.threerings.display.Animation;

 public class Preview extends Sprite
 {
     public function displayAnimation (base :File, lib :XflLibrary, xflMovie :XflMovie) :void {
-        loadTextures(base, lib, function (..._) :void {
-            var movie :Movie = new Movie(xflMovie, function (symbol :String) :DisplayObject {
-                const xflTex :XflTexture = _xflTextures.get(symbol);
-                const packed :PackedTexture = PackedTexture.fromTexture(xflTex, lib);
-                const image :Image = new Image(Texture.fromBitmapData(packed.toBitmapData()));
-                image.x = packed.offset.x;
-                image.y = packed.offset.y;
-                const holder :Sprite = new Sprite();
-                holder.addChild(image);
-                return holder;
-            });
-            addChild(movie);
+        var movie :Movie = new Movie(xflMovie, function (symbol :String) :DisplayObject {
+            const xflTex :XflTexture = lib.lookup(symbol);
+            const packed :PackedTexture = PackedTexture.fromTexture(xflTex, lib);
+            const image :Image = new Image(Texture.fromBitmapData(packed.toBitmapData()));
+            image.x = packed.offset.x;
+            image.y = packed.offset.y;
+            const holder :Sprite = new Sprite();
+            holder.addChild(image);
+            return holder;
         });
+        addChild(movie);
     }
-
-    public function loadTextures (base :File, lib :XflLibrary, onLoaded :Function) :void {
-        var loader :Executor = new Executor();
-        for each (var tex :XflTexture in lib.textures) {
-            if (_textures.containsKey(tex.name)) continue;
-            new ImageLoader().loadFromUrl(tex.exportPath(base).url, loader).succeeded.add(
-                textureAdder(tex));
-        }
-        loader.terminated.add(function (..._) :void { onLoaded(); });
-        loader.shutdown();
-    }
-
-    public function textureAdder (tex :XflTexture) :Function {
-        return function (img :LoadedImage) :void {
-            _xflTextures.put(tex.name, tex);
-            _textures.put(tex.name, Texture.fromBitmap(img.bitmap));
-        };
-    }
-
-    public function displayTextures (base :File, lib :XflLibrary) :void {
-        loadTextures(base, lib, function (..._) :void {
-            var x :int = 0;
-            for each (var tex :Texture in _textures.values()) {
-                var img :Image = new Image(tex);
-                img.x = x;
-                x += img.width;
-                addChild(img);
-            }
-        });
-    }
-
-    protected const _xflTextures :Map = Maps.newMapOf(String);
-    protected const _textures :Map = Maps.newMapOf(String);
 }
 }


fixed bug with column busy status

fixed bug with column busy status

--- WeaveData/src/weave/data/DataSources/AbstractDataSource.as
+++ WeaveData/src/weave/data/DataSources/AbstractDataSource.as
@@ -309,8 +309,8 @@
 			{
 				debug('requestColumnFromSource', request.columnReference.getHashCode());

-				WeaveAPI.SessionManager.unassignBusyTask(request);
 				WeaveAPI.StageUtils.callLater(request.proxyColumn, requestColumnFromSource, [request.columnReference, request.proxyColumn]);
+				WeaveAPI.StageUtils.callLater(request.proxyColumn, WeaveAPI.SessionManager.unassignBusyTask, [request]);
 				//requestColumnFromSource(request.columnReference, request.proxyColumn);
 			}
 			else


Removed unneeded import statements

Removed unneeded import statements

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@142 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare.animate/flare/animate/interpolate/ColorInterpolator.as
+++ flare.animate/flare/animate/interpolate/ColorInterpolator.as
@@ -1,7 +1,5 @@
 package flare.animate.interpolate
-{
-	import flare.util.Colors;
-
+{
 	/**
 	 * Interpolator for color (uint) values.
 	 */


Transferred from the Adobe Open Source Subversion Repository

Revision: 17425
Author:   rfrishbe@adobe.com
Date:     2010-08-20T17:29:56.448841Z

Log Message:
-----------
Pretty basic refactoring for PARB (though it is a lot of files).  Renamed GestureCaptureEvent/GestureCaptureReason (these were previously TouchScrollEvent) to TouchInteractionEvent/TouchInteractionReason.  inputMode has been renamed to interactionMode and has a new enumeration class, mx.core.InteractionMode.

There's on non-PARB change that was made was in List and mobiletheme/defaults.css. I found a bug in that the item renderer wasn't highlighting on mousedown anymore. There were two issues at play. Firstly the touchDelay was set to 100 ms in the Scroller only, so I added it to List and added a FIXME comment to myself figuring out if the code in List should use scroller.getStyle("touchDelay") or itemRenderer.getStyle("touchDelay") instead of getStyle("touchDelay"). Also, I found out that the code doesn't deal with touchDelay=0 very well. Since we're planning on working on this code anyways (and possibly moving it in to ItemRenderer itself with a new downstate), I just put in a hack with a FIXME to handle this case for now.

QE notes: None
Doc notes: None
Bugs: -
Reviewer: Jason SJ, Chiedo
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/InteractionMode.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureReason.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/defaults.css</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/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureEvent.as" copyfrom-rev="17393" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/TouchInteractionEvent.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/spark/src/spark/components/Scroller.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" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureReason.as" copyfrom-rev="17393" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/TouchInteractionReason.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>

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

--- frameworks/projects/framework/src/mx/core/InteractionMode.as
+++ frameworks/projects/framework/src/mx/core/InteractionMode.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.core
+{
+
+    /**
+     *  Values for the interactionMode property
+     *  of the UIComponent classes.
+     *
+     *  @see mx.core.Container
+     *  @see mx.core.ScrollControlBase
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public final class InteractionMode
+    {
+        include "../core/Version.as";
+
+        //--------------------------------------------------------------------------
+        //
+        //  Class constants
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  The main interaction mode for this component is through
+         *  the mouse.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const MOUSE:String = "mouse";
+
+        /**
+         *  The main interaction mode for this component is through
+         *  touch.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const TOUCH:String = "touch";
+    }
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 16386
Author:   dloverin@adobe.com
Date:     2010-06-01T23:06:27.219769Z

Log Message:
-----------
Revert Preloader change in revision 16375.

Caused a hang with signed rsls, after they had been cached.

QE notes: None.
Doc notes: None.
Bugs: SDK-26591
Reviewer:
Tests run: checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/framework/src/mx/preloaders/Preloader.as
+++ frameworks/projects/framework/src/mx/preloaders/Preloader.as
@@ -347,9 +347,6 @@
             // If the rsl total is zero then provide an average rsl size
             // to set rough expectations.
             var rslTotal:int = rslListLoader.getItem(i).total;
-            if (rslTotal == 0)
-                rslTotal = 200000;
-
             total += rslTotal;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6422
Author:   hmuller@adobe.com
Date:     2009-04-30T17:00:23.069723Z

Log Message:
-----------
Added fixedThumbSize property to Scroller, moved focusEnabled=false from List to ListSkin.

QE Notes:
Doc Notes:
Bugs: sdk-20733, sdk-17360
Reviewer: Chet, Glenn, Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.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/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ListSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -148,7 +148,8 @@
      */
     override protected function calculateThumbSize():Number
     {
-        return Math.max(thumb.minHeight, super.calculateThumbSize());
+        var size:Number = (fixedThumbSize) ? thumb.getPreferredBoundsHeight() : super.calculateThumbSize();
+        return Math.max(thumb.minHeight, size);
     }

     /**