Transferred from the Adobe Open Source Subversion Repository

Revision: 19750
Author:   cframpto@adobe.com
Date:     2011-01-13T23:29:22.321521Z

Log Message:
-----------
Fix some ASdoc bugs in the grid item renderers.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>

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

--- frameworks/projects/framework/src/mx/core/UITextField.as
+++ frameworks/projects/framework/src/mx/core/UITextField.as
@@ -45,6 +45,16 @@
 include "../styles/metadata/LeadingStyle.as"
 include "../styles/metadata/PaddingStyles.as"
 include "../styles/metadata/TextStyles.as"
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="direction", kind="style")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------

 [ResourceBundle("core")]


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

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

 package spark.events
 {


FLEX-33142 stop RTE when using Halo theme and modules

--- frameworks/projects/spark/src/spark/utils/FTETextUtil.as
+++ frameworks/projects/spark/src/spark/utils/FTETextUtil.as
@@ -211,8 +211,9 @@
                     localLookup = IUIComponent(uic.parent).systemManager;
             }

-            fontContext = embeddedFontRegistry.getAssociatedModuleFactory(
-            	font, bold, italic, client, moduleFactory, localLookup, true);
+			if (embeddedFontRegistry)
+            	fontContext = embeddedFontRegistry.getAssociatedModuleFactory(
+            		font, bold, italic, client, moduleFactory, localLookup, true);
         }

         if (!fontContext && fontLookup == FontLookup.EMBEDDED_CFF)


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13742
Author:   rbhat@adobe.com
Date:     2010-01-25T05:44:35.924793Z

Log Message:
-----------
sbannur: Reverting the changes which were done, in previous revision by re-adding the patent comments, this will be done in the branch.

QE notes: None
Doc notes: None
Bugs:
Reviewer: R K Bhat
Tests run: None
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/IDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianCanvasValue.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarDataCanvas.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/CartesianCanvasValue.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/CartesianCanvasValue.as
@@ -7,6 +7,10 @@
 //  NOTICE: Adobe permits you to use, modify, and distribute this file
 //  in accordance with the terms of the license agreement accompanying it.
 //
+//  Adobe Patent or Adobe Patent Pending Invention Included Within this File
+//  Adobe patent application tracking B503, entitled Charting Data Graphics -
+//  graphics drawing API that allows to draw in data space, inventors Ely Greenfield.
+//  AdobePatentID="B503"
 //
 ////////////////////////////////////////////////////////////////////////////////////////


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

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

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


Uncommenting log messages (these are very useful for the thane AVRG controller in msoy and can be configured without commenting them out)

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5414 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/presents/util/SafeObjectManager.as
+++ src/as/com/threerings/presents/util/SafeObjectManager.as
@@ -81,7 +81,7 @@
         entry.availableFn = available;
         entry.failedFn = failed;
         sub.subscribe(_omgr);
-        // _log.info("Subscribing to " + sub);
+        _log.info("Subscribing to " + sub);
         _entries[oid] = entry;
     }

@@ -98,7 +98,7 @@
             return;
         }

-        // _log.info("Unsubscribing from " + entry.sub);
+        _log.info("Unsubscribing from " + entry.sub);
         if (entry.obj != null) {
             entry.obj.removeListener(_objectDeathListenerAdapter);
         }
@@ -115,7 +115,7 @@
      */
     public function unsubscribeAll () :void
     {
-        // _log.info("Unsubscribing all objects");
+        _log.info("Unsubscribing all objects");

         // get the keys (integer ids of subscribed objects)
         var ids :Array = new Array();
@@ -153,7 +153,7 @@
             _log.warning("Object " + obj.getOid() + " available without request?!");

         } else {
-            // _log.info("Object " + obj.getOid() + " now available");
+            _log.info("Object " + obj.getOid() + " now available");
             entry.obj = obj;
         }

@@ -205,7 +205,7 @@
             entry.obj = null;
         }

-        // _log.info("Object " + oid + " destroyed");
+        _log.info("Object " + oid + " destroyed");
     }

     protected var _omgr :DObjectManager;


temporarily commented out code that wasn't compiling.

Change-Id: I4bc7728176cce0dc682e5368c446fd582aa25091

--- WeaveClient/src/weave/SearchEngineUtils.as
+++ WeaveClient/src/weave/SearchEngineUtils.as
@@ -116,60 +116,60 @@

 		private static function handleSearchQueryContextMenuItemSelect(event:ContextMenuEvent):void
 		{
-			var probeText:String = ProbeTextUtils.getProbeText(_localProbeKeySet, null);
-			if (probeText == null)
-				return;
-			// get first line of text only
-			var query:String = probeText.split('\n')[0];
-			for each(var c:Object in _searchQueryContextMenuItems)
-			{
-				var currentContextMenuItem:ContextMenuItem = (c.contextMenu as ContextMenuItem);
-				if(currentContextMenuItem  == event.currentTarget)
-				{
-					if(currentContextMenuItem.enabled)
-					{
-						var combobox:CustomComboBox = new CustomComboBox(); //ComboBox to hold the service names
-						var urlAlert:AlertTextBox = AlertTextBox.show("Custom URL",null);
-						var hbox:HBox = new HBox();
-						var label:Label = new Label();
-						var detailsButton:Button = new Button();
-
-						detailsButton.toggle = true;
-						detailsButton.label = "Show Details";
-						detailsButton.toolTip = "Click to display the URL used for this service"
-						urlAlert.alertVBox.removeChild(urlAlert.textBox);
-						detailsButton.addEventListener(MouseEvent.CLICK, function (e:MouseEvent):void {
-							if(detailsButton.selected)
-								urlAlert.alertVBox.addChildAt(urlAlert.textBox,2);
-							else
-								urlAlert.alertVBox.removeChild(urlAlert.textBox);
-						});
-
-						hbox.toolTip = "Please select a service from the dropdown menu";
-						urlAlert.textBox.toolTip = "This is the URL used to search for the record";
-						label.text = "Select a service: ";
-
-						hbox.addChild(label); hbox.addChild(combobox); hbox.addChild(detailsButton);
-						urlAlert.alertVBox.addChildAt(hbox,0 );
-						urlAlert.alertVBox.addChildAt(new Spacer(),0);
-
-						try { // don't throw error if string is empty
-							// replace any combinations of linefeeds and newlines with one newline character for consistency
-							Weave.properties.searchServiceURLs.value = Weave.properties.searchServiceURLs.value.replace(/[\r\n]+/g,"\n");
-							fillCBoxDataProvider(combobox);
-							urlAlert.textInput = combobox.selectedItem.url;
-						} catch (e:Error) {}
-						combobox.addEventListener(ListEvent.CHANGE, function(e:ListEvent):void{
-							urlAlert.textInput = combobox.selectedItem.url;
-						});
-						urlAlert.addEventListener(AlertTextBoxEvent.BUTTON_CLICKED, function (e:AlertTextBoxEvent):void {
-							if( !e.confirm ) return ;
-							//append queried record's name to the end of the url
-							navigateToURL(new URLRequest(urlAlert.textInput + query), "_blank");
-						});
-					}
-				}
-			}
+//			var probeText:String = ProbeTextUtils.getProbeText(_localProbeKeySet, null);
+//			if (probeText == null)
+//				return;
+//			// get first line of text only
+//			var query:String = probeText.split('\n')[0];
+//			for each(var c:Object in _searchQueryContextMenuItems)
+//			{
+//				var currentContextMenuItem:ContextMenuItem = (c.contextMenu as ContextMenuItem);
+//				if(currentContextMenuItem  == event.currentTarget)
+//				{
+//					if(currentContextMenuItem.enabled)
+//					{
+//						var combobox:CustomComboBox = new CustomComboBox(); //ComboBox to hold the service names
+//						var urlAlert:AlertTextBox = AlertTextBox.show("Custom URL",null);
+//						var hbox:HBox = new HBox();
+//						var label:Label = new Label();
+//						var detailsButton:Button = new Button();
+//
+//						detailsButton.toggle = true;
+//						detailsButton.label = "Show Details";
+//						detailsButton.toolTip = "Click to display the URL used for this service"
+//						urlAlert.alertVBox.removeChild(urlAlert.textBox);
+//						detailsButton.addEventListener(MouseEvent.CLICK, function (e:MouseEvent):void {
+//							if(detailsButton.selected)
+//								urlAlert.alertVBox.addChildAt(urlAlert.textBox,2);
+//							else
+//								urlAlert.alertVBox.removeChild(urlAlert.textBox);
+//						});
+//
+//						hbox.toolTip = "Please select a service from the dropdown menu";
+//						urlAlert.textBox.toolTip = "This is the URL used to search for the record";
+//						label.text = "Select a service: ";
+//
+//						hbox.addChild(label); hbox.addChild(combobox); hbox.addChild(detailsButton);
+//						urlAlert.alertVBox.addChildAt(hbox,0 );
+//						urlAlert.alertVBox.addChildAt(new Spacer(),0);
+//
+//						try { // don't throw error if string is empty
+//							// replace any combinations of linefeeds and newlines with one newline character for consistency
+//							Weave.properties.searchServiceURLs.value = Weave.properties.searchServiceURLs.value.replace(/[\r\n]+/g,"\n");
+//							fillCBoxDataProvider(combobox);
+//							urlAlert.textInput = combobox.selectedItem.url;
+//						} catch (e:Error) {}
+//						combobox.addEventListener(ListEvent.CHANGE, function(e:ListEvent):void{
+//							urlAlert.textInput = combobox.selectedItem.url;
+//						});
+//						urlAlert.addEventListener(AlertTextBoxEvent.BUTTON_CLICKED, function (e:AlertTextBoxEvent):void {
+//							if( !e.confirm ) return ;
+//							//append queried record's name to the end of the url
+//							navigateToURL(new URLRequest(urlAlert.textInput + query), "_blank");
+//						});
+//					}
+//				}
+//			}
 		}

 		private static function fillCBoxDataProvider(cbox:ComboBox):void


AltAudioFragmentLoader.as: monitor audio level playlist only after seek command has been initiated

--- src/org/mangui/hls/loader/AltAudioFragmentLoader.as
+++ src/org/mangui/hls/loader/AltAudioFragmentLoader.as
@@ -80,7 +80,6 @@
             _streamBuffer = streamBuffer;
             _timer = new Timer(100, 0);
             _timer.addEventListener(TimerEvent.TIMER, _checkLoading);
-            _hls.addEventListener(HLSEvent.AUDIO_LEVEL_LOADED, _audioLevelLoadedHandler);
             _loading_state = LOADING_IDLE;
             _keymap = new Object();
         };
@@ -88,7 +87,6 @@
         public function dispose() : void {
             stop();
             _loading_state = LOADING_IDLE;
-            _hls.removeEventListener(HLSEvent.AUDIO_LEVEL_LOADED, _audioLevelLoadedHandler);
             _keymap = new Object();
         }

@@ -182,6 +180,7 @@
             _frag_previous = null;
             _level = _hls.audioTracks[_hls.audioTrack].level;
             _loading_state = LOADING_IDLE;
+            _hls.addEventListener(HLSEvent.AUDIO_LEVEL_LOADED, _audioLevelLoadedHandler);
             _timer.start();
         }

@@ -430,6 +429,7 @@
         /** stop loading fragment **/
         public function stop() : void {
             _stop_load();
+            _hls.removeEventListener(HLSEvent.AUDIO_LEVEL_LOADED, _audioLevelLoadedHandler);
             _timer.stop();
             _loading_state = LOADING_IDLE;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 9716
Author:   aharui@adobe.com
Date:     2009-08-27T21:21:41.305389Z

Log Message:
-----------
PARB changes for ViewStack.  No more anticpated changes to these APIs.

QE Notes: APIs are hopefully final
Doc Notes: APIs are hopefully final
Bugs: None
Reviewer: Ryan
API Change: Yes
Is noteworthy for integration: No
tests: checkintests mustella/containers/ViewStack

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as" copyfrom-rev="9577" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISelectableList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/TabNavigatorTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as" copyfrom-rev="9577" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>

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

--- frameworks/projects/framework/src/mx/core/ISelectableList.as
+++ frameworks/projects/framework/src/mx/core/ISelectableList.as
@@ -15,24 +15,19 @@

 /**
  *  Dispatched when the selectedIndex property changes.
- *  This may be dispatched as well as a CHANGE event, but
- *  INavigatable listeners need to be sure that a CHANGE
- *  event really does mean that selectedIndex changed
- *  and not that some other key property of the INavigatable
- *  changed.
  *
- *  @eventType mx.events.FlexEvent.NAVIGATION_CHANGE
+ *  @eventType mx.events.IndexChangedEvent.CHANGE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Event(name="navigationChange")]
+[Event(name="change")]

 /**
- *  INavigatable is an interface that indicates that the
- *  implementor is a Navigator and supports a selectedIndex
+ *  ISelectableList is an interface that indicates that the
+ *  implementor is a IList that supports a selectedIndex
  *  property that should be mirrored by a listening object
  *  like a ButtonBar
  *
@@ -41,11 +36,11 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public interface INavigatable extends IList
+public interface ISelectableList extends IList
 {
     /**
-     *  The selectedIndex property that selects which
-     *  child the Navigator is viewing.
+     *  The selectedIndex property that indicates the
+     *  index of a selected IList item.
      */
 	function set selectedIndex(value:int):void;
 	function get selectedIndex():int;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4492
Author:   gosmith@adobe.com
Date:     2009-01-12T22:47:10.154251Z

Log Message:
-----------
Simplified how an accessibility class gets hooked into its corresponding component class.

We now do the hooking in the static method enableAccessibility(), which is called by code that is autogenerated by the compiler. Previously this method did nothing and the hooking happened at static initialization time. This allows us to remove the static var accessibilityHooked and the static method hookAccessibility() in each accessibility class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/SliderAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/SliderAccImpl.as
@@ -14,20 +14,18 @@

 import flash.accessibility.Accessibility;
 import flash.events.Event;
+import flash.events.FocusEvent;
+
 import mx.controls.sliderClasses.Slider;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.SliderEvent;
-import flash.events.FocusEvent;

 use namespace mx_internal;

 /**
- *  The SliderAccImpl class is the accessibility class for HSlider and VSlider.
- *
- *  @helpid
- *  @tiptext This is the TabNavigator Accessibility Class.
- *  @review
+ *  SliderAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the Slider class.
  */
 public class SliderAccImpl extends AccImpl
 {
@@ -35,100 +33,86 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class initialization
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Static variable triggering the hookAccessibility() method.
-	 *  This is used for initializing DateChooserAccImpl class to hook its
-	 *  createAccessibilityImplementation() method to DateChooser class
-	 *  before it gets called from UIComponent.
-	 */
-	private static var accessibilityHooked:Boolean = hookAccessibility();
-
-	/**
-	 *  @private
-	 *  Static method for swapping the createAccessibilityImplementation()
-	 *  method of Slider withthe SliderAccImpl class.
-	 */
-	private static function hookAccessibility():Boolean
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_VALUECHANGE:uint = 0x800E;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
+
+	/**
+	 *  @private
+	 */
+	private static const ROLE_SLIDER:uint = 0x33;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Enables accessibility in the Slider class.
+	 *
+	 *
This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of Slider are initialized,
+	 *  their accessibilityImplementation property
+	 *  will be set to an instance of this class.

+	 */
+	public static function enableAccessibility():void
 	{
 		Slider.createAccessibilityImplementation =
 			createAccessibilityImplementation;
-
-		return true;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Default state for all the components.
-	 */
-	private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_VALUECHANGE:uint = 0x800E;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-	/**
-	 *  @private
-	 */
-	private static const ROLE_SLIDER:uint = 0x33;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Method for creating the Accessibility class.
-	 *  This method is called from UIComponent.
-	 *  @review
+	}
+
+	/**
+	 *  @private
+	 *  Creates a Slider's AccessibilityImplementation object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
 	 */
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void
@@ -137,16 +121,6 @@
 			new SliderAccImpl(component);
 	}

-	/**
-	 *  Method call for enabling accessibility for a component.
-	 *  This method is required for the compiler to activate
-	 *  the accessibility classes for a component.
-	 */
-	public static function enableAccessibility():void
-	{
-	}
-
-
 	//--------------------------------------------------------------------------
 	//
 	//  Constructor
@@ -213,7 +187,6 @@
 	 *  @param childID uint
 	 *
 	 *  @return Value String
-	 *  @review
 	 */
 	override public function get_accValue(childID:uint):String
 	{
@@ -243,6 +216,7 @@

 		return childIDs;
 	}
+
 	/**
 	 *  @private
 	 *  method for returning the name of the slider
@@ -251,7 +225,6 @@
 	 *  @param childID uint
 	 *
 	 *  @return Name String
-	 *  @review
 	 */
 	override protected function getName(childID:uint):String
 	{
@@ -308,8 +281,6 @@
 		return accState;
 	}

-
-
 	//--------------------------------------------------------------------------
 	//
 	//  Overridden event handlers: AccImpl


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/components/ResizeMode.as
+++ frameworks/projects/spark/src/spark/components/ResizeMode.as
@@ -22,6 +22,11 @@
  *
  *
Alternative option for the component is to change its scale, in which case
  *  the children don't need to change at all. This is supported by Group.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public final class ResizeMode
 {
@@ -30,6 +35,11 @@
      *
      *
The component always sizes itself, and then lays out
      *  its children at the actual size specified by the layout or the user.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public static const NORMAL:String = "normal";

@@ -40,6 +50,11 @@
      *
The component always sizes itself, and then lays out
      *  Its children at its measured size.
      *  The scale is adjusted to match the specified size by the layout or the user.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public static const SCALE:String = "scale";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11092
Author:   gruehle@adobe.com
Date:     2009-10-22T22:40:32.867834Z

Log Message:
-----------
Styling bug fixes:
- Halo Panel cornerRadius is for theme="halo, spark"
- Add support for borderAlpha and borderVisible to DateChooser.
- Halo NumericStepper proxies the borderVisible style down to the text input.
- Spark Spinner: add metadata for cornerRadius
- Spark FocusSkin: add null check
- SpinnerSkin/NumericStepperSkin: push cornerRadius down to increment/decrement buttons
- PanelBorderSkin: round corners of control bar

QE notes: None
Doc notes: None
Bugs: SDK-23537, SDK-23447, SDK-23350, SDK-23370, SDK-23271, SDK-23343, SDK-23341
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerSkin.mxml</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/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridHeaderBackgroundSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/NumericStepperSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -110,7 +110,8 @@
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);

-        blendMode = target.getStyle("focusBlendMode");
+        if (target)
+            blendMode = target.getStyle("focusBlendMode");
     }

     /**


Added AdVideoStart to list of VPAID events which have listeners

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -189,7 +189,8 @@
 			VPAIDEvent.AdImpression, VPAIDEvent.AdLinearChange, VPAIDEvent.AdLog, VPAIDEvent.AdPaused, VPAIDEvent.AdPlaying,
 			VPAIDEvent.AdStarted,VPAIDEvent.AdStopped, VPAIDEvent.AdUserAcceptInvitation,  VPAIDEvent.AdUserClose, VPAIDEvent.AdUserMinimize, VPAIDEvent.AdVideoComplete,
 			VPAIDEvent.AdVideoFirstQuartile, VPAIDEvent.AdVideoMidpoint, VPAIDEvent.AdVideoThirdQuartile, VPAIDEvent.AdVolumeChange, VPAIDEvent.AdSkipped,
-			VPAIDEvent.AdSkippableStateChange, VPAIDEvent.AdSizeChange, VPAIDEvent.AdDurationChange, VPAIDEvent.AdInteraction]);
+			VPAIDEvent.AdSkippableStateChange, VPAIDEvent.AdSizeChange, VPAIDEvent.AdDurationChange,
+			VPAIDEvent.AdInteraction, VPAIDEvent.AdVideoStart]);

 		/**
 		 * A vector of all OVV events


Get board and button entities in script.


fixed bug in backwards compatibility code

Change-Id: I44c97389e0abfc0867adf16527b0a8952863c22d

--- WeaveData/src/weave/data/DataSources/WeaveDataSource.as
+++ WeaveData/src/weave/data/DataSources/WeaveDataSource.as
@@ -207,9 +207,9 @@
 		{
 			url.delayCallbacks();

-			var deprecatedBaseURL:String = '/OpenIndicatorsDataService';
-			if (!url.value || url.value == deprecatedBaseURL || url.value == deprecatedBaseURL + DEFAULT_SERVLET_NAME)
-				url.value = WeaveDataServlet.DEFAULT_URL;
+			for each (var deprecatedBaseURL:String in ['/OpenIndicatorsDataServices', '/OpenIndicatorsDataService'])
+				if (!url.value || url.value == deprecatedBaseURL || url.value == deprecatedBaseURL + DEFAULT_SERVLET_NAME)
+					url.value = WeaveDataServlet.DEFAULT_URL;

 			// backwards compatibility -- if url ends in default base url, append default servlet name
 			if (url.value.split('/').pop() == DEFAULT_BASE_URL.split('/').pop())


Compartments are written with respective margins in the SBGNViz.as now when save is performed.

--- src/org/cytoscapeweb/model/converters/SBGNMLConverter.as
+++ src/org/cytoscapeweb/model/converters/SBGNMLConverter.as
@@ -143,6 +143,7 @@
 		protected function writeGlyph(glyph:XML, cns:CompoundNodeSprite): XML
 		{
 			var tempXML:XML = glyphToXML[cns.data.id];
+			var compartmentPaddingHalf = 2;

 			if (tempXML != null)
 			{
@@ -151,10 +152,20 @@
 				{
 					var glyphBbox:Rectangle = cns.data.glyph_bbox;

-					bbox.@["x"] = cns.x - cns.bounds.width/2;
-					bbox.@["y"] = cns.y - cns.bounds.height/2;
-					bbox.@["w"] = cns.bounds.width;
-					bbox.@["h"] = cns.bounds.height;
+					if(cns.data.glyph_class == "complex" || cns.data.glyph_class == "compartment"  )
+					{
+						bbox.@["x"] = cns.x - cns.bounds.width/2 - compartmentPaddingHalf;
+						bbox.@["y"] = cns.y - cns.bounds.height/2 - compartmentPaddingHalf;
+						bbox.@["w"] = cns.bounds.width + 2*compartmentPaddingHalf;
+						bbox.@["h"] = cns.bounds.height+ 2*compartmentPaddingHalf;
+					}
+					else
+					{
+						bbox.@["x"] = cns.x - cns.bounds.width/2;
+						bbox.@["y"] = cns.y - cns.bounds.height/2;
+						bbox.@["w"] = cns.bounds.width;
+						bbox.@["h"] = cns.bounds.height;
+					}
 				}

 				glyph = tempXML.copy();


Transferred from the Adobe Open Source Subversion Repository

Revision: 20736
Author:   smgilson@adobe.com
Date:     2011-03-09T21:18:00.204102Z

Log Message:
-----------
Merge 20719 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EdgeMetrics.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextFieldInterface.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DPIClassification.as</path>

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

--- frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as
+++ frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as
@@ -831,6 +831,7 @@
     }

     /**
+     *  @private
      *  Handles a doubleClick event in a platform-appropriate manner.
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 19851
Author:   mcho@adobe.com
Date:     2011-01-20T23:07:11.305461Z

Log Message:
-----------
More precise text alignment for mobile components

QE notes: Components with tend to be narrower and shorter for the View Menu.  Must update baselines that use x, y, width, height.
Doc notes: None
Bugs:
Reviewer: Ryan, Jason Szeto, Jason SJ, Glenn
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorButtonBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
@@ -171,6 +171,7 @@
             textDisplay.multiline = true;
             textDisplay.editable = true;
             textDisplay.wordWrap = true;
+			textDisplay.useTightTextBounds = false;

             // on iOS, resize the TextField and let the native control handle scrolling
             _isIOS = (Capabilities.version.indexOf("IOS") == 0);


Transferred from the Adobe Open Source Subversion Repository

Revision: 21294
Author:   jszeto@adobe.com
Date:     2011-05-25T23:07:15.867772Z

Log Message:
-----------
TextArea scrolling sync and SoftKeyboard iOS bug fixes

SDK-30476 - Going home after opening the soft keyboard doesn't restore the application to full size

Listen for the application DEACTIVATE event and close the softKeyboard if it is open

SDK-30468 - Text scrolls upwards when entering edit mode in a TextArea

With the runtime fix, I need to convert from 0-based to 1-based index for scrollV

SDK-30197 - scroll position incorrect when leaving edit mode

Resize the TextArea before cleaning up the scroll positions

QE notes: none
Doc notes: none
Bugs: SDK-30476, SDK-30468, SDK-30197
Reviewer: Tom K
Tests run: checkintests, cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
@@ -395,8 +395,7 @@
                 // TODO Figure out how to get the x offset. Right now is hard coded to 2
                 // At least half the line should be showing before we scroll to that line
                 // This makes the conversion from pixel to line based scrolling a little less jumpy
-                lineIndex = textDisplay.getLineIndexAtPoint(2, vsp + lineHeight / 2);
-
+                lineIndex = textDisplay.getLineIndexAtPoint(2, vsp + lineHeight / 2) + 1;
                 textDisplayGroup.verticalScrollPosition = 0;
                 isTextDisplayTall = false;
                 //trace("TAS.layoutContents shrinkText vsp",vsp,"lineIndex",lineIndex);
@@ -465,12 +464,15 @@
         if (_isIOS)
         {
             if (shrinkTextDisplay)
+            {
+                scroller.validateNow();
                 textDisplay.scrollV = lineIndex;
-            else if (growTextDisplay)
+            }
+            else if (growTextDisplay)
+            {
+                scroller.validateNow();
                 textDisplayGroup.verticalScrollPosition = charBounds.y;
-
-            if (shrinkTextDisplay || growTextDisplay)
-                scroller.validateNow();
+            }

             shrinkTextDisplay = false;
             growTextDisplay = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3563
Author:   jimurphy@adobe.com
Date:     2008-10-10T13:41:29.904903Z

Log Message:
-----------
Merged 3.0.x revisions 3421,3427,3442,3455,3457,3474,3477,3493,3500,3503,3513,3520,3531,3544 -> trunk
Integrate:
player 10.0.r12.036
lcds: 4.0.0.3542
coretech: 1.360354

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DLocation.java</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LoaderUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/rideau.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RSLItem.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/libs/tcal_conversion.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/tcal_edit.swc</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/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc</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/controls/ComboBox.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/libs/tcal_core.swc</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/install_flash_player_10_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/FlashPlayer.exe</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/in/player/10/mac/Flash Player.app.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/afe.jar</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as
@@ -1718,7 +1718,7 @@
                     if (pt.y < yy + rowInfo[i].height)
                     {
                         var xx:Number = 0;
-                        var m:int = listItems[i].length;
+                        var m:int = visibleColumns.length;
                         for (var j:int = 0; j < m; j++)
                         {
                             if (pt.x < xx + visibleColumns[j].width)


Added clarifying comments.

Added clarifying comments.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4389 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/Map.as
+++ src/as/com/threerings/util/Map.as
@@ -34,6 +34,8 @@

     /**
      * Return all the unique keys in this Map, in Array form.
+     * The Array is not a 'view': it can be modified without disturbing
+     * the Map from whence it came.
      */
     function keys () :Array;

@@ -56,6 +58,8 @@

     /**
      * Return all the values in this Map, in Array form.
+     * The Array is not a 'view': it can be modified without disturbing
+     * the Map from whence it came.
      */
     function values () :Array;
 }


DisplayObject names are null by default

DisplayObject names are null by default

--- runtime/src/main/as/flump/display/Layer.as
+++ runtime/src/main/as/flump/display/Layer.as
@@ -33,7 +33,6 @@
         if (!flipbook && lastItem == null) {
             // The layer is empty.
             _currentDisplay = new Sprite();
-            _currentDisplay.name = null;
             _movie.addChild(_currentDisplay);
         } else {
             // Create the display objects for each keyframe.
@@ -51,7 +50,6 @@
                     display = library.createDisplayObject(kf.ref);
                 }
                 _displays[ii] = display;
-                display.name = null;
                 display.visible = false;
                 _movie.addChild(display);
             }
@@ -59,7 +57,6 @@
             _currentDisplay.visible = true;

             _frameOvershootDisplay = new Sprite();
-            _frameOvershootDisplay.name = null;
             _frameOvershootDisplay.visible = false;
             _movie.addChild(_frameOvershootDisplay);
         }


Safeguard XObjDefaultFactory id setting

Safeguard XObjDefaultFactory id setting

--- as3/xobjas3/src/com/rpath/xobj/XObjDefaultFactory.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjDefaultFactory.as
@@ -31,7 +31,7 @@
         var result:Object;

         result = new type();
-        if (id && result.hasOwnProperty("id"))
+        if (id && ("id" in result))
         {
             result.id = id;
             idMap[id] = result;
@@ -51,7 +51,8 @@
     {
         if (item)
         {
-            item.id = id;
+            if ("id" in item)
+                item.id = id;
             idMap[id] = item;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20267
Author:   smgilson@adobe.com
Date:     2011-02-10T16:21:16.560038Z

Log Message:
-----------
Add note to Application splashscreen properties about using the mobile swc.

Remove @playerversion Flash tags from Mobile content since it is AIR only

QE notes:
Doc notes:
Bugs:
Reviewer:
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/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/BusyIndicator.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/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.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@1264643 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as
+++ frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as
@@ -20,7 +20,6 @@
  *  @see spark.components.View#destructionPolicy
  *
  *  @langversion 3.0
- *  @playerversion Flash 10
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
@@ -33,22 +32,20 @@
     //--------------------------------------------------------------------------

     /**
-     *  The lifespan of the container's children will automatically
-     *  be managed by the container based on the container's own
+     *  The lifespan of the container's children is automatically
+     *  managed by the container based on the container's own
      *  heuristic.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public static const AUTO:String = "auto";

     /**
-     *  The container will never destroy its children.
+     *  The container never destroys its children.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -55,6 +55,11 @@
  *  The minimum measured size is calculated the same way as the measured size but
  *  it's guaranteed to encompass enough rows/columns along the minor axis to fit
  *  all elements.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class TileLayout extends LayoutBase
 {
@@ -68,6 +73,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function TileLayout():void
     {
@@ -96,6 +106,11 @@
      *  @see #verticalGap
      *  @see #justifyColumns
      *  @default 6
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get horizontalGap():Number
     {
@@ -131,6 +146,11 @@
      *  @see #horizontalGap
      *  @see #justifyRows
      *  @default 6
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get verticalGap():Number
     {
@@ -174,6 +194,11 @@
      *  @see #rowCount
      *  @see #justifyColumns
      *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get columnCount():int
     {
@@ -223,6 +248,11 @@
      *  @see #columnCount
      *  @see #justifyRows
      *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get rowCount():int
     {
@@ -269,6 +299,11 @@
      *  @see #rowHeight
      *  @see #justifyColumns
      *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get columnWidth():Number
     {
@@ -313,6 +348,11 @@
      *  @see #columnWidth
      *  @see #justifyRows
      *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get rowHeight():Number
     {
@@ -353,6 +393,11 @@
      *  element will be set to the columnWidth
.
      *
      *  @default HorizontalAlign.JUSTIFY
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get elementHorizontalAlign():String
     {
@@ -392,6 +437,11 @@
      *  element will be set to rowHeight
.
      *
      *  @default VerticalAlign.JUSTIFY
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get elementVerticalAlign():String
     {
@@ -444,6 +494,11 @@
      *  @see #columnWidth
      *  @see #justifyRows
      *  @default "none"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get justifyColumns():String
     {
@@ -496,6 +551,11 @@
      *  @see #rowHeight
      *  @see #justifyColumns
      *  @default "none"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get justifyRows():String
     {
@@ -530,6 +590,11 @@
      *  Supported values are "rows", "columns".
      *
      *  @default "rows"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get orientation():String
     {
@@ -582,6 +647,11 @@
      *  Dispatches events if Actual values have changed since the last call.
      *  Checks columnWidth, rowHeight, columnCount, rowCount, horizontalGap, verticalGap.
      *  This method is called from within updateDisplayList()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     protected function dispatchEventsForActualValueChanges():void
     {
@@ -617,6 +687,11 @@
      *  and during updateDisplayList() is the unscaledWidth.
      *  @param height - the height during measure() is the layout target explicitHeight or NaN
      *  and during updateDisplayList() is the unscaledHeight.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     protected function updateActualValues(width:Number, height:Number):void
     {
@@ -902,6 +977,11 @@
      *  @param cellY - the y coordinate of the cell.
      *  @param cellWidth - the width of the cell.
      *  @param cellHeight - the height of the cell.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     protected function sizeAndPositionElement(element:ILayoutElement,
                                               cellX:int,


Transferred from the Adobe Open Source Subversion Repository

Revision: 10330
Author:   egeorgie@adobe.com
Date:     2009-09-16T22:54:24.958914Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-22690 Hide the layout property on Graphic.

QE notes: None
Doc notes: None
Bugs: SDK-22690
Reviewer: Deepa
Tests run: mustella tests/spark/primitives/*
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as

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

--- frameworks/projects/spark/src/spark/primitives/Graphic.as
+++ frameworks/projects/spark/src/spark/primitives/Graphic.as
@@ -13,8 +13,11 @@
 {

 import mx.events.PropertyChangeEvent;
+
 import spark.components.Group;
 import spark.components.ResizeMode;
+import spark.layouts.BasicLayout;
+import spark.layouts.supportClasses.LayoutBase;

 //--------------------------------------
 //  Events
@@ -110,7 +113,8 @@
     public function Graphic()
     {
         super();
-
+        super.layout = new BasicLayout();
+
 		// The default resize mode for a Graphic is scale
 		resizeMode = ResizeMode.SCALE;
     }
@@ -141,6 +145,7 @@
     //----------------------------------
     //  viewHeight
     //----------------------------------
+
     private var _viewHeight:Number;

     /**
@@ -178,6 +183,7 @@
     //----------------------------------
     //  viewWidth
     //----------------------------------
+
     private var _viewWidth:Number;

     /**
@@ -213,6 +219,18 @@

     }

+    //----------------------------------
+    //  layout
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set layout(value:LayoutBase):void
+    {
+        throw(new Error(resourceManager.getString("components", "layoutReadOnly")));
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods


tests

tests

--- testSrc/TestStream.as
+++ testSrc/TestStream.as
@@ -38,7 +38,6 @@
             Log.addTarget(new TraceTarget());
         }

-
         [Test]
         public function testContains():void
         {
@@ -290,7 +289,7 @@
         [Test]
         public function testSkip():void
         {
-            var s:* = $(1, 2);
+            var s:Stream = $(1, 2);
             assertEquals(s.skip(1).first, 2);
             assertEquals(s.skip(1).length, 1);
         }
@@ -298,7 +297,7 @@
         [Test]
         public function testTake():void
         {
-            var s:* = $(1, 2);
+            var s:Stream = $(1, 2);

             assertEquals(s.take(1, 1).first, 2);
             assertEquals(s.take(1, 1).length, 1);
@@ -310,7 +309,28 @@
         [Test]
         public function testLastFirst():void
         {
-            var s:Stream = $(0, 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19);
+            var s:Stream = $();
+
+            s.first = 0;
+            s.second = 1;
+            s.third = 2;
+            s.fourth = 3;
+            s.fifth = 4;
+            s.sixth = 5;
+            s.seventh = 6;
+            s.eighth = 7;
+            s.ninth = 8;
+            s.tenth = 9;
+            s.eleventh = 10;
+            s.twelfth = 11;
+            s.thirteenth = 12;
+            s.fourteenth = 13;
+            s.fifteenth = 14;
+            s.sixteenth = 15;
+            s.seventeenth = 16;
+            s.eighteenth = 17;
+            s.nineteenth = 18;
+            s.twentieth = 19;

             assertEquals(s.first, 0);
             assertEquals(s.second, 1);


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

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

 import mx.core.mx_internal;


Correcting ASDOC comment from "items" to "itemsByIndex" when referring drag n drop for list items.

--- frameworks/projects/framework/src/mx/core/DragSource.as
+++ frameworks/projects/framework/src/mx/core/DragSource.as
@@ -183,7 +183,7 @@
 	 *  for the format parameter. If the control that initiated the
 	 *  drag operation is a Tree, then the format is "treeItems" and the items
 	 *  implement the ITreeDataProvider interface. For all other List-based
-	 *  controls that have built-in drag and drop support, the format is "items" and the items
+	 *  controls that have built-in drag and drop support, the format is "itemsByIndex" and the items
 	 *  implement the IDataProvider interface.

 	 *
 	 *  @return An Object


Transferred from the Adobe Open Source Subversion Repository

Revision: 4380
Author:   rfrishbe@adobe.com
Date:     2008-12-23T10:00:21.848800Z

Log Message:
-----------
Mostly rename changes in Group and FxContainer.

1.  GraphicElement.elementHost:GroupBase -> GraphicElement.parent:DisplayObjectContainer (parent already exists in the current code-base...I’m just removing elementHost now)

2.  Group content APIs now use “element” instead of “item.”  The new methods were added a while ago, but the old ones co-existed.  These particular changes remove the old methods and strongly type the new ones to deal with IVisualElements rather than Objects.  Here are the overall changes:

numItems:int -> numElements:int
getItemAt(int):Object -> getElementAt(int):IVisualElement
addItem(Object):Object -> addElement(IVisualElement):IVisualElement
addItemAt(Object, int):Object -> addElementAt(IVisualElement, int):IVisualElement
removeItem(Object):Object -> removeElement(IVisualElement):IVisualElement
removeItemAt(int):Object -> removeElementAt(int):IVisualElement
getItemIndex(Object):int -> getElementIndex(IVisualElement):int
setItemIndex(Object, int):void -> setElementIndex(IVisualElement, int):void
swapItems(Object, Object):void -> swapElements(IVisualElement, IVisualElement):void
swapItemsAt(int, int):void -> swapElementsAt(int, int):void

3.  Group and FxContainer's mxmlContent property is now strongly typed as an Array of IVisualElements instead of an Object

4.  Removing ITransformable...there's no need for it.

5.  Had to update Mustella for these changes (the Perforce changes are checked in, and here's the mustella.swc change for checkintests)

QE Notes: Joan and Steve worked with me on changing all the SDK QA tests.
Doc Notes: None
Bugs: SDK-18063
Reviewer: Jason
tests: checkintests, Mustella FxContainer, Group, and DataGroup (Joan ran all tests on an earlier version of these changes, so hopefully nothing broke in the meantime).  Some of the Group/DataGroup ones were failing for me, but I'm pretty sure they're all excluded (tests don't seem to exclude for me when I VPN in...)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.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/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/ITransformable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</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/wireframe/src/wireframe/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -14,13 +14,12 @@
 import flash.display.DisplayObject;

 import mx.collections.IList;
-import mx.components.FxContainer;
-import mx.components.Group;
 import mx.core.ContainerCreationPolicy;
 import mx.core.IChildList;
 import mx.core.IDeferredInstance;
+import mx.core.IVisualElement;
+import mx.core.IVisualElementContainer;
 import mx.core.UIComponent;
-import mx.core.IVisualElementContainer;

 [DefaultProperty("itemsFactory")]

@@ -462,7 +461,7 @@
         try
         {
             if (propertyName == null && (dest is IVisualElementContainer))
-                return IVisualElementContainer(dest).getElementIndex(object);
+                return IVisualElementContainer(dest).getElementIndex(object as IVisualElement);

             if (propertyName == null && dest is IChildList)
                 return IChildList(dest).getChildIndex(DisplayObject(object));


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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLPortType.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLPortType.as
@@ -0,0 +1,73 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc.wsdl
+{
+
+[ExcludeClass]
+
+/**
+ * A portType lists a set of named operations and defines abstract interface or
+ * "messages" used to interoperate with each operation.
+ *
+ * @private
+ */
+public class WSDLPortType
+{
+    public function WSDLPortType(name:String)
+    {
+        super();
+        _name = name;
+        _operations = {};
+    }
+
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * The unique name for this portType.
+     */
+    public function get name():String
+    {
+        return _name;
+    }
+
+    public function operations():Object
+    {
+        return _operations;
+    }
+
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    public function addOperation(operation:WSDLOperation):void
+    {
+        _operations[operation.name] = operation;
+    }
+
+    public function getOperation(name:String):WSDLOperation
+    {
+        return _operations[name];
+    }
+
+    private var _name:String;
+    private var _operations:Object;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19099
Author:   cframpto@adobe.com
Date:     2010-12-07T17:59:07.657295Z

Log Message:
-----------
Label - SDK-27952
If there is no text, don't report that it has been truncated, for example if the padding doesn't fit.  Truncated text becomes the toolTip which obscures the actual toolTip.

SkinnableComponent - SDK-28525
add metadata to enabled to workaround outstanding compiler issue

CheckBox, RadioButton - SDK-28651
exclude textAlign style since it has no effect

QE notes:
Doc notes:
Bugs: SDK-27952, SDK-28525, SDK-28651
Reviewer: Darrell
Tests run: cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -477,12 +477,15 @@
         var allLinesComposed:Boolean = createTextLines(elementFormat);

         // Need truncation if all the following are true
+        // - there is text (even if there is no text there is may be padding
+        //       which may not fit and the text would be reported as truncated)
         // - truncation options exist (0=no trunc, -1=fill up bounds then trunc,
         //      n=n lines then trunc)
         // - compose width is specified
         // - content doesn't fit
         var lb:String = getStyle("lineBreak");
-        if (maxDisplayedLines &&
+        if (text != null && text.length > 0 &&
+            maxDisplayedLines &&
             !doesComposedTextFit(height, width, allLinesComposed, maxDisplayedLines, lb))
         {
             truncateText(width, height, lb);


Transferred from the Adobe Open Source Subversion Repository

Revision: 7434
Author:   cframpto@adobe.com
Date:     2009-05-29T18:22:17.242978Z

Log Message:
-----------
Remove over-optimization that doesn't work if bounds.x != 0.

QA Notes:
Doc Notes:
Bugs: SDK-21470
Reviewers: Gordon

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -348,16 +348,7 @@

         // Done with the lines now.
         releaseLinesFromTextBlock();
-
-        // If toFit and explicit width, adjust the bounds to match.
-        // This will save a recompose and/or clip in updateDisplayList()
-        // if  bounds width matches the unscaled width.
-        if (getStyle("lineBreak") == "toFit" &&
-            !isNaN(width) && bounds.width < width)
-        {
-            bounds.width = width;
-        }
-
+
         // Add the new text lines to the container.
         addTextLines(DisplayObjectContainer(drawnDisplayObject));


Transferred from the Adobe Open Source Subversion Repository

Revision: 7529
Author:   hmuller@adobe.com
Date:     2009-06-03T18:54:54.953122Z

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

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/development/eclipse/flex/flex4/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -542,6 +542,21 @@
     private function setKerning(elementFormat:ElementFormat):void
     {
         var kerning:Object = getStyle("kerning");
+        switch(kerning)
+        {
+            case true:
+                elementFormat.kerning = Kerning.ON;
+                break;
+            case false:
+                elementFormat.kerning = Kerning.OFF
+                break;
+        }
+    }
+
+    /*
+    private function setKerning(elementFormat:ElementFormat):void
+    {
+        var kerning:Object = getStyle("kerning");

         if (kerning === true)
             kerning = Kerning.ON;
@@ -552,6 +567,7 @@
         if (s != null)
            elementFormat.kerning = s;
     }
+    */

     /**
      *  @private


remove excess imports

remove excess imports

--- src/com/merlinds/miracle_tool/controllers/converters/AnimationConverterCommand.as
+++ src/com/merlinds/miracle_tool/controllers/converters/AnimationConverterCommand.as
@@ -15,8 +15,6 @@
 	import com.merlinds.miracle_tool.models.vo.TimelineVO;
 	import com.merlinds.miracle_tool.services.ActionService;
 	import com.merlinds.miracle_tool.utils.XMLConverters;
-
-	import flash.debugger.enterDebugger;

 	import flash.geom.Matrix;
 	import flash.geom.Point;


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

--- frameworks/projects/framework/src/mx/effects/effectClasses/ActionEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/ActionEffectInstance.as
@@ -0,0 +1,118 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects.effectClasses
+{
+
+import mx.core.mx_internal;
+import mx.effects.EffectInstance;
+
+/**
+ *  The ActionEffectInstance class is the superclass for all
+ *  action effect instance classes.
+ */
+ public class ActionEffectInstance extends EffectInstance
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target The Object to animate with this effect.
+	 */
+	public function ActionEffectInstance(target:Object)
+	{
+		super(target);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Indicates whether the effect has been played (true),
+	 *  or not (false).
+	 *
+	 *
The play() method sets this property to
+	 *  true after the effect plays;
+	 *  you do not set it directly.

+	 */
+	protected var playedAction:Boolean = false;
+
+	/**
+	 *  @private
+	 */
+	private var _startValue:*;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Subclasses implement this method to save the starting state
+	 *  before the effect plays.
+	 */
+	protected function saveStartValue():*
+	{
+	}
+
+	/**
+	 *  Used internally to retrieve the values saved by
+	 *  the saveStartValue() method.
+	 */
+	protected function getStartValue():*
+	{
+		return _startValue;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function play():void
+	{
+		super.play();
+
+		// Don't save the value if we are playing in reverse.
+		if (!mx_internal::playReversed)
+			_startValue = saveStartValue();
+
+		playedAction = true;
+	}
+
+	/**
+	 *  @private
+	 */
+    override public function end():void
+    {
+    	if (!playedAction)
+    		play();
+
+    	super.end();
+    }
+}
+
+}


Разширение возможностей FilePath

Разширение возможностей FilePath

--- src/main/org/shypl/common/util/FilePath.as
+++ src/main/org/shypl/common/util/FilePath.as
@@ -1,17 +1,24 @@
 package org.shypl.common.util {
 	import org.shypl.common.lang.IllegalStateException;

-	import spark.primitives.Path;
-
 	public class FilePath {
-		public static function factory(path:String):FilePath {
-			return new FilePath(FilePathUtils.splitToParts(path));
+		public static function factory(path:String, base:String = null):FilePath {
+			return new FilePath(FilePathUtils.splitToParts(path), base);
 		}

 		private var _parts:Vector.<String>;

-		public function FilePath(parts:Vector.<String> = null) {
-			_parts = parts == null ? new Vector.<String>(0, true) : parts;
+		public function FilePath(parts:Vector.<String> = null, base:String = null) {
+			_parts = parts == null ? new Vector.<String>(0) : parts.concat();
+			if (base !== null) {
+				if (StringUtils.endsWith(base, FilePathUtils.UNIX_SEPARATOR)) {
+					base = StringUtils.trimRight(base, FilePathUtils.UNIX_SEPARATOR);
+				}
+				else if (StringUtils.endsWith(base, FilePathUtils.WINDOWS_SEPARATOR)) {
+					base = StringUtils.trimRight(base, FilePathUtils.WINDOWS_SEPARATOR);
+				}
+				_parts.unshift(base);
+			}
 		}

 		public function get length():int {
@@ -20,7 +27,7 @@

 		public function get parent():FilePath {
 			checkEmpty();
-			return createPath(_parts.slice(0, -2));
+			return createPath(_parts.slice(0, -1));
 		}

 		public function get fileName():String {


Edit values of test objects.

Edit values of test objects.

--- dolly-framework/src/test/actionscript/dolly/CloningOfCompositeCloneableClassTest.as
+++ dolly-framework/src/test/actionscript/dolly/CloningOfCompositeCloneableClassTest.as
@@ -1,6 +1,9 @@
 package dolly {
 import dolly.core.dolly_internal;
 import dolly.data.CompositeCloneableClass;
+
+import mx.collections.ArrayCollection;
+import mx.collections.ArrayList;

 import org.as3commons.reflect.Field;
 import org.as3commons.reflect.Type;
@@ -24,6 +27,9 @@
 	[Before]
 	public function before():void {
 		compositeCloneableClass = new CompositeCloneableClass();
+		compositeCloneableClass.array = [1, 2, 3, 4, 5];
+		compositeCloneableClass.arrayList = new ArrayList([1, 2, 3, 4, 5]);
+		compositeCloneableClass.arrayCollection = new ArrayCollection([1, 2, 3, 4, 5]);

 		compositeCloneableClassType = Type.forInstance(compositeCloneableClass);
 	}
@@ -50,7 +56,7 @@
 		assertThat(clone.array, compositeCloneableClass.array);
 		assertFalse(clone.array == compositeCloneableClass.array);
 		assertThat(clone.array, everyItem(isA(Number)));
-		assertThat(clone.array, array(equalTo(0), equalTo(1), equalTo(2), equalTo(3), equalTo(4)));
+		assertThat(clone.array, array(equalTo(1), equalTo(2), equalTo(3), equalTo(4), equalTo(5)));
 	}
 }
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17734
Author:   hmuller@adobe.com
Date:     2010-09-16T16:59:27.262520Z

Log Message:
-----------
Added support for explicitWidth,Height to DefaultGridItemRenderer and UITextFieldGridItemRenderer.

Although UITextField and UIFTETextField both sport explicitWidth,Height properties (but not a common class or interface that defines them) they don't automatically set these properties when you set their width,height and they reset width,height when you call setActualSize().     Since GridLayout only uses setlLayoutBounds() to resize a renderer, I set a flag there so that the concomitant calls to 'set width,height' don't also set explicitWidth,Height.

Removed the renderer constructor code that initialized the renderers actual width to 4096.   We're already dealing with that in createTypicalItemRenderer(), so the constructor code isn't needed.

QE notes: Mustella test case DataGrid_Properties_IR_WidthAll100Height needs to be updated
Doc notes:
Bugs:
Reviewer: Carol, Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.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/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
+++ frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
@@ -1,3 +1,20 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/*
+
+The implementations of DefaultGridItemRenderer (nee UIFTETExtFieldGridItemRenderer) and UITextFieldGridItemRenderer
+are identical, save the superclass and constructor names.  This file contains the bulk of the code.
+
+*/
     import flash.display.DisplayObject;
     import flash.events.Event;
     import flash.geom.Matrix;
@@ -26,9 +43,9 @@

     import spark.components.IGridItemRenderer;
     import spark.components.supportClasses.GridColumn;
-
+
     use namespace mx_internal;
-
+
     /**
      *  @private
      *  Distance by which this textfield is inset from the edges of the cell.
@@ -54,6 +71,15 @@
      *  when its text property is set.
      */
     private var enableValidateNow:Boolean = true;
+
+
+    /**
+     *  @private
+     *  Used to prevent changes to width,height caused by calling setLayoutBoundsSize()
+     *  from updating explicitWidth,Height.
+     */
+    private var inSetLayoutBoundsSize:Boolean = false;
+

     //--------------------------------------------------------------------------
     //
@@ -395,10 +421,9 @@
     /**
      *  @private
      *  The renderer's measuredWidth,Height are just padded versions of the labelDisplay's
-     *  textWidth,Height properties.   The code below is based on the UITextField
-     *  meausuredWidth,Height get methods, although we do not call validateNow() here (as
-     *  they do).
-     *
+     *  textWidth,Height or explicitWidth,Height properties.  This class assumes that its
+     *  size/position will be set by GridLayout with setLayoutBoundsSize,Position() and that its
+     *  preferred size will be queried by GridLayout with getPreferredBoundsWidth,Height().
      */
     private function updatePreferredSize():void
     {
@@ -411,19 +436,31 @@
         text = _label;
         super.validateNow();

-        const widthPadding:int = LEFT_PADDING + RIGHT_PADDING + TEXT_WIDTH_PADDING;
-        const heightPadding:int = TOP_PADDING + BOTTOM_PADDING + TEXT_HEIGHT_PADDING
+        // The LEFT,RIGHT,TOP,BOTTOM padding values added here will be subtracted
+        // by setLayoutBoundsPosition,Size(), they don't exist as far as the text field
+        // superclass is concerned.
+
+        // Both UITextField and UIFTETExtField force explicitWidth to be >= 4,
+        // so we do the same here.
+
+        const paddedTextWidth:Number = isNaN(explicitWidth) ?
+            textWidth + LEFT_PADDING + RIGHT_PADDING + TEXT_WIDTH_PADDING :
+            Math.max(explicitWidth, 4) + LEFT_PADDING + RIGHT_PADDING;
+
+        const paddedTextHeight:Number = isNaN(explicitHeight) ?
+            textHeight + TOP_PADDING + BOTTOM_PADDING + TEXT_HEIGHT_PADDING :
+            explicitHeight + TOP_PADDING + BOTTOM_PADDING;

         if (!stage || embedFonts)
         {
-            preferredWidth = textWidth + widthPadding;
-            preferredHeight = textHeight + heightPadding;
+            preferredWidth = paddedTextWidth;
+            preferredHeight = paddedTextHeight;
         }
         else
         {
             const m:Matrix = transform.concatenatedMatrix;
-            preferredWidth = Math.abs((textWidth * m.a / m.d)) + widthPadding;
-            preferredHeight  = Math.abs((textHeight * m.a / m.d)) + heightPadding;
+            preferredWidth = Math.abs((paddedTextWidth * m.a / m.d));
+            preferredHeight  = Math.abs((paddedTextHeight * m.a / m.d));
         }

         preferredSizeInvalid = false;
@@ -475,10 +512,44 @@

     //--------------------------------------------------------------------------
     //
-    //  IVisualElement Methods
+    //  IVisualElement Properties, Methods
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    //  width
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set width(value:Number):void
+    {
+        super.width = value;
+        if (!inSetLayoutBoundsSize)
+        {
+            explicitWidth = value;
+            preferredSizeInvalid = true;
+        }
+    }
+
+    //----------------------------------
+    //  height
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set height(value:Number):void
+    {
+        super.height = value;
+        if (!inSetLayoutBoundsSize)
+        {
+            explicitHeight = value;
+            preferredSizeInvalid = true;
+        }
+    }
+
     public function get depth():Number
     {
         return 0;
@@ -510,7 +581,6 @@
     {
         return false;
     }
-

     //--------------------------------------------------------------------------
     //
@@ -739,9 +809,14 @@
      */
     public function setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean=true):void
     {
+        inSetLayoutBoundsSize = true;  // UI[FTE]TextField/setActualSize() sets width,height
+
         setActualSize(width - (LEFT_PADDING + RIGHT_PADDING), height - (TOP_PADDING + BOTTOM_PADDING));
         preferredSizeInvalid = true;
-    }
+
+        inSetLayoutBoundsSize = false;
+    }
+

     /**
      *  @private
@@ -825,7 +900,7 @@
     public function invalidateLayoutDirection():void
     {
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  IStyleClient Methods and Properties
@@ -1002,7 +1077,7 @@
     {
         _styleDeclaration = value;
     }
-
+

     //--------------------------------------------------------------------------
     //
@@ -1035,4 +1110,3 @@
         if (pt.x + toolTip.width > screenRight)
             toolTip.move(toolTip.x - (pt.x + toolTip.width - screenRight), toolTip.y);
     }
-


From whiteboard/cframpton/adobe.next.  SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVE events are now attached to the text component that activates the softkeyboard instead of the application.  SDK-29973.

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -1825,6 +1825,10 @@
      */
     private function softKeyboardActivateHandler(event:SoftKeyboardEvent):void
     {
+        // Add a listener for the softKeyboard deactivate event to the event target
+        event.target.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE,
+                                      softKeyboardDeactivateHandler);
+
         if (this === FlexGlobals.topLevelApplication)
         {
             if (softKeyboardTarget && softKeyboardTarget != event.target)