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

--- frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as
@@ -169,11 +169,11 @@
         *  @playerversion AIR 1.1
         *  @productversion Flex 3
         */
-        // TODO (chaase): handle startDelay
+        // FIXME (chaase): handle startDelay

         if (value < playheadTime)
         {
-            // TODO (chaase): Handle seeking back in time
+            // FIXME (chaase): Handle seeking back in time
             // idea: Maybe once we get playing a sequence in reverse
             // working perfectly, seeking back in time should essentially
             // 'play' (with zero duration) the child effects in reverse until


fixed bug where selection rectangle with width=0 or height=0 did not
select

Change-Id: Ib0e766f2a9487885c87ff24de79d54977b509f34

--- WeaveUISpark/src/weave/visualization/layers/InteractiveVisualization.as
+++ WeaveUISpark/src/weave/visualization/layers/InteractiveVisualization.as
@@ -813,8 +813,8 @@
 				var keys:Array = null;
 				if (Weave.properties.selectionMode.value == InteractionController.SELECTION_MODE_RECTANGLE)
 				{
-					// if user has probed something and not dragged the mouse during selection, select only the probed shapes
-					if (!_lastProbedQKeys || !queryBounds.isEmpty())
+					// if user has probed something and not dragged the mouse during selection, select only the probed shapes
+					if (!(_lastProbedQKeys && queryBounds.getWidth() == 0 && queryBounds.getHeight() == 0))
 						keys = plotManager.hack_getSpatialIndex(name).getKeysGeometryOverlap(queryBounds, minImportance, false, tempDataBounds);
 				}
 				else if (Weave.properties.selectionMode.value == InteractionController.SELECTION_MODE_CIRCLE)


Fix leaderboards test.

Fix leaderboards test.

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -513,15 +513,14 @@
 					log("RESPONSE_OnDownloadLeaderboardEntries: " + e.response);
 					if(e.response != SteamResults.OK) break;
 					var entries:Array = Steamworks.downloadLeaderboardEntriesResult(scoreDetails);
-					scoreDetails = 0;
 					log("downloadLeaderboardEntriesResult(" + scoreDetails + ") == " + (entries ? ("Array, size " + entries.length) : "null"));
 					for(i = 0; i < entries.length; ++i) {
 						var en:LeaderboardEntry = entries[i];
 						log(i + ": " + en.userID + ", " + en.globalRank + ", " + en.score + ", " + en.numDetails + "//" + en.details.length);
-						var actualDetails:int = Math.max(scoreDetails, en.details.length);
-						for(var d:int = 0; d < actualDetails; ++d)
+						for(var d:int = 0; d < en.details.length; ++d)
 							log("\tdetails[" + d + "] == " + en.details[d]);
 					}
+					scoreDetails = 0;
 					break;
 				case SteamConstants.RESPONSE_OnUploadLeaderboardScore:
 					log("RESPONSE_OnUploadLeaderboardScore: " + e.response);


Conditionally add debug event listeners based on the debug flag in Jplayer.as. Set the debug flag to false in Jplayer.as.

--- actionscript/Jplayer.as
+++ actionscript/Jplayer.as
@@ -74,7 +74,7 @@
 		private var contextMenuFix:Sprite = new Sprite(); // A sprite that will be on top and fix the content menu over video bug. (A Flash plugin bug.)

 		private var txLog:TextField;
-		private var debug:Boolean = true; // Set debug to false for release compile!
+		private var debug:Boolean = false; // Set debug to false for release compile!
 		private var localAIRDebug:Boolean = false; // This is autodetermined by AIR app - leave false!

 		private var traceOut:TraceOut;
@@ -261,7 +261,9 @@
 		// switchType() here
 		private function listenToMp3(active:Boolean):void {
 			if(active) {
-                myMp3Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myMp3Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
@@ -281,7 +283,9 @@
 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_CANPLAY, jPlayerFlashEvent); // only MP3 atm
 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_CANPLAYTHROUGH, jPlayerFlashEvent); // only MP3 atm
 			} else {
-                myMp3Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myMp3Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myMp3Player.removeEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myMp3Player.removeEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
@@ -304,7 +308,9 @@
 		}
 		private function listenToMp4(active:Boolean):void {
 			if(active) {
-                myMp4Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myMp4Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myMp4Player.addEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myMp4Player.addEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
@@ -320,7 +326,9 @@

 				myMp4Player.addEventListener(JplayerEvent.JPLAYER_LOADEDMETADATA, jPlayerMetaDataHandler); // Note the unique handler
 			} else {
-                myMp4Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myMp4Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myMp4Player.removeEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myMp4Player.removeEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
@@ -340,7 +348,9 @@

 		private function listenToRtmp(active:Boolean):void {
 			if(active) {
-                myRtmpPlayer.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myRtmpPlayer.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myRtmpPlayer.addEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myRtmpPlayer.addEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
@@ -358,7 +368,9 @@

 				myRtmpPlayer.addEventListener(JplayerEvent.JPLAYER_LOADEDMETADATA, jPlayerMetaDataHandler); // Note the unique handler
 			} else {
-                myRtmpPlayer.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myRtmpPlayer.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }

 				myRtmpPlayer.removeEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myRtmpPlayer.removeEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);


force label to be single-line

force label to be single-line

--- frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as
+++ frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as
@@ -156,6 +156,7 @@
             element = document.createElement('span') as WrappedHTMLElement;
             positioner = element;
             element.flexjs_wrapper = this;
+            element.style.whiteSpace = "nowrap";
             return element;
         }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/metadata/LeadingStyle.as
+++ frameworks/projects/framework/src/mx/styles/metadata/LeadingStyle.as
@@ -0,0 +1,18 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Additional vertical space between lines of text.
+ *
+ *
The default value is 2.

+ *
The default value for the ComboBox control is 0.

+ */
+[Style(name="leading", type="Number", format="Length", inherit="yes")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 5005
Author:   rfrishbe@adobe.com
Date:     2009-02-19T01:21:52.645265Z

Log Message:
-----------
Last PARB changes for FxContainer/FxDataContainer.  We're now exposing more properties on the FxContainer from the underlying Group (same for FxDataContainer and DataGroup).  The only new property being exposed on FxContainer is autoLayout.  For FxDataContainer we're now exposing autoLayout, typicalItem, and the renderer_add and renderer_remove events.  We're also being smarter about when to add events on the underlying contentGroup/dataGroup--however, we're ignoring some of the parameters in addEventListener and these aren't getting proxied down on to the listeners we add to the contentGroup/dataGroup.

Also found and fixed a bug in the RendererExistenceEvent.clone() method.

QE Notes: Please test these new properties/events.
Doc Notes: -
Bugs: -
Reviewer: Hans
tests: checkintests, DataGroup, FxList, FxButtonBar, FxDataContainer, FxContainer

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/RendererExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/events/RendererExistenceEvent.as
+++ frameworks/projects/spark/src/spark/events/RendererExistenceEvent.as
@@ -169,7 +169,7 @@
     override public function clone():Event
     {
         return new RendererExistenceEvent(type, bubbles, cancelable,
-                                         renderer, index);
+                                         renderer, index, data);
     }
 }


fixed bug in VectorUtils.transpose()

fixed bug in VectorUtils.transpose()

--- WeaveData/src/weave/utils/VectorUtils.as
+++ WeaveData/src/weave/utils/VectorUtils.as
@@ -574,7 +574,7 @@
 				for (var iRow:int = 0; iRow < col.length; iRow++)
 				{
 					var row:Array = result[iRow] || (result[iRow] = []);
-					row[iRow][iCol] = col[iRow];
+					row[iCol] = col[iRow];
 				}
 			}
 			return result;


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6669
Author:   hmuller@adobe.com
Date:     2009-05-05T21:36:16.438768Z

Log Message:
-----------
Bug fix for a corner case that caused Scroller to loop.  Also: removed code from BasicLayout::measure() that set the content size.

QE Notes:
Doc Notes:
Bugs: sdk-20920
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -14,6 +14,7 @@
 {

 import mx.core.ILayoutElement;
+import mx.core.IUIComponent;
 import mx.core.ScrollPolicy;

 import spark.components.Scroller;
@@ -35,7 +36,6 @@
     private function getScroller():Scroller
     {
         var g:Skin = target as Skin;
-
         return (g && ("hostComponent" in g)) ? Object(g).hostComponent as Scroller : null;
     }

@@ -147,11 +147,16 @@
         var scroller:Scroller = getScroller();
         if (!scroller)
             return;
-
+
         var viewport:IViewport = scroller.viewport;
         var hsb:ScrollBar = scroller.horizontalScrollBar;
         var vsb:ScrollBar = scroller.verticalScrollBar;
         var minViewportInset:Number = scroller.minViewportInset;
+
+        // If the viewport's size has been explicitly set (not typical) then use it
+        var viewportUIC:IUIComponent = viewport as IUIComponent;
+        var explicitViewportW:Number = viewportUIC ? viewportUIC.explicitWidth : NaN;
+        var explicitViewportH:Number = viewportUIC ? viewportUIC.explicitHeight : NaN;

         // Decide which scrollbars will be visible based on the viewport's content size
         var showHSB:Boolean = false;
@@ -163,8 +168,12 @@
             case ScrollPolicy.AUTO:
                 if (hsb && viewport)
                 {
-                    showHSB = viewport.contentWidth > (w - (minViewportInset * 2));
                     hAuto = true;
+                    var contentWidth:Number = viewport.contentWidth;
+                    if (isNaN(explicitViewportW))
+                        showHSB = contentWidth > (w - (minViewportInset * 2));
+                    else
+                        showHSB = contentWidth > explicitViewportW;
                 }
                 break;
         }
@@ -177,8 +186,12 @@
             case ScrollPolicy.AUTO:
                 if (vsb && viewport)
                 {
-                    showVSB = viewport.contentHeight > (h - (minViewportInset * 2));
                     vAuto = true;
+                    var contentHeight:Number = viewport.contentHeight;
+                    if (isNaN(explicitViewportH))
+                        showVSB = contentHeight > (h - (minViewportInset * 2));
+                    else
+                        showVSB = contentHeight >  explicitViewportH;
                 }
                 break;
         }
@@ -219,7 +232,13 @@
             viewportH -= minViewportInset;
         if (!showVSB)
             viewportW -= minViewportInset;
-
+
+        // Special case: viewport's size is explicitly set
+        if (!isNaN(explicitViewportW))
+            viewportW = explicitViewportW;
+        if (!isNaN(explicitViewportH))
+            viewportH = explicitViewportH;
+
         // layout the viewport
         if (viewport)
         {
@@ -241,10 +260,9 @@
             vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), viewportH));
             vsb.setLayoutBoundsPosition(w - Math.max(minViewportInset, vsbW), minViewportInset);
         }
-
         target.setContentSize(w, h);
     }

 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5573
Author:   jimurphy@adobe.com
Date:     2009-03-26T15:11:59.159776Z

Log Message:
-----------
-more updated package and class names that were missed in the first pass
-remove the mx folder

qa: probably
doc: this updated more asdoc comments so you may want to make sure that this pass made the correct updates
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.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/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoDisplay.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/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/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/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/PathSegment.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/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</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/events/AnimationEvent.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/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.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/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.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/flex4/src/spark/effects/AnimateTransformMove3D.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/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as
@@ -28,7 +28,7 @@
  *  Flex creates an instance of this class when it plays
  *  an AddAction effect; you do not create one yourself.
  *
- *  @see mx.effects.AddAction
+ *  @see spark.effects.AddAction
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 20455
Author:   egeorgie@adobe.com
Date:     2011-02-24T18:39:34.625731Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-29635 When a child swf is loaded with loadForCompatibility=true, the Spark Slider pop up and DropDownList drop down are not positioned correctly.

In this change:
- update HSlider and VSlider to correctly convert the tooltip position form sandboxRoot to systemManager coordinates (the tip is in system manager coordinates).
- DropDown/ComboBox and other pop-up related code now calcualtes the concatenatedMatrix up to the sandboxRoot instead of the root sprite (the root sprite is the systemManager in a sub-app but the actual pop-up parent is the sandboxRoot).

QE notes: Verify grid item renderers' tooltips in sub-app/marshall plan/mobile density scaling scenarios; A general pass over drop-down and combo box in sub-app/marshall plan/mobile density scaling scenarios.
Doc notes:
Bugs: SDK-29635
Reviewer: Alex
Tests run: mustella full cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.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/framework/src/mx/utils/MatrixUtil.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/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -3216,7 +3216,7 @@
             // Can't use target's concatenatedMatrix, as it is sometimes wrong
             var m:Matrix = useLocalSpace ?
                 displayObject.transform.matrix :
-                MatrixUtil.getConcatenatedMatrix(displayObject, false);
+                MatrixUtil.getConcatenatedMatrix(displayObject, null);

             if (m)
                 m.translate(-rectBounds.x, -rectBounds.y);


Transferred from the Adobe Open Source Subversion Repository

Revision: 8602
Author:   dloverin@adobe.com
Date:     2009-07-15T22:06:23.142556Z

Log Message:
-----------
Fix RTE after setting baseColor.

https://bugs.adobe.com/jira/browse/SDK-21749

TitleBarSkin:
Remove items form color exclusion array. Remove “bgFill” because it is not of type DisplayObject or GraphicElement. Remove “background” because it is part of the window chrome and should be affected by baseColor.

SparkSkin:
Only process excluded objects of type DisplayObject or GraphicElement in updateDisplayList().

https://bugs.adobe.com/jira/browse/SDK-21625

Spark and Halo WindowedApplication/Window:
Update class comments and remove dead code.

QE Notes: none.
Doc Notes: none.
Bugs: SDK-21749, SDK-21625.
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/TitleBarSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -348,11 +348,11 @@
  *    autoExit="true"
  *    backgroundFrameRate="1"
  *    dockIconMenu="null"
- *    maxHeight="10000"
- *    maxWidth="10000"
+ *    maxHeight="2880 less the height of the system chrome"
+ *    maxWidth="2880 less the width of the system chrome"
  *    menu="null"
- *    minHeight="100"
- *    minWidth="100"
+ *    minHeight="dependent on the operating system and the AIR systemChrome setting"
+ *    minWidth="dependent on the operating system and the AIR systemChrome setting"
  *    showStatusBar="true"
  *    status=""
  *    systemTrayIconMenu="null"
@@ -2124,19 +2124,6 @@

     /**
      *  @private
-     *  Starts a system move.
-     */
-    private function startMove(event:MouseEvent):void
-    {
-        addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-        addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
-
-        prevX = event.stageX;
-        prevY = event.stageY;
-    }
-
-    /**
-     *  @private
      *  Starts a system resize.
      */
     protected function startResize(start:String):void
@@ -2372,14 +2359,6 @@
             startResize(edgeOrCorner);
             event.stopPropagation();
         }
-    }
-
-    /**
-     *  @private
-     */
-    private function closeButton_clickHandler(event:Event):void
-    {
-       stage.nativeWindow.close();
     }

     /**
@@ -2421,24 +2400,6 @@
         systemManager.stage.nativeWindow.addEventListener(
            NativeWindowBoundsEvent.RESIZE, window_resizeHandler);

-    }
-
-    /**
-     *  @private
-     */
-    private function mouseMoveHandler(event:MouseEvent):void
-    {
-        stage.nativeWindow.x += event.stageX - prevX;
-        stage.nativeWindow.y += event.stageY - prevY;
-    }
-
-    /**
-     *  @private
-     */
-    private function mouseUpHandler(event:MouseEvent):void
-    {
-        removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-        removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
     }

     /**


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

--- frameworks/projects/framework/src/mx/styles/CSSMergedStyleDeclaration.as
+++ frameworks/projects/framework/src/mx/styles/CSSMergedStyleDeclaration.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.styles
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22489
Author:   tkraikit@adobe.com
Date:     2011-09-10T00:46:01.305973Z

Log Message:
-----------
SDK-31442: copy Date objects in getters and setters

QE notes: none
Doc notes: ASDoc updated to note that parameters and return values are copies
Bugs: SDK-31442
Reviewer: jszeto
Tests run: checkintests, cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -470,6 +470,11 @@
     /**
      *  Maximum selectable date; only this date and dates before this date are selectable.
      *
+     *
Note that the Date object returned by the getter is a copy of
+     *  the internal Date, and the one provided to the setter is copied
+     *  internally, so modifications to these will not be reflected in the
+     *  DateSpinner.

+     *
      *  @default If maxDate is null, the value defaults to Dec 31st, 9999.
      *
      *  @langversion 3.0
@@ -478,7 +483,7 @@
      */
     public function get maxDate():Date
     {
-        return _maxDate != null ? _maxDate : MAX_DATE_DEFAULT;
+        return _maxDate != null ? new Date(_maxDate.time) : new Date(MAX_DATE_DEFAULT.time);
     }

     /**
@@ -490,7 +495,7 @@
             || (_maxDate == null && value == null))
             return;

-        _maxDate = value;
+        _maxDate = new Date(value.time);
         populateYearDataProvider = true;
         populateDateDataProvider = true;
         maxDateChanged = true;
@@ -509,6 +514,11 @@
     /**
      *  Minimum selectable date; only this date and dates after this date are selectable.
      *
+     *
Note that the Date object returned by the getter is a copy of
+     *  the internal Date, and the one provided to the setter is copied
+     *  internally, so modifications to these will not be reflected in the
+     *  DateSpinner.

+     *
      *  @default If minDate is null, the value defaults to January 1st, 1601.
      *           minDate's year should be greater than or equal to 1601 since
      *           DateTimeFormatter only supports the range from 1601 to 30827
@@ -518,7 +528,7 @@
      */
     public function get minDate():Date
     {
-        return _minDate != null ? _minDate : MIN_DATE_DEFAULT;
+        return _minDate != null ? new Date(_minDate.time) : new Date(MIN_DATE_DEFAULT.time);
     }

     /**
@@ -530,7 +540,7 @@
             || (_minDate == null && value == null))
             return;

-        _minDate = value;
+        _minDate = new Date(value.time);
         populateYearDataProvider = true;
         populateDateDataProvider = true;
         minDateChanged = true;
@@ -593,6 +603,12 @@
     [Bindable(event="valueCommit")]
     /**
      *  Date that is currently selected in the DateSpinner control.
+     *
+     *
Note that the Date object returned by the getter is a copy of
+     *  the internal Date, and the one provided to the setter is copied
+     *  internally, so modifications to these will not be reflected in the
+     *  DateSpinner. To modify the DateSpinner's date, get and modify the
+     *  current selectedDate and then re-set the selectedDate.

      *
      *  @default Current date when the DateSpinner was instantiated.
      *
@@ -603,7 +619,7 @@
      */
     public function get selectedDate():Date
     {
-        return _selectedDate;
+        return new Date(_selectedDate.time);
     }

     /**
@@ -619,11 +635,11 @@
         if (value.time == _selectedDate.time)
             return;

-        _selectedDate = value;
+        _selectedDate = new Date(value.time);
         syncSelectedDate = true;

         dispatchValueCommitEvent = true;
-
+
         invalidateProperties();
     }

@@ -656,11 +672,14 @@
     private static function get todayDate():Date
     {
         if (_todayDate != null)
-            return _todayDate;
+        {
+            // use a copy, not the original that was passed in
+            return new Date(_todayDate.time);
+        }

         return new Date();
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods


Transferred from the Adobe Open Source Subversion Repository

Revision: 18992
Author:   jszeto@adobe.com
Date:     2010-12-03T01:49:35.029980Z

Log Message:
-----------
ViewMenu RTE Bug Fix

http://bugs.adobe.com/jira/browse/SDK-28748 - RTE when ViewMenu custom skin is used

Call invalidateTargetSizeAndDisplayList()

QE notes: none
Doc notes: none
Bugs: SDK-28748
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/ViewMenuLayout.as
@@ -188,8 +188,8 @@
             return;

         _requestedMaxColumnCount = value;
-        target.invalidateSize();
-        target.invalidateDisplayList();
+
+        invalidateTargetSizeAndDisplayList();
     }

     private var rowHeight:Number = 0;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16617
Author:   cframpto@adobe.com
Date:     2010-06-22T18:36:03.069403Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

More work on measure().  For now put measuredWidth/Height back to 600/480 until I can talk to Hans.

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -68,8 +68,13 @@
     override public function get typicalLayoutElement():ILayoutElement
     {
         if (explicitTypicalLayoutElement == null)
-            typicalLayoutElement = getTypicalItemRenderer();
-
+        {
+            if ((typicalLayoutElement = getTypicalItemRenderer()) == null)
+                return null;
+        }
+
+        // Don't call this unless we know we've set it so that it doesn't
+        // generate one using the target.
         return super.typicalLayoutElement;
     }

@@ -146,8 +151,8 @@
         if (!grid)
             return;

-        var measuredWidth:Number;
-        var measuredHeight:Number;
+        var measuredWidth:Number = 0;
+        var measuredHeight:Number = 0;

         if (!isNaN(grid.explicitWidth))
         {
@@ -157,19 +162,31 @@
         {
             const columns:IList = grid.columns;
             const numColumns:int = columns ? columns.length : 0;
-            var columnCount:int;
-            for (var i:int = 0; i < numColumns; i++)
+
+            if (numColumns)
             {
-                var c:GridColumn = columns.getItemAt(i) as GridColumn;
-                if (c && c.visible)
-                    columnCount ++;
+                const defaultColumnWidth:Number =
+                    !isNaN(typicalLayoutElement.getLayoutBoundsWidth()) ?
+                    typicalLayoutElement.getLayoutBoundsWidth() :
+                    typicalLayoutElement.getPreferredBoundsWidth();
+
+                const columnGap:Number = gridDimensions.columnGap;
+
+                for (var i:int = 0; i < numColumns; i++)
+                {
+                    var c:GridColumn = columns.getItemAt(i) as GridColumn;
+                    if (c && c.visible)
+                    {
+                        if (!isNaN(c.width))
+                            measuredWidth += c.width + columnGap;
+                        else
+                            measuredWidth += defaultColumnWidth + columnGap;
+                    }
+                }
+
+                if (measuredWidth > 0)
+                    measuredWidth -= columnGap;
             }
-
-            const defaultColumnWidth:Number =
-                typicalLayoutElement.getPreferredBoundsWidth();
-            const columnGap:Number = gridDimensions.columnGap;
-
-            measuredWidth = (columnCount * (defaultColumnWidth + columnGap)) - columnGap;
         }

         if (!isNaN(grid.explicitHeight))
@@ -179,23 +196,27 @@
         else
         {
             const rowCount:int = grid.dataProvider ? grid.dataProvider.length : 0;
-            const rowGap:Number = gridDimensions.rowGap;
-            const defaultRowHeight:Number =
-                typicalLayoutElement.getPreferredBoundsHeight();
-
-            measuredHeight = rowCount * (defaultRowHeight + rowGap);
-
-            // One less row gap if there isn't a column header bar.
-            const columnHeaderBar:ColumnHeaderBar = getColumnHeaderBar();
-            if (!columnHeaderBar || !columnHeaderBar.visible)
-                measuredHeight -= rowGap;
+
+            if (rowCount)
+            {
+                const rowGap:Number = gridDimensions.rowGap;
+                const defaultRowHeight:Number =
+                    typicalLayoutElement.getPreferredBoundsHeight();
+
+                measuredHeight = rowCount * (defaultRowHeight + rowGap);
+
+                // One less row gap if there isn't a column header bar.
+                const columnHeaderBar:ColumnHeaderBar = getColumnHeaderBar();
+                if (!columnHeaderBar || !columnHeaderBar.visible)
+                    measuredHeight -= rowGap;
+            }
         }

-        // ToDo:(cframpto)  If there is a scroller without an explicit size,
-        // what should the measured size of the grid?
-
-        measuredWidth = Math.min(measuredWidth, 600);
-        measuredHeight = Math.min(measuredHeight, 480);
+        // ToDo:(cframpto) how is this suppose to work if the DataGrid
+        // doesn't have an explicit size and the measuredHeight is large?
+
+        measuredWidth = 600;
+        measuredHeight = 480;

         // Use Math.ceil() to make sure that if the content partially occupies
         // the last pixel, we'll count it as if the whole pixel is occupied.
@@ -580,9 +601,10 @@

         grid.itemRendererGroup.addElement(renderer);

-        // Initialize cell 0,0.
+        // Initialize cell 0,0.  If the column 0 has an explicit width
+        // use that.
         initializeItemRenderer(renderer, 0, 0, typicalItem, false);
-        layoutGridElement(renderer, 0, 0, NaN, NaN);
+        layoutGridElement(renderer, 0, 0, column.width, NaN);

         grid.itemRendererGroup.removeElement(renderer);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17428
Author:   cframpto@adobe.com
Date:     2010-08-20T17:38:41.133995Z

Log Message:
-----------
updateTypicalCellSizes was calling gridDimensions.setTypicalCellWidth if an explicit column width was used.

Doc that GridColumn.labelFunction needs to be an idempotent function.

QE notes: grid dimensions may change if explicit column widths - tests have been excluded already
Doc notes:
Bugs: SDK-27503, SDK-27506, SDK-27466
Reviewer: Kevin
Tests run: checkintests, cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -502,7 +502,10 @@

             var column:GridColumn = getGridColumn(columnIndex);
             if (!isNaN(column.width))
+            {
                 cellWidth = column.width;
+                gridDimensions.setTypicalCellWidth(columnIndex, cellWidth);
+            }

             if (isNaN(cellWidth) || isNaN(cellHeight))
             {
@@ -1490,7 +1493,7 @@
     {
         const rowIndex:int = grid.caretRowIndex;
         const colIndex:int = grid.caretColumnIndex;
-        const factory:IFactory = grid.caretIndicator;
+        const factory:IFactory = grid.caretIndicator;
         caretIndicator = layoutIndicator(container, factory, caretIndicator, rowIndex, colIndex);
     }

@@ -1814,7 +1817,7 @@

         if (elt is DefaultGridItemRenderer)
         {
-            if (!isNaN(width) || !isNaN(height))
+            if (!isNaN(width) || !isNaN(height))
                 elt.setLayoutBoundsSize(width, height);
             DefaultGridItemRenderer(elt).validateNow();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10941
Author:   egeorgie@adobe.com
Date:     2009-10-08T20:53:10.927001Z

Log Message:
-----------
Drag and Drop - add drag-scrolling support to Spark List. Smooth ans slick!

- Add protected drag-scrolling APIs to LayoutBase.
- Add default implementation for drag-scrolling.

QE notes: Drag-scrolling for VerticalLayout ready for testing.
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -13,17 +13,21 @@
 {
 import flash.display.DisplayObject;
 import flash.events.Event;
+import flash.events.TimerEvent;
 import flash.geom.Point;
 import flash.geom.Rectangle;
+import flash.utils.Timer;

 import mx.core.ILayoutElement;
 import mx.core.IVisualElement;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
 import mx.events.DragEvent;
+import mx.managers.DragManager;
 import mx.managers.ILayoutManagerClient;
 import mx.utils.OnDemandEventDispatcher;

+import spark.components.Group;
 import spark.components.supportClasses.GroupBase;
 import spark.core.NavigationUnit;

@@ -1378,7 +1382,15 @@
     //  Drop methods
     //
     //--------------------------------------------------------------------------
-
+
+    private var _dragScrollTimer:Timer;
+    private var _dragScrollDelta:Point;
+    private var _dragScrollEvent:DragEvent;
+    mx_internal var dragScrollRegionSize:Number = 20;
+    mx_internal var dragScrollSpeed:Number = 5;
+    mx_internal var dragScrollInterval:int = 32;
+    mx_internal var dragScrollHidesIndicator:Boolean = false;
+
     /**
      *  Calculates the LayoutDragEventDropLocation for
      *  the specified dragEvent.
@@ -1399,7 +1411,7 @@
     public function calculateDropLocation(dragEvent:DragEvent):DropLocation
     {
         // Find the drop index
-        var dropPoint:Point = target.globalToLocal(new Point(dragEvent.stageX, dragEvent.stageY));
+        var dropPoint:Point = globalToLocal(dragEvent.stageX, dragEvent.stageY);
         var dropIndex:int = calculateDropIndex(dropPoint.x, dropPoint.y);
         if (dropIndex == -1)
             return null;
@@ -1440,6 +1452,36 @@
         // only if successfully sized and positioned
         _dropIndicator.visible = false;

+        // Check for drag scrolling
+        var dragScrollElapsedTime:int = 0;
+        if (_dragScrollTimer)
+            dragScrollElapsedTime = _dragScrollTimer.currentCount * _dragScrollTimer.delay;
+
+        _dragScrollDelta = calculateDragScrollDelta(dropLocation,
+                                                    dragScrollInterval,
+                                                    dragScrollElapsedTime);
+        if (_dragScrollDelta)
+        {
+            // Update the drag-scroll event
+            _dragScrollEvent = dropLocation.dragEvent;
+
+            if (!dragScrollingInProgress())
+            {
+                // Creates a timer, immediately updates the scroll position
+                // based on _dragScrollDelta and redispatches the event.
+                startDragScrolling();
+                return;
+            }
+            else
+            {
+                if (dragScrollHidesIndicator)
+                    return;
+            }
+        }
+        else
+            stopDragScrolling();
+
+        // Show the drop indicator
         var bounds:Rectangle = calculateDropIndicatorBounds(dropLocation);
         if (!bounds)
             return;
@@ -1475,6 +1517,7 @@
      */
     public function hideDropIndicator():void
     {
+        stopDragScrolling();
         if (_dropIndicator)
             _dropIndicator.visible = false;
     }
@@ -1533,5 +1576,194 @@
     {
         return null;
     }
+
+    /**
+     *  Calculates how much to scroll for the specified dropLocation
+     *  during a drag and drop gesture.
+     *
+     *  Called by the showDropIndicator() method to figure out the
+     *  during drag-scrolling.
+     *
+     *  @param context A valid LayoutDragEventContext previously obtained
+     *  through the getDragEventContext method.
+     *
+     *  @param scrollDelta The Point to be filled with the computed scroll delta.
+     *
+     *  @param timeInterval The interval in milliseconds between two consecutive drag-scrolls.
+     *
+     *  @param timeElapsed The duration in milliseconds since the drag scrolling start.
+     *
+     *  @return How much to drag scroll, or null if drag-scrolling is not needed.
+     *
+     *  @see spark.layouts.supportClasses.DropLocation
+     *  @see #calculateDropIndex
+     *  @see #calculateDropIndicatorBounds
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    protected function calculateDragScrollDelta(dropLocation:DropLocation, timeInterval:int, timeElapsed:int):Point
+    {
+        var layoutTarget:GroupBase = target;
+        if (layoutTarget.numElements == 0)
+            return null;
+
+        var scrollRect:Rectangle = getScrollRect();
+        if (!scrollRect)
+            return null;
+
+        // Make sure that the drag-scrolling regions don't overlap
+        var horizontalRegionSize:Number = Math.min(dragScrollRegionSize, layoutTarget.width);
+        var verticalRegionSize:Number = Math.min(dragScrollRegionSize, layoutTarget.height);
+
+        var x:Number = dropLocation.dropPoint.x;
+        var y:Number = dropLocation.dropPoint.y;
+
+        // Return early if the mouse is outside of the drag-scroll region.
+        if (scrollRect.left + horizontalRegionSize < x && x < scrollRect.right - horizontalRegionSize &&
+            scrollRect.top + verticalRegionSize < y && y < scrollRect.bottom - verticalRegionSize )
+            return null;
+
+        // Speedup based on time elapsed
+        var timeSpeedUp:Number = Math.min(timeElapsed, 2000) / 2000;
+        timeSpeedUp *= 3;
+        timeSpeedUp += 1;
+        timeSpeedUp *= timeSpeedUp * dragScrollSpeed * timeInterval / 50;
+
+        var minDeltaX:Number = -scrollRect.left;
+        var minDeltaY:Number = -scrollRect.top;
+        var maxDeltaY:Number = target.contentHeight - scrollRect.bottom;
+        var maxDeltaX:Number = target.contentWidth - scrollRect.right;
+
+        var deltaX:Number = 0;
+        var deltaY:Number = 0;
+
+        if (minDeltaX != 0 && x - scrollRect.left < horizontalRegionSize)
+        {
+            // Scroll left
+            deltaX = 1 - (x - scrollRect.left) / horizontalRegionSize;
+            deltaX *=  deltaX * timeSpeedUp;
+            deltaX = -Math.round(deltaX) - 1;
+        }
+        else  if (maxDeltaX != 0 && scrollRect.right - x < horizontalRegionSize)
+        {
+            // Scroll right
+            deltaX = 1 - (scrollRect.right - x) / horizontalRegionSize;
+            deltaX *= deltaX * timeSpeedUp;
+            deltaX = Math.round(deltaX) + 1;
+        }
+
+        if (minDeltaY != 0 && y - scrollRect.top < verticalRegionSize)
+        {
+            // Scroll up
+            deltaY = 1 - (y - scrollRect.top) / verticalRegionSize;
+            deltaY *=  deltaY * timeSpeedUp;
+            deltaY = -Math.round(deltaY) - 1;
+        }
+        else  if (maxDeltaY != 0 && scrollRect.bottom - y < verticalRegionSize)
+        {
+            // Scroll down
+            deltaY = 1 - (scrollRect.bottom - y) / verticalRegionSize;
+            deltaY *= deltaY * timeSpeedUp;
+            deltaY = Math.round(deltaY) + 1;
+        }
+
+        deltaX = Math.max(minDeltaX, Math.min(maxDeltaX, deltaX));
+        deltaY = Math.max(minDeltaY, Math.min(maxDeltaY, deltaY));
+
+        if (deltaX == 0 && deltaY == 0)
+            return null;
+        return new Point(deltaX, deltaY);
+    }
+
+    /**
+     *  @private
+     *  True if the drag-scroll timer is running.
+     */
+    private function dragScrollingInProgress():Boolean
+    {
+        return _dragScrollTimer != null;
+    }
+
+    /**
+     *  @private
+     *  Starts the drag-scroll timer.
+     */
+    private function startDragScrolling():void
+    {
+        if (_dragScrollTimer)
+            return;
+
+        // Setup the timer to handle the subsequet scrolling
+        _dragScrollTimer = new Timer(dragScrollInterval);
+        _dragScrollTimer.addEventListener(TimerEvent.TIMER, dragScroll);
+        _dragScrollTimer.start();
+
+        // Scroll once on start. Scroll after the _dragScrollTimer is
+        // initialized to prevent stack overflow as a new event will be
+        // dispatched to the list and it may try to start drag scrolling
+        // again.
+        dragScroll(null);
+    }
+
+    /**
+     *  @private
+     *  Updates the scroll position and dispatches a DragEvent.
+     */
+    private function dragScroll(event:TimerEvent):void
+    {
+        // Scroll the target
+        horizontalScrollPosition += _dragScrollDelta.x;
+        verticalScrollPosition += _dragScrollDelta.y;
+
+        // Validate target before dispatching the event
+        target.validateNow();
+
+        // Re-dispatch the event so that the drag initiator handles it as if
+        // the DragProxy is dispatching in response to user input.
+        var dragEvent:DragEvent = _dragScrollEvent;
+        dragEvent.target.dispatchEvent(dragEvent);
+    }
+
+    /**
+     *  @private
+     *  Stops the drag-scroll timer.
+     */
+    private function stopDragScrolling():void
+    {
+        if (_dragScrollTimer)
+        {
+            _dragScrollTimer.stop();
+            _dragScrollTimer.removeEventListener(TimerEvent.TIMER, dragScroll);
+            _dragScrollTimer = null;
+        }
+
+        _dragScrollEvent = null;
+        _dragScrollDelta = null;
+    }
+
+    /**
+     *  @private
+     *  Work-around the Player globalToLocal and scrollRect changing before
+     *  a frame is updated.
+     */
+    private function globalToLocal(x:Number, y:Number):Point
+    {
+        var layoutTarget:GroupBase = target;
+        var parent:DisplayObject = layoutTarget.parent;
+        var local:Point = parent.globalToLocal(new Point(x, y));
+        local.x -= layoutTarget.x;
+        local.y -= layoutTarget.y;
+
+        var scrollRect:Rectangle = getScrollRect();
+        if (scrollRect)
+        {
+            local.x += scrollRect.x;
+            local.y += scrollRect.y;
+        }
+        return local;
+    }
 }
 }


code cleanup

code cleanup

Change-Id: I047d8bab9ea9db2953e1539fb94b5001c8f3ed1b

--- WeaveUI/src/weave/application/SearchEngineUtils.as
+++ WeaveUI/src/weave/application/SearchEngineUtils.as
@@ -67,45 +67,36 @@

 			destinationContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, handleContextMenuOpened);

-			addSearchQueryContextMenuItem(<recordQuery queryServiceName=" "	rootURL=""/>, destination);
+			addSearchQueryContextMenuItem(destination);

 			return true;
 		}

 		private static var _searchQueryContextMenuItems:Array = [];
 		// Add a context menu item for searching for a given probed record in a search engine.
-		public static function addSearchQueryContextMenuItem(description:XML, destination:DisplayObject):void
+		public static function addSearchQueryContextMenuItem(destination:DisplayObject):void
 		{
 			if(!destination.hasOwnProperty("contextMenu") )
 				return;

 			var destinationContextMenu:ContextMenu = destination["contextMenu"] as ContextMenu;
-

-			// When set, includeData will put the data descriptors shown in probing into the search criteria
-			var includeData:Boolean     = description.@includeData != undefined;
-			// Service name is what is shown to the user in the context menu so they know what engine they are seaching with
-			var serviceName:String      = description.@queryServiceName;
-			// Separator before allows a separator to be added to cre
-			var separatorBefore:Boolean = description.@separatorBefore != undefined;
-
-
-			var sq:ContextMenuItem = CustomContextMenuManager.createAndAddMenuItemToDestination(
-					"Search for record" + (includeData ? " and data" : "") + " online" + serviceName,
+			var cmi:ContextMenuItem = CustomContextMenuManager.createAndAddMenuItemToDestination(
+					"Search for record online",
 					destination,
 					handleSearchQueryContextMenuItemSelect,
 					"2 searchMenuItems"
 				);
-			_searchQueryContextMenuItems.push( {contextMenu:sq, description:description} );
+			_searchQueryContextMenuItems.push(cmi);
 		}

 		private static function handleContextMenuOpened(event:ContextMenuEvent):void
 		{
 			copySessionState(_globalProbeKeySet, _localProbeKeySet);

-			for each (var c:Object in _searchQueryContextMenuItems)
+			for each (var cmi:ContextMenuItem in _searchQueryContextMenuItems)
 			{
-				(c.contextMenu as ContextMenuItem).enabled = _localProbeKeySet.keys.length > 0;
+				cmi.enabled = _localProbeKeySet.keys.length > 0;
 			}
 		}

@@ -116,12 +107,11 @@
 				return;
 			// get first line of text only
 			var query:String = probeText.split('\n')[0];
-			for each(var c:Object in _searchQueryContextMenuItems)
+			for each(var cmi:ContextMenuItem in _searchQueryContextMenuItems)
 			{
-				var currentContextMenuItem:ContextMenuItem = (c.contextMenu as ContextMenuItem);
-				if(currentContextMenuItem  == event.currentTarget)
+				if(cmi == event.currentTarget)
 				{
-					if(currentContextMenuItem.enabled)
+					if(cmi.enabled)
 					{
 						var combobox:CustomComboBox = new CustomComboBox(); //ComboBox to hold the service names
 						var urlAlert:AlertTextBox = AlertTextBox.show("Custom URL",null);


Fixed bug when hitting ENTER with empty dataProvider had raised RTE https://github.com/JabbyPanda/InputAssist/issues/2

--- src/com/jabbypanda/controls/InputAssist.as
+++ src/com/jabbypanda/controls/InputAssist.as
@@ -349,7 +349,9 @@

         private function acceptCompletion() : void {
             var proposedSelectedItem : Object;
-            if (_collection.length > 0 && list.selectedIndex >= 0) {
+            if (_collection &&
+                _collection.length > 0 &&
+                list.selectedIndex >= 0) {
                 _completionAccepted = true;
                 proposedSelectedItem = _collection.getItemAt(list.selectedIndex);
             }
@@ -479,8 +481,9 @@
                 case Keyboard.PAGE_DOWN:
                     list.focusListUponKeyboardNavigation(event);
                     break;
-                case Keyboard.ENTER:
+                case Keyboard.ENTER:
                     acceptCompletion();
+
                     break;
                 case Keyboard.TAB:
                 case Keyboard.ESCAPE:
@@ -500,8 +503,6 @@
         }

         private function onMouseWheel(event : MouseEvent) : void {
-
-            trace ("event.target=", event.target);
             if (!(DisplayObjectContainer(list).contains(DisplayObject(event.target)) && event.isDefaultPrevented())) {
                 hidePopUp();
             }


avoiding error with updateTask() after url request was cancelled

--- WeaveData/src/weave/services/URLRequestUtils.as
+++ WeaveData/src/weave/services/URLRequestUtils.as
@@ -514,7 +514,8 @@

 	private function handleProgressUpdate(event:Event):void
 	{
-		WeaveAPI.ProgressIndicator.updateTask(_asyncToken, bytesLoaded / bytesTotal);
+		if (WeaveAPI.ProgressIndicator.hasTask(_asyncToken))
+			WeaveAPI.ProgressIndicator.updateTask(_asyncToken, bytesLoaded / bytesTotal);
 	}

 	private var _resumeFunc:Function = null;


fixed bugs in flashvar handling

fixed bugs in flashvar handling

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -32,7 +32,6 @@
 	import flash.net.FileReference;
 	import flash.net.SharedObject;
 	import flash.net.URLRequest;
-	import flash.net.URLVariables;
 	import flash.net.navigateToURL;
 	import flash.system.Capabilities;
 	import flash.ui.ContextMenu;
@@ -365,7 +364,7 @@

 		private function handleFlashVarPresentation():void
 		{
-			var presentationMode:Boolean = StandardLib.asBoolean(_flashVars['presentation'] as String);
+			var presentationMode:Boolean = StandardLib.asBoolean(_flashVars['presentation']);
 			Weave.history.enableLogging.value = !presentationMode;
 		}

@@ -394,7 +393,7 @@
 		}
 		private function getFlashVarRecover():Boolean
 		{
-			return StandardLib.asBoolean(_flashVars['recover'] as String);
+			return StandardLib.asBoolean(_flashVars['recover']);
 		}

 		/**
@@ -412,7 +411,7 @@
 		{
 			var name:String = 'editable';
 			if (_flashVars.hasOwnProperty(name))
-				return StandardLib.asBoolean(_flashVars[name] as String);
+				return StandardLib.asBoolean(_flashVars[name]);
 			return undefined;
 		}


test disconnect

test disconnect

--- src/org/puremvc/as3/multicore/utilities/pipes/plumbing/FilterTest.as
+++ src/org/puremvc/as3/multicore/utilities/pipes/plumbing/FilterTest.as
@@ -36,7 +36,7 @@
  		{
    			var ts:TestSuite = new TestSuite();

-   			ts.addTest( new FilterTest( "testConnectingIOPipes" ) );
+   			ts.addTest( new FilterTest( "testConnectingAndDisconnectingIOPipes" ) );
    			ts.addTest( new FilterTest( "testFilteringNormalMessage" ) );
    			ts.addTest( new FilterTest( "testBypassAndFilterModeToggle" ) );
    			ts.addTest( new FilterTest( "testSetParamsByControlMessage" ) );
@@ -46,9 +46,9 @@

   		/**
-  		 * Test connecting input and output pipes to a filter.
-  		 */
-  		public function testConnectingIOPipes():void
+  		 * Test connecting input and output pipes to a filter as well as disconnecting the output.
+  		 */
+  		public function testConnectingAndDisconnectingIOPipes():void
   		{

   			// create output pipes 1
@@ -70,6 +70,10 @@
    			assertTrue( "Expecting filter is Filter", filter is Filter );
    			assertTrue( "Expecting connected input", connectedInput );
    			assertTrue( "Expecting connected output", connectedOutput );
+
+   			// disconnect pipe 2 from filter
+   			var disconnectedPipe:IPipeFitting = filter.disconnect();
+   			assertTrue( "Expecting disconnected pipe2 from filter", disconnectedPipe === pipe2 );
    		}


adding a dependency fail test

adding a dependency fail test

--- tests/source/classes/potato/modules/dependencies/DependenciesTest.as
+++ tests/source/classes/potato/modules/dependencies/DependenciesTest.as
@@ -8,6 +8,21 @@

 	public class DependenciesTest
 	{
+
+        private var dep:Dependencies;
+
+        public function get asyncHandler():Function{
+            var handleComplete:Function = function(e:Event, x:*):void{
+                trace("done");
+            };
+            return Async.asyncHandler( this, handleComplete, 5000, null, handleTimeout );
+        }
+        public function errorHandler(e:ErrorEvent):void{
+            Assert.fail(e.toString());
+        }
+        public function handleTimeout(e:Event):void{
+            Assert.fail("timeout");
+        }

 		[Test(async)]
 		public function dependenciesFromConfig():void
@@ -22,23 +37,31 @@
 			cfg.interpolationValues = {basePath: "."};

 			var dep:Dependencies = new Dependencies(cfg);
-			Async.proceedOnEvent( this, dep, Event.COMPLETE );
-			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
-			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
+            dep.addEventListener(Event.COMPLETE, asyncHandler);
+            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
 			dep.load();

 		}
-
+
 		[Test(async)]
 		public function dependenciesFromManuallyAdding():void
 		{
 			var dep:Dependencies = new Dependencies();
-			Async.proceedOnEvent( this, dep, Event.COMPLETE );
-			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
-			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
+            dep.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
 			dep.addItem("./dummy.swf");
 			dep.addItem("./dummy.swf", {id: "dummy2"});
+			dep.load();
+		}
+
+		[Test(async)]
+		public function dependenciesFailed():void
+		{
+			var dep:Dependencies = new Dependencies();
+            dep.addEventListener(ErrorEvent.ERROR, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, Event.COMPLETE);
+			dep.addItem("./dummye.swf");
 			dep.load();
 		}

@@ -55,9 +78,8 @@
 			cfg.interpolationValues = {basePath: "."};

 			var dep:Dependencies = new Dependencies(cfg);;
-			Async.proceedOnEvent( this, dep, Event.COMPLETE );
-			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
-			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
+            dep.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
 			dep.addItem("./dummy.swf");
 			dep.addItem("./dummy.swf", {id: "dummy2"});
 			dep.load();
@@ -67,15 +89,9 @@
 		public function dependenciesEmpty():void
 		{
 			var dep:Dependencies = new Dependencies();
-			Async.proceedOnEvent( this, dep, Event.COMPLETE );
-			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
-			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
+            dep.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
 			dep.load();
-		}
-
-		public function onDepsLoadComplete(e:Event):void
-		{
-			Assert.assertEquals(1,1);
 		}

 	}


F Bug in Group.getDescendantsByName

F Bug in Group.getDescendantsByName

--- src/aerys/minko/scene/node/Group.as
+++ src/aerys/minko/scene/node/Group.as
@@ -377,7 +377,7 @@
 				var group : Group = _children[i] as Group;

 				if (group)
-					descendant = group.getDescendantByName(name, descendants);
+					group.getDescendantsByName(name, descendants);
 			}

 			return descendants;


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

--- frameworks/projects/framework/src/mx/events/ChildExistenceChangedEvent.as
+++ frameworks/projects/framework/src/mx/events/ChildExistenceChangedEvent.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.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 16507
Author:   chiedozi@adobe.com
Date:     2010-06-09T20:03:51.811780Z

Log Message:
-----------
Fixed a small memory leak related to dataProvider in ButtonBar, ButtonBarBase, ListBase and AsyncListView

QE notes: None
Doc notes: None
Bugs: SDK-26669
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/AsyncListView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -302,7 +302,7 @@
         // the base class setter if the dataGroup already exists.  If the dataGroup isn't
         // created yet, then we still be first.
         if (value)
-            value.addEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler);
+            value.addEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler, false, 0, true);

         super.dataProvider = value;
         invalidateProperties();


Transferred from the Adobe Open Source Subversion Repository

Revision: 5124
Author:   cframpto@adobe.com
Date:     2009-03-02T13:20:23.924509Z

Log Message:
-----------
Optimize the number of times text has to be composed.  It's preferred to clip already composed text, rather than recomposing the text.

All 480 mustella GraphicTags tests still pass.

QE Notes: yes, this will need extensive testing, and I can give you test cases, but we should do it at the same time we test the new clipping code
Doc Notes:
Bugs: SDK-18746
Reviewers: Gordon

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -19,6 +19,8 @@
 import flash.events.Event;
 import flash.geom.Rectangle;
 import flash.text.engine.TextLine;
+
+import flashx.textLayout.formats.LineBreak;

 import mx.core.mx_internal;
 import mx.resources.IResourceManager;
@@ -125,6 +127,17 @@
      *  because Player 10.0 allocates a surface even in this case.
      */
     mx_internal var hasScrollRect:Boolean = false;
+
+    /**
+     *  @private
+     */
+    mx_internal var stylesChanged:Boolean = false;
+
+    /**
+     *  @private
+     *  Cache this since it accessed for every display list update.
+     */
+    mx_internal var lineBreakToFit:Boolean = true;

     //--------------------------------------------------------------------------
     //
@@ -479,10 +492,90 @@

         composeTextLines(explicitWidth, explicitHeight);

-        measuredWidth = Math.ceil(mx_internal::bounds.width);
-        measuredHeight = Math.ceil(mx_internal::bounds.height);
+        // If width/height not explicitly set, put on next pixel boundary for
+        // crisp edges.  This should not impact isOverset which was calculated
+        // with the pre-adjusted bounds values.  If explcitly set, use it so
+        // that a recomposition can possibily be avoided in updateDisplayList().
+        if (mx_internal::bounds.width != explicitWidth)
+            mx_internal::bounds.width = Math.ceil(mx_internal::bounds.width);
+
+        measuredWidth = mx_internal::bounds.width;
+
+        if (mx_internal::bounds.height != explicitHeight)
+            mx_internal::bounds.height = Math.ceil(mx_internal::bounds.height);
+
+        measuredHeight = mx_internal::bounds.height;
+
+        //trace("measure", measuredWidth, measuredHeight);
     }

+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        //trace(updateDisplayList", unscaledWidth, unscaledHeight);
+
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        // The updateDisplayList() method of a GraphicElement can get called
+        // when its style chain hasn't been initialized.
+        // In that case, composeTextLines() must not be called.
+        if (!mx_internal::styleChainInitialized)
+            return;
+
+        // Figure out if a compose is needed or maybe just clip what is already
+        // composed.
+
+        var compose:Boolean = false;
+        var forceClip:Boolean = false;
+
+        if (mx_internal::stylesChanged ||
+           isNaN(mx_internal::bounds.height) ||
+           (unscaledHeight > mx_internal::bounds.height &&
+           mx_internal::isOverset))
+        {
+            // Style changed, composition hasn't been done or it has been done
+            // but more height is needed and it's possible there is more text
+            // to compose since it didn't all fit before.
+            compose = true;
+        }
+        else if (mx_internal::lineBreakToFit)
+        {
+            // toFit line breaks so compose if width isn't the same.
+            if (unscaledWidth != mx_internal::bounds.width)
+                compose = true;
+        }
+        else
+        {
+            // explicit line breaks so compose only if more width is needed and
+            // there is more text to compose.
+            if (unscaledWidth > mx_internal::bounds.width &&
+                mx_internal::isOverset)
+            {
+                compose = true;
+            }
+        }
+
+        if (compose)
+        {
+            // Compose and clip based on value of isOverset.
+            composeTextLines(unscaledWidth, unscaledHeight);
+        }
+        else if (unscaledHeight != mx_internal::bounds.height ||
+                 unscaledWidth != mx_internal::bounds.width)
+        {
+            // Don't need to recompose but need to clip since the text is
+            // a different shape than what was composed.
+            forceClip = true;
+        }
+
+        //trace("udl", "compose", compose, "clip", mx_internal::isOverset || forceClip);
+
+        mx_internal::clip(unscaledWidth, unscaledHeight, forceClip);
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods: ISimpleStyleClient
@@ -500,6 +593,14 @@
     public function styleChanged(styleProp:String):void
     {
         StyleProtoChain.styleChanged(this, styleProp);
+
+        if (styleProp == "lineBreak")
+        {
+            mx_internal::lineBreakToFit =
+                (getStyle("lineBreak") == LineBreak.TO_FIT);
+        }
+
+        mx_internal::stylesChanged = true;
     }

     //--------------------------------------------------------------------------
@@ -674,6 +775,9 @@
      */
     public function stylesInitialized():void
     {
+        mx_internal::lineBreakToFit =
+            (getStyle("lineBreak") == LineBreak.TO_FIT);
+        mx_internal::stylesChanged = true;
     }

     /**
@@ -719,6 +823,8 @@

 		var r:Rectangle = container.getBounds(container);
 		mx_internal::isOverset = !mx_internal::bounds.containsRect(r);
+
+	    //trace("bounds", mx_internal::bounds, "r", r, mx_internal::isOverset);
 	}

 	/**
@@ -759,9 +865,9 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    mx_internal function clip(w:Number, h:Number):void
+    mx_internal function clip(w:Number, h:Number, forceClip:Boolean=false):void
 	{
-        if (mx_internal::isOverset)
+        if (mx_internal::isOverset || forceClip)
         {
             var r:Rectangle = displayObject.scrollRect;
             if (r)


Transferred from the Adobe Open Source Subversion Repository

Revision: 7746
Author:   cframpto@adobe.com
Date:     2009-06-11T14:21:27.549870Z

Log Message:
-----------
Remove optimization that was incorrect.  I already removed it from SimpleText.  The correct optimization was folded into updateDisplayList().

Add a comment for doc to TextGraphicElement.

QA Notes:
Doc Notes:
Bugs:
Reviewers: Gordon

Modified Paths:
--------------
<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/flex4/src/spark/primitives/RichText.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -540,6 +540,7 @@

     /**
      *  Documentation is not currently available.
+     *  This property is ignored if lineBreak="explicit".
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


fixed few typos

fixed few typos

--- actionscript/src/com/freshplanet/ane/AirNativeShare/AirNativeShare.as
+++ actionscript/src/com/freshplanet/ane/AirNativeShare/AirNativeShare.as
@@ -48,7 +48,7 @@

 		/**
 		 * AirNativeShare instance
-		 * @return AirFlurry instance
+		 * @return AirNativeShare instance
 		 */
 		public static function get instance() : AirNativeShare {
 			return _instance ? _instance : new AirNativeShare();
@@ -56,7 +56,7 @@

 		/**
-		 *
+		 * Show share dialog
 		 * @param itemsToShare items must be a string or BitmapData
 		 */
 		public function showShare( itemsToShare:Array ) : void {


Implement flash.utils.setTimeout() and friends. We don't use them, but user code surely does. Is it kosher to instantiate a lookup table like this, right in the global context? Is it private to my code?

--- tamarin-central/thane/thane_core.as
+++ tamarin-central/thane/thane_core.as
@@ -120,6 +120,7 @@
 package flash.utils {

 import flash.events.EventDispatcher;
+import flash.events.TimerEvent;

 import avmplus.*;

@@ -139,9 +140,56 @@
     throw new Error("Not implemented");
 }

+var timers :Dictionary = new Dictionary();
+var timerIx :uint = 1;
+
+public function setTimeout (closure :Function, delay :Number, ... arguments) :uint
+{
+    return createTimer(closure, delay, true, arguments);
+}
+
+public function setInterval (closure :Function, delay :Number, ... arguments) :uint
+{
+    return createTimer(closure, delay, false, arguments);
+}
+
+public function clearTimeout (id :uint): void
+{
+    destroyTimer(id);
+}
+
+public function clearInterval (id :uint): void
+{
+    destroyTimer(id);
+}
+
 public function getTimer () :int
 {
     return System.getTimer();
+}
+
+function createTimer (closure :Function, delay :Number, timeout :Boolean, ... arguments) :uint
+{
+    var timer :Timer = new Timer(delay, timeout ? 1 : 0);
+    var fun :Function = function (event :TimerEvent) :void {
+        if (timeout) {
+            destroyTimer(timerIx);
+        }
+        closure.apply(null, arguments);
+    };
+    timer.addEventListener(TimerEvent.TIMER, fun);
+    timers[timerIx] = [ timer, fun ];
+    return timerIx ++;
+}
+
+function destroyTimer (id :uint) :void
+{
+    var bits :Array = timers[id];
+    if (bits) {
+        bits[0].removeEventListener(TimerEvent.TIMER, bits[1]);
+        bits[0].stop();
+        delete timers[id];
+    }
 }

 public interface IDataInput


Transferred from the Adobe Open Source Subversion Repository

Revision: 10545
Author:   aharui@adobe.com
Date:     2009-09-23T20:33:21.208619Z

Log Message:
-----------
Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts

QE Notes: 2 Mustella tests fail:
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios

Doc Notes: None
Bugs: SDK-15241
Reviewer: Darrell
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -1334,6 +1334,8 @@

         updateSortIndexAndDirection();

+        fontContextChanged = true;
+        invalidateProperties();
         itemsSizeChanged = true;
         invalidateDisplayList();
         dispatchEvent(new Event("columnsChanged"));
@@ -1848,7 +1850,22 @@
      */
     override protected function commitProperties():void
     {
+        var c:DataGridColumn;
+        var n:int;
+        var j:int;
+
         super.commitProperties();
+
+        if (fontContextChanged)
+        {
+            fontContextChanged = false;
+            n = columns.length;
+            for (j = 0; j < n; j++)
+            {
+                c = columns[j];
+                c.determineFontContext();
+            }
+        }

         if (itemsNeedMeasurement)
         {
@@ -1867,10 +1884,9 @@

                     var data:Object = iterator.current;
                     var item:IListItemRenderer;
-                    var c:DataGridColumn;
                     var ch:Number = 0;
-                    var n:int = columns.length;
-                    for (var j:int = 0; j < n; j++)
+                    n = columns.length;
+                    for (j = 0; j < n; j++)
                     {
                         c = columns[j];

@@ -1888,18 +1904,18 @@
                     setRowHeight(Math.max(ch, 20));
                 }
                 else
-                    {
+                {
                     setRowHeight(20);
-            }
+                }

-                    // If we don't have data yet or any column info we
-                    // want to make sure to make another measurement pass when
-                    // we eventually do have valid data.
-                    if (!collection || collection.length == 0 || columns.length == 0)
-                        itemsNeedMeasurement = true;
-        }
-    }
-        }
+            // If we don't have data yet or any column info we
+            // want to make sure to make another measurement pass when
+            // we eventually do have valid data.
+            if (!collection || collection.length == 0 || columns.length == 0)
+                itemsNeedMeasurement = true;
+            }
+        }
+    }

     /**
      *  @private
@@ -5651,6 +5667,15 @@
         }
     }

+    /**
+     *  @private
+     */
+    override public function regenerateStyleCache(recursive:Boolean):void
+    {
+        super.regenerateStyleCache(recursive);
+        fontContextChanged = true;
+        invalidateProperties();
+    }
 }

 }


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

--- frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as
+++ frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.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.collections
 {


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

--- frameworks/projects/automation/src/mx/automation/codec/KeyModifierPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/KeyModifierPropertyCodec.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.automation.codec
 {