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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11171
Author:   egeorgie@adobe.com
Date:     2009-10-26T23:24:13.720443Z

Log Message:
-----------
Add overlay property to GroupBase. Note, names of class and APIs will change, since it's still in review.

QE notes: Ready testing, names will change after the APIs review.
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests, mustella (all gumbo tests)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayPlane.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.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/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayPlaneObjectExistenceEvent.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/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -19,16 +19,14 @@
 import flash.utils.Timer;

 import mx.core.ILayoutElement;
-import mx.core.IVisualElement;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
 import mx.events.DragEvent;
-import mx.managers.DragManager;
 import mx.managers.ILayoutManagerClient;
 import mx.utils.OnDemandEventDispatcher;

-import spark.components.Group;
 import spark.components.supportClasses.GroupBase;
+import spark.components.supportClasses.OverlayDepth;
 import spark.core.NavigationUnit;

 use namespace mx_internal;
@@ -472,21 +470,22 @@
     public function set dropIndicator(value:DisplayObject):void
     {
         if (_dropIndicator)
-            // FIXME (egeorgie): use the overlay APIs instead.
-            target.$removeChild(_dropIndicator);
+			target.overlay.removeDisplayObject(_dropIndicator);

         _dropIndicator = value;

         if (_dropIndicator)
         {
             _dropIndicator.visible = false;
-            // FIXME (egeorgie): use the overlay APIs instead.
-            target.addingChild(_dropIndicator);
-            target.$addChild(_dropIndicator);
-            target.childAdded(_dropIndicator);
-
+			target.overlay.addDisplayObject(_dropIndicator, OverlayDepth.DROP_INDICATOR_DEPTH);
+
             if (_dropIndicator is ILayoutManagerClient)
-                UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(_dropIndicator), true);
+                UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(_dropIndicator), true);
+
+			// Set includeInLayout to false, otherwise it'll still invalidate
+			// the parent Group layout as we size and position the indicator.
+			if (_dropIndicator is ILayoutElement)
+				ILayoutElement(_dropIndicator).includeInLayout = false;
         }
     }

@@ -1460,7 +1459,7 @@
         _dragScrollDelta = calculateDragScrollDelta(dropLocation,
                                                     dragScrollInterval,
                                                     dragScrollElapsedTime);
-        if (_dragScrollDelta)
+        if (_dragScrollDelta && (_dragScrollDelta.x != 0 || _dragScrollDelta.y != 0))
         {
             // Update the drag-scroll event
             _dragScrollEvent = dropLocation.dragEvent;


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

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

 package mx.olap.aggregators


Transferred from the Adobe Open Source Subversion Repository

Revision: 6266
Author:   egeorgie@adobe.com
Date:     2009-04-24T23:09:01.304621Z

Log Message:
-----------
Layout PARB changes

Major (most probably will require updates):
- LayoutBase.getScrollPositionDelta() -> getScrollPositionDeltaToElement()
- HorizontalLayout, VerticalLayout method inView() -> fractionOfElementInView()
- LayoutElementFactory is deleted, interface ILayoutElement is implemented by UIComponent, GraphicElement, VisualSprite, no need for casting in those cases, cast to ILayoutElement in case of type Object.
- TileLayout.elementHorizontalAlign -> horizontalAlign
- TileLayout.elementVerticalAlign -> verticalAlign
- TileJustifyRows -> RowAlign
- TileJustifyColumsn > ColumnAlign
- TileLayout.justifyRows -> rowAlign
- TileLayout.justifyColumns -> columnAling
- TileJustifyRows.NONE, "none" -> TOP, "top"
- TileJustifyRows.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyRows.ROW_SIZE, "rowSize" -> JUSTIFY_USING_HEIGHT, "justifyUsingHeight"
- TileJustifyColumns.NONE, "none" -> LEFT, "left"
- TileJustifyColumns.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyColumns.COLUMN_SIZE, "columnSize" -> JUSTIFY_USING_WIDTH, "justifyUsingWidth"
- TileLayout.set rowCount -> set requestedRowCount
- add TileLayout.get requestedRowCount
- TileLayout.set columnCount -> set requestedColumnCount
- add TileLayout.get requestedColumnCount

Minor (may require updates, but not that probable):
- get baselinePosition() is moved from IVisualElement to ILayoutElement.
- setLayoutBoundsSize() does not have default NaN values for width & height (but still logic is the same).
- name of ILayoutInterface methods' parameter "postTransform" is renamed to "postLayoutTransform".
- name of ILayoutInterface methods' parameter "triggerLayout" is renamed to "invalidateLayout".
- LayoutBase methods invalidateTargetSizeAndDisplayList() and invalidateTargetSize() are removed.
- LayoutBase method getTargetScrollRect() is renamed to getScrollRect().

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Hans, Ryan
tests: checkintests, mustella (gumbo/layout, gumbo/group, gumbo/dataGroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/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="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyRows.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.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/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyColumns.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/TextBaseClass.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
+++ frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
@@ -6,6 +6,13 @@

 import mx.utils.MatrixUtil;

+[ExcludeClass]
+
+/**
+ *  @private
+ *  Helper class to implement the ILayoutElement interface for IUIComponent
+ *  classes.
+ */
 public class LayoutElementUIComponentUtils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9399
Author:   aharui@adobe.com
Date:     2009-08-19T20:39:10.836192Z

Log Message:
-----------
Check in prototypes of ControlBars in Panel and Application, Spark Containers in Halo Navigators, Halo ViewStack in Spark ButtonBar.  APIs should match spec but are subject to change from PARB.  Skins are subject to tweaking after XD review

QE Notes: The following tests will fail and need updating:
gumbo/containers/Panel/Properties/Panel_Properties_position Panel_Properties_rotate
apollo/spark/components/Window/properties/window_properties_titleIcon_tests titleIcon_test8

Doc Notes: None
Bugs: None
Reviewer: Darrell, Glenn, Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Application, gumbo/components/ButtonBar, gumbo/containers/Panel, apollo/gumbo/spark/Window, containers/ViewStack, containers/Accordion,

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.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/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</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/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as
+++ frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as
@@ -0,0 +1,84 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  Sent after the content for this component has been created. With deferred
+ *  instantiation, the content for a component may be created long after the
+ *  component is created.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Event(name="contentCreationComplete", type="mx.events.FlexEvent")]
+
+/**
+ *  Documentation is not currently available.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public interface IDeferredContentOwner extends IUIComponent
+{
+    [Inspectable(enumeration="auto, all, none", defaultValue="auto")]
+
+    /**
+     *  Content creation policy for this component.
+     *
+     *
Possible values are:
+     *

+     *
auto - automatically create the content immediately before it is needed.

+     *
all - create the content as soon as the parent component is created. This
+     *          option should only be used as a last resort since it increases startup time.

+     *
none - content must be created manually by calling the createDeferredContent() method.

+     *

+     *

+     *
+     *  @default "auto"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get creationPolicy():String;
+    function set creationPolicy(value:String):void;
+
+    /**
+     *  Create the content for this component. If creationPolicy is "auto" or "all", this
+     *  function will be called by the flex framework. If creationPolicy is "none", this
+     *  function must be called to create the content for the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function createDeferredContent():void;
+
+    /**
+     *  A flag that indicates whether the deferred content has been created.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get deferredContentCreated():Boolean;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3711
Author:   mhorn@adobe.com
Date:     2008-10-17T17:55:26.712310Z

Log Message:
-----------
asdoc updates; fix examples; add new examples

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/LineExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/ArrowExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/BitmapGraphicExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/EllipseExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/RectExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/TextBoxExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/CircleExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/graphics/examples/TextGraphicExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -100,7 +100,21 @@
 [DefaultProperty("content")]

 /**
- *  The TextView class ...
+ *  Displays text.
+ *
+ *
TextView has more functionality than TextBox and TextGraphic. In addition to the text rendering
+ *  capabilities of TextGraphic, TextView also supports hyperlinks, scrolling, selecting, and editing.

+ *
+ *
The TextView class is similar to the mx.controls.TextArea control, except that it does
+ *  not have chrome.

+ *
+ *
The TextView class does not support drawing a background, border, or scrollbars. To do that,
+ *  you combine it with other components.

+ *
+ *
Because TextView extends UIComponent, it can take focus and allows user interaction such as selection.

+ *
+ *  @see mx.graphics.TextBox
+ *  @see mx.graphics.TextGraphic
  */
 public class TextView extends UIComponent implements IViewport
 {
@@ -157,14 +171,14 @@
      */
     private var hostContainerFormat:ContainerFormat = new ContainerFormat();

-	/**
-	 *  @private
+    /**
+     *  @private
      *  This flag indicates whether hostCharacterFormat, hostParagraphFormat,
      *  and hostContainerFormat need to be recalculated from the CSS styles
      *  of the TextGraphic. It is set true by stylesInitialized() and also
      *  when styleChanged() is called with a null argument, indicating that
      *  multiple styles have changed.
-	 */
+     */
     private var hostFormatsInvalid:Boolean = false;

     /**
@@ -328,7 +342,12 @@
     private var heightInLinesChanged:Boolean = false;

     /**
-     *  TBD
+     *  The height of the control, in lines.
+     *
+     *
TextView's measure() method does not determine the measured size from the text to be displayed,
+     *  because a TextView often starts out with no text. Instead it uses this property, and the widthInChars property
+     *  to determine its measuredWidth and measuredHeight. These are
+     *  similar to the cols and rows of an HTML TextArea.

      */
     public function get heightInLines():int
     {
@@ -539,7 +558,7 @@
      */
     public function set text(value:String):void
     {
-		// If 'text' is being set after 'content', ignore it
+        // If 'text' is being set after 'content', ignore it
         // because 'content' has precedence.
         if (contentChanged)
             return;
@@ -772,8 +791,8 @@

             // If the text was changed, clear the selection.
             if (textChanged || contentChanged)
-            	if (textFlow.interactionManager)
-                	textFlow.interactionManager.setSelection(-1, -1);
+                if (textFlow.interactionManager)
+                    textFlow.interactionManager.setSelection(-1, -1);

             // Create a new TextFlow for the current text.
             _content = textFlow = createTextFlow();
@@ -804,9 +823,9 @@
         flowComposer.updateAllContainers();
     }

-	/**
-	 *  @inheritDoc
-	 */
+    /**
+     *  @inheritDoc
+     */
     override public function stylesInitialized():void
     {
         super.stylesInitialized();
@@ -816,9 +835,9 @@
         stylesChanged = true;
     }

-	/**
-	 *  @inheritDoc
-	 */
+    /**
+     *  @inheritDoc
+     */
     override public function styleChanged(styleProp:String):void
     {
         super.styleChanged(styleProp);
@@ -880,22 +899,22 @@
         charWidth = textLine.textWidth;
     }

-	/**
-	 *  @private
-	 */
-	private function createEmptyTextFlow():TextFlow
-	{
-		var textFlow:TextFlow = new TextFlow();
-		var p:ParagraphElement = new ParagraphElement();
-		var span:SpanElement = new SpanElement();
-		textFlow.replaceChildren(0, 0, p);
-		p.replaceChildren(0, 0, span);
-		return textFlow;
-	}
-
-	/**
-	 *  @private
-	 */
+    /**
+     *  @private
+     */
+    private function createEmptyTextFlow():TextFlow
+    {
+        var textFlow:TextFlow = new TextFlow();
+        var p:ParagraphElement = new ParagraphElement();
+        var span:SpanElement = new SpanElement();
+        textFlow.replaceChildren(0, 0, p);
+        p.replaceChildren(0, 0, span);
+        return textFlow;
+    }
+
+    /**
+     *  @private
+     */
     private function setHostFormat(styleProp:String):void
     {
         var value:* = getStyle(styleProp);
@@ -914,26 +933,26 @@
             hostCharacterFormat[styleProp] = value;
     }

-	/**
-	 *  @private
-	 */
-	private function importMarkup(markup:String):TextFlow
-	{
-		markup = '<TextFlow xmlns="http://ns.adobe.com/tcal/2008">' +
+    /**
+     *  @private
+     */
+    private function importMarkup(markup:String):TextFlow
+    {
+        markup = '<TextFlow xmlns="http://ns.adobe.com/tcal/2008">' +
                  markup +
                  '</TextFlow>';
-
+
         return TextFilter.importToFlow(markup, TextFilter.TCAL_FORMAT);
-	}
-
-	/**
-	 *  @private
+    }
+
+    /**
+     *  @private
      *  Keep this method in sync with the same method in TextGraphic.
-	 */
-	private function createTextFlow():TextFlow
-	{
-		if (contentChanged)
-		{
+     */
+    private function createTextFlow():TextFlow
+    {
+        if (contentChanged)
+        {
             if (_content is TextFlow)
             {
                 textFlow = TextFlow(_content);
@@ -948,33 +967,33 @@
                 textFlow = new TextFlow();
                 textFlow.mxmlChildren = [ _content ];
             }
-			else if (_content is String)
-			{
-				textFlow = importMarkup(String(_content));
-			}
-			else if (_content == null)
-			{
-				textFlow = createEmptyTextFlow();
-			}
+            else if (_content is String)
+            {
+                textFlow = importMarkup(String(_content));
+            }
+            else if (_content == null)
+            {
+                textFlow = createEmptyTextFlow();
+            }
             else
             {
                 throw new Error("invalid content");
             }
             textInvalid = true;
             dispatchEvent(new Event("textInvalid"));
-		}
-		else if (textChanged)
-		{
+        }
+        else if (textChanged)
+        {
             var t:String = _text;
-			if (t != null && t != "")
-			{
-				textFlow = TextFilter.importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
-			}
-			else
-			{
-				textFlow = createEmptyTextFlow();
-			}
-		}
+            if (t != null && t != "")
+            {
+                textFlow = TextFilter.importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
+            }
+            else
+            {
+                textFlow = createEmptyTextFlow();
+            }
+        }

         if (hostFormatsInvalid)
         {
@@ -989,8 +1008,8 @@
         textFlow.hostParagraphFormat = hostParagraphFormat;
         textFlow.hostContainerFormat = hostContainerFormat;

-		return textFlow;
-	}
+        return textFlow;
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/styles/metadata/LeadingStyle.as
+++ frameworks/projects/advancedgrids/src/mx/styles/metadata/LeadingStyle.as
@@ -1,2 +1,23 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////

+/**
+ *  Additional vertical space between lines of text.
+ *
+ *
The default value is 2.

+ *
The default value for the ComboBox control is 0.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="leading", type="Number", format="Length", inherit="yes")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 16782
Author:   cframpto@adobe.com
Date:     2010-07-01T22:05:43.864588Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

Keep scrolling in sync with selection.

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

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -1365,6 +1365,31 @@
                                                                rightOffset:Number = NaN):Point
     {
         var elementR:Rectangle = getElementBounds(index);
+        return getScrollPositionDeltaToElementHelperHelper(
+                                                elementR,
+                                                topOffset, bottomOffset,
+                                                leftOffset, rightOffset);
+    }
+
+    /**
+     *  @private
+     *  This takes an element rather than an index so it can be used for
+     *  DataGrid which has rows and columns.
+     *
+     *  For the offset properties, a value of NaN means don't offset from that edge. A value
+     *  of 0 means to put the element flush against that edge.
+     *
+     *  @param topOffset Number of pixels to position the element below the top edge.
+     *  @param bottomOffset Number of pixels to position the element above the bottom edge.
+     *  @param leftOffset Number of pixels to position the element to the right of the left edge.
+     *  @param rightOffset Number of pixels to position the element to the left of the right edge.
+     */
+    protected function getScrollPositionDeltaToElementHelperHelper(
+                                    elementR:Rectangle, topOffset:Number = NaN,
+                                    bottomOffset:Number = NaN,
+                                    leftOffset:Number = NaN,
+                                    rightOffset:Number = NaN):Point
+    {
         if (!elementR)
             return null;

@@ -1409,6 +1434,7 @@

         return new Point(dx, dy);
     }
+
     //--------------------------------------------------------------------------
     //
     //  Drop methods


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17362
Author:   dloverin@adobe.com
Date:     2010-08-18T17:12:41.407309Z

Log Message:
-----------
Fix problem merging parent styles when a parent style is null.

When merging styles with a parent style manager, if the style declaration for a selector is null, then check if that parent's style manager has a style declaration. The bug was that the parent style merging was stopped because one parent did not have a style declaration. It's expected for a style declaration in a child style manager to be null if it is an equivalent declaration to the one in its parent style manager.

QE notes: None.
Doc notes: None.
Bugs: SDK-26337
Reviewer: Glenn
Tests run: cyclone server and local MarshallPlan/Spark tests
Is noteworthy for integration: No.

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as

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

--- frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
+++ frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
@@ -849,11 +849,18 @@
         }

         // Add parent style to proto chain.
-        if (styleManager.parent)
-        {
-            var parentStyle:CSSStyleDeclaration = styleManager.parent.getStyleDeclaration(selectorString);
+        // If a styleManger parent does not have a style for a given selector,
+        // then skip that parent and move up to the next parent.
+        var styleParent:IStyleManager2 = styleManager.parent;
+        while (styleParent)
+        {
+            var parentStyle:CSSStyleDeclaration = styleParent.getStyleDeclaration(selectorString);
             if (parentStyle)
+            {
                 chain = parentStyle.addStyleToProtoChain(chain, target, filterMap);
+                break;
+            }
+            styleParent = styleParent.parent;
         }

         // If there's a defaultFactory for this style sheet,


Transferred from the Adobe Open Source Subversion Repository

Revision: 7918
Author:   chaase@adobe.com
Date:     2009-06-17T16:55:30.271215Z

Log Message:
-----------
Round 2 of effects PARB changes. Some renames and removals of properties/functions, including:
AnimateTransform: removed 18 MotionPath properties, added applyChangesPostLayout property (replaces affectLayout property in subclasses), removed addMotionPath/addPostLayoutMotionPath protected functions
Animation: removed seek(), reverse()
SimpleMotionPath: removed 'duration' arg in constructor

QE Notes: Mustella will break on some of these changes (no surprise, just needs minor updates)
Doc Notes: API updates
Bugs: none
Reviewer: Jason
Tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/Animation.as
+++ frameworks/projects/spark/src/spark/effects/animation/Animation.as
@@ -126,8 +126,9 @@
         this.duration = duration;
         if (property != null && (startValue !== null || endValue !== null))
         {
-            motionPaths = new <MotionPath>[
-                new SimpleMotionPath(property, startValue, endValue, duration)];
+            motionPaths = new <MotionPath>[new MotionPath(property)];
+            motionPaths[0].keyframes = new <Keyframe>[new Keyframe(0, startValue),
+                new Keyframe(duration, endValue)];
         }
     }

@@ -546,9 +547,11 @@
         _easer = value;
     }

-    // TODO: rethink reversal
     /**
      *  If true, play the animation in reverse.
+     *  If the animation is currently playing in the opposite
+     *  direction to the specified value of playReversed,
+     *  the animation will change direction dynamically.
      *
      *  @default false
      *
@@ -566,7 +569,15 @@
      */
     public function set playReversed(value:Boolean):void
     {
-        _invertValues = value;
+        if (_isPlaying)
+        {
+            if (_invertValues != value)
+            {
+                _invertValues = value;
+                seek(duration - _cycleTime, true);
+            }
+        }
+        _doReverse = value;
     }

     //--------------------------------------------------------------------------
@@ -962,6 +973,9 @@
         for (i = 0; i < motionPaths.length; ++i)
             motionPaths[i].scaleKeyframes(duration);

+        if (_doReverse)
+            _invertValues = true;
+
         if (startDelay > 0)
             addToDelayedAnimations(startDelay);
         else
@@ -969,6 +983,8 @@
     }

     /**
+     *  @private
+     *
      *  Advances the animation to the specified position.
      *
      *  @param playheadTime The position, in milliseconds, between 0
@@ -983,7 +999,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function seek(playheadTime:Number, includeStartDelay:Boolean = false):void
+    private function seek(playheadTime:Number, includeStartDelay:Boolean = false):void
     {
         // Set value between 0 and duration
         //playheadTime = Math.min(Math.max(playheadTime, 0), duration);
@@ -1073,7 +1089,12 @@
                 motionPaths[i].interpolator = interpolator;
     }

-    /**
+    // TODO (chaase): should eventually remove this function, since it
+    // overlaps with playReverse property. Just leaving it mx_internal
+    // for now to avoid perturbing the code too much
+    /**
+     *  @private
+     *
      *  Plays the effect in reverse,if the effect is currently playing,
      *  starting from the current position of the effect.
      *
@@ -1082,7 +1103,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function reverse():void
+    mx_internal function reverse():void
     {
         if (_isPlaying)
         {
@@ -1133,7 +1154,6 @@
         {
             Animation.removeAnimationAt(id);
             id = -1;
-            _doReverse = false
             _invertValues = false;
             _isPlaying = false;
         }


added debug code

added debug code

--- WeaveCore/src/weave/utils/AsyncSort.as
+++ WeaveCore/src/weave/utils/AsyncSort.as
@@ -34,6 +34,8 @@
 	 */
 	public class AsyncSort implements ILinkableObject
 	{
+		public static var debug:Boolean = false;
+
 		public function AsyncSort():void
 		{
 		}
@@ -221,6 +223,13 @@

 		private function done():void
 		{
+			if (debug)
+			{
+				var sec:Number = elapsed/1000;
+				if (sec > 1)
+					trace('sort',result.length,'in',sec,'seconds');
+			}
+
 			getCallbackCollection(this).triggerCallbacks();
 		}


fixed bugs in test code

fixed bugs in test code

--- WeaveCore/src/weave/utils/AsyncSort.as
+++ WeaveCore/src/weave/utils/AsyncSort.as
@@ -319,11 +319,11 @@
 					for (var i:int = 0; i < n; i++)
 					{
 						var value:*;
-						if (testType == 0)
+						if (testType == 0) // random integers
 							value = uint(Math.random()*100);
-						else if (testType == 1)
+						else if (testType == 1) // random integers and NaNs
 							value = Math.random() < .5 ? NaN : uint(Math.random()*100);
-						else if (testType == 2)
+						else if (testType == 2) // random strings
 							value = 'a' + Math.random();

 						array.push(value);
@@ -333,7 +333,8 @@
 					_testArraysSortOn.push(arraySortOn);
 				}
 			}
-			trace("testType =", testType);
+			var desc:String = ['uint', 'uint and NaN', 'string'][testType];
+			trace("testType =", testType, '(' + desc + ')');
 		}
 		public static function test(compare:Object, testType:int = 0):void
 		{
@@ -348,8 +349,10 @@
 				_debugCompareCount = 0;
 				if (compare === null)
 					array1.sort(0);
+				else if (compare is Function)
+					array1.sort(_debugCompareCounter);
 				else
-					array1.sort(_debugCompareCounter);
+					array1.sort(compare);
 				trace('Array.sort', array1.length, 'numbers;', (getTimer() - start) / 1000, 'seconds;', _debugCompareCount ? (_debugCompareCount+' comparisons') : '');

 				start = getTimer();
@@ -377,13 +380,15 @@
 				_debugCompareCount = 0;
 				if (compare === null)
 					array1.sortOn('value', 0);
+				else if (compare is Function)
+					array1.sortOn('value', _debugCompareCounter);
 				else
-					array1.sortOn('value', _debugCompareCounter);
+					array1.sortOn('value', compare);
 				trace('Array.sortOn', array1.length, 'numbers;', (getTimer() - start) / 1000, 'seconds;', _debugCompareCount ? (_debugCompareCount+' comparisons') : '');

 				start = getTimer();
 				_debugCompareCount = 0;
-				sortImmediately(array2, _debugCompareFunction);
+				sortImmediately(array2, _debugCompareCounter);
 				//trace('Merge Sort', n, 'numbers;', _immediateSorter.elapsed / 1000, 'seconds;',_debugCompareCount,'comparisons');
 				trace('Merge SortOn', array2.length, 'numbers;', (getTimer() - start) / 1000, 'seconds;', _debugCompareCount ? (_debugCompareCount+' comparisons') : '');


modified for use in iOS simulator (no longer supported in simulator)

--- actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -641,7 +641,7 @@
          * @return
          */
         private static function _isIOS():Boolean {
-            return Capabilities.manufacturer.indexOf("iOS") > -1;
+			return Capabilities.manufacturer.indexOf("iOS") > -1 && Capabilities.os.indexOf("x86_64") < 0 && Capabilities.os.indexOf("i386") < 0;
         }

         /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 9433
Author:   clucier@adobe.com
Date:     2009-08-20T23:54:36.373816Z

Log Message:
-----------
Code complete for runtime design layers.  Incorporated PARB renames and refactoring.  Finished off all compiler optimizations that were spec'd.  Some minor bug fixes.

QE notes: Candidate checkin for code complete. You are welcome to write test plan against the current API.
Doc notes:  DesignLayer docs should be scrubbed.
Bugs:  N/A
Reviewer: Peter (compiler), Chet (renames), Paul (will review MXMLDocument post PTO).
Tests run: Checkin, added new basic test.
Is noteworthy for integration: Yes.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.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/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/rep/MxmlDocument.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/DesignLayerTestScript.mxml</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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/views/DesignLayerTests.mxml</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="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -712,8 +712,8 @@
         {
             _alpha = value;

-            if (layer)
-                value = value * layer.computedAlpha;
+            if (designLayer)
+                value = value * designLayer.effectiveAlpha;

             super.alpha = value;
         }
@@ -1817,38 +1817,38 @@
      *  @private
      *  Storage for the layer property.
      */
-    private var _layer:DesignLayer;
+    private var _designLayer:DesignLayer;

     [Inspectable (environment='none')]

     /**
-     *  @copy mx.core.IVisualElement#layer
+     *  @copy mx.core.IVisualElement#designLayer
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get layer():DesignLayer
-    {
-        return _layer;
-    }
-
-    /**
-     *  @private
-     */
-    public function set layer(value:DesignLayer):void
-    {
-        if (_layer)
-            _layer.removeEventListener("layerPropertyChange", layer_PropertyChange, false);
-
-        _layer = value;
-
-        if (_layer)
-        {
-            _layer.addEventListener("layerPropertyChange", layer_PropertyChange, false, 0, true);
-            super.alpha = _alpha * _layer.computedAlpha;
-            super.visible = _visible && _layer.computedVisibility;
+    public function get designLayer():DesignLayer
+    {
+        return _designLayer;
+    }
+
+    /**
+     *  @private
+     */
+    public function set designLayer(value:DesignLayer):void
+    {
+        if (_designLayer)
+            _designLayer.removeEventListener("layerPropertyChange", layer_PropertyChange, false);
+
+        _designLayer = value;
+
+        if (_designLayer)
+        {
+            _designLayer.addEventListener("layerPropertyChange", layer_PropertyChange, false, 0, true);
+            super.alpha = _alpha * _designLayer.effectiveAlpha;
+            super.visible = _visible && _designLayer.effectiveVisibility;
         }
     }

@@ -4140,7 +4140,7 @@
     {
         _visible = value;

-        if (layer && !layer.computedVisibility)
+        if (designLayer && !designLayer.effectiveVisibility)
             value = false;

         if (super.visible == value)
@@ -4686,14 +4686,14 @@
     {
         switch (event.property)
         {
-            case "computedVisibility":
+            case "effectiveVisibility":
             {
                 var newValue:Boolean = (event.newValue && _visible);
                 if (newValue != super.visible)
                     super.visible = newValue;
                 break;
             }
-            case "computedAlpha":
+            case "effectiveAlpha":
             {
                 var newAlpha:Number = Number(event.newValue) * _alpha;
                 if (newAlpha != super.alpha)


Transferred from the Adobe Open Source Subversion Repository

Revision: 17990
Author:   clucier@adobe.com
Date:     2010-10-01T19:59:44.310481Z

Log Message:
-----------
Another attempt at a fix for SDK-27852
QE notes: None
Doc notes: None
Bugs: SDK-27852
Reviewer: Alex
Tests run: Cyclone Assist
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as

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

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -334,7 +334,9 @@
             topMost = (childList == PopUpManagerChildList.POPUP);

         children = topMost ? smp.popUpChildren : smp;
-        children.addChild(DisplayObject(window));
+
+        if (DisplayObject(window).parent != children)
+            children.addChild(DisplayObject(window));

         window.visible = false;


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

--- frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as
@@ -1,24 +1,4 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////

-/**
- *  Number of pixels between children in the horizontal direction.
- *  The default value depends on the component class;
- *  if not overridden for the class, the default value is 8.
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
 [Style(name="horizontalGap", type="Number", format="Length", inherit="no")]

 /**


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

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


Document the hueShift parameter.

Document the hueShift parameter.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@365 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/FilterUtil.as
+++ src/as/com/threerings/flash/FilterUtil.as
@@ -184,6 +184,8 @@
     /**
      * Create a filter that, if applied to a DisplayObject, will shift the hue of that object
      * by the given value.
+     *
+     * @param hueShift a value, in degrees, between -180 and 180.
      */
     public static function createHueShift (hue :int) :ColorMatrixFilter
     {
@@ -193,6 +195,8 @@
     /**
     * Shift the color matrix filter by the given amount.  This is adapted from the code found at
     * http://www.kirupa.com/forum/showthread.php?t=230706
+     *
+     * @param hueShift a value, in degrees, between -180 and 180.
     */
     public static function shiftHueBy (original :ColorMatrixFilter,
         hueShift :int) :ColorMatrixFilter


fix "live" button functionality when dvr window is not full

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -178,6 +178,8 @@
 		 * */
 		private var _liveDurationSet:Boolean = false;

+		private var _liveDuration:Number = 0;
+
 		/**
 		 * Constructor
 		 * @param name
@@ -688,7 +690,7 @@
 					if (_mediaProxy.vo.isLive && _mediaProxy.vo.canSeek)
 					{
 						if (_hasPlayed && _inDvr)
-							sendNotification(NotificationType.DO_SEEK, _duration);
+							sendNotification(NotificationType.DO_SEEK, _liveDuration);

 						sendNotification(NotificationType.DO_PLAY);
 					}
@@ -1441,7 +1443,12 @@
 						}

 					} else {
-						_duration = Math.max(dvrWinSize, event.time);
+						_liveDuration = event.time; //save last actual duration of live+dvr
+						var newDuration:Number = Math.max(dvrWinSize, event.time);
+						if ( newDuration == _duration ) {
+							return; //avoid multiple durationChange events with the same value
+						}
+						_duration = newDuration;
 					}
 				}
 				else


Indentation

Indentation

--- src/aerys/minko/render/shader/node/operation/math/taylor/Arctan.as
+++ src/aerys/minko/render/shader/node/operation/math/taylor/Arctan.as
@@ -51,7 +51,10 @@
 				// (2 operations with x, and 2 operations with 1 / x)
 				var coeff	: INode = new Constant(Math.pow(-1, k) / (2 * k + 1), Math.pow(-1, (k + 1)) / (2 * (k + 1) + 1));
 				var pow		: INode = new Constant(2 * k + 1, 2 * (k + 1) + 1);
-				var term	: INode = new Multiply(new Extract(coeff, Components.XYXY), new Power(x, new Extract(pow, Components.XYXY)));
+				var term	: INode = new Multiply(
+					new Extract(coeff, Components.XYXY),
+					new Power(x, new Extract(pow, Components.XYXY))
+				);

 				sum.addTerm(new Extract(term, Components.XZ));
 				sum.addTerm(new Extract(term, Components.YW));


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

--- frameworks/projects/framework/src/mx/core/IToggleButton.as
+++ frameworks/projects/framework/src/mx/core/IToggleButton.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: 7415
Author:   cframpto@adobe.com
Date:     2009-05-29T15:09:31.703572Z

Log Message:
-----------
The new Vellum build has tcm.scrollToPosition() and factory.isTruncated so use them.

QA Notes:
Doc Notes:
Bugs:
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -919,6 +919,7 @@
         }

         bounds = factory.contentBounds;
+        isTextTruncated = factory.isTruncated;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6470
Author:   rfrishbe@adobe.com
Date:     2009-05-01T20:07:28.859826Z

Log Message:
-----------
Renaming SkinnableComponent's methods again...instead of createSkin() and destroySkin(), it's now attachSkin() and detachSkin().

QE Notes: -
Doc Notes: -
Bugs: SDK-19779
Reviewer: -
tests: checkintests, mustella SkinnableComponent tests, Scroller tests (Scroller ones fail some compare bitmaps for me)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -722,9 +722,9 @@
     /**
      *  @private
      */
-    override protected function createSkin():void
-    {
-        super.createSkin();
+    override protected function attachSkin():void
+    {
+        super.attachSkin();
         skin.layout = new ScrollerLayout();
         installViewport();
     }
@@ -732,11 +732,11 @@
     /**
      *  @private
      */
-    override protected function destroySkin():void
+    override protected function detachSkin():void
     {
         uninstallViewport();
         skin.layout = null;
-        super.destroySkin();
+        super.detachSkin();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6360
Author:   hmuller@adobe.com
Date:     2009-04-28T22:01:58.900428Z

Log Message:
-----------
Added minViewportInset:Number Scroller property.   It specifies the minimum inset of the viewport relative to the Scroller.   If a scrollbar is visible then the viewport is inset by the minViewportInset or the scrollbar's size, whichever is larger.  This property was added to make it possible to fine tune the white space around viewports in skins that include a Scroller.

QE Notes: New Scroller property warrants additional tests.
Doc Notes:
Bugs:
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -427,29 +427,62 @@
         invalidateSkin();
     }

+    //----------------------------------
+    //  minViewportInset
+    //----------------------------------
+
+    private var _minViewportInset:Number = 0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The minimum space between the viewport and the edges of the Scroller.
+     *
+     *  If neither of the scrollbars is visible, then the viewport is inset by
+     *  minViewportInset on all four sides.
+     *
+     *  If a scrollbar is visible then the viewport is inset by minViewportInset
+     *  or by the scrollbar's size, whichever is larger.
+     *
+     *  @default 0
+     */
+    public function get minViewportInset():Number
+    {
+        return _minViewportInset;
+    }
+
+    /**
+     *  @private
+     */
+    public function set minViewportInset(value:Number):void
+    {
+        if (value == _minViewportInset)
+            return;
+
+        _minViewportInset = value;
+        invalidateSkin();
+    }
+
     //---------------------------------
     // smoothScrolling
     //---------------------------------

-    /**
-     * @private
-     * Backing storage for the smoothScrolling property
-     */
     private var _smoothScrolling:Boolean = true;

     /**
-     * This property determines whether the scrollbar will animate
-     * smoothly when paging and stepping. When false, page and step
-     * operations will jump directly to the paged/stepped locations.
-     * When true, the scrollbar, and any content it is scrolling, will
-     * animate to that location.
-     *
-     * @default true
+     *  This property determines whether the scrollbar will animate
+     *  smoothly when paging and stepping. When false, page and step
+     *  operations will jump directly to the paged/stepped locations.
+     *  When true, the scrollbar, and any content it is scrolling, will
+     *  animate to that location.
+     *
+     *  @default true
      */
     public function get smoothScrolling():Boolean
     {
         return _smoothScrolling;
     }
+
     public function set smoothScrolling(value:Boolean):void
     {
         _smoothScrolling = value;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/events/ResourceEvent.as
+++ frameworks/projects/framework/src/mx/events/ResourceEvent.as
@@ -21,6 +21,11 @@
  *  by calling the loadResourceModule() method.
  *
  *  @see mx.resources.ResourceManager
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ResourceEvent extends ProgressEvent
 {
@@ -54,6 +59,11 @@
      *

      *
      *  @eventType complete
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const COMPLETE:String = "complete";

@@ -81,6 +91,11 @@
      *

      *
      *  @eventType error
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ERROR:String = "error";

@@ -108,6 +123,11 @@
      *

      *
      *  @eventType progress
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const PROGRESS:String = "progress";

@@ -140,6 +160,11 @@
      *
      *  @param errorText The error message of the error
      *  when type is ResourceEvent.ERROR.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function ResourceEvent(type:String, bubbles:Boolean = false,
                                   cancelable:Boolean = false,
@@ -164,6 +189,11 @@
     /**
      *  The error message if the type is ERROR;
      *  otherwise, it is null.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var errorText:String;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17339
Author:   egeorgie@adobe.com
Date:     2010-08-16T23:36:18.842767Z

Log Message:
-----------
Make Preloader class to wait a frame before dispatching PRELOADER_DOC_FRAME_READY event

This is only when displayClass/preloader is specified. The goal is to render the displayClass/preloader as soon as possible without having to wait for the runtime to load frame 2 in scenarios where the application is not being downloaded.

QE notes:  None
Doc notes: None
Bugs: N/A
Reviewer: Glenn
Tests run: cyclone (mustella)
Is noteworthy for integration: No

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

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

--- frameworks/projects/framework/src/mx/preloaders/Preloader.as
+++ frameworks/projects/framework/src/mx/preloaders/Preloader.as
@@ -134,6 +134,11 @@
 	 *  @private
 	 */
 	private var applicationDomain:ApplicationDomain = null;
+
+    /**
+     *  @private
+     */
+    private var waitedAFrame:Boolean = false;

 	//--------------------------------------------------------------------------
 	//
@@ -266,6 +271,16 @@
 			displayClass.stageHeight = displayHeight;
 			displayClass.initialize();
 			displayClass.preloader = this;
+
+            // Listen for ENTER_FRAME to make sure that we are going to render the displayClass first,
+            // before dispatching PRELOADER_DOC_FRAME_READY. This way we the run-time can render
+            // the displayClass as soon as possible, before advancing onto frame 2.
+            CONFIG::performanceInstrumentation
+            {
+                import mx.utils.PerfUtil;
+                PerfUtil.getInstance().markTime("Preloader.displayClass created");
+            }
+            this.addEventListener(Event.ENTER_FRAME, waitAFrame);
 		}

 		// move below showDisplay so error messages can be displayed
@@ -487,6 +502,11 @@
 		{
 			if (!sentDocFrameReady)
 			{
+				// If there's a displayClass, don't send the PRELOADER_DOC_FRAME_READY
+				// event before we render at least one frame
+				if (showDisplay && !waitedAFrame)
+					return;
+
 				sentDocFrameReady = true;
 				// Dispatch a Frame1 done event.
 				dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DOC_FRAME_READY));
@@ -574,7 +594,22 @@
 	{
 		dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
 	}
+
+    /**
+     *  @private
+     */
+    private function waitAFrame(event:Event):void
+    {
+        CONFIG::performanceInstrumentation
+        {
+            mx.utils.PerfUtil.getInstance().markTime("Preloader.displayClass rendered");
+        }
+
+        this.removeEventListener(Event.ENTER_FRAME, waitAFrame);
+        waitedAFrame = true;
+    }
+
 }

 }
-
+


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

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

 package mx.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateFilter.as
+++ frameworks/projects/spark/src/spark/effects/AnimateFilter.as
@@ -44,7 +44,7 @@
  *  and adds the following tag attributes:

  *
  *

- *  <mx:AnimateFilter
+ *  <s:AnimateFilter
  *    Properties
  *    id="ID"
  *    bitmapFilter="no default"


Transferred from the Adobe Open Source Subversion Repository

Revision: 8385
Author:   smgilson@adobe.com
Date:     2009-07-06T19:38:43.090419Z

Log Message:
-----------
ASDoc updates for Spark layouts and core

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/MaskType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ColumnAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalAlign.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalAlign.as
@@ -13,8 +13,8 @@
 {

 /**
- *  Enumerated type for the HorizontalLayout's verticalAlign
- *  property.
+ *  The VerticalAlign class defines the possible values for the
+ *  verticalAlign property of the HorizontalLayout class.
  *
  * @see HorizontalLayout#verticalAlign
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 12972
Author:   gruehle@adobe.com
Date:     2009-12-15T23:27:40.335911Z

Log Message:
-----------
Commit Catalyst-submitted patch for fixing up unicode path/file names in ActiveX.

QE notes: None.
Doc notes: None.
Bugs: SDK-24648
Reviewer: Alex & I
Tests run: checkintests
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -1823,8 +1823,11 @@
                 else if (systemManager)
                     rootURL = LoaderUtil.normalizeURL(DisplayObject(systemManager).loaderInfo);

+                url = OSToPlayerURI(url, isLocal(rootURL ? rootURL : url));
                 if (rootURL)
                     url = LoaderUtil.createAbsoluteURL(rootURL, url);
+            } else {
+            	url = OSToPlayerURI(url, isLocal(url));
             }

             requestedURL = new URLRequest(url);
@@ -1894,6 +1897,50 @@
         }

         invalidateDisplayList();
+    }
+
+    /**
+     * @private
+     * Test whether a url is on the local filesystem. We can only
+     * really tell this with URLs that begin with "file:" or a
+     * Windows-style drive notation such as "C:". This fails some
+     * cases like the "/" notation on Mac/Unix.
+     *
+     * @param url
+     * the url to check against
+     *
+     * @return
+     * true if url is local, false if not or unable to determine
+     **/
+    private function isLocal(url:String):Boolean
+    {
+        return (url.indexOf("file:") == 0 || url.indexOf(":") == 1);
+    }
+
+    /**
+     * @private
+     * Currently (FP 10.x) the ActiveX player (Explorer on Windows) does not
+     * handle encoded URIs containing UTF-8 on the local filesystem, but
+     * it does handle those same URIs unencoded. The plug-in requires
+     * encoded URIs.
+     *
+     * @param url
+     * url to properly encode, may be fully or partially encoded with encodeURI
+     *
+     * @param local
+     * true indicates the url is on the local filesystem
+     *
+     * @return
+     * encoded url that may be loaded with a URLRequest
+     **/
+    private function OSToPlayerURI(url:String, local:Boolean):String
+    {
+        url = decodeURI(url);
+
+        if (local && flash.system.Capabilities.playerType == "ActiveX")
+            return url;
+
+        return encodeURI(url);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/CheckBox.as
+++ frameworks/projects/spark/src/spark/components/CheckBox.as
@@ -9,13 +9,13 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {

 import flash.events.Event;
 import flash.events.MouseEvent;

-import mx.components.baseClasses.ToggleButtonBase;
+import spark.components.supportClasses.ToggleButtonBase;

 /**
  *  @copy mx.components.baseClasses.GroupBase#symbolColor
@@ -27,26 +27,26 @@
  */
 [Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

-[IconFile("FxCheckBox.png")]
+[IconFile("CheckBox.png")]

 /**
- *  The FxCheckBox component consists of an optional label and a small box
+ *  The CheckBox component consists of an optional label and a small box
  *  that can contain a check mark or not.
  *  You can place the optional text label to the left, right, top, or bottom
  *  of the CheckBox.
  *
- *
When a user clicks a FxCheckBox component or its associated text,
- *  the FxCheckBox component sets its selected property
+ *
When a user clicks a CheckBox component or its associated text,
+ *  the CheckBox component sets its selected property
  *  to true for checked, and to false for unchecked.

  *
- * @includeExample examples/FxCheckBoxExample.mxml
+ * @includeExample examples/CheckBoxExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxCheckBox extends ToggleButtonBase
+public class CheckBox extends ToggleButtonBase
 {
     include "../core/Version.as";

@@ -64,7 +64,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxCheckBox()
+    public function CheckBox()
     {
         super();
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11789
Author:   rfrishbe@adobe.com
Date:     2009-11-13T19:38:40.358315Z

Log Message:
-----------
When a UIMovieClip resizes, it does so through scaling. Before UIMC was keeping track of this on it's own.  Now that AdvancedLayoutFeatures support this through scaleX/scaleY, UIMC can now rely on this behavior.  This also helps fix some Effects bugs which rely on this to figure out the difference in transformations that get applied and contribute to the "width" and "height" properties and ones that don't.

QE notes: Can re-include the 3 FCK tests and regen the bitmaps
Doc notes: -
Bugs: SDK-23754, SDK-23779
Reviewer: Evtim
Tests run: checkintest, mustella FCK
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/MyFlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
+++ frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
@@ -55,9 +55,14 @@
         super();
         showInAutomationHierarchy = false;

+        // grab our width and height before setting scaleX=scaleY=1
         _width = this.width;
         _height = this.height;

+        // set scaleX, scaleY to 1 in case the user scaled the
+        // FlexContentHolder when creating this ContainerMovieClip.
+        // If we don't set scale here, then the content in the container
+        // would be scaled as well
         $scaleX = $scaleY = 1;

         removeEventListener(Event.ADDED, addedHandler);
@@ -373,8 +378,11 @@
         if (!myParent.scaleContentWhenResized)
         {
             // apply the scale to the width/height
-            containerWidth *= myParent.scaleXDueToSizing;
-            containerHeight *= myParent.scaleYDueToSizing;
+            if (myParent._layoutFeatures != null)
+            {
+                containerWidth *= myParent._layoutFeatures.stretchX;
+                containerHeight *= myParent._layoutFeatures.stretchY;
+            }
         }

         // Size the flex content to what they want to be,


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

--- frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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: 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@1278152 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as
+++ frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as
@@ -1,13 +1,21 @@
-////////////////////////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
 package spark.collections
 {
 import mx.collections.IList;


WireframeDebugController wouldn't work if the target is already added in the scene.

--- src/aerys/minko/scene/controller/debug/WireframeDebugController.as
+++ src/aerys/minko/scene/controller/debug/WireframeDebugController.as
@@ -37,7 +37,10 @@
 		private function targetAddedHandler(ctrl	: WireframeDebugController,
 											target	: Mesh) : void
 		{
-			target.added.add(addedHandler);
+			if (target.scene)
+				addedHandler(target, target.parent);
+			else
+				target.added.add(addedHandler);
 			target.removed.add(removedHandler);
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18038
Author:   hmuller@adobe.com
Date:     2010-10-06T20:10:48.132975Z

Log Message:
-----------
Added DataGrid rowBackground skin part.

Added DataGrid/resizableColumns cover property for the Grid resizableColumns property.

Updated DataGrid skin part ASDoc.

Removed ColumnHeaderBarSkin.

Changed GridEvent itemRenderer property type from IVisualElement to IGridItemRenderer.

Added ColumnHeaderBar support for dispatching separator click/double-click events.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ColumnHeaderBarSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/SparkClasses.as
+++ frameworks/projects/spark/src/SparkClasses.as
@@ -42,7 +42,6 @@
 import spark.skins.spark.ButtonBarFirstButtonSkin; ButtonBarFirstButtonSkin;
 import spark.skins.spark.ButtonBarMiddleButtonSkin; ButtonBarMiddleButtonSkin;
 import spark.skins.spark.ButtonBarLastButtonSkin; ButtonBarLastButtonSkin;
-import spark.skins.spark.ColumnHeaderBarSkin; ColumnHeaderBarSkin;
 import spark.skins.spark.CheckBoxSkin; CheckBoxSkin;
 import spark.skins.spark.ComboBoxButtonSkin; ComboBoxButtonSkin;
 import spark.skins.spark.ComboBoxSkin; ComboBoxSkin;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.charts.chartClasses
 {