Transferred from the Adobe Open Source Subversion Repository

Revision: 4899
Author:   jimurphy@adobe.com
Date:     2009-02-09T15:58:02.302090Z

Log Message:
-----------
Merge i10 revisions 4865,4870-4871,4877,4880-4882,4890-4891 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/StyleInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/VisualChildInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java</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/modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedPropertyDeclaration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/TextParser.java</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/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ArrayElementInitializer.java</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/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLListBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EffectInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java</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/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradient.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradient.as
@@ -15,6 +15,7 @@
 import flash.display.GradientType;
 import flash.display.Graphics;
 import flash.geom.Matrix;
+import flash.geom.Point;
 import flash.geom.Rectangle;

 /**
@@ -137,18 +138,75 @@
 	 */
 	public function begin(target:Graphics, rc:Rectangle):void
 	{
-		var w:Number = !isNaN(scaleX) ? scaleX : rc.width;
-		var h:Number = !isNaN(scaleX) ? scaleX : rc.height;
-		var tx:Number = !isNaN(x) ? x + rc.left : rc.left;
-		var ty:Number = !isNaN(y) ? y + rc.top : rc.top;
-
-		// createGradientBox normally tries to "fit" the gradient into the available space
-		// when rotated. By passing in scaleX for both width and height, we maintain scaleX
-		// since no "fitting" occurs when the box is square.
-		commonMatrix.createGradientBox(w, h,
-								!isNaN(mx_internal::_angle) ?
-									mx_internal::_angle : mx_internal::rotationInRadians,
-								 tx, ty);
+        var tx:Number = x;
+		var ty:Number = y;
+		var length:Number = scaleX;
+
+		if (isNaN(length))
+    	{
+			// Figure out the two sides
+			if (rotation % 90 != 0)
+			{
+				// Normalize angles with absolute value > 360
+				var normalizedAngle:Number = rotation % 360;
+				// Normalize negative angles
+				if (normalizedAngle < 0)
+					normalizedAngle += 360;
+
+				// Angles wrap at 180
+				normalizedAngle %= 180;
+
+				// Angles > 90 get mirrored
+				if (normalizedAngle > 90)
+					normalizedAngle = 180 - normalizedAngle;
+
+				var side:Number = rc.width;
+				// Get the hypotenuse of the largest triangle that can fit in the bounds
+				var hypotenuse:Number = Math.sqrt(rc.width * rc.width + rc.height * rc.height);
+				// Get the angle of that largest triangle
+				var hypotenuseAngle:Number =  Math.acos(rc.width / hypotenuse) * 180 / Math.PI;
+
+				// If the angle is larger than the hypotenuse angle, then use the height
+				// as the adjacent side of the triangle
+				if (normalizedAngle > hypotenuseAngle)
+				{
+					normalizedAngle = 90 - normalizedAngle;
+					side = rc.height;
+				}
+
+				// Solve for the hypotenuse given an adjacent side and an angle.
+				length = side / Math.cos(normalizedAngle / 180 * Math.PI);
+			}
+			else
+			{
+				// Use either width or height based on the rotation
+				length = (rotation % 180) == 0 ? rc.width : rc.height;
+			}
+    	}
+
+    	commonMatrix.identity();
+
+    	// If only x or y is defined, force the other to be set to 0
+    	if (!isNaN(tx) && isNaN(ty))
+    		ty = 0;
+    	else if (isNaN(tx) && !isNaN(ty))
+    		tx = 0;
+
+    	// If x and y are specified, then move the gradient so that the
+    	// top left corner is at 0,0
+    	if (!isNaN(tx) && !isNaN(ty))
+    		commonMatrix.translate(819.2, 819.2); // 1638.4 / 2
+    	// Scale the gradient in the x direction. The natural size is 1638.4px. No need
+    	// to scale the y direction because it is infinite
+    	commonMatrix.scale (length / 1638.4, 1);
+    	//
+	    commonMatrix.rotate (!isNaN(mx_internal::_angle) ?
+									mx_internal::_angle : mx_internal::rotationInRadians);
+	    if (isNaN(tx))
+	    	tx = rc.width / 2;
+	    if (isNaN(ty))
+	    	ty = rc.height / 2;
+	    commonMatrix.translate(tx + rc.left, ty + rc.top);

 		target.beginGradientFill(GradientType.LINEAR, mx_internal::colors,
 								 mx_internal::alphas, mx_internal::ratios,


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

--- frameworks/projects/mx/src/mx/accessibility/DateFieldAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/DateFieldAccImpl.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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.accessibility
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8044
Author:   chaase@adobe.com
Date:     2009-06-22T17:01:54.701660Z

Log Message:
-----------
Final (!) PARB changes for effects.
- renamed ArrayInterpolator to MultiValueInterpolator (and enhanced behavior to handle Vectors as well as Arrays).
- Created new AnimateTransform3D subclass of AnimateTransform (to hold 3D-specific properties/defaults), and moved Move3D, Rotate3D, Scale3D to subclass from this new class.

QE Notes: Change to default value of applyLocalProjection (matches former default on 3D effects, but not default on AnimateTransform).
Doc Notes: None
Bugs: None
Reviewer: Hans
Tests: checkintests, effects cyclone from QE

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as" copyfrom-rev="7917" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/MultiValueInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -88,36 +88,11 @@
  *  <mx:AnimateTransform
  *    Properties
  *    id="ID"
- *    applyLocalProjection="false"
  *    applyChangesPostLayout="false"
- *    autoCenterProjection="true"
  *    autoCenterTransform="false"
- *    fieldOfView="no default"
- *    focalLength="no default"
- *    postLayoutRotationX="no default"
- *    postLayoutRotationY="no default"
- *    postLayoutRotationZ="no default"
- *    postLayoutScaleX="no default"
- *    postLayoutScaleY="no default"
- *    postLayoutScaleZ="no default"
- *    postLayoutTranslationX="no default"
- *    postLayoutTranslationY="no default"
- *    postLayoutTranslationZ="no default"
- *    projectionX="0"
- *    projectionY="0"
- *    removeLocalProjectionWhenComplete="false"
- *    rotationX="no default"
- *    rotationY="no default"
- *    rotationZ="no default"
- *    scaleX="no default"
- *    scaleY="no default"
- *    scaleZ="no default"
  *    transformX="0"
  *    transformY="0"
  *    transformZ="0"
- *    translationX="no default"
- *    translationY="no default"
- *    translationZ="no default"
  *  />
  *

  *
@@ -385,111 +360,6 @@
      */
     public var transformZ:Number;

-
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  If true, the effect creates a perspective projection
-     *  and applies it to the target component's parent when it starts playing.
-     *
-     *  @default false
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var applyLocalProjection:Boolean = false;
-
-    /**
-     *  If true, the effect removes the perspective projection
-     *  from the target component's parent when it completes playing.
-     *  By default, the perspective projection is retained.
-     *
-     *  @default false
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var removeLocalProjectionWhenComplete:Boolean = false;
-
-    /**
-     *  Set to false to disable a 3D effect from automatically setting
-     *  the projection point to the center of the target.
-     *  You then use the projectionX and projectionY properties
-     *  to explicitly set the projection point
-     *  as the offset of the projection point from the (0, 0) coordinate of the target.
-     *
-     *
The 3D effects work by mapping a three-dimensional image onto a two-dimensional
-     *  representation for display on a computer screen.
-     *  The projection point defines the center of the field of view,
-     *  and controls how the target is projected from three dimensions onto the screen.

-     *
-     *  @default true
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var autoCenterProjection:Boolean = true;
-    /**
-     *  @copy flash.geom.PerspectiveProjection#fieldOfView
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var fieldOfView:Number;
-    /**
-     *  @copy flash.geom.PerspectiveProjection#focalLength
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var focalLength:Number;
-    /**
-     *  Sets the projection point
-     *  as the offset of the projection point in the x direction
-     *  from the (0, 0) coordinate of the target.
-     *  By default, when you apply a 3D effect, the effect automatically sets
-     *  the projection point to the center of the target.
-     *  You can set the autoCenterProjection property of the effect
-     *  to false to disable this default, and use the
-     *  projectionX and projectionY properties instead.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var projectionX:Number = 0;
-    /**
-     *  Sets the projection point
-     *  as the offset of the projection point in the y direction
-     *  from the (0, 0) coordinate of the target.
-     *  By default, when you apply a 3D effect, the effect automatically sets
-     *  the projection point to the center of the target.
-     *  You can set the autoCenterProjection property of the effect
-     *  to false to disable this default, and use the
-     *  projectionX and projectionY properties instead.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var projectionY:Number = 0;
-
     //--------------------------------------------------------------------------
     //
     // Methods
@@ -1164,14 +1034,6 @@
             return;
         transformInstance.initialized = true;

-        transformInstance.applyLocalProjection = applyLocalProjection;
-        transformInstance.removeLocalProjectionWhenComplete = removeLocalProjectionWhenComplete;
-        transformInstance.autoCenterProjection = autoCenterProjection;
-        transformInstance.fieldOfView = fieldOfView;
-        transformInstance.focalLength = focalLength;
-        transformInstance.projectionX = projectionX;
-        transformInstance.projectionY = projectionY;
-
         // If we're in a transition and we've captured the center already, use it.
         // Otherwise, calculate it.
         // FIXME (chaase): double-check that calling play() directly on an effect


Fullscreen mode, keyboard event for stage.

Also, added default stage.loaderInfo for compatibility with Flash Player.

--- src/flash/display/Stage.as
+++ src/flash/display/Stage.as
@@ -4,6 +4,7 @@
 	import flash.__native.WebGLRenderer;
 	import flash.events.Event;
 	import flash.events.EventDispatcher;
+	import flash.events.KeyboardEvent;
 	import flash.events.MouseEvent;
 	import flash.events.TouchEvent;
 	import flash.geom.Rectangle;
@@ -24,12 +25,14 @@
 		private var needSendTouchMove:Boolean = false;
 		private var lastUpdateTime:int = -1000;
 		//private var requestAnimationFrameHander:Number;
+		private var _loaderInfo:LoaderInfo;
 		private var _stageWidth:Number;
 		private var _stageHeight:Number;
 		public function Stage()
 		{
 			super();
 			window_resize(null);
+			_loaderInfo = new LoaderInfo();
 			if (SpriteFlexjs.startTime===0) {
 				SpriteFlexjs.startTime = Date.now();
 			}
@@ -83,6 +86,8 @@

 		public function invalidate():void  {/**/ }

+		public function get loaderInfo():LoaderInfo  { return _loaderInfo; }
+
 		public function get scaleMode():String  { return null }

 		public function set scaleMode(param1:String):void  {/**/ }
@@ -119,9 +124,19 @@

 		public function set quality(param1:String):void  {/**/ }

-		public function get displayState():String  { return null }
-
-		public function set displayState(param1:String):void  {/**/ }
+		public function get displayState():String  {
+			return (document["fullscreen"] || document["webkitIsFullScreen"] || document["mozFullScreen"]) ? "fullScreen" : "normal";
+		}
+
+		public function set displayState(param1:String):void  {
+			if (param1.indexOf("fullScreen")!=-1) {
+				var requestFunc:Function = (_canvas["requestFullscreen"] || _canvas["webkitRequestFullScreen"] || _canvas["mozRequestFullScreen"] || _canvas["msRequestFullscreen"]);
+				requestFunc.call(_canvas);
+			} else {
+				var cancelFunc:Function = (document["exitFullscreen"] || document["webkitExitFullScreen"] || document["mozCancelFullScreen"] || document["msExitFullscreen"]);
+				cancelFunc.call(document);
+			}
+		}

 		public function get fullScreenSourceRect():Rectangle  { return null }

@@ -179,6 +194,8 @@
 				_canvas.addEventListener("touchend", canvas_touchevent,false);
 				_canvas.addEventListener("touchmove", canvas_touchevent,false);
 				_canvas.addEventListener("touchstart", canvas_touchevent,false);
+				document.addEventListener("keydown", canvas_keyevent,false);
+				document.addEventListener("keyup", canvas_keyevent,false);
 				_canvas.style.position = "absolute";
 				_canvas.style.left = 0;
 				_canvas.style.top = 0;
@@ -237,7 +254,22 @@
 				}
 			}
 		}
-		private function canvas_mouseevent(e:Object):void
+		private function canvas_keyevent(e:Object):void {
+			var jsType:String = e.type;
+			var flashType:String;
+			switch(jsType) {
+				case "keydown":
+					flashType = KeyboardEvent.KEY_DOWN;
+					break;
+				case "keyup":
+					flashType = KeyboardEvent.KEY_UP;
+					break;
+			}
+			if (hasEventListener(flashType)) {
+				dispatchEvent(new KeyboardEvent(flashType, true, false, e.charCode, e.keyCode, e.location, e.ctrlKey, e.altKey, e.shiftKey));
+			}
+		}
+		private function canvas_mouseevent(e:Object):void
 		{
 			var jsType:String = e.type;
 			var flashType:String;


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/OLAPDataGridGroupRendererAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/OLAPDataGridGroupRendererAutomationImpl.as
@@ -0,0 +1,135 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.delegates.advancedDataGrid
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import mx.automation.Automation;
+
+	import mx.automation.delegates.core.UITextFieldAutomationImpl;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.controls.listClasses.ListItemRenderer;
+	import mx.controls.olapDataGridClasses.OLAPDataGridGroupRenderer;
+	import mx.core.mx_internal;
+	import mx.core.IUITextField;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  OLAPDataGridGroupRenderer class.
+	 *
+	 *  @see mx.controls.olapDataGridClasses.OLAPDataGridGroupRenderer
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class  OLAPDataGridGroupRendererAutomationImpl extends UIComponentAutomationImpl
+	{
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(OLAPDataGridGroupRenderer, OLAPDataGridGroupRendererAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj OLAPDataGridGroupRenderer object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function OLAPDataGridGroupRendererAutomationImpl(obj:OLAPDataGridGroupRenderer)
+		{
+
+			super(obj);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get listItemRend():OLAPDataGridGroupRenderer
+		{
+			return uiComponent as OLAPDataGridGroupRenderer;
+		}
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+
+			return ( listItemRend.listData.label ||  super.automationName);
+		}
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [automationName];
+		}
+
+	}
+}


fiexed tests

fiexed tests

--- test/AllTests.as
+++ test/AllTests.as
@@ -26,16 +26,16 @@
             expect(false).to.be.ok();
         }

-        [Init]
+        [Test]
         public function expectTrueToEqualTrue():void
         {
             expect(true).to.equal(true);
         }

-        [Init]
+        [Test]
         public function expectTrueNotToEqualFalse():void
         {
-            expect(true).to.equal(false);
+            expect(true).not.to.equal(false);
         }

         [Test]


bump version to 3.9.6

bump version to 3.9.6

--- kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
+++ kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
@@ -32,7 +32,7 @@
 		/**
 		 * The current version of the KDP.
 		 */
-		public var kdpVersion : String = "v3.9.5";
+		public var kdpVersion : String = "v3.9.6";

 		/**


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 10215
Author:   aharui@adobe.com
Date:     2009-09-13T15:18:59.542124Z

Log Message:
-----------
Resizable header in Spark Skins for Halo Panel

QE Notes: None
Doc Notes: None
Bugs: I'll tell you once JIRA is back on line
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/containers/Panel

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -1869,7 +1869,7 @@
      *  Returns a Rectangle containing the largest piece of header
      *  text (can be either the title or status, whichever is bigger).
      */
-    private function measureHeaderText():Rectangle
+    private function measureHeaderText(useDummyString:Boolean = false):Rectangle
     {
         var textWidth:Number = 20;
         var textHeight:Number = 14;
@@ -1884,6 +1884,19 @@
             metrics = textFormat.measureText(titleTextField.text, false);
             textWidth = metrics.width;
             textHeight = metrics.height;
+        }
+        else
+        {
+            if (useDummyString)
+            {
+                if (titleTextField)
+                {
+                    textFormat = titleTextField.getUITextFormat();
+                    metrics = textFormat.measureText("Wj", false);
+                    textWidth = metrics.width;
+                    textHeight = metrics.height;
+                }
+            }
         }

         if (statusTextField && statusTextField.text)
@@ -1923,9 +1936,14 @@
      *  Proxy to getHeaderHeight() for PanelSkin
      *  since we can't change its function signature
      */
-    mx_internal function getHeaderHeightProxy():Number
-    {
-        return getHeaderHeight();
+    mx_internal function getHeaderHeightProxy(useDummyString:Boolean = false):Number
+    {
+        var headerHeight:Number = getStyle("headerHeight");
+
+        if (isNaN(headerHeight))
+            headerHeight = measureHeaderText(useDummyString).height + HEADER_PADDING;
+
+        return headerHeight;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6957
Author:   jimurphy@adobe.com
Date:     2009-05-15T16:11:59.737851Z

Log Message:
-----------
Merged beta1 revisions 6898,6906,6913,6915,6917,6926,6930 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ImageHelper.java</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/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.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/controls/VRule.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/flash-integration/FlexComponentKit.mxp</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/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java</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/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/filters/GlowFilterNode.java</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/flash-integration/FlexComponentKit.mxi</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>

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

--- frameworks/projects/airframework/src/mx/core/WindowedApplication.as
+++ frameworks/projects/airframework/src/mx/core/WindowedApplication.as
@@ -503,6 +503,8 @@
 //--------------------------------------

 [ResourceBundle("core")]
+
+[Alternative(replacement="spark.components.WindowedApplication", since="4.0")]

 /**
  *  The WindowedApplication defines the application container


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7256
Author:   aharui@adobe.com
Date:     2009-05-23T20:25:20.378550Z

Log Message:
-----------
Fix various Mustella failures due to frame1 cleanup

QE Notes: None
Doc Notes: None
Bugs: SDK-21372, SDK-21373, SDK-21374
Reviewer: Joan tested a cyclone
tests: checkintests mustella/components mustella/MarshallPlan

Modified Paths:
--------------
<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/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" action="M">/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/managers/SystemManagerProxy.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/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.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/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -214,6 +214,9 @@

 	override public function getImplementation(interfaceName:String):Object
 	{
+        var obj:Object = super.getImplementation(interfaceName);
+        if (obj) return obj;
+
 		return _systemManager.getImplementation(interfaceName);
 	}

@@ -379,7 +382,7 @@
         if (bridge)
         {
             var mutualTrust:Boolean =
-		        SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(systemManager));
+		        SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(mp));

             var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
 		        SWFBridgeEvent.BRIDGE_WINDOW_ACTIVATE,
@@ -410,7 +413,7 @@
 	    if (bridge)
         {
             var mutualTrust:Boolean =
-		        SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(systemManager));
+		        SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(mp));

 			var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
 				SWFBridgeEvent.BRIDGE_WINDOW_DEACTIVATE,


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as
@@ -15,6 +15,11 @@
 /**
  *  This interface describes the advanced propeties that a component must
  *  implement to fully participate in the advanced style subsystem.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IAdvancedStyleClient extends IStyleClient
 {
@@ -30,6 +35,11 @@

     /**
      *  The identity of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get id():String;

@@ -39,6 +49,11 @@

     /**
      *  The parent of this component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get styleParent():IAdvancedStyleClient;

@@ -55,17 +70,32 @@
      *
      *  Note Spark components use their skin state as the pseudo state, where
      *  as Halo components use their currentState property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function isPseudoSelectorMatch(pseudoState:String):Boolean;

     /**
      *  Determines whether this instance is the same as - or is a subclass of -
      *  the given type.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function isTypeSelectorMatch(type:String):Boolean;

     /**
      *   Apply state specific styles.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function applyStateStyles(oldState:String, newState:String, recursive:Boolean):void;
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.controls.sliderClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4801
Author:   jvroom@adobe.com
Date:     2009-02-02T22:20:51.949507Z

Log Message:
-----------
Use * as the type for lastResult instead of Object to avoid need for cast.

Bugs: SDK-18299
Reviewed by: Mete
QA: No
Doc: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as

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

--- frameworks/projects/rpc/src/mx/rpc/CallResponder.as
+++ frameworks/projects/rpc/src/mx/rpc/CallResponder.as
@@ -113,7 +113,7 @@
      *  method.  Additionally, if a fault occurs this value will still be set to
      *  the last successful result returned by a token monitored by this CallResponder.
      */
-    public var lastResult:Object;
+    public var lastResult:*;

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8721
Author:   aharui@adobe.com
Date:     2009-07-21T22:11:37.692397Z

Log Message:
-----------
Hopefully final implementation of IME support.

QE Notes: None
Doc Notes: new API in IIMESupport
Bugs: SDK-22267, SDK-18516
Reviewer: Gordon
API Change: Yes
Is noteworthy for integration: Yes, new API in IIMESupport
tests: checkintests mustella/gumbo/components/TextInput mustella/gumbo/components/TextArea

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.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/controls/List.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/spark/src/spark/primitives/RichEditableText.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/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.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/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IIMESupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ComboBase.as
+++ frameworks/projects/mx/src/mx/controls/ComboBase.as
@@ -638,6 +638,24 @@
         invalidateProperties();

         dispatchEvent(new Event("editableChanged"));
+    }
+
+    //----------------------------------
+    //  enableIME
+    //----------------------------------
+
+    /**
+     *  A flag that indicates whether the IME should
+     *  be enabled when the component receives focus.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get enableIME():Boolean
+    {
+        return editable;
     }

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


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5309
Author:   gruehle@adobe.com
Date:     2009-03-13T21:54:51.752954Z

Log Message:
-----------
Add Spark style metadata to Halo components.

baseColor - added to:
 UIComponent
 ScrollControlBase

symbolColor - added to:
 CheckBox
 ComboBase
 Container
 DateChooser
 ScrollBar
 NumericStepper
 PopUpButton
 RadioButton
 ScrollControlBase

contentBackgroundColor - added to:
 ComboBase
 Container
 DateChooser
 NumericStepper
 ScrollControlBase
 TextInput

focusColor - added to:
 Button
 ComboBase
 Container
 DateChooser
 NumericStepper
 ScrollControlBase
 Slider
 TextInput

The remaining Spark styles - alternatingItemColors, rollOverColor, and selectionColor are already defined for the Halo components.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.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/Button.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/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.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/Container.as</path>

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

--- frameworks/projects/mx/src/mx/controls/PopUpButton.as
+++ frameworks/projects/mx/src/mx/controls/PopUpButton.as
@@ -218,6 +218,19 @@
  *  @productversion Flex 3
  */
 [Style(name="skin", type="Class", inherit="no", states="up, over, down, disabled, popUpOver, popUpDown")]
+
+/**
+ *  Color of any symbol of a component. Examples include the check mark of a CheckBox or
+ *  the arrow of a ScrollBar button.
+ *
+ *  @default 0x000000
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

 //--------------------------------------
 //  Excluded APIs


Small simplification of XML parsing

Small simplification of XML parsing

--- src/org/swiftsuspenders/utils/ClassDescriptor.as
+++ src/org/swiftsuspenders/utils/ClassDescriptor.as
@@ -39,18 +39,19 @@
 			{
 				return description;
 			}
-			var descriptionXML : XML = getDescriptionXML(type);
-			if (descriptionXML.@name != 'Object' && descriptionXML.factory.extendsClass.length() == 0)
+			const descriptionXML : XML = getDescriptionXML(type);
+			const factory : XML = descriptionXML.factory[0];
+			if (descriptionXML.@name != 'Object' && factory.extendsClass.length() == 0)
 			{
 				throw new InjectorError('Interfaces can\'t be used as instantiatable classes.');
 			}

-			var injectionPoints : Array = [];
+			const injectionPoints : Array = [];
 			var node : XML;

 			//get constructor injections
 			var ctorInjectionPoint : InjectionPoint;
-			node = descriptionXML.factory.constructor[0];
+			node = factory.constructor[0];
 			if (node)
 			{
 				ctorInjectionPoint = new ConstructorInjectionPoint(node, type);
@@ -60,8 +61,8 @@
 				ctorInjectionPoint = new NoParamsConstructorInjectionPoint();
 			}
 			var injectionPoint : InjectionPoint;
-			//get injection points for variables
-			for each (node in descriptionXML.factory.*.
+			//get injection points for variables and setters
+			for each (node in factory.*.
 					(name() == 'variable' || name() == 'accessor').metadata.(@name == 'Inject'))
 			{
 				injectionPoint = new PropertyInjectionPoint(node);
@@ -69,7 +70,7 @@
 			}

 			//get injection points for methods
-			for each (node in descriptionXML.factory.method.metadata.(@name == 'Inject'))
+			for each (node in factory.method.metadata.(@name == 'Inject'))
 			{
 				injectionPoint = new MethodInjectionPoint(node);
 				injectionPoints.push(injectionPoint);
@@ -77,7 +78,7 @@

 			//get post construct methods
 			var postConstructMethodPoints : Array = [];
-			for each (node in descriptionXML.factory.method.metadata.(@name == 'PostConstruct'))
+			for each (node in factory.method.metadata.(@name == 'PostConstruct'))
 			{
 				injectionPoint = new PostConstructInjectionPoint(node);
 				postConstructMethodPoints.push(injectionPoint);


Transferred from the Adobe Open Source Subversion Repository

Revision: 7200
Author:   egeorgie@adobe.com
Date:     2009-05-21T22:44:22.206867Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-21326 [ASDoc] mx.utils.MatrixUtil class is missing descriptions

Fix: Mark class as private, exclude from docs, delete some unused code.

QE Notes: None
Doc Notes: None
Bugs: SDK-21326
Reviewer: Hans
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -3473,9 +3473,9 @@

     protected function nonDeltaLayoutMatrix():Matrix
     {
-        if(hasDeltaIdentityTransform)
+        if (hasDeltaIdentityTransform)
             return null;
-        if(_layoutFeatures != null)
+        if (_layoutFeatures != null)
         {
             return _layoutFeatures.layoutMatrix;
         }


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

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


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableTextBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableTextBaseAutomationImpl.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@1263092 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/validators/EmailValidator.as
+++ frameworks/projects/framework/src/mx/validators/EmailValidator.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: 4885
Author:   jszeto@adobe.com
Date:     2009-02-07T00:12:32.609062Z

Log Message:
-----------
Flex SDK Framework - Update mx.filters API and class hierarchy

- Removed BaseFilter.as, BaseDimensionFilter.as, and GradientFilter.as
- Renamed IBitmapFilter.as to IFlexBitmapFilter.as
- Changed IBitmapFilter.clone to createBitmapFilter
- Moved properties and functions from base classes up to filter subclasses
- Changed ColorMatrixFilter constructor parameter from Array to Object
- Added Change metadata to all filter classes
- Changed notifyFilterChanged from public to private
- Added ASDoc comments
- Added copyright info
- Added a number of formatting and style fixes

QE Notes: Need to update tests based on API changes. Missing tests for DisplacementMapFilter.as.
Doc Notes: Need extensive ASDoc review. Consider using @copy for properties that match the flash.filters properties
Bugs: n/a
Reviewer: Gordon

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as" copyfrom-rev="4821" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.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/UIComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as
@@ -1,14 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.filters
 {
-	import flash.filters.BitmapFilter;
-	import flash.filters.GradientGlowFilter;
-	import mx.core.mx_internal;
-	import mx.filters.IBitmapFilter;
-
-	use namespace mx_internal;
-
-public class GradientGlowFilter extends GradientFilter implements IBitmapFilter
+import flash.events.Event;
+import flash.events.EventDispatcher;
+import flash.filters.BitmapFilter;
+import flash.filters.BitmapFilterQuality;
+import flash.filters.BitmapFilterType;
+import flash.filters.GradientGlowFilter;
+
+import mx.events.PropertyChangeEvent;
+import mx.filters.IFlexBitmapFilter;
+import mx.graphics.GradientEntry;
+
+/**
+ *  @review
+ *  Dispatched when a property value has changed.
+ */
+[Event(name="change", type="flash.events.Event")]
+
+[DefaultProperty("entries")]
+
+/**
+ *  @review
+ *
+ * 	The mx.filters.GradientGlowFilter class is based on
+ *  flash.filters.GradientGlowFilter but adds support for dynamically updating
+ *  property values.
+ *  When a property changes, it dispatches an event that tells the filter owner to
+ *  reapply the filter. Use this class instead of flash.filters.GradientGlowFilter if you plan
+ *  to dynamically change the filter property values.
+ *
+ *  @see flash.filters.GradientGlowFilter
+ */
+public class GradientGlowFilter extends EventDispatcher implements IFlexBitmapFilter
 {
+	include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 * @copy flash.filters.GradientGlowFilter
+	 */
 	public function GradientGlowFilter(distance:Number = 4.0, angle:Number = 45,
 									   colors:Array = null, alphas:Array = null,
 									   ratios:Array = null, blurX:Number = 4.0,
@@ -16,6 +62,8 @@
 									   quality:int = 1, type:String = "inner",
 									   knockout:Boolean = false)
 	{
+		super();
+
 		this.distance = distance;
 		this.angle = angle;
 		this.blurX = blurX;
@@ -25,10 +73,416 @@
 		this.type = type;
 		this.knockout = knockout;

-		super(colors, alphas, ratios);
-	}
-
-	public function clone():BitmapFilter
+
+		var newEntries:Array = [];
+		var colorsLen:int = colors ? colors.length : 0;
+		var alphasLen:int = alphas ? alphas.length : 0;
+		var ratiosLen:int = ratios ? ratios.length : 0;
+		var maxLen:int = Math.max(colorsLen, alphasLen, ratiosLen);
+
+		for (var i:int = 0; i < maxLen; i++)
+		{
+			var newEntry:GradientEntry = new GradientEntry();
+			if (colorsLen > i)
+				newEntry.color = colors[i];
+			if (alphasLen > i)
+				newEntry.alpha = alphas[i];
+			if (ratiosLen > i)
+				newEntry.ratio = ratios[i];
+
+			newEntries.push(newEntry);
+		}
+
+		entries = newEntries;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+ 	/**
+	 *  @private
+	 */
+	private var colors:Array /* of uint */ = [];
+
+ 	/**
+	 *  @private
+	 */
+	private var ratios:Array /* of Number */ = [];
+
+ 	/**
+	 *  @private
+	 */
+	private var alphas:Array /* of Number */ = [];
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+    //  angle
+    //----------------------------------
+
+	private var _angle:Number = 45;
+
+	/**
+	 *  The angle, in degrees. Valid values are 0 to 360. The default is 45.
+	 *  The angle value represents the angle of the theoretical light source
+	 *  falling on the object and determines the placement of the effect
+	 *  relative to the object. If distance is set to 0, the effect is not
+	 *  offset from the object, and therefore the angle property has no effect.
+	 */
+	public function get angle():Number
+	{
+		return _angle;
+	}
+
+	public function set angle(value:Number):void
+	{
+		if (value != _angle)
+		{
+			_angle = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  blurX
+    //----------------------------------
+
+	private var _blurX:Number = 4.0;
+
+	/**
+	 *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
+	 *  or less means that the original image is copied as is. The default
+	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+	 *  are optimized to render more quickly than other values.
+	 */
+	public function get blurX():Number
+	{
+		return _blurX;
+	}
+
+	public function set blurX(value:Number):void
+	{
+		if (value != _blurX)
+		{
+			_blurX = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  blurY
+    //----------------------------------
+
+	private var _blurY:Number = 4.0;
+
+	/**
+	 *  The amount of vertical blur. Valid values are 0 to 255. A blur of 1
+	 *  or less means that the original image is copied as is. The default
+	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+	 *  are optimized to render more quickly than other values.
+	 */
+	public function get blurY():Number
+	{
+		return _blurY;
+	}
+
+	public function set blurY(value:Number):void
+	{
+		if (value != _blurY)
+		{
+			_blurY = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  distance
+    //----------------------------------
+
+	private var _distance:Number = 4.0;
+
+	/**
+	 *  The offset distance of the glow. The default value is 4.
+	 */
+	public function get distance():Number
+	{
+		return _distance;
+	}
+
+	public function set distance(value:Number):void
+	{
+		if (value != _distance)
+		{
+			_distance = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+	//  entries
+	//----------------------------------
+
+ 	/**
+	 *  @private
+	 *  Storage for the entries property.
+	 */
+	private var _entries:Array = [];
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General", arrayType="mx.graphics.GradientEntry")]
+
+	/**
+	 *  An Array of GradientEntry objects
+	 *  defining the fill patterns for the gradient fill.
+	 *
+	 *  @default []
+	 */
+	public function get entries():Array
+	{
+		return _entries;
+	}
+
+ 	/**
+	 *  @private
+	 */
+	public function set entries(value:Array):void
+	{
+		var oldValue:Array = _entries;
+		_entries = value;
+
+		processEntries();
+		notifyFilterChanged();
+		//dispatchGradientChangedEvent("entries", oldValue, value);
+	}
+
+	//----------------------------------
+    //  knockout
+    //----------------------------------
+
+	private var _knockout:Boolean = false;
+
+	/**
+	 *  Specifies whether the object has a knockout effect. A knockout effect
+	 *  makes the object's fill transparent and reveals the background color
+	 *  of the document. The value true specifies a knockout effect; the
+	 *  default value is false (no knockout effect).
+	 */
+	public function get knockout():Boolean
+	{
+		return _knockout;
+	}
+
+	public function set knockout(value:Boolean):void
+	{
+		if (value != _knockout)
+		{
+			_knockout = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  quality
+    //----------------------------------
+
+	private var _quality:int = BitmapFilterQuality.LOW;
+
+	/**
+	 *  The number of times to apply the filter. The default value is
+	 *  BitmapFilterQuality.LOW, which is equivalent to applying the filter
+	 *  once. The value BitmapFilterQuality.MEDIUM  applies the filter twice;
+	 *  the value BitmapFilterQuality.HIGH applies it three times. Filters
+	 *  with lower values are rendered more quickly.
+	 *
+	 *  For most applications, a quality value of low, medium, or high is
+	 *  sufficient. Although you can use additional numeric values up to 15
+	 *  to achieve different effects, higher values are rendered more slowly.
+	 *  Instead of increasing the value of quality, you can often get a similar
+	 *  effect, and with faster rendering, by simply increasing the values of
+	 *  the blurX and blurY properties.
+	 */
+	public function get quality():int
+	{
+		return _quality;
+	}
+
+	public function set quality(value:int):void
+	{
+		if (value != _quality)
+		{
+			_quality = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  strength
+    //----------------------------------
+
+	private var _strength:Number = 1;
+
+	/**
+	 *  The strength of the imprint or spread. The higher the value, the more
+	 *  color is imprinted and the stronger the contrast between the glow and
+	 *  the background. Valid values are 0 to 255. A value of 0 means that the
+	 *  filter is not applied. The default value is 1.
+	 */
+	public function get strength():Number
+	{
+		return _strength;
+	}
+
+	public function set strength(value:Number):void
+	{
+		if (value != _strength)
+		{
+			_strength = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  type
+    //----------------------------------
+
+	private var _type:String = BitmapFilterType.INNER;
+
+	/**
+	 *  The placement of the filter effect. Possible values are
+	 *  flash.filters.BitmapFilterType constants:
+ 	 *  BitmapFilterType.OUTER — Glow on the outer edge of the object
+	 *  BitmapFilterType.INNER — Glow on the inner edge of the object; the default.
+	 *  BitmapFilterType.FULL — Glow on top of the object
+	 */
+	public function get type():String
+	{
+		return _type;
+	}
+
+	public function set type(value:String):void
+	{
+		if (value != _type)
+		{
+			_type = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Extract the gradient information in the public entries
+	 *  Array into the internal colors, ratios,
+	 *  and alphas arrays.
+	 */
+	private function processEntries():void
+	{
+		colors = [];
+		ratios = [];
+		alphas = [];
+
+		if (!_entries || _entries.length == 0)
+			return;
+
+		var ratioConvert:Number = 255;
+
+		var i:int;
+
+		var n:int = _entries.length;
+		for (i = 0; i < n; i++)
+		{
+			var e:GradientEntry = _entries[i];
+			e.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
+							   entry_propertyChangeHandler, false, 0, true);
+			colors.push(e.color);
+			alphas.push(e.alpha);
+			ratios.push(e.ratio * ratioConvert);
+		}
+
+		if (isNaN(ratios[0]))
+			ratios[0] = 0;
+
+		if (isNaN(ratios[n - 1]))
+			ratios[n - 1] = 255;
+
+		i = 1;
+
+		while (true)
+		{
+			while (i < n && !isNaN(ratios[i]))
+			{
+				i++;
+			}
+
+			if (i == n)
+				break;
+
+			var start:int = i - 1;
+
+			while (i < n && isNaN(ratios[i]))
+			{
+				i++;
+			}
+
+			var br:Number = ratios[start];
+			var tr:Number = ratios[i];
+
+			for (var j:int = 1; j < i - start; j++)
+			{
+				ratios[j] = br + j * (tr - br) / (i - start);
+			}
+		}
+	}
+
+   	/**
+     * @private
+     * Notify of a change to our filter, so that filter stack is ultimately
+     * re-applied by the framework.
+     */
+	private function notifyFilterChanged():void
+	{
+		dispatchEvent(new Event(Event.CHANGE));
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Event handlers
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private function entry_propertyChangeHandler(event:Event):void
+	{
+		processEntries();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  IFlexBitmapFilter
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Creates a flash.filters.GradientGlowFilter instance using the current
+	 *  property values.
+	 *
+	 *  @return flash.filters.GradientGlowFilter instance
+	 */
+	public function createBitmapFilter():BitmapFilter
 	{
 		return new flash.filters.GradientGlowFilter(distance, angle, colors, alphas, ratios,
 										blurX, blurY, strength, quality, type,


Transferred from the Adobe Open Source Subversion Repository

Revision: 10606
Author:   egeorgie@adobe.com
Date:     2009-09-25T23:01:50.455888Z

Log Message:
-----------
White space cleanup.

Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: build
Is noteworthy for integration: Nope

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/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.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/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/Block.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/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.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/collections/ArrayList.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/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.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/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/testWheel.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.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/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -2601,7 +2601,7 @@
             if (createdComponents)
             {
                 var n:int = createdComponents.length;
-                for(var i:int = 0; i < n; i++)
+                for (var i:int = 0; i < n; i++)
                 {
                     if (createdComponents[i] === child)
                     {


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

--- frameworks/projects/mx/src/mx/controls/HRule.as
+++ frameworks/projects/mx/src/mx/controls/HRule.as
@@ -0,0 +1,248 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls
+{
+
+import flash.display.Graphics;
+import mx.core.UIComponent;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  The shadow color of the line.
+ *

+ *
If strokeWidth is 1, shadowColor
+ *	  does nothing.

+ *
If strokeWidth is 2, shadowColor is
+ *	  the color of the bottom line.

+ *
If strokeWidth is greater than 2, shadowColor
+ *	  is the color of the bottom and right edges of the rectangle.

+ *

+ *
+ *  @default 0xEEEEEE
+ */
+[Style(name="shadowColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  The color of the line.
+ *

+ *
If strokeWidth is 1, strokeColor is
+ *	  the color of the entire line.

+ *
If strokeWidth is 2, strokeColor is
+ *	  the color of the top line.

+ *
If strokeWidth is greater than 2, strokeColor is
+ *	  the color of the top and left edges of the rectangle.

+ *

+ *
+ *  @default 0xC4CCCC
+ */
+[Style(name="strokeColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  The thickness of the rule in pixels.
+ *

+ *
If strokeWidth is 1,
+ *	  the rule is a 1-pixel-wide line.

+ *
If strokeWidth is 2,
+ *	  the rule is two adjacent 1-pixel-wide horizontal lines.

+ *
If strokeWidth is greater than 2,
+ *	  the rule is a hollow rectangle with 1-pixel-wide edges.

+ *

+ *
+ *  @default 2
+ */
+[Style(name="strokeWidth", type="Number", format="Length", inherit="yes")]
+	// Note: stroke-width is inheriting in SVG,
+	// although border-width is not inheriting in CSS
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[IconFile("HRule.png")]
+
+/**
+ *  The HRule control creates a single horizontal line.
+ *  You typically use this control to create a dividing line
+ *  within a container.
+ *
+ *
The HRule control has the following default properties:

+ *

+ *

+ *           Characteristic
+ *           Description
+ *

+ *

+ *           Default size
+ *           The default width is 100 pixels, default height is 2 pixels. By default, the HRule control is not resizable; set width and height to percentage values to enable resizing.
+ *

+ *

+ *           strokeWidth
+ *           2 pixels.
+ *

+ *

+ *           strokeColor
+ *           0xC4CCCC.
+ *

+ *

+ *           shadowColor
+ *           0xEEEEEE.
+ *

+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:HRule> tag inherits all of the tag attributes
+ *  of its superclass, and adds the following tag attributes:

+ *
+ *

+ *  <mx:HRule
+ *    Styles
+ *    strokeColor="0xC4CCCC"
+ *    shadowColor="0xEEEEEE"
+ *    strokeWidth="2"
+ *  />
+ *

+ *
+ *  @includeExample examples/SimpleHRule.mxml
+ *
+ *  @see mx.controls.VRule
+ */
+public class HRule extends UIComponent
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static const DEFAULT_PREFERRED_WIDTH:Number = 100;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *	Constructor
+	 */
+	public function HRule()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: UIComponent
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function measure():void
+	{
+		super.measure();
+
+		measuredWidth = DEFAULT_PREFERRED_WIDTH;
+		measuredHeight = getStyle("strokeWidth");
+	}
+
+	/**
+	 *  @private
+	 *  The appearance of our horizontal rule is inspired by
+	 *  the leading browser's rendering of HTML's
.
+	 *
+	 *  The only reliable way to draw the 1-pixel lines that are
+	 *  the borders of the horizontal rule is by filling rectangles!
+	 *  Otherwise, very short lines become antialised, probably because
+	 *  the Player is trying to render an endcap.
+	 */
+	override protected function updateDisplayList(unscaledWidth:Number,
+												  unscaledHeight:Number):void
+	{
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		var g:Graphics = graphics;
+
+		g.clear();
+
+		// Look up the style properties
+		var strokeColor:Number = getStyle("strokeColor");
+		var shadowColor:Number = getStyle("shadowColor");
+		var strokeWidth:Number = getStyle("strokeWidth");
+
+		// The thickness of the stroke shouldn't be greater than
+		// the unscaledHeight of the bounding rectangle.
+		if (strokeWidth > unscaledHeight)
+			strokeWidth = unscaledHeight;
+
+		// The horizontal rule extends from the left edge
+		// to the right edge of the bounding rectangle and
+		// is vertically centered within the bounding rectangle.
+		var left:Number = 0;
+		var top:Number = (unscaledHeight - strokeWidth) / 2;
+		var right:Number = unscaledWidth;
+		var bottom:Number = top + strokeWidth;
+
+		if (strokeWidth == 1)
+		{
+			// **************
+
+			g.beginFill(strokeColor);
+			g.drawRect(left, top, unscaledWidth, bottom-top);
+			g.endFill();
+		}
+		else if (strokeWidth == 2)
+		{
+			// **************
+			// oooooooooooooo
+
+			g.beginFill(strokeColor);
+			g.drawRect(left, top, unscaledWidth, 1);
+			g.endFill();
+
+			g.beginFill(shadowColor);
+			g.drawRect(left, bottom - 1, unscaledWidth, 1);
+			g.endFill();
+		}
+		else if (strokeWidth > 2)
+		{
+			// *************o
+			// *            o
+			// oooooooooooooo
+
+			g.beginFill(strokeColor);
+			g.drawRect(left, top, unscaledWidth - 1, 1);
+			g.endFill();
+
+			g.beginFill(shadowColor);
+			g.drawRect(right - 1, top, 1, bottom - top - 1);
+			g.drawRect(left, bottom - 1, unscaledWidth, 1);
+			g.endFill();
+
+			g.beginFill(strokeColor);
+			g.drawRect(left, top + 1, 1, bottom - top - 2);
+			g.endFill();
+		}
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18102
Author:   clucier@adobe.com
Date:     2010-10-08T18:41:32.622155Z

Log Message:
-----------
Fix to logic dispatching ADD and REMOVE events from Container.

QE notes: None
Doc notes: None
Bugs: SDK-27357
Reviewer: Alex
Tests run: Cyclone Service
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -3968,7 +3968,7 @@
             dispatchEvent(event);
         }

-        if (hasEventListener(FlexEvent.ADD))
+        if (child.hasEventListener(FlexEvent.ADD))
             child.dispatchEvent(new FlexEvent(FlexEvent.ADD));

         super.childAdded(child); // calls createChildren()
@@ -3981,7 +3981,7 @@
     {
         super.removingChild(child);

-        if (hasEventListener(FlexEvent.REMOVE))
+        if (child.hasEventListener(FlexEvent.REMOVE))
             child.dispatchEvent(new FlexEvent(FlexEvent.REMOVE));

         if (hasEventListener(ChildExistenceChangedEvent.CHILD_REMOVE))


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7448
Author:   jszeto@adobe.com
Date:     2009-05-29T21:11:34.571514Z

Log Message:
-----------
http://bugs.adobe.com/jira/browse/SDK-18373 - Defaults for some properties of Flex graphics classes do not match defaults in FXG xsd

Updated SolidColorStroke, GradientStroke, LinearGradientStroke and RadialGradientStroke with new default values. This shouldn't change the default behavior for caps and joints because the Player defaults to "round" if the value is null.

Updated GlowFilter and GradientGlowFilter

http://bugs.adobe.com/jira/browse/SDK-21493 - BitmapImage resizeMode default value is repeat should be normal

Updated the ASDoc comments to set default to "repeat"

QE Notes: None
Doc Notes: I made lots of small ASDoc changes
Bugs: SDK-18373, SDK-21493
Reviewer: Deepa

Modified Paths:
--------------
<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/graphics/LinearGradientStroke.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/filters/GradientGlowFilter.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/flex4/src/spark/filters/GlowFilter.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as
+++ frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as
@@ -53,10 +53,10 @@
  *  <mx:SolidColorStroke
  *    Properties
  *    alpha="1.0"
- *    caps="null|none|round|square"
+ *    caps="round|none|square"
  *    color="0x000000"
- *    joints="null|bevel|miter|round"
- *    miterLimit="0"
+ *    joints="round|bevel|miter"
+ *    miterLimit="3"
  *    pixelHinting="false|true"
  *    scaleMode="normal|none|noScale|vertical"
  *    weight="1 (in most cases)"
@@ -106,18 +106,18 @@
      *  with a default value of LineScaleMode.NORMAL.
 	 *
 	 *  @param caps Specifies the type of caps at the end of lines.
-	 *  Valid values are "round", "square",
-	 *  and "none".
-	 *  The default value is null.
+	 *  Valid values are CapsStyle.ROUND, CapsStyle.SQUARE,
+	 *  and CapsStyle.NONE.
+	 *  The default value is CapsStyle.ROUND.
 	 *
 	 *  @param joints Specifies the type of joint appearance used at angles.
-	 *  Valid values are "round", "miter",
-	 *  and "bevel".
-	 *  The default value is null.
+	 *  Valid values are JointStyle.ROUND, JointStyle.MITER,
+	 *  and JointStyle.BEVEL.
+	 *  The default value is JointStyle.ROUND.
 	 *
 	 *  @param miterLimit Indicates the limit at which a miter is cut off.
 	 *  Valid values range from 0 to 255.
-	 *  The default value is 0.
+	 *  The default value is 3.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
@@ -129,9 +129,9 @@
 						             alpha:Number = 1.0,
 						             pixelHinting:Boolean = false,
 						             scaleMode:String = "normal",
-						             caps:String = null,
-						             joints:String = null,
-						             miterLimit:Number = 0)
+						             caps:String = "round",
+						             joints:String = "round",
+						             miterLimit:Number = 3)
 	{
 		super();

@@ -190,16 +190,18 @@
 	//  caps
 	//----------------------------------

-	private var _caps:String = null;
+	private var _caps:String = CapsStyle.ROUND;

 	[Bindable("propertyChange")]
 	[Inspectable(category="General", enumeration="round,square,none", defaultValue="round")]

 	/**
 	 *  Specifies the type of caps at the end of lines.
-	 *  Valid values are: "round", "square",
-	 *  and "none".
-	 *
+	 *  Valid values are: CapsStyle.ROUND, CapsStyle.SQUARE,
+	 *  and CapsStyle.NONE.
+	 *
+	 *  @default CapsStyle.ROUND
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
 	 *  @playerversion AIR 1.1
@@ -258,16 +260,18 @@
 	//  joints
 	//----------------------------------

-	private var _joints:String = null;
+	private var _joints:String = JointStyle.ROUND;

 	[Bindable("propertyChange")]
 	[Inspectable(category="General", enumeration="round,bevel,miter", defaultValue="round")]

 	/**
 	 *  Specifies the type of joint appearance used at angles.
-	 *  Valid values are "round", "miter",
-	 *  and "bevel".
-	 *
+	 *  Valid values are JointStyle.ROUND, JointStyle.MITER,
+	 *  and JointStyle.BEVEL.
+	 *
+	 *  @default JointStyle.ROUND
+	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
 	 *  @playerversion AIR 1.1
@@ -292,7 +296,7 @@
 	//  miterLimit
 	//----------------------------------

-	private var _miterLimit:Number = 0;
+	private var _miterLimit:Number = 3;

 	[Bindable("propertyChange")]
 	[Inspectable(category="General")]
@@ -301,7 +305,7 @@
 	 *  Indicates the limit at which a miter is cut off.
 	 *  Valid values range from 0 to 255.
 	 *
-	 *  @default 0
+	 *  @default 3
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
@@ -496,10 +500,7 @@
         graphicsStroke.miterLimit = miterLimit;
         graphicsStroke.pixelHinting = pixelHinting;
         graphicsStroke.scaleMode = scaleMode;
-
-        // Remove this check when SDK-18373 is fixed
-        graphicsStroke.joints = (!joints) ? JointStyle.ROUND : joints;
-
+
         // There is a bug in Drawing API-2 where if no caps is
         // specified, a value of 'none' is used instead of 'round'
         graphicsStroke.caps = (!caps) ? CapsStyle.ROUND : caps;