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

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


Add clear() functionality

Add clear() functionality

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@482 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flex/PlayerList.as
+++ src/as/com/threerings/flex/PlayerList.as
@@ -67,6 +67,12 @@
         _players.sort = sort;
     }

+    public function clear () :void
+    {
+        _values = new Dictionary();
+        _players.removeAll();
+    }
+
     /**
      * The PlayerList is meant to include data that is at least as complicated as a Name, so to
      * keep things simple and extendable, we require Comparable.  This allows the issue of passing


Actually, the list creator can assign a style name to the specific instance.  Internally we need
to assign a style name to the List instance.  Also made the default renderer always use a
transparent background.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@486 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flex/PlayerList.as
+++ src/as/com/threerings/flex/PlayerList.as
@@ -43,8 +43,6 @@
      */
     public function PlayerList (labelCreator :NameLabelCreator = null) :void
     {
-        styleName = "playerList";
-
         _labelCreator = labelCreator;
         if (_labelCreator == null) {
             _labelCreator = new DefaultNameLabelCreator();
@@ -60,6 +58,7 @@
         _list.percentHeight = 100;
         _list.itemRenderer = new ClassFactory(getRenderingClass());
         _list.dataProvider = _players;
+        _list.styleName = "playerList";

         addChild(_list);

@@ -187,6 +186,7 @@

         verticalScrollPolicy = ScrollPolicy.OFF;
         horizontalScrollPolicy = ScrollPolicy.OFF;
+        setStyle("backgroundAlpha", 0);
         // the horizontalGap should be 8...
     }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.controls.advancedDataGridClasses
 {


ArrayUtil.sortedInsert

ArrayUtil.sortedInsert

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

--- src/as/com/threerings/util/ArrayUtil.as
+++ src/as/com/threerings/util/ArrayUtil.as
@@ -90,6 +90,41 @@
             }
             arr[jj + 1] = val;
         }
+    }
+
+    /**
+     * Inserts an object into a sorted Array in its correct, sorted location.
+     *
+     * @param comp a function that takes two objects in the array and returns -1 if the first
+     * object should appear before the second in the container, 1 if it should appear after,
+     * and 0 if the order does not matter. If omitted, Comparators.COMPARABLE is used and
+     * the array elements should be Comparable objects.
+     *
+     * @return the index of the inserted item
+     */
+    public static function sortedInsert (arr :Array, val :*, comp :Function = null) :int
+    {
+        if (comp == null) {
+            comp = Comparators.COMPARABLE;
+        }
+
+        var insertedIdx :int = -1;
+        var nn :int = arr.length;
+        for (var ii :int = 0; ii < nn; ii++) {
+            var compVal :* = arr[ii];
+            if (comp(val, compVal) <= 0) {
+                arr.splice(ii, 0, val);
+                insertedIdx = ii;
+                break;
+            }
+        }
+
+        if (insertedIdx < 0) {
+            arr.push(val);
+            insertedIdx = arr.length - 1;
+        }
+
+        return insertedIdx;
     }

     /**


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


modified method "concat" to accept Array of String

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/StringUtil.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/util/StringUtil.as
@@ -68,18 +68,24 @@
 		 * Only not null and not blank values are included in the final string.
 		 *
 		 * @param separator Separator to use in the concat
-		 * @param args Strings to concat
+		 * @param args Strings to concat or Array of String items
 		 * @return concatenated values
 		 *
 		 **/
 		public static function concat(separator:String, ... args):String {
-			var parts:Array = [];
-			for each(var value:String in args) {
+			var parts:Array;
+			if(args != null && args.length == 1 && args[0] is Array) {
+				parts = args[0];
+			} else {
+				parts = args;
+			}
+			var resultParts:Array = [];
+			for each(var value:String in parts) {
 				if(isNotBlank(value)) {
-					parts.push(value);
+					resultParts.push(value);
 				}
 			}
-			return parts.join(separator);
+			return resultParts.join(separator);
 		}

 		public static function concatEvenNulls(separator:String, ... args):String {


Fix a couple of typos in comments.

Fix a couple of typos in comments.

--- src/org/mangui/osmf/plugins/HLSPlugin.as
+++ src/org/mangui/osmf/plugins/HLSPlugin.as
@@ -27,7 +27,7 @@
          * Called from super class when plugin has been initialized with the MediaFactory from which it was loaded.
          * Used for customize HLSSettings with values provided in resource metadata (that was set eg. in flash vars)
          *
-         * @param resource  Provides acces to the resource used to load the plugin and any associated metadata
+         * @param resource  Provides access to the resource used to load the plugin and any associated metadata
          *
          */
         override public function initializePlugin(resource : MediaResourceBase) : void {
@@ -52,7 +52,7 @@

             var metadataNamespaceURLs : Vector.<String> = resource.metadataNamespaceURLs;

-            // set all legal params values to HLSSetings properties
+            // set all legal params values to HLSSettings properties
             for each (var key : String in metadataNamespaceURLs) {
                 Params2Settings.set(key, resource.getMetadataValue(key));
             }


added ASDoc for the EnterFrameController class

--- src/aerys/minko/scene/controller/EnterFrameController.as
+++ src/aerys/minko/scene/controller/EnterFrameController.as
@@ -6,6 +6,15 @@

 	import flash.display.BitmapData;

+	/**
+	 * EnterFrameController are controllers triggered whenever the Scene.enterFrame
+	 * signal is executed.
+	 *
+	 * The best way to
+	 *
+	 * @author Jean-Marc Le Roux
+	 *
+	 */
 	public class EnterFrameController extends AbstractController
 	{
 		private var _targetsInScene	: uint	= 0;
@@ -68,7 +77,7 @@
 												  time			: Number) : void
 		{
 			throw new Error(
-				"The method EnterFrameController.sceneEnterFrameHandler must be overriden."
+				'The method EnterFrameController.sceneEnterFrameHandler must be overriden.'
 			);
 		}
 	}


Improved TextArea scrolling

Improved TextArea scrolling

git-svn-id: 00225d326fbeb9978ee2ea3564602c0fe18eb5d2@1446311 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
+++ frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
@@ -132,16 +132,14 @@

 		private function textScrollHandler(event:Event):void
 		{
-			/* This needs work. the calculation is still off. Reverting to basic
-			   values for scrolling and scroll position.
-			*/
-			//trace("numLines="+textField.numLines+", scrollV="+textField.scrollV+", bottom="+textField.bottomScrollV+", max="+textField.maxScrollV);
 			var visibleLines:int = textField.bottomScrollV - textField.scrollV + 1;
 			var scrollableLines:int = textField.numLines - visibleLines + 1;
-			//trace("-- scrollableLines="+scrollableLines+", visibleLines="+visibleLines);
 			var vsbm:ScrollBarModel = ScrollBarModel(vScrollBar.model);
-			vsbm.maximum = textField.numLines;//scrollableLines;
+			vsbm.minimum = 0;
+			vsbm.maximum = textField.numLines+1;
 			vsbm.value = textField.scrollV;
+			vsbm.pageSize = visibleLines;
+			vsbm.pageStepSize = visibleLines;
 		}

 		private function sizeChangedHandler(event:Event):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 12726
Author:   mhorn@adobe.com
Date:     2009-12-09T17:51:12.103185Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCaptureSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerIncrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListDropIndicator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerDecrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderContainerSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollBarRightButtonSkin.mxml</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/spark/src/spark/skins/spark/HScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -36,7 +36,7 @@
 use namespace mx_internal;

 /**
- *  Focus skins for Spark components.
+ *  Defines the "glow" around Spark components when the component has focus.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -92,6 +92,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @inheritDoc
+     */
     override protected function get borderWeight() : Number
     {
         if (target)
@@ -108,7 +111,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  @private
+     * @inheritDoc
      */
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {


FragmentLoader: also allow progressive buffering in case HLSSettings.startFromLevel=-1 but hls.startLevel has been set this will speed up the initial seek time in that scenario

--- src/org/mangui/hls/loader/FragmentLoader.as
+++ src/org/mangui/hls/loader/FragmentLoader.as
@@ -870,11 +870,17 @@
             /* try to do progressive buffering here.
              * only do it in case :
              * 		first fragment is already loaded
-             *      if first fragment is not loaded, we can do it if startLevel is already defined (if startFromLevel is set to -1
-             *      we first need to download one fragment to check the dl bw, in order to assess start level ...)
-             *      in case startFromLevel is to -1 and there is only one level, then we can do progressive buffering
+             *      or if first fragment is not loaded, we can do it if
+             *          startLevel is already defined (startLevel is already set or
+             *          startFromLevel/startFromBitrate not set to -1
+             *          or we only have one quality level
+             *      in the other cases, flashls will first download one fragment at level 0 to measure dl bw, used to assess start level ...)
              */
-            if (( !_manifestJustLoaded || ((HLSSettings.startFromLevel !== -1 || HLSSettings.startFromBitrate !== -1 || _levels.length == 1) ) )) {
+            if (( !_manifestJustLoaded ||
+                (_levelController.isStartLevelSet() ||
+                 HLSSettings.startFromLevel !== -1 ||
+                 HLSSettings.startFromBitrate !== -1 ||
+                 _levels.length == 1))) {
                 /* if audio expected, PTS analysis is done on audio
                  * if audio not expected, PTS analysis is done on video
                  * the check below ensures that we can compute min/max PTS


Transferred from the Adobe Open Source Subversion Repository

Revision: 19275
Author:   gruehle@adobe.com
Date:     2010-12-10T19:23:36.603272Z

Log Message:
-----------
Two on-screen keyboard fixes:
1. Always show the on-screen keyboard when StyleableTextField gets focus. The runtime behavior only shows the keyboard if the user tapped on the text.
2. Removed scroll disabling hack from SkinnableTextBase and replace it with code that prevents the on-screen keyboard from appearing when a scroll gesture occurs.

QE notes:
Doc notes:
Bugs: SDK-28244, SDK-28051, SDK-28208
Reviewer: Ryan
Tests run: cyclone server
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/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -17,6 +17,7 @@
 import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.FocusEvent;
+import flash.events.SoftKeyboardEvent;
 import flash.system.Capabilities;

 import flashx.textLayout.elements.TextFlow;
@@ -1331,7 +1332,8 @@
      */
     private function addHandlers():void
     {
-        addEventListener(TouchInteractionEvent.TOUCH_INTERACTION_STARTING, touchInteractionStartingHandler);
+        addEventListener(TouchInteractionEvent.TOUCH_INTERACTION_START, touchInteractionStartHandler);
+		addEventListener(TouchInteractionEvent.TOUCH_INTERACTION_END, touchInteractionEndHandler);
     }

     /**
@@ -2009,13 +2011,34 @@
     /**
      *  @private
      */
-    private function touchInteractionStartingHandler(event:TouchInteractionEvent):void
-    {
-        // This implementation prevents the scroll from happening, which means
-        // the touch interaction will be interpreted by the text (ie selection).
-        if (selectable || editable)
-            event.preventDefault();
-    }
+    private function touchInteractionStartHandler(event:TouchInteractionEvent):void
+    {
+		// During a touch scroll we don't want the keyboard to activate. Add a
+		// "softKeyboardActivating" handler to cancel the event.
+        textDisplay.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING,
+						softKeyboardActivatingHandler);
+    }
+
+	/**
+	 *  @private
+	 */
+	private function touchInteractionEndHandler(event:TouchInteractionEvent):void
+	{
+		// Remove the soft keyboard activate cancelling handler.
+		textDisplay.removeEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING,
+						softKeyboardActivatingHandler);
+	}
+
+	/**
+	 *  @private
+	 *
+	 *  This handler is only added during touch scroll events. It prevents
+	 *  the onscreen keyboard from activating if a scroll occurred.
+	 */
+	private function softKeyboardActivatingHandler(event:SoftKeyboardEvent):void
+	{
+		event.preventDefault();
+	}
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.component
+package mx.components
 {

 import flash.display.DisplayObject;
@@ -29,9 +29,9 @@
  *  the user presses enter, focuses out of the
  *  NumericStepper, or steps the NumericStepper.
  *
- *  @see flex.component.Spinner
+ *  @see mx.components.Spinner
  */
-public class NumericStepper extends Spinner implements IFocusManagerComponent
+public class FxNumericStepper extends FxSpinner implements IFocusManagerComponent
 {
     include "../core/Version.as";

@@ -44,7 +44,7 @@
     /**
      *  Constructor
      */
-    public function NumericStepper()
+    public function FxNumericStepper()
     {
         super();
     }
@@ -64,7 +64,7 @@
      *  when the user presses enter, focuses out of
      *  the NumericStepper, or steps the NumericStepper.
      */
-    public var textInput:TextInput;
+    public var textInput:FxTextInput;

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as
@@ -29,6 +29,11 @@
  *  you do not create one yourself.
  *
  *  @see mx.effects.Parallel
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ParallelInstance extends CompositeEffectInstance
 {
@@ -45,6 +50,11 @@
 	 *
 	 *  @param target This argument is ignored for Parallel effects.
 	 *  It is included only for consistency with other types of effects.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function ParallelInstance(target:Object)
 	{
@@ -299,6 +309,11 @@
 	 *  Interrupts any effects that are currently playing, skips over
 	 *  any effects that haven't started playing, and jumps immediately
 	 *  to the end of the composite effect.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override public function end():void
 	{
@@ -329,6 +344,11 @@
 	 *  If you create a subclass of CompositeEffect, you must implement this method.
          *
          * @param childEffect A child effect that has finished.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override protected function onEffectEnd(childEffect:IEffectInstance):void
 	{
@@ -439,6 +459,11 @@
      * start playing (if the seekTime is greater than their startDelay), or
      * come to an end (if the seekTime is greater than their startDelay plus
      * their duration).
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function seek(seekTime:Number):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.controls.listClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12086
Author:   chaase@adobe.com
Date:     2009-11-21T22:58:51.792971Z

Log Message:
-----------
Fixed a problem with scrollbar stepping animations over very large ranges. The easing function for the step animation meant that a very long-duration animation (which is what a very large range would result in) would have a long time easing in, which meant that it would be incredibly slow to start and be essentially useless. The fix was to cap easing to 500 ms max (or 10% or the total duration for shorter durations).

QE notes: No
Doc notes: No
Bugs: SDK-24059
Reviewer: Kevin
Tests run: checkintests, Mustella spark/gumbo/components/Scroller|ScrollBar|List|ComboBox
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -1029,14 +1029,20 @@
     {
         steppingDown = (newValue > value);
         steppingUp = !steppingDown;
+        var denominator:Number = (stepSize != 0) ? stepSize : 1; // avoid div-by-0 below
+        var duration:Number = getStyle("repeatInterval") *
+            (Math.abs(newValue - value) / denominator);
+        // Cap ease-in factor to 500 ms on long-duration animations
+        var easer:IEaser;
+        if (duration > 5000)
+            easer = new Linear(500/duration);
+        else
+            easer = easyInLinearEaser;
         // FIXME (chaase): we're using ScrollBar's repeatInterval for animated
         // stepping, but Button's repeatInterval for non-animated stepping
-        // FIXME (chaase): think about the total duration for the animation. This
-        // calculation
+        // FIXME (chaase): think about the total duration for the animation.
         // FIXME (chaase): hard-coding easing behavior, how to style it?
-        startAnimation(
-            getStyle("repeatInterval") * (Math.abs(newValue - value) / stepSize),
-            newValue, easyInLinearEaser, getStyle("repeatDelay"));
+        startAnimation(duration, newValue, easer, getStyle("repeatDelay"));
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 19800
Author:   hmuller@adobe.com
Date:     2011-01-19T17:43:25.081406Z

Log Message:
-----------
GridLayout optimization for GridItemRenderer (custom) item renderers.

IGridItemRenderer ASDoc cleanup.

Removed unused mx_internal method Grid/getDataProviderItemIndex().

GridColumnHeaderGroupLayout sets renderer owner property to dataGrid, as in GridLayout.

QE notes: One Mustella test screenshot to be revised (Jody)
Doc notes:
Bugs:
Reviewer: Carol
Tests run: checkin, mustella
Is noteworthy for integration: yes

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/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.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@1287485 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
@@ -18,8 +18,8 @@
 {
 import flash.text.TextFieldAutoSize;

+import mx.core.UITextField;
 import mx.core.mx_internal;
-import mx.core.UITextField;
 import mx.styles.IStyleClient;

 import spark.components.gridClasses.GridItemRenderer;


continuing to modify ZoomBounds

continuing to modify ZoomBounds

Change-Id: I924fcc9f9e0fd4280334228402a4328cd6b5f873

--- WeaveData/src/weave/primitives/ZoomBounds.as
+++ WeaveData/src/weave/primitives/ZoomBounds.as
@@ -33,56 +33,99 @@
 	import weave.core.SessionManager;

 	/**
-	 * This is a linkable version of a Bounds2D object.
-	 * It supports two modes: center coordinates and absolute coordinates.
+	 * This object defines the data bounds of a visualization, either directly with
+	 * absolute coordinates or indirectly with center coordinates and a scale value.
 	 *
 	 * @author adufilie
 	 */
 	public class ZoomBounds implements ILinkableVariable
 	{
-		public function LinkableBounds2D()
+		public function ZoomBounds()
 		{
-			useAbsoluteCoords();
 		}
+
+		private const _dataBounds:Bounds2D = new Bounds2D();
+		private const _screenBounds:Bounds2D = new Bounds2D();
+		private const _useCenterCoords:Boolean = false;
+		private const _cc:ICallbackCollection = getCallbackCollection(this);

 		public function getSessionState():Object
 		{
-			if (_useCenterCoords.value)
+			return null;
+			if (_useCenterCoords)
 			{
-
+				return {
+					xMin: _dataBounds.getXMin(),
+					yMin: _dataBounds.getYMin(),
+					xMax: _dataBounds.getXMax(),
+					yMax: _dataBounds.getYMax()
+				};
+			}
+			else
+			{
+				return {
+					xCenter: _dataBounds.getXCenter(),
+					yCenter: _dataBounds.getXCenter(),
+					areaPerPixel: _dataBounds.getArea() / _screenBounds.getArea()
+				};
 			}
 		}

-		public const xMin:LinkableNumber = newLinkableChild(this, LinkableNumber);
-		public const yMin:LinkableNumber = newLinkableChild(this, LinkableNumber);
-		public const xMax:LinkableNumber = newLinkableChild(this, LinkableNumber);
-		public const yMax:LinkableNumber = newLinkableChild(this, LinkableNumber);
-
-		public const xCenter:LinkableNumber = newLinkableChild(this, LinkableNumber);
-		public const yCenter:LinkableNumber = newLinkableChild(this, LinkableNumber);
-		public const areaPerPixel:LinkableNumber = newLinkableChild(this, LinkableNumber);
-
-		private static const tempBounds:IBounds2D = new Bounds2D(); // reusable temporary object
-
-		private const _dataBounds:IBounds2D = new Bounds2D();
-		private const _screenBounds:IBounds2D = new Bounds2D();
-		private const _useCenterCoords:LinkableBoolean = newLinkableChild(this, LinkableBoolean);
-		private const _cc:ICallbackCollection = getCallbackCollection(this);
-
-		/**
-		 * This switches the session state to use absolute coordinates xMin,yMin,xMax,yMax.
-		 */
-		public function useAbsoluteCoords():void
+		public function setSessionState(state:Object):void
 		{
-			_useCenterCoords.value = false; // this may trigger callbacks
-		}
-
-		/**
-		 * This switches the session state to use center coordinates xCenter,yCenter,areaPerPixel.
-		 */
-		public function useCenterCoords():void
-		{
-			_useCenterCoords.value = true; // this may trigger callbacks
+			_cc.delayCallbacks();
+			if (state == null)
+			{
+				if (!_dataBounds.isUndefined())
+					_cc.triggerCallbacks();
+				_dataBounds.reset();
+			}
+			else
+			{
+				var usedCenterCoords:Boolean = false;
+				if (state.hasOwnProperty("xCenter"))
+				{
+					if (_dataBounds.getXCenter() != state.xCenter)
+					{
+						_dataBounds.setXCenter(state.xCenter);
+						_cc.triggerCallbacks();
+					}
+					usedCenterCoords = true;
+				}
+				if (state.hasOwnProperty("yCenter"))
+				{
+					if (_dataBounds.getYCenter() != state.yCenter)
+					{
+						_dataBounds.setYCenter(state.yCenter);
+						_cc.triggerCallbacks();
+					}
+					usedCenterCoords = true;
+				}
+				if (state.hasOwnProperty("areaPerPixel"))
+				{
+					if (_dataBounds.getArea() / _screenBounds.getArea() != state.areaPerPixel)
+					{
+						_dataBounds.setXCenter(state.xCenter);
+						_cc.triggerCallbacks();
+					}
+					usedCenterCoords = true;
+				}
+
+				if (!usedCenterCoords)
+				{
+					var names:Array = ["xMin", "yMin", "xMax", "yMax"];
+					for each (var name:String in names)
+					{
+						if (state.hasOwnProperty(name) && _dataBounds[name] != state[name])
+						{
+							_dataBounds[name] = state[name];
+							_cc.triggerCallbacks();
+						}
+					}
+				}
+			}
+
+			_cc.resumeCallbacks();
 		}

 		public function getDataBounds(outputDataBounds:IBounds2D):void
@@ -95,15 +138,21 @@
 			outputScreenBounds.copyFrom(_screenBounds);
 		}

+		/**
+		 * This function will set all the information required to define the session state of the ZoomBounds.
+		 * @param dataBounds The data range of a visualization.
+		 * @param screenBounds The pixel range of a visualization.
+		 * @param useCenterCoords If true, the session state will be defined by xCenter,yCenter,areaPerPixel.  If false, the session state will be defined by xMin,yMin,xMax,yMax.
+		 */
 		public function setBounds(dataBounds:Bounds2D, screenBounds:IBounds2D, useCenterCoords:Boolean):void
 		{
 			_cc.delayCallbacks();
-			if (!_dataBounds.equals(dataBounds) || (_useCenterCoords.value && !_screenBounds.equals(screenBounds)))
+			if (_useCenterCoords != useCenterCoords || !_dataBounds.equals(dataBounds) || (useCenterCoords && !_screenBounds.equals(screenBounds)))
 				_cc.triggerCallbacks();

 			_dataBounds.copyFrom(dataBounds);
 			_screenBounds.copyFrom(screenBounds);
-			_useCenterCoords.value = useCenterCoords; // this may trigger callbacks
+			_useCenterCoords = useCenterCoords;

 			_cc.resumeCallbacks();
 		}


Add external resource path with top priority in the editor.

--- Bin/Data/Scripts/Editor/EditorScene.as
+++ Bin/Data/Scripts/Editor/EditorScene.as
@@ -136,8 +136,9 @@
             cache.RemoveResourceDir(sceneResourcePath);
     }

-    cache.AddResourceDir(newPath);
-    RebuildResourceDatabase();
+    // Add resource path as first priority so that it takes precedence over the default data paths
+    cache.AddResourceDir(newPath, 0);
+    RebuildResourceDatabase();

     if (!additive)
     {
@@ -261,10 +262,10 @@

 Node@ CreateNode(CreateMode mode)
 {
-    Node@ newNode = null;
-    if (editNode !is null)
+    Node@ newNode = null;
+    if (editNode !is null)
         newNode = editNode.CreateChild("", mode);
-    else
+    else
         newNode = editorScene.CreateChild("", mode);
     // Set the new node a certain distance from the camera
     newNode.position = GetNewNodePosition();
@@ -356,7 +357,7 @@
         FocusNode(newNode);
         instantiateFileName = fileName;
     }
-    return newNode;
+    return newNode;
 }

 Node@ InstantiateNodeFromFile(File@ file, const Vector3& position, const Quaternion& rotation, float scaleMod = 1.0f, Node@ parent = null, CreateMode mode = REPLICATED)
@@ -993,11 +994,11 @@
     if (material is null)
         return;

-    ResourceRefList materials = model.GetAttribute("Material").GetResourceRefList();
-    Array<String> oldMaterials;
-    for(uint i = 0; i < materials.length; ++i)
-        oldMaterials.Push(materials.names[i]);
-
+    ResourceRefList materials = model.GetAttribute("Material").GetResourceRefList();
+    Array<String> oldMaterials;
+    for(uint i = 0; i < materials.length; ++i)
+        oldMaterials.Push(materials.names[i]);
+
     model.material = material;

     AssignMaterialAction action;
@@ -1005,8 +1006,8 @@
     SaveEditAction(action);
     SetSceneModified();
     FocusComponent(model);
-}
-
+}
+
 void UpdateSceneMru(String filename)
 {
     while (uiRecentScenes.Find(filename) > -1)
@@ -1037,8 +1038,8 @@
     }

     return null;
-}
-
+}
+
 void AssignModel(StaticModel@ assignee, String modelPath)
 {
     Model@ model = cache.GetResource("Model", modelPath);
@@ -1054,31 +1055,31 @@
     SetSceneModified();
     FocusComponent(assignee);
 }
-
-void CreateModelWithStaticModel(String filepath, Node@ parent)
-{
-    if (parent is null)
-        return;
-
-    Model@ model = cache.GetResource("Model", filepath);
-    if (model is null)
-        return;
-
-    StaticModel@ staticModel = cast<StaticModel>(editNode.CreateComponent("StaticModel"));
-    staticModel.model = model;
-    CreateLoadedComponent(staticModel);
-}
-
-void CreateModelWithAnimatedModel(String filepath, Node@ parent)
-{
-    if (parent is null)
-        return;
-
-    Model@ model = cache.GetResource("Model", filepath);
-    if (model is null)
-        return;
-
-    AnimatedModel@ animatedModel = cast<StaticModel>(editNode.CreateComponent("AnimatedModel"));
-    animatedModel.model = model;
-    CreateLoadedComponent(animatedModel);
-}
+
+void CreateModelWithStaticModel(String filepath, Node@ parent)
+{
+    if (parent is null)
+        return;
+
+    Model@ model = cache.GetResource("Model", filepath);
+    if (model is null)
+        return;
+
+    StaticModel@ staticModel = cast<StaticModel>(editNode.CreateComponent("StaticModel"));
+    staticModel.model = model;
+    CreateLoadedComponent(staticModel);
+}
+
+void CreateModelWithAnimatedModel(String filepath, Node@ parent)
+{
+    if (parent is null)
+        return;
+
+    Model@ model = cache.GetResource("Model", filepath);
+    if (model is null)
+        return;
+
+    AnimatedModel@ animatedModel = cast<StaticModel>(editNode.CreateComponent("AnimatedModel"));
+    animatedModel.model = model;
+    CreateLoadedComponent(animatedModel);
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -1583,7 +1583,7 @@
     {
         _explicitMaxWidth = value;

-        // !!TODO: invalidate size
+        // FIXME (rfrishbe): invalidate size
     }

     //----------------------------------
@@ -2683,7 +2683,7 @@
         dispatchEvent(new FlexEvent("layerChange"));
         if(parent != null && "invalidateLayering" in parent && parent["invalidateLayering"] is Function)
             parent["invalidateLayering"]();
-        // TODO: should be in some interface...
+        // FIXME (rfrishbe): should be in some interface...
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil.as
+++ frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.binding
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17491
Author:   aharui@adobe.com
Date:     2010-08-26T18:31:34.581497Z

Log Message:
-----------
Handle clipped sub-apps

QE notes: none
Doc notes: New optional parameter to SystemManager.getVisibleApplicationRect
Bugs: SDK-26478
Reviewer: Darrell
Tests run: checkintests mustella/MarshallPlan
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>

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

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -536,6 +536,8 @@
             if (popUpParent is UIComponent)
             {
                 rect = UIComponent(popUpParent).getVisibleRect();
+				if (UIComponent(popUpParent).systemManager != sbRoot)
+					rect = UIComponent(popUpParent).systemManager.getVisibleApplicationRect(rect);
                 var offset:Point = popUpParent.globalToLocal(rect.topLeft);
                 clippingOffset.x += offset.x;
                 clippingOffset.y += offset.y;


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

--- frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as
+++ frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 13046
Author:   hneelu@adobe.com
Date:     2009-12-17T12:34:07.695337Z

Log Message:
-----------
Updating automation sources..

Modified Paths:
--------------
451 paths were modified

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/SparkRichEditableTextAutomationHelper.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/SparkRichEditableTextAutomationHelper.as
@@ -390,13 +390,32 @@
 					richEditableText.insertText("");
 				}

+				// it was seen that at times event dispathing does not change
+				// the string and at times it changes.
+				// refer http://bugs.adobe.com/jira/browse/FLEXENT-1179
+				// We need to insert the text if the change has not happened.
+				// for this we need to find the string before and after the event dispatch.
+				// but the text does not display the correct value after the event dispatch. It shows
+				// only after we do an insert operation on the text after the same.
+				// but to do the inser operation, we need to find the active and anchor position also.
+				// this also does not change when the value is dispatched and still is at the beginning of the string.
+				// so we need to calcualte it. Here we need to consider the direction.
+				var stringBeforeChange:String = richEditableText.text;
+				var insertPos:int = richEditableText.selectionActivePosition;
+				var direction:int = -1;
+				if(richEditableText && richEditableText.textFlow && richEditableText.textFlow.computedFormat &&
+					richEditableText.textFlow.computedFormat.direction)
+				{
+					if (richEditableText.textFlow.computedFormat.direction=="ltr")
+						direction = 1;
+				}
+
 				for (var i:uint = 0; i < n; i++)
 				{
 					ke = new KeyboardEvent(KeyboardEvent.KEY_DOWN);
 					ke.charCode = text.charCodeAt(i);
 					ke.keyCode = text.charCodeAt(i);
 					richEditableText.dispatchEvent(ke);
-					var pos:int ;

 					// we dont need any special handling on the string.
 					// replaying the key board events takes care of the needed.
@@ -418,8 +437,27 @@

 					// dispatch a change event to indicate that the value is changed.
 					richEditableText.dispatchEvent(changeEvent);
-
-				}
+					// calculate the new insert position.
+					insertPos += direction*1;
+
+				}
+
+				if(text.length > 0)
+				{
+					// do the operation to reflect the text value
+					richEditableText.selectRange(insertPos,insertPos);
+					richEditableText.insertText("");
+
+					// check whethr the string is changed after the event dispatch
+					// refer http://bugs.adobe.com/jira/browse/FLEXENT-1179
+					var stringAfterChange:String = richEditableText.text;
+
+					if(stringBeforeChange == stringAfterChange)
+					{
+						richEditableText.insertText(text);
+					}
+				}
+

 				return true;
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 13046
Author:   hneelu@adobe.com
Date:     2009-12-17T12:34:07.695337Z

Log Message:
-----------
Updating automation sources..

Modified Paths:
--------------
451 paths were modified

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTextAreaAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTextAreaAutomationImpl.as
@@ -0,0 +1,108 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.automation.delegates.components
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.core.mx_internal;
+
+	import spark.automation.delegates.components.supportClasses.SparkSkinnableTextBaseAutomationImpl;
+	import spark.components.TextArea;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  TextArea control.
+	 *
+	 *  @see spark.components.TextArea
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class SparkTextAreaAutomationImpl extends SparkSkinnableTextBaseAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(spark.components.TextArea, SparkTextAreaAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj TextArea object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function SparkTextAreaAutomationImpl(obj:spark.components.TextArea)
+		{
+			super(obj);
+		}
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get  textArea():spark.components.TextArea
+		{
+			return uiComponent as spark.components.TextArea;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return  textArea.id || super.automationName ;
+		}
+
+	}
+}


Home fixed

Home fixed

Home fixed

--- src/ageofai/map/view/MapView.as
+++ src/ageofai/map/view/MapView.as
@@ -19,8 +19,6 @@
 	{
 		private var _terrainLayer:Sprite;
 		private var _unitLayer:Sprite;
-
-		private var _baseBackground:Bitmap;

 		private var _terrainHelper:TerrainHelper;

@@ -50,7 +48,7 @@

 		private function createHome():void
 		{
-			var home:HomeView = this.addChild( new HomeView() ) as HomeView;
+			var home:HomeView = this._unitLayer.addChild( new HomeView() ) as HomeView;
 			home.x = CMap.TILE_SIZE * Math.floor( Math.random() * CMap.COLUMN_COUNT );
 			home.y = CMap.TILE_SIZE * Math.floor( Math.random() * CMap.ROW_COUNT );
 		}
@@ -84,8 +82,8 @@
 			}

 			backgroundBitmapData.unlock();
-			this._baseBackground = new Bitmap( backgroundBitmapData );
-			addChild( this._baseBackground );
+
+			this._terrainLayer.addChild( new Bitmap( backgroundBitmapData ) );

 			this._terrainHelper.dispose();
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/mx/src/mx/skins/halo/DataGridColumnResizeSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/DataGridColumnResizeSkin.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11490
Author:   gruehle@adobe.com
Date:     2009-11-06T01:34:58.836883Z

Log Message:
-----------
Add accentColor style. This color is used to tint "emphasized" buttons, and as the color for slider track highlighting.

QE notes: Tests should be added for this style.
Doc notes: ASDoc added, but should be reviewed.
Bugs: SDK-23450, SDK-23451
Reviewer: Ryan
Tests run: checkintests, components/Slider, components/Alert
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderTrackHighlightSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -78,6 +78,18 @@
 include "../styles/metadata/BasicInheritingTextStyles.as"
 include "../styles/metadata/AdvancedInheritingTextStyles.as"
 include "../styles/metadata/SelectionFormatTextStyles.as"
+
+/**
+ *  @copy spark.components.supportClasses.GroupBase#style:accentColor
+ *
+ *  @default #0099FF
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="accentColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
  *  @copy spark.components.supportClasses.GroupBase#style:alternatingItemColors


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -0,0 +1,404 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 flex.component
+{
+
+import flex.core.Group;
+import flex.core.SkinnableComponent;
+import flex.events.FlexEvent;
+import flex.events.ItemExistenceChangedEvent;
+
+import mx.core.IFactory;
+import mx.managers.IFocusManagerContainer;
+
+/**
+ *  Dispatched prior to the component's content being changed. This is only
+ *  dispatched when all content of the component is changing.
+ */
+[Event(name="contentChanging", type="flex.events.FlexEvent")]
+
+/**
+ *  Dispatched after the component's content has changed. This is only
+ *  dispatched when all content of the component has changed.
+ */
+[Event(name="contentChanged", type="flex.events.FlexEvent")]
+
+/**
+ *  Dispatched when an item is added to the component.
+ *  event.relatedObject is the visual item that was added.
+ */
+[Event(name="itemAdd", type="flex.events.ItemExistenceChangedEvent")]
+
+/**
+ *  Dispatched when an item is removed from the component.
+ *  event.relatedObject is the visual item that was removed.
+ */
+[Event(name="itemRemove", type="flex.events.ItemExistenceChangedEvent")]
+
+[DefaultProperty("content")]
+
+/**
+ * The ItemsComponent class is the base class for all skinnable components that have
+ * content. This class is not typically instantiated in MXML. It is primarily
+ * used as a base class, or as a SkinPart.
+ */
+public class ItemsComponent extends SkinnableComponent implements IFocusManagerContainer
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+	public function ItemsComponent()
+	{
+		super();
+
+		tabChildren = true;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Skin Parts
+	//
+	//--------------------------------------------------------------------------
+
+	[SkinPart]
+	public var contentGroup:Group;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties proxied to contentHolder
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  content
+	//----------------------------------
+
+	private var _content:*;
+
+	/**
+	 *  @copy flex.core.Group#content
+	 */
+	[Bindable]
+	public function get content():*
+	{
+		if (contentGroup)
+			return contentGroup.content;
+
+		return _content;
+	}
+
+	public function set content(value:*):void
+	{
+		if (value == _content)
+			return;
+
+		_content = value;
+
+		if (contentGroup)
+			contentGroup.content = _content;
+	}
+
+	//----------------------------------
+	//  layout
+	//----------------------------------
+
+	private var _layout:Class;
+
+	/**
+	 *  @copy flex.core.Group#layout
+	 */
+	public function get layout():Class
+	{
+		if (contentGroup)
+			return contentGroup.layout;
+
+		return _layout;
+	}
+
+	public function set layout(value:Class):void
+	{
+		if (value == _layout)
+			return;
+
+		_layout = value;
+
+		if (contentGroup)
+			contentGroup.layout = _layout;
+	}
+
+	//----------------------------------
+	//  itemRenderer
+	//----------------------------------
+
+	private var _itemRenderer:IFactory;
+
+	/**
+	 *  @copy flex.core.Group#itemRenderer
+	 */
+	public function get itemRenderer():IFactory
+	{
+		if (contentGroup)
+			return contentGroup.itemRenderer;
+
+		return _itemRenderer;
+	}
+
+	public function set itemRenderer(value:IFactory):void
+	{
+		if (value == _itemRenderer)
+			return;
+
+		_itemRenderer = value;
+
+		if (contentGroup)
+			contentGroup.itemRenderer = _itemRenderer;
+	}
+
+	//----------------------------------
+	//  itemRendererFunction
+	//----------------------------------
+
+	private var _itemRendererFunction:Function;
+
+	/**
+	 *  @copy flex.core.Group#itemRendererFunction
+	 */
+	public function get itemRendererFunction():Function
+	{
+		if (contentGroup)
+			return contentGroup.itemRendererFunction;
+
+		return _itemRendererFunction;
+	}
+
+	public function set itemRendererFunction(value:Function):void
+	{
+		if (value == _itemRendererFunction)
+			return;
+
+		_itemRendererFunction = value;
+
+		if (contentGroup)
+			contentGroup.itemRendererFunction = _itemRendererFunction;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods proxied to contentGroup
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @copy flex.core.Group#numItems
+	 */
+	public function get numItems():int
+	{
+		if (!contentGroup)
+			return 0;
+
+		return contentGroup.numItems;
+	}
+
+	/**
+	 *  @copy flex.core.Group#getItemAt()
+	 */
+	public function getItemAt(index:int):*
+	{
+		if (!contentGroup)
+			return null;
+
+		return contentGroup.getItemAt(index);
+	}
+
+	/**
+	 *  @copy flex.core.Group#addItem()
+	 */
+	public function addItem(item:*):*
+	{
+		if (!contentGroup)
+			return null;
+
+		return contentGroup.addItem(item);
+	}
+
+	/**
+	 *  @copy flex.core.Group#addItemAt()
+	 */
+	public function addItemAt(item:*, index:int):*
+	{
+		if (!contentGroup)
+			return null;
+
+		return contentGroup.addItemAt(item, index);
+	}
+
+	/**
+	 *  @copy flex.core.Group#removeItem()
+	 */
+	public function removeItem(item:*):*
+	{
+		if (!contentGroup)
+			return null;
+
+		return contentGroup.removeItem(item);
+	}
+
+	/**
+	 *  @copy flex.core.Group#removeItemAt()
+	 */
+	public function removeItemAt(index:int):*
+	{
+		if (!contentGroup)
+			return null;
+
+		return contentGroup.removeItemAt(index);
+	}
+
+	/**
+	 *  @copy flex.core.Group#getItemIndex()
+	 */
+	public function getItemIndex(item:*):int
+	{
+		if (!contentGroup)
+			return -1;
+
+		return contentGroup.getItemIndex(item);
+	}
+
+	/**
+	 *  @copy flex.core.Group#setItemIndex()
+	 */
+	public function setItemIndex(item:*, index:int):void
+	{
+		if (!contentGroup)
+			return;
+
+		contentGroup.setItemIndex(item, index);
+	}
+
+	/**
+	 *  @copy flex.core.Group#swapItems()
+	 */
+	public function swapItems(item1:*, item2:*):void
+	{
+		if (!contentGroup)
+			return;
+
+		contentGroup.swapItems(item1, item2);
+	}
+
+	/**
+	 *  @copy flex.core.Group#swapItemsAt()
+	 */
+	public function swapItemsAt(index1:*, index2:*):void
+	{
+		if (!contentGroup)
+			return;
+
+		contentGroup.swapItemsAt(index1, index2);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Called when a skin part has been added or assigned.
+	 *  This method pushes the content, layout, itemRenderer, and
+	 *  itemRendererFunction properties down to the contentGroup
+	 *  skin part.
+	 */
+	override protected function partAdded(partName:String, instance:*):void
+	{
+		if (instance == contentGroup)
+		{
+			if (_content != undefined)
+				contentGroup.content = _content;
+			if (_layout != null)
+				contentGroup.layout = _layout;
+			if (_itemRenderer != null || _itemRendererFunction != null)
+			{
+				contentGroup.itemRenderer = _itemRenderer;
+				contentGroup.itemRendererFunction = _itemRendererFunction;
+			}
+
+			contentGroup.addEventListener(
+				ItemExistenceChangedEvent.ITEM_ADD, contentGroup_itemAddedHandler);
+			contentGroup.addEventListener(
+				ItemExistenceChangedEvent.ITEM_REMOVE, contentGroup_itemRemovedHandler);
+			contentGroup.addEventListener(
+			    FlexEvent.CONTENT_CHANGING, contentGroup_contentChangingHandler);
+			contentGroup.addEventListener(
+			    FlexEvent.CONTENT_CHANGED, contentGroup_contentChangedHandler);
+		}
+	}
+
+	/**
+	 *  Called when a skin part is removed.
+	 */
+	override protected function partRemoved(partName:String, instance:*):void
+	{
+		if (instance == contentGroup)
+		{
+			contentGroup.removeEventListener(
+				ItemExistenceChangedEvent.ITEM_ADD, contentGroup_itemAddedHandler);
+			contentGroup.removeEventListener(
+				ItemExistenceChangedEvent.ITEM_REMOVE, contentGroup_itemRemovedHandler);
+			contentGroup.removeEventListener(
+			    FlexEvent.CONTENT_CHANGING, contentGroup_contentChangingHandler);
+			contentGroup.removeEventListener(
+			    FlexEvent.CONTENT_CHANGED, contentGroup_contentChangedHandler);
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Event Handlers
+	//
+	//--------------------------------------------------------------------------
+
+	private function contentGroup_itemAddedHandler(event:ItemExistenceChangedEvent):void
+	{
+		// Re-dispatch the event
+		dispatchEvent(event);
+	}
+
+	private function contentGroup_itemRemovedHandler(event:ItemExistenceChangedEvent):void
+	{
+		// Re-dispatch the event
+		dispatchEvent(event);
+	}
+
+	private function contentGroup_contentChangingHandler(event:FlexEvent):void
+	{
+		// Re-dispatch the event
+		dispatchEvent(event);
+	}
+
+	private function contentGroup_contentChangedHandler(event:FlexEvent):void
+	{
+		// Re-dispatch the event
+		dispatchEvent(event);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21923
Author:   jasonsj@adobe.com
Date:     2011-08-10T22:26:59.534729Z

Log Message:
-----------
Callout and CalloutButton design view icons

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

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
+++ frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as
@@ -65,6 +65,12 @@
  *  @productversion Flex 4.5.2
  */
 [Event(name="open", type="spark.events.DropDownEvent")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[IconFile("Callout.png")]

 [DefaultProperty("calloutContent")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 20208
Author:   smgilson@adobe.com
Date:     2011-02-08T21:40:02.122057Z

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

QE notes:
Doc notes:
Bugs: FLEXDOCS-1342, FLEXDOCS-1330, FLEXDOCS-1323
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/ScrollerExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -934,7 +934,7 @@
      *
      *  @default true
      *
-     *  @langversion 4.0
+     *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package spark.automation.delegates.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20025
Author:   hmuller@adobe.com
Date:     2011-02-01T00:07:06.400929Z

Log Message:
-----------
TextFieldGridItemRendererInclude.as/updatePreferredSize() - now only sets the multiline property if it hasn't been explicitly set.

QE notes: One test excluded for new bitmap (Jacob)
Doc notes: Added material about the multiline property to DefaultGridItemRenderer, UITextFieldGridItemRenderer
Bugs: SDK-29261
Reviewer: Darrell
Tests run:
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/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
+++ frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
@@ -493,6 +493,30 @@
     }

     //----------------------------------
+    //  multiline
+    //----------------------------------
+
+    private var multilineSet:Boolean = false;  // true if explicitly set
+
+    /**
+     *  @private
+     */
+    override public function set multiline(value:Boolean):void
+    {
+        super.multiline = value;
+        multilineSet = true;
+    }
+
+    /**
+     *  @private
+     *  See updatePreferredSize().
+     */
+    private function setMultiline(value:Boolean):void
+    {
+        super.multiline = value;
+    }
+
+    //----------------------------------
     //  text
     //----------------------------------

@@ -597,9 +621,12 @@

         if (!wordWrapSet && column && column.grid)
             super.wordWrap = column.grid.variableRowHeight;
-
-        if (getStyle("lineBreak") == "explicit")
-            multiline = _label.indexOf("\n") != -1;
+
+        // Only automatically set multiline="true" if lineBreak="explicit" and the
+        // text actually contains a newline, since doing so is expensive.
+
+        if (!multilineSet && (getStyle("lineBreak") == "explicit"))
+            setMultiline(_label.indexOf("\n") != -1);

         text = _label;
         super.validateNow();
@@ -676,6 +703,8 @@
      */
     public function discard(hasBeenRecycled:Boolean):void
     {
+        setMultiline(false);
+        multilineSet = false;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4978
Author:   gosmith@adobe.com
Date:     2009-02-17T02:25:10.529022Z

Log Message:
-----------
Various changes to Gumbo text styles.

The marginLeft, marginRight, marginTop, and marginBottom styles have been removed. They used to inherit from a TLF container to a TLF paragraph and got applied there, but this is not longer the case so that TLF can support container-level margins in the future. Since container-level margins are not currently supported, there should not be a corresponding component-level style. In order to make it possible to specify a format on a container to set inter-paragraph spacing, TLF will add spaceBefore and spaceAfter soon, and Flex will expose these as component styles.

The tabStops style is no longer supported on TextBox or components that use TextBox in their skins. It is supported on TextGraphic, TextView, and FxTextArea, but only as a TLF-parsed String (rather than an Array or Vector of TabStop instances as in FTE). Examples of tabstop strings are "10 20 30 40" and "s10 c20 r30 d40|," (where s="start", c="center", r="right", and d="decimal". The use of strings to specify tabstops makes it easy to set them in CSS.

The firstLineOffsetBasis style has been removed. There is no such thing in TLF's TextLayoutFormat any more.

The dominantBaseline, justificationRule, and justificationStyle styles now allow the value "auto", and this is now the default.

The ligatureLevel style no longer allows the value "none".

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicTextLayoutFormatStyles.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
@@ -12,7 +12,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#blockProgression
  */
-[Style(name="blockProgression", type="String", enumeration="rl,tb", inherit="yes")]
+[Style(name="blockProgression", type="String", enumeration="tb,rl", inherit="yes")]

 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#columnCount
@@ -35,34 +35,14 @@
 [Style(name="firstBaselineOffset", type="Object", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#firstBaselineOffsetBasis
- */
-[Style(name="firstBaselineOffsetBasis", type="String", enumeration="roman,ascent,descent,ideographicTop,ideographicCenter,ideographicBottom", inherit="yes")]
-
-/**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#leadingModel
  */
 [Style(name="leadingModel", type="String", enumeration="auto,romanUp,ideographicCenterDown,ideographicCenterUp,ideographicTopDown,ideographicTopUp", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginBottom
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#tabStops
  */
-[Style(name="marginBottom", type="Number", format="Length", inherit="yes")]
-
-/**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginLeft
- */
-[Style(name="marginLeft", type="Number", format="Length", inherit="yes")]
-
-/**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginRight
- */
-[Style(name="marginRight", type="Number", format="Length", inherit="yes")]
-
-/**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginTop
- */
-[Style(name="marginTop", type="Number", format="Length", inherit="yes")]
+[Style(name="tabStops", type="String", inherit="yes")]

 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#textIndent
@@ -72,4 +52,4 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#whiteSpaceCollapse
  */
-[Style(name="whiteSpaceCollapse", type="String", enumeration="preserve,collapse", inherit="yes")]
+[Style(name="whiteSpaceCollapse", type="String", enumeration="collapse,preserve", inherit="yes")]