Jamie points out that asdoc sucks the wet farts from dead pigeons,
and so @param tags just match up to parameters based on order.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5364 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/StringUtil.as
+++ src/as/com/threerings/util/StringUtil.as
@@ -348,6 +348,8 @@
     /**
      * Return a string containing all the public fields of the object
      *
+     * @param buf the StringBuilder to which to append
+     * @param obj the object to be inspected
      * @param fieldNames the names of fields to print, or null to print all.
      */
     public static function fieldsToString (
@@ -369,6 +371,7 @@
     /**
      * Return a pretty basic toString of the supplied Object.
      *
+     * @param obj the object to be string'd
      * @param fieldNames the names of fields to print, or null to print all.
      */
     public static function simpleToString (obj :Object, fieldNames :Array = null) :String


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridSortItemRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridSortItemRenderer.as
@@ -0,0 +1,504 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.advancedDataGridClasses
+{
+
+import flash.display.DisplayObject;
+import flash.text.TextLineMetrics;
+import mx.controls.AdvancedDataGrid;
+import mx.controls.advancedDataGridClasses.SortInfo;
+import mx.controls.listClasses.IDropInListItemRenderer;
+import mx.core.IUIComponent;
+import mx.core.IUITextField;
+import mx.core.UIComponent;
+import mx.core.UITextField;
+import mx.core.IFlexDisplayObject;
+import mx.styles.ISimpleStyleClient;
+
+import mx.core.mx_internal;
+use namespace mx_internal;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+include "../../styles/metadata/PaddingStyles.as";
+
+/**
+ *  Gap between the label and icon, in pixels.
+ *
+ *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="horizontalGap", type="Number", format="Length", inherit="no")]
+
+/**
+ *  Number of pixels between the column header's bottom border
+ *  and the bottom of the sort item renderer.
+ *
+ *  @default 3
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingBottom", type="Number", format="Length", inherit="no")]
+
+/**
+ *  Number of pixels between the column header's top border
+ *  and the top of the sort item renderer.
+ *
+ *  @default 3
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="paddingTop", type="Number", format="Length", inherit="no")]
+
+/**
+ *
+ * Color of text when the sort is a proposed sort.
+ *
+ * @default 0x999999
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="proposedColor", type="uint", format="Color", inherit="yes")]
+
+//--------------------------------------
+//  Skins
+//--------------------------------------
+
+/**
+ *  The class to use as the skin for the arrow that indicates the column sort
+ *  direction.
+ *
+ *  @default mx.skins.halo.DataGridSortArrow
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="icon", type="Class", inherit="no")]
+
+/**
+ *  The AdvancedDataGridSortItemRenderer class defines the item renderer for
+ *  the sort icon and text field in the column header of the AdvancedDataGrid control.
+ *  A sort item contains a text field to display the sort number when sorting by multiple columns,
+ *  and uses the mx.skins.halo.DataGridSortArrow skin class to display the sort arrow graphic.
+ *
+ *
 You can override the default sort item renderer by creating a custom
+ *  sort item renderer.
+ *  There are no special requirements for the sort item renderer, but Adobe
+ *  suggests that the sort item renderer call the getFieldSortInfo() method
+ *  in the override of the commitProperties() method
+ *  to fetch the sort information so that it can display the icon and text appropriately.

+ *
+ *
 You can customize when the sorting gets triggered by dispatching the
+ *  AdvancedDataGridEvent.SORT event.

+ *
+ *  @see mx.controls.AdvancedDataGrid
+ *  @see mx.controls.advancedDataGridClasses.SortInfo
+ *  @see mx.skins.halo.DataGridSortArrow
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class AdvancedDataGridSortItemRenderer extends UIComponent
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+   /**
+    *  Constructor.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+    public function AdvancedDataGridSortItemRenderer()
+    {
+        super();
+        visible = false;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  A reference to the current icon.
+     *  Set by viewIcon().
+     */
+    mx_internal var icon:IFlexDisplayObject;
+
+    /**
+     *  @private
+     *  Icon names.
+     *  Allows subclasses to re-define the icon property names.
+     */
+    mx_internal var iconName:String = "icon";
+
+    /**
+     *  The internal UITextField object that renders the label of this Button.
+     *
+     *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var label:IUITextField;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  descending
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for descending property.
+     *
+     *  @default false
+     */
+    private var _descending:Boolean = false;
+
+    /**
+     *  @private
+     */
+    public function get descending():Boolean
+    {
+        return _descending;
+    }
+
+    /**
+     *  @private
+     */
+    public function set descending(value:Boolean):void
+    {
+        if (_descending != value)
+        {
+            _descending = value;
+
+            invalidateDisplayList();
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     */
+    override protected function createChildren():void
+    {
+        super.createChildren();
+
+        if (!label)
+        {
+            label = IUITextField(createInFontContext(UITextField));
+            label.styleName = this;
+            addChild(DisplayObject(label));
+        }
+
+        if (!icon)
+        {
+            var iconClass:Class = Class(getStyle(iconName));
+            if (iconClass)
+            {
+                icon = new iconClass();
+                icon.name = iconName;
+                if (icon is ISimpleStyleClient)
+                    ISimpleStyleClient(icon).styleName = this;
+                addChild(DisplayObject(icon));
+            }
+        }
+    }
+
+    /**
+     * @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        // Font styles
+        getFontStyles();
+
+        // Whether the current column is sorted or not, and if so what info to
+        // display
+        var sortInfo:SortInfo = getFieldSortInfo();
+        if (sortInfo)
+        {
+            visible = true;
+
+            label.text = (sortInfo.sequenceNumber).toString();
+
+            if (sortInfo.status == SortInfo.PROPOSEDSORT)
+                label.setColor( getStyle("proposedColor") !== undefined
+                                    ? getStyle("proposedColor") : 0x999999 );
+            else
+                label.setColor( getStyle("color") !== undefined
+                                    ? getStyle("color") : 0x000000 );
+
+            descending = sortInfo.descending;
+        }
+        else
+        {
+            visible = false;
+        }
+    }
+
+    /**
+     * @private
+     */
+    override protected function measure():void
+    {
+        super.measure();
+
+        // Cache padding values
+        var paddingLeft:int   = getStyle("paddingLeft");
+        var paddingRight:int  = getStyle("paddingRight");
+        var paddingTop:int    = getStyle("paddingTop");
+        var paddingBottom:int = getStyle("paddingBottom");
+
+        // Measure label
+        // if text is empty string, use '2' as default text for measuring
+        // for empty string, measureText() returns height as 15
+        var lineMetrics:TextLineMetrics = measureText(label.length == 0 ? "2" : label.text);
+
+        // Inspired by mx.controls.Label#measureTextFieldBounds():
+        // In order to display the text completely,
+        // a TextField must be 4-5 pixels larger.
+        var labelWidth:Number  = lineMetrics.width  + UITextField.TEXT_WIDTH_PADDING;
+        var labelHeight:Number = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
+
+        // Measure icon
+        var iconWidth:Number  = icon ? icon.width  : 0;
+        var iconHeight:Number = icon ? icon.height : 0;
+
+        var horizontalGap:Number = getStyle("horizontalGap");
+        if (iconWidth == 0)
+            horizontalGap = 0;
+
+        // Sum measurements of children
+        var w:Number = labelWidth + horizontalGap + iconWidth;
+        var h:Number = Math.max(labelHeight, iconHeight);
+
+        // Add padding
+        w += getStyle("paddingLeft") + getStyle("paddingRight");
+        h += getStyle("paddingTop")  + getStyle("paddingBottom");
+
+        // Set required width and height
+        measuredMinWidth  = measuredWidth  = w;
+        measuredMinHeight = measuredHeight = h;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        // It seems strange to get a zero-width display,
+        // is there a need to handle this case?
+        if (unscaledWidth == 0)
+            return;
+
+        // Cache padding values
+        var paddingLeft:int   = getStyle("paddingLeft");
+        var paddingRight:int  = getStyle("paddingRight");
+        var paddingTop:int    = getStyle("paddingTop");
+        var paddingBottom:int = getStyle("paddingBottom");
+
+        // Size of icon
+        // Assumption that iconWidth < unscaledWidth
+        // and iconHeight < unscaledHeight
+        var iconWidth:Number  = icon ? icon.width  : 0;
+        var iconHeight:Number = icon ? icon.height : 0;
+
+        var horizontalGap:Number = getStyle("horizontalGap");
+        if (iconWidth == 0)
+            horizontalGap = 0;
+
+        // Size of label
+        var labelWidth:Number = unscaledWidth - iconWidth - horizontalGap
+                                - paddingLeft - paddingRight;
+        var labelHeight:Number = unscaledHeight - paddingTop - paddingBottom;
+        label.setActualSize(labelWidth, labelHeight);
+
+        // Calculate position of label
+        var labelX:Number = paddingLeft;
+        var labelY:Number = (unscaledHeight - label.height - paddingTop - paddingBottom ) / 2
+                            + paddingTop;
+        labelY = Math.max(labelY, 0);
+
+        // Set positions
+        label.x = Math.round(labelX);
+        label.y = Math.round(labelY);
+
+        // Calculate position of icon
+        if (icon)
+        {
+            var iconX:Number = unscaledWidth - iconWidth - paddingRight;
+            var iconY:Number = (unscaledHeight - iconHeight
+                                - paddingTop - paddingBottom) / 2
+                                + paddingTop;
+            icon.x = Math.round(iconX);
+            icon.y = Math.round(iconY);
+
+            // Default is false i.e. ascending order
+            if (!descending)
+            {
+                icon.scaleY = -1.0;
+                icon.y += iconHeight;
+            }
+            else
+            {
+                icon.scaleY = 1.0;
+            }
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Gets font styles from the AdvancedDataGrid control
+     *  and uses them to initialize the corresponding font styles for this render.
+     *  The font styles accessed in the AdvancedDataGrid control include
+     *  sortFontFamily, sortFontSize, sortFontStyle,
+     *  and sortFontWeight.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected function getFontStyles():void
+    {
+        // 1. If only there was binding between styles ...
+        // 2. Is there a way to avoid this in the sort item renderer itself so
+        // that custom sort item renderers get it for free as opposed to
+        // manually including it, similar to what we did for styleFunctions.
+        // - We considered subcomponent style hookups i.e. using a styleProxy
+        //   mechanism, but it works only for non-inheriting styles.
+
+        var gridStyle:* = undefined;
+
+        if (grid)
+        {
+            gridStyle = grid.getStyle("sortFontFamily");
+            if (gridStyle !== undefined)
+                setStyle("fontFamily", gridStyle);
+            gridStyle = grid.getStyle("sortFontSize");
+             if (gridStyle !== undefined)
+                setStyle("fontSize", gridStyle);
+            gridStyle = grid.getStyle("sortFontStyle");
+            if (gridStyle !== undefined)
+                setStyle("fontStyle", gridStyle);
+            gridStyle = grid.getStyle("sortFontWeight");
+            if (gridStyle !== undefined)
+                setStyle("fontWeight", gridStyle);
+        }
+    }
+
+    /**
+     *  Returns the sort information for this column from the AdvancedDataGrid control
+     *  so that the control can display the column's number in the sort sequence,
+     *  and whether the sort is ascending or descending.
+     *  The sorting information is represented by an instance of the SortInfo class,
+     *  where each column in the AdvancedDataGrid control has an associated
+     *  SortInfo instance.
+     *
+     *  @return A SortInfo instance.
+     *
+     *  @see mx.controls.advancedDataGridClasses.SortInfo
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected function getFieldSortInfo():SortInfo
+    {
+        // Parent is the header renderer.
+        if (grid && parent is IDropInListItemRenderer)
+        {
+            var listData:AdvancedDataGridListData = (parent as IDropInListItemRenderer).listData
+                                                    as AdvancedDataGridListData;
+            if (listData && listData.columnIndex != -1)
+                return grid.getFieldSortInfo(grid.columns[listData.columnIndex]);
+        }
+
+        return null;
+    }
+
+    /**
+     *  Returns a reference to the associated AdvancedDataGrid control.
+     *
+     *  @return The AdvancedDataGrid control instance.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected function get grid():AdvancedDataGrid
+    {
+        if (parent && IUIComponent(parent).owner
+                            && IUIComponent(parent).owner is AdvancedDataGrid)
+            return IUIComponent(parent).owner as AdvancedDataGrid;
+        else
+            return null;
+    }
+
+} // end class AdvancedDataGridSortItemRenderer
+
+}


DeathZone.p and DeathZone.inside is unnecessary to be a member of DeathZone.

--- src/org/flintparticles/twoD/actions/DeathZone.as
+++ src/org/flintparticles/twoD/actions/DeathZone.as
@@ -50,10 +50,6 @@
 	{
 		private var _zone:Zone2D;
 		private var _invertZone:Boolean;
-
-		private var p:Particle2D;
-		private var inside:Boolean;
-

 		/**
 		 * The constructor creates a DeathZone action for use by an emitter.
@@ -116,8 +112,8 @@
 		 */
 		override public function update( emitter:Emitter, particle:Particle, time:Number ):void
 		{
-			p = Particle2D( particle );
-			inside = _zone.contains( p.x, p.y );
+			const p:Particle2D = Particle2D( particle );
+			const inside:Boolean = _zone.contains( p.x, p.y );
 			if ( _invertZone )
 			{
 				if( !inside )


fixed a bug where the username was not being set when logging in anonymously.

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -758,11 +758,12 @@
 		 * @private
 		 */
 		protected function sendAnonymousLogin_result(resultIQ:IQ):void
-		{
+		{resultIQ
 			if( resultIQ.type == IQ.RESULT_TYPE ) {
 				// update resource
-				var resultAuth:AuthExtension = resultIQ.getAllExtensionsByNS(AuthExtension.NS)[0];
-				resource = resultAuth.resource;
+				var jid:JID = new JID(resultIQ.to);
+				resource = jid.resource;
+				username = jid.node;
 				// dispatch login event
 				loggedIn = true;
 				var event:LoginEvent = new LoginEvent();


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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.
 //
 ////////////////////////////////////////////////////////////////////////////////


--- examples/src/TestMinimalComps.as
+++ examples/src/TestMinimalComps.as
@@ -2,6 +2,7 @@
 package
 {
 	import com.bit101.components.*;
+	import flash.__native.WebGLRenderer;
 	import flash.display.Sprite;
 	import flash.events.Event;
 	import flash.events.MouseEvent;
@@ -38,6 +39,10 @@
 		 */
 		public function TestMinimalComps():void
 		{
+
+
+			SpriteFlexjs.wmode = "gpu batch";
+			SpriteFlexjs.renderer = new WebGLRenderer;
 			if (stage) init();
 			else addEventListener(Event.ADDED_TO_STAGE, init);
 		}
@@ -61,8 +66,22 @@
 			var panel = this;

 			// チェックボックスの準備
-			checkBox = new CheckBox(this, 20, 20, "", onCheckBoxClick);
+			checkBox = new CheckBox(this, 80, 20, "", onCheckBoxClick);
 			checkBox.label = "チェックボックス";
+
+			stage.addEventListener(flash.events.MouseEvent.CLICK, function():void{
+				trace(checkBox.x);
+				trace(checkBox.getChildAt(0).x);
+				for (var i:int = 0; i < checkBox.numChildren;i++ ){
+					trace(checkBox.getChildAt(i));
+					trace(checkBox.getChildAt(i).x);
+				}
+			});
+			//s.x = 20;
+			//s.y = 10;
+
+
+

 			// ラベルの準備
 			var label:Label = new Label(panel, 20, 40);
@@ -133,9 +152,9 @@
 		private function onCheckBoxClick(e:MouseEvent):void
 		{
 			if (checkBox.selected == false) {
-				inputText.text = "チェックが消えました";
+				//inputText.text = "チェックが消えました";
 			} else {
-				inputText.text = "チェックが付きました";
+				//inputText.text = "チェックが付きました";
 			}
 		}


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.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 spark.automation.delegates.components
 {
 	import flash.display.DisplayObject;


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


FLEX-35031 Added more unit tests for ObjectUtil.isDynamicObject() to test that it returns correctly for XML, Proxy and ObjectProxy.

--- frameworks/projects/framework/tests/mx/utils/ObjectUtil_Tests.as
+++ frameworks/projects/framework/tests/mx/utils/ObjectUtil_Tests.as
@@ -19,6 +19,7 @@

 package mx.utils {
     import flash.utils.Dictionary;
+    import flash.utils.Proxy;

     import org.flexunit.asserts.assertEquals;

@@ -52,6 +53,34 @@
         {
             //then
             assertTrue(ObjectUtil.isDynamicObject([]));
+        }
+
+        [Test]
+        public function test_XML_instance_recognized_as_dynamic_object():void
+        {
+            //then
+            assertTrue(ObjectUtil.isDynamicObject(new XML()));
+        }
+
+        [Test]
+        public function test_Proxy_instance_recognized_as_sealed_object_instance():void
+        {
+            //then
+            assertFalse(ObjectUtil.isDynamicObject(new Proxy()));
+        }
+
+        [Test]
+        public function test_ObjectProxy_with_implicit_target_object_instance_recognized_as_dynamic_instance():void
+        {
+            //then
+            assertTrue(ObjectUtil.isDynamicObject(new ObjectProxy()));
+        }
+
+        [Test]
+        public function test_ObjectProxy_with_explicit_target_object_instance_recognized_as_dynamic_instance():void
+        {
+            //then
+            assertTrue(ObjectUtil.isDynamicObject(new ObjectProxy({})));
         }

         [Test]


FLEX-369 take gadding into account and always display at least one line of text even if it overlaps the buttons

--- frameworks/projects/mx/src/mx/controls/alertClasses/AlertForm.as
+++ frameworks/projects/mx/src/mx/controls/alertClasses/AlertForm.as
@@ -380,10 +380,19 @@
 		}

 		var newHeight:Number = textField.getExplicitOrMeasuredHeight();
-		var maxHeight:Number = unscaledHeight - buttons[0].height;
+		var paddingTop:Number = textField.getStyle("paddingTop");
+		var paddingBottom:Number = textField.getStyle("paddingBottom");
+		var maxHeight:Number = unscaledHeight - buttons[0].height
+			- paddingTop - paddingBottom;

 		if (newHeight > maxHeight)
 			newHeight = maxHeight;
+
+		// try and make at least one line of text show even if it overlapps buttons
+		// this may occur if the height of alert box is set to be too small
+		var lineMetrics:TextLineMetrics = textField.getUITextFormat().measureText(textField.text);
+		if (newHeight < lineMetrics.height)
+			newHeight = lineMetrics.height;

 		textField.move(newX, Math.round((newY - newHeight) / 2));
 		textField.setActualSize(textWidth+5, newHeight);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17308
Author:   dthakkar@adobe.com
Date:     2010-08-12T23:22:20.533632Z

Log Message:
-----------
Flex integration feature (includes spark formatters and related checkintests.)
UIComponent.as - Added API's to support non visual style client
IAdvancedStyleClient.as - Added setter for StyleParent method
StyleProtoChain.as - Added else loop to verify if the component is IAdvancedStyleClient
StyleProxy.as - added setter for styleParent method (this class inherits IAdvancedStyleClient interface)

QE notes: No
Doc notes: No
Bugs: No
Reviewer: Gordon , Darrell
Tests run: CheckinTests, Mustella
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CollatorTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest/ADVStyleTestEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProxy.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/NumberFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CollatorTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/NumberFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/IFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest/ADVStyleTestClass.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/StringToolsTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/StringTools.as
+++ frameworks/projects/spark/src/spark/globalization/StringTools.as
@@ -0,0 +1,325 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.globalization
+{
+
+import flash.globalization.StringTools;
+
+import mx.core.mx_internal;
+
+import spark.globalization.LastOperationStatus;
+import spark.globalization.supportClasses.GlobalizationBase;
+
+use namespace mx_internal;
+
+/**
+ *  The StringTools class provides locale-sensitve case
+ *  conversion methods.
+ *
+ *
This class is a wrapper class around the
+ *  flash.globalization.StringTools.
+ *  Therefore the case conversion functionality is provided by the
+ *  flash.globalization.StringTools class.
+ *  However this StringTools class can be used in MXML
+ *  declartions, uses the locale style for the requested Locale ID name, and
+ *  has methods and properties that are bindable.
+ *  Additionally events are generated if there is an error or warning
+ *  generated by the flash.globalization class.

+ *
+ *
The flash.globalization.StringTools class use the
+ *  underlying operating system for the case conversion functionality and
+ *  On some operating systems, the flash.globalization classes
+ *  are unsupported, this wrapper class provides fallback that makes use of
+ *  the case conversion provided by the String class.

+ *
+ *  @see flash.globalization.StringTools
+ */
+public class StringTools extends GlobalizationBase
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructs a new StringTools object that provides case conversion and
+     *  other utilities according to the conventions of a given locale.
+     *
+     *  The locale for this class is supplied by the locale style.
+     *  The locale style can be set in several ways:
+     *
+     *

+     *
Inheriting the style from a UIComponent by calling the
+     *  UIComponent's addStyleClient method.

+     *
+     *
By using the class in an MXML declaration and inheriting the
+     *  locale from the document that contains the declaration.
+     *  <listing version="3.0">
+     *  <fx:Declarations>
+     *         <s:StringTools id="st" />
+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *
+     *
By using an MXML declaration and specifying the locale value in
+     *  the list of assignments.
+     *  <listing version="3.0">
+     *  <fx:Declarations>
+     *      <s:StringTools id="st_turkish" locale="tr-TR" />
+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *
+     *
Calling the setStyle method, e.g.
+     *  st.setStyle("locale", "tr-TR")

+     *

+     *
+     *
If the locale style is not set by one of the above techniques, the
+     *  methods of this class that depend on the locale will throw an
+     *  error.

+     *
+     *  @see flash.globalization.StringTools
+     *  @see mx.core.UIComponent.addStyleClient
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flex 4.5
+     *  @productversion Flash CS5
+     */
+    public function StringTools()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+      *  @private
+      *  Actual instance of the working flash.globalization.StringTools
+      *  instance.
+      */
+    private var g11nWorkingInstance:flash.globalization.StringTools;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  actualLocaleIDName
+    //----------------------------------
+
+    [Bindable("change")]
+
+    /**
+     *  @inheritDoc
+     *
+     *  @see flash.globalization.StringTools.actualLocaleIDName
+     *  @see #StringTools()
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flash CS5
+     *  @productversion Flex 4.5
+     */
+    override public function get actualLocaleIDName():String
+    {
+        if (g11nWorkingInstance)
+            return this.g11nWorkingInstance.actualLocaleIDName;
+
+        if (!localeStyle)
+        {
+            fallbackLastOperationStatus
+                                = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
+            return undefined;
+        }
+
+        fallbackLastOperationStatus = LastOperationStatus.NO_ERROR;
+
+        return "en-US";
+    }
+
+    //----------------------------------
+    //  lastOperationStatus
+    //----------------------------------
+
+    [Bindable("change")]
+
+    /**
+     *  @inheritDoc
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flash CS5
+     *  @productversion Flex 4.5
+     */
+    override public function get lastOperationStatus():String
+    {
+        return g11nWorkingInstance ?
+            g11nWorkingInstance.lastOperationStatus :
+            fallbackLastOperationStatus;
+    }
+
+    //----------------------------------
+    //  useFallback
+    //----------------------------------
+
+    [Bindable("change")]
+
+    /**
+     *  @private
+     */
+    override mx_internal function get useFallback():Boolean
+    {
+        return g11nWorkingInstance == null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override mx_internal function createWorkingInstance():void
+    {
+        if (!localeStyle)
+        {
+            fallbackLastOperationStatus
+                                = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
+            g11nWorkingInstance = null;
+            return;
+        }
+
+        if (enforceFallback)
+        {
+            fallbackLastOperationStatus = LastOperationStatus.NO_ERROR;
+            g11nWorkingInstance = null;
+            return;
+        }
+
+        g11nWorkingInstance = new flash.globalization.StringTools(localeStyle);
+        if (g11nWorkingInstance
+            && (g11nWorkingInstance.lastOperationStatus
+                                    != LastOperationStatus.UNSUPPORTED_ERROR))
+        {
+            propagateBasicProperties(g11nWorkingInstance);
+            return;
+        }
+
+        fallbackLastOperationStatus = LastOperationStatus.USING_FALLBACK_WARNING;
+        g11nWorkingInstance = null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    [Bindable("change")]
+
+    /**
+     *  Converts a string to lowercase according to language conventions.
+     *
+     *  Depending on the locale, the output strin length can differ from the
+     *  input string length.
+     *
+     *  @param s String to convert to lowercase.
+     *  @return The converted lowercase string.
+     *
+     *  @see StringTools
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flex 4.5
+     *  @productversion Flash CS5
+     */
+    public function toLowerCase(s:String):String
+    {
+        if (g11nWorkingInstance)
+            return g11nWorkingInstance.toLowerCase(s);
+
+        if (!localeStyle)
+        {
+            fallbackLastOperationStatus
+                                = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
+            return undefined;
+        }
+
+        fallbackLastOperationStatus = LastOperationStatus.NO_ERROR;
+
+        return s.toLowerCase();
+    }
+
+    [Bindable("change")]
+
+    /**
+     *  Converts a string to uppercase according to language conventions.
+     *
+     *  Depending on the locale, the output strin length can differ from the
+     *  input string length.
+     *
+     *  @param s String to convert to uppercase.
+     *  @return The converted uppercase string.
+     *
+     *  @see StringTools
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flex 4.5
+     *  @productversion Flash CS5
+     */
+    public function toUpperCase(s:String):String
+    {
+        if (g11nWorkingInstance)
+            return g11nWorkingInstance.toUpperCase(s);
+
+        if (!localeStyle)
+        {
+            fallbackLastOperationStatus
+                                = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
+            return undefined;
+        }
+
+        fallbackLastOperationStatus = LastOperationStatus.NO_ERROR;
+
+        return s.toUpperCase();
+    }
+
+    /**
+     *  @copy spark.utils.Collator#getAvailableLocaleIDNames
+     *
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flash CS5
+     *  @productversion Flex 4.5
+     */
+    public static function getAvailableLocaleIDNames():Vector.<String>
+    {
+        const locales:Vector.<String>
+                    = flash.globalization.Collator.getAvailableLocaleIDNames();
+
+        return locales ? locales : new Vector.<String>["en-US"];
+    }
+}
+}


[Mangui.FragmentData] Add bytesTotal

[Mangui.FragmentData] Add bytesTotal

Parallel of ProgressEvent.bytesTotal. Used by FragmentStream.

--- src/org/mangui/hls/model/FragmentData.as
+++ src/org/mangui/hls/model/FragmentData.as
@@ -15,6 +15,8 @@
         public var valid : Boolean;
         /** fragment byte array **/
         public var bytes : ByteArray;
+        /* Total bytes this Fragment _will_ have */
+        public var bytesTotal: int;
         /** bytes Loaded **/
         public var bytesLoaded : int;
         /** AES decryption instance **/


Removed a couple of traces

Removed a couple of traces

--- src/org/robotlegs/v2/core/impl/PackageMatcher.as
+++ src/org/robotlegs/v2/core/impl/PackageMatcher.as
@@ -63,7 +63,6 @@

 		protected function buildTypeFilter():ITypeFilter
 		{
-			trace("PackageMatcher::buildTypeFilter()");
 			if (((!_requirePackage) || _requirePackage.length == 0) &&
 				(_anyOfPackages.length == 0) &&
 				(_noneOfPackages.length == 0))
@@ -87,7 +86,6 @@

 		protected function pushValuesToStringVector(values:Array, vector:Vector.<String>):void
 		{
-			trace("PackageMatcher::pushValuesToStringVector()");
 			if (values.length == 1
 				&& (values[0] is Array || values[0] is Vector.<String>))
 			{


Get writable fields of superclasses.

Get writable fields of superclasses.

--- dolly-framework/src/main/actionscript/dolly/Cloner.as
+++ dolly-framework/src/main/actionscript/dolly/Cloner.as
@@ -49,6 +49,15 @@
 	dolly_internal static function findAllCloneableFieldsForType(type:Type):Vector.<Field> {
 		const result:Vector.<Field> = getWritableFieldsOfType(type);

+		const superclassNames:Array = type.extendsClasses;
+		for each(var superclassName:String in superclassNames) {
+			var superclassType:Type = Type.forName(superclassName);
+			var superclassWritableFields:Vector.<Field> = getWritableFieldsOfType(superclassType);
+			if (superclassWritableFields.length > 0) {
+				result.concat(superclassWritableFields);
+			}
+		}
+
 		return result;
 	}


externalReload() now works in Chrome.

externalReload() now works in Chrome.

--- WeaveUISpark/src/weave/Weave.as
+++ WeaveUISpark/src/weave/Weave.as
@@ -492,9 +492,9 @@
 				// reload the application
 				if (ExternalInterface.objectID)
 					JavaScript.exec(
-						{reloadID: uid},
-						"this.parentNode.weaveReloadID = reloadID;",
-						"this.outerHTML = this.outerHTML;"
+						{reloadID: uid, "this": "weave"},
+						"weave.parentNode.weaveReloadID = reloadID;",
+						"setTimeout(function() { weave.outerHTML = weave.outerHTML; }, 0);"
 					);
 				else
 					JavaScript.exec("location.reload(false);");


Transferred from the Adobe Open Source Subversion Repository

Revision: 19159
Author:   dloverin@adobe.com
Date:     2010-12-08T19:29:51.005446Z

Log Message:
-----------
Move mx:ProgressBar from framework.swc to mx.swc.

QE notes: None.
Doc notes: None.
Bugs: SDK-27337
Reviewer: Carol
Tests run: tests/components/ProgressBar
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/manifest.xml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/defaults-3.0.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/defaults.css</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.as" copyfrom-rev="19145" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ProgressBar.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ProgressBar.png" copyfrom-rev="19145" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ProgressBar.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/defaults-3.0.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>

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

--- frameworks/projects/framework/src/FrameworkClasses.as
+++ frameworks/projects/framework/src/FrameworkClasses.as
@@ -45,7 +45,10 @@
 	import mx.containers.utilityClasses.IConstraintLayout; IConstraintLayout;
       import mx.containers.utilityClasses.PostScaleAdapter; PostScaleAdapter;
 	import mx.controls.ButtonLabelPlacement; ButtonLabelPlacement;
-    import mx.controls.MovieClipSWFLoader; MovieClipSWFLoader;
+	import mx.controls.MovieClipSWFLoader; MovieClipSWFLoader;
+	import mx.controls.ProgressBarDirection; ProgressBarDirection;
+	import mx.controls.ProgressBarLabelPlacement; ProgressBarLabelPlacement;
+	import mx.controls.ProgressBarMode; ProgressBarMode;
 	import mx.controls.colorPickerClasses.WebSafePalette; WebSafePalette;
 	import mx.controls.menuClasses.IMenuDataDescriptor; IMenuDataDescriptor;
 	import mx.controls.listClasses.IDropInListItemRenderer; IDropInListItemRenderer;


UPDATE FLEX-33829 improve create UID performance and use fix minor issue

--- frameworks/projects/framework/src/mx/utils/UIDUtil.as
+++ frameworks/projects/framework/src/mx/utils/UIDUtil.as
@@ -135,7 +135,7 @@
         var time:uint = new Date().getTime(); // extract last 8 digits
         var timeString:String = time.toString(16).toUpperCase();
         // 0xFFFFFFFF milliseconds ~= 3 days, so timeString may have between 1 and 8 digits, hence we need to pad with 0s to 8 digits
-        for (i = 8; i > timeString.length; --i)
+        for (i = 8; i > timeString.length; i--)
             UIDBuffer.writeByte(48);
         UIDBuffer.writeUTFBytes(timeString);


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

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

 package mx.controls
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/mx/core/FTETextField.as
+++ frameworks/projects/spark/src/mx/core/FTETextField.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008-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.core
 {


Setting menu as start screen

Setting menu as start screen

--- src/heartattacks/Main.as
+++ src/heartattacks/Main.as
@@ -18,7 +18,7 @@
 		public function Main():void
 		{
 			super(800, 600, 60, false);
-			FP.world = new PlayState();
+			FP.world = new MenuState();
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -37,6 +37,7 @@

 import mx.core.FlexGlobals;
 import mx.core.FlexLoader;
+import mx.core.FlexVersion;
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModuleFactory;
 import mx.core.ISWFLoader;
@@ -1834,23 +1835,38 @@
                 lc = new LoaderContext();
                 _loaderContext = lc;

-                // To get a peer application domain (relative to framework classes),
+                var currentDomain:ApplicationDomain;
+
+                // Try to use the application domain of this component from
+                // the moduleFactory. If we don't have a moduleFactory then
+                // fallback to using ApplicationDomain.currentDomain which
+                // could give us a parent ApplicationDomain of where the first
+                // SWFLoader was used. If no SWFLoaders were used by parent
+                // applications or modules then ApplicationDomain.currentDomain
+                // will be correct.
+                if (moduleFactory &&
+                    FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+                    currentDomain = moduleFactory.info()["currentDomain"];
+                else
+                    currentDomain = ApplicationDomain.currentDomain;
+
+                 // To get a peer application domain (relative to framework classes),
                 // get the topmost parent domain of the current domain. This
                 // will either be the application domain of the
                 // bootstrap loader (non-framework classes), or null. Either way we get
-                // an application domain free of framework classes.
+                // an application domain free of framework classes.
                 if (loadForCompatibility)
                 {
                     // the AD.currentDomain.parentDomain could be null,
                     // the domain of the top-level system manager, or
                     // the bootstrap loader. The bootstrap loader will always be topmost
                     // if it is present.
-                    var currentDomain:ApplicationDomain = ApplicationDomain.currentDomain.parentDomain;
+                    var appDomain:ApplicationDomain = currentDomain.parentDomain;
                     var topmostDomain:ApplicationDomain = null;
-                    while (currentDomain)
+                    while (appDomain)
                     {
-                        topmostDomain = currentDomain;
-                        currentDomain = currentDomain.parentDomain;
+                        topmostDomain = appDomain;
+                        appDomain = appDomain.parentDomain;
                     }
                     lc.applicationDomain = new ApplicationDomain(topmostDomain);
                 }
@@ -1864,7 +1880,7 @@
                     attemptingChildAppDomain = true;
                     // assume the best, which is that it is in the same domain and
                     // we can make it a child app domain.
-                    lc.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
+                    lc.applicationDomain = new ApplicationDomain(currentDomain);
                 }
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10392
Author:   chaase@adobe.com
Date:     2009-09-18T15:56:33.892460Z

Log Message:
-----------
Fix for weird transition behavior when setting a component's state from its container's state. The fix is to defer the state setting that happens as part of SetProperty overrides, so that it only gets set to its final value, not transient values as the currentState gets removed and then applied.

QE notes: None
Doc notes: None
Bugs: sdk-23251
Reviewer: Corey
Tests run: checkintests, Mustella spark/effects mx/states States
Is noteworthy for integration: Yes, fix requested by downstream teams

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/states/SetProperty.as
+++ frameworks/projects/framework/src/mx/states/SetProperty.as
@@ -14,6 +14,7 @@
 package mx.states
 {

+import mx.core.FlexVersion;
 import mx.core.UIComponent;
 import mx.core.mx_internal;

@@ -69,7 +70,8 @@
     private static const PSEUDONYMS:Object =
     {
         width: "explicitWidth",
-        height: "explicitHeight"
+        height: "explicitHeight",
+        currentState: "currentStateDeferred"
     };

     /**
@@ -263,6 +265,40 @@
     }

     /**
+     * Utility function to return the pseudonym of the property
+     * name if it exists on the object
+     */
+    private function getPseudonym(obj:*, name:String):String
+    {
+        var propName:String;
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            return (PSEUDONYMS[name] in obj) ?
+                PSEUDONYMS[name] :
+                name;
+        propName = PSEUDONYMS[name];
+        if (!(PSEUDONYMS[name] in obj))
+        {
+            // 'in' does not work for mx_internal properties
+            // like currentStateDeferred
+            try
+            {
+                // Check if we can access the property; if it doesn't
+                // exist, it'll throw a ReferenceError
+                var tmp:* = obj[PSEUDONYMS[name]];
+            }
+            catch (e:ReferenceError)
+            {
+                propName = name;
+            }
+        }
+        else
+        {
+            propName = name;
+        }
+        return propName;
+    }
+
+    /**
      *  @inheritDoc
      *
      *  @langversion 3.0
@@ -276,9 +312,7 @@
         if (obj != null)
         {
         	appliedTarget = obj;
-	        var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in obj)) ?
-	                          PSEUDONYMS[name] :
-	                          name;
+            var propName:String = PSEUDONYMS[name] ? getPseudonym(obj, name) : name;

 	        var relatedProps:Array = RELATED_PROPERTIES[propName] ?
 	                                 RELATED_PROPERTIES[propName] :
@@ -342,11 +376,9 @@
         var obj:* = getOverrideContext(appliedTarget, parent);
         if (obj != null && applied)
         {
-            var propName:String = (PSEUDONYMS[name] && (PSEUDONYMS[name] in obj)) ?
-	                          PSEUDONYMS[name] :
-	                          name;
+            var propName:String = PSEUDONYMS[name] ? getPseudonym(obj, name) : name;

-	        var relatedProps:Array = RELATED_PROPERTIES[propName] ?
+            var relatedProps:Array = RELATED_PROPERTIES[propName] ?
 	                                 RELATED_PROPERTIES[propName] :
 	                                 null;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5990
Author:   cframpto@adobe.com
Date:     2009-04-07T17:40:50.821402Z

Log Message:
-----------
If textAlign not leftAligned then the text must be recomposed in update display list if the unscaledWidth is not the same as the width used to compose the text.  If the width isn't specified then the composeWidth is maxWidth which defaults to 10000 if not set.

Similarly if verticalAlign is not topAligned and the unscaledHeight is not the same as the compose height the text must be recomposed.

QE Notes:
Doc Notes:
Bugs: SDK-20481
Reviewers: will be Gordon

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

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -598,6 +598,10 @@
     override protected function composeTextLines(width:Number = NaN,
 												 height:Number = NaN):void
     {
+        var composeWidth:Number = isNaN(width) ? maxWidth : width;
+
+        super.composeTextLines(composeWidth, height);
+
         // Don't want this handler firing when we're re-composing the text lines.
         textFlow.removeEventListener(DamageEvent.DAMAGE, textFlow_damageHandler);

@@ -613,7 +617,7 @@
 		var bounds:Rectangle = mx_internal::bounds;
         bounds.x = 0;
         bounds.y = 0;
-        bounds.width = isNaN(width) ? maxWidth : width;
+        bounds.width = composeWidth;
         bounds.height = height;

         mx_internal::removeTextLines();
@@ -674,42 +678,6 @@
     {
         mx_internal::textLines.push(textLine);
     }
-
-    /**
-     *  @private
-     *  Certain styles require the text to be recomposed when the height
-     *  changes.
-     */
-    override protected function composeOnHeightChange():Boolean
-    {
-        if (super.composeOnHeightChange())
-            return true;
-
-        var topAligned:Boolean =
-            textFlow.hostTextLayoutFormat.verticalAlign == "top";
-
-        return !topAligned;
-    }
-
-    /**
-     *  @private
-     *  Certain styles require the text to be recomposed when the width
-     *  changes.
-     */
-    override protected function composeOnWidthChange():Boolean
-    {
-        if (super.composeOnWidthChange())
-            return true;
-
-        var direction:String = textFlow.hostTextLayoutFormat.direction;
-        var textAlign:String = textFlow.hostTextLayoutFormat.textAlign;
-        var leftAligned:Boolean =
-            textAlign == "left" ||
-            textAlign == "start" && direction == "ltr" ||
-            textAlign == "end" && direction == "rtl";
-
-        return !leftAligned;
-    }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19266
Author:   hmuller@adobe.com
Date:     2010-12-10T17:32:59.920871Z

Log Message:
-----------
Added support for the liveDragging style to ScrollerBase in the same way it was added in SliderBase. In addition to the new style, this adds a protected pendingValue property to ScrollerBase.

Added a Scroller liveScrolling style that sets the liveDragging style on the Scroller's scrollbars.

QE notes: This is a new Scroller feature to be tested.
Doc notes:
Bugs: SDK-28039
Reviewer: Carol
Tests run: checkin
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.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@1280496 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -143,6 +143,29 @@
  *  @productversion Flex 4
  */
 [Style(name="horizontalScrollPolicy", type="String", inherit="no", enumeration="off,on,auto")]
+
+/**
+ *  A proxy for the scrollbars' liveDragging styles.
+ *
+ *
If this style is set to true, then the scrollbars' liveDragging styles are set to true (the default),
+ *  which means that dragging a scrollbar thumb immedidately updates the viewport's scroll position.
+ *  If this style is set to false, then the scrollbars' liveDragging styles are set to false,
+ *  which means that when a scrollbar thumb is dragged the viewport's scroll position is only updated
+ *  then the mouse button is released.

+ *
+ *
Setting this style to false can be helpful when updating the viewport's display is so
+ *  expensive that "liveDragging" performs poorly.

+ *
+ *
By default this style is undefined, which means that the scrollbar's liveDragging styles are not modified.

+ *
+ *  @default undefined
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="liveScrolling", type="Boolean", inherit="no")]

 /**
  *  @copy spark.components.supportClasses.GroupBase#style:rollOverColor
@@ -1293,6 +1316,20 @@
                 uninstallTouchListeners();
             }
         }
+
+        // If the liveScrolling style was set, set the scrollbars' liveDragging styles
+
+        if (allStyles || styleProp == "liveScrolling")
+        {
+            const liveScrolling:* = getStyle("liveScrolling");
+            if ((liveScrolling === true) || (liveScrolling === false))
+            {
+                if (verticalScrollBar)
+                    verticalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
+                if (horizontalScrollBar)
+                    horizontalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
+            }
+        }
     }

     /**
@@ -1324,11 +1361,22 @@
     {
         super.partAdded(partName, instance);

+        const liveScrolling:* = getStyle("liveScrolling");
+        const liveScrollingSet:Boolean = (liveScrolling === true) || (liveScrolling === false);
+
         if (instance == verticalScrollBar)
+        {
             verticalScrollBar.viewport = viewport;
+            if (liveScrollingSet)
+                verticalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
+        }

         else if (instance == horizontalScrollBar)
+        {
             horizontalScrollBar.viewport = viewport;
+            if (liveScrollingSet)
+                horizontalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
+        }
     }

     /**


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkVolumeBarAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkVolumeBarAutomationImpl.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 spark.automation.delegates.components.mediaClasses
 {


Added some security stuff

Added some security stuff

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@855 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/source/org.openwms.common.domain.as/src/main/flex/org/openwms/common/domain/system/usermanagement/Role.as
+++ org.openwms/trunk/source/org.openwms.common.domain.as/src/main/flex/org/openwms/common/domain/system/usermanagement/Role.as
@@ -4,7 +4,7 @@
  * This file is part of openwms.org.
  *
  * openwms.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
+ * it under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation, either version 3 of the
  * License, or (at your option) any later version.
  *
@@ -23,10 +23,10 @@
     [Bindable]
     [RemoteClass(alias="org.openwms.common.domain.system.usermanagement.Role")]
     public class Role extends RoleBase {
-
-    	public function Role(name:String = null, description:String = null) {
-    		this._name = name;
-    		this._description = description;
-    	}
+
+        public function Role(name : String=null, description : String=null) {
+            this._name = name;
+            this._description = description;
+        }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20569
Author:   deeptika@adobe.com
Date:     2011-03-03T06:31:22.031807Z

Log Message:
-----------
Using $addEventListener on GroupBase instead of addEventListener in order not to add mouse shield when a listener is added from our delegates.
QE notes:
Doc notes:
Bugs: FLEXENT-1431 (automation_airspark.swc doesn't support borderBgFill setting)
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as
@@ -80,9 +80,17 @@
         public function SparkGroupBaseAutomationImpl(obj:spark.components.supportClasses.GroupBase)
         {
             super(obj);
-            obj.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
+            obj.$addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
                 false, EventPriority.DEFAULT+1, true );
         }
+
+		override protected function addMouseEvent(obj:DisplayObject, event:String, handler:Function ,
+										 useCapture:Boolean = false , priority:int = 0, useWeekRef:Boolean = false):void
+		{
+			grpBase.$addEventListener(event, handler, useCapture,priority, useWeekRef);
+				// special addevent listener on the container, which does not add the mouse shield.
+
+		}

         /**
          *  @private


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

--- frameworks/projects/framework/src/mx/core/IRepeater.as
+++ frameworks/projects/framework/src/mx/core/IRepeater.as
@@ -0,0 +1,210 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The IRepeater interface defines the APIs for Repeater
+ *  public APIs of the Repeater object.
+ */
+public interface IRepeater
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  container
+	//----------------------------------
+
+    /**
+     *  The container that contains this Repeater,
+	 *  and in which it will create its children.
+     */
+    function get container():IContainer;
+
+	//----------------------------------
+	//  count
+	//----------------------------------
+
+    /**
+     *  The number of times this Repeater should execute.
+	 *
+     *
If the Repeater reaches the end of the data provider while
+	 *  executing, the number of times it actually executes will be less
+	 *  that the requested count.

+     */
+    function get count():int;
+
+	/**
+	 *  @private
+	 */
+    function set count(value:int):void;
+
+	//----------------------------------
+	//  currentIndex
+	//----------------------------------
+
+    /**
+     *  The index of the item in the dataProvider currently
+	 *  being processed while this Repeater is executing.
+	 *
+	 *
After the Repeater has finished executing,
+	 *  this property is -1.
+	 *  However, the repeaterIndex property of a repeated
+	 *  component instance remembers the index of the
+	 *  dataProvider item from which it was created.
+	 *  In the case of nested Repeaters, you can use the
+	 *  repeaterIndices array.

+	 *
+	 *  @see mx.core.UIComponent#repeaterIndex
+	 *  @see mx.core.UIComponent#repeaterIndices
+	 *  @see mx.core.UIComponent#instanceIndex
+	 *  @see mx.core.UIComponent#instanceIndices
+     */
+    function get currentIndex():int;
+
+	//----------------------------------
+	//  currentItem
+	//----------------------------------
+
+    /**
+     *  The item in the dataProvider currently being processed
+	 *  while this Repeater is executing.
+	 *
+	 *
After the Repeater has finished executing,
+	 *  this property is null.
+	 *  However, in this case you can call the getRepeaterItem()
+	 *  method of the repeated component instance to get the
+	 *  dataProvider item from which it was created.

+	 *
+	 *  @see mx.core.UIComponent#getRepeaterItem()
+     */
+    function get currentItem():Object;
+
+	//----------------------------------
+	//  dataProvider
+	//----------------------------------
+
+    /**
+     *  The data provider used by this Repeater to create repeated instances
+	 *  of its children.
+	 *
+	 *
If you read the dataProvider property, you always get
+	 *  an ICollectionView object or null.
+	 *  If you set the dataProvider property to anything other than
+	 *  null, it is converted into an ICollectionView object,
+	 *  according the following rules:

+	 *
+	 *

+	 *
If you set it to an Array, it is converted into an ArrayCollection.

+	 *
If you set it to an ICollectionView, no conversion is performed.

+	 *
If you set it to an IList, it is converted into a ListCollectionView.

+	 *
If you set it to an XML or XMLList, it is converted
+	 *      into an XMLListCollection.

+	 *
Otherwise, it is converted to a single-element ArrayCollection.

+	 *

+     *
+     *
You must specify a value for the dataProvider property
+     *  or the Repeater component will not execute.

+     */
+    function get dataProvider():Object;
+
+	/**
+	 *  @private
+	 */
+    function set dataProvider(value:Object):void;
+
+	//----------------------------------
+	//  recycleChildren
+	//----------------------------------
+
+    /**
+     *  A Boolean flag indicating whether this Repeater should re-use
+	 *  previously created children, or create new ones.
+	 *
+	 *
If true, when this Repeater's
+	 *  dataProvider, startingIndex,
+	 *  or count changes, it will recycle the existing
+	 *  children by binding the new data into them.
+	 *  If more children are required, they are created and added.
+	 *  If fewer children are required, the extra ones are removed
+	 *  and garbage collected.

+     *
+     *
If false, when this Repeater's
+	 *  dataProvider, startingIndex,
+	 *  or count changes, it will remove any previous
+	 *  children that it created and then create and
+     *  add new children from the new data items.

+	 *
+	 *
This property is false by default.
+	 *  Setting it to true can increase performance,
+	 *  but is not appropriate in all situations.
+	 *  For example, if the previously created children have state
+	 *  information such as text typed in by a user, then this
+	 *  state will not get reset when the children are recycled.

+     */
+    function get recycleChildren():Boolean;
+
+	/**
+	 *  @private
+	 */
+	function set recycleChildren(value:Boolean):void;
+
+	//----------------------------------
+	//  startingIndex
+	//----------------------------------
+
+    /**
+     *  The index into the dataProvider at which this Repeater
+     *  starts creating children.
+     */
+    function get startingIndex():int;
+
+	/**
+	 *  @private
+	 */
+    function set startingIndex(value:int):void;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Initializes a new Repeater object.
+	 *
+	 *
This method is called by the Flex framework.
+	 *  Developers should not need to call it.

+	 *
+     *  @param container The Container that contains this Repeater,
+	 *  and in which this Repeater will create its children.
+	 *
+     *  @param recurse A Boolean flag indicating whether this Repeater
+	 *  should create all descendants of its children.
+     */
+    function initializeRepeater(container:IContainer, recurse:Boolean):void;
+
+    /**
+     *  Executes the bindings into all the UIComponents created
+	 *  by this Repeater.
+	 *
+	 *
This method is called by the Flex framework.
+	 *  Developers should not need to call it.

+     */
+    function executeChildBindings():void;
+}
+
+}


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

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

 package mx.effects
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17368
Author:   klin@adobe.com
Date:     2010-08-18T21:26:09.697508Z

Log Message:
-----------
Add spark form icon metadata and file.

QE notes: No
Doc notes: No
Bugs: SDK-27352
Reviewer: Tom
Tests run: checkintests
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/components/Form.as
+++ frameworks/projects/spark/src/spark/components/Form.as
@@ -32,6 +32,8 @@
  * see Spark Skinning.
  */
 [DiscouragedForProfile("mobileDevice")]
+
+[IconFile("Form.png")]

 /**
  *  SkinnableContainer with FormItem children.


Transferred from the Adobe Open Source Subversion Repository

Revision: 18890
Author:   cframpto@adobe.com
Date:     2010-12-01T14:10:42.382651Z

Log Message:
-----------
Fix old indexes reported in GridCaretEvent.CARET_CHANGE event.

QE notes:
Doc notes:
Bugs: SDK-28710
Reviewer: Darrell
Tests run:
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -525,7 +525,6 @@
         if (_caretColumnIndex == value || value < -1)
             return;

-        _oldCaretColumnIndex = _caretColumnIndex;
         _caretColumnIndex = value;

         caretChanged = true;
@@ -580,7 +579,6 @@
         if (_caretRowIndex == value || value < -1)
             return;

-        _oldCaretRowIndex = _caretRowIndex;
         _caretRowIndex = value;

         caretChanged = true;
@@ -3417,11 +3415,7 @@
         if (caretChanged)
         {
             // Validate values now.  Need to let caret be set in the same
-            // update as the dp and/or columns.  -1 is a valid value.
-
-            // If adjusting the index, don't use the setter.  Need to preserve
-            // the old caret index so it can be reported in the caret change
-            // event.
+            // update as the dp and/or columns.  -1 is a valid value.
             if (_dataProvider && caretRowIndex >= _dataProvider.length)
                 _caretRowIndex = _dataProvider.length - 1;
             if (_columns && caretColumnIndex >= _columns.length)
@@ -3432,6 +3426,11 @@
                 _dataProvider.getItemAt(_caretRowIndex) : null;

             dispatchCaretChangeEvent();
+
+            // Last reported values.
+            _oldCaretRowIndex = _caretRowIndex;
+            _oldCaretColumnIndex = _caretColumnIndex;
+
             caretChanged = false;
          }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18624
Author:   hmuller@adobe.com
Date:     2010-11-16T19:43:24.335484Z

Log Message:
-----------
Added support for requestedMaxRowCount, default=10.  Changed requestedRowCount's default value to -1.

QE notes: Three failing tests have been excluded
Doc notes:
Bugs: SDK-27531
Reviewer: Darrell
Tests run: checkin, mustella
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -1108,22 +1108,64 @@
     }

     //----------------------------------
-    //  requestedMinRowCount
-    //----------------------------------
-
-    private var _requestedMinRowCount:int = -1;
+    //  requestedMaxRowCount
+    //----------------------------------
+
+    private var _requestedMaxRowCount:int = 10;

     [Inspectable(category="General", minValue="-1")]

     /**
      *  The measured height of this grid will be large enough to display
-     *  at least requestedMinRowCount rows.
+     *  no more than requestedMaxRowCount rows.
      *
      *
This property has no effect if any of the following are true;
      *

      *
requestedRowCount is set

      *
the actual size of the grid has been explicitly set

-     *
the grid is inside a Scroller component

+     *

+     *

+     *
+     *  @default 10
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get requestedMaxRowCount():int
+    {
+        return _requestedMaxRowCount;
+    }
+
+    /**
+     *  @private
+     */
+    public function set requestedMaxRowCount(value:int):void
+    {
+        if (_requestedMaxRowCount == value)
+            return;
+
+        _requestedMaxRowCount = value;
+        invalidateSize();
+    }
+
+    //----------------------------------
+    //  requestedMinRowCount
+    //----------------------------------
+
+    private var _requestedMinRowCount:int = -1;
+
+    [Inspectable(category="General", minValue="-1")]
+
+    /**
+     *  The measured height of this grid will be large enough to display
+     *  at least requestedMinRowCount rows.
+     *
+     *
This property has no effect if any of the following are true;
+     *

+     *
requestedRowCount is set

+     *
the actual size of the grid has been explicitly set

      *

      *

      *
@@ -1155,7 +1197,7 @@
     //  requestedRowCount
     //----------------------------------

-    private var _requestedRowCount:int = 10;
+    private var _requestedRowCount:int = -1;

     [Inspectable(category="General", minValue="-1")]

@@ -1169,7 +1211,7 @@
      *
If the actual size of the grid has been explicitly set,
      *  then this property has no effect.

      *
-     *  @default 10
+     *  @default -1
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 12457
Author:   smgilson@adobe.com
Date:     2009-12-03T18:13:50.586970Z

Log Message:
-----------
asdoc updates 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/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.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/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Scale3D.as
+++ frameworks/projects/spark/src/spark/effects/Scale3D.as
@@ -28,8 +28,8 @@
 /**
  *  The Scale3D class scales a target object
  *  in three dimensions around the transform center.
- *  A scale of 2.0 means the object has been magnified by a factor of 2,
- *  and a scale of 0.5 means the object has been reduced by a factor of 2.
+ *  A scale of 2.0 means the object is magnified by a factor of 2,
+ *  and a scale of 0.5 means the object is reduced by a factor of 2.
  *  A scale value of 0.0 is invalid.
  *
  *  <p>Like all AnimateTransform-based effects, this effect only works on subclasses


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -9,12 +9,13 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.graphics
+package spark.primitives
 {

 import flash.display.Graphics;
 import flash.events.EventDispatcher;
 import flash.geom.Rectangle;
+import spark.primitives.supportClasses.StrokedElement;

 /**
  *  The Line class is a graphic element that draws a line between two points.