Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

  *
  *

- *  <ButtonBase
+ *  <s:ButtonBase
  *    Properties
  *    autoRepeat="false"
  *    content="null"
@@ -588,31 +588,31 @@
     //----------------------------------
     //  keepDown
     //----------------------------------
-	private var _keepDown:Boolean = false;
-
-	/**
+    private var _keepDown:Boolean = false;
+
+    /**
      *  @private
      *  If true, forces the button to be in the down state
      */
-	mx_internal function set keepDown(value:Boolean):void
-	{
-		if (_keepDown == value)
-			return;
-
-		_keepDown = value;
-		if (_keepDown)
-			invalidateSkinState();
-		else
-			invalidateButtonState();
-	}
-
-	/**
-     *  @private
-     */
-	mx_internal function get keepDown():Boolean
-	{
-		return _keepDown;
-	}
+    mx_internal function set keepDown(value:Boolean):void
+    {
+        if (_keepDown == value)
+            return;
+
+        _keepDown = value;
+        if (_keepDown)
+            invalidateSkinState();
+        else
+            invalidateButtonState();
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function get keepDown():Boolean
+    {
+        return _keepDown;
+    }

     //--------------------------------------------------------------------------
@@ -694,8 +694,8 @@
         if (!enabled)
             return false;

-		if (keepDown)
-			return true;
+        if (keepDown)
+            return true;

         if (keyboardPressed)
             return true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11587
Author:   smgilson@adobe.com
Date:     2009-11-09T21:54:52.485227Z

Log Message:
-----------
ASDoc bug fixes:

FLEXDOCS-1065 mx tile should list TileGroup as its Spark replacement
FLEXDOCS-1042 remove old refs to Flex Builder
FLEXDOCS-1049 doc spar.components.CheckBox.focusColor
FLEXDOCS-1100 fix fx:Library example

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponentGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.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/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.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/rpc/src/mx/netmon/NetworkMonitor.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as
@@ -57,7 +57,9 @@
 [Style(name="focusAlpha", type="Number", inherit="no", theme="spark")]

 /**
- *  @copy spark.components.supportClasses.GroupBase#focusColor
+ *  @copy spark.components.supportClasses.GroupBase#style:focusColor
+ *
+ *  @default 0x70B2EE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -519,7 +521,7 @@
     /**
      *  @private
      */
-	private var _keepDown:Boolean = false;
+    private var _keepDown:Boolean = false;

     /**
      *  @private
@@ -716,7 +718,7 @@
     //
     //--------------------------------------------------------------------------

-	/**
+    /**
      *  @private
      */
     override protected function initializeAccessibility():void
@@ -828,10 +830,10 @@
     private function addSystemMouseHandlers():void
     {
         systemManager.getSandboxRoot().addEventListener(
-			MouseEvent.MOUSE_UP, mouseEventHandler, true /* useCapture */);
+            MouseEvent.MOUSE_UP, mouseEventHandler, true /* useCapture */);

         systemManager.getSandboxRoot().addEventListener(
-			SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
+            SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
     }

     /**
@@ -842,10 +844,10 @@
     private function removeSystemMouseHandlers():void
     {
         systemManager.getSandboxRoot().removeEventListener(
-			MouseEvent.MOUSE_UP, mouseEventHandler, true /* useCapture */);
+            MouseEvent.MOUSE_UP, mouseEventHandler, true /* useCapture */);

         systemManager.getSandboxRoot().removeEventListener(
-			SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
+            SandboxMouseEvent.MOUSE_UP_SOMEWHERE, mouseEventHandler);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 17045
Author:   chiedozi@adobe.com
Date:     2010-07-23T17:53:59.620907Z

Log Message:
-----------
viewDeactivate is now dispatched on the active view when MobileApplication is exiting or being suspended

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
@@ -560,7 +560,13 @@
             if (sessionCachingEnabled)
             {
                 persistenceManager.setProperty("selectedSection", navigator.selectedIndex);
-                navigator.persistCurrentView();
+
+                if (navigator.activeView)
+                {
+                    navigator.activeView.active = false;
+                    navigator.persistCurrentView();
+                }
+
                 persistenceManager.flush();
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17121
Author:   chiedozi@adobe.com
Date:     2010-07-29T22:35:37.783919Z

Log Message:
-----------
Added FlexEvent.APPLICATION_RESTORING and APPLICATION_PERSISTING to follow standard flex event practices.  Developers can now use applicationPersisting and applicationRestoring to cancel presistence events.  The applicationPersist and applicationRestore events are now non-cancelable and occur after the persistence manager completes its operation.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as
@@ -37,7 +37,17 @@
     /**
      *  @inheritDoc
      */
+    [Event(name="applicationPersisting", type="mx.events.FlexEvent")]
+
+    /**
+     *  @inheritDoc
+     */
     [Event(name="applicationRestore", type="mx.events.FlexEvent")]
+
+    /**
+     *  @inheritDoc
+     */
+    [Event(name="applicationRestoring", type="mx.events.FlexEvent")]

     public class MobileApplication extends Application
     {
@@ -568,8 +578,8 @@
             {
                 // Dispatch event for saving persistence data
                 var eventDispatched:Boolean = true;
-                if (hasEventListener(FlexEvent.APPLICATION_PERSIST))
-                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSIST, false, true));
+                if (hasEventListener(FlexEvent.APPLICATION_PERSISTING))
+                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSISTING, false, true));

                 if (eventDispatched)
                 {
@@ -589,6 +599,9 @@
                     }

                     persistenceManager.flush();
+
+                    if (hasEventListener(FlexEvent.APPLICATION_PERSIST))
+                        eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_PERSIST));
                 }
             }
         }
@@ -635,8 +648,8 @@

                 // Dispatch event for loading persistence data
                 var eventDispatched:Boolean = true;
-                if (hasEventListener(FlexEvent.APPLICATION_RESTORE))
-                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_RESTORE, false, true))
+                if (hasEventListener(FlexEvent.APPLICATION_RESTORING))
+                    eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_RESTORING, false, true));

                 if (eventDispatched)
                 {
@@ -657,10 +670,13 @@
                         if (navigator.tabBar)
                             navigator.tabBar.selectedIndex = navigator.selectedIndex;
                     }
-                }
-
-                // Clear previously persisted data
-                persistenceManager.clear();
+
+                    // Clear previously persisted data
+                    persistenceManager.clear();
+
+                    if (hasEventListener(FlexEvent.APPLICATION_RESTORE))
+                        eventDispatched = dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_RESTORE));
+                }
             }

             // If the sections property is not set by this point, MobileApplication will


Issue #30: Restore TOC checkbox icon.

Issue #30: Restore TOC checkbox icon.

--- src/com/esri/viewer/components/toc/tocClasses/TocItemRenderer.as
+++ src/com/esri/viewer/components/toc/tocClasses/TocItemRenderer.as
@@ -31,6 +31,7 @@
 import mx.controls.treeClasses.TreeListData;
 import mx.core.FlexGlobals;
 import mx.core.UIComponent;
+import mx.skins.halo.CheckBoxIcon;

 import spark.components.Group;
 import spark.primitives.BitmapImage;
@@ -133,6 +134,7 @@
         if (!_checkbox)
         {
             _checkbox = new CheckBox();
+            _checkbox.setStyle("icon", CheckBoxIcon);
             _checkbox.addEventListener(MouseEvent.CLICK, onCheckBoxClick);
             _checkbox.addEventListener(MouseEvent.DOUBLE_CLICK, onCheckBoxDoubleClick);
             _checkbox.addEventListener(MouseEvent.MOUSE_DOWN, onCheckBoxMouseDown);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/collections/SummaryRow.as
+++ frameworks/projects/advancedgrids/src/mx/collections/SummaryRow.as
@@ -0,0 +1,212 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[DefaultProperty("fields")]
+
+/**
+ *  The SummaryRow class represents a summary row of the AdvancedDataGrid.
+ *  You create summary data about your data groups by using the summaries property
+ *  of the GroupingField or GroupingCollection class.
+ *  You display the summary data in an existing row of the AdvancedDataGrid control,
+ *  or display it in a separate row.
+ *
+ *
The summaries property of the GroupingField or GroupingCollection class takes an
+ *  instance of the SummaryRow class. You then use the fields property
+ *  of the SummaryRow class to specify an Array of one or more SummaryField/SummaryField2 instances
+ *  that define the fields of the data used to create the summary.
+ *  SummaryField2 needs to be used when using GroupingCollection2.

+ *
+ *
The following example creates summary rows based on two fields of the data provider
+ *  of the AdvancedDataGrid control:

+ *
+ *

+ *  <mx:AdvancedDataGrid id="myADG"
+ *    initialize="gc.refresh();">
+ *    <mx:dataProvider>
+ *      <mx:GroupingCollection id="gc" source="{dpFlat}">
+ *        <mx:Grouping>
+ *          <mx:GroupingField name="Region">
+ *            <mx:summaries>
+ *              <mx:SummaryRow summaryPlacement="group">
+ *                <mx:fields>
+ *                  <mx:SummaryField dataField="Actual"
+ *                    label="Min Actual" operation="MIN"/>
+ *                  <mx:SummaryField dataField="Actual"
+ *                    label="Max Actual" operation="MAX"/>
+ *                </mx:fields>
+ *              </mx:SummaryRow>
+ *            </mx:summaries>
+ *          </mx:GroupingField>
+ *          <mx:GroupingField name="Territory">
+ *            <mx:summaries>
+ *              <mx:SummaryRow summaryPlacement="group">
+ *                <mx:fields>
+ *                  <mx:SummaryField dataField="Actual"
+ *                    label="Min Actual" operation="MIN"/>
+ *                  <mx:SummaryField dataField="Actual"
+ *                    label="Max Actual" operation="MAX"/>
+ *                </mx:fields>
+ *              </mx:SummaryRow>
+ *            </mx:summaries>
+ *          </mx:GroupingField>
+ *        </mx:Grouping>
+ *      </mx:GroupingCollection>
+ *    </mx:dataProvider>
+ *
+ *    <mx:columns>
+ *      <mx:AdvancedDataGridColumn dataField="Region"/>
+ *      <mx:AdvancedDataGridColumn dataField="Territory_Rep"
+ *        headerText="Territory Rep"/>
+ *      <mx:AdvancedDataGridColumn dataField="Actual"/>
+ *      <mx:AdvancedDataGridColumn dataField="Estimate"/>
+ *      <mx:AdvancedDataGridColumn dataField="Min Actual"/>
+ *      <mx:AdvancedDataGridColumn dataField="Max Actual"/>
+ *    </mx:columns>
+ *  </mx:AdvancedDataGrid>
+ *

+ *
+ *  @mxml
+ *
+ *  The <mx.SummaryRow> tag defines the following tag attributes:

+ *
+ *

+ *  <mx:SummaryRow
+ *  Properties
+ *    fields="No default"
+ *    summaryObjectFunction="No default"
+ *    summaryPlacement="last"
+ *  />
+ *

+ *
+ *  @see mx.controls.AdvancedDataGrid
+ *  @see mx.collections.GroupingField
+ *  @see mx.collections.SummaryField
+ *  @see mx.collections.SummaryField2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class SummaryRow
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function SummaryRow()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  fields
+    //----------------------------------
+
+    /**
+     *  Array of SummaryField/SummaryField2 instances that define the characteristics of the
+     *  data fields used to create the summary.
+     *
+     *  @see mx.collections.SummaryField
+	 *  @see mx.collections.SummaryField2
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var fields:Array;
+
+    //----------------------------------
+    //  summaryPlacement
+    //----------------------------------
+
+    /**
+     *  Specifies where the summary row appears in the AdvancedDataGrid control.
+     *  Possible values are:
+     *
+     *

+     *
"first" - Create a summary row as the first row in the group.

+     *
"last" - Create a summary row as the last row in the group.

+     *
"group" - Add the summary data to the row corresponding to the group.

+     *

+     *
+     *
You can specify multiple values, separated by a space.
+     *  For example, a value of "last group"  shows the same summary row
+     *  at the group level and in the last row of the children.

+     *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var summaryPlacement:String = "last";
+
+    //----------------------------------
+    //  summaryObjectFunction
+    //----------------------------------
+
+    /**
+     *  Specifies a callback function that defines the summary object,
+     *  which is an instance of the SummaryObject class.
+     *  The SummaryObject instance collects summary data for display in the
+     *  AdvancedDataGrid control.
+     *  The AdvancedDataGrid control adds the SummaryObject instance to the
+     *  data provider to display the summary data in the control.
+     *  Therefore, define within the SummaryObject instance the properties that you want to display.
+     *
+     *
You use this property with the SummaryField.summaryFunction property,
+     *  which defines a callback function to perform the summary calculation.

+     *
+     *
The GroupingCollection class adds a property called children to the Object.

+     *
+     *
The callback function must have the following signature:

+     *
+     *
function mySumObjFunc():SummaryObject {}

+     *
+     *  @see mx.collections.SummaryObject
+     *  @see mx.collections.SummaryField#summaryFunction
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var summaryObjectFunction:Function;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20219
Author:   dthakkar@adobe.com
Date:     2011-02-09T00:31:57.411477Z

Log Message:
-----------
QE notes:
Doc notes: Added alternative metatag
Bugs: SDK-28163
Reviewer: Masa,Harish
Tests run: Cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>

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

--- frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
@@ -18,6 +18,7 @@
 [ResourceBundle("formatters")]
 [ResourceBundle("SharedResources")]

+[Alternative(replacement="spark.formatters.NumberFormatter", since="4.5")]
 /**
  *  The NumberFormatter class formats a valid number
  *  by adjusting the decimal rounding and precision,


Transferred from the Adobe Open Source Subversion Repository

Revision: 4731
Author:   cframpto@adobe.com
Date:     2009-01-29T16:28:21.156276Z

Log Message:
-----------
Update docs to state that change event doesn't fire when FxRadioButtonGroup.selection is set.
Fix FxRadioButton has focus rect when disabled.
Fix FxRadioButton in a disabled group has enabled skin until moused over.
Require all FxRadioButtons in a FxRadioButtonGroup to have the same immediate parent.

QE Notes:
Doc Notes:
Bugs: SDK-18437, SDK-18261, SDK-18460, SDK-18438
Reviewers: Darrell

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>

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

--- frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
+++ frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
@@ -284,7 +284,7 @@
      *  You can access the property in ActionScript only;
      *  it is not settable in MXML.
      *  Setting this property to null deselects the currently
-     *  selected FxRadioButton control.
+     *  selected FxRadioButton control.  A change event is not dispatched.
      *
      *  @default null
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 4899
Author:   jimurphy@adobe.com
Date:     2009-02-09T15:58:02.302090Z

Log Message:
-----------
Merge i10 revisions 4865,4870-4871,4877,4880-4882,4890-4891 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/StyleInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/VisualChildInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</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/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedPropertyDeclaration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/TextParser.java</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/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ArrayElementInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EffectInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -1584,10 +1584,11 @@
             selectionVisibility == TextSelectionVisibility.ALWAYS ?
             1.0 : 0.0;

-        // The cursor is black.
+        // The cursor is black, inverted, which makes it the inverse color
+        // of the background, for maximum readability.
         interactionManager.focusSelectionFormat = new SelectionFormat(
             selectionColor, 1.0, BlendMode.NORMAL,
-            0x000000, 1.0, BlendMode.NORMAL);
+            0x000000, 1.0, BlendMode.INVERT);

         interactionManager.noFocusSelectionFormat = new SelectionFormat(
             unfocusedSelectionColor, unfocusedAlpha, BlendMode.NORMAL,
@@ -1998,8 +1999,11 @@
     {
         // When gaining focus, show the selection.  Uses the SelectionFormat
         // values defined by the SelectionManager.
-        if (textFlow.interactionManager.hasSelection())
+        if (textFlow.interactionManager &&
+            textFlow.interactionManager.hasSelection())
+        {
             textFlow.flowComposer.showSelection();
+    }
     }

     /**
@@ -2013,8 +2017,11 @@

         // When losing focus, hide the selection.  Uses the SelectionFormat
         // values defined by the SelectionManager.
-        if (textFlow.interactionManager.hasSelection())
+        if (textFlow.interactionManager &&
+            textFlow.interactionManager.hasSelection())
+        {
             textFlow.flowComposer.hideSelection();
+    }
     }

     //--------------------------------------------------------------------------
@@ -2038,6 +2045,16 @@

         var oldContentWidth:Number = _contentWidth;
         var newContentWidth:Number = containerController.contentWidth;
+
+        // Error correction for rounding errors.  It shouldn't be so but
+        // the contentWidth can be slightly larger than the requested
+        // compositionWidth.
+        if (newContentWidth > containerController.compositionWidth &&
+            Math.round(newContentWidth) == containerController.compositionWidth)
+        {
+            newContentWidth = containerController.compositionWidth;
+        }
+
         if (newContentWidth != oldContentWidth)
         {
             _contentWidth = newContentWidth;
@@ -2048,6 +2065,16 @@

         var oldContentHeight:Number = _contentHeight;
         var newContentHeight:Number = containerController.contentHeight;
+
+        // Error correction for rounding errors.  It shouldn't be so but
+        // the contentHeight can be slightly larger than the requested
+        // compositionHeight.
+        if (newContentHeight > containerController.compositionHeight &&
+            Math.round(newContentHeight) == containerController.compositionHeight)
+        {
+            newContentHeight = containerController.compositionHeight;
+        }
+
         if (newContentHeight != oldContentHeight)
         {
             _contentHeight = newContentHeight;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4790
Author:   jimurphy@adobe.com
Date:     2009-02-02T18:13:13.580538Z

Log Message:
-----------
Merged 3.x revisions 4710-4711,4741,4746-4747,4755,4777,4787 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/NumberBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloFocusRect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.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/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/formatters/NumberBase.as
+++ frameworks/projects/framework/src/mx/formatters/NumberBase.as
@@ -417,7 +417,9 @@
 			if (("0" <= letter && letter <= "9") || (letter == decimalSeparatorFrom))
 			{
 				var lastLetter:String = str.charAt(count - 2);
-				if (lastLetter == "-")
+				// We must handle cases where we have negative input like "-YTL5.000,00"
+				// and currencySymbol is longer than one character.
+				if ((lastLetter == "-") || (str.charAt(0) == "-"))
 					isNegative = true;
 				num = "";
 				count--;
@@ -436,6 +438,38 @@
 			}
 		}

+		// there are all sorts of variations of zero, such as:
+		// .0    0.   0.0    0000     0000.00000     -0
+		// Here, we simply convert to a 'real' Number and see if
+		// it's resolved to zero. if it does, just return a zero
+		// string and be done with it.
+		if ((num != null) && (str != ''))
+		{
+			var n:Number = Number(num);
+
+			if (n == 0)
+				return '0';
+		}
+
+		// if the last digit is the dot, whack it
+		if (num)
+		{
+			if (num.charAt(num.length-1) == '.')
+			{
+				// we have something like 33.
+				if (num.length >= 2)
+				{
+					num = num.substring(0, num.length-1);
+				}
+				// we have merely .
+				else if (num.length == 1)
+				{
+					num = '';
+					isNegative = false;
+				}
+			}
+		}
+
 		return isNegative ? "-" + num : num;
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4790
Author:   jimurphy@adobe.com
Date:     2009-02-02T18:13:13.580538Z

Log Message:
-----------
Merged 3.x revisions 4710-4711,4741,4746-4747,4755,4777,4787 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/NumberBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloFocusRect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.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/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -708,6 +708,7 @@
         form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
         form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
         form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
+        form.addEventListener(KeyboardEvent.KEY_DOWN, defaultButtonKeyHandler);
         // listen for default button in Capture phase. Some components like TextInput
         // and Accordion stop the Enter key from propagating in the Bubble phase.
         form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
@@ -763,6 +764,7 @@
         form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
         form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
         form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
+        form.removeEventListener(KeyboardEvent.KEY_DOWN, defaultButtonKeyHandler);
         // stop listening for default button in Capture phase
         form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);

@@ -1513,7 +1515,8 @@
                     // trace("FM removed " + o);
                     o.removeEventListener("tabEnabledChange", tabEnabledChangeHandler);
                     o.removeEventListener("tabIndexChange", tabIndexChangeHandler);
-                    focusableObjects.splice(i, 1);
+                    focusableObjects.splice(i, 1);
+                    focusableCandidates = [];
                     calculateCandidates = true;
                     break;
                 }
@@ -1565,6 +1568,8 @@
                         "tabIndexChange", tabIndexChangeHandler);
                     focusableObjects.splice(i, 1);
                     i = i - 1;  // because increment would skip one
+
+                    focusableCandidates = [];
                     calculateCandidates = true;
                 }
             }
@@ -1749,7 +1754,7 @@

     /**
      *  @private
-     *  Watch for Enter key.
+     *  Watch for TAB keys.
      */
     private function keyDownHandler(event:KeyboardEvent):void
     {
@@ -1821,14 +1826,25 @@
                 }
             }
         }
-
-        if (defaultButtonEnabled &&
-            event.keyCode == Keyboard.ENTER &&
+    }
+
+    /**
+     *  @private
+     *  Watch for ENTER key.
+     */
+    private function defaultButtonKeyHandler(event:KeyboardEvent):void
+    {
+        var sm:ISystemManager = form.systemManager;
+        if (sm.isDisplayObjectInABridgedApplication(DisplayObject(event.target)))
+            return;
+
+        if (defaultButtonEnabled && event.keyCode == Keyboard.ENTER &&
             defaultButton && defButton.enabled)
-            //sendDefaultButtonEvent();
-            defButton.callLater(sendDefaultButtonEvent);
-    }
-
+        {
+            sendDefaultButtonEvent();
+        }
+    }
+
     /**
      *  @private
      *  This gets called when the focus changes due to a mouse click.


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

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

 package mx.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4516
Author:   gosmith@adobe.com
Date:     2009-01-13T23:23:14.594709Z

Log Message:
-----------
Accessibility changes to Panel and TitleWindow, as requested by Freedom Scientific.

These components now report their accessibility role as "grouping" rather than "window". Their accessibility name is now simply their title. They no longer report any child items. Their accessibility location is the bounding rect of the entire Panel or TitleWindow.

The AccessibilityImplementation continues to be attached to the titleBar, not to the Panel/TitleWindow, because the Flash Player ignores Sprites with an AccessibilityImplementation that are inside other Sprites with an AccessibilityImplementation. (The Flash accessibility model is flat, not hierarchical, and "child IDs" are only used for things like list items, not for controls in titled container.)

So although in the display hierarchy the Panel is a parent of its content controls, in the MSAA model it appears as their preceding sibling. JAWS will look at the "grouping" role and understand that because the bounding rect of the grouping includes some of its following siblings, they are "inside". (I don't know what this means in terms of what JAWS will actually speak.)

Also, the AccImpl class now implements getChildIDArray() to return an empty array, so that by default all components have 0 child items (rather than reporting an error).

Finally, subclasses with child items now compute how many they have and then call a new AccImpl utility method, createChildIDArray(), to create an Array that looks like [ 1, 2, 3, 4, 5 ].

QE Notes: None
Doc Notes: None
Bugs: SDK-12390, SDK-16340
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -17,6 +17,7 @@
 import flash.accessibility.AccessibilityProperties;
 import flash.display.DisplayObjectContainer;
 import flash.events.Event;
+
 import mx.containers.Form;
 import mx.containers.FormHeading;
 import mx.containers.FormItem;
@@ -267,6 +268,17 @@
 		return (accName != null && accName != "") ? accName : null;
 	}

+	/**
+	 *  @private
+	 *  Method to return an array of childIDs.
+	 *
+	 *  @return Array
+	 */
+	override public function getChildIDArray():Array
+	{
+		return [];
+	}
+
 	//--------------------------------------------------------------------------
 	//
 	//  Methods
@@ -319,6 +331,21 @@
 			statusName += " " + UIComponent(master).errorString;

 		return statusName;
+	}
+
+	/**
+	 *  @private
+	 */
+	protected function createChildIDArray(n:int):Array
+	{
+		var a:Array = new Array(n);
+
+		for (var i:int = 0; i < n; i++)
+		{
+			a[i] = i + 1;
+		}
+
+		return a;
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4652
Author:   aharui@adobe.com
Date:     2009-01-24T00:35:14.915317Z

Log Message:
-----------
Revert 4650.  Goes in 3.3 branch instead

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1339,7 +1339,7 @@
     public function getNextFocusManagerComponent(
                             backward:Boolean = false):IFocusManagerComponent
 	{
-		return getNextFocusManagerComponent2(false, fauxFocus).displayObject as IFocusManagerComponent;
+		return getNextFocusManagerComponent2(false, fauxFocus) as IFocusManagerComponent;
 	}

 	/**
@@ -1417,7 +1417,7 @@
 		focusInfo.displayObject = findFocusManagerComponent2(focusableCandidates[j]);
 		focusInfo.wrapped = wrapped;

-        return focusInfo;
+        return focusInfo
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16560
Author:   smgilson@adobe.com
Date:     2010-06-14T21:14:37.093170Z

Log Message:
-----------
Fix ASDoc version tags for several Flex 4 classes makred as Flex 3

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButtonGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ListDropIndicator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -78,9 +78,9 @@
  *  application and the background color for the HTML embed tag.
  *
  *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="backgroundColor", type="uint", format="Color", inherit="no")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 19678
Author:   chiedozi@adobe.com
Date:     2011-01-10T22:45:03.607947Z

Log Message:
-----------
Resolved some FIXMEs

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -959,7 +959,7 @@
     {
         var stage:Stage = systemManager.stage;

-        // FIXME (chiedozi): Should use StageAspectRatio enums once added to player (spicy)
+        // TODO (chiedozi): Should use StageAspectRatio enums once added to player (spicy)
         return stage.stageWidth > stage.stageHeight ? "landscape" : "portrait";
     }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3565
Author:   mhorn@adobe.com
Date:     2008-10-10T14:44:40.295870Z

Log Message:
-----------

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/CubicBezierSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/MoveSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/LineSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -36,68 +36,85 @@
 /**
  *  A BitmapGraphic element defines a rectangular region in its parent element's
  *  coordinate space, filled with bitmap data drawn from a source file.
+ *
+ *  @includeExample examples/BitmapGraphicExample.mxml
  */
 public class BitmapGraphic extends GraphicElement
 {
-	include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 */
-	public function BitmapGraphic()
-	{
-		super();
-
-		_fill = new BitmapFill();
-	}
-
-	private var _fill:BitmapFill;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  alwaysNeedsDisplayObject
-	//----------------------------------
-
-	private var _alwaysNeedsDisplayObject:Boolean = false;
-
-	/*
-	 *  Set this to true to force the Graphic Element to create an underlying Shape
-	 */
-	mx_internal function set alwaysNeedsDisplayObject(value:Boolean):void
-	{
-		if (value != _alwaysNeedsDisplayObject)
-		{
-			_alwaysNeedsDisplayObject = value;
-			notifyElementLayerChanged();
-		}
-	}
-
-	mx_internal function get alwaysNeedsDisplayObject():Boolean
-	{
-		return _alwaysNeedsDisplayObject;
-	}
-
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function BitmapGraphic()
+    {
+        super();
+
+        _fill = new BitmapFill();
+    }
+
+    private var _fill:BitmapFill;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  alwaysNeedsDisplayObject
+    //----------------------------------
+
+    private var _alwaysNeedsDisplayObject:Boolean = false;
+
+    /*
+     *  Set this to true to force the Graphic Element to create an underlying Shape
+     */
+    mx_internal function set alwaysNeedsDisplayObject(value:Boolean):void
+    {
+        if (value != _alwaysNeedsDisplayObject)
+        {
+            _alwaysNeedsDisplayObject = value;
+            notifyElementLayerChanged();
+        }
+    }
+
+    mx_internal function get alwaysNeedsDisplayObject():Boolean
+    {
+        return _alwaysNeedsDisplayObject;
+    }
+
     //----------------------------------
     //  resizeMode
     //----------------------------------
+    /**
+     *  Documentation is not currently available.
+     */
     protected static const _NORMAL_UINT:uint = 0;
+
+    /**
+     *  Documentation is not currently available.
+     */
     protected static const _REPEAT_UINT:uint = 1;
+
+    /**
+     *  Documentation is not currently available.
+     */
     protected static const _SCALE_UINT:uint = 2;

     /**
-     *  Converts from the String to the uint
+     *  Converts from the String to the uint
      *  representation of the enum values.
+     *
+     *  @param value The String to convert.
+     *
+     *  @return The uint representation of the enum values.
      */
     protected static function resizeModeToUINT(value:String):uint
     {
@@ -110,8 +127,12 @@
     }

     /**
-     *  Converts from the uint to the String
+     *  Converts from the uint to the String
      *  representation of the enum values.
+     *
+     *  @param value The uint to convert.
+     *
+     *  @return The String representation of the enum values.
      */
     protected static function resizeModeToString(value:uint):String
     {
@@ -134,14 +155,14 @@
     /**
      *  The resizeMode determines how the bitmap fills in the dimensions.
      *
-     *  When set to BitmapResizeMode.NORMAL, the bitmap will
-     *  end at the edge of the region.
+     *  When set to BitmapResizeMode.NORMAL, the bitmap
+     *  ends at the edge of the region.
      *
-     *  When set to BitmapResizeMode.REPEAT, the bitmap will
-     *  be repeated to fill the region.
+     *  When set to BitmapResizeMode.REPEAT, the bitmap
+     *  repeats to fill the region.
      *
-     *  When set to BitmapResizeMode.SCALE, the bitmap will
-     *  stretch to fill the region.
+     *  When set to BitmapResizeMode.SCALE, the bitmap
+     *  stretches to fill the region.
      *
      *  @default BitmapResizeMode.NORMAL
      */
@@ -167,58 +188,58 @@
         }
     }

-	//----------------------------------
-	//  repeat
-	//----------------------------------
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	 *  Whether the bitmap is repeated to fill the area. Set to true to cause
-	 *  the fill to tile outward to the edges of the filled region.
-	 *  Set to false to end the fill at the edge of the region.
-	 *
-	 *  @default true
-	 */
-	public function get repeat():Boolean
-	{
-		return _resizeMode == _REPEAT_UINT;
-	}
-
+    //----------------------------------
+    //  repeat
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  Whether the bitmap is repeated to fill the area. Set to true to cause
+     *  the fill to tile outward to the edges of the filled region.
+     *  Set to false to end the fill at the edge of the region.
+     *
+     *  @default true
+     */
+    public function get repeat():Boolean
+    {
+        return _resizeMode == _REPEAT_UINT;
+    }
+
     /**
      *  @private
      */
-	public function set repeat(value:Boolean):void
-	{
-		var oldValue:Boolean = repeat;
-
-		if (value != oldValue)
-		{
-		    resizeMode = value ? BitmapResizeMode.REPEAT : BitmapResizeMode.NORMAL;
-			invalidateDisplayList();
-			dispatchPropertyChangeEvent("repeat", oldValue, value);
-		}
-	}
-
-	//----------------------------------
-	//  source
-	//----------------------------------
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	 *  The source used for the bitmap fill. The fill can render from various graphical
-	 *  sources, including the following:
-	 *

-	 *
A Bitmap or BitmapData instance.

-	 *
A class representing a subclass of DisplayObject. The BitmapFill instantiates
-	 *       the class and creates a bitmap rendering of it.

-	 *
An instance of a DisplayObject. The BitmapFill copies it into a Bitmap for filling.

-	 *
The name of a subclass of DisplayObject. The BitmapFill loads the class, instantiates it,
-	 *       and creates a bitmap rendering of it.

-	 *

+    public function set repeat(value:Boolean):void
+    {
+        var oldValue:Boolean = repeat;
+
+        if (value != oldValue)
+        {
+            resizeMode = value ? BitmapResizeMode.REPEAT : BitmapResizeMode.NORMAL;
+            invalidateDisplayList();
+            dispatchPropertyChangeEvent("repeat", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  source
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  The source used for the bitmap fill. The fill can render from various graphical
+     *  sources, including the following:
+     *

+     *
A Bitmap or BitmapData instance.

+     *
A class representing a subclass of DisplayObject. The BitmapFill instantiates
+     *       the class and creates a bitmap rendering of it.

+     *
An instance of a DisplayObject. The BitmapFill copies it into a Bitmap for filling.

+     *
The name of a subclass of DisplayObject. The BitmapFill loads the class, instantiates it,
+     *       and creates a bitmap rendering of it.

+     *

      *
      *
If you use an image file for the source, it can be of type PNG, GIF, or JPG.

      *
@@ -234,135 +255,135 @@
      *  @see flash.display.Bitmap
      *  @see flash.display.BitmapData
      *  @see mx.graphics.BitmapFill
-	 */
-	public function get source():Object
-	{
-		return _fill.source;
-	}
-
+     */
+    public function get source():Object
+    {
+        return _fill.source;
+    }
+
     /**
      *  @private
      */
-	public function set source(value:Object):void
-	{
-		var oldValue:Object = _fill.source;
-
-		if (value != oldValue)
-		{
-			var bitmapData:BitmapData;
-			var tmpSprite:DisplayObject;
-
-			// This code stolen from BitmapFill. The only change is to make the BitmapData transparent.
-			if (value is Class)
-			{
-				var cls:Class = Class(value);
-				tmpSprite = new cls();
-			}
-			else if (value is BitmapData)
-			{
-				bitmapData = value as BitmapData;
-			}
-			else if (value is Bitmap)
-			{
-				bitmapData = value.bitmapData;
-			}
-			else if (value is DisplayObject)
-			{
-				tmpSprite = value as DisplayObject;
-			}
-			else if (value is String)
-			{
-				var tmpClass:Class = Class(getDefinitionByName(String(value)));
-				tmpSprite = new tmpClass();
-			}
-			else
-			{
-				return;
-			}
-
-			if (!bitmapData && tmpSprite)
-			{
-				bitmapData = new BitmapData(tmpSprite.width, tmpSprite.height, true, 0);
-				bitmapData.draw(tmpSprite, new Matrix());
-			}
-
-			_fill.source = bitmapData;
-			dispatchPropertyChangeEvent("source", oldValue, value);
-			invalidateSize();
-			invalidateDisplayList();
-		}
-	}
-
-	//----------------------------------
-	//  smooth
-	//----------------------------------
-
-	private var _smooth:Boolean = false;
-
-	[Inspectable(category="General")]
-
-	/**
+    public function set source(value:Object):void
+    {
+        var oldValue:Object = _fill.source;
+
+        if (value != oldValue)
+        {
+            var bitmapData:BitmapData;
+            var tmpSprite:DisplayObject;
+
+            // This code stolen from BitmapFill. The only change is to make the BitmapData transparent.
+            if (value is Class)
+            {
+                var cls:Class = Class(value);
+                tmpSprite = new cls();
+            }
+            else if (value is BitmapData)
+            {
+                bitmapData = value as BitmapData;
+            }
+            else if (value is Bitmap)
+            {
+                bitmapData = value.bitmapData;
+            }
+            else if (value is DisplayObject)
+            {
+                tmpSprite = value as DisplayObject;
+            }
+            else if (value is String)
+            {
+                var tmpClass:Class = Class(getDefinitionByName(String(value)));
+                tmpSprite = new tmpClass();
+            }
+            else
+            {
+                return;
+            }
+
+            if (!bitmapData && tmpSprite)
+            {
+                bitmapData = new BitmapData(tmpSprite.width, tmpSprite.height, true, 0);
+                bitmapData.draw(tmpSprite, new Matrix());
+            }
+
+            _fill.source = bitmapData;
+            dispatchPropertyChangeEvent("source", oldValue, value);
+            invalidateSize();
+            invalidateDisplayList();
+        }
+    }
+
+    //----------------------------------
+    //  smooth
+    //----------------------------------
+
+    private var _smooth:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
      *  @copy flash.display.GraphicsBitmapFill#smooth
-	 *
-	 *  @default false
-	 */
-	public function set smooth(value:Boolean):void
-	{
-		if (value != _smooth)
-		{
-			_smooth = value;
-			invalidateDisplayList();
-		}
-	}
-
+     *
+     *  @default false
+     */
+    public function set smooth(value:Boolean):void
+    {
+        if (value != _smooth)
+        {
+            _smooth = value;
+            invalidateDisplayList();
+        }
+    }
+
     /**
      *  @private
      */
-	public function get  smooth():Boolean
-	{
-		return _smooth;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  IGraphicElement Implementation
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @inheritDoc
-	 */
+    public function get  smooth():Boolean
+    {
+        return _smooth;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  IGraphicElement Implementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
     override protected function measure():void
     {
         measuredWidth = source ? source.width : 0;
         measuredHeight = source ? source.height : 0;
     }
-
-	/**
-	 *  @inheritDoc
-	 */
+
+    /**
+     *  @inheritDoc
+     */
     override protected function updateDisplayList(unscaledWidth:Number,
                                                   unscaledHeight:Number):void
-	{
-	    /* if (!displayObject || !(displayObject is Sprite))
-	        return; */
+    {
+        /* if (!displayObject || !(displayObject is Sprite))
+            return; */

         if (displayObject is Sprite)
             Sprite(displayObject).graphics.clear();
         else if (displayObject is Shape)
             Shape(displayObject).graphics.clear();

-	    var g:Graphics = Sprite(drawnDisplayObject).graphics;
-
-		g.lineStyle();
-		_fill.offsetX = drawX;
-		_fill.offsetY = drawY;
-		_fill.smooth = smooth;
-		_fill.repeat = false;
-		_fill.scaleX = 1;
-		_fill.scaleY = 1;
-		var fillWidth:Number;
-		var fillHeight:Number;
+        var g:Graphics = Sprite(drawnDisplayObject).graphics;
+
+        g.lineStyle();
+        _fill.offsetX = drawX;
+        _fill.offsetY = drawY;
+        _fill.smooth = smooth;
+        _fill.repeat = false;
+        _fill.scaleX = 1;
+        _fill.scaleY = 1;
+        var fillWidth:Number;
+        var fillHeight:Number;

         switch(_resizeMode)
         {
@@ -391,16 +412,16 @@
             break;
         }

-	    _fill.begin(g, new Rectangle(fillWidth, fillHeight));
-		g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
-		_fill.end(g);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  IAssignableDisplayObject Implementation
-	//
-	//--------------------------------------------------------------------------
+        _fill.begin(g, new Rectangle(fillWidth, fillHeight));
+        g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
+        _fill.end(g);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  IAssignableDisplayObject Implementation
+    //
+    //--------------------------------------------------------------------------

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20973
Author:   tkraikit@adobe.com
Date:     2011-03-25T22:27:20.749845Z

Log Message:
-----------
Merging fix for SDK-30053 to trunk.

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

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -213,7 +213,7 @@
     private var previousUnscaledHeight:Number;
     private var sourceInvalid:Boolean;
     private var loadFailed:Boolean;
-
+
     //----------------------------------
     //  bitmapData
     //----------------------------------
@@ -926,7 +926,7 @@
     {
         var dpiScale:Number = 1;
         var app:Object = FlexGlobals.topLevelApplication;
-        if ("applicationDPI" in app && "runtimeDPI" in app)
+        if ("applicationDPI" in app && "runtimeDPI" in app && source is MultiDPIBitmapSource)
             dpiScale = app.runtimeDPI / app.applicationDPI;

         if (loadedContent)


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

--- frameworks/projects/framework/src/mx/utils/XMLNotifier.as
+++ frameworks/projects/framework/src/mx/utils/XMLNotifier.as
@@ -26,6 +26,11 @@
  *  function that you would pass to XML.notification.
  *  Use unwatchXML() to remove that notification.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class XMLNotifier
 {
@@ -51,6 +56,11 @@

     /**
      *  Get the singleton instance of the XMLNotifier.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getInstance():XMLNotifier
     {
@@ -99,6 +109,11 @@
 	 *  the new operator to create multiple instances of it.
 	 *  Instead, call the static method XMLNotifider.getInstance()
 	 *  to get the sole instance of this class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function XMLNotifier(x:XMLNotifierSingleton)
     {
@@ -118,6 +133,11 @@
      *  @param xml XML/XMLList object to watch.
      *  @param notification Function that needs to be called.
 	 *  @param optional UID for object
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function watchXML(xml:Object, notifiable:IXMLNotifiable, uid:String = null):void
     {
@@ -162,6 +182,11 @@
 	 *
 	 *  @param xml XML/XMLList object to un-watch.
      *  @param notification Function notification function.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function unwatchXML(xml:Object, notifiable:IXMLNotifiable):void
     {
@@ -216,6 +241,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function XMLNotifierSingleton()
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/PopUpMenuIcon.as
+++ frameworks/projects/mx/src/mx/skins/halo/PopUpMenuIcon.as
@@ -14,6 +14,8 @@

 import flash.display.Graphics;
 import mx.core.mx_internal;
+
+use namespace mx_internal;

 /**
  *  The skin for all the states of the icon in a PopUpMenuButton.
@@ -62,7 +64,7 @@
         var g:Graphics = graphics;

 		g.clear();
-        g.lineStyle(1, mx_internal::arrowColor);
+        g.lineStyle(1, arrowColor);
         g.moveTo(0, 0);
         g.lineTo(w / 2, height);
         g.lineTo(w, 0);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4357
Author:   egreenfi@adobe.com
Date:     2008-12-18T23:52:27.017290Z

Log Message:
-----------
UIComponent now implements ILayoutElement directly

ILayoutElement was moved to mx.core.ILayoutElement, as it is now a core interface required by UIComponent.

Further phases to follow:
1) IVlisualElement to extend ILayoutElement, pending resolution of a compiler bug.
2) remove LayoutElementUIC, pending UIMovieclip implementing ILayoutElement
3) remove LayoutElementFactory, once all IVisualElements implement ILayoutElement directly.
4) remove ITransformable, moving transform properties onto IVisualElement.

Reviewer: Evtim
QA: yes.

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/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<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/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as" copyfrom-rev="4249" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/HSlider.as
+++ frameworks/projects/spark/src/spark/components/HSlider.as
@@ -16,7 +16,7 @@
 import flash.geom.Point;

 import mx.components.baseClasses.FxSlider;
-import mx.layout.ILayoutElement;
+import mx.core.ILayoutElement;
 import mx.layout.LayoutElementFactory;

 [IconFile("FxHSlider.png")]


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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedNonInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedNonInheritingTextStyles.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: 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@1258691 13f79535-47bb-0310-9956-ffa450edef68

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5224
Author:   jszeto@adobe.com
Date:     2009-03-10T21:06:53.989833Z

Log Message:
-----------
Flex SDK Bug Fixes

SDK-19772 Initially invisible graphic element can not be made visible

When visible is false, we were both setting the displayObject invisible and not drawing the graphics. When visible was then set to true, we changed the displayObject visibility, but didn't draw the graphics. The fix is to always draw the graphics when we are not sharing our displayObject. This way we simply toggle visibility on the displayObject on/off, instead of having to perform a redraw.

SDK-19581 BitmapFill incorrectly handle source property

Updated code to match code in BitmapGraphic. If the source is a class, we still need to check the type of the newly instantiated instance of that class.

SDK-19085 unexpected behaviour when setting scaleX < 3 on a LinearGradient

Internally, we no longer allow scaleX to be less than 2. Visually, this shouldn't have much impact.

QE Notes: n/a
Doc Notes: n/a
Bugs: SDK-19772, SDK-19581, SDK-19085
Reviewer: Evtim, Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradient.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradient.as
@@ -216,10 +216,14 @@
     	// top left corner is at 0,0
     	if (!isNaN(tx) && !isNaN(ty))
     		commonMatrix.translate(819.2, 819.2); // 1638.4 / 2
+
+    	// Force the length to a minimum of 2. Values of 0 or 1 have undesired behavior
+    	length = Math.max(length, 2);
+
     	// Scale the gradient in the x direction. The natural size is 1638.4px. No need
-    	// to scale the y direction because it is infinite
+    	// to scale the y direction because it is infinite
     	commonMatrix.scale (length / 1638.4, 1);
-    	//
+
 	    commonMatrix.rotate (!isNaN(mx_internal::_angle) ?
 									mx_internal::_angle : mx_internal::rotationInRadians);
 	    if (isNaN(tx))


Transferred from the Adobe Open Source Subversion Repository

Revision: 3418
Author:   shodgson@adobe.com
Date:     2008-09-30T17:24:48.986106Z

Log Message:
-----------
Remove obsolete poll-sync responders from PollingChannel and other impacted protocol-specific channels.

QA: No
Doc: No
Checkintests Pass: Yes

This stuff was originally used by a PollingChannel to directly monitor subscribe/unsubscribe commands issued by higher-level components in order to drive a count of active subscriptions, and from that, whether or not the channel needed to issue poll requests.

However, DataService, and then Consumer ended up managing this directly because they had better insight into when they considered themselves subscribed and they notify the PollingChannel of their state changes directly (mx_internally). When this was added, the underlying poll-sync responder machinery didn't go away, and it generally doesn't cause problems except in the case of a client disconnect without a preceding explicit unsubscribe. In this case the higher level component moves to an unsubscribed state when it disconnects (and lets the PollingChannel know) but because no unsubscribe command is sent by a poll-sync responder, the extra count it added never decrements and the channel continues to poll incorrectly.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as
@@ -20,6 +20,7 @@
 import mx.core.mx_internal;
 import mx.logging.Log;
 import mx.messaging.FlexClient;
+import mx.messaging.MessageResponder;
 import mx.messaging.config.ConfigMap;
 import mx.messaging.config.ServerConfig;
 import mx.messaging.events.ChannelFaultEvent;
@@ -305,7 +306,7 @@
         {
             var msg:CommandMessage = new CommandMessage();
             msg.operation = CommandMessage.DISCONNECT_OPERATION;
-            internalSend(new AMFFireAndForgetResponder(msg));
+            internalSend(new MessageResponder(null, msg, null));
         }
         // Shut down locally.
         setConnected(false);
@@ -513,24 +514,4 @@
     }
 }

-}
-
-//------------------------------------------------------------------------------
-//
-// Private Classes
-//
-//------------------------------------------------------------------------------
-
-import mx.messaging.MessageResponder;
-import mx.messaging.messages.IMessage;
-
-/**
- *  Helper class for sending a fire-and-forget disconnect message.
- */
-class AMFFireAndForgetResponder extends MessageResponder
-{
-    public function AMFFireAndForgetResponder(message:IMessage)
-    {
-        super(null, message, null);
-    }
-}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19758
Author:   aharui@adobe.com
Date:     2011-01-14T00:58:13.969259Z

Log Message:
-----------
reverting svn 19330 as it relied on svn 18635

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.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/supportClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -947,21 +947,6 @@
         dispatchEvent(new Event("indexInViewChanged"));
     }

-    //----------------------------------
-    //  typicalLayoutElementBaselinePosition
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override mx_internal function get typicalLayoutElementBaselinePosition():Number
-    {
-        if (!typicalLayoutElement)
-            return paddingTop;
-
-        return typicalLayoutElement.baselinePosition + paddingTop;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Methods


fixed minor coding style issues in VertexReference

--- src/aerys/minko/render/geometry/stream/iterator/VertexReference.as
+++ src/aerys/minko/render/geometry/stream/iterator/VertexReference.as
@@ -31,7 +31,10 @@
 		 * @return
 		 *
 		 */
-		public function get index() : int	{ return _index; }
+		public function get index() : uint
+		{
+			return _index;
+		}

 		public function VertexReference(stream 	: IVertexStream,
 								 		index	: int	= -1)
@@ -49,7 +52,7 @@
 			var stream 			: VertexStream	= _propertyToStream[propertyName];

 			if (!(stream.usage & StreamUsage.READ))
-				throw new Error("Unable to read data from vertex stream.");
+				throw new Error('Unable to read data from vertex stream.');

 			var format 			: VertexFormat 	= stream.format;
 			var index			: int			= _index * format.size
@@ -67,7 +70,7 @@
 			var stream 			: VertexStream 	= _propertyToStream[propertyName];

 			if (!(stream.usage & StreamUsage.WRITE))
-				throw new Error("Unable to write data into vertex stream.");
+				throw new Error('Unable to write data into vertex stream.');

 			var format 			: VertexFormat 	= stream.format;
 			var index			: int			= _index * format.size
@@ -89,12 +92,12 @@

 		public function toString() : String
 		{
-			var str : String	= "Vertex(index=" + _index;
+			var str : String	= 'Vertex(index=' + _index;

 			for (var field : String in _propertyToStream)
-				str += ", " + field + "=" + getProperty(field);
+				str += ', ' + field + '=' + getProperty(field);

-			str += ")";
+			str += ')';

 			return str;
 		}


XIFF-110: download method

XIFF-110: download method

--- src/org/igniterealtime/xiff/data/message/OutOfBoundDataExtension.as
+++ src/org/igniterealtime/xiff/data/message/OutOfBoundDataExtension.as
@@ -25,6 +25,10 @@
  */
 package org.igniterealtime.xiff.data.message
 {
+	import flash.net.URLLoader;
+	import flash.net.URLRequest;
+	import flash.events.Event;
+
 	import org.igniterealtime.xiff.data.Extension;
 	import org.igniterealtime.xiff.data.IExtension;

@@ -73,6 +77,18 @@
 		}

 		/**
+		 * Download the data from the URL defined in this extension.
+		 * @param	callback	onComplete handler,
+		 *   function(event:Event):void, where event.target is URLLoader
+		 */
+		public function download(callback:Function):void
+		{
+			var loader:URLLoader = new URLLoader();
+			loader.addEventListener(Event.COMPLETE, callback);
+			loader.load(new URLRequest(url));
+		}
+
+		/**
 		 * Required address of the content.
 		 */
 		public function get url():String


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

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