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

--- frameworks/projects/automation_spark/src/mx/automation/delegates/controls/dataGridClasses/FTEDataGridItemRendererAutomationImpl.as
+++ frameworks/projects/automation_spark/src/mx/automation/delegates/controls/dataGridClasses/FTEDataGridItemRendererAutomationImpl.as
@@ -0,0 +1,91 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.delegates.controls.dataGridClasses
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.automation.delegates.core.UIFTETextFieldAutomationImpl;
+	import mx.controls.dataGridClasses.FTEDataGridItemRenderer;
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  FTEDataGridItemRenderer class.
+	 *
+	 *  @see mx.controls.dataGridClasses.FTEDataGridItemRenderer
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 4
+	 */
+	public class FTEDataGridItemRendererAutomationImpl extends UIFTETextFieldAutomationImpl
+	{
+
+		include "../../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(FTEDataGridItemRenderer, FTEDataGridItemRendererAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj FTEDataGridItemRenderer object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public function FTEDataGridItemRendererAutomationImpl(obj:FTEDataGridItemRenderer)
+		{
+			super(obj);
+		}
+
+		/**
+		 *  @private
+		 */
+		protected function get itemRenderer():FTEDataGridItemRenderer
+		{
+			return uiFTETextField as FTEDataGridItemRenderer;
+		}
+	}
+}


fixed typo

fixed typo

--- WeaveAPI/src/weave/api/core/ISessionManager.as
+++ WeaveAPI/src/weave/api/core/ISessionManager.as
@@ -112,7 +112,7 @@
 		 * @return An Array containing a list of descendant objects.
 		 * @see #getLinkableOwner()
 		 */
-		function getLinkableDescendants(root:ILinkableObject, flter:Class = null):Array;
+		function getLinkableDescendants(root:ILinkableObject, filter:Class = null):Array;

 		/**
 		 * This will assign an asynchronous task to a linkable object so that linkableObjectIsBusy(busyObject)


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

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


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

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


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

--- frameworks/projects/framework/src/mx/core/IDataRenderer.as
+++ frameworks/projects/framework/src/mx/core/IDataRenderer.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
 {


FLEX-26808
CAUSE: DataGrid.grid_mouseDownHandler() committed the selection before checking whether the user was likely to begin a drag operation.

SOLUTION: Following the pattern in the spark List component, we're committing the selection on MOUSE_DOWN only if the user has clicked on an item which isn't selected yet, or the grid is not dragEnabled, or we're not in row selection mode (i.e. either GridSelectionMode.SINGLE_ROW or  GridSelectionMode.MULTIPLE_ROWS). But when it looks like the user might start a dragOperation, we're deferring the selection adjustment to the MOUSE_UP event (caught either in DataGrid.grid_mouseUpHandler() or in DataGrid.sandbox_mouseUpHandler() ).

NOTES:
-also removed some duplication between DataGrid.grid_mouseDownHandler() and DataGrid.removeMouseHandlersForDragStart().
-also corrected some asdocs @see references.

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -5600,6 +5600,8 @@
             grid.hoverColumnIndex = event.columnIndex;
             updateHoverOnRollOver = true;
         }
+
+        removeMouseHandlersForDragStart(event);
     }

     /**
@@ -5620,40 +5622,15 @@
         if (rowIndex == -1 || isCellSelection && columnIndex == -1)
             return;

-
-        if (event.ctrlKey)
-        {
-            // ctrl-click toggles the selection and updates caret and anchor.
-            if (!toggleSelection(rowIndex, columnIndex))
-                return;
-
-            grid.anchorRowIndex = rowIndex;
-            grid.anchorColumnIndex = columnIndex;
+        if (dragEnabled && isRowSelectionMode() && selectionContainsIndex(rowIndex))
+        {
+            pendingSelectionOnMouseUp = true;
         }
         else
         {
-            if (event.shiftKey)
-            {
-                // shift-click extends the selection and updates the caret.
-                if  (grid.selectionMode == GridSelectionMode.MULTIPLE_ROWS || grid.selectionMode == GridSelectionMode.MULTIPLE_CELLS)
-                {
-                    if (!extendSelection(rowIndex, columnIndex))
-                        return;
-                }
-            }
-            else
-            {
-                // click sets the selection and updates the caret and anchor positions.
-                setSelectionAnchorCaret(rowIndex, columnIndex);
-            }
-        }
-
-
-        if (dragEnabled && isRowSelectionMode() && selectionContainsIndex(rowIndex))
-        {
-            pendingSelectionOnMouseUp = true;
-        }
-
+            adjustSelection(event, rowIndex, columnIndex);
+        }
+
         // If selection is pending on mouse up then we have just moused down on
         // an item, part of an already commited selection.
         // However if we moused down on an item that's not currently selected,
@@ -5667,14 +5644,14 @@
         mouseDownRowIndex = rowIndex;
         mouseDownColumnIndex = columnIndex;

-        var listenForDrag:Boolean = (dragEnabled &&
+        var listenForDrag:Boolean = dragEnabled &&
             getStyle("interactionMode") == InteractionMode.MOUSE && selectedIndices &&
-            this.selectedIndices.indexOf(rowIndex) != -1);
+            this.selectedIndices.indexOf(rowIndex) != -1;
         // Handle any drag gestures that may have been started
         if (listenForDrag)
         {
             // Listen for GRID_MOUSE_DRAG.
-            // The user may have cliked on the item renderer close
+            // The user may have clicked on the item renderer close
             // to the edge of the list, and we still want to start a drag
             // operation if they move out of the list.
             grid.addEventListener(GridEvent.GRID_MOUSE_DRAG, grid_mouseDragHandler);
@@ -5698,6 +5675,30 @@

     }

+    private function adjustSelection(event:MouseEvent, rowIndex:int, columnIndex:int):void
+    {
+        if (event.ctrlKey)
+        {
+            // ctrl-click toggles the selection and updates caret and anchor.
+            if (!toggleSelection(rowIndex, columnIndex))
+                return;
+
+            grid.anchorRowIndex = rowIndex;
+            grid.anchorColumnIndex = columnIndex;
+        }
+        else if (event.shiftKey)
+        {
+            // shift-click extends the selection and updates the caret.
+            if  (grid.selectionMode == GridSelectionMode.MULTIPLE_ROWS || grid.selectionMode == GridSelectionMode.MULTIPLE_CELLS)
+                extendSelection(rowIndex, columnIndex);
+        }
+        else
+        {
+            // click sets the selection and updates the caret and anchor positions.
+            setSelectionAnchorCaret(rowIndex, columnIndex);
+        }
+    }
+
     /**
      *  @private
      *  Redispatch the grid's "caretChange" event.
@@ -6189,40 +6190,11 @@
         }
     }

-    private function removeMouseHandlersForDragStart(event:GridEvent):void
+    private function removeMouseHandlersForDragStart(event:MouseEvent):void
     {
         // If dragging failed, but we had a pending selection, commit it here
         if (pendingSelectionOnMouseUp && !DragManager.isDragging)
-        {
-            const rowIndex:int = mouseDownRowIndex;
-            const columnIndex:int = mouseDownColumnIndex;
-
-            if (event.ctrlKey)
-            {
-                // ctrl-click toggles the selection and updates caret and anchor.
-                if (!toggleSelection(rowIndex, columnIndex))
-                    return;
-
-                grid.anchorRowIndex = rowIndex;
-                grid.anchorColumnIndex = columnIndex;
-            }
-            else if (event.shiftKey)
-            {
-                // shift-click extends the selection and updates the caret.
-                if  (grid.selectionMode == GridSelectionMode.MULTIPLE_ROWS ||
-                    grid.selectionMode == GridSelectionMode.MULTIPLE_CELLS)
-                {
-                    if (!extendSelection(rowIndex, columnIndex))
-                        return;
-                }
-            }
-            else
-            {
-                // click sets the selection and updates the caret and anchor
-                // positions.
-                setSelectionAnchorCaret(rowIndex, columnIndex);
-            }
-        }
+            adjustSelection(event, mouseDownRowIndex, mouseDownColumnIndex);

         // Always clean up the flag, even if currently dragging.
         pendingSelectionOnMouseUp = false;
@@ -6371,8 +6343,8 @@
      *
      *  @param event The DragEvent object.
      *
-     *  @see spark.layouts.LayoutBase#showDropIndicator
-     *  @see spark.layouts.LayoutBase#hideDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#showDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#hideDropIndicator
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -6428,8 +6400,8 @@
      *
      *  @param event The DragEvent object.
      *
-     *  @see spark.layouts.LayoutBase#showDropIndicator
-     *  @see spark.layouts.LayoutBase#hideDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#showDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#hideDropIndicator
      *
      *  @langversion 3.0
      *  @playerversion Flash 11
@@ -6479,8 +6451,8 @@
      *
      *  @param event The DragEvent object.
      *
-     *  @see spark.layouts.LayoutBase#showDropIndicator
-     *  @see spark.layouts.LayoutBase#hideDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#showDropIndicator
+     *  @see spark.layouts.supportClasses.LayoutBase#hideDropIndicator
      *
      *  @langversion 3.0
      *  @playerversion Flash 11


Transferred from the Adobe Open Source Subversion Repository

Revision: 17240
Author:   pdehaan@adobe.com
Date:     2010-08-09T21:25:38.968277Z

Log Message:
-----------
Adding some LangRef examples (hopefully).

QE notes: Confirm in tomorrow's nightly LangRef build.
Doc notes: no.
Bugs:
Reviewer: no.
Tests run: no.
Is noteworthy for integration: not at all.

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/StackedFormSkinExample.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/FormItemExample.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/FormExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Form.as</path>

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

--- frameworks/projects/spark/src/spark/components/FormItem.as
+++ frameworks/projects/spark/src/spark/components/FormItem.as
@@ -59,7 +59,9 @@
  *  are the content and are placed in the contentGroup skin part. The FormItem
  *  container defines a number of skin parts, including labelDisplay,
  *  sequenceLabelDisplay, and helpContentGroup. The content of these skin parts are
- *  specified in order by the label, sequenceLabel and helpContent properties.
+ *  specified in order by the label, sequenceLabel and helpContent properties.
+ *
+ *  @includeExample examples/FormItemExample.mxml
  */
 public class FormItem extends SkinnableContainer
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2800
Author:   jimurphy@adobe.com
Date:     2008-08-11T16:49:08.694923Z

Log Message:
-----------
integrate:
Vellum build 147
player build 571

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_importExport.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/install_flash_player_10_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_model.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/FlashPlayer.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/mac/Flash Player.app.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_edit.swc</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -22,9 +22,9 @@

 import text.importExport.TextFilter;
 import text.model.FlowElement;
-import text.model.ICharacterAttributes;
-import text.model.IContainerAttributes;
-import text.model.IParagraphAttributes;
+import text.model.ICharacterFormat;
+import text.model.IContainerFormat;
+import text.model.IParagraphFormat;
 import text.model.Paragraph;
 import text.model.Span;
 import text.model.TextFlow;
@@ -68,7 +68,7 @@

     /**
      *  @private
-     *  This set keeps track of which text attributes were specified
+     *  This set keeps track of which text formats were specified
      *  on the graphic element's TextFlow as opposed to on the
      *  graphic element itself.
      *
@@ -84,7 +84,7 @@
      *
      *  then this set would be { fontSize: 20 }.
      */
-    private var textFlowTextAttributes:Object = {};
+    private var textFlowTextFormat:Object = {};

 	/**
 	 *  @private
@@ -103,7 +103,7 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Properties: Text Attributes
+	//  Properties: Text formatting
 	//
 	//--------------------------------------------------------------------------

@@ -653,12 +653,12 @@
                 else if (content is Array)
                 {
                     textFlow = createEmptyTextFlow();
-                    textFlow.appendChildren = content as Array;
+                    textFlow.mxmlChildren = content as Array;
                 }
                 else if (content is FlowElement)
                 {
                     textFlow = createEmptyTextFlow();
-                    textFlow.appendChildren = [ content ];
+                    textFlow.mxmlChildren = [ content ];
                 }
 			    else if (content is String)
 			    {
@@ -685,41 +685,41 @@
 			    }
             }

-            // Build a textFlowTextAttributes object which keeps track
-            // of which text attributes were specified on the TextFlow
+            // Build a textFlowTextFormat object which keeps track
+            // of which text formats were specified on the TextFlow
             // as opposed to on the TextGraphic.
             // For example, if the 'content' were
             // <TextFlow fontSize="12">...</TextFlow>
-            // then the textFlowTextAttributes would be { fontSize: 12 }.
+            // then the textFlowTextFormat would be { fontSize: 12 }.

-            var containerAttributes:IContainerAttributes =
-                textFlow.containerAttributes;
-            var paragraphAttributes:IParagraphAttributes =
-                textFlow.paragraphAttributes;
-            var characterAttributes:ICharacterAttributes =
-                textFlow.characterAttributes;
+            var containerFormat:IContainerFormat =
+                textFlow.containerFormat;
+            var paragraphFormat:IParagraphFormat =
+                textFlow.paragraphFormat;
+            var characterFormat:ICharacterFormat =
+                textFlow.characterFormat;

-            for each (p in TextUtil.ALL_ATTRIBUTE_NAMES)
+            for each (p in TextUtil.ALL_FORMAT_NAMES)
             {
-                var kind:String = TextUtil.ATTRIBUTE_MAP[p];
+                var kind:String = TextUtil.FORMAT_MAP[p];

                 if (kind == TextUtil.CONTAINER &&
-                    containerAttributes != null &&
-                    containerAttributes[p] != null)
+                    containerFormat != null &&
+                    containerFormat[p] != null)
                 {
-                    textFlowTextAttributes[p] = containerAttributes[p];
+                    textFlowTextFormat[p] = containerFormat[p];
                 }
                 else if (kind == TextUtil.PARAGRAPH &&
-                         paragraphAttributes != null &&
-                         paragraphAttributes[p] != null)
+                         paragraphFormat != null &&
+                         paragraphFormat[p] != null)
                 {
-                    textFlowTextAttributes[p] = paragraphAttributes[p];
+                    textFlowTextFormat[p] = paragraphFormat[p];
                 }
                 else if (kind == TextUtil.CHARACTER &&
-                         characterAttributes != null &&
-                         characterAttributes[p] != null)
+                         characterFormat != null &&
+                         characterFormat[p] != null)
                 {
-                    textFlowTextAttributes[p] = characterAttributes[p];
+                    textFlowTextFormat[p] = characterFormat[p];
                 }
             }
         }
@@ -730,9 +730,9 @@
         // For each attribute whose value wasn't specified by the TextFlow,
         // apply the value from the TextGraphic.

-        for each (p in TextUtil.ALL_ATTRIBUTE_NAMES)
+        for each (p in TextUtil.ALL_FORMAT_NAMES)
         {
-            if (!(p in textFlowTextAttributes) && (p in this))
+            if (!(p in textFlowTextFormat) && (p in this))
                 textFlow[p] = this[p];
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19303
Author:   smgilson@adobe.com
Date:     2010-12-12T17:37:29.894867Z

Log Message:
-----------
fix invalid HTML in ASDoc tag in Scroller.as

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -64,14 +64,14 @@
  *  The height of the step is determined by the viewport's
  *  getVerticalScrollPositionDelta method using
  *  either UP or DOWN, depending on the scroll
- *  direction.

+ *  direction.

  *
  *
Otherwise, if there is a visible horizontalScrollBar, then by default
  *  the viewport is scrolled horizontally by event.delta "steps".
  *  The width of the step is determined by the viewport's
  *  getHorizontalScrollPositionDelta method using
  *  either LEFT or RIGHT, depending on the scroll
- *  direction.

+ *  direction.

  *
  *
Calling the preventDefault() method
  *  on the event prevents the scroll position from changing.
@@ -2353,7 +2353,7 @@
                 var scrollStartEvent:TouchInteractionEvent = new TouchInteractionEvent(TouchInteractionEvent.TOUCH_INTERACTION_START, true, true);
                 scrollStartEvent.relatedObject = scroller;
                 scrollStartEvent.reason = TouchInteractionReason.SCROLL;
-				dispatchBubblingEventOnMouseDownedDisplayObject(scrollStartEvent);
+                dispatchBubblingEventOnMouseDownedDisplayObject(scrollStartEvent);

                 isScrolling = true;

@@ -2468,13 +2468,13 @@
         }
         averageDt /= len-1;

-		// if off screen for some reason, let's end scrolling:
-		if (!scroller.stage)
-		{
+        // if off screen for some reason, let's end scrolling:
+        if (!scroller.stage)
+        {
             endTouchScroll();
-			return;
-		}
-
+            return;
+        }
+
         var lastMouseEventPoint:Point = mouseEventCoordinatesHistory[endIndex];

         // calculate the last velocity and make sure there was no pause that occurred
@@ -2570,40 +2570,40 @@

         return new Point(velX,velY);
     }
-
-	/**
-	 *  @private
-	 *  Helper method to dispatch bubbling events on mouseDownDisplayObject.  Since this
-	 *  object can be off the display list, this may be tricky.  Technically, we should
-	 *  grab all the live objects at the time of mouseDown and dispatch events to them
-	 *  manually, but instead, we just use this heuristic, which is dispatch it to
-	 *  mouseDownedDisplayObject.  If it's not inside of scroller and off the display list,
-	 *  then dispatch to scroller as well.
-	 *
-	 *
If you absolutely need to know the touch event ended, add event listeners
-	 *  to the mouseDownedDisplayObject directly and don't rely on event
-	 *  bubbling.

-	 */
-	private function dispatchBubblingEventOnMouseDownedDisplayObject(event:Event):Boolean
-	{
-		var eventAccepted:Boolean = true;
-		if (mouseDownedDisplayObject)
-		{
-			eventAccepted = eventAccepted && mouseDownedDisplayObject.dispatchEvent(event);
-			if (!mouseDownedDisplayObject.stage)
-			{
-				if (scroller && !scroller.contains(mouseDownedDisplayObject))
-					eventAccepted = eventAccepted && scroller.dispatchEvent(event);
-			}
-		}
-		else
-		{
-			eventAccepted = eventAccepted && scroller.dispatchEvent(event);
-		}
-
-		return eventAccepted;
-	}
-
+
+    /**
+     *  @private
+     *  Helper method to dispatch bubbling events on mouseDownDisplayObject.  Since this
+     *  object can be off the display list, this may be tricky.  Technically, we should
+     *  grab all the live objects at the time of mouseDown and dispatch events to them
+     *  manually, but instead, we just use this heuristic, which is dispatch it to
+     *  mouseDownedDisplayObject.  If it's not inside of scroller and off the display list,
+     *  then dispatch to scroller as well.
+     *
+     *
If you absolutely need to know the touch event ended, add event listeners
+     *  to the mouseDownedDisplayObject directly and don't rely on event
+     *  bubbling.

+     */
+    private function dispatchBubblingEventOnMouseDownedDisplayObject(event:Event):Boolean
+    {
+        var eventAccepted:Boolean = true;
+        if (mouseDownedDisplayObject)
+        {
+            eventAccepted = eventAccepted && mouseDownedDisplayObject.dispatchEvent(event);
+            if (!mouseDownedDisplayObject.stage)
+            {
+                if (scroller && !scroller.contains(mouseDownedDisplayObject))
+                    eventAccepted = eventAccepted && scroller.dispatchEvent(event);
+            }
+        }
+        else
+        {
+            eventAccepted = eventAccepted && scroller.dispatchEvent(event);
+        }
+
+        return eventAccepted;
+    }
+
     /**
      *  @private
      *  When the touchScrollThrow is over, we should dispatch a touchInteractionEnd.
@@ -2615,7 +2615,7 @@
         var scrollEndEvent:TouchInteractionEvent = new TouchInteractionEvent(TouchInteractionEvent.TOUCH_INTERACTION_END, true);
         scrollEndEvent.relatedObject = scroller;
         scrollEndEvent.reason = TouchInteractionReason.SCROLL;
-		dispatchBubblingEventOnMouseDownedDisplayObject(scrollEndEvent);
+        dispatchBubblingEventOnMouseDownedDisplayObject(scrollEndEvent);
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6669
Author:   hmuller@adobe.com
Date:     2009-05-05T21:36:16.438768Z

Log Message:
-----------
Bug fix for a corner case that caused Scroller to loop.  Also: removed code from BasicLayout::measure() that set the content size.

QE Notes:
Doc Notes:
Bugs: sdk-20920
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -248,8 +248,6 @@

         layoutTarget.measuredMinWidth = minWidth;
         layoutTarget.measuredMinHeight = minHeight;
-
-        layoutTarget.setContentSize(layoutTarget.measuredWidth, layoutTarget.measuredHeight);
     }

     /**


FP.choose(array) now returns a random selection from the provided array.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -114,6 +114,7 @@
 		 */
 		public static function choose(...objs):*
 		{
+			if (objs.length == 1 && objs[0] is Array) objs = objs[0];
 			return objs[int(objs.length * random)];
 		}


Warn if custom easing is detected.

Warn if custom easing is detected.

--- runtime/src/main/as/flump/xfl/XflKeyframe.as
+++ runtime/src/main/as/flump/xfl/XflKeyframe.as
@@ -70,6 +70,10 @@

         if (symbolXml == null) return; // Purely labelled frame

+        if (xml.tweens != null) {
+            addError(ParseError.WARN, "Custom easing is not supported");
+        }
+
         var symbolConverter :XmlConverter = new XmlConverter(symbolXml);
         id = libraryItem = symbolConverter.getStringAttr("libraryItemName");
         visible = symbolConverter.getBooleanAttr("isVisible", true);


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/mx/src/mx/controls/CheckBox.as
+++ frameworks/projects/mx/src/mx/controls/CheckBox.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.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 32
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-18T23:44:07.911233Z

Log Message:
-----------
Perforce Change 191390 by aharui@aharui-pc2 on 2007/12/18 18:42:52 Hide even more offscreen* properties from DataGrid ASDoc Bugs: SDK-13976 QA: Doc:

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -343,6 +343,13 @@
 [Exclude(name="iconFunction", kind="property")]
 [Exclude(name="labelField", kind="property")]
 [Exclude(name="offscreenExtraRowsOrColumns", kind="property")]
+[Exclude(name="offscreenExtraRows", kind="property")]
+[Exclude(name="offscreenExtraRowsTop", kind="property")]
+[Exclude(name="offscreenExtraRowsBottom", kind="property")]
+[Exclude(name="offscreenExtraColumns", kind="property")]
+[Exclude(name="offscreenExtraColumnsLeft", kind="property")]
+[Exclude(name="offscreenExtraColumnsRight", kind="property")]
+[Exclude(name="offscreenExtraRowsOrColumnsChanged", kind="property")]
 [Exclude(name="showDataTips", kind="property")]
 [Exclude(name="cornerRadius", kind="style")]


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -3525,7 +3525,6 @@
         }

-        var tmpHeight:Number = unscaledHeight - 1; // FIXME: can remove?
         var lineCol:uint;

         var i:int;


Remove unused CLIENT_ADDRESS and CLIENT_PORT.

--- swfcat.as
+++ swfcat.as
@@ -13,8 +13,6 @@
     {
         private const TOR_ADDRESS:String = "173.255.221.44";
         private const TOR_PORT:int = 9001;
-        private const CLIENT_ADDRESS:String = "192.168.0.2";
-        private const CLIENT_PORT:int = 9001;

         private var output_text:TextField;


Corrected the constructor

Corrected the constructor

--- src/Modi/ManagedPoint.as
+++ src/Modi/ManagedPoint.as
@@ -21,7 +21,7 @@
         private var _y:Number;
         private var _x:Number;

-        public function _ManagedPoint()
+        public function ManagedPoint()
         {
             this.registerAttributes(ATTRIBUTES, ATTRIBUTES_TYPES);
         }
@@ -73,6 +73,11 @@
             return this._x;
         }

+        public function get point():Point
+        {
+            return new Point(_x, _y);
+        }
+
         public function set XDirectUnsafe(x:Number):void
         {
             this._x = x;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10002
Author:   jszeto@adobe.com
Date:     2009-09-03T20:17:09.808992Z

Log Message:
-----------
Gradient matrix transform fix

http://bugs.adobe.com/jira/browse/SDK-22928 - Gradient matrix transform applying incorrect transforms

Previously, the logic transformed the gradient to fill the shape bounds and then combined the matrix transform. Now using the same values for the discreet transform properties versus the matrix properties should result in the same appearance.

These changes are applied to LinearGradient, RadialGradient, LinearGradientStroke and RadialGradientStroke.

QE notes: Matrix transform behavior has changed
Doc notes: Need info on matrix behavior
Bugs: SDK-22928
Reviewer: Glenn
Tests run: spark/primitives
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as
@@ -338,10 +338,10 @@
 	        matrix.translate(regX, regY);
         }
         else
-        {
-            matrix.scale (rect.width / GRADIENT_DIMENSION, rect.height / GRADIENT_DIMENSION);
+        {
+            matrix.scale(1 / GRADIENT_DIMENSION, 1 / GRADIENT_DIMENSION);
+            matrix.concat(compoundTransform.matrix);
             matrix.translate(rect.left, rect.top);
-            matrix.concat(compoundTransform.matrix);
         }
     }


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

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


[StreamBuffer] Set to use com.pivotshare.hls.loader.FragmentLoader

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -6,6 +6,7 @@
     import flash.events.TimerEvent;
     import flash.utils.Dictionary;
     import flash.utils.Timer;
+    import com.pivotshare.hls.loader.FragmentLoader;
     import org.mangui.hls.constant.HLSLoaderTypes;
     import org.mangui.hls.constant.HLSPlayStates;
     import org.mangui.hls.constant.HLSSeekMode;
@@ -19,7 +20,6 @@
     import org.mangui.hls.HLS;
     import org.mangui.hls.HLSSettings;
     import org.mangui.hls.loader.AltAudioFragmentLoader;
-    import org.mangui.hls.loader.FragmentLoader;
     import org.mangui.hls.model.AudioTrack;
     import org.mangui.hls.model.Fragment;


Make leavePlace() properly NOOP if we're not in a place.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4980 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/crowd/client/LocationDirector.as
+++ src/as/com/threerings/crowd/client/LocationDirector.as
@@ -211,11 +211,14 @@
             return false;
         }

-        _lservice.leavePlace(_cctx.getClient());
-        didLeavePlace();
-
-        // let our observers know that we're no longer in a location
-        _observers.apply(didChangeOp);
+        // if we're not actually in a place, then no need to do anything
+        if (_placeId < 0) {
+            _lservice.leavePlace(_cctx.getClient());
+            didLeavePlace();
+
+            // let our observers know that we're no longer in a location
+            _observers.apply(didChangeOp);
+        }

         return true;
     }


M Use getVertexAttribute on ShaderPart shortcuts to avoid code duplication

--- src/aerys/minko/render/shader/part/ShaderPart.as
+++ src/aerys/minko/render/shader/part/ShaderPart.as
@@ -44,7 +44,7 @@

 		protected function get vertexId() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.ID));
+			return getVertexAttribute(VertexComponent.ID);
 		}

 		/**
@@ -54,12 +54,12 @@
 		 */
 		protected function get vertexXYZ() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.XYZ));
+			return getVertexAttribute(VertexComponent.XYZ);
 		}

 		protected function get vertexXY() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.XY));
+			return getVertexAttribute(VertexComponent.XY);
 		}

 		/**
@@ -69,7 +69,7 @@
 		 */
 		protected function get vertexRGBColor() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.RGB));
+			return getVertexAttribute(VertexComponent.RGB);
 		}

 		/**
@@ -79,7 +79,7 @@
 		 */
 		protected function get vertexRGBAColor() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.RGBA));
+			return getVertexAttribute(VertexComponent.RGBA);
 		}

 		/**
@@ -89,7 +89,7 @@
 		 */
 		protected function get vertexUV() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.UV));
+			return getVertexAttribute(VertexComponent.UV);
 		}

 		/**
@@ -99,7 +99,7 @@
 		 */
 		protected function get vertexNormal() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.NORMAL));
+			return getVertexAttribute(VertexComponent.NORMAL);
 		}

 		/**
@@ -109,7 +109,7 @@
 		 */
 		protected function get vertexTangent() : SFloat
 		{
-			return new SFloat(new Attribute(VertexComponent.TANGENT));
+			return getVertexAttribute(VertexComponent.TANGENT);
 		}

 		protected function get localToWorldMatrix() : SFloat


Bug 526662: fix testcase to use the proper AddTestCase() framework which is required. (r=self)

--- test/acceptance/misc/bug_526662.as
+++ test/acceptance/misc/bug_526662.as
@@ -15,7 +15,7 @@
 *
 * The Initial Developer of the Original Code is
 * Adobe System Incorporated.
-* Portions created by the Initial Developer are Copyright (C) 2008
+* Portions created by the Initial Developer are Copyright (C) 2009
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
@@ -49,8 +49,7 @@
     }
 }

-function test()
-{
+
     XML.prettyPrinting = false;
     XML.prettyIndent = 0;

@@ -88,14 +87,12 @@
     // the XML parser stops at the first zero char, regardless of length
 	results.push({expected: "Error #1085", actual: r});

-	for (var i in results)
-	{
-		var o = results[i]
-		if (o.actual == o.expected)
-			print("test "+i+" PASSED!");
-		else
-			print("test "+i+" FAILED! expected "+o.expected+" got "+o.actual);
-	}
+
+startTest();
+for (var i in results)
+{
+    var o = results[i]
+    AddTestCase("test_"+i, o.expected.toString(), o.actual.toString());
 }

-test()
+test();


Added utility method

Added utility method

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/ObjectUtil.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/ObjectUtil.as
@@ -1,37 +1,46 @@
-package org.openforis.collect.util
-{
-	/**
-	 * @author S. Ricci
-	 */
-	public class ObjectUtil
-	{
-
-		/**
-		 * returns the value of a property (even if it is nested)
-		 */
-		public static function getValue(item:Object, propertyName:String):* {
-			if(item != null) {
-				var indexOfDot:int = propertyName.indexOf(".");
-				if(indexOfDot > 0) {
-					var mainProp:String = propertyName.substr(0, indexOfDot);
-					if(item.hasOwnProperty(mainProp)) {
-						var mainObj:Object = item[mainProp];
-						var subProp:String = propertyName.substr(indexOfDot + 1);
-						return getValue(mainObj, subProp);
-					}
-				} else if(item.hasOwnProperty(propertyName)) {
-					return item[propertyName];
-				}
-			}
-			return null;
-		}
-
-		public static function isNull(item:Object):Boolean {
-			return (item is Number && isNaN(Number(item))) || item == null;
-		}
-
-		public static function isNotNull(item:Object):Boolean {
-			return ! isNull(item);
-		}
-	}
+package org.openforis.collect.util
+{
+	/**
+	 * @author S. Ricci
+	 */
+	public class ObjectUtil
+	{
+
+		/**
+		 * returns the value of a property (even if it is nested)
+		 */
+		public static function getValue(item:Object, propertyName:String):* {
+			if(item != null) {
+				var indexOfDot:int = propertyName.indexOf(".");
+				if(indexOfDot > 0) {
+					var mainProp:String = propertyName.substr(0, indexOfDot);
+					if(item.hasOwnProperty(mainProp)) {
+						var mainObj:Object = item[mainProp];
+						var subProp:String = propertyName.substr(indexOfDot + 1);
+						return getValue(mainObj, subProp);
+					}
+				} else if(item.hasOwnProperty(propertyName)) {
+					return item[propertyName];
+				}
+			}
+			return null;
+		}
+
+		public static function isNull(item:Object):Boolean {
+			return (item is Number && isNaN(Number(item))) || item == null;
+		}
+
+		public static function isNotNull(item:Object):Boolean {
+			return ! isNull(item);
+		}
+
+		public static function isNumber(value:Object):Boolean {
+			return ! isNaN(Number(value));
+		}
+
+		public static function toNumber(item:Object):Number {
+			var result:Number = Number(item);
+			return result;
+		}
+	}
 }


bump version to 3.9.5

bump version to 3.9.5

--- kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
+++ kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
@@ -32,7 +32,7 @@
 		/**
 		 * The current version of the KDP.
 		 */
-		public var kdpVersion : String = "v3.9.4";
+		public var kdpVersion : String = "v3.9.5";

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 586
Author:   gosmith@adobe.com
Date:     2008-02-21T02:36:48.924706Z

Log Message:
-----------
The trunk now thinks it is Flex 4 rather than Flex 3.

The command-line tools report their version as "4.0.0 build NNNNN" because I updated FLEX_MAJOR_VERSION in VersionInfo.jara.

There is a new constant, VERSION_4_0, in the runtime FlexVersion class with the value 0x04000000, and CURRENT_VERSION is now this version.

The defaults.css for Flex 3's framework.swc has been renamed to defaults-3.0.0.css. The 'version' style in defaults.css now has the value "4.0.0".

The VERSION constant included into component classes is now "4.0.0.0".

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/defaults-3.0.0.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

--- frameworks/projects/rpc/src/mx/core/Version.as
+++ frameworks/projects/rpc/src/mx/core/Version.as
@@ -14,4 +14,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "3.0.0.0";
+mx_internal static const VERSION:String = "4.0.0.0";


Resolved audio track switching issue to prevent audio drop out when switching alt audio

--- src/org/mangui/hls/loader/AltAudioLevelLoader.as
+++ src/org/mangui/hls/loader/AltAudioLevelLoader.as
@@ -127,7 +127,7 @@
             var audioTrack : AudioTrack = _hls.audioTracks[_currentTrack];
             if (audioTrack.source == AudioTrack.FROM_PLAYLIST) {
                 var altAudioTrack : AltAudioTrack = _hls.altAudioTracks[audioTrack.id];
-                if (altAudioTrack.url && audioTrack.level == null) {
+                if (altAudioTrack.url) {
                     CONFIG::LOGGING {
                         Log.debug("switch to audio track " + _currentTrack + ", load Playlist");
                     }


Fix textureResource to handle properly atf textures

--- src/aerys/minko/render/resource/texture/TextureResource.as
+++ src/aerys/minko/render/resource/texture/TextureResource.as
@@ -1,6 +1,7 @@
 package aerys.minko.render.resource.texture
 {
 	import aerys.minko.render.resource.Context3DResource;
+	import aerys.minko.type.enum.SamplerFormat;

 	import flash.display.BitmapData;
 	import flash.display3D.Context3DTextureFormat;
@@ -22,19 +23,32 @@
 		private static const FORMAT_COMPRESSED			: String	= Context3DTextureFormat.COMPRESSED;
 		private static const FORMAT_COMPRESSED_ALPHA 	: String 	= Context3DTextureFormat.COMPRESSED_ALPHA;

-		private var _texture	: Texture		= null;
-		private var _mipmap		: Boolean		= false;
-
-		private var _bitmapData	: BitmapData	= null;
-		private var _atf		: ByteArray		= null;
-		private var _atfFormat	: uint			= 0;
-
-		private var _width		: Number		= 0;
-		private var _height		: Number		= 0;
-
-		private var _update		: Boolean		= false;
-		private var _resize		: Boolean		= false;
-
+		private static const TEXTURE_FORMAT_TO_SAMPLER	: Array 	= []
+		{
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_BGRA] 				= SamplerFormat.RGBA;
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_COMPRESSED] 		= SamplerFormat.COMPRESSED;
+			TEXTURE_FORMAT_TO_SAMPLER[FORMAT_COMPRESSED_ALPHA] 	= SamplerFormat.COMPRESSED_ALPHA;
+		}
+
+		private var _texture		: Texture		= null;
+		private var _mipmap			: Boolean		= false;
+
+		private var _bitmapData		: BitmapData	= null;
+		private var _atf			: ByteArray		= null;
+		private var _atfFormat		: uint			= 0;
+		private var _format 		: String 		= FORMAT_BGRA;
+
+		private var _width			: Number		= 0;
+		private var _height			: Number		= 0;
+
+		private var _update			: Boolean		= false;
+		private var _resize			: Boolean		= false;
+
+		public function get samplerFormat() : uint
+		{
+			return TEXTURE_FORMAT_TO_SAMPLER[_format];
+		}
+
 		public function get width() : uint
 		{
 			return _width;
@@ -133,6 +147,12 @@
 			_mipmap 		= atf.readUnsignedByte() > 1;

 			atf.position 	= 0;
+
+			if (_atfFormat == 5)
+				_format = FORMAT_COMPRESSED_ALPHA;
+			else if (_atfFormat == 3)
+				_format = FORMAT_COMPRESSED;
+
 		}

 		public function getNativeTexture(context : Context3DResource) : TextureBase
@@ -144,20 +164,10 @@
 				if (_texture)
 					_texture.dispose();

-				var format : String = FORMAT_BGRA;
-
-				if (_atf)
-				{
-					if (_atfFormat == 5)
-						format = FORMAT_COMPRESSED_ALPHA;
-					else if (_atfFormat == 3)
-						format = FORMAT_COMPRESSED;
-				}
-
 				_texture = context.createTexture(
 					_width,
 					_height,
-					format,
+					_format,
 					_bitmapData == null && _atf == null
 				);


Transferred from the Adobe Open Source Subversion Repository

Revision: 19316
Author:   smgilson@adobe.com
Date:     2010-12-13T19:12:21.336750Z

Log Message:
-----------
ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -31,13 +31,32 @@

 /**
  *  The ViewNavigatorBase class defines the base class logic and
- *  interface used by view navigators.  This class contains
- *  methods and properties related to view management, as well
- *  as integration points with ViewNavigatorApplicationBase application
+ *  interface used by view navigators.
+ *  This class contains methods and properties related to view management,
+ *  as well as integration points with ViewNavigatorApplicationBase application
  *  classes.
+ *
+ *  @mxml
The <s:ViewNavigatorBase> tag inherits
+ *  all of the tag attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:ViewNavigatorBase
+ *    Properties
+ *    destructionPolicy="auto"
+ *    icon="null"
+ *    label="null"
+ *    overlayControls="true"
+ *    transitionsEnabled="true"
+ *  />
+ *

  *
  *  @see spark.components.ViewNavigator
  *  @see spark.components.ViewNavigatorApplication
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
  */
 public class ViewNavigatorBase extends SkinnableContainer
 {
@@ -64,24 +83,24 @@
         _navigationStack = new NavigationStack();
     }

-	//--------------------------------------------------------------------------
-	//
-	// Variables
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  This private variable is used to indicate that the navigator shouldn't play
-	 *  the pending visibility animation for the chrome components that it controls
-	 *  (e.g, ActionBar and TabBar).  This flag is set to true when the stage changes
-	 *  orientation.  This allows the framework to prevent the hide/show animation
-	 *  from playing when the controls are hidden in either landscape or portrait.
-	 *
-	 *  See SDK-28541 for more information.
-	 */
-	mx_internal var disableNextControlAnimation:Boolean = false;
-
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  This private variable is used to indicate that the navigator shouldn't play
+     *  the pending visibility animation for the chrome components that it controls
+     *  (e.g, ActionBar and TabBar).  This flag is set to true when the stage changes
+     *  orientation.  This allows the framework to prevent the hide/show animation
+     *  from playing when the controls are hidden in either landscape or portrait.
+     *
+     *  See SDK-28541 for more information.
+     */
+    mx_internal var disableNextControlAnimation:Boolean = false;
+
     //--------------------------------------------------------------------------
     //
     // Properties
@@ -95,13 +114,13 @@
     private var _active:Boolean = true;

     /**
-     *  Flag indicating whether the navigator is active.  The parent navigator
-     *  will automatically set this flag to true or false as its state changes.
+     *  Set to true when this navigator is active.
+     *  The parent navigator automatically sets this flag its state changes.
      *
      *  @default true
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -134,8 +153,8 @@
     //----------------------------------

     /**
-     *  The currently active view of the navigator.  Only one view can
-     *  be active at a time.
+     *  The currently active view of the navigator.
+     *  Only one view can be active at a time.
      *
      *  @default null
      *
@@ -166,7 +185,7 @@
      *  @default true
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -183,14 +202,17 @@

     [Inspectable(category="General", enumeration="auto,never", defaultValue="auto")]
     /**
-     *  Sets the destructionPolicy for the navigator.  This property determines
-     *  if the contents of the navigator should be destroyed when the navigator
-     *  is deactivated by another component, such as TabbedViewNavigator.
+     *  Sets the destruction policy for the view navigator.
+     *  If set to auto, the default, the contents of the view navigator
+     *  are destroyed when the navigator is deactivated by another component.
+     *  If set to never, the navigator is never destroyed.
      *
      *  @default auto
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *
+     *  @see spark.core.ContainerDestructionPolicy
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -214,13 +236,13 @@
     private var _icon:Class;

     /**
-     *  Returns the icon that should be used when this navigator is represented
+     *  The icon used when this navigator is represented
      *  by a visual component.
      *
      *  @default null
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -257,12 +279,12 @@

     [Bindable]
     /**
-     *  The label to be used when this stack is represented by a visual component.
+     *  The label used when this navigator is represented by a visual component.
      *
      *  @default null
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -320,6 +342,9 @@
     //  navigationStack
     //----------------------------------

+    /**
+     *  @private
+     */
     protected var _navigationStack:NavigationStack;

     /**
@@ -352,17 +377,21 @@
     private var _overlayControls:Boolean = false;

     /**
-     *  Flag indicates how the navigator's ui controls should be
-     *  laid out in relation to the active view.  If true, the view
-     *  will extend the entire content area of the component, and the
-     *  ui controls will hover on top.
-     *
-     *
Changing this property will result in a skin validation.

+     *  By default, the TabBar and ActionBar controls of a mobile application define
+     *  an area that cannot be used by the views of an application.
+     *  That means your content cannot use the full screen size of the mobile device.
+     *
+     *
If you set the overlayControls property to true,
+     *  the content area of the application spans the entire width and height of the screen.
+     *  The ActionBar and TabBar controls hover over the content area with an
+     *  alpha value of 0.5 so that they are partially transparent.

+     *
+     *
Changing this property results in a skin validation.

      *
      *  @default true
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -397,7 +426,7 @@
      *  @default null
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -421,14 +450,14 @@
     private var _transitionsEnabled:Boolean = true;

     /**
-     *  Flag indicating whether transitions are played by the
-     *  navigator when a view changes or when the actionBar or tab bar
-     *  visibility changes.
+     *  Set to true to enable view transitions
+     *  when a view changes, or when the ActionBar control or
+     *  TabBar control visibility changes.
      *
      *  @default true
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -455,7 +484,7 @@
      *  @private
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -470,15 +499,16 @@
     }

     /**
-     *  This method is responsible for serializing all data related to
+     *  Serializes all data related to
      *  the navigator's children into an object that can be saved
-     *  by the persistence manager.  This object will be sent to the
-     *  restoreViewData method when the navigator is reinstantiated.
+     *  by the persistence manager.
+     *  This returned object is passed to the restoreViewData()
+     *  method when the navigator is reinstantiated.
      *
      *  @return The object that represents the navigators state
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -488,14 +518,15 @@
     }

     /**
-     *  This method is responsible for restoring the navigator's view
-     *  data based on the object that is passed in.
-     *
-     *  @param value The saved object that should be used to restore
-     *  the navigators state
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  Restores the state of a navigator's view
+     *  from the value argument.
+     *  The object passed as the value argument is
+     *  created by a call to the saveViewData() method.
+     *
+     *  @param value The object used to restore the navigators state.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -509,13 +540,13 @@
     }

     /**
-     *  This method updates various properties of the navigator when a
+     *  Updates various properties of the navigator when a
      *  new view is added and activated.
      *
-     *  @param view The view that was added
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @param view The view that was added.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -534,7 +565,7 @@
      *  class, this method is called when the back device key is pressed.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -551,7 +582,7 @@
      *  @return Returns true if the screen can be removed
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -590,7 +621,7 @@
      */
     mx_internal function stage_orientationChangeHandler(event:StageOrientationEvent):void
     {
-		disableNextControlAnimation = true;
+        disableNextControlAnimation = true;
         invalidateSkinState();
     }


ps: CR-37802 - hide IOS captions from flash player

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@92124 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
+++ plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
@@ -8,6 +8,7 @@
 	import com.kaltura.kdpfl.model.SequenceProxy;
 	import com.kaltura.kdpfl.model.ServicesProxy;
 	import com.kaltura.kdpfl.model.type.NotificationType;
+	import com.kaltura.types.KalturaCaptionType;
 	import com.kaltura.vo.KalturaCaptionAsset;
 	import com.kaltura.vo.KalturaCaptionAssetFilter;
 	import com.kaltura.vo.KalturaCaptionAssetListResponse;
@@ -276,7 +277,9 @@
 			var entryCCDataFilter : KalturaCaptionAssetFilter = new KalturaCaptionAssetFilter();

 			entryCCDataFilter.entryIdEqual = (facade.retrieveProxy(MediaProxy.NAME) as MediaProxy).vo.entry.id;
-
+			//filter only to XML and SRT (Hiding the WebVTT CC file in m3u8 that is relevant just for IOS)
+			entryCCDataFilter.formatIn = KalturaCaptionType.SRT+","+KalturaCaptionType.DFXP;
+
 			var entryCCDataList : CaptionAssetList = new CaptionAssetList( entryCCDataFilter );

 			var kalturaClient : KalturaClient = (facade.retrieveProxy(ServicesProxy.NAME) as ServicesProxy).vo.kalturaClient;


F fix removing descendent of controllers removed from the scene

--- src/aerys/minko/scene/node/Scene.as
+++ src/aerys/minko/scene/node/Scene.as
@@ -59,6 +59,7 @@
 				var target : IControllerTarget = child as IControllerTarget;

 				target.controllerChanged.add(controllerChangedHandler);
+
 				if (target.controller)
 					_ctrlTargets.push(target);
 			}
@@ -130,8 +131,10 @@
 				_globalBindings.add(newProviders[providerId] as IDataProvider);

 			// add controllers
+			TMP_SCENE_VECTOR.length = 0;
 			var newTargets	: Vector.<ISceneNode>	= group.getDescendantsByType(
-				IControllerTarget
+				IControllerTarget,
+				TMP_SCENE_VECTOR
 			);
 			var numTargets	: int					= newTargets.length;

@@ -171,14 +174,16 @@
 				_globalBindings.remove(oldProviders[providerId] as IDataProvider);

 			// remove controllers
-			var newTargets	: Vector.<ISceneNode>	= group.getDescendantsByType(
-				IControllerTarget
-			);
-			var numTargets	: int					= 0;
+			TMP_SCENE_VECTOR.length = 0;
+			var oldTargets	: Vector.<ISceneNode>	= group.getDescendantsByType(
+				IControllerTarget,
+				TMP_SCENE_VECTOR
+			);
+			var numTargets	: int					= oldTargets.length;

 			for (var targetId : int = 0; targetId < numTargets; ++targetId)
 			{
-				var target : IControllerTarget = newTargets[targetId]
+				var target : IControllerTarget = oldTargets[targetId]
 												 as IControllerTarget;
 				var controller : AbstractController	= target.controller;

@@ -222,7 +227,7 @@
 			var numControllers 	: int 		= _ctrlTargets.length;
 			var time			: Number	= new Date().time - TIME_OFFSET;

-//			_globalData.setProperty("time", time);
+			_globalData.setProperty("time", time);

 			for (var ctrlIndex : int = numControllers - 1; ctrlIndex >= 0; --ctrlIndex)
 			{


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

--- frameworks/projects/automation/src/mx/automation/events/AutomationDragEventWithPositionInfo.as
+++ frameworks/projects/automation/src/mx/automation/events/AutomationDragEventWithPositionInfo.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: 21242
Author:   eday@adobe.com
Date:     2011-05-12T21:53:17.236519Z

Log Message:
-----------
Adjust tight StyleableTextField layout bounds in order to avoid clipping.

QE notes: none
Doc notes: none
Bugs: SDK-30435
Reviewer: Glenn
Tests run: Cyclone, checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -1444,7 +1444,7 @@
         if (useTightTextBounds)
         {
             // return the text field width without the left and right gutters
-            return width - StyleableTextField.TEXT_WIDTH_PADDING;
+            return width - StyleableTextField.TEXT_GUTTER * 2;
         }
         else
         {
@@ -1461,7 +1461,7 @@
         {
             // return the x position of the text within the text field.  we calculate this value
             // using text field's x, offset by the left gutter
-            return x + StyleableTextField.TEXT_LEFT_GUTTER;
+            return x + StyleableTextField.TEXT_GUTTER;
         }
         else
         {
@@ -1561,7 +1561,7 @@
         if (useTightTextBounds)
         {
             // The measuredTextSize without the left and right gutters
-            return measuredTextSize.x - StyleableTextField.TEXT_WIDTH_PADDING;
+            return measuredTextSize.x - StyleableTextField.TEXT_GUTTER * 2;
         }
         else
         {
@@ -1585,7 +1585,7 @@
         if (useTightTextBounds)
         {
             // offset the positions by the left gutters and the top offset
-            this.x = x - StyleableTextField.TEXT_LEFT_GUTTER;
+            this.x = x - StyleableTextField.TEXT_GUTTER;
             this.y = y - tightTextTopOffset;
         }
         else
@@ -2174,10 +2174,10 @@

     /**
      *  @private
-     *  The width of the left gutter between the edge of the text field
+     *  The width of the gutter between the edge of the text field
      *  and the text.
      */
-    mx_internal static const TEXT_LEFT_GUTTER:int = 2;
+    mx_internal static const TEXT_GUTTER:int = 2;

     /**
      *  @private


remove params related to idle timer

remove params related to idle timer

--- src/com/google/analytics/v4/Configuration.as
+++ src/com/google/analytics/v4/Configuration.as
@@ -117,16 +117,6 @@
          * Default inactive session timeout in seconds (30 minutes).
          */
         public var sessionTimeout:Number = Timespan.thirtyminutes;
-
-        /**
-        * Default idle timer loop time in seconds (30 seconds).
-        */
-        public var idleLoop:Number    = 30;
-
-        /**
-        * Default idle timer inactivity time in seconds (1 minute).
-        */
-        public var idleTimeout:Number = 60;

         /**
          * Upper limit for number of href anchor tags to examine.


Mastermind control lights are turned off initially.


add external logging information for debugging

--- src/RTMP.as
+++ src/RTMP.as
@@ -384,12 +384,14 @@
         if (logger != null) {
           logger.info(msg);
         }
+        ExternalInterface.call('ClapprRTMPLog("[debug] ' + msg + '")');
       }
     }

     private function _changeStateAndNotify(state: String):void {
       playbackState = state;
       _triggerEvent('statechanged');
+      ExternalInterface.call('ClapprRTMPLog("state changed to ' + state + '")');
     }
   }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 153
Author:   proberts@adobe.com
Date:     2008-01-10T20:22:23.867658Z

Log Message:
-----------
Severity: ignore
Description: docs update -- added @productVersion tag to Flex AIR classes' class descriptions.

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

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

--- frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
+++ frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
@@ -116,6 +116,8 @@
  *  @see flash.filesystem.File
  *  @see mx.controls.FileSystemList
  *  @see mx.controls.FileSystemTree
+ *
+ *  @productversion Apollo 1.0
  */
 public class FileSystemComboBox extends ComboBox
 {


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

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

 package spark.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemComboBoxRenderer.as
+++ frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemComboBoxRenderer.as
@@ -123,4 +123,4 @@
         return nestLevel;
     }
 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18046
Author:   jasonsj@adobe.com
Date:     2010-10-06T23:00:53.128377Z

Log Message:
-----------
Style changes for ActionBar including: new 67px height, title shadow up, light-look and chromeColor support in ActionBar buttons.
Added inheriting MobileTextFieldTextStyles to ActionBar.
Added inheriting container styles to ActionBar: accentColor, contentBackgroundAlpha, contentBackgroundColor, focusColor.
Added skin states to ActionBar

QE notes:
Doc notes:
Bugs:
SDK-27684 Several ActionBar style metadata tags are missing
SDK-28006 ActionBar TitleContent is not replacing Title when set in AS
SDK-27948 unable to style components inside actionContent and navigationContent via individual component's css rule
SDK-27684 Several ActionBar style metadata tags are missing
Reviewer: rfrishbe
Tests run: checkintests
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/NavigationButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionBarBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/NavigationButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionButton_up.fxg</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -0,0 +1,107 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.skins.mobile
+{
+import flash.display.DisplayObject;
+import flash.display.GradientType;
+import flash.geom.ColorTransform;
+import flash.geom.Matrix;
+
+import mx.utils.ColorUtil;
+
+/**
+ *  Base skin class for ActionBar buttons. Adds flat-look button border and
+ *  background color.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class ActionBarButtonSkinBase extends ButtonSkin
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+    public function ActionBarButtonSkinBase()
+    {
+        super();
+        paddingTop = 8;
+        paddingBottom = 8;
+        paddingLeft = 16;
+        paddingRight = 16;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    private static var matrix:Matrix = new Matrix();
+
+    // Used for gradient background
+    private static const alphas:Array = [1, 1, 1];
+    private static const ratios:Array = [0, 127.5, 255];
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    override protected function measure():void
+    {
+        super.measure();
+
+        // 81x64 (+1 width for FXG separators)
+        measuredMinWidth = Math.max(81, measuredMinWidth);
+        measuredMinHeight =  Math.max(65, measuredMinHeight);
+        measuredWidth = Math.max(81, measuredWidth);
+        measuredHeight =  Math.max(65, measuredHeight);
+    }
+
+    override protected function layoutBorder(bgImg:DisplayObject, unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        // extend 1px outside measured width to overlap highlight borders
+        resizePart(bgImg, unscaledWidth + 1, unscaledHeight);
+        positionPart(bgImg, 0, 0);
+    }
+
+    override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        drawBackgroundOffset(0, unscaledWidth, unscaledHeight);
+    }
+
+    protected function drawBackgroundOffset(xOffset:Number, backgroundWidth:Number, backgroundHeight:Number):void
+    {
+        var colors:Array = [];
+
+        graphics.clear();
+
+        // Draw the gradient background
+        matrix.createGradientBox(backgroundWidth, backgroundHeight, Math.PI / 2, 0, 0);
+        var chromeColor:uint = getStyle("chromeColor");
+        colors[0] = ColorUtil.adjustBrightness2(chromeColor, 20);
+        colors[1] = chromeColor;
+        colors[2] = ColorUtil.adjustBrightness2(chromeColor, -20);
+
+        graphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, matrix);
+
+        // adjust for separator
+        graphics.drawRect(xOffset, 0, backgroundWidth, backgroundHeight);
+        graphics.endFill();
+    }
+}
+}


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

--- frameworks/projects/rpc/src/mx/core/Version.as
+++ frameworks/projects/rpc/src/mx/core/Version.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.
+//
+////////////////////////////////////////////////////////////////////////////////
 import mx.core.mx_internal;

 /**