Transferred from the Adobe Open Source Subversion Repository

Revision: 5028
Author:   egeorgie@adobe.com
Date:     2009-02-21T00:02:17.627601Z

Log Message:
-----------
IGraphicElement interface clean-up and optimizations.
Animating a GraphicElement that doesn't share the Group's DO should be now faster and smoother since redrawing it won't redraw the Group anymore.

1. Group doesn't always clear the first sequence of display objects now
2. Moved the shared DO logic almost entirely into Group
3. More granular invalidation for GraphicElements

QE Notes: Make sure we have test that count the number of display objects for a given set of graphic elements and a group
Doc Notes:
Bugs: None
Reviewer: Glenn, Ryan, Jason
tests: None

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</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/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/ISharedGraphicsDisplayObject.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -328,7 +328,7 @@
     /**
      *  @private
      */
-    public function get smooth():Boolean
+    public function get  smooth():Boolean
     {
         return _smooth;
     }
@@ -357,14 +357,9 @@
         if (!source || !drawnDisplayObject || !(drawnDisplayObject is Sprite))
             return;

+        // The base GraphicElement class has cleared the graphics for us.
        	var g:Graphics = Sprite(drawnDisplayObject).graphics;

-        // We only clear if we have a displayObject. This handles the case of having our own displayObject and the
-		// case when we have a mask and have created a _drawnDisplayObject. We don't want to clear if we are
-		// sharing a display object.
-		if (displayObject)
-			g.clear();
-
         g.lineStyle();
         var repeatBitmap:Boolean = false;
         var fillScaleX:Number = 1;
@@ -399,12 +394,12 @@
 			matrix.scale(fillScaleX, fillScaleY);
 			matrix.translate(drawX, drawY);
 	        g.beginBitmapFill(_source as BitmapData, matrix, repeatBitmap, smooth);
-	        g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
+        g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
 	        g.endFill();
-		}
+    }
 		else
 		{
-
+
 			// If we have scaleGrid, we draw 9 sections, each with a different scale factor based
 			// on the grid region.


Transferred from the Adobe Open Source Subversion Repository

Revision: 6753
Author:   srahim@adobe.com
Date:     2009-05-08T14:46:34.979202Z

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/MXMLComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -34,11 +34,12 @@
 [DefaultProperty("popUp")]

 /**
- *  This component is used to position a dropDown in layout. Since a dropDown is
- *  added to the display list via the PopUpManager, it doesn't normally participate
- *  in layout. The PopUp component is a UIComponent that does get added to a
- *  container and thus is laid out. It is responsible for then sizing and
- *  positioning the dropDown relative to itself.
+ *  This component is used to position a drop-down element,
+ *  such as a DropDownList component, in layout. Because a drop-down
+ *  element is added to the display list by the PopUpManager, it doesn't normally
+ *  participate in layout. The PopUp component is a UIComponent that is added to a
+ *  container and is laid out. It is then responsible for sizing and
+ *  positioning the dropDown element relative to itself.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -156,7 +157,7 @@
 	private var _displayPopUp:Boolean = false;

 	/**
-	 *  If true, add the popUp to the PopUpManager. If false, remove it.
+	 *  If true, adds the popUp to the PopUpManager. If false, removes it.
 	 *
 	 *  @default false
 	 *
@@ -209,8 +210,8 @@
 	/**
 	 *  UIComponent to add to the PopUpManager when the PopUpAnchor is opened.
 	 *  If the popUp implements IFocusManagerContainer, the popUp will have its
-     *  own FocusManager so that, if the user uses the TAB key to navigate between
-     *  controls, only the controls in the popUp will be accessed.
+     *  own FocusManager so that, if the user uses the Tab key to navigate between
+     *  controls, only the controls in the popUp are accessed.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10
@@ -295,8 +296,8 @@
     //--------------------------------------------------------------------------

 	/**
-	 *  Call this function to update the popUp's transform matrix. Typically
-	 *  this would be called while performing an effect upon the PopUpAnchor.
+	 *  Call this function to update the popUp's transform matrix. Typically,
+	 *  this function is called while performing an effect on the PopUpAnchor.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10
@@ -309,7 +310,7 @@
 	}

 	/**
-	 *  This function is called when the popUp is positioned when it is displayed
+	 *  Called when the popUp is positioned, when it is displayed,
 	 *  or when updatePopUpTransform() is called. Override this function to
 	 *  alter the position of the popUp.
 	 *


Transferred from the Adobe Open Source Subversion Repository

Revision: 2672
Author:   egeorgie@adobe.com
Date:     2008-07-30T22:52:27.741630Z

Log Message:
-----------
Remove GraphicElement.bounds APIs in favor of measure

Reviewed by Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/graphics/GraphicTags_checkintests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -228,16 +228,14 @@
 	//
 	//--------------------------------------------------------------------------

-	//----------------------------------
-	//  bounds
-	//----------------------------------
-
-    override public function get bounds():Rectangle
-	{
-		return new Rectangle(0, 0,
-			!isNaN(explicitWidth) ? explicitWidth : (source ? source.width : 0),
-			!isNaN(explicitHeight) ? explicitHeight : (source ? source.height : 0));
-	}
+	/**
+	 *  @inheritDoc
+	 */
+    override protected function measure():void
+    {
+        measuredWidth = source ? source.width : 0;
+        measuredHeight = source ? source.height : 0;
+    }

 	/**
 	 *  @inheritDoc


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.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/styles/metadata/SkinStyles.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/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.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/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.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/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerDynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/FocusStyles.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/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -147,7 +147,8 @@
  *  Number of pixels of vertical offset to apply to the label position.
  *  Positive numbers move the label down.
  *
- *  @default 1
+ *  The default value for the Halo theme is 0.
+ *  The default value for the Spark theme is 1.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -160,7 +161,8 @@
  *  Number of pixels between the component's bottom border
  *  and the bottom of its content area.
  *
- *  @default 2
+ *  The default value for the Halo theme is 2.
+ *  The default value for the Spark theme is 0.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -173,7 +175,8 @@
  *  Number of pixels between the component's top border
  *  and the top of its content area.
  *
- *  @default 2
+ *  The default value for the Halo theme is 2.
+ *  The default value for the Spark theme is 0.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -212,7 +215,8 @@
 /**
  *  Text color of the label as the user moves the mouse pointer over the button.
  *
- *  @default 0x2B333C
+ *  The default value for the Halo theme is 0x2B333C.
+ *  The default value for the Spark theme is 0x000000.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -224,7 +228,8 @@
 /**
  *  Text color of the label as the user presses it.
  *
- *  @default 0x000000
+ *  The default value for the Halo theme is 0x2B333C.
+ *  The default value for the Spark theme is 0x000000.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -251,8 +256,10 @@
 //--------------------------------------

 /**
- *  Name of the class to use as the default skin for the background and border.
- *  @default "mx.skins.halo.ButtonSkin"
+ *  Name of the class to use as the default skin for the background and border.
+ *
+ *  The default value for the Halo theme is mx.skins.halo.ButtonSkin.
+ *  The default value for the Spark theme is mx.skins.spark.ButtonSkin.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -260,17 +267,6 @@
  *  @productversion Flex 3
  */
 [Style(name="skin", type="Class", inherit="no", states="up, over, down, disabled, selectedUp, selectedOver, selectedDown, selectedDisabled")]
-
-/**
- *  Name of the class to use as the emphasized skin for the background and border.
- *  @default "mx.skins.halo.ButtonSkin"
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
-[Style(name="emphasizedSkin", type="Class", inherit="no", states="up, over, down, disabled, selectedUp, selectedOver, selectedDown, selectedDisabled")]

 /**
  *  Name of the class to use as the skin for the background and border
@@ -329,7 +325,8 @@
  *  is emphasized (such as when serving as the default
  *  button for a container).
  *
- *  @default "mx.skins.spark.DefaultButtonSkin"
+ *  The default value for the Halo theme is mx.skins.halo.ButtonSkin.
+ *  The default value for the Spark theme is mx.skins.spark.DefaultButtonSkin.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


Added new functions to the JS layer.

Added new functions to the JS layer.

--- flash/com/shamurai/FLVPlayer.as
+++ flash/com/shamurai/FLVPlayer.as
@@ -1,29 +1,61 @@
- package com.shamurai {
-	import flash.external.*;
-	import fl.video.FLVPlayback;
-	import flash.display.Sprite;
+package com.shamurai {
+  import flash.external.*;
+  import fl.video.FLVPlayback;
+  import flash.display.Sprite;
+
+  public class FLVPlayer extends Sprite {
+    public function FLVPlayer() {
+      player.skinBackgroundColor = 0x666666;
+      player.skinBackgroundAlpha = 0.5;
+      player.addEventListener("metadataReceived", metadataRecieved);
+      ExternalInterface.addCallback("play", play);
+      ExternalInterface.addCallback("pause", pause);
+      ExternalInterface.addCallback("seek", seek);
+      ExternalInterface.addCallback("stop", stop);
+      ExternalInterface.addCallback("setSource", setSource);
+      ExternalInterface.addCallback("setAlpha", setAlpha);
+      setSource("");
+    }
+
+    // TODO: map some optional args here.
+    public function play() {
+      player.play();
+    }
+
+    public function pause() {
+      player.pause();
+    }

-	public class FLVPlayer extends Sprite {
-		public function FLVPlayer() {
-			player.skinBackgroundColor = 0x666666;
-			player.skinBackgroundAlpha = 0.5;
-			player.addEventListener("metadataReceived", metadataRecieved);
-			ExternalInterface.addCallback("setSource", setSource);
-			ExternalInterface.addCallback("setAlpha", setAlpha);
-			setSource("");
-		}
-
-		public function setSource(url:String) {
-			player.source = url;
-		}
+    public function seek(time:Number) {
+      player.seek(time);
+    }

-		public function setAlpha(a:Number) {
-			player.skinBackgroundAlpha = a;
-		}
+    public function stop() {
+      player.stop();
+    }

-		public function metadataRecieved(eventObject:Object) {
-			var meta:Object = player.metadata;
-			ExternalInterface.call("onMetaData", meta.canSeekToEnd, meta.cuePoints.length, meta.audiocodecid, meta.audiodelay, meta.audiodatarate, meta.videocodecid, meta.framerate, meta.meta, meta.height, meta.width, meta.duration);
-		}
-	}
+    public function setSource(url:String) {
+      player.source = url;
+    }
+
+    public function setAlpha(a:Number) {
+      player.skinBackgroundAlpha = a;
+    }
+
+    public function metadataRecieved(eventObject:Object) {
+      var meta:Object = player.metadata;
+      ExternalInterface.call("onMetaData",
+                             meta.canSeekToEnd,
+                             meta.cuePoints.length,
+                             meta.audiocodecid,
+                             meta.audiodelay,
+                             meta.audiodatarate,
+                             meta.videocodecid,
+                             meta.framerate,
+                             meta.meta,
+                             meta.height,
+                             meta.width,
+                             meta.duration);
+    }
+  }
 }


Call removeEventListener with useCapture of true, since events were added with it.

--- flash/org/windmill/WMExplorer.as
+++ flash/org/windmill/WMExplorer.as
@@ -46,7 +46,7 @@
       spr.name = 'borderSprite';
       stage.addChild(spr);
       // Highlight every element, create locator chain on mouseover
-      stage.addEventListener(MouseEvent.MOUSE_OVER, select);
+      stage.addEventListener(MouseEvent.MOUSE_OVER, select, false);
       // Stop on click
       stage.addEventListener(MouseEvent.MOUSE_DOWN, annihilateEvent, true);
       stage.addEventListener(MouseEvent.MOUSE_UP, annihilateEvent, true);
@@ -59,7 +59,11 @@
       var stage:Stage = Windmill.getStage();
       stage.removeChild(borderSprite);
       stage.removeEventListener(MouseEvent.MOUSE_OVER, select);
-      stage.removeEventListener(MouseEvent.MOUSE_DOWN, stop);
+      // Call removeEventListener with useCapture of 'true', since
+      // the listener was added with true
+      stage.removeEventListener(MouseEvent.MOUSE_DOWN, annihilateEvent, true);
+      stage.removeEventListener(MouseEvent.MOUSE_UP, annihilateEvent, true);
+      stage.removeEventListener(MouseEvent.CLICK, stop, true);
       running = false;
       // Pass off to annihilateEvent to prevent the app from responding
       annihilateEvent(e);
@@ -90,7 +94,7 @@
         expr = expr.replace(/\/$/, '');
         var res:* = ExternalInterface.call('wm_explorerSelect', expr);
         if (!res) {
-          WMLogger.log('Locator chain: ' expr);
+          WMLogger.log('Locator chain: ' + expr);
         }
       }
       else {
@@ -99,6 +103,7 @@
     }

     public static function annihilateEvent(e:MouseEvent):void {
+      trace('Annihilating ' + e.type);
       e.preventDefault();
       e.stopImmediatePropagation();
     }


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

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

 package mx.automation.delegates.flashflexkit


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPTrace.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPTrace.as
@@ -0,0 +1,131 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+/**
+ *  The OLAPTrace class controls the generation of trace information
+ *  generated by the OLAP classes and written to the log file.
+ *  This class uses the trace() method internally to write out the log information.
+ *
+ *
You must set TraceOutputFileEnable=1 in mm.cfg, and use the
+ *  Debug Flash Player or AIR Debug Launcher to generate trace output.

+ *
+ *  @see trace()
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPTrace
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Set to true to enable trace output.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var traceOn:Boolean = true;
+
+    /**
+     *  The current trace level, which determines the amount of trace information
+     *  written to the log file, TRACE_LEVEL_1 writes the least amount of
+     *  information to the log file, and TRACE_LEVEL_3 writes the most.
+     *
+     *
All trace information output by a call to the traceMsg() method
+     *  with a level argument less than traceLevel
+     *  is sent to the log file.

+     *
+     *  @default TRACE_LEVEL_1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static var traceLevel:int = 1;
+
+    /**
+     *  Specifies to write minimal trace information to the log file.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const TRACE_LEVEL_1:int = 1;
+
+    /**
+     *  Specifies to write more trace information to the log file than TRACE_LEVEL_1.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const TRACE_LEVEL_2:int = 2;
+
+    /**
+     *  Specifies to write the most trace information to the log file.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const TRACE_LEVEL_3:int = 3;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Writes trace information to the log file
+     *.
+     *
You must set TraceOutputFileEnable=1 in mm.cfg, and use the
+     *  Debug Flash Player or AIR Debug Launcher to generate
+     *  trace output by calling this method.

+     *
+     *  @param msg The trace message.
+     *
+     *  @param level The trace level of the message.
+     *  Only trace messages with a level argument less than traceLevel
+     *  are sent to the log file.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function traceMsg(msg:String, level:int=1):void
+    {
+        if (traceOn && level <= traceLevel)
+            trace(msg);
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17709
Author:   clucier@adobe.com
Date:     2010-09-15T00:42:08.082044Z

Log Message:
-----------
Fix the build. Bad assumption made in previous checkin about existence of 'id' and 'document' properties on some classes.  Also tightened up some casts in Model.java.

QE notes: None
Doc notes: None
Bugs: N/A
Reviewer: Pete
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/OverrideBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetEventHandler.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java</path>

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

--- frameworks/projects/framework/src/mx/states/SetProperty.as
+++ frameworks/projects/framework/src/mx/states/SetProperty.as
@@ -374,7 +374,7 @@
             // Disable bindings for the base property if appropriate. If the binding
             // fires while our override is applied, the correct value will automatically
             // be applied when the binding is later enabled.
-            enableBindings(obj, propName, false);
+            enableBindings(obj, parent, propName, false);
         }
         else if (!applied)
         {
@@ -423,7 +423,7 @@
             // Re-enable bindings for the base property if appropriate. If the binding
             // fired while our override was applied, the current value will automatically
             // be applied once enabled.
-            enableBindings(obj, propName);
+            enableBindings(obj, parent, propName);

 	        // Restore related value, if needed
 	        if (relatedProps)


Transferred from the Adobe Open Source Subversion Repository

Revision: 10973
Author:   pfarland@adobe.com
Date:     2009-10-12T20:30:33.806508Z

Log Message:
-----------
Removing sentence in [Deprecated] tag and referring them to the channelSet property. The ASDoc explains the deprecation.

QE notes: None
Doc notes: None
Bugs: SDK-20066
Tests run: Checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as

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

--- frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as
@@ -176,7 +176,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    [Deprecated("Property protocol is deprecated. Please use an appropriate channel from your services configuration file (DefaultHTTP or DefaultHTTPS for instance); when useProxy is false set your URL to use the right protocol")]
+    [Deprecated(replacement="channelSet")]
     public function set protocol(protocol:String):void
     {
         if (destination == DEFAULT_DESTINATION_HTTP || destination == DEFAULT_DESTINATION_HTTP)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/CheckBox.as
+++ frameworks/projects/spark/src/spark/components/CheckBox.as
@@ -14,6 +14,11 @@

 import flash.events.Event;
 import flash.events.MouseEvent;
+
+/**
+ *  @copy mx.components.baseClasses.GroupBase#symbolColor
+ */
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

 [IconFile("FxCheckBox.png")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 11966
Author:   aharui@adobe.com
Date:     2009-11-19T00:21:41.792188Z

Log Message:
-----------
Move focusSkinExclusions into Skin (from SparkSkin) and add suggestedFocusSkinExclusions to SkinnableComponent.

QE Notes: None
Doc Notes: new API (suggestedFocusSkinExclusions)
Bugs: SDK-19255
Reviewer: Glenn
API Change: Yes
Is noteworthy for integration: Yes
tests: checkintests mustella/gumbo/components/TextInput, TextArea, CheckBox, RadioButton

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCaptureSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</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/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</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/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17312
Author:   cframpto@adobe.com
Date:     2010-08-13T15:23:19.671052Z

Log Message:
-----------
Add support for basic styles to DataGrid.  Since the DefaultItemRenderer is an UITextField, styles it supports should work.  I tried fontFamily, fontWeight, fontColor, fontSize and color.

The selection cover methods were calling invalidateDisplayList when there wasn't a grid and the selection was set directly in GridSelection.  Removed the calls since they don't make sense.

QE notes:
Doc notes:
Bugs:
Reviewer: Hans
Tests run: checkintests, DataGrid
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -41,7 +41,14 @@
 import spark.events.GridSelectionEventKind;

 use namespace mx_internal;
-
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+include "../styles/metadata/BasicNonInheritingTextStyles.as"
+include "../styles/metadata/BasicInheritingTextStyles.as"
+
 //--------------------------------------
 //  Events
 //--------------------------------------
@@ -843,6 +850,29 @@

     /**
      *  @private
+     */
+    override public function styleChanged(styleProp:String):void
+    {
+        super.styleChanged(styleProp);
+
+        if (grid)
+        {
+            const allStyles:Boolean = (styleProp == null || styleProp == "styleName");
+            if (allStyles || styleManager.isSizeInvalidatingStyle(styleProp))
+            {
+               grid.invalidateSize();
+               if (grid.layout)
+                    grid.layout.clearVirtualLayoutCache();
+                if (grid.gridDimensions)
+                    grid.gridDimensions.clearTypicalCellWidthsAndHeights();
+             }
+
+            grid.invalidateDisplayList();
+        }
+    }
+
+    /**
+     *  @private
      *  Build in basic keyboard navigation support in Grid. The focus is on
      *  the DataGrid which means the Scroller doesn't see the Keyboard events
      *  unless the event is dispatched to it.
@@ -1339,10 +1369,7 @@
         {
             selectionChanged = gridSelection.selectAll();
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1368,10 +1395,7 @@
         {
             selectionChanged = gridSelection.removeAll();
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1434,10 +1458,7 @@
         {
             selectionChanged = gridSelection.setRow(rowIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1463,10 +1484,7 @@
         {
             selectionChanged = gridSelection.addRow(rowIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1492,10 +1510,7 @@
         {
             selectionChanged = gridSelection.removeRow(rowIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1521,10 +1536,7 @@
         {
             selectionChanged = gridSelection.setRows(rowIndex, rowCount);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1593,10 +1605,7 @@
         {
             selectionChanged = gridSelection.setCell(rowIndex, columnIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1622,10 +1631,7 @@
         {
             selectionChanged = gridSelection.addCell(rowIndex, columnIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1651,10 +1657,7 @@
         {
             selectionChanged = gridSelection.removeCell(rowIndex, columnIndex);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;
@@ -1683,10 +1686,7 @@
             selectionChanged = gridSelection.setCellRegion(
                 rowIndex, columnIndex, rowCount, columnCount);
             if (selectionChanged)
-            {
-                invalidateDisplayList()
                 dispatchFlexEvent(FlexEvent.VALUE_COMMIT);
-            }
         }

         return selectionChanged;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6284
Author:   gosmith@adobe.com
Date:     2009-04-27T17:37:28.069105Z

Log Message:
-----------
SimpleText and RichText now have a static mx_internal backgroundColor:Object property for debugging, like RichEditableText has had. It defaults to null, meaning no background. If you set it to a uint, the components will draw an opaque background so that you can see their bounds.

QE Notes: This property may be useful for testing as well as debugging.
Doc Notes: None
Bugs: None
Reviewer: Carol will review

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -13,6 +13,8 @@
 {

 import flash.display.DisplayObjectContainer;
+import flash.display.Graphics;
+import flash.display.Sprite;
 import flash.geom.Rectangle;
 import flash.text.TextFormat;
 import flash.text.engine.FontLookup;
@@ -187,6 +189,14 @@
      *  Used in getEmbeddedFontContext().
      */
     private static var staticTextFormat:TextFormat;
+
+    /**
+     *  @private
+     *  Used for debugging.
+     *  Set this to an RGB uint to draw an opaque background
+     *  so that you can see the bounds of the component.
+     */
+    mx_internal static var backgroundColor:Object = null;

     //--------------------------------------------------------------------------
     //
@@ -471,6 +481,33 @@
         }
     }

+   //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+    											  unscaledHeight:Number):void
+    {
+    	super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+    	// Draw an optional background for debugging.
+    	var bc:Object = mx_internal::backgroundColor;
+    	if (bc != null)
+    	{
+	    	var g:Graphics = Sprite(drawnDisplayObject).graphics;
+	    	g.clear();
+	        g.lineStyle();
+	        g.beginFill(uint(bc));
+	       	g.drawRect(0, 0, unscaledWidth, unscaledHeight);
+	        g.endFill();
+	    }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods: GraphicElement


Transferred from the Adobe Open Source Subversion Repository

Revision: 4077
Author:   gosmith@adobe.com
Date:     2008-11-12T00:17:52.619247Z

Log Message:
-----------
TextBox and TextGraphic now avoid getting or setting their displayObject's scrollRect unnecessarily, because this causes Player 10.0 to allocate a surface.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Glenn

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

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -367,16 +367,18 @@
         var overset:Boolean = compose(unscaledWidth, unscaledHeight);

         // Use scrollRect to clip overset lines.
-        // But don't set scrollRect to null if it is already null,
+        // But don't read or write scrollRect if you can avoid it,
         // because this causes Player 10.0 to allocate memory.
         if (overset)
         {
             displayObject.scrollRect =
                 new Rectangle(0, 0, unscaledWidth, unscaledHeight);
-        }
-        else if (displayObject.scrollRect)
+            mx_internal::hasScrollRect = true;
+        }
+        else if (mx_internal::hasScrollRect)
         {
             displayObject.scrollRect = null;
+            mx_internal::hasScrollRect = false;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12796
Author:   cframpto@adobe.com
Date:     2009-12-10T18:05:16.265768Z

Log Message:
-----------
Because TLF does not have the concept of "auto" fontLookup like we have at the Flex-level, we have had to rework the meaning of the fontLookup attribute so it is possible to have spans with device text in a component whose fontLookup is "embeddedCFF" without requiring fontLookup "device" to be explicitly specified for those spans.

For Spark text components, the default fontLookup has been changed from "auto" to "embeddedCFF".  The default fontFamily is "Arial".

If the component level fontLookup either defaults to "embeddedCFF" or is explicitly set to "embeddedCFF", for each element that is not explicitly set to fontLookup "device", it will first look for the embedded font, and failing that, will fail back to the device font.  All fonts for a given text component must be in the same swf context.

If the component-level fontLookup is "device" or the component-level fontFamily is not found in the swf context, the font lookup for all elements in the component will revert to "device".

If the player doesn't find the device font it will fallback to one of the builtin default fonts.

QE notes: probably need some new mustella tests to cover all the cases - 5 RichText truncation tests fail but I'm not sure this change has anything to do with that
Doc notes:
Bugs: SDK-24470
Reviewer: Gordon
Tests run: checkintests, TextArea, Label, RichText
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.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/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</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/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -14,7 +14,6 @@

 import flash.display.DisplayObject;
 import flash.text.TextFormat;
-import flash.text.engine.FontLookup;

 import flashx.textLayout.compose.ISWFContext;
 import flashx.textLayout.conversion.ConversionType;
@@ -32,12 +31,10 @@

 import mx.core.IEmbeddedFontRegistry;
 import mx.core.IFlexModuleFactory;
-import mx.core.IFontContextComponent;
 import mx.core.IUIComponent;
 import mx.core.Singleton;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.managers.ISystemManager;

 import spark.components.supportClasses.TextBase;
 import spark.core.CSSTextLayoutFormat;
@@ -216,7 +213,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class RichText extends TextBase implements IFontContextComponent
+public class RichText extends TextBase
 {
     include "../core/Version.as";

@@ -263,48 +260,6 @@
 	 */
 	private static var staticPlainTextExporter:ITextExporter;

-    /**
-     *  @private
-     *  Used to call isFontFaceEmbedded() in getEmbeddedFontContext().
-     */
-    private static var staticTextFormat:TextFormat;
-
-	//--------------------------------------------------------------------------
-    //
-    //  Class properties
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  embeddedFontRegistry
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the _embeddedFontRegistry property.
-     *  Note: This gets initialized on first access,
-     *  not when this class is initialized, in order to ensure
-     *  that the Singleton registry has already been initialized.
-     */
-    private static var _embeddedFontRegistry:IEmbeddedFontRegistry;
-
-    /**
-     *  @private
-     *  A reference to the embedded font registry.
-     *  Single registry in the system.
-     *  Used to look up the moduleFactory of a font.
-     */
-    private static function get embeddedFontRegistry():IEmbeddedFontRegistry
-    {
-        if (!_embeddedFontRegistry)
-        {
-            _embeddedFontRegistry = IEmbeddedFontRegistry(
-                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
-        }
-
-        return _embeddedFontRegistry;
-    }
-
 	//--------------------------------------------------------------------------
 	//
 	//  Class methods
@@ -333,12 +288,16 @@
 		 *  but higher layers like Flex can provide localized versions.
 		 */
 		GlobalSettings.resourceStringFunction = TextUtil.getResourceString;
-
+
+        /**
+         *  Set the TLF hook used to specify the callback used for changing
+         *  the FontLookup based on SWFContext.
+         */
+        GlobalSettings.resolveFontLookupFunction = TextUtil.resolveFontLookup;
+
 		staticStringFactory = new StringTextLineFactory();

 		staticTextFlowFactory = new TextFlowTextLineFactory();
-
-		staticTextFormat = new TextFormat();

 		staticPlainTextImporter =
 			TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT);
@@ -515,37 +474,6 @@
 		invalidateDisplayList();
 	}

-    //--------------------------------------------------------------------------
-    //
-    //  Properties: IFontContextComponent
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  fontContext
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    private var _fontContext:IFlexModuleFactory;
-
-    /**
-     *  @inheritDoc
-     */
-    public function get fontContext():IFlexModuleFactory
-    {
-        return _fontContext;
-    }
-
-    /**
-     *  @private
-     */
-    public function set fontContext(value:IFlexModuleFactory):void
-    {
-        _fontContext = value;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -1269,38 +1197,6 @@
 		return textFlow;
 	}

-    /**
-     *  @private
-     */
-    private function getEmbeddedFontContext():IFlexModuleFactory
-    {
-        var moduleFactory:IFlexModuleFactory;
-
-        var fontLookup:String = getStyle("fontLookup");
-        if (fontLookup != FontLookup.DEVICE)
-        {
-            var font:String = getStyle("fontFamily");
-            var bold:Boolean = getStyle("fontWeight") == "bold";
-            var italic:Boolean = getStyle("fontStyle") == "italic";
-
-            var localLookup:ISystemManager =
-                fontContext && fontContext is ISystemManager ?
-                ISystemManager(fontContext) : systemManager;
-
-            moduleFactory = embeddedFontRegistry.getAssociatedModuleFactory(
-                font, bold, italic, this, fontContext, localLookup, true);
-        }
-
-        if (!moduleFactory && fontLookup == FontLookup.EMBEDDED_CFF)
-        {
-            // if we couldn't find the font and somebody insists it is
-            // embedded, try the default fontContext
-            moduleFactory = fontContext;
-        }
-
-        return moduleFactory;
-    }
-
 	/**
 	 *  @private
 	 *  Uses TextLineFactory to compose the textFlow


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<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/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.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/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.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/listClasses/ListBase.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/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidator.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/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.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/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
+++ frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
@@ -25,6 +25,16 @@
 import mx.styles.StyleManager;

 use namespace mx_internal;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="editable", kind="property")]
+[Exclude(name="editableDisabledSkin", kind="style")]
+[Exclude(name="editableDownSkin", kind="style")]
+[Exclude(name="editableOverSkin", kind="style")]
+[Exclude(name="editableUpSkin", kind="style")]

 //--------------------------------------
 //  Events


removed duplicate variable

removed duplicate variable

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -928,7 +928,7 @@

         if (index == -1)
         {
-            var message:String = resourceManager.getString(
+            message = resourceManager.getString(
                 "collections", "unknownProperty", [ name ]);
             throw new Error(message);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12380
Author:   smgilson@adobe.com
Date:     2009-12-02T18:37:15.838623Z

Log Message:
-----------
ASDoc edits in preparation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.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/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/Range.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Range.as
@@ -96,7 +96,7 @@
      *
      *
Changes to the value property are constrained
      *  by commitProperties() to be less than or equal to
-     *  maximum with the nearestValidValue() method.

+     *  maximum with the nearestValidValue() method.

      *
      *  @default 100
      *  @see #nearestValidValue
@@ -135,7 +135,7 @@
      *
      *
Changes to the value property are constrained
      *  by commitProperties() to be greater than or equal to
-     *  minimum with the nearestValidValue() method.

+     *  minimum with the nearestValidValue() method.

      *
      *  @default 0
      *  @see #nearestValidValue
@@ -272,9 +272,9 @@
      *
If the value of this property is zero, then valid values are only constrained
      *  to be between minimum and maximum inclusive.

      *
-     *
This property also constrains valid values for the stepSize property when set.
-     *  If this property is not explicitly set and stepSize is set, then snapInterval
-     *  will default to stepSize.

+     *
This property also constrains valid values for the stepSize property when set.
+     *  If this property is not explicitly set and stepSize is set,
+     *  then snapInterval defaults to stepSize.

      *
      *  @default 1
      *  @see #nearestValidValue


Улучшение

Улучшение

--- src/main/org/shypl/common/util/numerator/LongNumerator.as
+++ src/main/org/shypl/common/util/numerator/LongNumerator.as
@@ -3,8 +3,8 @@
 	import org.shypl.common.timeline.Timeline;

 	public class LongNumerator extends Numerator {
-		public function LongNumerator(handler:NumeratorHandler, sourceValue:Long, timeline:Timeline = null) {
-			super(handler, sourceValue, timeline);
+		public function LongNumerator(handler:NumeratorHandler, sourceValue:Long, timeline:Timeline = null, stepTime:int = 0) {
+			super(handler, sourceValue, timeline, stepTime);
 		}

 		public final function get sourceValueLong():Long {


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

--- frameworks/projects/framework/src/mx/graphics/codec/IImageEncoder.as
+++ frameworks/projects/framework/src/mx/graphics/codec/IImageEncoder.as
@@ -23,6 +23,11 @@
  *
  *  @see PNGEncoder
  *  @see JPEGEncoder
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IImageEncoder
 {
@@ -38,6 +43,11 @@

     /**
      *  The MIME type for the image format that this encoder produces.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get contentType():String;

@@ -53,6 +63,11 @@
      *  @param bitmapData The input BitmapData object.
      *
      *  @return Returns a ByteArray object containing encoded image data.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function encode(bitmapData:BitmapData):ByteArray;

@@ -78,6 +93,11 @@
 	 *  alpha channel information is ignored.
      *
      *  @return Returns a ByteArray object containing encoded image data.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function encodeByteArray(byteArray:ByteArray, width:int, height:int,
 							 transparent:Boolean = true):ByteArray;


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

--- frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as
@@ -0,0 +1,115 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  The vertical distance in pixels from the top edge of the content area to
+ *  the control's baseline position.
+ *  If this style is set, the baseline of the component is
+ *  anchored to the top edge of its content area; when its container
+ *  is resized, the two edges maintain their separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="baseline", type="String", inherit="no")]
+
+/**
+ *  The vertical distance in pixels from the lower edge of the component
+ *  to the lower edge of its content area.
+ *  If this style is set, the lower edge of the component is
+ *  anchored to the bottom edge of its content area; when its container
+ *  is resized, the two edges maintain their separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="bottom", type="String", inherit="no")]
+
+/**
+ *  The horizontal distance in pixels from the center of the component's
+ *  content area to the center of the component.
+ *  If this style is set, the center of the component will be
+ *  anchored to the center of its content area; when its container
+ *  is resized, the two centers maintain their horizontal separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="horizontalCenter", type="String", inherit="no")]
+
+/**
+ *  The horizontal distance in pixels from the left edge of the component's
+ *  content area to the left edge of the component.
+ *  If this style is set, the left edge of the component is
+ *  anchored to the left edge of its content area; when its container
+ *  is resized, the two edges maintain their separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="left", type="String", inherit="no")]
+
+/**
+ *  The horizontal distance in pixels from the right edge of the component
+ *  to the right edge of its content area.
+ *  If this style is set, the right edge of the component is
+ *  anchored to the right edge of its content area; when its container
+ *  is resized, the two edges maintain their separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="right", type="String", inherit="no")]
+
+/**
+ *  The vertical distance in pixels from the top edge of the control's
+ *  content area to the top edge of the component.
+ *  If this style is set, the top edge of the component is
+ *  anchored to the top edge of its content area; when its container
+ *  is resized, the two edges maintain their separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="top", type="String", inherit="no")]
+
+/**
+ *  The vertical distance in pixels from the center of the component's
+ *  content area to the center of the component.
+ *  If this style is set, the center of the component is
+ *  anchored to the center of its content area; when its container
+ *  is resized, the two centers maintain their vertical separation.
+ *
+ *
This style only has an effect when used on a component in a Canvas container,
+ *  or when used on a component in a Panel or Application container that has the
+ *  layout property set to absolute.

+ *
+ *
The default value is undefined, which means it is not set.

+ */
+[Style(name="verticalCenter", type="String", inherit="no")]


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


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

--- frameworks/projects/rpc/src/mx/messaging/events/MessageFaultEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/MessageFaultEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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
+//
+//      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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Changed the class for the error and success messages...

SVN-Revision: 6044

--- flexclient/advancequery/dag/Components/DAGConstants.as
+++ flexclient/advancequery/dag/Components/DAGConstants.as
@@ -26,12 +26,12 @@
 		public static  var TREE_NODES_LIMIT:int =10;
 		public static  var NO_MAIN_OBJECT_IN_QUERY:int =11;
 		//messages
-		public static var EMPTY_LIMIT_ERROR_MESSAGE:String = "
Please enter at least one condition to add a limit to limit set.
";
+		public static var EMPTY_LIMIT_ERROR_MESSAGE:String = "Please enter at least one condition to add a limit to limit set.";
 		public static var GENERIC_MESSAGE:String="
Error occured while executing query.Please report this problem to the Adminstrator.
";
-		public static var MULTIPLE_ROOT_MESSAGE:String="
Expression graph should be a connected graph and without multiple roots.
"
-		public static var NO_RESULT_PRESENT_MESSAGE:String="
Zero records found for this query.
"
-		public static var EDIT_LIMITS_MESSAGE:String = "
Limit succesfully edited.
";
-		public static var DELETE_LIMITS_MESSAGE:String = "
Limit succesfully deleted.
";
-		public static var EMPTY_DAG_MESSAGE:String = "
DAG is empty.
";
+		public static var MULTIPLE_ROOT_MESSAGE:String="Expression graph should be a connected graph and without multiple roots."
+		public static var NO_RESULT_PRESENT_MESSAGE:String="Zero records found for this query."
+		public static var EDIT_LIMITS_MESSAGE:String = "Limit succesfully edited.";
+		public static var DELETE_LIMITS_MESSAGE:String = "Limit succesfully deleted.";
+		public static var EMPTY_DAG_MESSAGE:String = "DAG is empty.";
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7879
Author:   dloverin@adobe.com
Date:     2009-06-16T14:08:15.137863Z

Log Message:
-----------
WindowedApplication/Window P-ARB changes.

WindowedApplication/Window
•             Rename resizeAffordance to resizeAffordanceWidth
•             Change resizeAffordanceWidth from a property to a style
•             Remove showGripper property
•             Remove showTitleBar property
•             Make override functions @private
•             SkinState metadata: rename normalActive to normalAndInactive
•             SkinState metadata: rename disabledInactive to disabledAndInactive

TitleBar
•             SkinState metadata: rename maximized to normalAndMaximized
•             SkinState metadata: rename disabledMaximized to disabledAndMaximized

QE Notes: Expect testing failures do to the changes.
Doc Notes: none.
Bugs: none
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/FlexChromeSkin.mxml</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -909,6 +909,7 @@
     }

     /**
+     *  @private
      *  Specifies the maximum height of the application's window.
      *
      *  @default dependent on the operating system and the AIR systemChrome setting.
@@ -956,6 +957,7 @@
     }

     /**
+     *  @private
      *  Specifies the maximum width of the application's window.
      *
      *  @default dependent on the operating system and the AIR systemChrome setting.
@@ -991,6 +993,7 @@
     [Bindable("windowComplete")]

     /**
+     *  @private
      *  Specifies the minimum height of the application's window.
      *
      *  @default dependent on the operating system and the AIR systemChrome setting.
@@ -1038,6 +1041,7 @@
     [Bindable("windowComplete")]

     /**
+     *  @private
      *  Specifies the minimum width of the application's window.
      *
      *  @default dependent on the operating system and the AIR systemChrome setting.
@@ -1073,6 +1077,7 @@
     [Bindable("windowComplete")]

     /**
+     *  @private
      *  Controls the window's visibility. Unlike the
      *  UIComponent.visible property of most Flex
      *  visual components, this property affects the visibility
@@ -1383,6 +1388,7 @@
     //  cursorManager
     //----------------------------------
     /**
+     *  @private
      *  Returns the cursor manager for this Window.
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 142
Author:   proberts@adobe.com
Date:     2008-01-09T21:41:12.224334Z

Log Message:
-----------
Severity: ignore
Description: docs update -- fixing formatting of @mxml sections; also minor enhancements to FlexHTMLLoader class and member descriptions.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -401,7 +401,7 @@
  *    transparent="false"
  *    type="normal"
  *    visible="true"
- *
+ *
  *    Styles
  *    buttonAlignment="auto"
  *    buttonPadding="2"
@@ -421,12 +421,12 @@
  *    titleBarButtonPadding="5"
  *    titleBarColors="[ 0x000000, 0x000000 ]"
  *    titleTextStyleName="undefined"
- *
+ *
  *    Effects
  *    closeEffect="No default"
  *    minimizeEffect="No default"
  *    unminimizeEffect="No default"
- *
+ *
  *    Events
  *    applicationActivate="No default"
  *    applicationDeactivate="No default"


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

--- frameworks/projects/framework/src/mx/core/Singleton.as
+++ frameworks/projects/framework/src/mx/core/Singleton.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: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

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

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

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

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

--- frameworks/projects/mx/src/mx/containers/ControlBar.as
+++ frameworks/projects/mx/src/mx/containers/ControlBar.as
@@ -52,6 +52,13 @@
 //--------------------------------------

 [IconFile("ControlBar.png")]
+
+/**
+ *  As of Flex 4, the ControlBar is no longer recommended. You can achieve the same
+ *  effect by compositing groups and graphics tags in your Panel, or creating a
+ *  Panel subclass that has a control bar part.
+ */
+[Alternative(replacement="none", since="4.0")]

 /**
  *  The ControlBar container lets you place controls


Transferred from the Adobe Open Source Subversion Repository

Revision: 19847
Author:   tkraikit@adobe.com
Date:     2011-01-20T22:34:22.112386Z

Log Message:
-----------
bug29179: svn 19813 uncovered UIComponent.styleChanged() overrides which failed to call super.styleChanged(), resulting in a layout error in ColorPicker. Fix applied there and in two other locations lacking the call.

QE notes: none
Doc notes: none
Bugs: 29179
Reviewer: rfrishbe
Tests run: checkintests, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/skins/halo/ToolTipBorder.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as</path>

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

--- frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
+++ frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
@@ -204,6 +204,8 @@
      */
     override public function styleChanged(styleProp:String):void
     {
+        super.styleChanged(styleProp);
+
         if (styleProp == null ||
             styleProp == "styleName" ||
             styleProp == "borderStyle" ||
@@ -212,8 +214,6 @@
         {
             _borderMetrics = null;
         }
-
-        invalidateDisplayList();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/primitives/Rect.as
+++ frameworks/projects/spark/src/spark/primitives/Rect.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.graphics
+package mx.graphics
 {
 import flash.events.EventDispatcher;
 import flash.display.Graphics;


Added fill color as a selectable attribute

--- WeaveUISpark/src/weave/visualization/plotters/RectanglePlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/RectanglePlotter.as
@@ -66,12 +66,12 @@

 		public function getSelectableAttributeNames():Array
 		{
-			return ['X', 'Y', 'Width', 'Height', 'xMin Screen Offset', 'yMin Screen Offset', 'xMax Screen Offset', 'yMax Screen Offset'];
+			return ['Fill Color', 'X', 'Y', 'Width', 'Height', 'xMin Screen Offset', 'yMin Screen Offset', 'xMax Screen Offset', 'yMax Screen Offset'];
 		}

 		public function getSelectableAttributes():Array
 		{
-			return [xData, yData, widthData, heightData, xMinScreenOffset, yMinScreenOffset, xMaxScreenOffset, yMaxScreenOffset];
+			return [fill.color, xData, yData, widthData, heightData, xMinScreenOffset, yMinScreenOffset, xMaxScreenOffset, yMaxScreenOffset];
 		}

 		// spatial properties