Transferred from the Adobe Open Source Subversion Repository

Revision: 3249
Author:   egeorgie@adobe.com
Date:     2008-09-18T01:08:12.738296Z

Log Message:
-----------
Implement %size for BasicLayout

Reviewed by Glenn

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -25,22 +25,24 @@
 public class BasicLayout implements ILayout
 {
     include "../core/Version.as";
-
+
     //--------------------------------------------------------------------------
     //
     //  Class methods
     //
     //--------------------------------------------------------------------------
-
+
     private static function constraintsDetermineWidth(layoutItem:ILayoutItem):Boolean
     {
-        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "left")) &&
+        return !isNaN(layoutItem.percentSize.x) ||
+               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "left")) &&
                !isNaN(LayoutItemHelper.getConstraint(layoutItem, "right"));
     }

     private static function constraintsDetermineHeight(layoutItem:ILayoutItem):Boolean
     {
-        return !isNaN(LayoutItemHelper.getConstraint(layoutItem, "top")) &&
+        return !isNaN(layoutItem.percentSize.y) ||
+               !isNaN(LayoutItemHelper.getConstraint(layoutItem, "top")) &&
                !isNaN(LayoutItemHelper.getConstraint(layoutItem, "bottom"));
     }

@@ -89,15 +91,15 @@

     public function measure():void
     {
-        var layoutTarget:GroupBase = target;
+        var layoutTarget:GroupBase = target;
         if (!layoutTarget)
             return;
-
+
         var width:Number = 0;
         var height:Number = 0;
         var minWidth:Number = 0;
         var minHeight:Number = 0;
-
+
         var count:int = layoutTarget.numLayoutItems;
         for (var i:int = 0; i < count; i++)
         {
@@ -109,10 +111,10 @@
             var right:Number     = LayoutItemHelper.getConstraint(layoutItem, "right");
             var top:Number       = LayoutItemHelper.getConstraint(layoutItem, "top");
             var bottom:Number    = LayoutItemHelper.getConstraint(layoutItem, "bottom");
-
+
             var extX:Number = 0;
             var extY:Number = 0;
-
+
             if (isNaN(left) && isNaN(right) &&
                 isNaN(LayoutItemHelper.getConstraint(layoutItem, "horizontalCenter")))
             {
@@ -123,9 +125,9 @@
                 extX += isNaN(left) ? 0 : left;
                 extX += isNaN(right) ? 0 : right;
             }
-
+
             if (isNaN(top) && isNaN(bottom) &&
-                isNaN(LayoutItemHelper.getConstraint(layoutItem, "verticalCenter")))
+                isNaN(LayoutItemHelper.getConstraint(layoutItem, "verticalCenter")))
             {
                 extY += layoutItem.actualPosition.y;
             }
@@ -134,29 +136,78 @@
                 extY += isNaN(top) ? 0 : top;
                 extY += isNaN(bottom) ? 0 : bottom;
             }
-
+
             width = Math.max(width, extX + layoutItem.preferredSize.x);
             height = Math.max(height, extY + layoutItem.preferredSize.y);
-
+
             var itemMinWidth:Number = constraintsDetermineWidth(layoutItem) ? layoutItem.minSize.x : layoutItem.preferredSize.x;
             var itemMinHeight:Number = constraintsDetermineHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
-
+
             minWidth = Math.max(minWidth, extX + itemMinWidth);
             minHeight = Math.max(minHeight, extY + itemMinHeight);
         }

         layoutTarget.measuredWidth = Math.max(width, minWidth);
         layoutTarget.measuredHeight = Math.max(height, minHeight);
-
+
         layoutTarget.measuredMinWidth = minWidth;
         layoutTarget.measuredMinHeight = minHeight;
-
+
         layoutTarget.setContentSize(layoutTarget.measuredWidth, layoutTarget.measuredHeight);
     }

+    /**
+     *  @return Returns the maximum value for an item's dimension so that the component doesn't
+     *  spill out of the container size. Calculations are based on the layout rules.
+     *  Pass in unscaledWidth, hCenter, left, right, childX to get a maxWidth value.
+     *  Pass in unscaledHeight, vCenter, top, bottom, childY to get a maxHeight value.
+     */
+    static private function maxSizeToFitIn(totalSize:Number,
+                                           center:Number,
+                                           lowConstraint:Number,
+                                           highConstraint:Number,
+                                           position:Number):Number
+    {
+        if (!isNaN(center))
+        {
+            // (1) x == (totalSize - childWidth) / 2 + hCenter
+            // (2) x + childWidth <= totalSize
+            // (3) x >= 0
+            //
+            // Substitue x in (2):
+            // (totalSize - childWidth) / 2 + hCenter + childWidth <= totalSize
+            // totalSize - childWidth + 2 * hCenter + 2 * childWidth <= 2 * totalSize
+            // 2 * hCenter + childWidth <= totalSize se we get:
+            // (3) childWidth <= totalSize - 2 * hCenter
+            //
+            // Substitute x in (3):
+            // (4) childWidth <= totalSize + 2 * hCenter
+            //
+            // From (3) & (4) above we get:
+            // childWidth <= totalSize - 2 * abs(hCenter)
+
+            return totalSize - 2 * Math.abs(center);
+        }
+        else if(!isNaN(lowConstraint))
+        {
+            // childWidth + left <= totalSize
+            return totalSize - lowConstraint;
+        }
+        else if(!isNaN(highConstraint))
+        {
+            // childWidth + right <= totalSize
+            return totalSize - highConstraint;
+        }
+        else
+        {
+            // childWidth + childX <= totalSize
+            return totalSize - position;
+        }
+    }
+
     public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
-        var layoutTarget:GroupBase = target;
+        var layoutTarget:GroupBase = target;
         if (!layoutTarget)
             return;

@@ -168,7 +219,7 @@
             var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
             if (!layoutItem || !layoutItem.includeInLayout)
                 continue;
-
+
             var hCenter:Number = LayoutItemHelper.getConstraint(layoutItem, "horizontalCenter");
             var vCenter:Number = LayoutItemHelper.getConstraint(layoutItem, "verticalCenter");
             var left:Number    = LayoutItemHelper.getConstraint(layoutItem, "left");
@@ -176,53 +227,69 @@
             var top:Number     = LayoutItemHelper.getConstraint(layoutItem, "top");
             var bottom:Number  = LayoutItemHelper.getConstraint(layoutItem, "bottom");
             var itemMinSize:Point = layoutItem.minSize;
-            var itemMaxSize:Point = layoutItem.maxSize;
+            var itemMaxSize:Point = layoutItem.maxSize.clone(); // Since we may update it below
+
+            // Remember child position before setting actualSize, since changing the size may
+            // change the position.
+            var childX:Number = layoutItem.actualPosition.x;
+            var childY:Number = layoutItem.actualPosition.y;

             // Calculate size
             var childWidth:Number = NaN;
             var childHeight:Number = NaN;
-
+
             if (!isNaN(left) && !isNaN(right))
+            {
                 childWidth = unscaledWidth - right - left;
-            else
+            }
+            else if (!isNaN(layoutItem.percentSize.x))
+            {
+                childWidth = unscaledWidth * Math.min(layoutItem.percentSize.x, 1);
+                itemMaxSize.x = Math.min(itemMaxSize.x,
+                    maxSizeToFitIn(unscaledWidth, hCenter, left, right, childX));
+            }
+
+            if (!isNaN(top) && !isNaN(bottom))
+            {
+                childHeight = unscaledHeight - bottom - top;
+            }
+            else if (!isNaN(layoutItem.percentSize.y))
+            {
+                childHeight = unscaledHeight * Math.min(layoutItem.percentSize.y, 1);
+                itemMaxSize.y = Math.min(itemMaxSize.y,
+                    maxSizeToFitIn(unscaledHeight, vCenter, top, bottom, childY));
+            }
+
+            // Apply min and max constraints, make sure min is applied last. In the cases
+            // where childWidth and childHeight are NaN, setActualSize will use preferredSize
+            // which is already constrained between min and max.
+            if (!isNaN(childWidth))
                 childWidth = Math.max(itemMinSize.x, Math.min(itemMaxSize.x, childWidth));
-
-            if (!isNaN(top) && !isNaN(bottom))
-                childHeight = unscaledHeight - bottom - top;
-            else
+            if (!isNaN(childHeight))
                 childHeight = Math.max(itemMinSize.y, Math.min(itemMaxSize.y, childHeight));
-
-            // Set size, no need to clip to min/max
-            // TODO!!! incorporate min/maxSize
+
+            // Set the size.
             var actualSize:Point = layoutItem.setActualSize(childWidth, childHeight);

-            // Calculate the position
-            var childX:Number;
-            var childY:Number;
-
-            // Horizontal
+            // Horizontal position
             if (!isNaN(hCenter))
                 childX = Math.round((unscaledWidth - actualSize.x) / 2 + hCenter);
             else if (!isNaN(left))
                 childX = left;
             else if (!isNaN(right))
                 childX = unscaledWidth - actualSize.x - right;
-            else
-                childX = layoutItem.actualPosition.x;
-
-            // Vertical
+
+            // Vertical position
             if (!isNaN(vCenter))
                 childY = Math.round((unscaledHeight - actualSize.y) / 2 + vCenter);
             else if (!isNaN(top))
                 childY = top;
             else if (!isNaN(bottom))
                 childY = unscaledHeight - actualSize.y - bottom;
-            else
-                childY = layoutItem.actualPosition.y

             // Set position
             layoutItem.setActualPosition(childX, childY);
-
+
             // update content limits
             maxX = Math.max(maxX, childX + actualSize.x);
             maxY = Math.max(maxY, childY + actualSize.y);


Add baseZoomeScale accessor to KrewWorldLayer

--- krew-framework/krewfw/builtin_actor/world/KrewWorldLayer.as
+++ krew-framework/krewfw/builtin_actor/world/KrewWorldLayer.as
@@ -85,6 +85,9 @@

         public function get treeRoot():QuadTreeSprite { return _tree; }
         public function get viewport():Rectangle { return _viewport; }
+
+        public function get baseZoomScale():Number { return _baseZoomScale; }
+        public function set baseZoomScale(scale:Number):void { _baseZoomScale = scale; }

         //------------------------------------------------------------
         // public


Change buffer sizes from .1/10/60 to 1/5/60.

--- src/goplayer/Player.as
+++ src/goplayer/Player.as
@@ -6,8 +6,8 @@
     private const DEFAULT_VOLUME : Number = .8
     private const DETERMINE_BANDWIDTH : Boolean = true

-    private const START_BUFFER : Duration = Duration.seconds(.1)
-    private const SMALL_BUFFER : Duration = Duration.seconds(10)
+    private const START_BUFFER : Duration = Duration.seconds(1)
+    private const SMALL_BUFFER : Duration = Duration.seconds(5)
     private const LARGE_BUFFER : Duration = Duration.seconds(60)

     private const finishingListeners : Array = []


GeometryPlotter no longer wastes time on geoms it won't render.

Change-Id: I58a2e5417b8a8323cccfec2a442c55320820057b

--- WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/GeometryPlotter.as
@@ -309,6 +309,8 @@
 			WeaveAPI.StageUtils.startTask(this, task.iterate, WeaveAPI.TASK_PRIORITY_RENDERING);
 		}

+		private const _singleGeom:Array = []; // reusable array for holding one item
+
 		private function generateTaskIterator(task:PlotTask):Function
 		{
 			return function():Number
@@ -323,15 +325,15 @@
 					if (value is Array)
 						geoms = value;
 					else if (value is GeneralizedGeometry)
-						geoms = [value as GeneralizedGeometry];
+					{
+						geoms = _singleGeom;
+						_singleGeom[0] = value;
+					}

 					if (geoms && geoms.length > 0)
 					{
 						var graphics:Graphics = tempShape.graphics;
-						graphics.clear();
-
-						fill.beginFillStyle(recordKey, graphics);
-						line.beginLineStyle(recordKey, graphics);
+						var styleSet:Boolean = false;

 						// draw the geom
 						for (var i:int = 0; i < geoms.length; i++)
@@ -342,13 +344,23 @@
 								// skip shapes that are considered unimportant at this zoom level
 								if (geom.geomType == GeneralizedGeometry.GEOM_TYPE_POLYGON && geom.bounds.getArea() < task.minImportance)
 									continue;
+								if (!styleSet)
+								{
+									graphics.clear();
+									fill.beginFillStyle(recordKey, graphics);
+									line.beginLineStyle(recordKey, graphics);
+									styleSet = true;
+								}
 								drawMultiPartShape(recordKey, geom.getSimplifiedGeometry(task.minImportance, task.dataBounds), geom.geomType, task.dataBounds, task.screenBounds, graphics, task.destination);
 							}
 						}
-						graphics.endFill();
 						try
 						{
-							task.destination.draw(tempShape);
+							if (styleSet)
+							{
+								graphics.endFill();
+								task.destination.draw(tempShape);
+							}
 						}
 						catch (e:Error)
 						{


Monster enters a small waiting phase when landing to make room for some landing animation if needed (just change wait timer to zero to proceed immediately).


Comment shadergraph visitor

Comment shadergraph visitor

M Remove_useless visitor creates errors inside the shader graph

--- src/aerys/minko/render/shader/compiler/graph/ShaderGraph.as
+++ src/aerys/minko/render/shader/compiler/graph/ShaderGraph.as
@@ -194,7 +194,7 @@
 			OVERWRITER_CLEANER		.process(this);	// remove nested overwriters
 			RESOLVE_CONSTANT		.process(this);	// resolve constant computation
 			CONSTANT_PACKER			.process(this);	// pack constants [0,0,0,1] => [0,1].xxxy
-			REMOVE_USELESS			.process(this);	// remove some useless operations (add 0, mul 0, mul 1...)
+//			REMOVE_USELESS			.process(this);	// remove some useless operations (add 0, mul 0, mul 1...)
 			RESOLVE_PARAMETRIZED	.process(this);	// replace computations that depend on parameters by evalexp parameters
 //			MATRIX_TRANSFORMATION	.process(this);	// replace ((vector * matrix1) * matrix2) by vector * (matrix1 * matrix2) to save registers on GPU
 			COPY_INSERTER			.process(this);	// ensure there are no operations between constants


improved unIndent() behavior, made tab-to-space replacement customizable

--- WeaveCore/src/weave/core/LinkableFunction.as
+++ WeaveCore/src/weave/core/LinkableFunction.as
@@ -276,37 +276,65 @@
 //		}

 		/**
-		 * Takes a script where all lines have been indented, removes the common indentation from all lines and replaces each tab with four spaces.
-		 * The common indentation is naively assumed to be the same as the first non-blank line in the script.
+		 * Takes a script where all lines have been indented with tabs,
+		 * removes the common indentation from all lines and optionally
+		 * replaces extra leading tabs with a number of spaces.
 		 * @param script A script.
+		 * @param spacesPerTab If greater than zero, this is the number of spaces to be used in place of each tab character used as indentation.
 		 * @return The modified script.
 		 */
-		public static function unIndent(script:String):String
+		public static function unIndent(script:String, spacesPerTab:uint = 0):String
 		{
 			if (script == null)
 				return null;
+			// switch all line endings to \n
 			script = StandardLib.replace(script, '\r\n','\n','\r','\n');
-			while (StringUtil.isWhitespace(script.substr(-1)))
-				script = script.substr(0, -1);
+			// remove trailing whitespace (not leading whitespace)
+			script = StringUtil.trim('.' + script).substr(1);
+			// separate into lines
 			var lines:Array = script.split('\n');
-			while (!lines[0] && lines.length)
+			// remove blank lines from the beginning
+			while (!StringUtil.trim(lines[0]) && lines.length)
 				lines.shift();
-
+			// stop if there's nothing left
 			if (!lines.length)
 				return '';
-			var indent:int = 0;
-			var line:String = lines[0];
-			while (line.charAt(indent) == '\t')
-				indent++;
+			// find the common indentation
+			var commonIndent:int = int.MAX_VALUE;
+			var line:String;
+			for each (line in lines)
+			{
+				// ignore blank lines
+				if (!StringUtil.trim(line))
+					continue;
+				// count leading tabs
+				var lineIndent:int = 0;
+				while (line.charAt(lineIndent) == '\t')
+					lineIndent++;
+				// remember the minimum number of leading tabs
+				commonIndent = Math.min(commonIndent, lineIndent);
+			}
+			// remove the common indentation from each line
 			for (var i:int = 0; i < lines.length; i++)
 			{
 				line = lines[i];
+				// prepare to remove common indentation
 				var t:int = 0;
+				while (t < commonIndent && line.charAt(t) == '\t')
+				{
+					t++;
+				}
+				// optionally, prepare to replace extra tabs with spaces
 				var spaces:String = '';
-				while (line.charAt(t) == '\t')
-					if (t++ >= indent)
-						spaces += '    ';
-
+				if (spacesPerTab)
+				{
+					while (line.charAt(t) == '\t')
+					{
+						spaces += StandardLib.lpad('', spacesPerTab, ' ');
+						t++;
+					}
+				}
+				// commit changes
 				lines[i] = spaces + line.substr(t);
 			}
 			return lines.join('\n') + '\n';


Added validate() function to detect compile errors without applying the function.

--- WeaveCore/src/weave/core/LinkableFunction.as
+++ WeaveCore/src/weave/core/LinkableFunction.as
@@ -73,12 +73,9 @@
 		}

 		/**
-		 * This will evaluate the function with the specified parameters.
-		 * @param thisArg The value of 'this' to be used when evaluating the function.
-		 * @param argArray An Array of arguments to be passed to the compiled function.
-		 * @return The result of evaluating the function.
-		 */
-		public function apply(thisArg:* = null, argArray:Array = null):*
+		 * This will attempt to compile the function.  An Error will be thrown if this fails.
+		 */
+		public function validate():void
 		{
 			if (_compiledMethod == null)
 			{
@@ -86,6 +83,18 @@
 					_macroProxy = new ProxyObject(_hasMacro, evaluateMacro, null); // allows evaluating macros but not setting them
 				_compiledMethod = _compiler.compileToFunction(value, _macroProxy, _ignoreRuntimeErrors || debug, _useThisScope, _paramNames);
 			}
+		}
+
+		/**
+		 * This will evaluate the function with the specified parameters.
+		 * @param thisArg The value of 'this' to be used when evaluating the function.
+		 * @param argArray An Array of arguments to be passed to the compiled function.
+		 * @return The result of evaluating the function.
+		 */
+		public function apply(thisArg:* = null, argArray:Array = null):*
+		{
+			if (_compiledMethod == null)
+				validate();
 			return _compiledMethod.apply(thisArg, argArray);
 		}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/management/MBeanAttributeInfo.as
+++ frameworks/projects/rpc/src/mx/messaging/management/MBeanAttributeInfo.as
@@ -18,11 +18,23 @@

 /**
  * Client representation of metadata for a MBean attribute.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion BlazeDS 4
+ *  @productversion LCDS 3
  */
 public class MBeanAttributeInfo extends MBeanFeatureInfo
 {
     /**
      *  Creates a new instance of an empty MBeanAttributeInfo.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
 	public function MBeanAttributeInfo()
 	{
@@ -31,21 +43,45 @@

 	/**
 	 * The data type of the attribute.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var type:String;

 	/**
 	 * Indicates if the attribute is readable.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var readable:Boolean;

 	/**
 	 * Indicates if the attribute is writable.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var writable:Boolean;

 	/**
 	 * Indicates if the server-side getter for the attribute has an 'is' prefix.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var isIs:Boolean;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13756
Author:   hmuller@adobe.com
Date:     2010-01-25T19:42:14.082913Z

Log Message:
-----------
Mirroring changes, fixes.

- Removed ILayout interface, added mirroring API to IVisualElement.
- Moved layoutDirection="ltr" initialization from TextBase to defaults.css.   Removed similar initialization from DefaultItemRenderer (it wasn't needed).
- The 'get layoutDirection()' method for UIMovieClip, GraphicElement, and SpriteVisualElement now queries the parent if the local value is "inherit".
- Use @inheritDoc instead of explicitly @copying interface methods' ASDoc.   Don't call invalidateLayoutDirection() if FlexVersion.compatibilityVersion is < 4.0.
- Don't call invalidateLayout() for a child unless either its layoutDirection has changed, or its parent's layoutDirection has changed.

QE notes: These changes were cycloned.
Doc notes:
Bugs: sdk-25204, sdk-25209
Reviewer: Evtim
Tests run:
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -157,9 +157,6 @@
         // added don't trap the mouse events.
         mouseChildren = false;

-		// this component assumes that its coordinate system will not be mirrored
-		layoutDirection = "ltr";
-
 		var resourceManager:IResourceManager = ResourceManager.getInstance();

 		if (!truncationIndicatorResource)


fixed incoming web hooks as requirement not showing potential objects

--- flexEditor/src/org/arisgames/editor/util/AppUtils.as
+++ flexEditor/src/org/arisgames/editor/util/AppUtils.as
@@ -750,7 +750,8 @@
 		if (req.requirement == AppConstants.REQUIREMENT_PLAYER_HAS_ITEM_DATABASE ||
 			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_ITEM_DATABASE ||
 			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_WEBPAGE_DATABASE ||
-			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_AUGBUBBLE_DATABASE ||
+			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_AUGBUBBLE_DATABASE ||
+			req.requirement == AppConstants.REQUIREMENT_PLAYER_HAS_RECEIVED_INCOMING_WEB_HOOK_DATABASE ||
 			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_PLAYER_NOTE_DATABASE ||
 			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_NODE_DATABASE ||
 			req.requirement == AppConstants.REQUIREMENT_PLAYER_VIEWED_NPC_DATABASE ||


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/controls/VScrollBar.as
+++ frameworks/projects/mx/src/mx/controls/VScrollBar.as
@@ -81,6 +81,8 @@
 [DefaultTriggerEvent("scroll")]

 [IconFile("VScrollBar.png")]
+
+[Alternative(replacement="spark.components.VScrollBar", since="4.0")]

 /**
  *  The VScrollBar (vertical ScrollBar) control  lets you control


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2007 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: 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@1261191 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/graphics/SolidColor.as
+++ frameworks/projects/framework/src/mx/graphics/SolidColor.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.graphics
 {


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

--- frameworks/projects/framework/src/mx/graphics/SolidColor.as
+++ frameworks/projects/framework/src/mx/graphics/SolidColor.as
@@ -25,6 +25,11 @@
  *  including a color and an alpha value.
  *
  *  @see mx.graphics.IFill
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class SolidColor extends EventDispatcher implements IFill
 {
@@ -46,6 +51,11 @@
 	 *  Valid values range from 0.0 (completely transparent)
 	 *  to 1.0 (completely opaque).
 	 *  The default value is 1.0.
+ 	 *
+ 	 *  @langversion 3.0
+ 	 *  @playerversion Flash 9
+ 	 *  @playerversion AIR 1.1
+ 	 *  @productversion Flex 3
  	 */
 	public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)
  	{
@@ -75,6 +85,11 @@
 	 *  Possible values are 0.0 (invisible) through 1.0 (opaque).
 	 *
 	 *  @default 1.0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get alpha():Number
 	{
@@ -102,6 +117,11 @@

 	/**
 	 *  A color value.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get color():uint
 	{
@@ -126,6 +146,11 @@

 	/**
 	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function begin(target:Graphics, rc:Rectangle):void
 	{
@@ -134,6 +159,11 @@

 	/**
 	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function end(target:Graphics):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@1262088 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/modules/IModuleInfo.as
+++ frameworks/projects/framework/src/mx/modules/IModuleInfo.as
@@ -27,6 +27,11 @@
  *  module loading.
  *
  *  @eventType mx.events.ModuleEvent.ERROR
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="error", type="mx.events.ModuleEvent")]

@@ -35,6 +40,11 @@
  *  while the module is being loaded.
  *
  *  @eventType mx.events.ModuleEvent.PROGRESS
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="progress", type="mx.events.ModuleEvent")]

@@ -44,6 +54,11 @@
  *  IFlexModuleFactory.create() method.
  *
  *  @eventType mx.events.ModuleEvent.READY
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="ready", type="mx.events.ModuleEvent")]

@@ -53,6 +68,11 @@
  *  the IFlexModuleFactory.info() method.
  *
  *  @eventType mx.events.ModuleEvent.SETUP
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="setup", type="mx.events.ModuleEvent")]

@@ -60,6 +80,11 @@
  *  Dispatched by the backing ModuleInfo when the module data is unloaded.
  *
  *  @eventType mx.events.ModuleEvent.UNLOAD
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="unload", type="mx.events.ModuleEvent")]

@@ -67,6 +92,11 @@
  *  An interface that acts as a handle for a particular module.
  *  From this interface, the module status can be queried,
  *  its inner factory can be obtained, and it can be loaded or unloaded.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IModuleInfo extends IEventDispatcher
 {
@@ -83,6 +113,11 @@
     /**
      *  User data that can be associated with the singleton IModuleInfo
      *  for a given URL.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get data():Object;

@@ -101,6 +136,11 @@
      *
      *
This flag is true when the ModuleManager dispatches the
      *  ModuleEvent.ERROR event.

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

@@ -117,6 +157,11 @@
      *  Once a ModuleEvent.READY event is dispatched
      *  (or the IModuleInfo.ready() method returns true),
      *  it is possible to call the IFlexModuleFactory.create() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get factory():IFlexModuleFactory;

@@ -127,6 +172,11 @@
     /**
      *  A flag that is true if the load()
      *  method has been called on this module.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get loaded():Boolean;

@@ -141,6 +191,11 @@
      *
      *
This flag is true when the ModuleManager dispatches the
      *  ModuleEvent.READY event.

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

@@ -155,6 +210,11 @@
      *
      *
This flag is true when the ModuleManager dispatches the
      *  ModuleEvent.SETUP event.

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

@@ -167,6 +227,11 @@
      *  "http://somedomain.com/modules/MyImageModule.swf". The URL can be local or remote, but
      *  if it is remote, you must establish a trust between the module's domain and the
      *  application that loads it.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get url():String;

@@ -191,6 +256,11 @@
      *  is specified the module will be loaded from the ByteArray. If this
      *  parameter is null the module will be loaded from the url specified in
      *  the url property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function load(applicationDomain:ApplicationDomain = null,
                   securityDomain:SecurityDomain = null,
@@ -203,6 +273,11 @@
      *  to have only a limited number of loaded modules.
      *
      *  @see mx.modules.ModuleManager
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function release():void;

@@ -211,6 +286,11 @@
      *  Flash Player and AIR will not fully unload and garbage collect this module if
      *  there are any outstanding references to definitions inside the
      *  module.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function unload():void;

@@ -222,6 +302,11 @@
      *  @param factory The class that implements the module's IFlexModuleFactory interface.
      *
      *  @see mx.modules.ModuleManager
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function publish(factory:IFlexModuleFactory):void;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

-		role = 0x08;
+		role = 0x08; // ROLE_SYSTEM_ALERT
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5037
Author:   smgilson@adobe.com
Date:     2009-02-23T15:29:40.813445Z

Log Message:
-----------
Fix broken ASDoc comments

QE Notes: None
Doc Notes: None
Bugs: -

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

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

--- frameworks/projects/spark/src/spark/core/IGraphicElement.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElement.as
@@ -18,7 +18,7 @@

 /**
  *  The IGraphicElement is implemented by IVisualElements that
- *  take advantage of the parent Group's DisplayObject
+ *  take advantage of the parent Group's DisplayObject
  *  management.
  *
  *
One typical use case is DisplayObject sharing.
@@ -83,7 +83,7 @@
      *  of elements that share the same DisplayObject.
      *
      *  A value of -1 indicates that this element doesn't
-     *  share its displayObject with other elements and its sequence
+     *  share its displayObject with other elements and its sequence
      *  doesn't contain any other elements.
      *
      *  A value of 0 or greater indicates the position of this element in its
@@ -243,7 +243,7 @@
      *  Called by the parent Group to redraw this element
      *  in its displayObject property.
      *
-     *
If the element is the first in the sequence (shareIndex</cpode>
+     *
If the element is the first in the sequence (shareIndex
      *  is less than or equal to zero) it must clear the displayObject
      *  graphics and set it up as necessary for drawing the rest of the elements.

      *


- updated version# - added information about used player

--- lib/com/nesium/logging/TrazzleLogger.as
+++ lib/com/nesium/logging/TrazzleLogger.as
@@ -11,6 +11,7 @@
 	import flash.events.TimerEvent;
 	import flash.geom.Rectangle;
 	import flash.net.registerClassAlias;
+	import flash.system.Capabilities;
 	import flash.system.System;
 	import flash.utils.ByteArray;
 	import flash.utils.describeType;
@@ -34,8 +35,8 @@
 		//*****************************************************************************************
 		private static const k_host:String = 'localhost';
 		private static const k_port:Number = 3457;
-		private static const k_version:Number = 2;
-		private static const k_marketingVersion:String = '1.5.1.1';
+		private static const k_version:Number = 3;
+		private static const k_marketingVersion:String = '1.5.2';

 		private static var g_instance:TrazzleLogger;
 		private static var g_gateway:DuplexGateway;
@@ -72,6 +73,7 @@
 			params.applicationName = title;
 			params.version = k_version;
 			params.marketingVersion = k_marketingVersion;
+			params.player = {isDebugger:Capabilities.isDebugger, version:Capabilities.version};
 			g_gateway.invokeRemoteService('CoreService', 'setConnectionParams', params);
 		}


changing setInterval() delay to 1000/30

changing setInterval() delay to 1000/30

--- WeaveJS/src/weavejs/core/Scheduler.as
+++ WeaveJS/src/weavejs/core/Scheduler.as
@@ -35,7 +35,7 @@
 	{
 		public function Scheduler()
 		{
-			JS.setInterval(handleCallLater, 0);
+			JS.setInterval(handleCallLater, 1000 / 30);
 			initVisibilityHandler();
 		}


Fixed an issue with probing points where the points importance wasn't
considered correctly and the wrong parameters were passed to
PolygonOverlapsPoint.

Tested with temp.xml.

Change-Id: I7256f3e3067231a9cea7a071aa6418171c62fde3

--- WeaveUI/src/weave/utils/SpatialIndex.as
+++ WeaveUI/src/weave/utils/SpatialIndex.as
@@ -286,10 +286,10 @@
 		{
 			var keys:Array;
 			// if this index isn't for an IPlotterWithGeometries OR the user wants legacy probing
-			if (_keyToGeometriesMap == null || !Weave.properties.enableGeometryProbing.value == true)
+			if (_keyToGeometriesMap == null || Weave.properties.enableGeometryProbing.value == false)
 				return getKeysOverlappingCollectiveBounds(bounds, 0);
 			else
-				keys = getKeysOverlappingCollectiveBounds(bounds, minImportance);
+				keys = getKeysOverlappingCollectiveBounds(bounds, 0);

 			// if there are 0 keys
 			if (keys.length == 0)


Assorted minor logic changes.

Assorted minor logic changes.

- Don’t special case AVCC when splicing I-frames.
- Better use of FLVTagVideo constants in isTagAVCC/isTagIFrame
- Clearer logging of written tags avcc/iframe status.
- Whitespace cleanups.
- Converted some traces to logger calls.
- Fix for off-by-one rounding issue in unwrapped timestamps.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -1894,10 +1894,10 @@
 			var timestampCastHelper:Number = timestamp;

 			while(timestampCastHelper > int.MAX_VALUE)
-				timestampCastHelper -= uint.MAX_VALUE;
+				timestampCastHelper -= Number(uint.MAX_VALUE);

 			while(timestampCastHelper < -int.MAX_VALUE)
-				timestampCastHelper += uint.MAX_VALUE;
+				timestampCastHelper += Number(uint.MAX_VALUE);

 			return timestampCastHelper;
 		}
@@ -1911,7 +1911,6 @@
 		private function onTag(tag:FLVTag):Boolean
 		{
 			var i:int;
-

 			// Make sure we don't go past the live edge even if it changes while seeking.
 			if(indexHandler && indexHandler.isLiveEdgeValid)
@@ -2082,7 +2081,7 @@
 								if (vTagVideo.codecID == FLVTagVideo.CODEC_ID_AVC && vTagVideo.avcPacketType == FLVTagVideo.AVC_PACKET_TYPE_NALU)
 								{
 									// for H.264 we need to move the timestamp forward but the composition time offset backwards to compensate
-									var adjustment:int = wrapTagTimestampToFLVTimestamp(tag.timestamp) - wrapTagTimestampToFLVTimestamp(vTagVideo.timestamp); // how far we are adjusting - no need to unwrap since it's a delta
+									var adjustment:int = wrapTagTimestampToFLVTimestamp(tag.timestamp) - wrapTagTimestampToFLVTimestamp(vTagVideo.timestamp); // how far we are adjusting
 									var compTime:int = vTagVideo.avcCompositionTimeOffset;
 									compTime -= adjustment; // do the adjustment
 									vTagVideo.avcCompositionTimeOffset = compTime;	// save adjustment
@@ -2391,16 +2390,20 @@
 		 */
 		private function keepBufferFed():void
 		{
-			updateBufferTime();
-
 			// Check the actual amount of content present.
 			if(super.bufferLength >= bufferFeedMin && !_wasBufferEmptied)
 			{
+				CONFIG::LOGGING
+				{
+					logger.debug("Saw super.bufferLength " + super.bufferLength + " < " + bufferFeedMin);
+				}
 				return;
 			}

 			// Sort as needed.
 			ensurePendingSorted();
+
+			updateBufferTime();

 			// We want to keep the actual required buffer short so we don't stall with
 			// tags still pending.
@@ -2408,12 +2411,16 @@

 			// Append tag bytes until we've hit our time buffer goal.
 			var curTagOffset:int = 0;
-			while((super.bufferLength <= (bufferFeedMin + bufferFeedAmount) || _wasBufferEmptied)
+			while((super.bufferLength <= (bufferFeedMin + bufferFeedAmount)
+				   || _wasBufferEmptied)
 			      && (pendingTags.length - curTagOffset) > 0)
 			{
 				if(curTagOffset > 100 && _wasBufferEmptied)
 				{
-					trace("Avoiding loading entire pending tag list when dealing with an empty buffer event scenario.");
+					CONFIG::LOGGING
+					{
+						logger.debug("Avoiding loading entire pending tag list when dealing with an empty buffer event scenario.");
+					}
 					break;
 				}

@@ -2430,22 +2437,26 @@
 				// Look for malformed tags.
 				if(expectedSize != buffer.length)
 				{
-					trace("SAW BAD PACKET, IGNORING?! Size mismatch: " + expectedSize + " != " + buffer.length);
+					CONFIG::LOGGING
+					{
+						logger.debug("SAW BAD PACKET, IGNORING?! Size mismatch: " + expectedSize + " != " + buffer.length);
+					}
 					continue;
 				}

 				var tagTimeSeconds:Number = wrapTagTimestampToFLVTimestamp(tag.timestamp) / 1000;

 				// If it's more than 0.5 second jump ahead of current playhead, insert a RESET_SEEK so we won't stall forever.
-				var tagDelta:Number = Math.abs(tagTimeSeconds - lastWrittenTime)
-				if(tagDelta > bufferFeedMin + bufferFeedAmount * 2 || isNaN(tagDelta))
+				var tagDelta:Number = Math.abs(tagTimeSeconds - lastWrittenTime);
+
+				if(tagDelta > (bufferFeedMin + bufferFeedAmount * 2) || isNaN(tagDelta))
 				{
 					// Don't do this for script tags, as they sometimes show up in weird orders.
 					CONFIG::LOGGING
 					{
 						logger.debug("Inserting RESET_SEEK due to " + tagDelta + " being bigger than  " + (bufferFeedMin + bufferFeedAmount * 2));
 					}
-					appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
+					appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
 				}

 				lastWrittenTime = tagTimeSeconds;
@@ -2453,7 +2464,7 @@
 				// Do writing.
 				CONFIG::LOGGING
 				{
-					logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType + " avcc=" + isTagAVCC(tag as FLVTagVideo) + " iFrame=" + isTagIFrame(tag as FLVTagVideo));
+					logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType + (isTagAVCC(tag as FLVTagVideo) ? " avcc" : "") + (isTagIFrame(tag as FLVTagVideo) ? " iframe" : ""));
 				}

 				if(writeToMasterBuffer)
@@ -2562,18 +2573,24 @@
 			if(!tag)
 				return false;

+			if(tag.codecID != FLVTagVideo.CODEC_ID_AVC)
+				return false;
+
 			// Must be keyframe.
 			if(tag.frameType != FLVTagVideo.FRAME_TYPE_KEYFRAME)
 				return false;

 			// If config record, then it's an AVCC!
-			return tag.avcPacketType == 0;
+			return tag.avcPacketType == FLVTagVideo.AVC_PACKET_TYPE_SEQUENCE_HEADER;
 		}

 		public static function isTagIFrame(tag:FLVTagVideo):Boolean
 		{
 			if(!tag)
+				return false;
+
+			if(tag.codecID != FLVTagVideo.CODEC_ID_AVC)
 				return false;

 			// Must be keyframe.
@@ -2581,14 +2598,14 @@
 				return false;

 			// It's an I-frame if not a config record!
-			return tag.avcPacketType == 1;
+			return tag.avcPacketType == FLVTagVideo.AVC_PACKET_TYPE_NALU;
 		}

 		private function onBufferTag(tag:FLVTag):Boolean
 		{
-			//trace("Got tag " + tag);
-
 			var realTimestamp:int = wrapTagTimestampToFLVTimestamp(tag.timestamp);
+
+			//trace("Got tag " + tag + " @ " + realTimestamp);

 			// First, is it audio/video/other?
 			if(tag is FLVTagAudio)
@@ -2642,26 +2659,16 @@
 				{
 					scanningForIFrame = true;

-					if(isTagAVCC(vTag) == false)
-					{
-						// Note for later use when we splice.
+					// Note for later use when we splice.
+					if(isTagAVCC(vTag))
 						scanningForIFrame_avcc = vTag;

-						CONFIG::LOGGING
-						{
-							logger.debug("   - I-FRAME SCAN and reject due to impossible time (" + vTag.timestamp + " < " + pendingTags[0].timestamp + ")");
-						}
-
-						return true;
-					}
-					else
-					{
-						CONFIG::LOGGING
-						{
-							logger.debug("   - I-FRAME SCAN and but kept AVCC in face of impossible time (" + vTag.timestamp + " < " + pendingTags[0].timestamp + ")");
-						}
-
-					}
+					CONFIG::LOGGING
+					{
+						logger.debug("   - I-FRAME SCAN and reject due to impossible time (" + realTimestamp + " < " + wrapTagTimestampToFLVTimestamp(pendingTags[0].timestamp) + ")");
+					}
+
+					return true;
 				}

 				// Skip until we find our I-frame.
@@ -2746,7 +2753,7 @@
 						CONFIG::LOGGING
 						{
 							logger.debug("   o Had no AVCC when splicing I-frame.");
-						}
+						}
 					}

 					// Drop through to let tag be added.


No longer set microphone to null on stop

This caused an error when stopping the microphone the second time and thereafter.

--- src/com/axis/audioclient/AxisTransmit.as
+++ src/com/axis/audioclient/AxisTransmit.as
@@ -112,7 +112,6 @@
       if (mic) {
         mic.removeEventListener(StatusEvent.STATUS, onMicStatus);
         mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, onMicSampleData);
-        mic = null;
       }
       conn.close();
     }


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

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

 package mx.olap.aggregators


Transferred from the Adobe Open Source Subversion Repository

Revision: 6670
Author:   hmuller@adobe.com
Date:     2009-05-05T22:57:46.287638Z

Log Message:
-----------
Redispatch GroupBase.layout propertyChange events for vertical,horizontalScrollPosition.

QE Notes:
Doc Notes:
Bugs: sdk-20801
Reviewer: Deepa

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -292,14 +292,37 @@
         }

         if (_layout)
+        {
             _layout.target = null;
+            _layout.removeEventListener("propertyChange", redispatchLayoutEvent);
+        }
         _layout = value;
         if (_layout)
+        {
             _layout.target = this;
+            _layout.addEventListener("propertyChange", redispatchLayoutEvent);
+        }

         invalidateSize();
         invalidateDisplayList();
     }
+
+    /**
+     *  @private
+     *  Redispatch the bindable LayoutBase properties that we expose (that we "facade").
+     */
+    private function redispatchLayoutEvent(event:Event):void
+    {
+        var pce:PropertyChangeEvent = event as PropertyChangeEvent;
+        if (pce)
+            switch (pce.property)
+            {
+                case "verticalScrollPosition":
+                case "horizontalScrollPosition":
+                    dispatchEvent(event);
+                    break;
+            }
+    }

     //----------------------------------
     //  horizontalScrollPosition


Minor fix: fix to incompatible override due to incorrect access specifier (public/protected)

--- src/org/openPyro/layout/RowGridLayout.as
+++ src/org/openPyro/layout/RowGridLayout.as
@@ -46,7 +46,7 @@

-		protected public function calculatePositions(children:Array):Array{
+		override public function calculatePositions(children:Array):Array{

 			layoutDescriptors = [];


StreamBuffer : add warning logs in case sliding become negative (this should not happen)

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -187,6 +187,11 @@
                             // if same continuity counter, sliding can be computed using PTS, it will be more accurate
                             if(continuity == _fragMainInitialContinuity) {
                                 sliding = _playlistSlidingMain = _fragMainInitialStartPosition + (min_pts-_fragMainInitialPTS)/1000 - startPosition;
+                                if(sliding < 0) {
+                                    CONFIG::LOGGING {
+                                        Log.warn('negative sliding : sliding/min_pts/_fragMainInitialPTS/startPosition/_fragMainInitialStartPosition:' + sliding + '/' + min_pts + '/' + _fragMainInitialPTS + '/' + startPosition.toFixed(3) + '/' + _fragMainInitialStartPosition);
+                                    }
+                                }
                             } else {
                                 sliding = _playlistSlidingMain = _nextExpectedAbsoluteStartPosMain - startPosition;
                             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 15081
Author:   cframpto@adobe.com
Date:     2010-03-26T21:57:05.712585Z

Log Message:
-----------
Merge changes LayoutDirection.as 15075 and UIFTETextField.as 15080 from 4.x to trunk.  SDK-26016.

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutDirection.as</path>

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

--- frameworks/projects/framework/src/mx/core/LayoutDirection.as
+++ frameworks/projects/framework/src/mx/core/LayoutDirection.as
@@ -1,7 +1,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
 //  ADOBE SYSTEMS INCORPORATED
-//  Copyright 20010Adobe Systems Incorporated
+//  Copyright 2010 Adobe Systems Incorporated
 //  All Rights Reserved.
 //
 //  NOTICE: Adobe permits you to use, modify, and distribute this file


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -63,7 +63,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <HScrollBar
+ *  <s:HScrollBar
  *
  *    Properties
  *    viewport=""


Transferred from the Adobe Open Source Subversion Repository

Revision: 4622
Author:   hmuller@adobe.com
Date:     2009-01-22T20:56:42.845482Z

Log Message:
-----------
Many Bug fixes.

Setting a scrollbar's viewport now sets the viewport's clipContent flag to true.

DataGroup getRendererForItemAt(), getItemIndexForRenderer() are now public; were mx_internal.

QE Notes: tests that depend on mx_internal DataGroup getRendererForItemAt(), getItemIndexForRenderer() methods will break
Doc Notes: None
Bugs: sdk-18753, sdk-18217, sdk-18628, sdk-18659, sdk-18111, sdk18820, sdk18763
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -70,9 +70,14 @@
         super.viewport = newViewport;
         if (newViewport)
         {
-            maximum = newViewport.contentHeight - newViewport.height;
+            var vsp:Number = newViewport.verticalScrollPosition;
+            // Special case: if contentHeight is 0, assume that it hasn't been
+            // updated yet.  Making the maximum==vsp here avoids trouble later
+            // when FxRange constrains value
+            var cHeight:Number = newViewport.contentHeight;
+            maximum = (cHeight == 0) ? vsp : cHeight - newViewport.height;
             pageSize = newViewport.height;
-            value = newViewport.verticalScrollPosition;
+            value = vsp;
         }
     }

@@ -260,7 +265,12 @@
     {
         if (viewport)
         {
-            maximum = viewport.contentHeight - viewport.height;
+            var vsp:Number = viewport.verticalScrollPosition;
+            // Special case: if contentHeight is 0, assume that it hasn't been
+            // updated yet.  Making the maximum==vsp here avoids trouble later
+            // when FxRange constrains value
+            var cHeight:Number = viewport.contentHeight;
+            maximum = (cHeight == 0) ? vsp : cHeight - viewport.height;
             pageSize = viewport.height;
         }
     }


- bugfix: Transitioned properties weren't removed from the transition manager under certain circumstances if though they should have been

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

--- src/reprise/css/transitions/CSSTransitionsManager.as
+++ src/reprise/css/transitions/CSSTransitionsManager.as
@@ -158,9 +158,7 @@
 					}

 					//ignore properties that don't have previous values or target values
-					//TODO: check if we can implement default values for new elements
-					if (!oldValue || !targetValue || targetValue.isAuto() ||
-						oldValue.specifiedValue() == targetValue.specifiedValue())
+					if (!oldValue || !targetValue || targetValue.isAuto())
 					{
 						return;
 					}
@@ -177,6 +175,11 @@
 						transition.endValue = targetValue;
 						m_activeTransitions[transitionPropName] = transition;
 					}
+					else if (transition.currentValue.specifiedValue() ==
+						targetValue.specifiedValue())
+					{
+						delete m_activeTransitions[transitionPropName];
+					}
 					else if (transition.endValue != targetValue)
 					{
 						transition.easing = transitionEasing;


Transferred from the Adobe Open Source Subversion Repository

Revision: 88
Author:   open-source-svn-admin@adobe.com
Date:     2008-01-03T22:47:56.499469Z

Log Message:
-----------
Perforce Change 191925 by proberts@proberts-laptop-flex on 2008/01/03 16:47:12 Severity: ignore Details: doc additions/clean up for FlexNativeMenu. Also FLEXDOCS-320 (update documentation for FlexNativeMenuEvent.MENU_SHOW to explain that the index, label, and item properties are null) Affected files ...

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/NoChannelAvailableError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidDestinationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as
+++ frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as
@@ -1,21 +1,14 @@
-/*************************************************************************
- *
- * ADOBE CONFIDENTIAL
- * __________________
- *
- *  [2002] - [2007] Adobe Systems Incorporated
- *  All Rights Reserved.
- *
- * NOTICE:  All information contained herein is, and remains
- * the property of Adobe Systems Incorporated and its suppliers,
- * if any.  The intellectual and technical concepts contained
- * herein are proprietary to Adobe Systems Incorporated
- * and its suppliers and may be covered by U.S. and Foreign Patents,
- * patents in process, and are protected by trade secret or copyright law.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from Adobe Systems Incorporated.
- */
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.messaging
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13259
Author:   clucier@adobe.com
Date:     2010-01-04T19:52:51.953785Z

Log Message:
-----------
Restoring unconditional event dispatching for early life cycle events to facilitate external frameworks such as Mate and Swiz.

For 10.1 player and above we now sync layout immediately after stage resize for Application (mx/spark).

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/mx/src/mx/core/Application.as
+++ frameworks/projects/mx/src/mx/core/Application.as
@@ -344,6 +344,8 @@
         // documentDescriptor property for the application object.
         // We get the id and the creationPolicy, which we want to
         // set very early, from that descriptor.
+
+        initResizeBehavior();
     }

     //--------------------------------------------------------------------------
@@ -403,6 +405,11 @@
      *  height of the Application should be modified.
      */
     private var resizeHeight:Boolean = true;
+
+    /**
+     *  @private
+     */
+    private var synchronousResize:Boolean = false;

     /**
      * @private
@@ -410,7 +417,7 @@
      * so that we can update it for runtime localization.
      */
     private var viewSourceCMI:ContextMenuItem;
-
+
     //--------------------------------------------------------------------------
     //
     //  Compile-time pseudo-properties
@@ -1624,6 +1631,19 @@
         }
     }

+    /**
+     *  @private
+     *  Check to see if we're able to synchronize our size with the stage
+     *  immediately rather than deferring (dependent on WATSON 2200950).
+     */
+    private function initResizeBehavior():void
+    {
+        var version:Array = Capabilities.version.split(' ')[1].split(',');
+
+        synchronousResize = (parseFloat(version[0]) > 10 ||
+            (parseFloat(version[0]) == 10 && parseFloat(version[1]) >= 1));
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers
@@ -1653,7 +1673,14 @@
         // If we're already due to update our bounds on the next
         // commitProperties pass, avoid the redundancy.
         if (!percentBoundsChanged)
+        {
             updateBounds();
+
+            // Update immediately when stage resizes so that we may appear
+            // in synch with the stage rather than visually "catching up".
+            if (synchronousResize)
+                UIComponentGlobals.layoutManager.validateNow();
+        }
     }

     /**
@@ -1750,7 +1777,7 @@

         setActualSize(w, h);

-        invalidateDisplayList();
+        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@1270002 13f79535-47bb-0310-9956-ffa450edef68

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
+++ frameworks/projects/spark/src/spark/utils/MouseEventUtil.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.utils
 {