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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3139
Author:   jimurphy@adobe.com
Date:     2008-09-08T15:42:37.788151Z

Log Message:
-----------
Merged 3.0.x revisions [3074,3079-3080,3086,3094,3096,3098,3101-3102,3104,3108,3114,3123,3125-3126] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequestDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/SecurityUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InvalidateRequestData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/events/EventListenerRequest.as
+++ frameworks/projects/framework/src/mx/events/EventListenerRequest.as
@@ -15,14 +15,14 @@
 import flash.events.Event;

 /**
- *  Request sent from a systemManager to a systemManager in another
- *  SWF via their bridge to add or remove a listener to a specified event
- *  on your behalf.  The data property is not used.  Only certain events
- *  can be requested.  When the event is triggered in the other SWF, that
+ *  Request sent from one SystemManager to a SystemManager in another
+ *  application through their bridge to add or remove a listener to a specified event
+ *  on your behalf. The data property is not used. Only certain events
+ *  can be requested. When the event is triggered in the other application, that
  *  event is re-dispatched through the bridge where the requesting
- *  systemManager picks up the event and redispatches it from itself.
+ *  SystemManager picks up the event and redispatches it from itself.
  *  In general, this request is generated because some other code called
- *  addEventListener for one of the approved events on its systemManager.
+ *  the addEventListener() method for one of the approved events on its SystemManager.
  */
 public class EventListenerRequest extends SWFBridgeRequest
 {
@@ -53,7 +53,11 @@

 	/**
 	 *  Marshals an event by copying the relevant parameters
-     *  from the event into a new event
+     *  from the event into a new event.
+     	*
+     	*  @param event The event to marshal.
+     	*
+     	*  @return An EventListenerRequest that defines the new event.
 	 */
 	public static function marshal(event:Event):EventListenerRequest
 	{
@@ -74,20 +78,22 @@
 	/**
 	 *  Creates a new request to add or remove an event listener.
 	 *
-	 *  @param type EventListenerRequest.ADD or EventListenerRequest.REMOVE
-     *
-     *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
-     *
-     *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
-     *
-	 *  @param eventType type of message you would normally pass to
-	 * 		  addEventListener.
-     *
-	 *  @param useCapture  See addEventListener.
-     *
-	 *  @param priority See addEventListener.
-     *
-	 *  @param useWeakReference See addEventListener.
+	 *  @param type The event type; indicates the action that caused the event. Either EventListenerRequest.ADD
+	 *  or EventListenerRequest.REMOVE.
+         *
+         *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+         *
+         *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+         *
+	 *  @param eventType The type of message you would normally pass to the addEventListener() method.
+         *
+	 *  @param useCapture Determines whether the listener works in the capture phase or the target and bubbling phases.
+         *
+	 *  @param priority The priority level of the event listener. Priorities are designated by a 32-bit integer.
+         *
+	 *  @param useWeakReference Determines whether the reference to the listener is strong or weak.
+	 *
+	 *  @see flash.events.IEventDispatcher#addEventListener
 	 */
 	public function EventListenerRequest(type:String, bubbles:Boolean = false,
 										 cancelable:Boolean = true,


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

--- frameworks/projects/mx/src/mx/controls/sliderClasses/SliderLabel.as
+++ frameworks/projects/mx/src/mx/controls/sliderClasses/SliderLabel.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.sliderClasses
+{
+
+import flash.text.TextLineMetrics;
+import mx.controls.Label;
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  The SliderLabel class defines the label used in the mx.controls.Slider component.
+ *  The class adds no additional functionality to mx.controls.Label.
+ *  It is used to apply a type selector style.
+ *
+ *  @see mx.controls.HSlider
+ *  @see mx.controls.VSlider
+ *  @see mx.controls.sliderClasses.Slider
+ *  @see mx.controls.sliderClasses.SliderDataTip
+ *  @see mx.controls.sliderClasses.SliderThumb
+ */
+public class SliderLabel extends Label
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function SliderLabel()
+	{
+		super();
+	}
+
+	/**
+	 *  @private
+	 */
+	override mx_internal function getMinimumText(t:String):String
+	{
+		 // If the text is null or empty
+		// make the measured size big enough to hold
+		// a capital character using the current font.
+        if (!t || t.length < 1)
+            t = "W";
+
+		return t;
+	}
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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

 package mx.charts.series
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.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/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.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/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/framework/src/mx/managers/BrowserManager.as
+++ frameworks/projects/framework/src/mx/managers/BrowserManager.as
@@ -61,6 +61,9 @@
     /**
      *  Returns the sole instance of this Singleton class;
      *  creates it if it does not already exist.
+     *
+     *  @return Returns the sole instance of this Singleton class;
+     *  creates it if it does not already exist.
      */
     public static function getInstance():IBrowserManager
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3481
Author:   hmuller@adobe.com
Date:     2008-10-03T21:56:11.325817Z

Log Message:
-----------
Bug fixes

Added a special case to VerticalLayout::verticalScrollPositionDelta
and HorizontalLayout::horizontalScrollPositionDelta to handle a single
item that fills the entire viewport.  Made a similar change to
Vertical,HorizontalLayout::inView().  This also fixes bug 17148.

Revised Vertical,HorizontalLayout::updateScrollPosition() to handle
cases where there's no item overlapping one or both ends of
the scrollRect.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Evtim
Bugs:
  SDK-17143 - Scroller Keyboard navigation is incorrect if viewport is DataGroup
  SDK-17148 - inView() is returning a number greater than 1 for a Group item that is partially in the viewport
  SDK-17147 - VerticalLayout's inView() method always returns zero when Setting verticalScrollPosition to show only the last item in a Group
  SDK-17140 - inView() method always returns 0 after moving the Group's viewport with verticalScrollPosition

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -415,10 +415,7 @@
             return 0.0;
         if ((ix0 >= x0) && (ix1 <= x1))
             return 1.0;
-        if (index == c0)
-            return (ix1 - x0) / (ix1 - ix0);
-        else
-            return (x1 - ix0) / (ix1 - ix0);
+        return (Math.max(x0, ix0) - Math.min(x1, ix1)) / (ix1 - ix0);
     }

     /**
@@ -458,9 +455,32 @@
             return findIndexAt(x, gap, g, i0, Math.max(i0, index-1));
         else
             return findIndexAt(x, gap, g, Math.min(index+1, i1), i1);
-    }
-
+    }
+
    /**
+    *  Returns the index of the first non-null includeInLayout item,
+    *  beginning with the item at index i.
+    *
+    *  Returns -1 if no such item can be found.
+    *
+    *  @private
+    */
+    private static function findLayoutItemIndex(g:GroupBase, i:int, dir:int):int
+    {
+        var n:int = g.numLayoutItems;
+        while((i >= 0) && (i < n))
+        {
+           var item:ILayoutItem = g.getLayoutItemAt(i);
+           if (item && item.includeInLayout)
+           {
+               return i;
+           }
+           i += dir;
+        }
+        return -1;
+    }
+
+  /**
     *  Updates the first,lastIndexInView properties per the new
     *  scroll position.
     *
@@ -474,21 +494,64 @@
         if (!g)
             return;

-        var r:Rectangle = g.scrollRect;
-        if (!r)
-        {
-            // TBD: find first/last non-null includeInLayout items
-        }
+        var n:int = g.numLayoutItems - 1;
+        if (n < 0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
+        var scrollR:Rectangle = g.scrollRect;
+        if (!scrollR)
+        {
+            setIndexInView(0, n);
+            return;
+        }
+
+        var x0:Number = scrollR.left;
+        var x1:Number = scrollR.right;
+        if (x1 <= x0)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
         // TBD: special case for variableRowHeight false
-        else
-        {
-            var n:int = Math.max(g.numLayoutItems - 1, 0);
-            var i0:int = findIndexAt(r.x + gap, gap, g, 0, n);
-            var i1:int = findIndexAt(r.right, gap, g, 0, n);
-            setIndexInView(i0, i1);
-        }
-    }
-
+
+        var i0:int = findIndexAt(x0 + gap, gap, g, 0, n);
+        var i1:int = findIndexAt(x1, gap, g, 0, n);
+
+        // Special case: no item overlaps x0, is index 0 visible?
+        if (i0 == -1)
+        {
+            var index0:int = findLayoutItemIndex(g, 0, +1);
+            if (index0 != -1)
+            {
+                var item0:ILayoutItem = g.getLayoutItemAt(index0);
+                var p0:Point = item0.actualPosition;
+                var s0:Point = item0.actualSize;
+                if ((p0.x < x1) && ((p0.x + s0.x) > x0))
+                    i0 = index0;
+            }
+        }
+
+        // Special case: no item overlaps y1, is index n visible?
+        if (i1 == -1)
+        {
+            var index1:int = findLayoutItemIndex(g, n, -1);
+            if (index1 != -1)
+            {
+                var item1:ILayoutItem = g.getLayoutItemAt(index1);
+                var p1:Point = item1.actualPosition;
+                var s1:Point = item1.actualSize;
+                if ((p1.x < x1) && ((p1.x + s1.x) > x0))
+                    i1 = index1;
+            }
+        }
+
+        setIndexInView(i0, i1);
+    }
+
    /**
     *  Returns the actual position/size Rectangle of the first non-null
     *  includeInLayout item, beginning with the item at index i.
@@ -497,7 +560,7 @@
     *
     *  @private
     */
-    private static function itemScan(g:GroupBase, i:int, dir:int):Rectangle
+    private static function findLayoutItemBounds(g:GroupBase, i:int, dir:int):Rectangle
     {
         var n:int = g.numLayoutItems;
         while((i >= 0) && (i < n))
@@ -566,7 +629,7 @@

         var maxDelta:Number = g.contentWidth - scrollR.width - scrollR.x;
         var minDelta:Number = -scrollR.x;
-        var itemR:Rectangle;
+        var itemR:Rectangle = null;
         var firstIndex:int;
         var lastIndex:int;

@@ -583,7 +646,7 @@
                 firstIndex = firstIndexInView;
                 if (inView(firstIndex) >= 1)
                    firstIndex = Math.max(0, firstIndex -1);
-                itemR = itemScan(g, firstIndex, -1);
+                itemR = findLayoutItemBounds(g, firstIndex, -1);
                 break;
             }

@@ -598,29 +661,56 @@
                 lastIndex = lastIndexInView;
                 if (inView(lastIndex) >= 1)
                    lastIndex = Math.min(maxIndex, lastIndex + 1);
-                itemR = itemScan(g, lastIndex, +1);
+                itemR = findLayoutItemBounds(g, lastIndex, +1);
                 break;
             }
+
+            default:
+                return super.horizontalScrollPositionDelta(unit);
+        }
+
+        if (!itemR)
+            return 0;
+
+        switch (unit)
+        {
+            // Special case: only one item is partially visible.   If it
+            // extends above the scrollR, then top justify it
+            case Keyboard.LEFT:
+            case Keyboard.PAGE_UP:
+            {
+                if ((itemR.left < scrollR.left) && (itemR.right >= scrollR.right))
+                    return itemR.left - scrollR.left;
+                break;
+            }
+
+            // Special case: only one item is partially visible.   If it
+            // extends below the scrollR, then bottom justify it
+            case Keyboard.RIGHT:
+            case Keyboard.PAGE_DOWN:
+            {
+                if ((itemR.left <= scrollR.left) && (itemR.right > scrollR.right))
+                   return itemR.right - scrollR.right;
+                break;
+            }
         }

-
         switch (unit)
         {
             case Keyboard.LEFT:
-                return (itemR) ? Math.max(minDelta, itemR.left - scrollR.left) : 0;
+                return Math.max(minDelta, itemR.left - scrollR.left);

             case Keyboard.RIGHT:
-                return (itemR) ? Math.min(maxDelta, itemR.right - scrollR.right) : 0;
+                return Math.min(maxDelta, itemR.right - scrollR.right);

             case Keyboard.PAGE_UP:
-                return (itemR) ? Math.max(minDelta, itemR.right - scrollR.right) : 0;
+                return Math.max(minDelta, itemR.right - scrollR.right);

             case Keyboard.PAGE_DOWN:
-                return (itemR) ? Math.min(maxDelta, itemR.left - scrollR.x) : 0;
-
-            default:
-                return super.verticalScrollPositionDelta(unit);
-        }
+                return Math.min(maxDelta, itemR.left - scrollR.left);
+        }
+
+        return 0;
     }

     public function variableColumnWidthMeasure(layoutTarget:GroupBase):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 13099
Author:   egeorgie@adobe.com
Date:     2009-12-18T02:58:52.185083Z

Log Message:
-----------
Minor updates to the drag and drop protected APIs.

- LayoutBase calculateDragScrollDelta now takes only two parameters, the timeInterval parameter was removed while the timeElapsed interval was renamed to elapsedTime and its type was changed from int to Number.
- The drag and drop data format descriptors were renamed from "orderedItems" and "orderedItemsCaretIndex" to "itemsByIndex" and "caretIndex" respectively.
- Fixed a default value for the VerticalLayout requestedMinRowCount property to be -1 (was 0).

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Jason
Tests run: checkintests, mustella tests/gumbo/components/ListDragDrop
Is noteworthy for integration: No

Modified Paths:
--------------
<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/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -1980,10 +1980,9 @@
      *  @private
      */
     override protected function calculateDragScrollDelta(dropLocation:DropLocation,
-                                                         timeInterval:int,
-                                                         timeElapsed:int):Point
-    {
-        var delta:Point = super.calculateDragScrollDelta(dropLocation, timeInterval, timeElapsed);
+                                                         elapsedTime:Number):Point
+    {
+        var delta:Point = super.calculateDragScrollDelta(dropLocation, elapsedTime);
         // Don't scroll in the vertical direction
         if (delta)
             delta.y = 0;


Fixed deleting wires through UI

Fixed deleting wires through UI

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -797,6 +797,9 @@

 		private function destroyWires():void {
+			if (U.buttonManager.moused)
+				return;
+
 			for each (var wire:DWire in displayWires)
 				if (wire.exists && wire.overlapsPoint(U.mouseFlxLoc)) {
 					new CustomAction(Wire.remove, Wire.place, wire.wire).execute();


Transferred from the Adobe Open Source Subversion Repository

Revision: 1968
Author:   jimurphy@adobe.com
Date:     2008-06-05T15:31:56.961691Z

Log Message:
-----------
Merge 3.0.x revisions [1940,1954] -> trunk

Modified Paths:
--------------
<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/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.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/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as
@@ -22,7 +22,7 @@
  *  The skin for the maximize button in the TitleBar
  *  of a WindowedApplication or Window.
  *
- *  @productversion Apollo 1.0
+ *  @playerversion AIR 1.1
  */
 public class WindowMaximizeButtonSkin extends UIComponent
 {


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

--- frameworks/projects/automation/src/mx/automation/codec/DefaultPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/DefaultPropertyCodec.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: 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@1263053 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/utils/XMLNotifier.as
+++ frameworks/projects/framework/src/mx/utils/XMLNotifier.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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: 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@1268399 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/PopUpMenuButton.as
+++ frameworks/projects/mx/src/mx/controls/PopUpMenuButton.as
@@ -37,6 +37,11 @@
  *  Dispatched when a user selects an item from the pop-up menu.
  *
  *  @eventType mx.events.MenuEvent.ITEM_CLICK
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="itemClick", type="mx.events.MenuEvent")]

@@ -47,6 +52,11 @@
  *  the textAlign to left.
  *
  *  @default "popUpMenu"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="popUpStyleName", type="String", inherit="no")]

@@ -139,6 +149,11 @@
  *
  *  @tiptext Provides ability to pop up a menu and act as a button
  *  @helpid 3441
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class PopUpMenuButton extends PopUpButton
 {
@@ -152,6 +167,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function PopUpMenuButton()
     {
@@ -213,6 +233,11 @@
      *  (The write-only indicator appears in the syntax summary because the
      *  property in the superclass is read-write and this class overrides
      *  the setter with an empty implementation.)

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function set popUp(value:IUIComponent):void
     {
@@ -254,6 +279,11 @@
      *
      *
The default value is an internal instance of the
      *  DefaultDataDescriptor class.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get dataDescriptor():IMenuDataDescriptor
     {
@@ -285,6 +315,11 @@
      *  DataProvider for popUpMenu.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get dataProvider():Object
     {
@@ -359,6 +394,11 @@
      *  explicitly; for example, use @label to specify the label attribute.
      *
      *  @default "label"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get labelField():String
     {
@@ -411,6 +451,11 @@
      *
labelFunction(item:Object):String

      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get labelFunction():Function
     {
@@ -459,6 +504,11 @@
      *  object.
      *
      *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get showRoot():Boolean
     {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/Spinner.as
+++ frameworks/projects/spark/src/spark/components/Spinner.as
@@ -28,6 +28,16 @@
  *  @eventType flash.events.Event.CHANGE
  */
 [Event(name="change", type="flash.events.Event")]
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#focusColor
+ */
+[Style(name="focusColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#symbolColor
+ */
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

 /**
  *  Skin states for this component.


Transferred from the Adobe Open Source Subversion Repository

Revision: 21411
Author:   smgilson@adobe.com
Date:     2011-06-20T16:57:04.909448Z

Log Message:
-----------
Update ASDoc comments to note that FormLayout is only to be used with Form for bug SDK-30571

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

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/FormLayout.as

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

--- frameworks/projects/spark/src/spark/layouts/FormLayout.as
+++ frameworks/projects/spark/src/spark/layouts/FormLayout.as
@@ -32,6 +32,9 @@
  *  should have the same type of width setting.
  *  For example, if the first child's second column has a percent width, then the
  *  second child's second column should also be a percent width.
+ *
+ *
Note: Only use the FormLayout class with the Spark Form container.
+ *  Do not use it to lay out the contents of any other container.

  *
  *  @see spark.components.Form
  *  @see spark.components.FormHeading


Transferred from the Adobe Open Source Subversion Repository

Revision: 11067
Author:   egeorgie@adobe.com
Date:     2009-10-21T23:32:39.672345Z

Log Message:
-----------
Drag and Drop - tweak the positioning of the drop indicator, allow 1 pixel overlap with the container border

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

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

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1939,15 +1939,18 @@
         if (y > midRowLine)
             row++;

-        // Limit row and column
-        if (column < 0)
+        // Limit row and column, if any one is too far from the drop location
+		// And there is white space
+		if (column > _columnCount || row > _rowCount)
+		{
+			row = _rowCount;
+			column = _columnCount;
+		}
+
+		if (column < 0)
             column = 0;
-        else if (column > _columnCount)
-            column = _columnCount;
         if (row < 0)
             row = 0;
-        else if (row > _rowCount)
-            row = _rowCount;

         var index:int;
         if (rowOrientation)
@@ -2059,8 +2062,10 @@
             }

             x = emptySpaceLeft + Math.round((emptySpace - width) / 2);
-            x = Math.max(-Math.ceil(width / 2), Math.min(target.contentWidth - Math.ceil(width / 2), x));
-            y = row * (_rowHeight + _verticalGap);
+			// Allow 1 pixel overlap with container border
+            x = Math.max(-1, Math.min(target.contentWidth - width + 1, x));
+
+			y = row * (_rowHeight + _verticalGap);
         }
         else
         {
@@ -2087,8 +2092,10 @@
             }

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

         return new Rectangle(x, y, width, height);


Fix for bug where a [Before] or [After] in a TestNG style Parameterized test caused a crash

--- FlexUnit4/src/org/flexunit/runners/Parameterized.as
+++ FlexUnit4/src/org/flexunit/runners/Parameterized.as
@@ -181,6 +181,7 @@
 import flex.lang.reflect.Field;
 import flex.lang.reflect.Klass;
 import flex.lang.reflect.Method;
+import flex.lang.reflect.metadata.MetaDataAnnotation;
 import flex.lang.reflect.metadata.MetaDataArgument;

 import org.flexunit.constants.AnnotationArgumentConstants;
@@ -191,7 +192,7 @@
 import org.flexunit.runners.BlockFlexUnit4ClassRunner;
 import org.flexunit.runners.model.FrameworkMethod;
 import org.flexunit.runners.model.ParameterizedMethod;
-import org.flexunit.token.AsyncTestToken;
+import org.flexunit.token.AsyncTestToken;

 class TestClassRunnerForParameters extends BlockFlexUnit4ClassRunner {
 	private var klassInfo:Klass;
@@ -252,14 +253,19 @@

 		//Only validate the ones that do not have a dataProvider attribute for these rules
 		var methods:Array = testClass.getMetaDataMethods( metaDataTag  );
+		var annotation:MetaDataAnnotation;
 		var argument:MetaDataArgument;

 		var eachTestMethod:FrameworkMethod;
 		for ( var i:int=0; i<methods.length; i++ ) {
 			eachTestMethod = methods[ i ] as FrameworkMethod;

-			//Does it have a dataProvider?
-			argument = eachTestMethod.method.getMetaData( AnnotationConstants.TEST ).getArgument( AnnotationArgumentConstants.DATAPROVIDER );
+			annotation = eachTestMethod.method.getMetaData( AnnotationConstants.TEST );
+
+			if ( annotation ) {
+				//Does it have a dataProvider?
+				argument = annotation.getArgument( AnnotationArgumentConstants.DATAPROVIDER );
+			}

 			//If there is an argument, we need to punt on verification of arguments until later when we know how many there actually are
 			if ( !argument ) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17246
Author:   ealimam@adobe.com
Date:     2010-08-10T00:21:27.836950Z

Log Message:
-----------
(CheckBox Skin) Updating FXG per Scott's new designs for Beta. Also added some code to ToggleButtonSkinBase to force pixel boundry alignment of strokes along with some other housekeeping changes in MobileThemeClasses.

Reviewed by: Scott Amaya, Jason Szeto

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/Checkbox_bg_normal.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/Checkbox_bg_selected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleButtonSkinBase.as</path>

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

--- frameworks/projects/mobiletheme/src/MobileThemeClasses.as
+++ frameworks/projects/mobiletheme/src/MobileThemeClasses.as
@@ -23,6 +23,8 @@
  */
 import spark.skins.mobile.ActionBarSkin; ActionBarSkin;
 import spark.skins.mobile.ButtonSkin; spark.skins.mobile.ButtonSkin;
+import spark.skins.mobile.CheckBoxSkin; spark.skins.mobile.CheckBoxSkin;
+import spark.skins.mobile.RadioButtonSkin; spark.skins.mobile.RadioButtonSkin;
 import spark.skins.mobile.HScrollBarSkin; spark.skins.mobile.HScrollBarSkin;
 import spark.skins.mobile.IconItemRenderer; spark.skins.mobile.IconItemRenderer;
 import spark.skins.mobile.ListSkin; spark.skins.mobile.ListSkin;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.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/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -11,16 +11,24 @@

 package spark.layouts
 {
+import flash.geom.Point;
 import flash.geom.Rectangle;

+import mx.core.FlexVersion;
+import mx.core.IFlexModuleFactory;
 import mx.core.ILayoutElement;
 import mx.core.IVisualElement;
+import mx.core.mx_internal;
+import mx.core.UIComponentGlobals;
 import mx.events.PropertyChangeEvent;
+import mx.managers.ILayoutManagerClient;

 import spark.components.supportClasses.GroupBase;
 import spark.core.NavigationUnit;
 import spark.layouts.supportClasses.DropLocation;
 import spark.layouts.supportClasses.LayoutBase;
+
+use namespace mx_internal;

 /**
  *  The TileLayout class arranges layout elements in columns and rows
@@ -1060,6 +1068,9 @@
     {
         if (!elt || !elt.includeInLayout)
             return;
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            if (elt is ILayoutManagerClient)
+                UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(elt), true);
         var w:Number = elt.getPreferredBoundsWidth();
         var h:Number = elt.getPreferredBoundsHeight();
         _tileWidthCached = isNaN(_tileWidthCached) ? w : Math.max(w, _tileWidthCached);
@@ -1088,7 +1099,7 @@
         if ((visibleStartIndex != -1) && (visibleEndIndex != -1))
         {
             for (var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
-                updateVirtualTileSize(target.getVirtualElementAt(index));
+                updateVirtualTileSize(target.getVirtualElementAt(index, NaN, NaN, true));
         }

         // Make sure that we always have non-NaN values in the cache, even
@@ -1272,9 +1283,12 @@
                 i = visibleEndIndex;
                 continue;
             }
-            var el:ILayoutElement = layoutTarget.getVirtualElementAt(i);
+            var el:ILayoutElement = layoutTarget.getVirtualElementAt(i, NaN, NaN, true);
             if (!el)
                 continue;
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+                if (el is ILayoutManagerClient)
+                    UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(el), true);
             el.setLayoutBoundsSize(0, 0);
             if (el is IVisualElement)
                 IVisualElement(el).visible = false;
@@ -1411,6 +1425,7 @@
         if (!g)
             return;

+        g.invalidateEstimatedSizesOfChildren();
         g.invalidateSize();
         g.invalidateDisplayList();
     }
@@ -1423,6 +1438,75 @@

     /**
      *  @private
+     *  customize handling of a few cases
+     */
+    override protected function estimateSizeOfElement(layoutElement:ILayoutElement,
+                                                               percentWidth:Number,
+                                                               percentHeight:Number,
+                                                               parentEstimatedWidth:Number,
+                                                               parentEstimatedHeight:Number,
+                                                               estimatedSize:Point):void
+    {
+        super.estimateSizeOfElement(layoutElement,
+                                                percentWidth,
+                                                percentHeight,
+                                                parentEstimatedWidth,
+                                                parentEstimatedHeight,
+                                                estimatedSize);
+
+        var c:Number;
+        if (isNaN(estimatedSize.y) || !isNaN(explicitRowHeight))
+        {
+            c = explicitRowHeight;
+            if (isNaN(c))
+            {
+                if (requestedRowCount > 0)
+                {
+                    c = target.estimatedHeight;
+                    if (isNaN(c) && !isNaN(target.explicitHeight))
+                        c = target.explicitHeight;
+                    c = (c - (requestedRowCount - 1) * verticalGap) / requestedRowCount;
+                }
+            }
+            if (!isNaN(c))
+            {
+                // if verticalAlign is "justify" or "contentJustify",
+                // restrict the height to constrainedHeight.  Otherwise,
+                // size it normally
+                if (verticalAlign == VerticalAlign.JUSTIFY)
+				// ||
+                //    verticalAlign == VerticalAlign.CONTENT_JUSTIFY)
+                    estimatedSize.y = c;
+            }
+        }
+        if (isNaN(estimatedSize.x) || !isNaN(explicitColumnWidth))
+        {
+            c = explicitColumnWidth;
+            if (isNaN(c))
+            {
+                if (requestedColumnCount > 0)
+                {
+                    c = target.estimatedWidth;
+                    if (isNaN(c) && !isNaN(target.explicitWidth))
+                        c = target.explicitWidth;
+                    c = (c - (requestedColumnCount - 1) * horizontalGap) / requestedColumnCount;
+                }
+            }
+            if (!isNaN(c))
+            {
+                // if horizontalAlign is "justify" or "contentJustify",
+                // restrict the width to restrictedWidth.  Otherwise,
+                // size it normally
+                if (horizontalAlign == HorizontalAlign.JUSTIFY)
+				// ||
+                //    horizontalAlign == HorizontalAlign.CONTENT_JUSTIFY)
+                    estimatedSize.x = c;
+            }
+        }
+    }
+
+    /**
+     *  @private
      */
     override protected function scrollPositionChanged():void
     {
@@ -1436,7 +1520,17 @@
             layoutTarget.invalidateDisplayList();
     }

-
+    /**
+     *  @private
+     */
+	override public function setEstimatedSize(estimatedWidth:Number = NaN,
+												estimatedHeight:Number = NaN,
+												invalidateSize:Boolean = true):void
+    {
+		if (invalidateSize)
+        	target.invalidateSize();
+    }
+
     /**
      *  @private
      */
@@ -1446,7 +1540,11 @@
         if (!layoutTarget)
             return;

-        updateActualValues(layoutTarget.explicitWidth, layoutTarget.explicitHeight);
+        var cw:Number = !isNaN(layoutTarget.explicitWidth) ? layoutTarget.explicitWidth :
+                                                                layoutTarget.estimatedWidth;
+        var ch:Number = !isNaN(layoutTarget.explicitHeight) ? layoutTarget.explicitHeight :
+            layoutTarget.estimatedHeight;
+        updateActualValues(cw, ch);

         // For measure, any explicit overrides for rowCount and columnCount take precedence
         var columnCount:int = _requestedColumnCount != -1 ? Math.max(1, _requestedColumnCount) : _columnCount;
@@ -1754,7 +1852,7 @@
             var el:ILayoutElement = null;
             if (useVirtualLayout)
             {
-                el = layoutTarget.getVirtualElementAt(index);
+                el = layoutTarget.getVirtualElementAt(index, NaN, NaN, true);
                 if (el is IVisualElement)  // see updateVirtualLayout
                     IVisualElement(el).visible = true;
             }
@@ -1771,6 +1869,9 @@
             var cellWidth:int = Math.round(xPos + _columnWidth) - cellX;
             var cellHeight:int = Math.round(yPos + _rowHeight) - cellY;

+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+                if (el is ILayoutManagerClient)
+                    UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(el), true);
             sizeAndPositionElement(el, cellX, cellY, cellWidth, cellHeight);

             // Move along the major axis
@@ -1810,6 +1911,7 @@

         // If actual values have chnaged, notify listeners
         dispatchEventsForActualValueChanges();
+
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3577
Author:   mhorn@adobe.com
Date:     2008-10-10T21:19:02.589495Z

Log Message:
-----------
checking in for now. work in progress.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4697
Author:   egeorgie@adobe.com
Date:     2009-01-27T23:47:40.767090Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-18891 Layout backwards compatibility flag for Flex 3 behavior not reporting correct width & height

Fix: we were not checking for the compatibility flag in LayoutElementUIComponentUtils.

QE Notes: None
Doc Notes: None
Bugs: SDK-18891
Reviewer: Hans
tests:

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as

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

--- frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
+++ frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
@@ -408,6 +408,13 @@
             if (isNaN(height))
                 height = getPreferredUBoundsHeight(obj);

+            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            {
+                // We are already taking scale into account from the transform,
+                // so adjust here since IUIComponent mixes it with width/height
+                width *= obj.scaleX;
+                height *= obj.scaleY;
+            }
             obj.setActualSize(width, height);
             return;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19414
Author:   chiedozi@adobe.com
Date:     2010-12-15T23:58:43.588373Z

Log Message:
-----------
Removed an unnecessary validateNow from ViewNavigator.

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -1330,14 +1330,6 @@
         }

         delayedNavigationActions.length = 0;
-
-        // If there is a parent navigator, we need to validate from the parent
-        // down to prevent renderering flickers due to invalid layout values
-        // TODO (chiedozi): Investigate why i have to do this
-        if (parentNavigator)
-            parentNavigator.validateNow();
-        else
-            validateNow();
     }

     /**
@@ -1884,9 +1876,14 @@

         if(pendingViewDescriptor.viewClass != null)
         {
-            createViewInstance(pendingViewDescriptor);
+            var view:View = createViewInstance(pendingViewDescriptor);

             viewChangeRequested = false;
+
+            // TODO (chiedozi): Hide the view to remove a flicker that would occur.
+            // This shouldn't happen because viewAdded should be called before the
+            // view is rendered, but that doesn't seem to happen.  Investigate this.
+            view.visible = false;

             // Schedule the view added method to occur at a later time so to allow developers
             // to take advantage of validation lifecycle events, such as CREATION_COMPLETE,
@@ -2081,6 +2078,7 @@
         if (pendingViewDescriptor)
         {
             pendingView = pendingViewDescriptor.instance;
+            pendingView.visible = true;
             pendingView.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
                             view_propertyChangeHandler);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18161
Author:   chiedozi@adobe.com
Date:     2010-10-14T23:15:44.404213Z

Log Message:
-----------
The ViewNavigator components now manage their orientation internally based on the stage width and height.  The landscapeOrientation property has been removed from all the components.

QE notes:
Doc notes:
Bugs:
Reviewer: Glenn
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/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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.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/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -515,23 +515,6 @@
     }

     //----------------------------------
-    //  landscapeOrientation
-    //----------------------------------
-    /**
-     *  @private
-     */
-    override public function set landscapeOrientation(value:Boolean):void
-    {
-        if (value != landscapeOrientation)
-        {
-            super.landscapeOrientation = value;
-
-            if (activeView)
-                activeView.setCurrentState(activeView.getCurrentViewState(landscapeOrientation), false);
-        }
-    }
-
-    //----------------------------------
     //  length
     //----------------------------------

@@ -1014,7 +997,7 @@

     //--------------------------------------------------------------------------
     //
-    // Private Methods
+    // Protected Methods
     //
     //--------------------------------------------------------------------------

@@ -1812,6 +1795,9 @@
         else
         {
             view = viewProxy.instance;
+
+            // Need to update the view's orientation state if it was saved
+            view.setCurrentState(view.getCurrentViewState(), false);
         }

         // Restore persistence data if necessary
@@ -1823,12 +1809,6 @@
         view.percentWidth = view.percentHeight = 100;

         // Update the views orientation state
-        if ((landscapeOrientation && view.hasState("landscape")) ||
-            (!landscapeOrientation && view.hasState("portrait")))
-        {
-            view.setCurrentState(view.getCurrentViewState(landscapeOrientation), false);
-        }
-
         addElement(view);

         return view;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11566
Author:   dsubrama@adobe.com
Date:     2009-11-09T01:52:06.000028Z

Log Message:
-----------
Rectify the mode calculation for luminosity masks and check-in the latest and greatest pbj files from Core Tech.

QE notes: Yes, regress
Doc notes: None
Bugs: SDK-23809
Reviewer: Pete
Tests run: Dynamic and static FXG
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/LuminosityMaskShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Exclusion.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Saturation.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Luminosity.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Color.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/LuminosityMaskFilter.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/ColorDodge.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/Hue.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/SoftLight.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders/ColorBurn.pbj</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -1140,16 +1140,11 @@
      */
     private function calculateLuminositySettings():int
     {
-        var mode:int = -1;
-
-        if (luminosityClip && !luminosityInvert)
-            mode = 0;
-        if (luminosityClip && luminosityInvert)
-            mode = 1;
-        if (!luminosityClip && !luminosityInvert)
-            mode = 2;
-        if (!luminosityClip && luminosityInvert)
-            mode = 3;
+        var mode:int = 0;
+        if (luminosityInvert)
+            mode += 1;
+        if (luminosityClip)
+            mode += 2;
         return mode;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8400
Author:   srahim@adobe.com
Date:     2009-07-06T21:28:33.082387Z

Log Message:
-----------
ASDoc updates for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -123,7 +123,7 @@
  *  The smoothScrolling style must also be set on the
  *  ScrollBar to get animated behavior when shift-clicking.
  *
- *
This time is for an animation that covers the entire distance of the
+ *
This duration is for an animation that covers the entire distance of the
  * track; smaller distances will use a proportionally smaller duration.

  *
  *  @default 300
@@ -143,8 +143,27 @@
  *  The TrackBase class also provides the code for
  *  dragging the thumb button, which is shared by the Slider and ScrollBar classes.
  *
- *  @see mx.components.baseClasses.Slider
- *  @see mx.components.baseClasses.ScrollBar
+ *  @mxml
+ *
+ *
The <TrackBase> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <TrackBase
+ *    Styles
+ *    slideDuration="300"
+ *
+ *    Events
+ *    change="No default"
+ *    changing="No default"
+ *    thumbDrag="No default"
+ *    thumbPress="No default"
+ *    thumbRelease="No default"
+ *  />
+ *

+ *
+ *  @see spark.components.supportClasses.Slider
+ *  @see spark.components.supportClasses.ScrollBar
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -202,7 +221,7 @@

     /**
      *  A skin part that defines a button
-     *  that when  pressed sets the value property
+     *  that, when  pressed, sets the value property
      *  to the value corresponding with the current button position on the track.
      *
      *  @langversion 3.0
@@ -319,23 +338,23 @@
     //--------------------------------------------------------------------------

     /**
-     *  Convert a track relative x,y pixel location into a value between
-     *  minimum and maximum inclusive.
+     *  Converts a track-relative x,y pixel location into a value between
+     *  the minimum and maximum, inclusive.
      *
      *
TrackBase subclasses must override this method and perform conversions
      *  that take their own geometry into account.
      *
-     *  For example a vertical slider might compute a value like this:
+     *  For example, a vertical slider might compute a value like this:
      *

      *  return (y / track.height) * (maximum - minimum);
      *

      *

      *
-     *
By default this method just returns minimum.

+     *
By default, this method returns minimum.

      *
      *  @param x The x coordinate of the location relative to the track's origin.
      *  @param y The y coordinate of the location relative to the track's origin.
-     *  @return A value between minimum and maximum, inclusive.
+     *  @return A value between the minimum and maximum, inclusive.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -454,11 +473,11 @@
     private var clickOffset:Point;

     /**
-     *  Set the bounds of skin parts - typically the thumb - whose geometry isn't fully
+     *  Sets the bounds of skin parts - typically the thumb - whose geometry isn't fully
      *  specified by the skin's layout.
      *
      *
Most subclasses override this method to update the thumb's size, position, and
-     *  visibility, based on the minimum, maximum, and value properties.

+     *  visibility, based on the minimum, maximum, and value properties.

      *
      *
Does nothing by default.

      *
@@ -497,8 +516,8 @@
     }

     /**
-     *  Handles the mouseWheel event when the component is in focus. The thumb is
-     *  moved by the amount of the mouse event delta multiplied by the stepSize.
+     *  Handles the mouseWheel event when the component is in focus. The thumb is
+     *  moved by the amount of the mouse event delta multiplied by the stepSize.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 3006
Author:   chaase@adobe.com
Date:     2008-08-26T20:20:09.265543Z

Log Message:
-----------
Fix for SDK-16447. Fade effect would toggle visibility of target only when alphaFrom/To values were not set. This fix expands that logic to encompass situations where the alpha values are supplied as well.

Reviewed by Jason S
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
@@ -90,10 +90,6 @@
                 alphaFrom = propChanges.start["visible"] ? origAlpha : 0;
                 alphaTo = propChanges.end["visible"] ? origAlpha : 0;
                 // Force target to be visible at effect start
-                if (alphaFrom == 0 && alphaTo != 0)
-                {
-                    target.visible = true;
-                }
                 restoreAlpha = true;
             }
             else if (propChanges && propChanges.end["parent"] !== undefined)
@@ -135,15 +131,21 @@
                 alphaTo = (alphaFrom == 0) ? origAlpha : 0;
             }
         }
-
+
+        // Extra logic to handle making the object visible if we're supposed
+        // to be fading it in
+        if (!target.visible && alphaFrom == 0 && alphaTo != 0 &&
+            propChanges && propChanges.end["visible"] !== undefined)
+        {
+            target.visible = true;
+        }
+
         propertyValuesList =
             [new PropertyValuesHolder("alpha", [alphaFrom, alphaTo])];

         super.play();
     }

-    private var hideOnEffectEnd:Boolean = false;
-
     /**
      *  Handle any cleanup from this effect, such as setting the target to
      *  be visible (or not) or removed (or not).
@@ -154,13 +156,6 @@
         // Call super function first so we don't clobber resetting the alpha.
         super.animationEnd(tween, value);

-        // TODO: ideally, we would put the visible=false logic in this effect
-        // We don't want to depend on a private variable on the target
-        // to do this
-        if (hideOnEffectEnd)
-        {
-            target.setVisible(false, true);
-        }
         if (restoreAlpha)
         {
             target.alpha = origAlpha;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7698
Author:   rfrishbe@adobe.com
Date:     2009-06-10T00:45:40.524592Z

Log Message:
-----------
When itemRendererFunction() returns null for a DataGroup, we should try to use that item directly, rather than falling through to the item renderer.

Also cleaning up some "==" for "===" cases, especially when we deal with data.

QE Notes: Add some tests for things that "==" will fail on, like 0 vs. false in the dataset.
Doc Notes: -
Bugs: SDK-21104
Reviewer: Deepa
tests: checkintest, mustella datagroup, list, buttonbar, and dropdownlist (DropDownList ones fail due to Mac vs. Windows)

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -412,7 +412,7 @@
      */
     public function get selectedItem():*
     {
-        if (_pendingSelectedItem != undefined)
+        if (_pendingSelectedItem !== undefined)
             return _pendingSelectedItem;

         if (selectedIndex == NO_SELECTION || dataProvider == null)
@@ -426,7 +426,7 @@
      */
     public function set selectedItem(value:*):void
     {
-        if (selectedItem == value)
+        if (selectedItem === value)
             return;

         _pendingSelectedItem = value;


243 Formatting, bracing

243 Formatting, bracing

--- raw/src/org/yellcorp/sequence/Set.as
+++ raw/src/org/yellcorp/sequence/Set.as
@@ -35,7 +35,9 @@
         clear();

         if (initialElements)
+        {
             addIterable(initialElements);
+        }
     }

     /**
@@ -104,9 +106,12 @@
     public function add(newElement:*):void
     {
         if (newElement == null)
+        {
             throw new ArgumentError("Sets cannot contain null elements");
-
-        if (dict[newElement] == null) {
+        }
+
+        if (dict[newElement] == null)
+        {
             dict[newElement] = newElement;
             _length++;
         }
@@ -146,11 +151,11 @@
     {
         var wasPresent:Boolean = contains(element);

-        if (wasPresent) {
+        if (wasPresent)
+        {
             delete dict[element];
             _length--;
         }
-
         return wasPresent;
     }

@@ -172,7 +177,9 @@
         else
         {
             for each (item in iterable)
+            {
                 remove(item);
+            }
         }
     }

@@ -186,8 +193,14 @@
     public function pop():*
     {
         var item:*;
-        if (_length == 0) return null;
-        for each (item in dict) break;
+        if (_length == 0)
+        {
+            return null;
+        }
+        for each (item in dict)
+        {
+            break;
+        }
         delete dict[item];
         return item;
     }
@@ -211,9 +224,12 @@
         else
         {
             for each (item in dict)
+            {
                 if (!test.contains(item))
+                {
                     return false;
-
+                }
+            }
             return true;
         }
     }
@@ -254,7 +270,9 @@
         var result:Array = new Array(_length);

         for each (item in dict)
+        {
             result[i++] = item;
+        }

         return result;
     }
@@ -310,7 +328,9 @@
         var newSet:Set = a.clone();

         if (a !== b)
+        {
             newSet.addIterable(b.dict);
+        }

         return newSet;
     }
@@ -351,8 +371,12 @@
         {
             newSet = new Set();
             for each (item in a.dict)
+            {
                 if (b.contains(item))
+                {
                     newSet.add(item);
+                }
+            }
         }

         return newSet;
@@ -376,8 +400,12 @@
         {
             newSet = a.clone();
             for each (item in b.dict)
+            {
                 if (!newSet.remove(item))
+                {
                     newSet.add(item);
+                }
+            }
         }

         return newSet;


Transferred from the Adobe Open Source Subversion Repository

Revision: 2725
Author:   rfrishbe@adobe.com
Date:     2008-08-04T18:00:35.464035Z

Log Message:
-----------
When adding the new gumbo Application class in checkin 2382, in SystemManager we added code that called document.children.contains() if Application's not an IRawChildrenContainer.  However document.children doesn't exist; it should just be document.contains() rather than document.children.contains().

Also cleaned up a few imports for IRawChildrenContainer that weren't needed in list classes.

QE: Yes
Doc: No
Bugs: SDK-16274
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -53,7 +53,6 @@
 import mx.core.IFactory;
 import mx.core.IFlexDisplayObject;
 import mx.core.IInvalidating;
-import mx.core.IRawChildrenContainer;
 import mx.core.IUIComponent;
 import mx.core.IUID;
 import mx.core.IUITextField;


natural jenks NaNerror

natural jenks NaNerror

--- WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
@@ -98,7 +98,7 @@
 				_keys = [];
 			}

-			_sortedValues = new Array(_keys.length);
+			_sortedValues = new Array();
 			_keyCount = 0;
 			_previousSortedValues.length = 0;

@@ -119,11 +119,15 @@
 		private var _keys:Array = [];
 		private function _getValueFromKeys(stopTime:int):Number
 		{
+			var currValue:Number;
 			for (; _keyCount < _keys.length; _keyCount++)
 			{
 				if (getTimer() > stopTime)
 					return _keyCount/_keys.length;
-				_sortedValues[_keyCount] = _column.getValueFromKey(_keys[_keyCount],Number);
+				/*ignore NaN */
+				currValue = _column.getValueFromKey(_keys[_keyCount],Number);
+				if(!isNaN(currValue))
+					_sortedValues[_keyCount] = currValue;
 			}

 			// begin sorting now


fix which parent is used for adding/removing items

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
@@ -60,6 +60,8 @@

         private var _strand:IStrand;

+        private var sawInitComplete:Boolean;
+
         /**
          *  @copy org.apache.flex.core.IBead#strand
          *
@@ -77,12 +79,16 @@

         private function initialStateHandler(event:org.apache.flex.events.Event):void
         {
+            sawInitComplete = true;
             stateChangeHandler(new ValueChangeEvent("currentStateChange", false, false, null,
                 IStatesObject(_strand).currentState));
         }

         private function stateChangeHandler(event:ValueChangeEvent):void
         {
+            if (!sawInitComplete)
+                return;
+
             var doc:IStatesObject = _strand as IStatesObject;
             var arr:Array = doc.states;
             for each (var s:State in arr)
@@ -114,9 +120,7 @@
                     var ai:AddItems = AddItems(o);
                     for each (var item:DisplayObject in ai.items)
                     {
-                        var parent:IParent = ai.document as IParent;
-                        if (ai.destination != null)
-                            parent = parent[ai.destination] as IParent;
+                        var parent:IParent = item.parent as IParent;
                         parent.removeElement(item);
                     }
                     if (parent is IContainer)
@@ -171,14 +175,11 @@
                             parent = parent[ai.destination] as IParent;
                         if (ai.relativeTo != null)
                         {
-                            var index:int = parent.numElements;
-                            if (ai.relativeTo != null)
-                            {
-                                var child:Object = ai.document[ai.relativeTo];
-                                index = parent.getElementIndex(child);
-                                if (ai.position == "after")
-                                    index++;
-                            }
+                            var child:Object = ai.document[ai.relativeTo];
+                            parent = child.parent as IParent;
+                            var index:int = parent.getElementIndex(child);
+                            if (ai.position == "after")
+                                index++;
                             parent.addElementAt(item, index);
                         }
                         else