webgl draw line

webgl draw line

--- src/flash/__native/GLPath2D.as
+++ src/flash/__native/GLPath2D.as
@@ -49,10 +49,11 @@
 					var pathplen:int = plen / 2;
 					//line
 					if (isDrawline&&pathplen>=2){
-						nump += pathplen * 4;
 						if (isClosePath){
+							nump += pathplen * 8;
 							numi += pathplen * 6;
 						}else{
+							nump += (pathplen-1) * 8;
 							numi += (pathplen-1) * 6;
 						}
 					}
@@ -129,7 +130,7 @@
 					if (hw<=0){
 						hw = .5;
 					}
-					// todo : 添加stroke
+					// todo : 1pixel width line no need JointStyle
 					var lcolorv = gl.strokeStyle;
 					for (i = 0; i < len; i++ ){
 						var poly:MemArray = polys.array[i];
@@ -139,33 +140,48 @@
 						var plendiv2:int = plen / 2;
 						if(plendiv2>=2){
 							for (var j:int = 0; j < plendiv2; j++ ){
-								var x0:Number = poly.array[2 * j] as Number;
-								var y0:Number = poly.array[2 * j + 1] as Number;
-								if (j==0){
-									var x1:Number = poly.array[plen - 2];
-									var y1:Number = poly.array[plen - 1];
-								}else{
-									x1 = poly.array[2 * j - 2];
-									y1 = poly.array[2 * j - 1];
-								}
-
-								color[pi/2] = lcolorv;
-								pos[pi++] = x0+hw;
-								pos[pi++] = y0+hw;
-								color[pi/2] = lcolorv;
-								pos[pi++] = x0-hw;
-								pos[pi++] = y0 - hw;
-
 								if (j != 0 || isClosePath){
-									var a:int = offset + 2 * j;
-									var b:int = offset + 2 * j + 1;
+									var x0:Number = poly.array[2 * j] as Number;
+									var y0:Number = poly.array[2 * j + 1] as Number;
 									if (j==0){
-										var c:int = offset + plen - 2;
-										var d:int = offset + plen - 1;
+										var x1:Number = poly.array[plen - 2];
+										var y1:Number = poly.array[plen - 1];
 									}else{
-										c = offset + 2 * j - 2;
-										d = offset + 2 * j - 1;
+										x1 = poly.array[2 * j - 2];
+										y1 = poly.array[2 * j - 1];
 									}
+
+									/////////////////////
+									var dy:Number = x1 - x0;
+									var dx:Number = y1 - y0;
+									var distance:Number = Math.sqrt(dx * dx + dy * dy);
+									dx *= hw/distance;
+									dy *= -hw/distance;
+
+									/////////////////////
+
+									color[pi/2] = lcolorv;
+									pos[pi++] = x0+dx;
+									pos[pi++] = y0+dy;
+									color[pi/2] = lcolorv;
+									pos[pi++] = x0-dx;
+									pos[pi++] = y0 - dy;
+									color[pi/2] = lcolorv;
+									pos[pi++] = x1+dx;
+									pos[pi++] = y1+dy;
+									color[pi/2] = lcolorv;
+									pos[pi++] = x1-dx;
+									pos[pi++] = y1 - dy;
+
+									var a:int = offset;
+									var b:int = offset + 1;
+									//if (j==0){
+									//	var c:int = offset + plen - 2;
+									//	var d:int = offset + plen - 1;
+									//}else{
+										var c:int = offset + 2;
+										var d:int = offset+ 3;
+									//}

 									index[ii++] = a;
@@ -174,9 +190,10 @@
 									index[ii++] = b;
 									index[ii++] = d;
 									index[ii++] = c;
+									offset += 4;
 								}
 							}
-							offset += j * 4;
+							//offset += j * 8;
 						}
 					}


Transferred from the Adobe Open Source Subversion Repository

Revision: 153
Author:   proberts@adobe.com
Date:     2008-01-10T20:22:23.867658Z

Log Message:
-----------
Severity: ignore
Description: docs update -- added @productVersion tag to Flex AIR classes' class descriptions.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/airframework/src/mx/events/AIREvent.as
+++ frameworks/projects/airframework/src/mx/events/AIREvent.as
@@ -21,6 +21,8 @@
  *
  *  @see mx.core.Window
  *  @see mx.core.WindowedApplication
+ *
+ *  @productversion Apollo 1.0
  */
 public class AIREvent extends Event
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8114
Author:   mhorn@adobe.com
Date:     2009-06-23T20:39:31.378209Z

Log Message:
-----------
minor asdoc fix

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as

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

--- frameworks/projects/framework/src/mx/styles/CSSSelector.as
+++ frameworks/projects/framework/src/mx/styles/CSSSelector.as
@@ -36,11 +36,13 @@
      *
      *  @param subject The plain representation of this selector without
      *  conditions or ancestors.
-     *  @param conditions  An optional Array of conditions used to match a
+     *
+     *  @param conditions  An optional Array of type CSSCondition that is used to match a
      *  subset of component instances. Currently only a single or a pair of
+     *  conditions are supported.
+     *
      *  @param ancestor An optional selector to match on a component that
      *  descends from an arbitrary ancestor.
-     *  conditions are supported.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Fixed issue with data grid using an array of strings creating a column called length

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -4757,7 +4757,39 @@
     //  Item Editor Methods
     //
     //--------------------------------------------------------------------------
-
+
+	/**
+	 *  Returns true if a datagrid cell is editable.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 *
+	 */
+	protected function isCellEditable(rowIndex:int, columnIndex:int):Boolean
+	{
+		var dataItem:Object = dataProvider.getItemAt(rowIndex);
+		var column:GridColumn = GridColumn(columns.getItemAt(columnIndex));
+		var dataField:String = column.dataField;
+
+		return isDataEditable(dataItem, dataField);
+	}
+
+	/**
+	 *  Override to make a datagrid cell editabe based on the data item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2.5
+	 *  @productversion Flex 4.5
+	 *
+	 */
+	protected function isDataEditable(dataItem:Object, dataField:String):Boolean
+	{
+		return (dataItem != null);
+	}
+
     /**
      *  Starts an editor session on a selected cell in the grid. This method
      *  by-passes checks of the editable property on the DataGrid and GridColumn
@@ -4788,7 +4820,7 @@
      */
     public function startItemEditorSession(rowIndex:int, columnIndex:int):Boolean
     {
-        if (editor)
+        if (editor && isCellEditable(rowIndex,columnIndex))
             return editor.startItemEditorSession(rowIndex, columnIndex);

         return false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18451
Author:   klin@adobe.com
Date:     2010-11-04T20:21:30.147070Z

Log Message:
-----------
Fix for two DataGrid caret-related bugs. First, we now leave the caret alone when selecting all cells or rows. Second, GridLayout only hides the caret based on the showCaret property. It change the caret to be visible if the caret is already determined not to be visible.

QE notes: No
Doc notes: No
Bugs: SDK-27934, SDK-28207
Reviewer: Carol
Tests run: cyclone server
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -1909,7 +1909,7 @@
      */
     private function selectAllFromKeyboard():void
     {
-        // Caret is not required for selectAll operation.
+        // If there is a caret, leave it in its current position.
         if (selectionMode == GridSelectionMode.MULTIPLE_CELLS ||
             selectionMode == GridSelectionMode.MULTIPLE_ROWS)
         {
@@ -1919,7 +1919,6 @@

             grid.anchorRowIndex = 0;
             grid.anchorColumnIndex = 0;
-            commitCaretPosition(-1, -1);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2581
Author:   jimurphy@adobe.com
Date:     2008-07-23T13:59:58.831267Z

Log Message:
-----------
integrate:
vellum build 131
flash player build 551
-Gordons fix in frogger for the vellum API changes
  frameworks/projects/flex4/src/flex/component/TextView.as
  frameworks/projects/flex4/src/flex/graphics/TextGraphic.as
  frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextFlowComposer.as

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_importExport.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/install_flash_player_10_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_model.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/win/FlashPlayer.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/mac/Flash Player.app.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/text_edit.swc</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -121,7 +121,7 @@
 		}
 		else
 		{
-			var r:Rectangle = textFlowComposer.actualBounds;
+			var r:Rectangle = textFlowComposer.bounds;
 			w = Math.ceil(r.width);
 			h = Math.ceil(r.height);
 		}
@@ -723,15 +723,15 @@
 	/**
 	 *  @private
 	 */
-	private function compose(width:Number = Infinity,
-							 height:Number = Infinity):void
+	private function compose(width:Number = NaN,
+							 height:Number = NaN):void
 	{
 		textFlow = createTextFlow();
 		_content = textFlow;

 		textFlowComposer.removeTextLines(DisplayObjectContainer(displayObject));

-		var bounds:Rectangle = textFlowComposer.requestedBounds;
+		var bounds:Rectangle = textFlowComposer.bounds;
 		bounds.x = 0;
 		bounds.y = 0;
 		bounds.width = width;


Added class comment about automatic injections occurring after the view components are added to the stage. Perhaps this is an implementation detail though and should be moved to the ViewMap

--- src/org/robotlegs/core/IViewMap.as
+++ src/org/robotlegs/core/IViewMap.as
@@ -10,7 +10,7 @@
 	import flash.display.DisplayObjectContainer;

 	/**
-	 * The Robotlegs ViewMap contract
+	 * The Robotlegs ViewMap contract. All IViewMap automatic injections occur AFTER the view components are added to the stage.
 	 */
 	public interface IViewMap
 	{


Another try...move int outside the check for m3u8 since it might be looking for either that, or a .ts segment.  In either instance, something like a 400 error is a done deal.

--- HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPHLSNetStream.as
+++ HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPHLSNetStream.as
@@ -1210,30 +1210,27 @@
 			{
 				if(_source is HTTPHLSStreamSource)
 				{
-					if(event.url.match(/.m3u8/))
-					{
-						var httpCode:int = parseInt(event.reason);
-						if( !isNaN(httpCode) && httpCode >= 400 )
-						{
-							// There's no point in retrying--some 400 level error, which is something bunk client-side.
-							dispatchEvent( new NetStatusEvent( NetStatusEvent.NET_STATUS, false, false, {code:event.reason, level:"error", details:event.url}));
+					var httpCode:int = parseInt(event.reason);
+					if( !isNaN(httpCode) && httpCode >= 400 )
+					{
+						// There's no point in retrying--some 400 level error, which is something bunk client-side.
+						dispatchEvent( new NetStatusEvent( NetStatusEvent.NET_STATUS, false, false, {code:event.reason, level:"error", details:event.url}));
+					}
+					else if(event.url.match(/.m3u8/))
+					{
+						if(_reloadTryCount >= MAX_RELOAD_RETRYES)
+						{
+							dispatchEvent( new NetStatusEvent( NetStatusEvent.NET_STATUS, false, false, {code:NetStreamCodes.NETSTREAM_PLAY_STREAMNOTFOUND, level:"error", details:event.url}) );
 						}
 						else
 						{
-							if(_reloadTryCount >= MAX_RELOAD_RETRYES)
-							{
-								dispatchEvent( new NetStatusEvent( NetStatusEvent.NET_STATUS, false, false, {code:NetStreamCodes.NETSTREAM_PLAY_STREAMNOTFOUND, level:"error", details:event.url}) );
-							}
-							else
-							{
-								_reloadTryCount++;
-								var t:Timer = new Timer(RELOAD_TIMEOUT);
-								t.addEventListener( TimerEvent.TIMER_COMPLETE,
-													function(e:Event):void{
-														HTTPHLSStreamSource(_source).loadNextChunk();
-													}
-												  );
-							}
+							_reloadTryCount++;
+							var t:Timer = new Timer(RELOAD_TIMEOUT);
+							t.addEventListener( TimerEvent.TIMER_COMPLETE,
+												function(e:Event):void{
+													HTTPHLSStreamSource(_source).loadNextChunk();
+												}
+											  );
 						}
 					}
 					else


Transferred from the Adobe Open Source Subversion Repository

Revision: 16937
Author:   smgilson@adobe.com
Date:     2010-07-15T16:35:17.543693Z

Log Message:
-----------
Add ASDoc comment about using component in an item renderer

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButtonGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -120,9 +120,9 @@
  *  the drop-down area of the control opens.
  *  It then and scrolls to and highlights the closest match in the item list.

  *
- *
An item renderer lets you customize the display of a list-based component,
- *  such as a List or DataGrid control.
- *  For information about using this component in an item renderer, see
+ *
To use this component in a list-based component, such as a List or DataGrid,
+ *  create an item renderer.
+ *  For information about creating an item renderer, see
  *
  *  Custom Spark item renderers.

  *


FLEX-34710: s:DataGrid doubleClickMode was throwing an error when assigned a value in MXML.  This was due to the grid part not being present yet.  Modified the setter to use setGridProperty which allows delayed property setting if needed.

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -1578,7 +1578,6 @@
     *  @playerversion AIR 3.4
     *  @productversion Flex 4.10
     */
-
     public function get doubleClickMode():String
     {
         return grid.doubleClickMode;
@@ -1589,13 +1588,10 @@
     */
     public function set doubleClickMode(newValue:String):void
     {
-        if (grid.doubleClickMode == newValue)
-        {
-           return;
-        }
-
-        grid.doubleClickMode = newValue;
-        dispatchChangeEvent("doubleClickModeChanged");
+        if (setGridProperty("doubleClickMode", newValue))
+        {
+            dispatchChangeEvent("doubleClickModeChanged");
+        }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17514
Author:   cframpto@adobe.com
Date:     2010-08-30T18:37:11.204380Z

Log Message:
-----------
Should have gone with 17513.

Moved the typicalText getter and setter from TextInput/TextArea to SkinnableTextBase.  The reason widthInChars is in both classes is so the asdoc could be different – TextInput has widthInChars set to 10 in the skin which is not the default.  Fixed a comment, alphabetized the new TYPICAL_TEXT_PROPERTY_FLAG and remove an unused property.

QE notes:
Doc notes:
Bugs: tweak SDK-26180
Reviewer: Alex
Tests run: cyclone - checkin, mustella
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -527,33 +527,6 @@
         setTextFlow(value);
     }

-	//----------------------------------
-	//  typicalText
-	//----------------------------------
-
-	/**
-	 *  @default null
-	 *
-	 *  @see spark.components.RichEditableText#typicalText
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.0
-	 *  @productversion Flex 4.5
-	 */
-	public function get typicalText():String
-	{
-		return getTypicalText();
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set typicalText(value:String):void
-	{
-		setTypicalText(value);
-	}
-
     //----------------------------------
     //  widthInChars
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</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/flex4/src/spark/components/Group.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/flash-integration/src/mx/flash/FlexContentHolder.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/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.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/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</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/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.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/flex4/src/spark/layouts/TileLayout.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/effects/supportClasses/ResizeInstance.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/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -349,15 +349,11 @@
 			// TextArea rather than RichEditableText so that if changed later it
 			// will be inherited.

+            // ToDo: The skin is loaded after the intial properties have been
+            // set so these could wipe out explicit sets.
 			textView.heightInLines = 10;
 			textView.multiline = true;
             textView.autoSize = false;
-
-            textView.addEventListener("textInvalid",
-									  textView_textInvalidHandler);
-
-            textView.addEventListener(FlexEvent.UPDATE_COMPLETE,
-                                      textView_updateCompleteHandler);
         }

         // The scroller, between textView and this in the chain, should not
@@ -365,23 +361,6 @@
         if (instance == scroller)
             scroller.focusEnabled = false;
 	}
-
-    /**
-     *  @private
-     */
-    override protected function partRemoved(partName:String, instance:Object):void
-    {
-        super.partRemoved(partName, instance);
-
-        if (instance == textView)
-        {
-            textView.removeEventListener("textInvalid",
-                                          textView_textInvalidHandler);
-
-            textView.removeEventListener(FlexEvent.UPDATE_COMPLETE,
-                                         textView_updateCompleteHandler);
-        }
-    }

 	//--------------------------------------------------------------------------
     //
@@ -450,54 +429,15 @@
     override protected function textView_changeHandler(
                                         event:TextOperationEvent):void
 	{
-		// Note: We don't call the superhandler here
-        // because it immediately fetches textView.text
-        // to extract the text from the TextFlow.
-        // That's too expensive for an TextArea,
-        // which might have a lot of leaf nodes.
-
+        //trace("TextArea.textView_changeHandler");
+
+        // A compose has been done so switch from the user's specified content
+        // (or null if text was specified) to the textFlow.
         useTextFlowForContent = true;
-
-		// Redispatch the event that came from the RichEditableText.
-		dispatchEvent(event);
-	}
-
-	//--------------------------------------------------------------------------
-    //
-    //  Event handlers
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Content changed or in process of being changed.
-     */
-    private function textView_textInvalidHandler(event:Event):void
-    {
-        mx_internal::textInvalid = true;
-    }
-
-    /**
-     *  @private
-     *  Called when the RichEditableText dispatches a
-     *  'FlexEvent.UPDATE_COMPLETE' event in response to validation being
-     *  completed.  At this point, the textFlow is composed and the text
-     *  can be extracted from the textFlow, if needed.
-     */
-    protected function textView_updateCompleteHandler(event:Event):void
-    {
-        // This handles the case where text or content is initially set and
-        // no editing operations were done.  Since no editing operations
-        // were done, a change event wasn't dispatched to trigger any bindings
-        // on text or content.  The alternative is to let the RichEditableText
-        // damageHandler dispatch for every updateDisplayList but that seems
-        // much more expensive since the text may still be valid.
-        if (!useTextFlowForContent)
-        {
-            useTextFlowForContent = true;
-            dispatchEvent(new Event("change"));
-       }
-    }
+
+        super.textView_changeHandler(event);
+	}
+
 }

 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -22,6 +22,11 @@
 //--------------------------------------
 //  Other metadata
 //--------------------------------------
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#symbolColor
+ */
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

 [DefaultProperty("content")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPResult.as
@@ -0,0 +1,102 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.olap
+{
+ /**
+ *  The IOLAPResult interface represents the result of a query on an OLAP cube.
+ *
+ *  @see mx.olap.OLAPQuery
+ *  @see mx.olap.OLAPQueryAxis
+ *  @see mx.olap.IOLAPResultAxis
+ *  @see mx.olap.OLAPResultAxis
+ *  @see mx.olap.OLAPResult
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IOLAPResult
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  axes
+	//----------------------------------
+
+    /**
+     * An Array of IOLAPResultAxis instances that represent all the axes of the query.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get axes():Array; // (of IAxis);
+
+    //----------------------------------
+	//  query
+	//----------------------------------
+
+    /**
+     *  The query whose result is represented by this object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get query():IOLAPQuery;
+
+    //--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Returns an axis of the query result.
+     *
+     *  @param axisOrdinal Specify OLAPQuery.COLUMN AXIS for a column axis,
+     *  OLAPQuery.ROW_AXIS for a row axis,
+     *  and OLAPQuery.SLICER_AXIS for a slicer axis.
+     *
+     *  @return The IOLAPQueryAxis instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getAxis(axisOrdinal:int):IOLAPResultAxis;
+
+    /**
+     *  Returns a cell at the specified location in the query result.
+     *
+     *  @param x The column of the query result.
+     *
+     *  @param y The row of the query result.
+     *
+     *  @return An IOLAPCell instance representing the cell.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getCell(x:int, y:int):IOLAPCell;
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -101,7 +101,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <SkinnableDataContainer
+ *  <s:SkinnableDataContainer
  *    Properties
  *    autoLayout="true"
  *    clipAndEnableScrolling="false"


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

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

 package spark.globalization
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5827
Author:   hmuller@adobe.com
Date:     2009-03-31T22:24:20.119510Z

Log Message:
-----------
Added import flash.events.Event to LayoutBase.

QE Notes: Fixing broken build.
Doc Notes:
Bugs:
Reviewer:

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -13,6 +13,7 @@
 {

 import flash.geom.Point;
+import flash.events.Event;
 import flash.geom.Rectangle;

 import spark.components.supportClasses.GroupBase;


Add rotation to the FollowDisplayObject activity

--- src/org/flintparticles/twoD/activities/FollowDisplayObject.as
+++ src/org/flintparticles/twoD/activities/FollowDisplayObject.as
@@ -30,6 +30,7 @@

 package org.flintparticles.twoD.activities
 {
+	import org.flintparticles.common.utils.DisplayObjectUtils;
 	import org.flintparticles.common.activities.ActivityBase;
 	import org.flintparticles.common.emitters.Emitter;
 	import org.flintparticles.twoD.emitters.Emitter2D;
@@ -39,8 +40,8 @@

 	/**
 	 * The FollowDisplayObject activity causes the emitter to follow
-	 * the position of a DisplayObject. The purpose is for the emitter
-	 * to emit particles from the vicinity of the DisplayObject.
+	 * the position and rotation of a DisplayObject. The purpose is for the emitter
+	 * to emit particles from the location of the DisplayObject.
 	 */
 	public class FollowDisplayObject extends ActivityBase
 	{
@@ -97,8 +98,12 @@
 			var p:Point = new Point( 0, 0 );
 			p = _displayObject.localToGlobal( p );
 			p = _renderer.globalToLocal( p );
+			var r:Number = 0;
+			r = DisplayObjectUtils.localToGlobalRotation( _displayObject, r );
+			r = DisplayObjectUtils.globalToLocalRotation( _renderer, r );
 			e.x = p.x;
 			e.y = p.y;
+			e.rotation = r;
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7525
Author:   cframpto@adobe.com
Date:     2009-06-03T16:22:06.250492Z

Log Message:
-----------
- Change TextInputSkin to verticalAlign="middle".  Numeric stepper already does this as do most of the test apps.
- In getSelectionFormat(), if an unknown format is requested, ignore it, rather than RTE.  Returned object will contain only the known formats.
- In setSelectionFormat(), in unknown format is specified, ignore it rather than RTE.

QA Notes: A few TextInput tests need to be updated because of the skin change.  TextArea margin tests need to be updated.  marginTop, marginBottom, marginLeft and marginRight formats have been renamed to paragraphSpaceBefore, paragraphSpaceAfter, paragraphStartIndent and paragraphEndIndent respectively
Doc Notes:
Bugs: SDK-19565
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -2722,6 +2722,9 @@
         {
             for each (p in names)
             {
+                if (!(p in description))
+                    continue;
+
                 category = description[p].category;

                 if (category == Category.CONTAINER)
@@ -2751,6 +2754,9 @@
         // Extract the requested formats to return.
         for each (p in names)
         {
+            if (!(p in description))
+                continue;
+
             category = description[p].category;

             if (category == Category.CONTAINER && containerFormat)
@@ -2802,6 +2808,9 @@

         for (var p:String in attributes)
         {
+            if (!(p in description))
+                continue;
+
             var category:String = description[p].category;

             if (category == Category.CONTAINER)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/animation/Animation.as
+++ frameworks/projects/spark/src/spark/effects/animation/Animation.as
@@ -8,37 +8,37 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package flex.effects
+package mx.effects
 {
 import flash.events.EventDispatcher;
 import flash.events.TimerEvent;
 import flash.utils.Timer;
 import flash.utils.getTimer;

-import flex.effects.easing.IEaser;
-import flex.effects.easing.Linear;
-import flex.effects.easing.Sine;
-import flex.effects.interpolation.ArrayInterpolator;
-import flex.effects.interpolation.IInterpolator;
-import flex.effects.interpolation.NumberArrayInterpolator;
-import flex.effects.interpolation.NumberInterpolator;
-import flex.events.AnimationEvent;
+import mx.effects.easing.IEaser;
+import mx.effects.easing.Linear;
+import mx.effects.easing.Sine;
+import mx.effects.interpolation.ArrayInterpolator;
+import mx.effects.interpolation.IInterpolator;
+import mx.effects.interpolation.NumberArrayInterpolator;
+import mx.effects.interpolation.NumberInterpolator;
+import mx.events.AnimationEvent;

 /**
  * Dispatched when the animation starts. The first
  * animationUpdate event is dispatched at the
  * same time.
  *
- * @eventType flex.events.AnimationEvent.ANIMATION_START
+ * @eventType mx.events.AnimationEvent.ANIMATION_START
  */
-[Event(name="animationStart", type="flex.events.AnimationEvent")]
+[Event(name="animationStart", type="mx.events.AnimationEvent")]

 /**
  * Dispatched every time the animation updates the target.
  *
- * @eventType flex.events.AnimationEvent.ANIMATION_UPDATE
+ * @eventType mx.events.AnimationEvent.ANIMATION_UPDATE
  */
-[Event(name="animationUpdate", type="flex.events.AnimationEvent")]
+[Event(name="animationUpdate", type="mx.events.AnimationEvent")]

 /**
  * Dispatched when the animation begins a new repetition, for
@@ -46,18 +46,18 @@
  * An animationUpdate event is also dispatched
  * at the same time.
  *
- * @eventType flex.events.AnimationEvent.ANIMATION_REPEAT
+ * @eventType mx.events.AnimationEvent.ANIMATION_REPEAT
  */
-[Event(name="animationRepeat", type="flex.events.AnimationEvent")]
+[Event(name="animationRepeat", type="mx.events.AnimationEvent")]

 /**
  * Dispatched when the effect ends. An animationUpdate event
  * is also dispatched at the same time. A repeating animation dispatches
  * this event only after the final repetition.
  *
- * @eventType flex.events.AnimationEvent.ANIMATION_END
+ * @eventType mx.events.AnimationEvent.ANIMATION_END
  */
-[Event(name="animationEnd", type="flex.events.AnimationEvent")]
+[Event(name="animationEnd", type="mx.events.AnimationEvent")]

 /**
  * The Animation class defines an animation that happens between
@@ -84,8 +84,8 @@
  * the start and end values and the easer and interpolator objects. These
  * values can then be used to set property values on target objects.

  *
- *  @see flex.effects.Animate
- *  @see flex.effects.effectClasses.AnimateInstance
+ *  @see mx.effects.Animate
+ *  @see mx.effects.effectClasses.FxAnimateInstance
  */
 public class Animation extends EventDispatcher
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12612
Author:   jimurphy@adobe.com
Date:     2009-12-07T18:22:37.051018Z

Log Message:
-----------
Merged 3.x revisions 12301,12311,12366,12369,12371-12372,12434,12483,12547 -> trunk

........
  r12301 | dloverin@adobe.com | 2009-11-30 17:52:14 -0500 (Mon, 30 Nov 2009) | 14 lines

  Bugs: SDK-18076
........
  r12311 | pfarland@adobe.com | 2009-11-30 21:33:06 -0500 (Mon, 30 Nov 2009) | 10 lines

  Bugs:
  SDK-24359 - soap response incorrectly decoded by XMLDecoder
........
  r12366 | clucier@adobe.com | 2009-12-02 11:25:44 -0500 (Wed, 02 Dec 2009) | 10 lines

  Bugs: SDK-23691
........
  r12369 | jon.avila@ssbbartgroup.com | 2009-12-02 11:46:06 -0500 (Wed, 02 Dec 2009) | 8 lines

  Bugs: n/a
........
  r12371 | jon.avila@ssbbartgroup.com | 2009-12-02 11:51:12 -0500 (Wed, 02 Dec 2009) | 8 lines

  Bugs: n/a
........
  r12372 | jon.avila@ssbbartgroup.com | 2009-12-02 11:54:42 -0500 (Wed, 02 Dec 2009) | 8 lines

  Bugs: n/a
........
  r12434 | jon.avila@ssbbartgroup.com | 2009-12-03 10:12:48 -0500 (Thu, 03 Dec 2009) | 7 lines

  Bugs: n/a
........
  r12483 | aharui@adobe.com | 2009-12-04 02:06:41 -0500 (Fri, 04 Dec 2009) | 10 lines
  Bugs: SDK-24340
........
  r12547 | gauravj@adobe.com | 2009-12-04 15:21:21 -0500 (Fri, 04 Dec 2009) | 7 lines

  Bugs: SDK-24278
........

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/controls.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/antTasks/src/flex/ant/MxmlcTask.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>

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

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -18,7 +18,6 @@
 import flash.display.DisplayObjectContainer;
 import flash.events.Event;

-import mx.accessibility.AccConst;
 import mx.containers.Form;
 import mx.containers.FormHeading;
 import mx.containers.FormItem;
@@ -38,11 +37,6 @@
  *  The AccImpl class is Flex's base class for implementing accessibility
  *  in UIComponents.
  *  It is a subclass of the Flash Player's AccessibilityImplementation class.
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
  */
 public class AccImpl extends AccessibilityImplementation
 {
@@ -50,17 +44,53 @@

     //--------------------------------------------------------------------------
     //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
+
+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_NAMECHANGE:uint = 0x800C;
+
+    /**
+     *  @private
+     */
+    public static const EVENT_OBJECT_SHOW:uint = 0x8002;
+
+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_HIDE:uint = 0x8003;
+
+    //--------------------------------------------------------------------------
+    //
     //  Class methods
     //
     //--------------------------------------------------------------------------

     /**
      *  Method for supporting Form Accessibility.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public static function getFormName(component:UIComponent):String
     {
@@ -93,11 +123,11 @@
      */
     private static function joinWithSpace(s1:String,s2:String):String
     {
-		// Single space treated as null so developers can override default name elements with " ".
-		if (s1 == " ")
-			s1 = "";
-		if (s2 == " ")
-			s2 = "";
+        // Single space treated as null so developers can override default name elements with " ".
+        if (s1 == " ")
+            s1 = "";
+        if (s2 == " ")
+            s2 = "";
         if (s1 && s2)
             s1 += " " +s2;
         else if (s2)
@@ -105,7 +135,7 @@
         // else we have non-empty s1 and empty s2, so do nothing.
         return s1;
     }
-
+
     /**
      *  @private
      *  Method for supporting Form Accessibility.
@@ -190,11 +220,6 @@
      *
      *  @param master The UIComponent instance that this AccImpl instance
      *  is making accessible.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public function AccImpl(master:UIComponent)
     {
@@ -206,7 +231,7 @@

         // Hook in UIComponentAccProps setup here!
         if (!master.accessibilityProperties)
-            master.accessibilityProperties = new AccessibilityProperties();
+        master.accessibilityProperties = new AccessibilityProperties();

         // Hookup events to listen for
         var events:Array = eventsToHandle;
@@ -229,21 +254,11 @@
     /**
      *  A reference to the UIComponent instance that this AccImpl instance
      *  is making accessible.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected var master:UIComponent;

     /**
      *  Accessibility role of the component being made accessible.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected var role:uint;

@@ -256,11 +271,6 @@
     /**
      *  All subclasses must override this function by returning an array
      *  of strings of the events to listen for.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected function get eventsToHandle():Array
     {
@@ -322,21 +332,21 @@
             master.accessibilityProperties.name != null &&
             master.accessibilityProperties.name != "")
         {
-			// An accName is set, so use only that.
+            // An accName is set, so use only that.
             accName = joinWithSpace(accName, master.accessibilityProperties.name);
         }
         else
         {
-			// No accName set; use default name, or toolTip if that is empty.
+            // No accName set; use default name, or toolTip if that is empty.
             accName = joinWithSpace(accName, getName(0) || master.toolTip);
         }
-
+
         accName = joinWithSpace(accName, getStatusName());

         // Historical: Return null and not "" for empty and null values.
         return (accName != null && accName != "") ? accName : null;
     }
-
+
     /**
      *  @private
      *  Method to return an array of childIDs.
@@ -370,11 +380,6 @@
      *  Returns the name of the accessible component.
      *  All subclasses must implement this
      *  instead of implementing get_accName().
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected function getName(childID:uint):String
     {
@@ -383,58 +388,53 @@

     /**
      *  Utility method to determine state of the accessible component.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected function getState(childID:uint):uint
     {
-        var accState:uint = AccConst.STATE_SYSTEM_NORMAL;
+        var accState:uint = STATE_SYSTEM_NORMAL;

         if (!UIComponent(master).enabled)
         {
-            accState &= ~AccConst.STATE_SYSTEM_FOCUSABLE;
-            accState |= AccConst.STATE_SYSTEM_UNAVAILABLE;
+            accState &= ~STATE_SYSTEM_FOCUSABLE;
+            accState |= STATE_SYSTEM_UNAVAILABLE;
         }
         else
         {
-            accState |= AccConst.STATE_SYSTEM_FOCUSABLE
+            accState |= STATE_SYSTEM_FOCUSABLE

             if (UIComponent(master) == UIComponent(master).getFocus())
-                accState |= AccConst.STATE_SYSTEM_FOCUSED;
+                accState |= STATE_SYSTEM_FOCUSED;
         }

         return accState;
     }
-
-    /**
-     *  @private
-     */
-    protected function createChildIDArray(n:int):Array
-    {
-        var a:Array = new Array(n);
-
-        for (var i:int = 0; i < n; i++)
-        {
-            a[i] = i + 1;
-        }
-
-        return a;
-    }
-
+
     /**
      *  @private
      */
     private function getStatusName():String
     {
         var statusName:String = "";
-
+
         if (master is UIComponent && UIComponent(master).errorString)
             statusName = UIComponent(master).errorString;
-
+
         return statusName;
+    }
+
+    /**
+     *  @private
+     */
+    protected function createChildIDArray(n:int):Array
+    {
+        var a:Array = new Array(n);
+
+        for (var i:int = 0; i < n; i++)
+        {
+            a[i] = i + 1;
+        }
+
+        return a;
     }

     //--------------------------------------------------------------------------
@@ -447,11 +447,6 @@
      *  Generic event handler.
      *  All AccImpl subclasses must implement this
      *  to listen for events from its master component.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     protected function eventHandler(event:Event):void
     {
@@ -469,25 +464,24 @@
             case "errorStringChanged":
             case "toolTipChanged":
             {
-                Accessibility.sendEvent(master, 0,
-										AccConst.EVENT_OBJECT_NAMECHANGE);
+                Accessibility.sendEvent(master, 0, EVENT_OBJECT_NAMECHANGE);
                 Accessibility.updateProperties();
                 break;
             }

             case "show":
             {
-                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_SHOW);
+                Accessibility.sendEvent(master, 0, EVENT_OBJECT_SHOW);
                 Accessibility.updateProperties();
                 break;
             }

             case "hide":
             {
-                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_HIDE);
+                Accessibility.sendEvent(master, 0, EVENT_OBJECT_HIDE);
                 Accessibility.updateProperties();
                 break;
-            }
+            }
         }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4666
Author:   jimurphy@adobe.com
Date:     2009-01-26T15:57:51.279413Z

Log Message:
-----------
Merged 3.x revisions 4606,4610,4664 -> trunk

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</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/modules/antTasks/src/flex/ant/types/URLElement.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1339,7 +1339,7 @@
     public function getNextFocusManagerComponent(
                             backward:Boolean = false):IFocusManagerComponent
 	{
-		return getNextFocusManagerComponent2(false, fauxFocus) as IFocusManagerComponent;
+		return getNextFocusManagerComponent2(false, fauxFocus).displayObject as IFocusManagerComponent;
 	}

 	/**
@@ -1417,7 +1417,7 @@
 		focusInfo.displayObject = findFocusManagerComponent2(focusableCandidates[j]);
 		focusInfo.wrapped = wrapped;

-        return focusInfo
+        return focusInfo;
     }


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10372
Author:   klin@adobe.com
Date:     2009-09-18T00:49:09.441663Z

Log Message:
-----------
https://bugs.adobe.com/jira/browse/SDK-23273 - Excluded borderAlpha and borderVisible from mx:TabBar.

https://bugs.adobe.com/jira/browse/SDK-23042 - Pushed Exclude of focusThickness style from SkinnableComponent into specific subclasses (GroupBase, ScrollBar, SkinnableContainerBase, VideoPlayer, TitleBar) so that other subclasses will inherit the focusThickness style.

https://bugs.adobe.com/jira/browse/SDK-23172 - Revert of 10349. Fixed bug where dataTipInstance was not inheriting Slider's styles by assigning Slider as its owner. Also excluded unsupported text styles.

QE Notes: None
Doc Notes: None
Bugs: SDK-23273, SDK-23042, SDK-23172
Reviewer: Jason
API Change: No
Is noteworthy for integration: FB
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -311,6 +311,12 @@
  *  @productversion Flex 4
  */
 [SkinState("stopped")]
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="focusThickness", kind="style")]

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12966
Author:   dloverin@adobe.com
Date:     2009-12-15T18:59:54.493877Z

Log Message:
-----------
Fix sub-applications loading RSLs into the wrong application domain.

projects/framework/src/mx/controls/SWFLoader.as
Fix loading sub-applications as well. Load sub-applications into a child application domain of their parent.

projects/framework/src/mx/core/CrossDomainRSLItem.as
projects/framework/src/mx/core/FlexModuleFactory.as
projects/framework/src/mx/core/RSLItem.as
projects/framework/src/mx/managers/SystemManager.as
    Pass a module factory from SystemManager and FlexModuleFactory to CrossDomainRSLItem/RSLItem. Use the moduleFactory to find the application domain of the app/modules loading the RSLs. Use this application domain to load RSLs into.

projects/framework/src/mx/modules/ModuleLoader.as
    “currentDomain” is never null so remove null check.

projects/airframework/src/mx/managers/WindowedSystemManager.as
    Added a info().currentDomain object to WindowedSystemManager.

QE notes: None.
Doc notes: None.
Bugs: SDK-24698
Reviewer: Alex
Tests run: checkintests, MarshallPlan, Modules
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
+++ frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
@@ -94,6 +94,10 @@
     *                  loaded is a signed or unsigned RSL. If the value is true the RSL is signed.
     *                  If the value is false the RSL is unsigned.
     *  @param rootURL provides the url used to locate relative RSL urls.
+    *  @param moduleFactory The module factory that is loading the RSLs. The
+    *  RSLs will be loaded into the application domain of the given module factory.
+    *  If a module factory is not specified, then the RSLs will be loaded into the
+    *  application domain of where the CrossDomainRSLItem class was first loaded.
     *
     *  @langversion 3.0
     *  @playerversion Flash 9
@@ -105,9 +109,10 @@
                              digests:Array,
                              hashTypes:Array,
                              isSigned:Array,
-                             rootURL:String = null)
-    {
-        super(rslUrls[0], rootURL);
+                             rootURL:String = null,
+                             moduleFactory:IFlexModuleFactory = null)
+    {
+        super(rslUrls[0], rootURL, moduleFactory);

         this.rslUrls = rslUrls;
         this.policyFileUrls = policyFileUrls;
@@ -264,7 +269,12 @@
         // load the bytes into the current application domain.
         loadBytesLoader = new Loader();
         var context:LoaderContext = new LoaderContext();
-        context.applicationDomain = ApplicationDomain.currentDomain;
+
+        if (moduleFactory != null)
+            context.applicationDomain = moduleFactory.info()["currentDomain"];
+        else
+            context.applicationDomain = ApplicationDomain.currentDomain;
+
         context.securityDomain = null;

         // If the AIR flag is available then set it to true so we can


Transferred from the Adobe Open Source Subversion Repository

Revision: 19382
Author:   aharui@adobe.com
Date:     2010-12-15T05:43:04.586172Z

Log Message:
-----------
Initial check in of Media Query support

QE notes: new feature
Doc notes: new feature
Bugs: none
Reviewer: Evtim, Pete F
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MediaQueryParser.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flash/css/MediaList.java</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -37,6 +37,7 @@
 import mx.styles.IStyleModule;
 import mx.styles.IStyleManager2;
 import mx.events.Request;
+import mx.utils.MediaQueryParser;
 import flash.events.Event;

 use namespace mx_internal;
@@ -138,6 +139,11 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
+    private var mqp:MediaQueryParser;
+
     /**
      *  @private
      *  Set of inheriting non-color styles.
@@ -1687,6 +1693,17 @@
         dispatchEvent(event);
     }

+    /**
+     *  @private
+     */
+    public function acceptMediaList(value:String):Boolean
+    {
+        if (!mqp)
+            mqp = new MediaQueryParser(moduleFactory);
+
+        return mqp.parse(value);
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers


Transferred from the Adobe Open Source Subversion Repository

Revision: 6464
Author:   hmuller@adobe.com
Date:     2009-05-01T19:25:47.821633Z

Log Message:
-----------
Fixed LayoutBase::getScrollPositionDeltaToElement() for useVirtualLayout=true.  Added LayoutBase::getElementBounds() and added a "get" prefix to the four existing LayoutBase::elementBoundsBelowScrollRect() per the PARB.

QE Notes: The four protected LayoutBase method renames shouldn't break any tests ...
Doc Notes:
Bugs: sdk-20891
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -647,7 +647,28 @@
         _lastIndexInView = lastIndex;
         dispatchEvent(new Event("indexInViewChanged"));
     }
-
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function getElementBounds(index:int):Rectangle
+    {
+        if (!useVirtualLayout)
+            return super.getElementBounds(index);
+
+        var g:GroupBase = GroupBase(target);
+        if (!g || (index < 0) || (index >= g.numElements))
+            return null;
+
+        return llv.getBounds(index);
+    }
+
     /**
      *  An index is "in view" if the corresponding non-null layout element is
      *  within the horizontal limits of the layout target's scrollRect
@@ -875,29 +896,6 @@
     /**
      *  @private
      *
-     *  If the element at index i is non-null and includeInLayout,
-     *  then return it's actual bounds, otherwise return null.
-     */
-    private function layoutElementBounds(g:GroupBase, i:int):Rectangle
-    {
-        if (useVirtualLayout)
-            return llv.getBounds(i);
-        {
-            var element:ILayoutElement = g.getElementAt(i);
-            if (element && element.includeInLayout)
-            {
-                return new Rectangle(element.getLayoutBoundsX(),
-                                     element.getLayoutBoundsY(),
-                                     element.getLayoutBoundsWidth(),
-                                     element.getLayoutBoundsHeight());
-            }
-        }
-        return null;
-    }
-
-    /**
-     *  @private
-     *
      *  Returns the actual position/size Rectangle of the first partially
      *  visible or not-visible, non-null includeInLayout element, beginning
      *  with the element at index i, searching in direction dir (dir must
@@ -919,12 +917,12 @@
             if (i < 0)
                 return new Rectangle(0, 0, paddingLeft, 0);
             if (i >= n)
-                return new Rectangle(layoutElementBounds(g, n-1).right, 0, paddingRight, 0);
+                return new Rectangle(getElementBounds(n-1).right, 0, paddingRight, 0);
         }

         while((i >= 0) && (i < n))
         {
-           var elementR:Rectangle = layoutElementBounds(g, i);
+           var elementR:Rectangle = getElementBounds(i);
            // Special case: if the scrollRect r _only_ contains
            // elementR, then if we're searching left (dir == -1),
            // and elementR's left edge is visible, then try again
@@ -944,7 +942,7 @@
     /**
      *  @private
      */
-    override protected function elementBoundsLeftOfScrollRect(scrollRect:Rectangle):Rectangle
+    override protected function getElementBoundsLeftOfScrollRect(scrollRect:Rectangle):Rectangle
     {
         return findLayoutElementBounds(target, firstIndexInView, -1, scrollRect);
     }
@@ -952,7 +950,7 @@
     /**
      *  @private
      */
-    override protected function elementBoundsRightOfScrollRect(scrollRect:Rectangle):Rectangle
+    override protected function getElementBoundsRightOfScrollRect(scrollRect:Rectangle):Rectangle
     {
         return findLayoutElementBounds(target, lastIndexInView, +1, scrollRect);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 22408
Author:   egeorgie@adobe.com
Date:     2011-09-06T18:39:28.713918Z

Log Message:
-----------
Fix SDK-30012 Scroller does not work as I would have thought it should with child elements

- Make sure Horizontal/Vertical layout respect element's minimum in the minor dimension when %size is in play. Version checked.

QE notes:
Doc notes:
Bugs: SDK-30012
Reviewer:  Hans
Tests run:  Cyclone
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -16,6 +16,7 @@
 import flash.geom.Rectangle;

 import mx.containers.utilityClasses.Flex;
+import mx.core.FlexVersion;
 import mx.core.ILayoutElement;
 import mx.core.IVisualElement;
 import mx.core.UIComponentGlobals;
@@ -134,10 +135,21 @@

     private static function calculatePercentHeight(layoutElement:ILayoutElement, height:Number):Number
     {
-        var percentHeight:Number = LayoutElementHelper.pinBetween(Math.round(layoutElement.percentHeight * 0.01 * height),
-                                                                  layoutElement.getMinBoundsHeight(),
-                                                                  layoutElement.getMaxBoundsHeight() );
-        return percentHeight < height ? percentHeight : height;
+        var percentHeight:Number;
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_6)
+        {
+            percentHeight = LayoutElementHelper.pinBetween(Math.round(layoutElement.percentHeight * 0.01 * height),
+                                                           layoutElement.getMinBoundsHeight(),
+                                                           layoutElement.getMaxBoundsHeight() );
+            return percentHeight < height ? percentHeight : height;
+        }
+        else
+        {
+            percentHeight = LayoutElementHelper.pinBetween(Math.min(Math.round(layoutElement.percentHeight * 0.01 * height), height),
+                                                           layoutElement.getMinBoundsHeight(),
+                                                           layoutElement.getMaxBoundsHeight() );
+            return percentHeight;
+        }
     }

     private static function sizeLayoutElement(layoutElement:ILayoutElement, height:Number,


remove useless brackets

remove useless brackets

--- src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
+++ src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
@@ -60,9 +60,7 @@
 				{
 					_data.computedVisibility = true;
 					if (_mesh.localToWorldTransformChanged.hasCallback(meshLocalToWorldChangedHandler))
-					{
 						_mesh.localToWorldTransformChanged.remove(meshLocalToWorldChangedHandler);
-					}
 				}
 				else if (_mesh && _mesh.scene)
 				{