Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/treeClasses/ITreeDataDescriptor.as
+++ frameworks/projects/mx/src/mx/controls/treeClasses/ITreeDataDescriptor.as
@@ -0,0 +1,101 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.treeClasses
+{
+
+import mx.collections.ICollectionView;
+
+/**
+ *  Interface providing methods for parsing and adding nodes
+ *  to a collection of data that is displayed by a Tree control.
+ *
+ *  @see mx.collections.ICollectionView
+ */
+public interface ITreeDataDescriptor
+{
+    /**
+     *  Provides access to a node's children, returning a collection
+     *  view of children if they exist.
+	 *  A node can return any object in the collection as its children;
+	 *  children need not be nested.
+	 *  It is best-practice to return the same collection view for a
+	 *  given node.
+     *
+	 *  @param node The node object currently being evaluated.
+	 *
+     *  @param model The entire collection that this node is a part of.
+	 *
+     *  @return An collection view containing the child nodes.
+     */
+    function getChildren(node:Object, model:Object = null):ICollectionView;
+
+    /**
+     *  Tests for the existence of children in a non-terminating node.
+     */
+    function hasChildren(node:Object, model:Object = null):Boolean;
+
+    /**
+     *  Tests a node for termination.
+	 *  Branches are non-terminating but are not required
+	 *  to have any leaf nodes.
+     *
+     *  @param node The node object currently being evaluated.
+	 *
+     *  @param model The entire collection that this node is a part of.
+	 *
+     *  @return A Boolean indicating if this node is non-terminating.
+     */
+    function isBranch(node:Object, model:Object = null):Boolean;
+
+	/**
+     *  Gets the data from a node.
+     *
+     *  @param node The node object from which to get the data.
+	 *
+     *  @param model The collection that contains the node.
+	 *
+     *  @return Object The requested data.
+     */
+	 function getData(node:Object, model:Object = null):Object;
+
+    /**
+     *  Adds a child node to a node at the specified index.
+     *
+	 *  @param node The node object that will parent the child.
+	 *
+	 *  @param child The node object that will be parented by the node.
+	 *
+	 *  @param index The 0-based index of where to put the child node.
+	 *
+     *  @param model The entire collection that this node is a part of
+     *  @return true if successful.
+     */
+    function addChildAt(parent:Object, newChild:Object,
+						index:int, model:Object = null):Boolean;
+
+    /**
+     *  Removes a child node to a node at the specified index.
+     *
+	 *  @param node The node object that is the parent of the child.
+	 *
+	 *  @param child The node object that will be removed.
+	 *
+	 *  @param index The 0-based index of the soon to be deleted node.
+	 *
+     *  @param model The entire collection that this node is a part of
+     *  @return true if successful.
+     */
+    function removeChildAt(parent:Object, child:Object,
+						   index:int, model:Object = null):Boolean;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 9270
Author:   clucier@adobe.com
Date:     2009-08-13T15:27:57.150840Z

Log Message:
-----------
Preliminary checkin of the 4+ runtime design layer feature.  Note that this is being committed primarily so that the tooling folks can start playing.  We've yet to integrate spec or PARB feedback
as such QE does not yet need to test.

QE notes: No need to test just yet.
Doc notes: Ditto
Bugs: N/A
Reviewer: Glenn / Paul
Tests run: Checkin
Is noteworthy for integration: Yes, Catalyst/FB may enable feature to begin integration if so desired.  Enable with compiler flag "-enable-runtime-design-layers".

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/ValueNodeHandler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Analyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/AnalyzerAdapter.java</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/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/LayeredNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/SyntaxAnalyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.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/modules/compiler/src/java/flex2/compiler/mxml/lang/NodeTypeResolver.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/DesignLayerNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/SyntaxTreeBuilder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/DesignLayer.java</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -959,7 +959,7 @@
 			var n:int = textLines.length;
 			for (var i:int = 0; i < n; i++)
 			{
-				textLines[i].visible = visible;
+				textLines[i].visible = _computedVisibility;
 			}
 		}
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.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/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.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/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as
@@ -1939,7 +1939,7 @@
         {
             if (headerStyleName is String)
             {
-                headerStyleName = StyleManager.getStyleDeclaration(String(headerStyleName));
+                headerStyleName = owner.styleManager.getStyleDeclaration(String(headerStyleName));
             }
         }
         if (headerStyleName)
@@ -1962,7 +1962,7 @@
         {
             if (headerStyleName is String)
             {
-                headerStyleName = StyleManager.getStyleDeclaration(String(headerStyleName));
+                headerStyleName = owner.styleManager.getStyleDeclaration(String(headerStyleName));
             }
         }

@@ -2006,7 +2006,7 @@
             if (styleNames[c].length)
             {
                 var declaration:CSSStyleDeclaration =
-                    StyleManager.getStyleDeclaration("." + styleNames[c]);
+                    owner.styleManager.getStyleDeclaration("." + styleNames[c]);

                 if (declaration)
                     chain = declaration.addStyleToProtoChain(chain, target);


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

-		role = 0x2e;
+		role = 0x2e; // ROLE_SYSTEM_COMBOBOX
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7156
Author:   egeorgie@adobe.com
Date:     2009-05-20T21:43:02.892782Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-20571 BasicLayout:fractional numbers for size,position of an element not rounded up

Fix: make sure that the measured sizes and the content sizes that are calculated by the layouts are rounded up to the nearest pixel.

QE Notes: Some mustella test may expectedly fail if they are dealing with groups with non-integer sized content (most common case - unconstrained Rect with 1 pixel stroke).

Doc Notes: None
Bugs: SDK-20571
Reviewer: Hans
tests: build, checkintests, mustella (gumbo layouts)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<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/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -1177,6 +1177,13 @@
             measureVirtual(layoutTarget);
         else
             measureReal(layoutTarget);
+
+        // Use Math.ceil() to make sure that if the content partially occupies
+        // the last pixel, we'll count it as if the whole pixel is occupied.
+        layoutTarget.measuredWidth = Math.ceil(layoutTarget.measuredWidth);
+        layoutTarget.measuredHeight = Math.ceil(layoutTarget.measuredHeight);
+        layoutTarget.measuredMinWidth = Math.ceil(layoutTarget.measuredMinWidth);
+        layoutTarget.measuredMinHeight = Math.ceil(layoutTarget.measuredMinHeight);
     }

     /**
@@ -1459,7 +1466,11 @@

         setColumnCount(index - startIndex);
         setIndexInView(startIndex, endIndex);
-        layoutTarget.setContentSize(llv.end(llv.length - 1) + paddingRight, contentHeight + paddingTop + paddingBottom);
+
+        // Make sure that if the content spans partially over a pixel to the right/bottom,
+        // the content size includes the whole pixel.
+        layoutTarget.setContentSize(Math.ceil(llv.end(llv.length - 1) + paddingRight),
+                                    Math.ceil(contentHeight + paddingTop + paddingBottom));
     }

     /**
@@ -1561,7 +1572,11 @@

         setColumnCount(visibleColumns);
         setIndexInView(firstColInView, lastColInView);
-        layoutTarget.setContentSize(maxX + paddingRight, maxY + paddingBottom);
+
+        // Make sure that if the content spans partially over a pixel to the right/bottom,
+        // the content size includes the whole pixel.
+        layoutTarget.setContentSize(Math.ceil(maxX + paddingRight),
+                                    Math.ceil(maxY + paddingBottom));
     }

@@ -1669,7 +1684,8 @@
             setColumnCount(0);
             setIndexInView(-1, -1);
             if (layoutTarget.numElements == 0)
-                layoutTarget.setContentSize(paddingLeft + paddingRight, paddingTop + paddingBottom);
+                layoutTarget.setContentSize(Math.ceil(paddingLeft + paddingRight),
+                                            Math.ceil(paddingTop + paddingBottom));
             return;
         }


Fix resource dir contained within resource dir being added. Closes #599.

--- Bin/Data/Scripts/Editor/EditorScene.as
+++ Bin/Data/Scripts/Editor/EditorScene.as
@@ -116,6 +116,8 @@
 {
     if (newPath.empty)
         return;
+    if (!IsAbsolutePath(newPath))
+        newPath = fileSystem.currentDir + newPath;

     if (usePreferredDir)
         newPath = AddTrailingSlash(cache.GetPreferredResourceDir(newPath));
@@ -137,6 +139,17 @@

         if (!sceneResourcePath.empty && !isDefaultResourcePath)
             cache.RemoveResourceDir(sceneResourcePath);
+    }
+    else
+    {
+        // If additive (path of a loaded prefab) check that the new path isn't already part of an old path
+        Array<String>@ resourceDirs = cache.resourceDirs;
+
+        for (uint i = 0; i < resourceDirs.length; ++i)
+        {
+            if (newPath.StartsWith(resourceDirs[i], false))
+                return;
+        }
     }

     // Add resource path as first priority so that it takes precedence over the default data paths


remove useless brackets

remove useless brackets

--- src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
+++ src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
@@ -60,9 +60,7 @@
 				{
 					_data.computedVisibility = true;
 					if (_mesh.localToWorldTransformChanged.hasCallback(meshLocalToWorldChangedHandler))
-					{
 						_mesh.localToWorldTransformChanged.remove(meshLocalToWorldChangedHandler);
-					}
 				}
 				else if (_mesh && _mesh.scene)
 				{


Added implementation for Weapon object

Added implementation for Weapon object

--- DroneAnarchy/Resources/Scripts/GameObjects.as
+++ DroneAnarchy/Resources/Scripts/GameObjects.as
@@ -353,3 +353,46 @@

 }
+
+
+
+///Weapon Base Class
+abstract class WeaponObjectBase
+{
+	Node@ refNode_;
+
+	WeaponObjectBase(Node@ refNode)
+	{
+		refNode_ = refNode;
+	}
+	void Fire(){}
+}
+
+
+///Ordinary Weapon
+class OrdinaryWeapon : WeaponObjectBase
+{
+	void Fire()
+	{
+		SpawnBullet(true);
+		SpawnBullet(false);
+	}
+
+	OrdinaryWeapon(Node@ refNode)
+	{
+		super(refNode);
+	}
+
+	void SpawnBullet(bool first)
+	{
+		Node@ bulletNode = scene_.CreateChild();
+		bulletNode.worldPosition = refNode_.worldPosition;
+		bulletNode.rotation = refNode_.worldRotation;
+
+		float xOffSet = 0.3f * (first ? 1 : -1);
+		bulletNode.Translate(Vector3(xOffSet,-0.2,0));
+
+		bulletNode.CreateScriptObject(scriptFile, "LowLevelBullet");
+	}
+}
+


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPMember.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPMember.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: 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@1274551 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.rpc.xml
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20322
Author:   mhorn@adobe.com
Date:     2011-02-15T18:47:39.396141Z

Log Message:
-----------
asdoc updates

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

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

--- frameworks/projects/spark/src/spark/collections/SortField.as
+++ frameworks/projects/spark/src/spark/collections/SortField.as
@@ -39,7 +39,12 @@
  *  The locale identifier that specifies the language, region, script
  *  and optionally other related tags and keys.
  *  The syntax of this identifier must follow the syntax defined
- *  by the Unicode Technical Standard #35 (e.g. en-US, de-DE, zh-Hans-CN)
+ *  by the Unicode Technical Standard #35 (for example, en-US, de-DE, zh-Hans-CN).
+ *
+ *
For browser based apps, the default locale is based on the language settings from the browser.
+ *  (Note that this is not the browser UI language that is available from Javascript, but rather is the list of
+ *  preferred locales for web pages that the user has set in the browser preferences.) For AIR applications,
+ *  the default UI locale is based on the user's system preferences.

  *
  *  @see http://www.unicode.org/reports/tr35/
  *


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Scroller now sets the clipContent of its viewport to true.

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

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

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

Revised (simplified) the LayoutBase::updateScrollRect ASDoc.

Provisional change to make the FxContainer clipContent property work
correctly.

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -14,6 +14,7 @@
 import flash.ui.Keyboard;
 import mx.components.baseClasses.FxTextBase;
 import mx.components.baseClasses.FxScrollBar;
+import mx.core.ScrollUnit;
 import mx.layout.ILayoutItem;
 import mx.layout.LayoutItemFactory;
 import mx.events.PropertyChangeEvent;
@@ -142,9 +143,9 @@
      *
      *  @private
      */
-    private function updateViewportHSP(unit:uint):void
-    {
-        var delta:Number = viewport.horizontalScrollPositionDelta(unit);
+    private function updateViewportHSP(unit:ScrollUnit):void
+    {
+        var delta:Number = viewport.getHorizontalScrollPositionDelta(unit);
         setValue(viewport.horizontalScrollPosition + delta);
     }

@@ -153,7 +154,7 @@
      *  change the horizontal scroll position for page up or page down by
      *  scrolling the viewport.
      *  This method calculates the amount to scroll by calling the
-     *  IViewport.horizontalScrollPositionDelta() method
+     *  IViewport.getHorizontalScrollPositionDelta() method
      *  with either flash.ui.Keyboard.PAGE_UP
      *  or flash.ui.Keyboard.PAGE_DOWN.
      *  It then calls the setValue() method to
@@ -171,14 +172,14 @@
      *  @see mx.components.baseClasses.FxTrackBase#setValue()
      *  @see mx.core.IViewport
      *  @see mx.core.IViewport#horizontalScrollPosition
-     *  @see mx.core.IViewport#horizontalScrollPositionDelta()
+     *  @see mx.core.IViewport#getHorizontalScrollPositionDelta()
      */
     override public function page(increase:Boolean = true):void
     {
         if (!viewport)
             super.page(increase);
         else
-            updateViewportHSP((increase) ? Keyboard.PAGE_DOWN : Keyboard.PAGE_UP);
+            updateViewportHSP((increase) ? ScrollUnit.PAGE_RIGHT : ScrollUnit.PAGE_LEFT);
     }

     /**
@@ -186,7 +187,7 @@
      *  change the horizontal scroll position for line up or line down by
      *  scrolling the viewport.
      *  This method calculates the amount to scroll by calling the
-     *  IViewport.horizontalScrollPositionDelta() method
+     *  IViewport.getHorizontalScrollPositionDelta() method
      *  with either flash.ui.Keyboard.RIGHT
      *  or flash.ui.Keyboard.LEFT.
      *  It then calls the setValue() method to
@@ -204,14 +205,14 @@
      *  @see mx.components.baseClasses.FxTrackBase#setValue()
      *  @see mx.core.IViewport
      *  @see mx.core.IViewport#horizontalScrollPosition
-     *  @see mx.core.IViewport#horizontalScrollPositionDelta()
+     *  @see mx.core.IViewport#getHorizontalScrollPositionDelta()
      */
     override public function step(increase:Boolean = true):void
     {
         if (!viewport)
             super.step(increase);
         else
-            updateViewportHSP((increase) ? Keyboard.RIGHT : Keyboard.LEFT);
+            updateViewportHSP((increase) ? ScrollUnit.RIGHT : ScrollUnit.LEFT);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 8509
Author:   smgilson@adobe.com
Date:     2009-07-10T17:58:51.724217Z

Log Message:
-----------
- Explicitly list the default skins for Spark components as part of the fix for SDK-18639
- Fix some bad @see links

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -54,6 +54,12 @@
  *

  *           Maximum size
  *           10000 pixels wide and 10000 pixels high
+ *

+ *

+ *           Default skin classes
+ *           spark.skins.spark.HScrollBarSkin
+ *
spark.skins.spark.HScrollBarThumbSkin

+ *
spark.skins.spark.HScrollBarTrackSkin

  *

  *

  *


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19328
Author:   mhorn@adobe.com
Date:     2010-12-13T20:45:00.405533Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationAngledButtonSkin.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/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.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/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as
@@ -60,6 +60,14 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     public function CheckBoxSkin()
     {
         super();


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as
+++ frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as
@@ -21,6 +21,12 @@
  *
ServerConfig.getChannel() if the channel
  *    can't be found based on channel id.

  *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion BlazeDS 4
+ *  @productversion LCDS 3
  */
 public class InvalidChannelError extends ChannelError
 {
@@ -34,6 +40,12 @@
      *  Constructs a new instance of an InvalidChannelError with the specified message.
      *
      *  @param msg String that contains the message that describes this InvalidChannelError.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function InvalidChannelError(msg:String)
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8336
Author:   jszeto@adobe.com
Date:     2009-06-26T21:16:13.987948Z

Log Message:
-----------
Halo Spark Skinning Fix

http://bugs.adobe.com/jira/browse/SDK-19599 - symbolColor does not work on some of our Halo components.

These skins were using .png for their arrow buttons and icons. I created SparkSkin versions of each of these .pngs.

These changes affect the following components:

DateChooser
-	Month and year arrows

ColorPicker
-	Down arrow

Menu
-	Branch icon
-	Check icon
-	Radio icon

QE Notes: None
Doc Notes: None
Bugs: SDK-19599
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrow.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadio.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmall.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeftDown.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridSortArrow.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmallDown.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheckDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserNextMonthSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeft.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ColorPickerArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridSortArrow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmall.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserNextYearSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/assets/MenuArrow.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrowDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRightDown.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadioDisabled.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmallOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRight.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserPrevMonthSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeftOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmallOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/assets/MenuArrow_disabled.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ColorPickerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/SparkSkinsClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheck.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserPrevYearSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmallDown.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRightOver.png</path>

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


Let the method fetching the container set its style and width.

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

--- src/as/com/threerings/parlor/game/client/FlexGameConfigurator.as
+++ src/as/com/threerings/parlor/game/client/FlexGameConfigurator.as
@@ -45,9 +45,6 @@
      */
     public function getContainer () :Container
     {
-        // mimic the style of the seats grid for consistency
-        _tile.width = 475;
-        _tile.styleName = "seatsGrid";
         return _tile;
     }


Removed check on probeToolTipMaxWidth value

Change-Id: Ic296b62f39e1081ac2b3894ad41f902962f33599

--- WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
+++ WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
@@ -805,8 +805,7 @@
 				else
 				{
 					var text:String = ProbeTextUtils.getProbeText(keySet.keys, additionalProbeColumns);
-					if(Weave.properties.probeToolTipMaxWidth.value)
-						ToolTip.maxWidth = Weave.properties.probeToolTipMaxWidth.value;
+					ToolTip.maxWidth = Weave.properties.probeToolTipMaxWidth.value;
 					ProbeTextUtils.showProbeToolTip(text, stage.mouseX, stage.mouseY);
 				}
 			}


BatchLoaderItem.addRequest returns the BatchLoaderItem generated for said request

--- raw/src/org/yellcorp/lib/net/batchloader/BatchLoader.as
+++ raw/src/org/yellcorp/lib/net/batchloader/BatchLoader.as
@@ -351,9 +351,11 @@
     }

-    public function addRequest(id:String, request:URLRequest, estimatedBytesTotal:uint = 0):void
-    {
-        addItem(id, getLoaderItemFactory().createItem(request), estimatedBytesTotal);
+    public function addRequest(id:String, request:URLRequest, estimatedBytesTotal:uint = 0):BatchLoaderItem
+    {
+        var item:BatchLoaderItem = getLoaderItemFactory().createItem(request);
+        addItem(id, item, estimatedBytesTotal);
+        return item;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21632
Author:   betravis@adobe.com
Date:     2011-07-19T23:14:11.603303Z

Log Message:
-----------
Initial checkin of ToggleSwitch component to mobilecomponents project.
Initial checkin of ToggleSwitchSkin to mobiletheme.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Kevin Lin (component), Jason San Jose (skin)
Tests run: checkintests, mustella
Is noteworthy for integration: Yes. Introduces the ToggleSwitch component.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/bundles/en_US/components.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/ToggleSwitch_contentShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/ToggleSwitch_contentShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/ToggleSwitch_contentShadow.fxg</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as
@@ -0,0 +1,646 @@
+////////////////////////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+package spark.components
+{
+
+import flash.events.Event;
+import flash.events.MouseEvent;
+import flash.geom.Point;
+import flash.utils.Timer;
+
+import mx.core.IVisualElement;
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
+
+import spark.components.supportClasses.ToggleButtonBase;
+import spark.core.IDisplayText;
+import spark.effects.Animate;
+import spark.effects.animation.Animation;
+import spark.effects.animation.IAnimationTarget;
+import spark.effects.animation.MotionPath;
+import spark.effects.animation.SimpleMotionPath;
+import spark.effects.easing.Sine;
+import spark.utils.MouseEventUtil;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  The duration in milleseconds for an animating the thumb between
+ *  the selected and unselected sides of the track. Animating between
+ *  two arbitrary positions on the track, for example after a drag
+ *  gesture, will take a proportionally shorter amount of time.
+ */
+[Style(name="slideDuration", type="Number", format="Time", inherit="no")]
+
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="textAlign", kind="style")]
+
+/**
+ *  The Spark ToggleSwitch component is a component that can flip between
+ *  a selected and non selected state. The ToggleSwitch has a thumb
+ *  skin part that moves between the two ends of the track skin part,
+ *  similar to a Spark Slider.
+ *
+ *  Clicking on the component will flip it from non-selected to selected,
+ *  and vice-versa. A user can also drag the thumb along the track. When released,
+ *  the thumb will move to the closest end of the track, and the ToggleSwitch
+ *  will change to be either selected or non-selected, according to the thumb's
+ *  position.
+ *
+ *  @playerversion AIR 3
+ *  @productversion Flex 4.5.2
+ *
+ *  @see spark.components.ToggleButton
+ *  @see spark.components.HSlider
+ */
+public class ToggleSwitch extends ToggleButtonBase
+{
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public function ToggleSwitch()
+    {
+        super();
+        stickyHighlighting = true;
+        animator = new Animation();
+        animator.easer = new Sine(0);
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  The last position of the mouse during a drag gesture
+     */
+    private var lastMouseX:Number;
+
+    /**
+     *  Controls the mouse events driving a drag gesture on a
+     *  ToggleSwitch
+     */
+    private var mouseDragUtil:MouseDragUtil;
+
+    /**
+     *  Whether the mouse has moved during the current drag
+     *  gesture
+     */
+    private var mouseMoved:Boolean;
+
+    /**
+     *  Where the thumb should be after the current animation ends
+     */
+    private var slideToPosition:Number;
+
+    /**
+     *  The point where the current mouse gesture began
+     */
+    private var stageOffset:Point;
+
+    /**
+     *  The thumbPosition when the current mouse gesture began
+     */
+    private var positionOffset:Number = 0;
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Skin parts
+    //
+    //----------------------------------------------------------------------------------------------
+
+    [SkinPart(required="false")]
+
+    /**
+     *  A skin part that can be dragged along the track. The thumb's
+     *  current position along the track is given by
+     *  thumbPosition.
+     *
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public var thumb:IVisualElement;
+
+    [SkinPart(required="false")]
+
+    /**
+     *  A skin part that defines the bounds along which the thumb can
+     *  be dragged.
+     *
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public var track:IVisualElement;
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Overridden properties
+    //
+    //----------------------------------------------------------------------------------------------
+
+    //----------------------------------
+    //  selected
+    //----------------------------------
+    override public function set selected(value:Boolean):void
+    {
+        super.selected = value;
+        var newValue:Number = selectedToPosition(value);
+        slideToPosition = newValue;
+        setThumbPosition(newValue);
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //----------------------------------------------------------------------------------------------
+
+    //----------------------------------
+    //  thumbPosition
+    //----------------------------------
+
+    /**
+     *  The animation between thumbPosition and slideToPosition, which
+     *  drives the thumb's position. exposed for testing.
+     */
+    private var _animator:Animation = null;
+
+    /**
+     *  @private
+     */
+    mx_internal function get animator():Animation
+    {
+        return _animator;
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function set animator(value:Animation): void
+    {
+        _animator = value;
+        var animTarget:IAnimationTarget = new AnimationTargetHelper(animationUpdateHandler, animationEndHandler);
+        animator.animationTarget = animTarget;
+    }
+
+    //----------------------------------
+    //  thumbPosition
+    //----------------------------------
+
+    /**
+     *  Storage for thumbPosition
+     */
+    private var _thumbPosition:Number = 0.0;
+
+    [Bindable(event="thumbPositionChanged")]
+
+    /**
+     *  The thumb's current position, ranging from 0, unselected,
+     *  to 1, selected.
+     *
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     */
+    public function get thumbPosition():Number
+    {
+        return _thumbPosition;
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(w:Number, h:Number):void
+    {
+        super.updateDisplayList(w, h);
+        updateSkinDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function addHandlers():void
+    {
+        super.addHandlers();
+        mouseDragUtil = new MouseDragUtil(this, mouseDownHandler,
+            mouseDragHandler, thinnedMouseDragHandler, mouseUpHandler);
+        mouseDragUtil.setupHandlers();
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  Convert the given thumb position to a selected value
+     */
+    private function positionToSelected(value:Number):Boolean
+    {
+        return value > 0.5;
+    }
+
+    /**
+     *  Convert the selected value to a thumb position
+     */
+    private function selectedToPosition(value:Boolean):Number
+    {
+        return value ? 1.0 : 0.0;
+    }
+
+    /**
+     *  Specify the new position the toggle switch should animate to
+     *  at the end of the animation, selection will update
+     */
+    private function moveToPosition(newPosition:Number):void
+    {
+        var slideDuration:Number = getStyle("slideDuration");
+        if (newPosition != thumbPosition && slideDuration > 0)
+        {
+            // Finish any current animation before we start the next one.
+            if (animator.isPlaying)
+                stopAnimation();
+
+            // holds the final value to be set when animation ends
+            slideToPosition = newPosition;
+            animator.duration = slideDuration *
+                (Math.abs(thumbPosition - slideToPosition));
+            animator.motionPaths = new <MotionPath>[
+                new SimpleMotionPath("position", thumbPosition, slideToPosition)];
+            animator.play();
+        }
+        else
+        {
+            // we are either at the destination position,
+            // or we should update immediately
+            selected = positionToSelected(newPosition);
+        }
+
+    }
+
+    /**
+     *  Set the thumb position and update the component
+     */
+    private function setThumbPosition(value:Number):void
+    {
+        if (value == _thumbPosition)
+            return;
+        value = Math.min(value, 1.0);
+        value = Math.max(value, 0.0);
+        if (value == _thumbPosition)
+            return;
+        _thumbPosition = value;
+        invalidateDisplayList();
+        if (hasEventListener("thumbPositionChanged"))
+            dispatchEvent(new Event("thumbPositionChanged"));
+    }
+
+    /**
+     *  Stops a running animation prematurely
+     */
+    private function stopAnimation():void
+    {
+        animator.stop();
+    }
+
+    /**
+     *  Position the thumb along the track based on thumbPosition.
+     *  The usable width of the track is equal to the track's layout width
+     *  less the thumb's width, as the thumb should always be contained by
+     *  the track.
+     */
+    private function updateSkinDisplayList():void
+    {
+        if (!thumb || !track || !thumb.parent || !track.parent)
+            return;
+
+        // Perform calculations in global space, since track & thumb may have different coordinate spaces
+        var globalThumbXOffset:Number = getGlobalTrackRange() *  thumbPosition;
+        var globalThumbPos:Point = track.parent.localToGlobal(new Point(track.getLayoutBoundsX()));
+        globalThumbPos.x += globalThumbXOffset;
+
+        var localThumbPos:Point = thumb.parent.globalToLocal(globalThumbPos);
+        thumb.setLayoutBoundsPosition(Math.round(localThumbPos.x), thumb.getLayoutBoundsY());
+    }
+
+    /**
+     *  Determine the global range of motion for the thumb on the track
+     */
+    private function getGlobalTrackRange():Number
+    {
+        var globalTrackDims:Point = track.parent.localToGlobal(new Point(track.getLayoutBoundsWidth()));
+        var globalThumbDims:Point = thumb.parent.localToGlobal(new Point(thumb.getLayoutBoundsWidth()));
+        return globalTrackDims.x - globalThumbDims.x;
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Overridden Event handlers
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  ignore mouse events while animating
+     */
+    override protected function mouseEventHandler(event:Event):void
+    {
+        if (animator && animator.isPlaying)
+            return;
+        super.mouseEventHandler(event);
+    }
+
+    /**
+     *  @private
+     *  If the thumb has moved, snap the it to the closest
+     *  end of the track. If not, move it to the opposite end
+     *  of where it is or was animating to.
+     */
+    override protected function buttonReleased():void
+    {
+        if (animator && animator.isPlaying)
+            return;
+        var newPosition:Number;
+
+        if (mouseMoved)
+            // the result of a drag is the nearest current position
+            newPosition = selectedToPosition(thumbPosition >= .5);
+        else
+            // the result of a click is the opposite side of the current
+            // destination (not always the current value, as when animating)
+            newPosition = selectedToPosition(slideToPosition < .5);
+
+        moveToPosition(newPosition);
+        mouseMoved = false;
+    }
+
+    //----------------------------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //----------------------------------------------------------------------------------------------
+
+    /**
+     *  These mouse handlers are responsible for ToggleSwitch's dragging
+     *  behavior. The toggling behavior is handled by buttonReleased and
+     *  ToggleButtonBase.
+     */
+    private function mouseDownHandler(event:MouseEvent):void
+    {
+        if (animator && animator.isPlaying)
+            return;
+        mouseMoved = false;
+        stageOffset = new Point(event.stageX, event.stageY);
+        positionOffset = thumbPosition;
+    }
+
+    /**
+     *  Cache the most recent mouse position for use when the thinning code
+     *  is called
+     */
+    private function mouseDragHandler(event:MouseEvent):void
+    {
+        lastMouseX = event.stageX;
+    }
+
+    private function thinnedMouseDragHandler():void
+    {
+        if (mouseCaptured && track && thumb)
+        {
+            mouseMoved = true;
+            var deltaX:Number = (lastMouseX - stageOffset.x) / getGlobalTrackRange();
+            setThumbPosition(positionOffset + deltaX);
+        }
+    }
+
+    /**
+     *  We need to force a buttonRelease when mouse up occurs outside of
+     *  the component, and the button has already released mouseCaptured
+     */
+    private function mouseUpHandler(event:Event):void
+    {
+        // mouseCaptured unset from ButtonBase.systemManager_mouseUpHandler
+        if (event.target != this && !mouseCaptured)
+            buttonReleased();
+    }
+
+    /**
+     *  Handles events from the Animation that runs the animated slide.
+     *  We just update thumbPosition with the current animated value
+     */
+    private function animationUpdateHandler(animation:Animation):void
+    {
+        setThumbPosition(animation.currentValue["position"]);
+    }
+
+    /**
+     *  Handles end event from the Animation that runs the animated slide.
+     *  We update selected once the animation ends
+     */
+    private function animationEndHandler(animation:Animation):void
+    {
+        selected = positionToSelected(slideToPosition);
+    }
+
+}
+
+}
+
+//----------------------------------------------------------------------------------------------
+//
+//  Out-of-package Helper Classes
+//
+//----------------------------------------------------------------------------------------------
+
+import spark.effects.animation.Animation;
+import spark.effects.animation.IAnimationTarget;
+
+/**
+ *  @private
+ *  simple helper implementation of IAnimationTarget
+ */
+class AnimationTargetHelper implements IAnimationTarget
+{
+    public var updateFunction:Function;
+    public var endFunction:Function;
+
+    public function AnimationTargetHelper(updateFunction:Function, endFunction:Function)
+    {
+        this.updateFunction = updateFunction;
+        this.endFunction = endFunction;
+    }
+
+    public function animationStart(animation:Animation):void
+    {
+    }
+
+    public function animationEnd(animation:Animation):void
+    {
+        if (endFunction != null)
+            endFunction(animation);
+    }
+
+    public function animationStop(animation:Animation):void
+    {
+    }
+
+    public function animationRepeat(animation:Animation):void
+    {
+    }
+
+    public function animationUpdate(animation:Animation):void
+    {
+        if (updateFunction != null)
+            updateFunction(animation);
+    }
+}
+
+import spark.utils.MouseEventUtil;
+import flash.events.MouseEvent;
+import flash.utils.Timer;
+import mx.core.UIComponent;
+import flash.events.TimerEvent;
+import flash.events.Event;
+
+/**
+ *  @private
+ *  A helper class responsible for handling mouse drag gestures,
+ *  and ensuring we do not update on every mouse move event
+ */
+class MouseDragUtil
+{
+    private var mouseDownHandler:Function;
+    private var mouseMoveEveryHandler:Function;
+    private var mouseMoveThinnedHandler:Function;
+    private var mouseUpHandler:Function;
+    private var target:UIComponent;
+
+    private var dragPending:Boolean;
+    private var dragTimer:Timer;
+
+    private static const MAX_DRAG_RATE:Number = 30;
+
+    public function MouseDragUtil(target:UIComponent, handleDown:Function, handleMove:Function,
+                                  handleThinnedMove:Function, handleUp:Function)
+    {
+        this.target = target;
+        this.mouseDownHandler = handleDown;
+        this.mouseMoveEveryHandler = handleMove;
+        this.mouseMoveThinnedHandler = handleThinnedMove;
+        this.mouseUpHandler = handleUp;
+    }
+
+    public function setupHandlers():void
+    {
+        MouseEventUtil.addDownDragUpListeners(target, mouseDownHandlerWrapper, mouseDragHandlerWrapper,
+            mouseUpHandlerWrapper);
+    }
+
+    public function removeHandlers():void
+    {
+        MouseEventUtil.removeDownDragUpListeners(target, mouseDownHandlerWrapper, mouseDragHandlerWrapper,
+            mouseUpHandlerWrapper);
+        if (dragTimer) {
+            dragTimer.stop();
+            dragTimer.removeEventListener(TimerEvent.TIMER, dragTimerHandler);
+            dragTimer = null;
+        }
+    }
+
+    private function mouseDownHandlerWrapper(event:MouseEvent):void
+    {
+        mouseDownHandler(event);
+    }
+
+    private function mouseDragHandlerWrapper(event:MouseEvent):void
+    {
+        mouseMoveEveryHandler(event);
+
+        if (!dragTimer)
+        {
+            dragTimer = new Timer(1000 / MAX_DRAG_RATE, 0);
+            dragTimer.addEventListener(TimerEvent.TIMER, dragTimerHandler);
+        }
+
+        if (!dragTimer.running)
+        {
+            mouseMoveThinnedHandler();
+            event.updateAfterEvent();
+
+            dragPending = false;
+            dragTimer.start();
+        }
+        else
+        {
+            dragPending = true;
+        }
+    }
+
+    private function dragTimerHandler(event:TimerEvent):void
+    {
+        if (dragPending)
+        {
+            mouseMoveThinnedHandler();
+            event.updateAfterEvent();
+            dragPending = false;
+        }
+        else
+        {
+            dragTimer.stop();
+        }
+    }
+
+    private function mouseUpHandlerWrapper(event:Event):void
+    {
+        if (dragTimer)
+        {
+            if (dragPending)
+            {
+                mouseMoveThinnedHandler();
+                if (event is MouseEvent)
+                    MouseEvent(event).updateAfterEvent();
+                dragPending = false;
+            }
+            dragTimer.stop();
+            dragTimer.removeEventListener(TimerEvent.TIMER, dragTimerHandler);
+            dragTimer = null;
+        }
+
+        mouseUpHandler(event);
+    }
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8679
Author:   jimurphy@adobe.com
Date:     2009-07-20T13:23:31.007823Z

Log Message:
-----------
These are Asdoc edit from 3.x rev 8623.  I somehow missed committing these when they were supposed to be committed during my previous merge.

bug: no
qa: no
doc: no
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as
@@ -74,7 +74,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  Creates an new StreamingHTTPChannel instance.
+     *  Constructor.
      *
      *  @param id The id of this Channel.
      *
@@ -430,7 +430,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  Creates an new StreamingHTTPConnectionHandler instance.
+     *  Constructor.
      *
      *  @param channel The Channel that uses this class.
      *  @param log Reference to the logger for the associated Channel.


Transferred from the Adobe Open Source Subversion Repository

Revision: 17995
Author:   chiedozi@adobe.com
Date:     2010-10-01T22:26:01.111358Z

Log Message:
-----------
The selected state of item renderers in ButtonBars are now properly cleared when the IndexChangeEvent.CHANGING event is canceled.

QE notes:
Doc notes:
Bugs: SDK-28077
Reviewer: Ryan
Tests run: cyclone
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -1201,6 +1201,7 @@
             if (!dispatchEvent(e))
             {
                 // The event was cancelled. Cancel the selection change and return.
+                itemSelected(_proposedSelectedIndex, false);
                 _proposedSelectedIndex = NO_PROPOSED_SELECTION;
                 return false;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2644
Author:   egeorgie@adobe.com
Date:     2008-07-28T23:58:09.872940Z

Log Message:
-----------
First pass at unifying layout APIs between UIComponent and GraphicElement, more to come with additional check-ins.

reviewed by Ryan, Glenn, Gordon, Chet

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -99,7 +99,7 @@
 			dispatchPropertyChangeEvent("color", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateDisplayList();
 		}
 	}

@@ -132,7 +132,8 @@
 			dispatchPropertyChangeEvent("fontFamily", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -165,7 +166,8 @@
 			dispatchPropertyChangeEvent("fontSize", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -198,7 +200,8 @@
 			dispatchPropertyChangeEvent("fontStyle", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -231,7 +234,8 @@
 			dispatchPropertyChangeEvent("fontWeight", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -264,7 +268,8 @@
 			dispatchPropertyChangeEvent("kerning", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -297,7 +302,8 @@
 			dispatchPropertyChangeEvent("lineHeight", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -330,7 +336,8 @@
 			dispatchPropertyChangeEvent("paddingBottom", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -363,7 +370,8 @@
 			dispatchPropertyChangeEvent("paddingLeft", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -396,7 +404,8 @@
 			dispatchPropertyChangeEvent("paddingRight", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -429,7 +438,8 @@
 			dispatchPropertyChangeEvent("paddingTop", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -462,7 +472,8 @@
 			dispatchPropertyChangeEvent("textAlign", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -495,7 +506,7 @@
 			dispatchPropertyChangeEvent("textAlpha", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateDisplayList();
 		}
 	}

@@ -528,7 +539,8 @@
 			dispatchPropertyChangeEvent("tracking", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateSize(); // TODO: does tracking change our size?
+			invalidateDisplayList();
 		}
 	}

@@ -561,7 +573,7 @@
 			dispatchPropertyChangeEvent("verticalAlign", oldValue, value);

 			invalidateTextLines("style");
-			notifyElementChanged();
+			invalidateDisplayList();
 		}
 	}

@@ -600,7 +612,8 @@
 			dispatchPropertyChangeEvent("text", oldValue, value);

 			invalidateTextLines("text");
-			notifyElementChanged();
+			invalidateSize();
+			invalidateDisplayList();
 		}
 	}

@@ -611,23 +624,21 @@
 	//--------------------------------------------------------------------------

 	/**
-	 *  @private
-	 */
-	override public function get actualSize():Point
-	{
-		return new Point(drawWidth, drawHeight);
-	}
-
-	/**
-	 *  @private
-	 */
-	override public function draw(g:Graphics):void
+	 *  @inheritDoc
+	 */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
 	{
 		/*
-		g.clear();
+		var g:Graphics = Sprite(displayObject).graphics;
+
+	    // TODO EGeorgie: clearing the graphics needs to be shared when
+	    // the display objects are shared.
+	    g.clear();
+
 		g.lineStyle()
 		g.beginFill(0xCCCCCC);
-		g.drawRect(0, 0, drawWidth, drawHeight);
+		g.drawRect(0, 0, unscaledWidth, unscaledHeight);
 		g.endFill();
 		*/
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12015
Author:   aharui@adobe.com
Date:     2009-11-19T22:34:02.934215Z

Log Message:
-----------
Fix truncation in Label.  Fix baselines in Spark in general.

QE Notes: SS updated tests based on Cyclone
Doc Notes: None
Bugs: SDK-23992, SDK-23462, SDK-23931, SDK-23913, SDK-23842, SDK-23082
Reviewer: Carol, Gordon
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Label, cyclone

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -460,8 +460,11 @@
         var constrainedWidth:Number =
             !isNaN(_widthConstraint) ? _widthConstraint : explicitWidth;

+        // for measurement, try not to collapse so small we don't measure
+        // anything
+        var fontSize:Number = getStyle("fontSize")
         var allLinesComposed:Boolean =
-            composeTextLines(constrainedWidth, explicitHeight);
+            composeTextLines(Math.max(constrainedWidth, fontSize), Math.max(explicitHeight, fontSize));

         // Anytime we are composing we need to invalidate the display list
         // as we may have messed up the text lines.


Removed unnecessary call to _attributeHierarchy.detectChanges() which
was slowing down the attribute selector a lot during grouped callbacks.

Change-Id: If485a0d44f552bfdd1fcabdf037191d9028ef3c7

--- WeaveData/src/weave/data/DataSources/AbstractDataSource.as
+++ WeaveData/src/weave/data/DataSources/AbstractDataSource.as
@@ -146,9 +146,6 @@
 		 */
 		protected function initialize():void
 		{
-			// just in case the XML was modified, detect those changes now.
-			_attributeHierarchy.detectChanges();
-
 			// set initialized to true so other parts of the code know if this function has been called.
 			_initializeCalled = true;


now checking internalObject instead of globalName

Change-Id: If5d1d915bb897714fe09d657ebe399c508ebbb88

--- WeaveUI/src/weave/visualization/plotters/RegressionLinePlotter.as
+++ WeaveUI/src/weave/visualization/plotters/RegressionLinePlotter.as
@@ -60,7 +60,7 @@

 			// hack to fix old session states
 			_filteredKeySet.addImmediateCallback(this, function():void {
-				if (_filteredKeySet.keyFilter.globalName == null)
+				if (_filteredKeySet.keyFilter.internalObject == null)
 					_filteredKeySet.keyFilter.globalName = Weave.DEFAULT_SUBSET_KEYFILTER;
 			});
 		}


vpaid changes need to work on size

vpaid changes need to work on size

--- plugins/vastPlugin/src/com/kaltura/kdpfl/plugin/component/VastMediator.as
+++ plugins/vastPlugin/src/com/kaltura/kdpfl/plugin/component/VastMediator.as
@@ -67,7 +67,8 @@
 									NotificationType.PLAYER_PAUSED,
 									NotificationType.PLAYER_PLAYED,
 									NotificationType.AD_OPPORTUNITY,
-									NotificationType.CHANGE_MEDIA_PROCESS_STARTED
+									NotificationType.CHANGE_MEDIA_PROCESS_STARTED,
+									NotificationType.ROOT_RESIZE
 									];

 			return interests;
@@ -206,6 +207,10 @@
 						}

 					break;
+					case NotificationType.ROOT_RESIZE:
+						_pluginCode.resize(note.getBody().width, note.getBody().height);
+
+						break;
 			}

 		}