Transferred from the Adobe Open Source Subversion Repository

Revision: 3670
Author:   gosmith@adobe.com
Date:     2008-10-15T23:26:37.608871Z

Log Message:
-----------
The interaction of the 'text' and 'content' properties is now working as intended. If you set one and wait for the updateComplete event, you can now get the other. (In the meantime, the other is null.) If you set both at the same time, 'content' wins.

Also, setting the 'text' or the 'content' of a TextView now causes the selection range to be reset to (-1, -1), which means "no selection".

Reviewer: Deepa
Bugs: SDK-16035, SDK-16359, SDK-17307
QA: Please test the interaction of the 'text' and 'content' properties in TextGraphic, TextView, and TextArea.
Doc: No

Modified Paths:
--------------
<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/graphics/graphicsClasses/TextGraphicElement.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/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -243,14 +243,14 @@
 	/**
 	 *  @private
 	 */
-	private var _text:String = "";
+	mx_internal var _text:String = "";

 	/**
 	 *  Documentation is not currently available.
 	 */
 	public function get text():String
 	{
-		return _text;
+		return mx_internal::_text;
 	}

 	/**
@@ -258,10 +258,10 @@
 	 */
 	public function set text(value:String):void
 	{
-		if (value != _text)
+		if (value != mx_internal::_text)
 		{
-			var oldValue:String = _text;
-			_text = value;
+			var oldValue:String = mx_internal::_text;
+			mx_internal::_text = value;
 			dispatchPropertyChangeEvent("text", oldValue, value);

 			invalidateTextLines("text");


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.skins.mobile.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13964
Author:   cframpto@adobe.com
Date:     2010-02-03T19:47:06.771377Z

Log Message:
-----------
Work around TLF bug #2545307.  ContainerController.mouseWheelHandler() should be checking if the default behavior is prevented before it acts on the event.  The workaround is to override TextContainerManager.mouseWheelHandler(), which dispatches to ContainerController.mouseWheelHandler(), and only call it if event.isDefaultPrevented() is false.

QE notes:
Doc notes:
Bugs: SDK-25291, Watson #2545307
Reviewer: Hans
Tests run: checkintests
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -645,6 +645,17 @@
     /**
      *  @private
      */
+    override public function mouseWheelHandler(event:MouseEvent):void
+    {
+        // Bug: ContainerController.mouseWheelHandler() should be checking
+        // if the default behavior is prevented before it acts on the event.
+        if (!event.isDefaultPrevented())
+            super.mouseWheelHandler(event);
+    }
+
+    /**
+     *  @private
+     */
     override public function mouseDownHandler(event:MouseEvent):void
     {
         textDisplay.mouseDownHandler(event);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Canvas.as
+++ frameworks/projects/mx/src/mx/containers/Canvas.as
@@ -50,6 +50,8 @@
 //--------------------------------------

 [IconFile("Canvas.png")]
+
+[Alternative(replacement="spark.components.Group", since="4.0")]

 /**
  *  A Halo Canvas layout container defines a rectangular region


Added Input.lastKey for retrieving the keyCode of the last key pressed.

--- net/flashpunk/utils/Input.as
+++ net/flashpunk/utils/Input.as
@@ -18,6 +18,11 @@
 		public static var keyString:String = "";

 		/**
+		 * The last key pressed.
+		 */
+		public static var lastKey:int;
+
+		/**
 		 * If the mouse button is down.
 		 */
 		public static var mouseDown:Boolean = false;
@@ -213,7 +218,7 @@
 		private static function onKeyDown(e:KeyboardEvent = null):void
 		{
 			// get the keycode
-			var code:int = e.keyCode;
+			var code:int = lastKey = e.keyCode;

 			// update the keystring
 			if (code == Key.BACKSPACE) keyString = keyString.substring(0, keyString.length - 1);


- refactored sending a Notification to trigger the "ChangeWorkflowStateCommand" instead of changing the workflowState directly retrieving the "ApplicationProxy" - thx to Gradiaton for the hint ;-)

--- src/org/puremvc/as3/demos/flex/weborb/login/controller/ViewPrepCommand.as
+++ src/org/puremvc/as3/demos/flex/weborb/login/controller/ViewPrepCommand.as
@@ -5,6 +5,7 @@
  */
 package org.puremvc.as3.demos.flex.weborb.login.controller
 {
+	import org.puremvc.as3.demos.flex.weborb.login.ApplicationFacade;
 	import org.puremvc.as3.demos.flex.weborb.login.model.ApplicationProxy;
 	import org.puremvc.as3.demos.flex.weborb.login.view.ApplicationMediator;
 	import org.puremvc.interfaces.*;
@@ -23,8 +24,7 @@
 		{
 			facade.registerMediator( new ApplicationMediator(note.getBody()));

-			var appProxy: ApplicationProxy = facade.retrieveProxy(ApplicationProxy.NAME) as ApplicationProxy;
-			appProxy.workflowState = ApplicationProxy.VIEWING_LOGIN_SCREEN;
+			sendNotification( ApplicationFacade.CHANGE_WORKFLOW_STATE,  ApplicationProxy.VIEWING_LOGIN_SCREEN);
 		}
 	}
 }


Fixed query string bug

Fixed query string bug

--- src/QueryString.as
+++ src/QueryString.as
@@ -22,7 +22,10 @@
 		}

 		public function get path():String {
-			return _all.slice(0, Math.max(_all.indexOf("?", _all.length + 1)));
+			var qIndex:int = _all.indexOf("?");
+			if (qIndex != -1)
+				return _all.slice(0, qIndex)
+			return _all;
 		}

 		public function get parameters():Object {
@@ -30,26 +33,22 @@
 		}

 		private function readQueryString():void {
-			_params = {};
-			try  {
-				_all = ExternalInterface.call("window.location.href.toString");
-				_queryString = ExternalInterface.call("window.location.search.substring", 1);
-			}
-			catch(e:Error) {
-				//trace("Some error occured. ExternalInterface doesn't work in Standalone player.");
-			}
+			_params = { };
+			if (!ExternalInterface.available)
+				return;

-			if(_queryString) {
-				var allParams:Array = _queryString.split('&');
-				//var length:uint = params.length;
+			_all = ExternalInterface.call("window.location.href.toString");
+			_queryString = ExternalInterface.call("window.location.search.substring", 1);
+
+			var allParams:Array = _queryString.split('&');
+			//var length:uint = params.length;

-				for (var i:int = 0, index:int = -1; i < allParams.length; i++) {
-					var keyValuePair:String = allParams[i];
-					if((index = keyValuePair.indexOf("=")) > 0) {
-						var paramKey:String = keyValuePair.substring(0,index);
-						var paramValue:String = keyValuePair.substring(index+1);
-						_params[paramKey] = paramValue;
-					}
+			for (var i:int = 0, index:int = -1; i < allParams.length; i++) {
+				var keyValuePair:String = allParams[i];
+				if((index = keyValuePair.indexOf("=")) > 0) {
+					var paramKey:String = keyValuePair.substring(0,index);
+					var paramValue:String = keyValuePair.substring(index+1);
+					_params[paramKey] = paramValue;
 				}
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/controls/ProgressBarLabelPlacement.as
+++ frameworks/projects/framework/src/mx/controls/ProgressBarLabelPlacement.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls
+{
+
+/**
+ *  The ProgressBarLabelPlacement class defines the values for
+ *  the labelPlacement property of the ProgressBar class.
+ *
+ *  @see mx.controls.ProgressBar
+ */
+public final class ProgressBarLabelPlacement
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Specifies to place the label below the progress bar.
+	 */
+	public static const BOTTOM:String = "bottom";
+
+	/**
+	 *  Specifies to place at the center inside the progress bar.
+	 */
+	public static const CENTER:String = "center";
+
+	/**
+	 *  Specifies to place the label to the left of the progress bar.
+	 */
+	public static const LEFT:String = "left";
+
+	/**
+	 *  Specifies to place the label to the right of the progress bar.
+	 */
+	public static const RIGHT:String = "right";
+
+	/**
+	 *  Specifies to place the label above the progress bar.
+	 */
+	public static const TOP:String = "top";
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/core/ContainerLayout.as
+++ frameworks/projects/mx/src/mx/core/ContainerLayout.as
@@ -0,0 +1,110 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The ContainerLayout class defines the constant values
+ *  for the layout property of container classes.
+ *
+ *  @see mx.containers.Panel#layout
+ *  @see mx.core.Application#layout
+ */
+public final class ContainerLayout
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Use absolute layout for the contents of this container.
+	 *  You are responsible for explicitly specifying the position
+	 *  of each child.
+	 *
+	 *
The easiest way to do this is to specify
+	 *  the x, y, width,
+	 *  and height of each child.

+	 *
+	 *
The width and height can be specified
+	 *  as a percentage value in MXML.
+	 *  (In ActionScript you have to set the percentWidth
+	 *  and percentHeight properties.)

+	 *
+	 *
If you don't specify the width or
+	 *  percentWidth for a child,
+	 *  then its measuredWidth, as automatically determined
+	 *  by its measure() method, will be used.
+	 *  The same applies for its height.

+	 *
+	 *
As an alternative way of doing layout, you can use the anchor
+	 *  styles left, top, right ,
+	 *  bottom, horizontalCenter,
+	 *  and verticalCenter on children to anchor them to
+	 *  the sides or the center of a container.

+	 *
+	 *
When you use absolute layout, the container's
+	 *  paddingLeft, paddingTop,
+	 *  paddingRight, paddingBottom,
+	 *  horizontalGap, verticalGap,
+	 *  horizontalAlign, andverticalAlign
+	 *  styles are ignored.

+	 */
+	public static const ABSOLUTE:String = "absolute";
+
+	/**
+	 *  Use vertical layout for the contents of this container.
+	 *  The container will automatically place its children in a single column.
+	 *
+	 *
If you don't specify the width or
+	 *  percentWidth for a child,
+	 *  then its measuredWidth, as automatically determined
+	 *  by its measure() method, is used.
+	 *  The same applies for its height.

+	 *
+	 *
You can control the spacing between children
+	 *  with the verticalGap style,
+	 *  and the alignment of the children
+	 *  with the horizontalAlign style.
+	 *  The paddingLeft, paddingTop,
+	 *  paddingRight, and paddingBottom styles
+	 *  control the space between the border of the container
+	 *  and the children.

+	 */
+	public static const VERTICAL:String = "vertical";
+
+	/**
+	 *  Use horizontal layout for the contents of this container.
+	 *  The container will automatically place its children in a single row.
+	 *
+	 *
If you don't specify the width or
+	 *  percentWidth for a child,
+	 *  then its measuredWidth, as automatically determined
+	 *  by its measure() method, is used.
+	 *  The same applies for its height.

+	 *
+	 *
You can control the spacing between children
+	 *  with the horizontalGap style,
+	 *  and the alignment of the children
+	 *  with the verticalAlign style.
+	 *  The paddingLeft, paddingTop,
+	 *  paddingRight, and paddingBottom styles
+	 *  control the space between the border of the container
+	 *  and the children.

+	 */
+	public static const HORIZONTAL:String = "horizontal";
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/wireframe/src/WireframeClasses.as
+++ frameworks/projects/wireframe/src/WireframeClasses.as
@@ -24,35 +24,35 @@
  */
 internal class WireframeClasses
 {
-	import wireframe.FxButtonSkin; FxButtonSkin;
-	import wireframe.FxCheckBoxSkin; FxCheckBoxSkin;
-	import wireframe.FxDefaultComplexItemRenderer; FxDefaultComplexItemRenderer;
-	import wireframe.FxDefaultItemRenderer; FxDefaultItemRenderer;
-	import wireframe.FxHScrollBarSkin; FxHScrollBarSkin;
-	import wireframe.FxHScrollBarThumbSkin; FxHScrollBarThumbSkin;
-	import wireframe.FxHScrollBarTrackSkin; FxHScrollBarTrackSkin;
-	import wireframe.FxHSliderSkin; FxHSliderSkin;
-	import wireframe.FxHSliderThumbSkin; FxHSliderThumbSkin;
-	import wireframe.FxHSliderTrackSkin; FxHSliderTrackSkin;
-	import wireframe.FxListSkin; FxListSkin;
-	import wireframe.FxNumericStepperSkin; FxNumericStepperSkin;
-	import wireframe.FxRadioButtonSkin; FxRadioButtonSkin;
-	import wireframe.FxScrollBarDownButtonSkin; FxScrollBarDownButtonSkin;
-	import wireframe.FxScrollBarLeftButtonSkin; FxScrollBarLeftButtonSkin;
-	import wireframe.FxScrollBarRightButtonSkin; FxScrollBarRightButtonSkin;
-	import wireframe.FxScrollBarUpButtonSkin; FxScrollBarUpButtonSkin;
-	import wireframe.FxSpinnerDecrButtonSkin; FxSpinnerDecrButtonSkin;
-	import wireframe.FxSpinnerIncrButtonSkin; FxSpinnerIncrButtonSkin;
-	import wireframe.FxSpinnerSkin; FxSpinnerSkin;
-	import wireframe.FxTextAreaSkin; FxTextAreaSkin;
-	import wireframe.FxTextInputSkin; FxTextInputSkin;
-	import wireframe.FxToggleButtonSkin; FxToggleButtonSkin;
-	import wireframe.FxVScrollBarSkin; FxVScrollBarSkin;
-	import wireframe.FxVScrollBarThumbSkin; FxVScrollBarThumbSkin;
-	import wireframe.FxVScrollBarTrackSkin; FxVScrollBarTrackSkin;
-	import wireframe.FxVSliderSkin; FxVSliderSkin;
-	import wireframe.FxVSliderThumbSkin; FxVSliderThumbSkin;
-	import wireframe.FxVSliderTrackSkin; FxVSliderTrackSkin;
+	import spark.skins.wireframe.ButtonSkin; ButtonSkin;
+	import spark.skins.wireframe.CheckBoxSkin; CheckBoxSkin;
+	import spark.skins.wireframe.DefaultComplexItemRenderer; DefaultComplexItemRenderer;
+	import spark.skins.wireframe.DefaultItemRenderer; DefaultItemRenderer;
+	import spark.skins.wireframe.HScrollBarSkin; HScrollBarSkin;
+	import spark.skins.wireframe.HScrollBarThumbSkin; HScrollBarThumbSkin;
+	import spark.skins.wireframe.HScrollBarTrackSkin; HScrollBarTrackSkin;
+	import spark.skins.wireframe.HSliderSkin; HSliderSkin;
+	import spark.skins.wireframe.HSliderThumbSkin; HSliderThumbSkin;
+	import spark.skins.wireframe.HSliderTrackSkin; HSliderTrackSkin;
+	import spark.skins.wireframe.ListSkin; ListSkin;
+	import spark.skins.wireframe.NumericStepperSkin; NumericStepperSkin;
+	import spark.skins.wireframe.RadioButtonSkin; RadioButtonSkin;
+	import spark.skins.wireframe.ScrollBarDownButtonSkin; ScrollBarDownButtonSkin;
+	import spark.skins.wireframe.ScrollBarLeftButtonSkin; ScrollBarLeftButtonSkin;
+	import spark.skins.wireframe.ScrollBarRightButtonSkin; ScrollBarRightButtonSkin;
+	import spark.skins.wireframe.ScrollBarUpButtonSkin; ScrollBarUpButtonSkin;
+	import spark.skins.wireframe.SpinnerDecrButtonSkin; SpinnerDecrButtonSkin;
+	import spark.skins.wireframe.SpinnerIncrButtonSkin; SpinnerIncrButtonSkin;
+	import spark.skins.wireframe.SpinnerSkin; SpinnerSkin;
+	import spark.skins.wireframe.TextAreaSkin; TextAreaSkin;
+	import spark.skins.wireframe.TextInputSkin; TextInputSkin;
+	import spark.skins.wireframe.ToggleButtonSkin; ToggleButtonSkin;
+	import spark.skins.wireframe.VScrollBarSkin; VScrollBarSkin;
+	import spark.skins.wireframe.VScrollBarThumbSkin; VScrollBarThumbSkin;
+	import spark.skins.wireframe.VScrollBarTrackSkin; VScrollBarTrackSkin;
+	import spark.skins.wireframe.VSliderSkin; VSliderSkin;
+	import spark.skins.wireframe.VSliderThumbSkin; VSliderThumbSkin;
+	import spark.skins.wireframe.VSliderTrackSkin; VSliderTrackSkin;
 }

 }


hgimg4.asに定義もれの定数を追加

hgimg4.asに定義もれの定数を追加

git-svn-id: 667ccd08e5f160307f6512a0947301cac150914e@766 ceb3ebad-0e53-d446-8596-a45b2b8d79cd

--- package/win32/common/hgimg4.as
+++ package/win32/common/hgimg4.as
@@ -125,11 +125,32 @@
 #enum global SYSREQ_VSYNC
 #enum global SYSREQ_MAXMATERIAL

+#const global PLATFORM_WINDOWS 0
+#const global PLATFORM_IOS 1
+#const global PLATFORM_ANDROID 2
+#const global PLATFORM_WEBGL 3
+
+#define global SYSREQ_DEBUG $10000
+
 #define global ginfo_accx ginfo(0x100)
 #define global ginfo_accy ginfo(0x101)
 #define global ginfo_accz ginfo(0x102)

-#define global SYSREQ_DEBUG $10000
+;
+;	http value
+;
+#enum global HTTPMODE_NONE=0
+#enum global HTTPMODE_READY
+#enum global HTTPMODE_REQUEST
+#enum global HTTPMODE_SEND
+#enum global HTTPMODE_DATAWAIT
+#enum global HTTPMODE_DATAEND
+#define global HTTPMODE_ERROR (-1)
+
+#define global HTTPINFO_MODE 0		; ݂̃[h
+#define global HTTPINFO_SIZE 1		; f[^TCY
+#define global HTTPINFO_DATA 16		; 擾f[^
+#define global HTTPINFO_ERROR 17	; G[

 #regcmd 9


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -0,0 +1,746 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package flex.graphics
+{
+
+import flash.display.DisplayObjectContainer;
+import flash.display.Graphics;
+import flash.geom.Rectangle;
+
+import flex.graphics.graphicsClasses.TextFlowComposer;
+import flex.graphics.graphicsClasses.TextGraphicElement;
+
+import text.importExport.TextFilter;
+import text.model.FlowElement;
+import text.model.Paragraph;
+import text.model.Span;
+import text.model.TextFlow;
+
+[DefaultProperty("content")]
+
+/**
+ *  Documentation is not currently avilable.
+ */
+public class TextGraphic extends TextGraphicElement
+	implements IDisplayObjectElement
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function TextGraphic()
+	{
+		super();
+
+		_content = textFlow = createEmptyTextFlow();
+	}
+
+	//--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var textFlow:TextFlow;
+
+	/**
+	 *  @private
+	 */
+	private var textFlowComposer:TextFlowComposer = new TextFlowComposer();
+
+	/**
+	 *  @private
+	 *  This flag is set to true by the text, width, and height setters,
+	 *  to indicate that the TextLines must be regenerated.
+	 *  The regeneration occurs when draw() is called or 'bounds' is read.
+	 */
+	private var invalid:Boolean = false;
+
+	/**
+	 *  @private
+	 */
+	private var textChanged:Boolean = false;
+
+	/**
+	 *  @private
+	 */
+	private var contentChanged:Boolean = false;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties: GraphicElement
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  bounds
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _bounds:Rectangle = new Rectangle();
+
+    /**
+     *  @inheritDoc
+     */
+    override public function get bounds():Rectangle
+	{
+		if (invalid)
+		{
+			compose();
+			invalid = false;
+		}
+
+		var w:Number;
+		var h:Number;
+
+		if (drawWidth != 0 && drawHeight != 0)
+		{
+			w = drawWidth;
+			h = drawHeight;
+		}
+		else
+		{
+			var r:Rectangle = textFlowComposer.actualBounds;
+			w = Math.ceil(r.width);
+			h = Math.ceil(r.height);
+		}
+
+		_bounds.width = w;
+		_bounds.height = h;
+
+		return _bounds;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties: Text Attributes
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  blockProgression
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _blockProgression:String = "lr";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get blockProgression():String
+	{
+		return _blockProgression;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set blockProgression(value:String):void
+	{
+		if (value != _blockProgression)
+		{
+			var oldValue:String = _blockProgression;
+			_blockProgression = value;
+			dispatchPropertyChangeEvent("blockProgression", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  direction
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _direction:String = "ltr";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get direction():String
+	{
+		return _direction;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set direction(value:String):void
+	{
+		if (value != _direction)
+		{
+			var oldValue:String = _direction;
+			_direction = value;
+			dispatchPropertyChangeEvent("direction", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  lineBreak
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _lineBreak:String = "toFit";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get lineBreak():String
+	{
+		return _lineBreak;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set lineBreak(value:String):void
+	{
+		if (value != _lineBreak)
+		{
+			var oldValue:String = _lineBreak;
+			_lineBreak = value;
+			dispatchPropertyChangeEvent("lineBreak", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  lineThrough
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _lineThrough:Boolean = false;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get lineThrough():Boolean
+	{
+		return _lineThrough;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set lineThrough(value:Boolean):void
+	{
+		if (value != _lineThrough)
+		{
+			var oldValue:Boolean = _lineThrough;
+			_lineThrough = value;
+			dispatchPropertyChangeEvent("lineThrough", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  marginBottom
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _marginBottom:Number = 0;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get marginBottom():Number
+	{
+		return _marginBottom;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set marginBottom(value:Number):void
+	{
+		if (value != _marginBottom)
+		{
+			var oldValue:Number = _marginBottom;
+			_marginBottom = value;
+			dispatchPropertyChangeEvent("marginBottom", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  marginLeft
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _marginLeft:Number = 0;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get marginLeft():Number
+	{
+		return _marginLeft;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set marginLeft(value:Number):void
+	{
+		if (value != _marginLeft)
+		{
+			var oldValue:Number = _marginLeft;
+			_marginLeft = value;
+			dispatchPropertyChangeEvent("marginLeft", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  marginRight
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _marginRight:Number = 0;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get marginRight():Number
+	{
+		return _marginRight;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set marginRight(value:Number):void
+	{
+		if (value != _marginRight)
+		{
+			var oldValue:Number = _marginRight;
+			_marginRight = value;
+			dispatchPropertyChangeEvent("marginRight", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  marginTop
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _marginTop:Number = 0;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get marginTop():Number
+	{
+		return _marginTop;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set marginTop(value:Number):void
+	{
+		if (value != _marginTop)
+		{
+			var oldValue:Number = _marginTop;
+			_marginTop = value;
+			dispatchPropertyChangeEvent("marginTop", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  textAlignLast
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _textAlignLast:String = "left";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get textAlignLast():String
+	{
+		return _textAlignLast;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set textAlignLast(value:String):void
+	{
+		if (value != _textAlignLast)
+		{
+			var oldValue:String = _textAlignLast;
+			_textAlignLast = value;
+			dispatchPropertyChangeEvent("textAlignLast", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  textDecoration
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _textDecoration:String = "none";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get textDecoration():String
+	{
+		return _textDecoration;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set textDecoration(value:String):void
+	{
+		if (value != _textDecoration)
+		{
+			var oldValue:String = _textDecoration;
+			_textDecoration = value;
+			dispatchPropertyChangeEvent("textDecoration", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  textIndent
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _textIndent:Number = 0;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get textIndent():Number
+	{
+		return _textIndent;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set textIndent(value:Number):void
+	{
+		if (value != _textIndent)
+		{
+			var oldValue:Number = _textIndent;
+			_textIndent = value;
+			dispatchPropertyChangeEvent("textIndent", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//----------------------------------
+	//  whiteSpaceCollapse
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _whiteSpaceCollapse:String = "preserve";
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get whiteSpaceCollapse():String
+	{
+		return _whiteSpaceCollapse;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set whiteSpaceCollapse(value:String):void
+	{
+		if (value != _whiteSpaceCollapse)
+		{
+			var oldValue:String = _whiteSpaceCollapse;
+			_whiteSpaceCollapse = value;
+			dispatchPropertyChangeEvent("whiteSpaceCollapse", oldValue, value);
+
+			invalidateTextLines("style");
+			notifyElementChanged();
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  content
+	//----------------------------------
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	protected var _content:Object;
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+	public function get content():Object
+	{
+		return _content;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set content(value:Object):void
+	{
+		if (value != _content)
+		{
+			var oldValue:Object = _content;
+			_content = value;
+			dispatchPropertyChangeEvent("content", oldValue, value);
+
+			invalidateTextLines("content");
+			notifyElementChanged();
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: GraphicElement
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function draw(g:Graphics):void
+	{
+		super.draw(g);
+
+		compose(drawWidth, drawHeight);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: TextGraphicElement
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function invalidateTextLines(cause:String):void
+	{
+		if (cause == "text")
+			textChanged = true;
+		else if (cause == "content")
+			contentChanged = true;
+
+		invalid = true;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private function createEmptyTextFlow():TextFlow
+	{
+		var textFlow:TextFlow = new TextFlow();
+		var p:Paragraph = new Paragraph();
+		var span:Span = new Span();
+		textFlow.replaceElements(0, 0, p);
+		p.replaceElements(0, 0, span);
+		return textFlow;
+	}
+
+	/**
+	 *  @private
+	 */
+	private function importMarkup(markup:String):TextFlow
+	{
+		markup =
+			'<TextGraphic xmlns="http://ns.adobe.com/fxg/2008">' +
+			    '<content>' + markup + '</content>' +
+			'</TextGraphic>';
+
+		return TextFilter.importFromString(markup, "fxg");
+	}
+
+	/**
+	 *  @private
+	 */
+	private function createTextFlow():TextFlow
+	{
+		if (contentChanged)
+		{
+            if (content is TextFlow)
+            {
+                textFlow = TextFlow(content);
+            }
+            else if (content is Array)
+            {
+                textFlow = createEmptyTextFlow();
+                textFlow.appendChildren = content as Array;
+            }
+            else if (content is FlowElement)
+            {
+                textFlow = createEmptyTextFlow();
+                textFlow.appendChildren = [ content ];
+            }
+			else if (content is String)
+			{
+				textFlow = importMarkup(String(content));
+			}
+			else if (content == null)
+			{
+				textFlow = createEmptyTextFlow();
+			}
+            else
+            {
+                throw new Error("invalid content");
+            }
+		}
+		else if (textChanged)
+		{
+			if (text != null && text != "")
+			{
+				textFlow = TextFilter.importFromString(text, "text");
+			}
+			else
+			{
+				textFlow = createEmptyTextFlow();
+			}
+		}
+
+ 		contentChanged = false;
+		textChanged = false;
+
+        textFlow.blockProgression = blockProgression;
+        textFlow.color = color;
+        textFlow.direction = direction;
+		textFlow.fontFamily = fontFamily;
+		textFlow.fontSize = fontSize;
+		textFlow.fontStyle = fontStyle;
+		textFlow.fontWeight = fontWeight;
+		textFlow.kerning = kerning;
+		textFlow.lineHeight = lineHeight;
+		textFlow.lineBreak = lineBreak;
+		textFlow.lineThrough = lineThrough;
+		textFlow.marginBottom = marginBottom;
+		textFlow.marginLeft = marginLeft;
+		textFlow.marginRight = marginRight;
+		textFlow.marginTop = marginTop;
+		textFlow.paddingBottom = paddingBottom;
+		textFlow.paddingLeft = paddingLeft;
+		textFlow.paddingRight = paddingRight;
+		textFlow.paddingTop = paddingTop;
+		textFlow.textAlign = textAlign;
+		textFlow.textAlignLast = textAlignLast;
+		textFlow.textAlpha = textAlpha;
+		textFlow.textDecoration = textDecoration;
+		textFlow.textIndent = textIndent;
+		textFlow.trackingRight = tracking; // what about trackingLeft?
+		textFlow.verticalAlign = verticalAlign;
+		textFlow.whitespaceCollapse = whiteSpaceCollapse; // different case
+
+		return textFlow;
+	}
+
+	/**
+	 *  @private
+	 */
+	private function compose(width:Number = Infinity,
+							 height:Number = Infinity):void
+	{
+		textFlow = createTextFlow();
+		_content = textFlow;
+
+		textFlowComposer.removeTextLines(DisplayObjectContainer(displayObject));
+
+		var bounds:Rectangle = textFlowComposer.requestedBounds;
+		bounds.x = 0;
+		bounds.y = 0;
+		bounds.width = width;
+		bounds.height = height;
+
+		textFlowComposer.composeTextFlow(textFlow);
+
+		textFlowComposer.addTextLines(DisplayObjectContainer(displayObject));
+	}
+}
+
+}


fixed bug in borromtright aligner

fixed bug in borromtright aligner

--- src/ktu/utils/align/aligners/BottomRightAligner.as
+++ src/ktu/utils/align/aligners/BottomRightAligner.as
@@ -24,7 +24,7 @@
 			for ( var i:int = 0; i < length; i++ ) {
 				var target:Rectangle = targets[i];
 				target.x = tcsRightEdge - target.width;
-				target.y = tcsBottomEdge - target.width;
+				target.y = tcsBottomEdge - target.height;
 			}
 		}
 	}


Fix bug preventing running processes recursively.

--- src/stdio/Sprite.as
+++ src/stdio/Sprite.as
@@ -5,8 +5,10 @@

   public class Sprite extends flash.display.Sprite {
     public function Sprite() {
-      stage.scaleMode = StageScaleMode.NO_SCALE
-      stage.align = StageAlign.TOP_LEFT
+      if (stage) {
+        stage.scaleMode = StageScaleMode.NO_SCALE
+        stage.align = StageAlign.TOP_LEFT
+      }

       // Let the subclass constructor run first.
       setTimeout(initialize, 0)


Transferred from the Adobe Open Source Subversion Repository

Revision: 12045
Author:   jon.avila@ssbbartgroup.com
Date:     2009-11-20T16:14:25.544519Z

Log Message:
-----------
Update accessibility naming logic.  When accessibility name is explicitly set use that name, otherwise use name provided by getName function in accImpl for component, else use toolTip for component (if present).  Form heading name and item name are still prepended with required field notation if they exist.  Form heading and form item logic now uses accessible name if set on those components including with string containing space is used to silence form heading or form item from being announced.  Required Field string was localized into controls.properties.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as

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

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -27,8 +27,12 @@
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.managers.SystemManager;
+import mx.resources.ResourceManager;
+import mx.resources.IResourceManager;

 use namespace mx_internal;
+
+[ResourceBundle("controls")]

 /**
  *  The AccImpl class is Flex's base class for implementing accessibility
@@ -87,13 +91,36 @@
      *  @private
      *  Method for supporting Form Accessibility.
      */
+    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 = "";
+        if (s1 && s2)
+            s1 += " " +s2;
+        else if (s2)
+            s1 = s2;
+        // else we have non-empty s1 and empty s2, so do nothing.
+        return s1;
+    }
+
+    /**
+     *  @private
+     *  Method for supporting Form Accessibility.
+     */
     private static function updateFormItemString(formItem:FormItem):String
     {
         var formName:String = "";
+        var resourceManager:IResourceManager = ResourceManager.getInstance();

         const itemLabel:Label = formItem.itemLabel;
         const accProp:AccessibilityProperties = (itemLabel ? itemLabel.accessibilityProperties : null);
         if (accProp && accProp.silent)
+            // We already calculated this label's name below, so just return it.
+            // FIXME gosmith: Caching this will cause problems if
+            // formItem, item label, or form header changes dynamically.
             return accProp.name;

         var form:UIComponent = UIComponent(formItem.parent);
@@ -108,20 +135,41 @@
                 var child:UIComponent = UIComponent(form.getChildAt(i));
                 if (child is FormHeading)
                 {
-                    formName = FormHeading(child).label + " ";
+                    // Accessible name if it exists, else label text.
+                    if (FormHeading(child).accessibilityProperties)
+                        formName =
+                        FormHeading(child).accessibilityProperties.name;
+                    if (formName == "")
+                        formName = FormHeading(child).label;
                     break;
                 }
             }
         }

-        // Add in text if we are a required field
+        // Add in "Required Field" text if we are a required field
         if (formItem.required)
-            formName += "Required Field ";
+            formName = joinWithSpace(formName,
+                resourceManager.getString("controls","requiredField"))

         // Add in the label from the formItem
-        if (formItem.label != "")
-            formName += formItem.label + " ";
-
+        // Accessible name if it exists, else label text.
+        var f:String = "";
+        if (formItem.accessibilityProperties)
+            f = formItem.accessibilityProperties.name
+        if (f == "")
+            f = formItem.label;
+
+        formName = joinWithSpace(formName, f);
+
+        /*
+         * Disable form item label accessibility so the form item label and the
+         * text from the form item label are not both seen in the virtual view of
+         * a screen reader.
+         * Otherwise, the formItem would appear with a name, followed
+         * by the component being labeled, with a duplicate of that name.
+         * Setting silent here also causes code above to avoid recalculating the name.
+         * FIXME gosmith: If the caching above is removed, remove the above comment also.
+         */
         if (accProp && !accProp.silent)
         {
             accProp.silent = true;
@@ -254,21 +302,41 @@
      */
     override public function get_accName(childID:uint):String
     {
-        var accName:String = getFormName(master);
-
-        if (childID == 0 &&
-            master.accessibilityProperties &&
+        var accName:String;
+
+        // For simple children, do not include anything but the default name.
+        // Examples: combo box items, list items, etc.
+        if (childID)
+        {
+            accName = getName(childID);
+            // Historical: Return null and not "" for empty and null values.
+            return (accName != null && accName != "") ? accName : null;
+        }
+
+        // Start with form header and/or formItem label text.
+        // Also includes "Required Field" where appropriate.
+        accName = getFormName(master);
+
+        // Now the component's name or toolTip.
+        if (master.accessibilityProperties &&
             master.accessibilityProperties.name != null &&
             master.accessibilityProperties.name != "")
         {
-            accName += master.accessibilityProperties.name + " ";
-        }
-
-        accName += getName(childID) + getStatusName();
-
+			// 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.
+            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.
@@ -327,6 +395,7 @@

         if (!UIComponent(master).enabled)
         {
+            accState &= ~AccConst.STATE_SYSTEM_FOCUSABLE;
             accState |= AccConst.STATE_SYSTEM_UNAVAILABLE;
         }
         else
@@ -339,36 +408,33 @@

         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.toolTip)
-            statusName += " " + master.toolTip;
-
+
         if (master is UIComponent && UIComponent(master).errorString)
-            statusName += " " + 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;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 13145
Author:   mhorn@adobe.com
Date:     2009-12-22T16:47:14.705038Z

Log Message:
-----------
asdoc updates and bug fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/ILogger.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/Stroke.as</path>

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

--- frameworks/projects/framework/src/mx/filters/IBitmapFilter.as
+++ frameworks/projects/framework/src/mx/filters/IBitmapFilter.as
@@ -3,7 +3,8 @@
     import flash.filters.BitmapFilter;

    /**
-    *
+    *  Interface used by some Spark filters.
+    *
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/framework/src/mx/geom/TransformOffsets.as
+++ frameworks/projects/framework/src/mx/geom/TransformOffsets.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-2008 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
-//
-////////////////////////////////////////////////////////////////////////////////
 package mx.geom
 {
 	import flash.geom.Matrix;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/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/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/geom/TransformOffsets.as
+++ frameworks/projects/framework/src/mx/geom/TransformOffsets.as
@@ -22,7 +22,7 @@
 	use namespace mx_internal;

 	/**
-	 *  A CompoundTransform represents a 2D or 3D matrix transform. It can be used in the offsets property on a UIComponent or GraphicElement.
+	 *  A CompoundTransform represents a 2D or 3D matrix transform. It can be used in the postLayoutTransformOffsets property on a UIComponent or GraphicElement.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20127
Author:   sameer@adobe.com
Date:     2011-02-04T09:07:55.998816Z

Log Message:
-----------
Remember the last edited item so that when the grid gets focus, editing behaves correctly.
Take the correct header items into account while configuring scroll bars.
QE notes: Test scroll bars and editing things
Doc notes: No
Bugs: http://bugs.adobe.com/jira/browse/FLEXDMV-2542
http://bugs.adobe.com/jira/browse/FLEXDMV-2325
Reviewer: Sreeni
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as</path>

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

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -32,10 +32,10 @@

 import mx.collections.CursorBookmark;
 import mx.collections.ICollectionView;
+import mx.collections.ISort;
+import mx.collections.ISortField;
 import mx.collections.IViewCursor;
 import mx.collections.ItemResponder;
-import mx.collections.ISort;
-import mx.collections.ISortField;
 import mx.collections.Sort;
 import mx.collections.SortField;
 import mx.collections.errors.ItemPendingError;
@@ -2071,7 +2071,11 @@
         if (bEditedItemPositionChanged)
         {
             bEditedItemPositionChanged = false;
-            commitEditedItemPosition(_proposedEditedItemPosition);
+			// don't do this if mouse is down on an item
+			// on mouse up, we'll let the edit session logic
+			// request a new position
+			if (!lastItemDown)
+            	commitEditedItemPosition(_proposedEditedItemPosition);
             _proposedEditedItemPosition = undefined;
             itemsSizeChanged = false;
         }
@@ -2392,7 +2396,8 @@
         var oldVerticalScrollBar:Object = verticalScrollBar;

         var rowCount:int = listItems.length;
-        if (rowCount + headerItems.length== 0)////TODO
+		// check whether the header items are present
+		if (rowCount + getHeaderItemsLength() == 0)
         {
             // Get rid of any existing scrollbars.
             if (oldHorizontalScrollBar || oldVerticalScrollBar)
@@ -2809,6 +2814,16 @@
         }
         return newArray;
     }
+
+	/**
+	 * Get the length of the header items
+	 *
+	 *  @private
+	 */
+	protected function getHeaderItemsLength():int
+	{
+		return headerItems.length;
+	}

     /**
      *  @private
@@ -7201,15 +7216,24 @@
         {
             pos = itemRendererToIndices(r);

-            if (pos && pos.y >= 0 && displayableColumns[pos.x].editable && !dontEdit)
-            {
-                advancedDataGridEvent = new AdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_EDIT_BEGINNING, false, true);
-                // ITEM_EDIT events are cancelable
-                advancedDataGridEvent.columnIndex = displayableColumns[pos.x].colNum;
-                advancedDataGridEvent.dataField = displayableColumns[pos.x].dataField;
-                advancedDataGridEvent.rowIndex = pos.y;
-                advancedDataGridEvent.itemRenderer = r;
-                dispatchEvent(advancedDataGridEvent);
+            if (pos && pos.y >= 0 && !dontEdit)
+            {
+				if (displayableColumns[pos.x].editable)
+				{
+	                advancedDataGridEvent = new AdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_EDIT_BEGINNING, false, true);
+	                // ITEM_EDIT events are cancelable
+	                advancedDataGridEvent.columnIndex = displayableColumns[pos.x].colNum;
+	                advancedDataGridEvent.dataField = displayableColumns[pos.x].dataField;
+	                advancedDataGridEvent.rowIndex = pos.y;
+	                advancedDataGridEvent.itemRenderer = r;
+	                dispatchEvent(advancedDataGridEvent);
+				}
+				else
+				{
+					// if the item is not editable, set lastPosition to it anyways
+					// so future tabbing starts from there
+					lastEditedItemPosition = { columnIndex: displayableColumns[pos.x].colNum, rowIndex: pos.y };
+				}
             }
         }
         else if (lastItemDown && lastItemDown != itemEditorInstance)
@@ -7279,27 +7303,25 @@

             // start somewhere
             if (!_editedItemPosition)
-            {
                 _editedItemPosition = { rowIndex: 0, columnIndex: 0 };

-                for (;
-                     _editedItemPosition.columnIndex != _columns.length;
-                     _editedItemPosition.columnIndex++)
-                {
-                    // If the editedItemPosition is valid, focus it,
-                    // otherwise find one.
-                    if (_columns[_editedItemPosition.columnIndex].editable &&
-                        _columns[_editedItemPosition.columnIndex].visible)
-                    {
-                        var row:Array = listItems[_editedItemPosition.rowIndex];
-                        if (row && row[_editedItemPosition.columnIndex])
-                        {
-                            foundOne = true;
-                            break;
-                        }
-                    }
-                }
-            }
+            for (;
+                 _editedItemPosition.columnIndex != _columns.length;
+                 _editedItemPosition.columnIndex++)
+	            {
+	                // If the editedItemPosition is valid, focus it,
+	                // otherwise find one.
+	                if (_columns[_editedItemPosition.columnIndex].editable &&
+	                    _columns[_editedItemPosition.columnIndex].visible)
+	                {
+	                    var row:Array = listItems[_editedItemPosition.rowIndex];
+	                    if (row && row[_editedItemPosition.columnIndex])
+	                    {
+	                        foundOne = true;
+	                        break;
+	                    }
+	                }
+	            }

             if (foundOne)
             {


Fixed commitProperties issue where headerInitialized was being set to false after it has been initialized

git-svn-id: f8d5f742b420a6a114b58659a4f85f335318e53c@1447137 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -2333,10 +2333,8 @@
             // no need to call it everytime columnsInvalid becomes true
             if(columnsChanged && !headerInfoInitialized)
             {
+                headerInfos = initializeHeaderInfo(columns);
                 headerInfoInitialized = true;
-                headerInfos = initializeHeaderInfo(columns);
-                headerInfoInitialized = false;
-                columnsChanged = false;
             }

             columnsChanged = false;


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

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


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

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

 package mx.collections.errors
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.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/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/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="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as
+++ frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import flash.display.DisplayObject;
+
+[ExcludeClass];
+
+/**
+ */
+public interface ISystemManagerChildManager
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	function addingChild(child:DisplayObject):void;
+	function childAdded(child:DisplayObject):void;
+
+	function childRemoved(child:DisplayObject):void;
+	function removingChild(child:DisplayObject):void;
+
+	function initializeTopLevelWindow(width:Number, height:Number):void;
+}
+
+}