Transferred from the Adobe Open Source Subversion Repository

Revision: 14629
Author:   cframpto@adobe.com
Date:     2010-03-08T20:10:20.106709Z

Log Message:
-----------
Merge changes for mirroring from 4.x to trunk. Rev 14623.

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -46,6 +46,7 @@
 import mx.automation.IAutomationObject;
 import mx.binding.BindingManager;
 import mx.controls.IFlexContextMenu;
+import mx.core.LayoutDirection;
 import mx.effects.EffectManager;
 import mx.effects.IEffect;
 import mx.effects.IEffectInstance;
@@ -7599,7 +7600,7 @@

         const mirror:Boolean = (parentElt)
             ? (parentElt.layoutDirection != thisLayoutDirection)
-            : ("ltr" != thisLayoutDirection);
+            : (LayoutDirection.LTR != thisLayoutDirection);

         if ((_layoutFeatures) ? (mirror != _layoutFeatures.mirror) : mirror)
         {
@@ -9797,7 +9798,7 @@
      *  switch statement of the keyDownHandler, map Keyboard.LEFT to
      *  Keyboard.RIGHT, and similiarly for Keyboard.RIGHT.
      *
-     *  Optionally, Keyboard.UP and can tied with Keyboard.LEFT and
+     *  Optionally, Keyboard.UP can be tied with Keyboard.LEFT and
      *  Keyboard.DOWN can be tied with Keyboard.RIGHT since some components
      *  do this.
      *
@@ -9817,26 +9818,26 @@
             case Keyboard.DOWN:
             {
                 // typically, if ltr, the same as RIGHT
-                if (mapUpDown && layoutDirection == "rtl")
+                if (mapUpDown && layoutDirection == LayoutDirection.RTL)
                     keyCode = Keyboard.LEFT;
                 break;
             }
             case Keyboard.RIGHT:
             {
-                if (layoutDirection == "rtl")
+                if (layoutDirection == LayoutDirection.RTL)
                     keyCode = Keyboard.LEFT;
                 break;
             }
             case Keyboard.UP:
             {
                 // typically, if ltr, the same as LEFT
-                if (mapUpDown && layoutDirection == "rtl")
+                if (mapUpDown && LayoutDirection.RTL)
                     keyCode = Keyboard.RIGHT;
                 break;
             }
             case Keyboard.LEFT:
             {
-                if (layoutDirection == "rtl")
+                if (layoutDirection == LayoutDirection.RTL)
                     keyCode = Keyboard.RIGHT;
                 break;
             }
@@ -12516,7 +12517,7 @@
     /**
      *  @private
      *  Helper function to update the storage vairable _transform.
-     *  Also updates the target proeprty of the new and the old
+     *  Also updates the target property of the new and the old
      *  values.
      */
     private function setTransform(value:flash.geom.Transform):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 4600
Author:   jszeto@adobe.com
Date:     2009-01-20T21:11:33.133710Z

Log Message:
-----------
Flex SDK - Move style metadata from base class down to component classes

Previously, all spark and text styles were defined on FxComponent even though not every component supports all of those styles. So I have moved each style to the top-most base class where the style will apply to all descendant classes of that base class.

This is the set of styles that were added to the various classes:

baseColor
color
focusColor
symbolColor
selectionColor
contentBackgroundColor
rollOverColor
alternatingItemColors
basic text styles
advanced text styles

Here are some details about the implementation:
- baseColor was added to FxComponent because every component and container supports it
- FxContainer and GroupBase are containers, so their children can potentially support any of the styles. Thus the container classes support all of the styles indirectly.
- FxDataContainer doesn't support all of the styles because its subclasses (FxButtonBar, FxList) don't support all styles.
- FxList supports selectionColor, but not inactiveSelectionColor or unfocusedSelectionColor. All other components that support selectionColor, support the other two styles, and thus include styles/metadata/SelectionFormatTextStyles.as
- GroupBase contains the style declarations that have the full ASDoc. All other declarations use the @copy keyword to reference the asdoc from GroupBase.

QE Notes: Update tests to remove references to styles that are no longer allowed on various components/FxButton.as
Doc Notes: Write the ASDoc comments for the style declarations in GroupBase
Bugs: n/a
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.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/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.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/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Button.as
+++ frameworks/projects/spark/src/spark/components/Button.as
@@ -27,6 +27,15 @@
 import mx.graphics.graphicsClasses.TextGraphicElement;
 import mx.managers.IFocusManagerComponent;
 import mx.utils.BitFlagUtil;
+
+include "../styles/metadata/BasicContainerFormatTextStyles.as"
+include "../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../styles/metadata/BasicCharacterFormatTextStyles.as"
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#focusColor
+ */
+[Style(name="focusColor", type="uint", format="Color", inherit="yes")]

 /**
  *  Dispatched when the user presses the FxButton control.


Transferred from the Adobe Open Source Subversion Repository

Revision: 6200
Author:   smgilson@adobe.com
Date:     2009-04-22T20:20:58.294727Z

Log Message:
-----------
Starting ASDoc work on spark effects

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.as</path>

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

--- frameworks/projects/spark/src/spark/effects/CrossFade.as
+++ frameworks/projects/spark/src/spark/effects/CrossFade.as
@@ -13,23 +13,27 @@
 import flash.utils.ByteArray;

 /**
- * This class performs a bitmap transition effect by running a
- * 'crossfade' between the first and second bitmaps.
- * The crossfade blends the two over the course of the
- * animation such that, at any point in the animation, where the
- * elapsed and eased fraction of the animation is f and the pixel
- * values in the first and second bitmaps are v1 and v2, the resulting
- * pixel value v for any pixel in the image will be
- * v = v1 * (1 - f) + v2 * f.
+ * The CrossFade effect performs a bitmap transition effect by running a
+ * crossfade between the first and second bitmaps.
+ * The crossfade blends the two bitmaps over the duration of the
+ * animation.
+ *
+ *
At any point in the animation, where the
+ * elapsed and eased fraction of the animation is f and the pixel
+ * values in the first and second bitmaps are v1 and v2,
+ * the resulting pixel value v for any pixel in the image is:

+ *
+ *
v = v1 * (1 - f) + v2 * f

  *
- *
The underlying bitmap effect is run by a Pixel Bender shader
- * that is loaded by the effect. There is no need to supply a shader
- * to this effect since it uses its own by default. However, if
- * a different Crossfade behavior is desired, a different shader may be
- * supplied, as long as it adheres to the constraints specified
- * for the shaderCode property of AnimateBitmap.

+ *
The bitmap effect is run by a pixel-shader program
+ * that is loaded by the effect.
+ * You can specify a different crossfade behavior by specifying
+ * a pixel-shader program to the shaderCode property.
+ * That pixel-shader program must meet the requirements defined in the
+ * AnimateShaderTransition effect.

  *
- * @see mx.effects.AnimateShaderTransition#shaderCode
+ * @see spark.effects.AnimateShaderTransition
+ * @see spark.effects.AnimateShaderTransition#shaderCode
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19483
Author:   eday@adobe.com
Date:     2010-12-20T20:22:08.727836Z

Log Message:
-----------
Bounce/pull bug fixes

QE notes:
Doc notes:
Bugs: SDK-28891, SDK-28884, SDK-28898, SDK-28876
Reviewer: Hans, Ryan
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -279,21 +279,21 @@
         // beyond its min/max, we want the scroll thumb to shink in size.
         // Note: not checking interactionMode==TOUCH here because it is assumed that
         // value will never exceed min/max unless in touch mode.
-        if (value < min)
+        if (pendingValue < min)
         {
             if (!fixedThumbSize)
             {
-                // Note:  we use thumb.width here to ensure the thumb doesn't get smaller than square.
-                thumbSize = Math.max(Math.max(thumb.width, thumb.minHeight), thumbSize + value);
+                // The minimum size we'll shrink the thumb to is either thumb.width or thumbSize: whichever is smaller.
+                thumbSize = Math.max(Math.min(thumb.width, thumbSize), thumbSize + pendingValue);
             }
             thumbPosTrackY = min;
         }
-        if (value > max)
+        if (pendingValue > max)
         {
             if (!fixedThumbSize)
             {
-                // Note:  we use thumb.width here to ensure the thumb doesn't get smaller than square.
-                thumbSize = Math.max(Math.max(thumb.width, thumb.minHeight), thumbSize - (value - max));
+                // The minimum size we'll shrink the thumb to is either thumb.width or thumbSize: whichever is smaller.
+                thumbSize = Math.max(Math.min(thumb.width, thumbSize), thumbSize - (pendingValue - max));
             }
             thumbPosTrackY = trackSize - thumbSize;
         }
@@ -485,7 +485,18 @@
     override mx_internal function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
     {
         if (viewport)
-            updateMaximumAndPageSize();
+        {
+            if (getStyle("interactionMode") == InteractionMode.TOUCH)
+            {
+                updateMaximumAndPageSize();
+            }
+            else
+            {
+                // SDK-28898: reverted previous behavior for desktop, resets
+                // scroll position to zero when all content is removed.
+                maximum = viewport.contentHeight - viewport.height;
+            }
+        }
     }

     /**


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

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


Added activeClip

Added activeClip

--- src/hype/framework/interactive/Adjuster.as
+++ src/hype/framework/interactive/Adjuster.as
@@ -55,6 +55,13 @@
 				stage.removeEventListener(MouseEvent.MOUSE_UP, onDropClip);

 			}
+		}
+
+		/**
+		 * The currently active clip
+		 */
+		public function get activeClip():Sprite {
+			return _activeClip;
 		}

 		private function onSelectClip(event:MouseEvent):void {


replace class Version by core.version

replace class Version by core.version

--- tests/GAv4/com/google/analytics/utils/FakeEnvironment.as
+++ tests/GAv4/com/google/analytics/utils/FakeEnvironment.as
@@ -1,18 +1,19 @@

 package com.google.analytics.utils
 {
+    import core.version;

     public class FakeEnvironment extends Environment
     {
         private var _appName:String;
-        private var _appVersion:Version;
+        private var _appVersion:version;
         private var _url:String;
         private var _referrer:String;
         private var _documentTitle:String;
         private var _domainName:String;
         private var _locationPath:String;
         private var _locationSearch:String;
-        private var _flashVersion:Version;
+        private var _flashVersion:version;
         private var _language:String;
         private var _languageEncoding:String;
         private var _operatingSystem:String;
@@ -26,11 +27,11 @@
         private var _isInHTML:Boolean;
         private var _isAIR:Boolean;

-        public function FakeEnvironment( appName:String = "", appVersion:Version = null,
+        public function FakeEnvironment( appName:String = "", appVersion:version = null,
                                        url:String = "", referrer:String = "",
                                        documentTitle:String = "", domainName:String = "",
                                        locationPath:String = "", locationSearch:String = "",
-                                       flashVersion:Version = null, language:String = "",
+                                       flashVersion:version = null, language:String = "",
                                        languageEncoding:String = "", operatingSystem:String = "",
                                        playerType:String = "", platform:String = "",
                                        protocol:String = null, screenWidth:Number = NaN,
@@ -74,12 +75,12 @@
             _appName = value;
         }

-        public override function get appVersion():Version
+        public override function get appVersion():version
         {
             return _appVersion;
         }

-        public override function set appVersion( value:Version ):void
+        public override function set appVersion( value:version ):void
         {
             _appVersion = value;
         }
@@ -119,7 +120,7 @@
             return _locationSearch;
         }

-        public override function get flashVersion():Version
+        public override function get flashVersion():version
         {
             return _flashVersion;
         }


Corrected GetChildrenWithScript() method to the accurate overloaded type

--- DroneAnarchy/Resources/Scripts/DroneAnarchy.as
+++ DroneAnarchy/Resources/Scripts/DroneAnarchy.as
@@ -494,7 +494,7 @@
 void CleanupScene()
 {
 	//Remove All Nodes with script object : Drones, Bullets and even the player
-	Array<Node@> scriptedNodes = scene_.GetChildrenWithScript("DroneObject",true);
+	Array<Node@> scriptedNodes = scene_.GetChildrenWithScript(true);
 	for(uint i=0; i < scriptedNodes.length ; i++)
 	{
 		Node@ scriptNode = scriptedNodes[i];


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPSet.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPSet.as
@@ -0,0 +1,139 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import mx.collections.IList;
+
+/**
+ *  The IOLAPSet interface represents a set,
+ *  which is used to configure the axis of an OLAP query.
+ *
+ *  @see mx.olap.OLAPSet
+ *  @see mx.olap.OLAPQueryAxis
+ *  @see mx.olap.IOLAPResultAxis
+ *  @see mx.olap.OLAPResultAxis
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IOLAPSet
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+   /**
+    *  Adds a new member to the set.
+    *
+    *
This method adds the appropriate elements to the set,
+    *  depending on the type of element passed in.
+    *  If an IOLAPHierarchy element is passed, it adds the default member of the hierarchy.
+    *  If an IOLAPLevel element is passed, it adds all the members of the level.
+    *  If an IOLAPMember element is passed, it is added to the set.

+    *
+    *  @param element The member to add.
+    *  If element is a hierarchy or level, its members
+    *  are added. If element is an instance of IOLAPMember,
+    *  it is added directly.
+    *  A new tuple is created for each member.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function addElement(element:IOLAPElement):void
+
+   /**
+    *  Adds a list of members to the set.
+    *  This method can be called when members or children of a hierarchy
+    *  or member need to be added to the set.
+    *
+    *  @param element The members to add, as a list of IOLAPMember instances.
+    *  A new tuple is created for each member.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function addElements(elements:IList):void
+
+   /**
+    *  Adds a new tuple to the set.
+    *
+    *  @param tuple The tuple to add.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function addTuple(tuple:IOLAPTuple):void;
+
+   /**
+    *  Returns a new IOLAPSet instance that contains a crossjoin of this
+    *  IOLAPSet instance and input.
+    *
+    *  @param input An IOLAPSet instance.
+    *
+    *  @return An IOLAPSet instance that contains a crossjoin of this
+    *  IOLAPSet instance and input.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function crossJoin(input:IOLAPSet):IOLAPSet;
+
+   /**
+    *  Returns a new IOLAPSet that is hierarchized version
+    *  of this set.
+    *
+    *  @param post If true indicates that children should precede parents.
+    *  By default, parents precede children.
+    *
+    *  @return A new IOLAPSet that is hierarchized version
+    *  of this set.
+    *
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function hierarchize(post:Boolean=false):IOLAPSet;
+
+   /**
+    *  Returns a new IOLAPSet instance that contains a union of this
+    *  IOLAPSet instance and input.
+    *
+    *  @param input An IOLAPSet instance.
+    *
+    *  @return An IOLAPSet instance that contains a union of this
+    *  IOLAPSet instance and input.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+   function union(input:IOLAPSet/*, keepDuplicates:Boolean=false*/):IOLAPSet;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7979
Author:   aharui@adobe.com
Date:     2009-06-18T21:47:52.364806Z

Log Message:
-----------
ButtonBar PARB changes:

-arrowKeysWrapFocus removed from ButtonBar
-arrowKeysWrapFocus added to ListBase
-arrowKeysWrapFocus added as parameter to LayoutBase.getNavigationDestinationIndex (and subclasses of LayoutBase)
-itemClick event removed from ButtonBar, now uses "change" event like other ListBase components
-ASDoc removed for partAdded/partRemoved

QE Notes: None
Doc Notes: Yes, ASDoc affected by every change listed above
Bugs: N/A
Reviewer: szeto
tests: checkintests mustella/List mustella/ButtonBar

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1452,16 +1452,18 @@
     /**
      *  @private
      */
-    override public function getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint):int
+    override public function getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint, arrowKeysWrapFocus:Boolean):int
     {
         if (!target || target.numElements < 1)
             return -1;

+        var maxIndex:int = target.numElements - 1;
+
         // Special case when nothing was previously selected
         if (currentIndex == -1)
         {
             if (navigationUnit == NavigationUnit.UP || navigationUnit == NavigationUnit.LEFT)
-                return -1;
+                return arrowKeysWrapFocus ? maxIndex : -1;

             if (navigationUnit == NavigationUnit.DOWN || navigationUnit == NavigationUnit.RIGHT)
                 return 0;
@@ -1469,7 +1471,6 @@

         // Make sure currentIndex is within range
         var inRows:Boolean = orientation == TileOrientation.ROWS;
-        var maxIndex:int = target.numElements - 1;
         currentIndex = Math.max(0, Math.min(maxIndex, currentIndex));

         // Find the current column and row
@@ -1510,6 +1511,11 @@
                     newRow--;
                     newColumn = columnCount - 1;
                 }
+                else if (arrowKeysWrapFocus && newColumn == 0 && inRows && newRow == 0)
+                {
+                    newRow = rowCount - 1;
+                    newColumn = columnCount - 1;
+                }
                 else
                     newColumn--;
                 break;
@@ -1524,6 +1530,11 @@
                     newColumn = 0;
                     newRow++;
                 }
+                else if (arrowKeysWrapFocus && newColumn == columnCount - 1 && inRows && newRow == rowCount - 1)
+                {
+                    newColumn = 0;
+                    newRow = 0;
+                }
                 else
                     newColumn++;
                 break;
@@ -1538,6 +1549,11 @@
                     newColumn--;
                     newRow = rowCount - 1;
                 }
+                else if (arrowKeysWrapFocus && newRow == 0 && !inRows && newColumn == 0)
+                {
+                    newColumn = columnCount - 1;
+                    newRow = rowCount - 1;
+                }
                 else
                     newRow--;
                 break;
@@ -1550,6 +1566,11 @@
                 if (newRow == rowCount - 1 && !inRows && newColumn < columnCount - 1)
                 {
                     newColumn++;
+                    newRow = 0;
+                }
+                else if (arrowKeysWrapFocus && newRow == rowCount - 1 && !inRows && newColumn == columnCount - 1)
+                {
+                    newColumn = 0;
                     newRow = 0;
                 }
                 else
@@ -1611,7 +1632,7 @@
                 }
                 break;
             }
-            default: return super.getNavigationDestinationIndex(currentIndex, navigationUnit);
+            default: return super.getNavigationDestinationIndex(currentIndex, navigationUnit, arrowKeysWrapFocus);
         }

         // Make sure rows and columns are within range


Transferred from the Adobe Open Source Subversion Repository

Revision: 12331
Author:   smgilson@adobe.com
Date:     2009-12-01T19:45:33.274910Z

Log Message:
-----------
ASDoc updates in preparation for localization

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/spark/src/spark/components/TitleWindow.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/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -128,7 +128,7 @@
     [Inspectable(category="General")]

     /**
-     *  Horizontal space between columns.
+     *  Horizontal space between columns, in pixels.
      *
      *  @see #verticalGap
      *  @see #columnAlign
@@ -168,7 +168,7 @@
     [Inspectable(category="General")]

     /**
-     *  Vertical space between rows.
+     *  Vertical space between rows, in pixels.
      *
      *  @see #horizontalGap
      *  @see #rowAlign
@@ -364,7 +364,7 @@
     [Inspectable(category="General", minValue="0.0")]

     /**
-     *  Contain the actual column width.
+     *  Contain the actual column width, in pixels.
      *
      *
If not explicitly set, the column width is
      *  determined from the width of the widest element.

@@ -411,7 +411,7 @@
     [Inspectable(category="General", minValue="0.0")]

     /**
-     *  The row height.
+     *  The row height, in pixels.
      *
      *
If not explicitly set, the row height is
      *  determined from the maximum of elements' height.

@@ -1090,13 +1090,13 @@
             for (var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
                 updateVirtualTileSize(target.getVirtualElementAt(index));
         }
-
-		// Make sure that we always have non-NaN values in the cache, even
-		// when there are no elements.
-		if (isNaN(_tileWidthCached))
-			_tileWidthCached = 0;
-		if (isNaN(_tileHeightCached))
-			_tileHeightCached = 0;
+
+        // Make sure that we always have non-NaN values in the cache, even
+        // when there are no elements.
+        if (isNaN(_tileWidthCached))
+            _tileWidthCached = 0;
+        if (isNaN(_tileHeightCached))
+            _tileHeightCached = 0;

         if (isNaN(_columnWidth))
             _columnWidth = _tileWidthCached;
@@ -1947,14 +1947,14 @@
             row++;

         // Limit row and column, if any one is too far from the drop location
-		// And there is white space
-		if (column > _columnCount || row > _rowCount)
-		{
-			row = _rowCount;
-			column = _columnCount;
-		}
-
-		if (column < 0)
+        // And there is white space
+        if (column > _columnCount || row > _rowCount)
+        {
+            row = _rowCount;
+            column = _columnCount;
+        }
+
+        if (column < 0)
             column = 0;
         if (row < 0)
             row = 0;
@@ -2054,13 +2054,13 @@
             if (_horizontalGap < 0 && (column == _columnCount || count == dropLocation.dropIndex))
                 emptySpaceLeft -= _horizontalGap;

-			width = emptySpace;
-			height = _rowHeight;
-			// Special case - if we have negative gap and we're not the last
-			// row, adjust the height
-			if (_verticalGap < 0 && row < _rowCount - 1)
-				height += _verticalGap + 1;
-
+            width = emptySpace;
+            height = _rowHeight;
+            // Special case - if we have negative gap and we're not the last
+            // row, adjust the height
+            if (_verticalGap < 0 && row < _rowCount - 1)
+                height += _verticalGap + 1;
+
             if (dropIndicator is IVisualElement)
             {
                 dropIndicatorElement = IVisualElement(dropIndicator);
@@ -2070,10 +2070,10 @@
             }

             x = emptySpaceLeft + Math.round((emptySpace - width) / 2);
-			// Allow 1 pixel overlap with container border
+            // Allow 1 pixel overlap with container border
             x = Math.max(-1, Math.min(target.contentWidth - width + 1, x));

-			y = row * (_rowHeight + _verticalGap);
+            y = row * (_rowHeight + _verticalGap);
         }
         else
         {
@@ -2085,12 +2085,12 @@
             if (_verticalGap < 0 && (row == _rowCount || count == dropLocation.dropIndex))
                 emptySpaceTop -= _verticalGap;

-			width = _columnWidth;
-			height = emptySpace;
-			// Special case - if we have negative gap and we're not the last
-			// column, adjust the width
-			if (_horizontalGap < 0 && column < _columnCount - 1)
-				width += _horizontalGap + 1;
+            width = _columnWidth;
+            height = emptySpace;
+            // Special case - if we have negative gap and we're not the last
+            // column, adjust the width
+            if (_horizontalGap < 0 && column < _columnCount - 1)
+                width += _horizontalGap + 1;

             if (dropIndicator is IVisualElement)
             {
@@ -2102,8 +2102,8 @@

             x = column * (_columnWidth + _horizontalGap);

-			y = emptySpaceTop + Math.round((emptySpace - height) / 2);
-			// Allow 1 pixel overlap with container border
+            y = emptySpaceTop + Math.round((emptySpace - height) / 2);
+            // Allow 1 pixel overlap with container border
             y = Math.max(-1, Math.min(target.contentHeight - height + 1, y));
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8023
Author:   aharui@adobe.com
Date:     2009-06-19T23:37:02.437061Z

Log Message:
-----------
Frame1 cleanup part 2 (final part AFAIK).  MarshallPLan (now MarshallingSupport) is now opt-in.  All SWFs using Marshalling must use -includes=mx.managers.systemClasses.MarshallingSupport on the command line.

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Joan cyclone
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<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/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as" copyfrom-rev="7988" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
@@ -164,16 +164,20 @@
 	 */
 	private function activateForm(f:Object):void
 	{
+        var e:DynamicEvent;

 		// trace("SM: activate " + f + " " + forms.length);
 		if (form)
 		{
 			if (form != f && forms.length > 1)
 			{
-				var e:DynamicEvent = new DynamicEvent("activateForm", false, true);
-				e.form = f;
+                if (hasEventListener("activateForm"))
+                {
+				    e = new DynamicEvent("activateForm", false, true);
+				    e.form = f;
+                }
 				// Switch the active form.
-				if (dispatchEvent(e))
+				if (!e || dispatchEvent(e))
 				{
 					var z:IFocusManagerContainer = IFocusManagerContainer(form);
 					// trace("OLW " + f + " deactivating old form " + z);
@@ -184,9 +188,13 @@

 		form = f;

-        e = new DynamicEvent("activatedForm", false, true);
-        e.form = f;
-        if (dispatchEvent(e))
+        var e2:DynamicEvent;
+        if (hasEventListener("activatedForm"))
+        {
+            e2 = new DynamicEvent("activatedForm", false, true);
+            e2.form = f;
+        }
+        if (!e2 || dispatchEvent(e2))
         {
 		    if (f.focusManager)
 		    {
@@ -213,6 +221,8 @@
 	 */
 	private function deactivateForm(f:Object):void
 	{
+        var e:DynamicEvent;
+
 		// trace(">>SM: deactivate " + f);

 		if (form)
@@ -220,23 +230,35 @@
 			// If there's more than one form and this is it, find a new form.
 			if (form == f && forms.length > 1)
 			{
-				var e:DynamicEvent = new DynamicEvent("deactivateForm", false, true);
-				e.form = form;
-				if (dispatchEvent(e))
+                if (hasEventListener("deactivateForm"))
+                {
+				    e = new DynamicEvent("deactivateForm", false, true);
+				    e.form = form;
+                }
+				if (!e || dispatchEvent(e))
 					form.focusManager.deactivate();

 				form = findLastActiveForm(f);

+                var e2:DynamicEvent;
 				// make sure we have a valid top level window.
 				// This can be null if top level window has been hidden for some reason.
 				if (form)
 				{
-                    e = new DynamicEvent("deactivatedForm", false, true);
-                    e.form = form;
-                    if (dispatchEvent(e))
+                    if (hasEventListener("deactivatedForm"))
                     {
-					    form.focusManager.activate();
-				    }
+                        e2 = new DynamicEvent("deactivatedForm", false, true);
+                        e2.form = form;
+                    }
+                    if (!e2 || dispatchEvent(e2))
+                    {
+				        // make sure we have a valid top level window.
+				        // This can be null if top level window has been hidden for some reason.
+				        if (form)
+				        {
+					        form.focusManager.activate();
+				        }
+                    }
                 }
 			}
 		}
@@ -273,14 +295,19 @@
 	 */
 	 private function canActivatePopUp(f:Object):Boolean
 	 {
-
-		var e:Request = new Request("canActivateForm", false, true);
-		e.value = f;
-	 	if (!dispatchEvent(e))
-	 	{
-			return e.value;
-	 	}
-	 	else if (canActivateLocalComponent(f))
+		var e:Request;
+
+        if (hasEventListener("canActivateForm"))
+        {
+		    e = new Request("canActivateForm", false, true);
+		    e.value = f;
+	 	    if (!dispatchEvent(e))
+	 	    {
+			    return e.value;
+	 	    }
+        }
+
+	 	if (canActivateLocalComponent(f))
 			return true;

 		return false;
@@ -332,7 +359,8 @@
 				// If this is a bridged application, send a message to the parent
 				// to let them know the form has been deactivated so they can
 				// activate a new form.
-				dispatchEvent(new FocusEvent("removeFocusManager", false, false, InteractiveObject(f)));
+                if (hasEventListener("removeFocusManager"))
+				    dispatchEvent(new FocusEvent("removeFocusManager", false, false, InteractiveObject(f)));

 				forms.splice(i, 1);

@@ -351,9 +379,9 @@
 	private function mouseDownHandler(event:MouseEvent):void
 	{
 		// trace("SM:mouseDownHandler " + this);
-
-		if (!dispatchEvent(new FocusEvent(MouseEvent.MOUSE_DOWN, false, true, InteractiveObject(event.target))))
-			return;
+		if (hasEventListener(MouseEvent.MOUSE_DOWN))
+		    if (!dispatchEvent(new FocusEvent(MouseEvent.MOUSE_DOWN, false, true, InteractiveObject(event.target))))
+			    return;

 		if (numModalWindows == 0) // no modal windows are up
 		{
@@ -368,9 +396,14 @@
 				{
 					for (var i:int = 0; i < n; i++)
 					{
-						var request:Request = new Request("actualForm", false, true);
-						request.value = forms[i];
-						var form_i:Object = dispatchEvent(request) == false ? forms[i].window : forms[i];
+						var form_i:Object = forms[i];
+                        if (hasEventListener("actualForm"))
+                        {
+						    var request:Request = new Request("actualForm", false, true);
+						    request.value = forms[i];
+                            if (!dispatchEvent(request))
+                                form_i = forms[i].window;
+                        }
 						if (form_i == p)
 						{
 							var j:int = 0;
@@ -385,9 +418,15 @@
 								activate(IFocusManagerContainer(p));

 								if (p == systemManager.document)
-									dispatchEvent(new Event("activateApplication"));
+                                {
+                                    if (hasEventListener("activateApplication"))
+									    dispatchEvent(new Event("activateApplication"));
+                                }
 								else if (p is DisplayObject)
-									dispatchEvent(new FocusEvent("activateWindow", false, false, InteractiveObject(p)));
+                                {
+                                    if (hasEventListener("activateWindow"))
+    									dispatchEvent(new FocusEvent("activateWindow", false, false, InteractiveObject(p)));
+                                }
 							}

 							if (systemManager.popUpChildren.contains(p))
@@ -405,11 +444,15 @@
 							for (j = 0; j < n; j++)
 							{
 								var f:DisplayObject;
-								request = new Request("isRemote", false, true);
-								request.value = forms[j];
-								var isRemotePopUp:Boolean = false;
-								if (!dispatchEvent(request))
-									isRemotePopUp = request.value as Boolean;
+                                isRemotePopUp = false;
+                                if (hasEventListener("isRemote"))
+                                {
+								    request = new Request("isRemote", false, true);
+								    request.value = forms[j];
+								    var isRemotePopUp:Boolean = false;
+								    if (!dispatchEvent(request))
+    									isRemotePopUp = request.value as Boolean;
+                                }
 								if (isRemotePopUp)
 								{
 									if (forms[j].window is String)
@@ -437,7 +480,7 @@
 					p = p.parent;
 				}
 			}
-			else
+			else if (hasEventListener("activateApplication"))
 				dispatchEvent(new Event("activateApplication"));
 		}
 	}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBaseSelectionDataPending.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBaseSelectionDataPending.as
@@ -0,0 +1,105 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.listClasses
+{
+
+import mx.collections.CursorBookmark;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  The object that we use to store seek data
+ *  that was interrupted by an ItemPendingError.
+ *  Used when trying to select several items at once
+ *  and match a selectedItem to its index.
+ */
+public class ListBaseSelectionDataPending
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function ListBaseSelectionDataPending(useFind:Boolean, index:int,
+												 items:Array,
+												 bookmark:CursorBookmark,
+												 offset:int)
+	{
+		super();
+
+		this.useFind = useFind;
+		this.index = index;
+		this.items = items;
+		this.bookmark = bookmark;
+		this.offset = offset;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  bookmark
+	//----------------------------------
+
+	/**
+	 *  The bookmark we have to seek to
+	 */
+	public var bookmark:CursorBookmark;
+
+	//----------------------------------
+	//  index
+	//----------------------------------
+
+	/**
+	 *  The index into the iterator when we hit the page fault
+	 */
+	public var index:int;
+
+	//----------------------------------
+	//  items
+	//----------------------------------
+
+	/**
+	 *  The list if items being selected
+	 */
+	public var items:Array;
+
+	//----------------------------------
+	//  offset
+	//----------------------------------
+
+	/**
+	 *  The offset from the bookmark we have to seek to
+	 */
+	public var offset:int;
+
+	//----------------------------------
+	//  useFind
+	//----------------------------------
+
+	/**
+	 *  True if we use findAny, false if we iterate the collection
+	 */
+	public var useFind:Boolean;
+}
+
+}


FLEX-33537:  Changed the internal setfocus to the textDisplay call to be callLater.  This allows for the skin/child components to be setup before receiving focus.

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -1879,7 +1879,8 @@
             }
             else
             {
-                textDisplay.setFocus();
+                //Calling later so the skin/state can finish setting up before accepting focus on textDisplay.
+                callLater(textDisplay.setFocus);
             }
         }
     }


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

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

 package mx.core
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/StyleManager.as
+++ frameworks/projects/framework/src/mx/styles/StyleManager.as
@@ -17,8 +17,10 @@
 import flash.system.SecurityDomain;

 import mx.core.FlexVersion;
+import mx.core.IFlexModuleFactory;
 import mx.core.mx_internal;
 import mx.core.Singleton;
+import mx.managers.SystemManagerGlobals;

 /**
  *  The StyleManager class manages the following:
@@ -102,6 +104,36 @@
     //--------------------------------------------------------------------------

     /**
+     *  Returns the style manager for an object.
+     *
+     *  @param moduleFactory The module factory of an object you want the
+     *  style manager for. If null, the top-level style manager is returned.
+     *
+     *  @return the style manager for the given module factory.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static function getStyleManager(moduleFactory:IFlexModuleFactory):IStyleManager2
+    {
+        if (!moduleFactory)
+            moduleFactory = SystemManagerGlobals.topLevelSystemManagers[0];
+
+        var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2"));
+        if (styleManager == null)
+        {
+            // All Flex 4 swfs should have a style manager.
+            // In the transition to multiple style managers, use the top-level style manager.
+            //trace("no style manager found");
+            styleManager = impl;
+        }
+
+        return styleManager;
+    }
+
+    /**
      *  @private
      *  The root of all proto chains used for looking up styles.
      *  This object is initialized once by initProtoChainRoots() and
@@ -109,6 +141,8 @@
      *  It is accessed by code that needs to construct proto chains,
      *  such as the initProtoChain() method of UIComponent.
      */
+    //[Deprecated(replacement="IStyleManager2.stylesRoot on a style manager instance",
+    //            since="4.0")]
     mx_internal static function get stylesRoot():Object
     {
         return impl.stylesRoot;
@@ -127,6 +161,8 @@
      *  The method registerInheritingStyle() adds to this set
      *  and isInheritingStyle() queries this set.
      */
+    //[Deprecated(replacement="IStyleManager2.inheritingStyles on a style manager instance",
+    //            since="4.0")]
     mx_internal static function get inheritingStyles():Object
     {
         return impl.inheritingStyles;
@@ -150,21 +186,26 @@
      *  control whether CSS type selectors must be fully qualified class names
      *  when the compatibility version is 4 or later.
      */
+    //[Deprecated(replacement="IStyleManager2.qualifiedTypeSelectors on a style manager instance",
+    //            since="4.0")]
     mx_internal static function get qualifiedTypeSelectors():Boolean
     {
-        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
-            return false;
-        else
-            return _qualifiedTypeSelectors;
-    }
+        return impl.qualifiedTypeSelectors;
+    }
+
+    /**
+     *  @private
+     */
     mx_internal static function set qualifiedTypeSelectors(value:Boolean):void
     {
-        _qualifiedTypeSelectors = value;
-    }
-
-    /**
-     *  @private
-     */
+        impl.qualifiedTypeSelectors = value;
+    }
+
+    /**
+     *  @private
+     */
+    //[Deprecated(replacement="IStyleManager2.typeHierarchyCache on a style manager instance",
+    //            since="4.0")]
     mx_internal static function get typeHierarchyCache():Object
     {
         return impl.typeHierarchyCache;
@@ -177,6 +218,8 @@
     /**
      *  @private
      */
+    //[Deprecated(replacement="IStyleManager2.typeSelectorCache on a style manager instance",
+    //            since="4.0")]
     mx_internal static function get typeSelectorCache():Object
     {
         return impl.typeSelectorCache;
@@ -191,6 +234,8 @@
      *  This method is called by code autogenerated by the MXML compiler,
      *  after StyleManager.styles is popuplated with CSSStyleDeclarations.
      */
+    //[Deprecated(replacement="IStyleManager2.initProtoChainRoots on a style manager instance",
+    //            since="4.0")]
     mx_internal static function initProtoChainRoots():void
     {
         impl.initProtoChainRoots();
@@ -208,6 +253,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.selectors on a style manager instance",
+    //            since="4.0")]
     public static function get selectors():Array
     {
         return impl.selectors;
@@ -224,6 +271,8 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
+    //[Deprecated(replacement="IStyleManager2.hasPseudoCondition on a style manager instance",
+    //            since="4.0")]
     mx_internal static function hasPseudoCondition(value:String):Boolean
     {
         return impl.hasPseudoCondition(value);
@@ -240,6 +289,8 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
+    //[Deprecated(replacement="IStyleManager2.hasAdvancedSelectors on a style manager instance",
+    //            since="4.0")]
     mx_internal static function hasAdvancedSelectors():Boolean
     {
         return impl.hasAdvancedSelectors();
@@ -258,6 +309,8 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
+    //[Deprecated(replacement="IStyleManager2.getStyleDeclarations on a style manager instance",
+    //            since="4.0")]
     mx_internal static function getStyleDeclarations(subject:String):Array
     {
         return impl.getStyleDeclarations(subject);
@@ -293,6 +346,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.getStyleDeclaration on a style manager instance",
+    //            since="4.0")]
     public static function getStyleDeclaration(
                                 selector:String):CSSStyleDeclaration
     {
@@ -352,6 +407,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.setStyleDeclaration on a style manager instance",
+    //            since="4.0")]
     public static function setStyleDeclaration(
                                 selector:String,
                                 styleDeclaration:CSSStyleDeclaration,
@@ -387,6 +444,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.clearStyleDeclaration on a style manager instance",
+    //            since="4.0")]
     public static function clearStyleDeclaration(selector:String,
                                                  update:Boolean):void
     {
@@ -398,6 +457,8 @@
      *  After an entire selector is added, replaced, or removed,
      *  this method updates all the DisplayList trees.
      */
+    //[Deprecated(replacement="IStyleManager2.styleDeclarationsChanged on a style manager instance",
+    //            since="4.0")]
     mx_internal static function styleDeclarationsChanged():void
     {
         impl.styleDeclarationsChanged();
@@ -418,6 +479,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.registerInheritingStyle on a style manager instance",
+    //            since="4.0")]
     public static function registerInheritingStyle(styleName:String):void
     {
         impl.registerInheritingStyle(styleName);
@@ -435,6 +498,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isInheritingStyle on a style manager instance",
+    //            since="4.0")]
     public static function isInheritingStyle(styleName:String):Boolean
     {
         return impl.isInheritingStyle(styleName);
@@ -453,6 +518,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isInheritingTextFormatStyle on a style manager instance",
+    //            since="4.0")]
     public static function isInheritingTextFormatStyle(styleName:String):Boolean
     {
         return impl.isInheritingTextFormatStyle(styleName);
@@ -472,6 +539,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.registerSizeInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function registerSizeInvalidatingStyle(styleName:String):void
     {
         impl.registerSizeInvalidatingStyle(styleName);
@@ -494,6 +563,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isSizeInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function isSizeInvalidatingStyle(styleName:String):Boolean
     {
         return impl.isSizeInvalidatingStyle(styleName);
@@ -514,6 +585,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.registerParentSizeInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function registerParentSizeInvalidatingStyle(styleName:String):void
     {
         impl.registerParentSizeInvalidatingStyle(styleName);
@@ -538,6 +611,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isParentSizeInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function isParentSizeInvalidatingStyle(styleName:String):Boolean
     {
         return impl.isParentSizeInvalidatingStyle(styleName);
@@ -557,6 +632,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.registerParentDisplayListInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function registerParentDisplayListInvalidatingStyle(
                                 styleName:String):void
     {
@@ -582,6 +659,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isParentDisplayListInvalidatingStyle on a style manager instance",
+    //            since="4.0")]
     public static function isParentDisplayListInvalidatingStyle(
                                 styleName:String):Boolean
     {
@@ -601,6 +680,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.registerColorName on a style manager instance",
+    //            since="4.0")]
     public static function registerColorName(colorName:String, colorValue:uint):void
     {
         impl.registerColorName(colorName, colorValue);
@@ -620,6 +701,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isColorName on a style manager instance",
+    //            since="4.0")]
     public static function isColorName(colorName:String):Boolean
     {
         return impl.isColorName(colorName);
@@ -654,6 +737,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.getColorName on a style manager instance",
+    //            since="4.0")]
     public static function getColorName(colorName:Object):uint
     {
         return impl.getColorName(colorName);
@@ -674,6 +759,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.getColorNames on a style manager instance",
+    //            since="4.0")]
     public static function getColorNames(colors:Array /* of Number or String */):void
     {
         impl.getColorNames(colors);
@@ -703,6 +790,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.isValidStyleValue on a style manager instance",
+    //            since="4.0")]
     public static function isValidStyleValue(value:*):Boolean
     {
         return impl.isValidStyleValue(value);
@@ -743,6 +832,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.loadStyleDeclarations on a style manager instance",
+    //            since="4.0")]
     public static function loadStyleDeclarations(
                          url:String, update:Boolean = true,
                          trustContent:Boolean = false,
@@ -769,6 +860,8 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    //[Deprecated(replacement="IStyleManager2.unloadStyleDeclarations on a style manager instance",
+    //            since="4.0")]
     public static function unloadStyleDeclarations(
                                 url:String, update:Boolean = true):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22086
Author:   jszeto@adobe.com
Date:     2011-08-19T00:14:47.664747Z

Log Message:
-----------
SpinnerList bug fixes and visual update

Tweaked the SpinnerListContainer visuals based on XD and PM feedback

SDK-31201 - DateSpinner: when setting a big year like 9999 year as selectedDate , no date in Date list in dateAndTime mode .

We were hitting a Player limitation for the x/y values. The solution is to offset the y value if we exceed that maximum number.

SDK-31178 - Application freezes when SpinnerList does not have a dataProvider

Added check to VerticalSpinnerLayout and gave the SpinnerList a minimum height to draw

SDK-31096 - DateSpinner doesn't support text styles like fontWeight and color

Added the text style metadata

SDK-30969 - fontSize style isn't respected by SpinnerList

Moved fontSize style from SpinnerListItemRenderer type selector to SpinnerList type selector. Made sure typicalLayoutElement is remeasured after a text style change

QE notes: none
Doc notes: none
Bugs: listed above
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerShadow.fxg</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -289,6 +289,13 @@
             layout.typicalLayoutElement = element;
     }

+    // TODO (jszeto) Get PARB'ed and make public?
+    mx_internal function resetTypicalLayoutElement():void
+    {
+        typicalItemChanged = true;
+        invalidateProperties();
+    }
+
     private function initializeTypicalItem():void
     {
         if (_typicalItem === null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 7554
Author:   cframpto@adobe.com
Date:     2009-06-04T17:33:18.612906Z

Log Message:
-----------
-Dispatch FlexEvent.VALUE_COMMIT events from TextArea/TextInput when text changes.  This is the default trigger event for the validator.
- Added [DefaultTriggerEvent] tag to TextArea/TextInput per mail from Sameer Bhatt from FB.
- Made RET text bindable.

QA Notes:
Doc Notes:
Bugs: SDK-20165, SDK-20667
Reviewers: Gordon

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

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -66,6 +66,8 @@
 //--------------------------------------

 [DefaultProperty("text")]
+
+[DefaultTriggerEvent("change")]

 [IconFile("TextInput.png")]


use #EXT-X-TARGETDURATION for live playlist timer

--- src/com/mangui/HLS/streaming/Getter.as
+++ src/com/mangui/HLS/streaming/Getter.as
@@ -104,6 +104,7 @@
                _levels[index].start_seqnum = frags[0].seqnum;
                _levels[index].end_seqnum = frags[frags.length-1].seqnum;
                _levels[index].duration = frags[frags.length-1].start + frags[frags.length-1].duration;
+               _fragmentDuration = _levels[index].targetduration;
             }
             if(--_toLoad == 0) {
             // Check whether the stream is live or not finished yet
@@ -117,7 +118,6 @@
             }
                if (!_canStart && (_canStart =_areFirstLevelsFilled())) {
                   Log.txt("first 2 levels are filled with at least 2 fragments, notify event");
-                  _fragmentDuration = frags[0].duration*1000;
                   _hls.dispatchEvent(new HLSEvent(HLSEvent.MANIFEST,_levels));
               }
             }


improved browser backwards compatibility (support for nested arrays)

Change-Id: I3751e1cad5487297a88ced483461711a580e4a8b

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -243,10 +243,12 @@
 					}
 					else
 					{
-						var mapReplace = function(value) { return flash[JSON_REPLACER]('', value); };
-						var mapRevive = function(value) { return flash[JSON_REVIVER]('', value); };
-						toJson = function(value) { return Array.isArray(value) ? value.map(mapReplace) : mapReplace(value); };
-						fromJson = function(value) { return Array.isArray(value) ? value.map(mapRevive) : mapRevive(value); };
+						toJson = function(value) {
+							return Array.isArray(value) ? value.map(toJson) : flash[JSON_REPLACER]('', value);
+						};
+						fromJson = function(value) {
+							return Array.isArray(value) ? value.map(fromJson) : flash[JSON_REVIVER]('', value);
+						};
 					}

 					var functionCounter = 0;


fixed compiler warning

fixed compiler warning

Change-Id: Ibae311fe99c860278f902985ee33b434d5eb9d5f

--- WeaveUI/src/weave/visualization/layers/SimpleInteractiveVisualization.as
+++ WeaveUI/src/weave/visualization/layers/SimpleInteractiveVisualization.as
@@ -619,7 +619,6 @@
 		private function constrainTooltipToStage():void
 		{
 			var xMin:Number = 0;
-			var xMax:Number = stage.stageWidth;

 			if( yAxisTooltip != null )
 			{
@@ -630,7 +629,7 @@
 			else yAxisTooltipPtr = null;
 			if( xAxisTooltip != null )
 			{
-				var xMax:Number = xMax - xAxisTooltip.width;
+				var xMax:Number = stage.stageWidth - xAxisTooltip.width;
 				var xMaxTooltip:Number = xAxisTooltip.x+xAxisTooltip.width;
 				while( xMaxTooltip > xMax)
 				{


added check for disposed JsonCache

added check for disposed JsonCache

--- WeaveData/src/weave/services/JsonCache.as
+++ WeaveData/src/weave/services/JsonCache.as
@@ -92,6 +92,7 @@
 import mx.rpc.events.ResultEvent;
 import mx.utils.StringUtil;

+import weave.api.objectWasDisposed;
 import weave.api.reportError;
 import weave.services.JsonCache;
 import weave.services.URLRequestUtils;
@@ -171,12 +172,14 @@
 			function doLater():void
 			{
 				WeaveAPI.ProgressIndicator.removeTask(doLater);
+				if (objectWasDisposed(owner))
+					return;
 				if (success && resultHandler is Function)
 					resultHandler(result);
 				if (!success && faultHandler is Function)
 					faultHandler(result);
 			}
-			WeaveAPI.StageUtils.callLater(owner, doLater);
+			WeaveAPI.StageUtils.callLater(null, doLater);
 		}
 	}


switched to StandardLib.sort()

switched to StandardLib.sort()

Change-Id: I169fe0d8bc411a7ae2ceb1df1cd3475d5a5e3d88

--- WeaveData/src/weave/utils/BLGTreeUtils.as
+++ WeaveData/src/weave/utils/BLGTreeUtils.as
@@ -19,13 +19,15 @@

 package weave.utils
 {
+	import mx.utils.ObjectUtil;
+
 	import weave.api.primitives.IBounds2D;
+	import weave.compiler.StandardLib;
 	import weave.primitives.BLGTree;
 	import weave.primitives.Bounds2D;
 	import weave.primitives.VertexChainLink;

 	/**
-	 * BLGTreeUtils
 	 * This is an all-static class for building Binary Line Generalization Trees.
 	 *
 	 * @author adufilie
@@ -48,13 +50,34 @@
 		}

 		/**
-		 * tempBounds
 		 * Reusable temporary object, helps reduce garbage collection activity.
 		 */
 		private static const tempBounds:IBounds2D = new Bounds2D();
-
+
+		private static function sortOnImportance(v1:VertexChainLink, v2:VertexChainLink):int
+		{
+			var a:Number = v1.importance;
+			var b:Number = v2.importance;
+
+			if (isNaN(a) && isNaN(b))
+				return 0;
+
+			if (isNaN(a))
+				return 1;
+
+			if (isNaN(b))
+				return -1;
+
+			if (a < b)
+				return -1;
+
+			if (a > b)
+				return 1;
+
+			return 0;
+		}
+
 		/**
-		 * processVertexChain
 		 * Sorts points by importance value, removes least important points first.
 		 * @param firstVertex The first vertex in a chain.
 		 * @param outputCoordinates The BLGTree to store the processed points in.
@@ -99,7 +122,7 @@
 					sortArray[index] = vertex;
 					vertex = vertex.next;
 				}
-				sortArray.sortOn("importance");
+				StandardLib.sort(sortArray, sortOnImportance);

 				// in sorted order, extract each point as long as its
 				// surrounding points have not been invalidated


Fix Bug#283 Stop bar chart from showing "Undefined" column in probe

--- WeaveUI/src/weave/utils/ProbeTextUtils.as
+++ WeaveUI/src/weave/utils/ProbeTextUtils.as
@@ -103,9 +103,12 @@
 					var title:String = ColumnUtils.getTitle(column);
 					var line:String = StringLib.lpad(value, 8) + ' (' + title + ')\n';
 					if(lookup[line]  == undefined )
-					{
-						record += line;
-						lookup[line] = true;
+					{
+						if (!(value.toLowerCase() == 'undefined' || title.toLowerCase() == 'undefined'))
+						{
+							record += line;
+							lookup[line] = true;
+						}
 					}
 				}
 				if (record != '')


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3682
Author:   hmuller@adobe.com
Date:     2008-10-16T15:03:51.166448Z

Log Message:
-----------
FiFixed 17061, removed unnecessary override of 'set value' in FxNumericStepper

Previuosly FxSpinner::step() conflated stepSize and the
valueInterval property.  The latter forces FxRange values to be an
integer multiple of valueInterval, irrespective of the minimum.

I've changed FxSpinner::step() to leave enforcing the valueInterval
constraint to the value property.  So less the valueWrap logic, the
step method becomes:

    value += (increase) ? stepSize : -stepSize;

If the developer _also_ sets the valueInterval property, the new value
will still be forced to be a multiple.

I've also removed the unnecessary override of 'set value' in FxNumericStepper
per the changes in SVN 3597.

QE: It's possible that some spinner/slide/scrollbar tests confirmed the old behavior
Doc: No
Checkintests: Pass
Reviewer: Chet
Bugs:
    SDK-17061 - Gumbo Range does not allow an odd-only range

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -360,4 +360,4 @@
     }
 }

-}+}