Transferred from the Adobe Open Source Subversion Repository

Revision: 9419
Author:   aharui@adobe.com
Date:     2009-08-20T16:19:04.456854Z

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -27,10 +27,12 @@
 import mx.collections.IList;
 import mx.core.EventPriority;
 import mx.core.IFactory;
+import mx.core.INavigatable;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
+import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;

 use namespace mx_internal;  //ListBase and List share selection properties that are mx_internal
@@ -209,13 +211,30 @@
     override public function set dataProvider(value:IList):void
     {
         if (dataProvider)
+        {
             dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler);
+            if (dataProvider is INavigatable)
+                dataProvider.removeEventListener(FlexEvent.NAVIGATION_CHANGE, navigationChangeHandler);
+        }

         // not really a default handler, we just want it to run after the datagroup
         if (value)
+        {
             value.addEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler, false, EventPriority.DEFAULT_HANDLER);
+            if (value is INavigatable)
+                value.addEventListener(FlexEvent.NAVIGATION_CHANGE, navigationChangeHandler);
+        }

         super.dataProvider = value;
+    }
+
+    /**
+     *  @private
+     */
+    private function navigationChangeHandler(event:Event):void
+    {
+        if (INavigatable(dataProvider).selectedIndex != selectedIndex)
+            selectedIndex = INavigatable(dataProvider).selectedIndex;
     }

     /**
@@ -285,6 +304,8 @@
             setCurrentCaretIndex(index);
             renderer.selected = selected;
         }
+        if (dataProvider is INavigatable && selected)
+            INavigatable(dataProvider).selectedIndex = index;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -30,6 +30,11 @@
  *  Dispatched when the user pressed the Enter key.
  *
  *  @eventType mx.events.FlexEvent.ENTER
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Event(name="enter", type="mx.events.FlexEvent")]

@@ -43,11 +48,21 @@

 /**
  *  Normal State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [SkinState("normal")]

 /**
  *  Disabled State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [SkinState("disabled")]

@@ -55,6 +70,11 @@
  *  Documentation is not currently available.
  *
  *  @includeExample examples/FxTextInputExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxTextInput extends FxTextBase
 {
@@ -68,6 +88,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxTextInput()
     {
@@ -102,6 +127,11 @@
      *  to let the user enter 5 digits.
      *
      *  @default
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get widthInChars():Number
     {


Create ParticleEmitter2D in a generic manner to allow running the editor without Urho2D classes compiled in.

--- Bin/Data/Scripts/Editor/EditorHierarchyWindow.as
+++ Bin/Data/Scripts/Editor/EditorHierarchyWindow.as
@@ -876,12 +876,16 @@
             {
                 if (browserFile.extension == "xml")
                 {
-                    ParticleEffect2D@ effect = cache.GetResource("ParticleEffect2D", browserFile.resourceKey);
+                    Resource@ effect = cache.GetResource("ParticleEffect2D", browserFile.resourceKey);
                     if (effect is null)
                         return;

-                    ParticleEmitter2D@ emitter = targetNode.CreateComponent("ParticleEmitter2D");
-                    emitter.effect = effect;
+                    ResourceRef effectRef;
+                    effectRef.type = effect.type;
+                    effectRef.name = effect.name;
+
+                    Component@ emitter = targetNode.CreateComponent("ParticleEmitter2D");
+                    emitter.SetAttribute("Particle Effect", Variant(effectRef));
                     createdComponent = emitter;
                 }
             }


updated comment

updated comment

--- WeaveData/src/weave/data/DataSources/MultiDataSource.as
+++ WeaveData/src/weave/data/DataSources/MultiDataSource.as
@@ -117,7 +117,7 @@
 			}

 			// add category for global column objects
-			// TEMPORARY SOLUTION -- only allow EquationColumns
+			// TEMPORARY SOLUTION -- only allow EquationColumn and CSVColumn
 			var eqCols:Array = _root.getObjects(EquationColumn).concat(_root.getObjects(CSVColumn));
 			if (eqCols.length > 0)
 			{


fixed null pointer error

fixed null pointer error

--- WeaveUISpark/src/weave/visualization/layers/PlotTask.as
+++ WeaveUISpark/src/weave/visualization/layers/PlotTask.as
@@ -32,6 +32,7 @@
 	import weave.api.WeaveAPI;
 	import weave.api.core.IDisposableObject;
 	import weave.api.core.ILinkableObject;
+	import weave.api.data.IDynamicKeyFilter;
 	import weave.api.data.IKeyFilter;
 	import weave.api.data.IQualifiedKey;
 	import weave.api.detectLinkableObjectChange;
@@ -110,7 +111,7 @@
 			_layerSettings = layerSettings;

 			// TEMPORARY SOLUTION until we start using VisToolGroup
-			var subsetFilter:IKeyFilter = _plotter.filteredKeySet.keyFilter.getInternalKeyFilter();
+			var subsetFilter:IDynamicKeyFilter = _plotter.filteredKeySet.keyFilter;

 			var keyFilters:Array = [subsetFilter, _layerSettings.selectionFilter, _layerSettings.probeFilter];
 			var keyFilter:ILinkableObject = keyFilters[_taskType];


fixed null pointer error

fixed null pointer error

--- WeaveUI/src/weave/visualization/plotters/RadVizPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/RadVizPlotter.as
@@ -65,16 +65,12 @@
 			setNewRandomJitterColumn();
 			iterations.value = 50;
 			recordsPerDraw = 1;
-			init()
-		}
-
-		private function init():void
-		{
 			algorithms[RANDOM_LAYOUT] = RandomLayoutAlgorithm;
 			algorithms[GREEDY_LAYOUT] = GreedyLayoutAlgorithm;
 			algorithms[NEAREST_NEIGHBOR] = NearestNeighborLayoutAlgorithm;
 			algorithms[INCREMENTAL_LAYOUT] = IncrementalLayoutAlgorithm;
 			algorithms[BRUTE_FORCE] = BruteForceLayoutAlgorithm;
+			handleColumnsChange();
 		}

 		public const columns:LinkableHashMap = registerSpatialProperty(new LinkableHashMap(IAttributeColumn), handleColumnsChange);
@@ -112,8 +108,6 @@
 		private var keyColorMap:Dictionary;
 		private var keyNormMap:Dictionary;
 		private var keyGlobalNormMap:Dictionary;
-		private var keyMaxMap:Dictionary;
-		private var keyMinMap:Dictionary;
 		private var columnTitleMap:Dictionary;

 		private const _currentScreenBounds:Bounds2D = new Bounds2D();
@@ -128,18 +122,18 @@
 			_columns = columns.getObjects(IAttributeColumn);
 			var sum:Number = 0;

+			randomArrayIndexMap = 	new Dictionary(true);
+			var keyMaxMap:Dictionary = new Dictionary(true);
+			var keyMinMap:Dictionary = new Dictionary(true);
+			keyNormMap = 			new Dictionary(true);
+			keyGlobalNormMap = 		new Dictionary(true);
+			keyNumberMap = 			new Dictionary(true);
+			columnTitleMap = 		new Dictionary(true);
+
 			if (_columns.length > 0)
 			{
 				setKeySource(_columns[0]);

-				randomArrayIndexMap = 	new Dictionary(true);
-				keyMaxMap = 			new Dictionary(true);
-				keyMinMap = 			new Dictionary(true);
-				keyNormMap = 			new Dictionary(true);
-				keyGlobalNormMap = 		new Dictionary(true);
-				keyNumberMap = 			new Dictionary(true);
-				columnTitleMap = 		new Dictionary(true);
-
 				for each( var key:IQualifiedKey in keySet.keys)
 				{
 					randomArrayIndexMap[key] = i ;


Cleanup and more consistent error-handling behavior in FEBEConnection.

--- driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
+++ driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
@@ -104,6 +104,9 @@
         }

         public function connect(handler:IConnectionHandler):void {
+            if (_connected) {
+                onProtocolError(new ProtocolError("Already connected"));
+            }
             _connHandler = handler;
             _connecting = true;

@@ -289,15 +292,16 @@
         // query-data-available and statement-complete messages. We should also batch
         // the data-available messages--dispatching an event per-DataRow would be silly.
         public function executeSimpleQuery(sql:String, handler:IQueryHandler):void {
-            if (!_rfq) {
-                throw new ArgumentError("FEBEConnection is not ready for query");
-            }
+            ensureConnected();
+            ensureReady();
             _rfq = false;
             _queryHandler = handler;
             send(new Query(sql));
         }

         public function executeQuery(sql:String, params:Array, handler:IQueryHandler):void {
+            ensureConnected();
+            ensureReady();
             // > parse(statement)
             // < parseComplete | errorResponse
             // > bind(portal)
@@ -313,14 +317,24 @@
         // support a structured explain

         public function cancel():void {
+            ensureConnected();
             // Note that cancel needs to happen in a separate connection to make any sense.
             // Since the broker goes out of scope here as soon as the method body ends,
             // there may be some issues with GC (since socket communication is asynchronous),
             // but Flash Player *should* queue everything it needs to do the physical send
-            // before GC.
-            var cancelBroker:IMessageBroker = _brokerFactory.create();
-            cancelBroker.send(new CancelRequest(_backendPid, _backendKey));
-            cancelBroker.close();
+            // before GC. To do this right, we'd probably have to keep a reference to this
+            // broker and listen for close (or error) and only remove the reference then
+            try {
+                var cancelBroker:IMessageBroker = _brokerFactory.create();
+                cancelBroker.send(new CancelRequest(_backendPid, _backendKey));
+                try {
+                    cancelBroker.close();
+                } catch (e:Error) {
+                    LOGGER.warn("Could not close cancel broker: " + e.message);
+                }
+            } catch (e:Error) {
+                LOGGER.warn("Could not cancel statement: " + e.message);
+            }
         }

         private function handleStreamError(e:MessageStreamErrorEvent):void {
@@ -330,13 +344,13 @@

         public function close():void {
             if (_connected) {
-                try {
-                    if (_broker.connected) {
+                if (_broker.connected) {
+                    try {
                         _broker.send(new Terminate());
                         _broker.close();
+                    } catch (e:Error) {
+                        LOGGER.warn("Could not shut down cleanly: " + e.message);
                     }
-                } catch (e:Error) {
-                    LOGGER.warn("Could not shut down cleanly: " + e.message);
                 }
                 _connected = false;
             }
@@ -355,6 +369,18 @@
             _queryHandler = null;
             // Note that we still may need to throw away any number of DataRow messages
             _hasCodecError = true;
+        }
+
+        private function ensureConnected():void {
+            if (!_connected) {
+                _connHandler.handleStreamError(new Error("Not connected"));
+            }
+        }
+
+        private function ensureReady():void {
+            if (!_rfq) {
+                onProtocolError(new ProtocolError("FEBEConnection is not ready for query"));
+            }
         }

     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.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/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.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/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.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/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.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/effects/effectClasses/ResizeInstance.as</path>
<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/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</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/effects/Glow.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/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -35,7 +35,7 @@
 import flash.system.SecurityDomain;
 import flash.utils.ByteArray;

-import mx.core.ApplicationGlobals;
+import mx.core.FlexGlobals;
 import mx.core.FlexLoader;
 import mx.core.FlexVersion;
 import mx.core.ISWFLoader;
@@ -1737,7 +1737,7 @@
             if ( (Capabilities.isDebugger == true) &&
                  (url.indexOf(".jpg") == -1) &&
                  (LoaderUtil.normalizeURL(
-                 ApplicationGlobals.application.systemManager.loaderInfo).indexOf("debug=true") > -1) )
+                 FlexGlobals.topLevelApplication.systemManager.loaderInfo).indexOf("debug=true") > -1) )
                 url = url + ( (url.indexOf("?") > -1) ? "&debug=true" : "?debug=true" );

             // make relative paths relative to the SWF loading it, not the top-level SWF


Transferred from the Adobe Open Source Subversion Repository

Revision: 6620
Author:   egeorgie@adobe.com
Date:     2009-05-05T00:06:09.111026Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-20937 Changing size of an itemRenderer between states causes RTE in TileLayout

Fix a typo that caused the incorrect object to be checked when the state was reverting the property override.

QE Notes: None
Doc Notes: None
Bugs: SDK-20937
Reviewer: Corey
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as

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

--- frameworks/projects/framework/src/mx/states/SetProperty.as
+++ frameworks/projects/framework/src/mx/states/SetProperty.as
@@ -276,7 +276,7 @@
         if (obj != null)
         {
         	appliedTarget = obj;
-	        var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in appliedTarget)) ?
+	        var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in obj)) ?
 	                          PSEUDONYMS[name] :
 	                          name;

@@ -342,7 +342,7 @@
         var obj:* = getOverrideContext(appliedTarget, parent);
         if (obj != null && applied)
         {
-            var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in target)) ?
+            var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in obj)) ?
 	                          PSEUDONYMS[name] :
 	                          name;


From whiteboard/cframpton/adobe.next.  Renames RadioButtonGroup.breadthOrderCompare() sorting method to RadioButtonGroup.readOrderCompare() and adds support for sorting items within a RadioButtonGroup by tabIndex as a higher priority to sorting by breadth. SDK-31882.

git-svn-id: 7d913817b0a978d84de757191e4bce372605a781@1414940 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/RadioButtonGroup.as
+++ frameworks/projects/mx/src/mx/controls/RadioButtonGroup.as
@@ -22,14 +22,16 @@

 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
+import flash.display.InteractiveObject;
 import flash.events.Event;
 import flash.events.EventDispatcher;
+
 import mx.core.FlexGlobals;
 import mx.core.IFlexDisplayObject;
 import mx.core.IMXMLObject;
 import mx.core.IRawChildrenContainer;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.core.UIComponent;
 import mx.events.FlexEvent;
 import mx.events.ItemClickEvent;

@@ -477,8 +479,8 @@
         instance.addEventListener(Event.REMOVED, radioButton_removedHandler);
         radioButtons.push(instance);

-        // Apply group indices in "breadth-first" order.
-        radioButtons.sort(breadthOrderCompare);
+        // Apply group indices in "tab order" or "breadth-first" order.
+        radioButtons.sort(readOrderCompare);
         for (var i:int = 0; i < radioButtons.length; i++)
             radioButtons[i].indexNumber = i;

@@ -604,16 +606,37 @@

     /**
      *  @private
-     */
-    private function breadthOrderCompare(a:DisplayObject, b:DisplayObject):Number
+	 *  Comparison function used to sort items as they are added to the radioButtons array.
+	 *  Compares by tabIndex or if neither item defines a tabIndex, by "breadthOrder."
+	 *
+	 *  Returns -1 if a is before b in sort order, 0 if a and b have same
+     *  sort order and 1 if a after b in sort order.
+     */
+    private function readOrderCompare(a:DisplayObject, b:DisplayObject):Number
     {
         var aParent:DisplayObject = (a is UIComponent) ? UIComponent(a).$parent : a.parent;
         var bParent:DisplayObject = (b is UIComponent) ? UIComponent(b).$parent : b.parent;

         if (!aParent || !bParent)
             return 0;
-
-        var aNestLevel:int = (a is UIComponent) ? UIComponent(a).nestLevel : -1;
+
+		// first check to see if we can compare by tabIndex
+		var aTabIndex:int = (a is InteractiveObject) ? InteractiveObject(a).tabIndex : -1;
+		var bTabIndex:int = (b is InteractiveObject) ? InteractiveObject(b).tabIndex : -1;
+
+		// if one of the items being compared has a defined tabIndex, compare by tabIndex
+		if(aTabIndex > -1 || bTabIndex > -1)
+		{
+			if (aTabIndex > bTabIndex)
+				return (bTabIndex == -1) ? -1 : 1; // items with assigned tabIndex come before those without
+			if (aTabIndex < bTabIndex)
+				return (aTabIndex == -1) ? 1 : -1; // items without assigned tabIndex come after those without
+			if (a == b)
+				return 0;
+		}
+
+		// if neither item has a defined tabIndex we compare by "breadthOrder"
+		var aNestLevel:int = (a is UIComponent) ? UIComponent(a).nestLevel : -1;
         var bNestLevel:int = (b is UIComponent) ? UIComponent(b).nestLevel : -1;

         var aIndex:int = DisplayObjectContainer(aParent).getChildIndex(a);
@@ -627,7 +650,7 @@
         else if (a == b)
             return 0;
         else // Nest levels are identical, compare ancestors.
-            return breadthOrderCompare(aParent, bParent);
+            return readOrderCompare(aParent, bParent);
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18765
Author:   klin@adobe.com
Date:     2010-11-21T07:18:04.332221Z

Log Message:
-----------
Fix for RTE when sorting complex datafields. Added an internal GridSortField class that captures the full dataField when sorting on a complex dataField. This is required because sort currently RTE's when the dataField is set to a property that doesn't exist on the data object even though a sortCompareFunction is defined. I've also changed the default compare function for complex dataFields to compare the data instead of using the itemToLabel function. I've modified DataGrid to take advantage of GridSortField for figuring out when to reverse the sort of a column with a complex dataField.

QE notes: No
Doc notes: No
Bugs: SDK-28610
Reviewer: Hans
Tests run: cyclone, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -42,6 +42,7 @@
 import spark.components.gridClasses.GridLayout;
 import spark.components.gridClasses.GridSelection;
 import spark.components.gridClasses.GridSelectionMode;
+import spark.components.gridClasses.GridSortField;
 import spark.components.gridClasses.IDataGridElement;
 import spark.components.gridClasses.IGridItemEditor;
 import spark.components.gridClasses.IGridItemRenderer;
@@ -3225,11 +3226,12 @@
     /**
      *  Sort the DataGrid by one or more columns and refresh the display.
      *
-     *  If the dataProvider is an ICollectionView, then it's sort property will be
+     *
If the dataProvider is an ICollectionView, then it's sort property will be
      *  set to a value based on each column's dataField, sortCompareFunction,
      *  and sortDescending flag, and then the dataProvider's refresh() method will be called.
-     *
-     *  If the dataProvider is not an ICollectionView, then this method has no effect.
+     *

+     *
+     *
If the dataProvider is not an ICollectionView, then this method has no effect.

      *
      *  @param columnIndices The indices of the columns by which to sort the dataProvider.
      *
@@ -3279,52 +3281,74 @@
         for each (var columnIndex:int in columnIndices)
         {
             var col:GridColumn = this.getColumnAt(columnIndex);
-
-            // columns all must either have a dataField or a labelFunction
-            if (!col || (col.dataField == null && col.labelFunction == null))
+            if (!col)
                 return null;

+            var dataField:String = col.dataField;
+
+            // columns all must have a dataField or a labelFunction or a sortCompareFunction
+            if (dataField == null && col.labelFunction == null && col.sortCompareFunction == null)
+                return null;
+
+            const isComplexDataField:Boolean = (dataField && (dataField.indexOf(".") != -1));
             var sortField:SortField = null;
             var sortDescending:Boolean = col.sortDescending;
-            var i:int;

             // Check if we just sorted this column.
-            for (i = 0; i < fields.length; i++)
-            {
-                if (fields[i].name == col.dataField)
-                {
-                    // just sorted this column, so flip sortDescending.
-                    sortDescending = !fields[i].descending;
-                }
-            }
+            sortField = findSortField(dataField, fields, isComplexDataField);

             // If we haven't sorted by this column yet, check if
             // we've sorted by this column in the previous sort.
             if (!sortField && previousFields)
-            {
-                for (i = 0; i < previousFields.length; i++)
-                {
-                    if (previousFields[i].name == col.dataField)
-                    {
-                        // sortField exists in previous sort, so flip sortDescending.
-                        sortField = previousFields[i];
-                        sortDescending = !sortField.descending;
-                        break;
-                    }
-                }
-            }
-
-            // Create a SortField from the column.
-            if (!sortField)
+                sortField = findSortField(dataField, previousFields, isComplexDataField);
+
+            // Previously sorted column, so flip sortDescending.
+            if (sortField)
+            {
+                sortDescending = !sortField.descending;
+            }
+            else
+            {
+                // Create a SortField from the column.
                 sortField = col.sortField;
+            }

             col.sortDescending = sortDescending;
             sortField.descending = sortDescending;
-
             fields.push(sortField);
         }

         return fields;
+    }
+
+    /**
+     *  @private
+     *  Finds a SortField using the provided dataField and returns it.
+     *  If the dataField is complex, it tries to find a GridSortField
+     *  with a matching dataFieldPath.
+     *
+     *  @param dataField The dataField of the column.
+     *  @param fields The array of SortFields to search through.
+     *  @param isComplexDataField true if the dataField is a path.
+     */
+    private static function findSortField(dataField:String, fields:Array, isComplexDataField:Boolean):SortField
+    {
+        if (dataField == null)
+            return null;
+
+        for each (var field:SortField in fields)
+        {
+            var name:String = field.name;
+            if (isComplexDataField && (field is GridSortField))
+            {
+                name = GridSortField(field).dataFieldPath;
+            }
+
+            if (name == dataField)
+                return field;
+        }
+
+        return null;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5161
Author:   cframpto@adobe.com
Date:     2009-03-04T14:20:59.384387Z

Log Message:
-----------
Fallout from optimizing the number of times text has to be composed for TextBox/TextGraphic.

If the text has certain styles, such as textAlign that is not left-aligned or verticalAlign that is not top-aligned, the text must be recomposed when the size changes so that it's moved to the proper place within the new boundaries.

QE Notes: tests that passed: TextGraphic, layout3D, Button, Radiobutton, checkin tests
Doc Notes:
Bugs: SDK-19666
Reviewers: will be Gordon on his return

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -27,7 +27,9 @@
 import flashx.textLayout.factory.TextLineFactory;
 import flashx.textLayout.factory.TruncationOptions;
 import flashx.textLayout.formats.FormatValue;
+import flashx.textLayout.formats.TextAlign;
 import flashx.textLayout.formats.TextLayoutFormat;
+import flashx.textLayout.formats.VerticalAlign;
 import flashx.textLayout.tlf_internal;

 import mx.core.mx_internal;
@@ -658,6 +660,36 @@
         mx_internal::textLines.push(textLine);
     }

+    /**
+     *  @private
+     *  Certain styles require the text to be recomposed when the height
+     *  changes.
+     */
+    override protected function composeOnHeightChange():Boolean
+    {
+        var topAligned:Boolean =
+            textFlow.hostTextLayoutFormat.verticalAlign == "top";
+
+        return !topAligned;
+    }
+
+    /**
+     *  @private
+     *  Certain styles require the text to be recomposed when the width
+     *  changes.
+     */
+    override protected function composeOnWidthChange():Boolean
+    {
+        var direction:String = textFlow.hostTextLayoutFormat.direction;
+        var textAlign:String = textFlow.hostTextLayoutFormat.textAlign;
+        var leftAligned:Boolean =
+            textAlign == "left" ||
+            textAlign == "start" && direction == "ltr" ||
+            textAlign == "end" && direction == "rtl";
+
+        return !leftAligned;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers


Transferred from the Adobe Open Source Subversion Repository

Revision: 10168
Author:   gosmith@adobe.com
Date:     2009-09-11T21:23:32.233555Z

Log Message:
-----------
The 'content' property for rich text in Spark components is now get/set rather than set-only, so that it plays well with states. The getter will always return a TextFlow because this is the canonical representation of rich text content in TLF, and if you have edited or programatically mutated the content the current TextFlow is what the states mechanism should save off.

QE notes: Please test state-dependent 'content' in the Spark RichText, RichEditableText, and TextArea.
Doc notes: I've added more documentation regarding the 'content' property.
Bugs: SDK-23120
Reviewer: Carol
Tests run: ant checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.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/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -388,16 +388,50 @@
      */
     [RichTextContent]

-    /**
-     *  This write-only property is for internal use by the MXML compiler.
-     *  Please use the textFlow property to set
-     *  rich text content.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
+	/**
+	 *  This property is intended for use in MXML at compile time;
+	 *  to get or set rich text content at runtime,
+	 *  please use the textFlow property instead.
+	 *
+	 *
The content property is the default property
+	 *  for TextArea, so that you can write MXML such as
+	 *

+	 *  <s:TextArea>Hello <s:span fontWeight="bold"/>World</s:span></s:TextArea>
+	 *

+	 *  and have the String and SpanElement that you specify
+	 *  as the content be used to create a TextFlow.

+	 *
+	 *
This property is typed as Object because you can set it to
+	 *  to a String, a FlowElement, or an Array of Strings and FlowElements.
+	 *  In the example above, you are specifying the content
+	 *  to be a 2-element Array whose first element is the String
+	 *  "Hello" and whose second element is a SpanElement with the text
+	 *  "World" in boldface.

+	 *
+	 *
No matter how you specify the content, it gets converted
+	 *  into a TextFlow, and when you get this property, you will get
+	 *  the resulting TextFlow.

+	 *
+	 *
Adobe recommends using textFlow property
+	 *  to get and set rich text content at runtime,
+	 *  because it is strongly typed as a TextFlow
+	 *  rather than as an Object.
+	 *  A TextFlow is the canonical representation
+	 *  for rich text content in the Text Layout Framework.

+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get content():Object
+	{
+		return textFlow;
+	}
+
+	/**
+	 *  @private
+	 */
     public function set content(value:Object):void
     {
         // Of 'text', 'textFlow', and 'content', the last one set wins.


Transferred from the Adobe Open Source Subversion Repository

Revision: 12537
Author:   smgilson@adobe.com
Date:     2009-12-04T17:41:47.951816Z

Log Message:
-----------
Fix for FLEXDOCS-1157 - Spark List-based comps have documenation saying they don't support BasicLayout

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-1157
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/ComboBox.as</path>
<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/layouts/BasicLayout.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/TabBar.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>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -24,12 +24,19 @@

 /**
  *  The BasicLayout class arranges the layout elements according to their individual settings,
- *  independent of each-other.
- *
- *  Per-element supported constraints are left, right,
+ *  independent of each-other. BasicLayout, also called absolute layout, requires that you
+ *  explicitly position each container child.
+ *  You can use the x and y properties of the child,
+ *  or constraints to position each child.
+ *
+ *
Note: The Spark list-based controls (the Spark List control and its subclasses
+ *  such as ButtonBar, ComboBox, DropDownList, and TabBar) do not support the BasicLayout class.
+ *  Do not use BasicLayout with the Spark list-based controls.

+ *
+ *
Per-element supported constraints are left, right,
  *  top, bottom, horizontalCenter,
  *  verticalCenter, baseline, percentWidth, and percentHeight.
- *  Element's minimum and maximum sizes will always be respected.
+ *  Element's minimum and maximum sizes will always be respected.

  *
  *
The measured size of the container is calculated from the elements, their
  *  constraints and their preferred sizes. The measured size of the container


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPCube.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPCube.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: 11995
Author:   doug.lee@ssbbartgroup.com
Date:     2009-11-19T18:50:30.831767Z

Log Message:
-----------
Updated all AccImpls that use MSAA constants (except TextLayout) to
use the new AccConst references instead of hard-coding hex numbers and
local copies of the constants.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.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/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LabelAccImpl.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/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextBaseAccImpl.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/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.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/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/MenuAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/MenuAccImpl.as
@@ -14,6 +14,7 @@

 import flash.accessibility.Accessibility;
 import flash.events.Event;
+import mx.accessibility.AccConst;
 import mx.controls.Menu;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -36,62 +37,6 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private static const ROLE_SYSTEM_MENUITEM:uint = 0x0C;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_CHECKED:uint = 0x00000010;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_HASPOPUP:uint = 0x40000000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_HOTTRACKED:uint = 0x00000080;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_SYSTEM_MENUPOPUPSTART:uint = 0x00000006;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_SYSTEM_MENUPOPUPEND:uint = 0x00000007;
-
-	//--------------------------------------------------------------------------
-	//
 	//  Class methods
 	//
 	//--------------------------------------------------------------------------
@@ -150,7 +95,7 @@
 	{
 		super(master);

-		role = 0x0B; // ROLE_SYSTEM_MENUPOPUP
+		role = AccConst.ROLE_SYSTEM_MENUPOPUP;
 	}

 	//--------------------------------------------------------------------------
@@ -187,7 +132,7 @@
 	 */
 	override public function get_accRole(childID:uint):uint
 	{
-		return childID == 0 ? role : ROLE_SYSTEM_MENUITEM;
+		return childID == 0 ? role : AccConst.ROLE_SYSTEM_MENUITEM;
 	}

 	/**
@@ -212,18 +157,18 @@

 			if (!Menu(master).dataDescriptor.isEnabled(item))
 			{
-				accState |= STATE_SYSTEM_UNAVAILABLE;
+				accState |= AccConst.STATE_SYSTEM_UNAVAILABLE;
 				return accState;
 			}

 			//if (Menu(master).dataDescriptor.isFocused(item))
-			accState |= STATE_SYSTEM_HOTTRACKED | STATE_SYSTEM_FOCUSED;
+			accState |= AccConst.STATE_SYSTEM_HOTTRACKED | AccConst.STATE_SYSTEM_FOCUSED;

 			if (Menu(master).dataDescriptor.isToggled(item))
-				accState |= STATE_SYSTEM_CHECKED;
+				accState |= AccConst.STATE_SYSTEM_CHECKED;

 			if (Menu(master).dataDescriptor.isBranch(item))
-				accState |= STATE_SYSTEM_HASPOPUP;
+				accState |= AccConst.STATE_SYSTEM_HASPOPUP;
 		}
 		return accState;
 	}
@@ -306,10 +251,10 @@
 					childID = index + 1;

 					Accessibility.sendEvent(MenuEvent(event).menu, childID,
-											EVENT_OBJECT_FOCUS);
-
-					Accessibility.sendEvent(MenuEvent(event).menu, childID,
-											EVENT_OBJECT_SELECTION);
+											AccConst.EVENT_OBJECT_FOCUS);
+
+					Accessibility.sendEvent(MenuEvent(event).menu, childID,
+											AccConst.EVENT_OBJECT_SELECTION);
 				}
 				break;
 			}
@@ -322,10 +267,10 @@
 					childID = index + 1;

 					Accessibility.sendEvent(MenuEvent(event).menu, childID,
-											EVENT_OBJECT_FOCUS);
-
-					Accessibility.sendEvent(MenuEvent(event).menu, childID,
-											EVENT_OBJECT_SELECTION);
+											AccConst.EVENT_OBJECT_FOCUS);
+
+					Accessibility.sendEvent(MenuEvent(event).menu, childID,
+											AccConst.EVENT_OBJECT_SELECTION);
 				}
 				break;
 			}
@@ -333,14 +278,14 @@
 			case MenuEvent.MENU_SHOW:
 			{
 				Accessibility.sendEvent(MenuEvent(event).menu, 0,
-										EVENT_SYSTEM_MENUPOPUPSTART);
+										AccConst.EVENT_SYSTEM_MENUPOPUPSTART);
 				break;
 			}

 			case MenuEvent.MENU_HIDE:
 			{
 				Accessibility.sendEvent(MenuEvent(event).menu, 0,
-										EVENT_SYSTEM_MENUPOPUPEND);
+										AccConst.EVENT_SYSTEM_MENUPOPUPEND);
 				break;
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18373
Author:   aharui@adobe.com
Date:     2010-10-29T19:02:14.988996Z

Log Message:
-----------
Hopefully last of prompt text bugs.  Add skin states for prompt states to SkinnableTextBase (and move old skin states from TI and TA to STB).

Handle disabledWithPrompt in ComboBoxSkin by disabling the internal TextInput

QE notes: update custom TI skins in mustella
Doc notes: new skin states
Bugs: SDK-28983, SDK-28328
Reviewer: Corey
Tests run: checkintests mustella gumbo/components/ComboBox, NumericStepper
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -59,30 +59,6 @@
  *  @productversion Flex 4
  */
 [Style(name="verticalScrollPolicy", type="String", inherit="no", enumeration="off,on,auto")]
-
-//--------------------------------------
-//  Skin states
-//--------------------------------------
-
-/**
- *  Normal State
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("normal")]
-
-/**
- *  Disabled State
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("disabled")]

 //--------------------------------------
 //  Other metadata


Transferred from the Adobe Open Source Subversion Repository

Revision: 7120
Author:   gosmith@adobe.com
Date:     2009-05-20T06:46:06.687622Z

Log Message:
-----------
Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.

Removed stale import statements.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol

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/primitives/supportClasses/RichEditableTextContainerManager.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -15,7 +15,6 @@
 import flash.events.Event;

 import spark.components.supportClasses.TextBase;
-import mx.core.mx_internal;
 import mx.core.ScrollPolicy;
 import mx.events.FlexEvent;
 import spark.events.TextOperationEvent;


Additional fix for https://issues.apache.org/jira/browse/FLEX-34391 Ensure that StageText's viewport width and height values stay are less than stage.stageWidth and stage.stageHeight

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
@@ -1650,6 +1650,8 @@
 			globalRect.y = Math.max(globalRect.y, 0);
 		}

+		globalRect.width = Math.min(globalRect.width, stage.stageWidth);
+		globalRect.height = Math.min(globalRect.height, stage.stageHeight);

         return globalRect;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18146
Author:   chiedozi@adobe.com
Date:     2010-10-14T00:23:22.539629Z

Log Message:
-----------
View and ViewNavigator PARB changes.

MobileApplication
canCancelBackKeyBehavior has been renamed exitApplicationOnBackKey (also impacts ViewNavigator and TabbedViewNavigator)

ViewNavigator
backKeyHandler method is now mx_internal, it is no longer part of public api
useDefaultTransitions property has been removed from the framework
canRemoveCurrentView is now mx_internal, it is no longer part of the public api
createVisibiliyAnimation() method has been removed and replaced with the createActionBarShowEffect() and createActionBarHideEffect() methods.
commitViewChange, beginViewChanged and endViewChanged have been renamed to commitNavigatorAction, committingNavigatorAction and navigatorActionCommitted.
maintainNavigationStack removed from ViewNavigator and moved to TabbedViewNavigator

View
VIEW_ACTIVATE, VIEW_DEACTIVATE and REMOVING have been removed from the FlexEvent class and added to the new ViewNavigatorEvent class.
ViewNavigatorEvent class now has a "action" property that indicates what the last committed navigation operation was
ViewNavigatorAction enum class added and is used to populate the action property of a ViewNavigatorEvent
View now dispatches a "backKeyPressed" (FlexEvent.BACK_KEY_PRESSED) event when the back device key is pressed.  This is a cancelable event.  When cancelled, the MobileApplication's default back behavior will not run.

TabbedViewNavigator
Added createTabBarShowEffect() and createTabBarHideEffect() methods
Added a maintainNavigationStack property to the view navigator.  When false, the navigation stack of a navigator is cleared when deactivated.

TabbedMobileApplication
Added maintainNavigationStack proxy property to the application

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/ScriptRunner.as</path>
<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/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/views/SearchView.mxml</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="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as
@@ -0,0 +1,96 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.components.supportClasses
+{
+    /**
+     *  The ViewNavigatorAction class defines the constant values
+     *  for the action property of ViewNavigatorEvent class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.1
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public final class ViewNavigatorAction
+    {
+        //--------------------------------------------------------------------------
+        //
+        //  Class constants
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Constant indicating that no action was performed by the navigator.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const NONE:String = "none";
+
+        /**
+         *  Constant describing a navigation action where a new view is added
+         *  to a navigator.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const PUSH:String = "push";
+
+        /**
+         *  Constant describing a navigation action where the top most view is
+         *  removed from the navigator.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const POP:String = "pop";
+
+        /**
+         *  Constant describing a navigation action where all views
+         *  were removed from the navigator.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const POP_ALL:String = "popAll";
+
+        /**
+         *  Constant describing a navigation action where all but the
+         *  first view are removed from the navigator.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const POP_TO_FIRST:String = "popToFirst";
+
+        /**
+         *  Constant describing a navigation action where the active view
+         *  is replaced with another.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.5
+         *  @productversion Flex 4.5
+         */
+        public static const REPLACE:String = "replace";
+    }
+}


changed deprecated metadata

changed deprecated metadata

Change-Id: I66b9a43ad97359cdd3791b1b5135af26cd4c65b6

--- WeaveData/src/weave/services/WeaveDataServlet.as
+++ WeaveData/src/weave/services/WeaveDataServlet.as
@@ -207,7 +207,10 @@
 		////////////////////////////
 		// backwards compatibility

-		[Deprecated] public function getColumnFromMetadata(metadata:Object):AsyncToken
+		/**
+		 * Deprecated. Use getColumn() instead.
+		 */
+		public function getColumnFromMetadata(metadata:Object):AsyncToken
 		{
 			return invoke(getColumnFromMetadata, arguments, AttributeColumnData);
 		}


casting csvColumnIndex metadata to String

--- WeaveJS/src/weavejs/data/source/CSVDataSource.as
+++ WeaveJS/src/weavejs/data/source/CSVDataSource.as
@@ -284,9 +284,9 @@

 			// overwrite identifying property
 			if (typeof id == 'number')
-				metadata[METADATA_COLUMN_INDEX] = id;
+				metadata[METADATA_COLUMN_INDEX] = String(id);
 			else
-				metadata[METADATA_COLUMN_NAME] = id;
+				metadata[METADATA_COLUMN_NAME] = String(id);

 			return metadata;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18884
Author:   jasonsj@adobe.com
Date:     2010-12-01T01:01:18.896589Z

Log Message:
-----------
Use authorDensity in Mobile theme

QE notes: By default, 240 devices should still report as 240. Mustella known goods should not be affected.
Doc notes:
Bugs:
Reviewer: egeorgie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -16,7 +16,9 @@
 import flash.display.Graphics;
 import flash.geom.Matrix;

+import mx.core.DeviceDensity;
 import mx.utils.ColorUtil;
+
 import spark.skins.mobile.ButtonSkin;

 /**
@@ -52,9 +54,9 @@
     {
         super();

-        switch (targetDensity)
+        switch (authorDensity)
         {
-            case MobileSkin.PPI240:
+            case DeviceDensity.PPI_240:
             {
                 layoutBorderSize = 1;
                 layoutPaddingTop = 8;


Handle boolean false updating existing dynamic boolean property

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -615,7 +615,7 @@
                     {
                         var existing:* = result[propertyName];

-                        if (existing)
+                        if (!(existing == undefined))
                         {
                             // we do not want to reuse simple objects
                             if ((existing is Object)
@@ -632,7 +632,7 @@
                             {
                                 // reuse any complex objects provided we don't have
                                 // an ID conflict
-                                if (partID)
+                                if (partID != null)
                                 {
                                     var existingByID:* = objectFactory.getObjectForId(partID);
                                     if (!existingByID)


Fix minor typo in editor resource browser script.

--- bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -96,7 +96,7 @@
 const StringHash BINARY_TYPE_SCENE("USCN");
 const StringHash BINARY_TYPE_PACKAGE("UPAK");
 const StringHash BINARY_TYPE_COMPRESSED_PACKAGE("ULZ4");
-const StringHash BINARY_TYPE_ANGLESCRIPT("ASBC");
+const StringHash BINARY_TYPE_ANGELSCRIPT("ASBC");
 const StringHash BINARY_TYPE_MODEL("UMDL");
 const StringHash BINARY_TYPE_MODEL2("UMD2");
 const StringHash BINARY_TYPE_SHADER("USHD");
@@ -1088,7 +1088,7 @@
         return RESOURCE_TYPE_UNUSABLE;
     else if (fileType == BINARY_TYPE_COMPRESSED_PACKAGE)
         return RESOURCE_TYPE_UNUSABLE;
-    else if (fileType == BINARY_TYPE_ANGLESCRIPT)
+    else if (fileType == BINARY_TYPE_ANGELSCRIPT)
         return RESOURCE_TYPE_SCRIPTFILE;
     else if (fileType == BINARY_TYPE_MODEL || fileType == BINARY_TYPE_MODEL2)
         return RESOURCE_TYPE_MODEL;
@@ -1311,8 +1311,8 @@
         fileType = BINARY_TYPE_PACKAGE;
     else if (type == BINARY_TYPE_COMPRESSED_PACKAGE)
         fileType = BINARY_TYPE_COMPRESSED_PACKAGE;
-    else if (type == BINARY_TYPE_ANGLESCRIPT)
-        fileType = BINARY_TYPE_ANGLESCRIPT;
+    else if (type == BINARY_TYPE_ANGELSCRIPT)
+        fileType = BINARY_TYPE_ANGELSCRIPT;
     else if (type == BINARY_TYPE_MODEL || type == BINARY_TYPE_MODEL2)
         fileType = BINARY_TYPE_MODEL;
     else if (type == BINARY_TYPE_SHADER)


Log the full exception for parse fails

Log the full exception for parse fails

--- exporter/src/main/as/flump/export/XflLoader.as
+++ exporter/src/main/as/flump/export/XflLoader.as
@@ -114,6 +114,7 @@
                 var type :String = isSprite ? "sprite" : "movie";
                 _library.addError(_library, ParseError.CRIT,
                     "Unable to parse " + type + " in " + file.nativePath, e);
+                log.error("Unable to parse " + file.nativePath, e);
             }
         });
         loadLibraryFile.failed.add(function (error :Object) :void {


hiding 'next' button when dataProvider length is less than viewable items

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4841 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Carousel.as
+++ src/laml/display/Carousel.as
@@ -161,13 +161,17 @@
 		}

 		private function rightButtonIsEnabled():Boolean {
-			if(dataProvider.length > visibleItemCount) {
-				var limit:Number = dataProvider.length - visibleItemCount - 1;
+			var numItems:Number = dataProvider.length;
+			if(numItems <= visibleItemCount) {
+				return false;
+			}
+			else {
+				var limit:Number = numItems - visibleItemCount - 1;
 				if(dataProvider.selectedIndex > limit) {
 					return false;
 				}
 			}
-			 return !(dataProvider.lastItem == dataProvider.selectedItem);
+			return !(dataProvider.lastItem == dataProvider.selectedItem);
 		}

 		private function getContainerPosition():Number {


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


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

--- frameworks/projects/framework/src/mx/collections/IList.as
+++ frameworks/projects/framework/src/mx/collections/IList.as
@@ -0,0 +1,201 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.events.IEventDispatcher;
+import mx.events.CollectionEvent;
+
+/**
+ *  Dispatched when the IList has been updated in some way.
+ *
+ *  @eventType mx.events.CollectionEvent.COLLECTION_CHANGE
+ */
+[Event(name="collectionChange", type="mx.events.CollectionEvent")]
+
+/**
+ *  A collection of items organized in an ordinal fashion.
+ *  Provides access and manipulation methods based on index.
+ *
+ *
An IList may be a view onto data
+ *  that has been retrieved from a  remote location.
+ *  When writing for a collection that may be remote,
+ *  it is important to handle the case where data
+ *  may not yet be available, which is indicated
+ *  by the  ItemPendingError.

+ *
+ *
The ICollectionView is an alternative
+ *  to the IList.

+ *
+ *  @see mx.collections.errors.ItemPendingError
+ *  @see mx.collections.ICollectionView
+ *  @see mx.collections.ListCollectionView
+ */
+public interface IList extends IEventDispatcher
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  length
+    //----------------------------------
+
+    /**
+     *  The number of items in this collection.
+     *  0 means no items while -1 means the length is unknown.
+     */
+    function get length():int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Adds the specified item to the end of the list.
+     *  Equivalent to addItemAt(item, length).
+     *
+     *  @param item The item to add.
+     */
+    function addItem(item:Object):void;
+
+    /**
+     *  Adds the item at the specified index.
+     *  The index of any item greater than the index of the added item is increased by one.
+     *  If the the specified index is less than zero or greater than the length
+     *  of the list, a RangeError is thrown.
+     *
+     *  @param item The item to place at the index.
+     *
+     *  @param index The index at which to place the item.
+     *
+     *  @throws RangeError if index is less than 0 or greater than the length of the list.
+     */
+    function addItemAt(item:Object, index:int):void;
+
+    /**
+     *  Gets the item at the specified index.
+     *
+     *  @param index The index in the list from which to retrieve the item.
+     *
+     *  @param prefetch An int indicating both the direction
+     *  and number of items to fetch during the request if the item is
+     *  not local.
+     *
+     *  @return The item at that index, or null if there is none.
+     *
+     *  @throws mx.collections.errors.ItemPendingError if the data for that index needs to be
+     *  loaded from a remote location.
+     *
+     *  @throws RangeError if index < 0
+     *  or index >= length.
+     */
+    function getItemAt(index:int, prefetch:int = 0):Object;
+
+    /**
+     *  Returns the index of the item if it is in the list such that
+     *  getItemAt(index) == item.
+     *
+     *
Note: unlike IViewCursor.findxxx() methods,
+     *  The getItemIndex() method cannot take a parameter with
+     *  only a subset of the fields in the item being serched for;
+     *  this method always searches for an item that exactly matches
+     *  the input parameter.

+     *
+     *  @param item The item to find.
+     *
+     *  @return The index of the item, or -1 if the item is not in the list.
+     */
+    function getItemIndex(item:Object):int;
+
+    /**
+     *  Notifies the view that an item has been updated.
+     *  This is useful if the contents of the view do not implement
+     *  IEventDispatcher and dispatches a
+     *  PropertyChangeEvent.
+     *  If a property is specified the view may be able to optimize its
+     *  notification mechanism.
+     *  Otherwise it may choose to simply refresh the whole view.
+     *
+     *  @param item The item within the view that was updated.
+     *
+     *  @param property The name of the property that was updated.
+     *
+     *  @param oldValue The old value of that property. (If property was null,
+     *  this can be the old value of the item.)
+     *
+     *  @param newValue The new value of that property. (If property was null,
+     *  there's no need to specify this as the item is assumed to be
+     *  the new value.)
+     *
+     *  @see mx.events.CollectionEvent
+     *  @see mx.events.PropertyChangeEvent
+     */
+    function itemUpdated(item:Object, property:Object = null,
+                         oldValue:Object = null,
+                         newValue:Object = null):void;
+
+    /**
+     *  Removes all items from the list.
+     *
+     *
If any item is not local and an asynchronous operation must be
+     *  performed, an ItemPendingError will be thrown.

+     *
+     *
See the ItemPendingError documentation as well as
+     *  the collections documentation for more information
+     *   on using the ItemPendingError.

+     */
+    function removeAll():void;
+
+    /**
+     *  Removes the item at the specified index and returns it.
+     *  Any items that were after this index are now one index earlier.
+     *
+     *  @param index The index from which to remove the item.
+     *
+     *  @return The item that was removed.
+     *
+     *  @throws RangeError is index is less than 0 or greater than length.
+     */
+    function removeItemAt(index:int):Object;
+
+    /**
+     *  Places the item at the specified index.
+     *  If an item was already at that index the new item will replace it
+     *  and it will be returned.
+     *
+     *  @param item The new item to be placed at the specified index.
+     *
+     *  @param index The index at which to place the item.
+     *
+     *  @return The item that was replaced, or null if none.
+     *
+     *  @throws RangeError if index is less than 0 or greater than length.
+     */
+    function setItemAt(item:Object, index:int):Object;
+
+    /**
+     *  Returns an Array that is populated in the same order as the IList
+     *  implementation.
+     *  This method may throw an ItemPendingError.
+     *
+     *  @throws mx.collections.errors.ItemPendingError if the data is not yet completely loaded
+     *  from a remote location.
+     */
+    function toArray():Array;
+}
+
+}


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

--- frameworks/projects/framework/src/mx/styles/StyleProxy.as
+++ frameworks/projects/framework/src/mx/styles/StyleProxy.as
@@ -23,6 +23,11 @@
  *  style-source/style-destination pairs.
  *
  *  @see mx.styles.IAdvancedStyleClient
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class StyleProxy implements IAdvancedStyleClient
 {
@@ -39,6 +44,11 @@
      *
      *  @param source The object that implements the IStyleClient interface.
      *  @param filterMap The set of styles to pass from the source to the subcomponent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function StyleProxy(source:IStyleClient, filterMap:Object)
     {
@@ -71,6 +81,11 @@
      *  to a different style in the subcomponent. This is useful if both the parent
      *  component and the subcomponent share the same style, but you want to be able to
      *  control the values seperately.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get filterMap():Object
     {
@@ -105,6 +120,11 @@
     /**
      *  The object that implements the IStyleClient interface. This is the object
      *  that is being proxied.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get source():IStyleClient
     {
@@ -132,6 +152,11 @@

     /**
      *  @copy mx.styles.IStyleClient#className
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get className():String
     {
@@ -144,6 +169,11 @@

     /**
      *  @copy mx.styles.IStyleClient#inheritingStyles
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get inheritingStyles():Object
     {
@@ -164,6 +194,11 @@

     /**
      *  @copy mx.styles.IStyleClient#nonInheritingStyles
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get nonInheritingStyles():Object
     {
@@ -186,6 +221,11 @@

     /**
      *  @copy mx.styles.IStyleClient#styleDeclaration
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get styleDeclaration():CSSStyleDeclaration
     {
@@ -206,6 +246,11 @@

     /**
      *  @copy mx.styles.ISimpleStyleClient#styleName
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get styleName():Object
     {
@@ -235,6 +280,11 @@

     /**
      *  @copy mx.styles.IAdvancedStyleClient#id
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get id():String
     {
@@ -247,6 +297,11 @@

     /**
      *  @copy mx.styles.IAdvancedStyleClient#styleParent
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get styleParent():IAdvancedStyleClient
     {
@@ -261,6 +316,11 @@

     /**
      *  @copy mx.styles.ISimpleStyleClient#styleChanged()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function styleChanged(styleProp:String):void
     {
@@ -269,6 +329,11 @@

     /**
      *  @copy mx.styles.IStyleClient#getStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function getStyle(styleProp:String):*
     {
@@ -277,6 +342,11 @@

     /**
      *  @copy mx.styles.IStyleClient#setStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setStyle(styleProp:String, newValue:*):void
     {
@@ -285,6 +355,11 @@

     /**
      *  @copy mx.styles.IStyleClient#clearStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function clearStyle(styleProp:String):void
     {
@@ -293,6 +368,11 @@

     /**
      *  @copy mx.styles.IStyleClient#getClassStyleDeclarations()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function getClassStyleDeclarations():Array
     {
@@ -301,6 +381,11 @@

     /**
      *  @copy mx.styles.IStyleClient#notifyStyleChangeInChildren()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function notifyStyleChangeInChildren(styleProp:String,
                                                 recursive:Boolean):void
@@ -310,6 +395,11 @@

     /**
      *  @copy mx.styles.IStyleClient#regenerateStyleCache()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function regenerateStyleCache(recursive:Boolean):void
     {
@@ -319,6 +409,11 @@

     /**
      *  @copy mx.styles.IStyleClient#registerEffects()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function registerEffects(effects:Array):void
     {
@@ -333,6 +428,11 @@

     /**
      *  @copy mx.styles.IAdvancedStyleClient#isPseudoSelectorMatch()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function isPseudoSelectorMatch(pseudoState:String):Boolean
     {
@@ -341,6 +441,11 @@

     /**
      *  @copy mx.styles.IAdvancedStyleClient#isTypeSelectorMatch()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function isTypeSelectorMatch(type:String):Boolean
     {
@@ -349,6 +454,11 @@

     /**
      *  @copy mx.styles.IAdvancedStyleClient#applyStateStyles()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function applyStateStyles(oldState:String, newState:String, recursive:Boolean):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21504
Author:   aaltman@adobe.com
Date:     2011-06-30T16:58:51.113669Z

Log Message:
-----------
Initial checkin of StageText-based skins for mobile TextInput and TextArea. New default skins have not been changed yet. Skins use native text controls on Android and iOS devices.

QE notes: Padding isn't correct yet. Skins do not yet work on iOS because of runtime bug 2906305.
Doc notes:
Bugs:
Reviewer: Carol Frampton, Jason Szeto, Alex Harui
Tests run: Checkin tests, focusManager tests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/MobileThemeClasses.as
+++ frameworks/projects/mobiletheme/src/MobileThemeClasses.as
@@ -34,6 +34,8 @@
 import spark.skins.mobile.ListSkin; spark.skins.mobile.ListSkin;
 import spark.skins.mobile.RadioButtonSkin; spark.skins.mobile.RadioButtonSkin;
 import spark.skins.mobile.SkinnableContainerSkin; SkinnableContainerSkin;
+import spark.skins.mobile.StageTextAreaSkin; StageTextAreaSkin;
+import spark.skins.mobile.StageTextInputSkin; StageTextInputSkin;
 import spark.skins.mobile.TabbedViewNavigatorApplicationSkin; TabbedViewNavigatorApplicationSkin;
 import spark.skins.mobile.TabbedViewNavigatorSkin; TabbedViewNavigatorSkin;
 import spark.skins.mobile.TabbedViewNavigatorTabBarSkin; TabbedViewNavigatorTabBarSkin;
@@ -49,4 +51,4 @@
 import spark.skins.mobile.ViewNavigatorSkin; ViewNavigatorSkin;
 import spark.skins.mobile.VScrollBarSkin; spark.skins.mobile.VScrollBarSkin;
 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.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/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.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/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.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/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.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/effects/effectClasses/ResizeInstance.as</path>
<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/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</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/effects/Glow.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/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/mx/src/mx/skins/halo/ActivatorSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ActivatorSkin.as
@@ -17,7 +17,7 @@
 import flash.filters.BlurFilter;
 import flash.utils.getQualifiedClassName;
 import flash.utils.describeType;
-import mx.core.ApplicationGlobals;
+import mx.core.FlexGlobals;
 import mx.skins.Border;
 import mx.styles.IStyleClient;
 import mx.utils.ColorUtil;
@@ -233,7 +233,7 @@
 			// The docked bar always has a background, so take the
 			// main application's background color.
 			var pabc:Object =
-				ApplicationGlobals.application.getStyle("backgroundColor");
+				FlexGlobals.topLevelApplication.getStyle("backgroundColor");
 			backgroundColor = pabc ? pabc : 0x919999;
 		}


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

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

 package spark.components
 {