Transferred from the Adobe Open Source Subversion Repository

Revision: 13055
Author:   hneelu@adobe.com
Date:     2009-12-17T17:07:16.762592Z

Log Message:
-----------
Adding ADG classes for FTE

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses/MXAdvancedDataGridItemRenderer.as</path>

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

--- frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as
+++ frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as
@@ -0,0 +1,766 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.geom.Point;
+import flash.geom.Rectangle;
+import flash.utils.getDefinitionByName;
+import flash.utils.getQualifiedClassName;
+import flash.utils.getQualifiedSuperclassName;
+
+import mx.controls.AdvancedDataGrid;
+import mx.controls.listClasses.BaseListData;
+import mx.controls.listClasses.IDropInListItemRenderer;
+import mx.controls.listClasses.IListItemRenderer;
+import mx.core.IDataRenderer;
+import mx.core.IFlexDisplayObject;
+import mx.core.IToolTip;
+import mx.core.UIComponentGlobals;
+import mx.core.UIFTETextField;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
+import mx.events.InterManagerRequest;
+import mx.events.ToolTipEvent;
+import mx.managers.ILayoutManagerClient;
+import mx.managers.ISystemManager;
+import mx.styles.CSSStyleDeclaration;
+import mx.styles.IStyleClient;
+import mx.styles.StyleProtoChain;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the data property changes.
+ *
+ *
When you use a component as an item renderer,
+ *  the data property contains the data to display.
+ *  You can listen for this event and update the component
+ *  when the data property changes.

+ *
+ *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Event(name="dataChange", type="mx.events.FlexEvent")]
+
+/**
+ *  The FTEAdvancedDataGridItemRenderer class defines the default item renderer for an
+ *  AdvancedDataGrid control used with FTEText.
+ *  By default, the item renderer
+ *  draws the text associated with each item in the grid.
+ *
+ *
You can override the default item renderer by creating a custom item renderer.

+ *
+ *  @see mx.controls.AdvancedDataGrid
+ *  @see mx.core.IDataRenderer
+ *  @see mx.controls.listClasses.IDropInListItemRenderer
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class FTEAdvancedDataGridItemRenderer extends UIFTETextField
+                                  implements IDataRenderer,
+                                  IDropInListItemRenderer, ILayoutManagerClient,
+                                  IListItemRenderer, IStyleClient
+{
+    include "../../../spark/core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function FTEAdvancedDataGridItemRenderer()
+    {
+        super();
+
+        tabEnabled = false;
+        mouseWheelEnabled = false;
+
+        ignorePadding = false;
+
+        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);
+
+        inheritingStyles = nonInheritingStyles =
+            StyleProtoChain.STYLE_UNINITIALIZED;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var invalidatePropertiesFlag:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var invalidateSizeFlag:Boolean = false;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties: UIComponent
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  nestLevel
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set nestLevel(value:int):void
+    {
+        super.nestLevel = value;
+
+        UIComponentGlobals.layoutManager.invalidateProperties(this);
+        invalidatePropertiesFlag = true;
+
+        UIComponentGlobals.layoutManager.invalidateSize(this);
+        invalidateSizeFlag = true;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _data:Object;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the data property as
+     *  defined by the IDataRenderer interface.
+     *  The value is ignored.  Only the listData property is used.
+     *
+     *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        _data = value;
+
+        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+    }
+
+    //----------------------------------
+    //  listData
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _listData:AdvancedDataGridListData;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the listData property as
+     *  defined by the IDropInListItemRenderer interface.
+     *  The text of the renderer is set to the label
+     *  property of this property.
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get listData():BaseListData
+    {
+        return _listData;
+    }
+
+    /**
+     *  @private
+     */
+    public function set listData(value:BaseListData):void
+    {
+        _listData = AdvancedDataGridListData(value);
+        if (nestLevel && !invalidatePropertiesFlag)
+        {
+            UIComponentGlobals.layoutManager.invalidateProperties(this);
+            invalidatePropertiesFlag = true;
+            UIComponentGlobals.layoutManager.invalidateSize(this);
+            invalidateSizeFlag = true;
+        }
+    }
+
+    //----------------------------------
+    //  styleDeclaration
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the styleDeclaration property.
+     */
+    private var _styleDeclaration:CSSStyleDeclaration;
+
+    /**
+     *  Storage for the inline inheriting styles on this object.
+     *  This CSSStyleDeclaration is created the first time that
+     *  the setStyle() method
+     *  is called on this component to set an inheriting style.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get styleDeclaration():CSSStyleDeclaration
+    {
+        return _styleDeclaration;
+    }
+
+    /**
+     *  @private
+     */
+    public function set styleDeclaration(value:CSSStyleDeclaration):void
+    {
+        _styleDeclaration = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UITextField
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function initialize():void
+    {
+        regenerateStyleCache(false)
+    }
+
+    /**
+     *  @private
+     */
+    override public function validateNow():void
+    {
+        if (data && parent)
+        {
+            var newColor:Number;
+
+            if (AdvancedDataGrid(_listData.owner).isItemHighlighted(_listData.uid))
+            {
+                newColor = getStyle("textRollOverColor");
+            }
+            else if (AdvancedDataGrid(_listData.owner).isItemSelected(_listData.uid))
+            {
+                newColor = getStyle("textSelectedColor");
+            }
+            else
+            {
+                newColor = getStyle("color");
+            }
+
+            if (newColor != explicitColor)
+            {
+                styleChangedFlag = true;
+                explicitColor = newColor;
+                invalidateDisplayList();
+            }
+        }
+
+        super.validateNow();
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#getStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function getStyle(styleProp:String):*
+    {
+        return (styleManager.inheritingStyles[styleProp]) ?
+            inheritingStyles[styleProp] : nonInheritingStyles[styleProp];
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#setStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function setStyle(styleProp:String, newValue:*):void
+    {
+        if (styleProp == "styleName")
+        {
+            // Let the setter handle this one, see UIComponent.
+            styleName = newValue;
+
+            // Short circuit, because styleName isn't really a style.
+            return;
+        }
+
+        /*
+        if (styleProp == "themeColor")
+        {
+            // setThemeColor handles the side effects.
+            setThemeColor(newValue);
+
+            // Do not short circuit, because themeColor is a style.
+            // It just has side effects, too.
+        }
+        */
+
+        // If this UIComponent didn't previously have any inline styles,
+        // then regenerate the UIComponent's proto chain (and the proto chains
+        // of this UIComponent's descendants).
+        var isInheritingStyle:Boolean =
+            styleManager.isInheritingStyle(styleProp);
+        var isProtoChainInitialized:Boolean =
+            inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED;
+        if (isInheritingStyle)
+        {
+            if (getStyle(styleProp) == newValue && isProtoChainInitialized)
+                return;
+
+            if (!styleDeclaration)
+            {
+                styleDeclaration = new CSSStyleDeclaration(null, styleManager);
+                styleDeclaration.setLocalStyle(styleProp, newValue);
+
+                // If inheritingStyles is undefined, then this object is being
+                // initialized and we haven't yet generated the proto chain.  To
+                // avoid redundant work, don't bother to create the proto chain here.
+                if (isProtoChainInitialized)
+                    regenerateStyleCache(true);
+            }
+            else
+            {
+                styleDeclaration.setLocalStyle(styleProp, newValue);
+            }
+        }
+        else
+        {
+            if (getStyle(styleProp) == newValue && isProtoChainInitialized)
+                return;
+
+            if (!styleDeclaration)
+            {
+                styleDeclaration = new CSSStyleDeclaration(null, styleManager);
+                styleDeclaration.setLocalStyle(styleProp, newValue);
+
+                // If nonInheritingStyles is undefined, then this object is being
+                // initialized and we haven't yet generated the proto chain.  To
+                // avoid redundant work, don't bother to create the proto chain here.
+                if (isProtoChainInitialized)
+                    regenerateStyleCache(false);
+            }
+            else
+            {
+                styleDeclaration.setLocalStyle(styleProp, newValue);
+            }
+        }
+
+        if (isProtoChainInitialized)
+        {
+            styleChanged(styleProp);
+            notifyStyleChangeInChildren(styleProp, isInheritingStyle);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  If Flex calls the LayoutManager.invalidateProperties()
+     *  method on this ILayoutManagerClient,
+     *  this function is called when it's time to commit property values.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function validateProperties():void
+    {
+        invalidatePropertiesFlag = false;
+        if (_listData)
+        {
+            var dg:AdvancedDataGrid = AdvancedDataGrid(_listData.owner);
+
+            var column:AdvancedDataGridColumn =
+                dg.columns[_listData.columnIndex];
+
+            text = _listData.label;
+
+            if (_data is AdvancedDataGridColumn)
+                wordWrap = dg.columnHeaderWordWrap(column);
+            else
+                wordWrap = dg.columnWordWrap(column);
+
+            if (AdvancedDataGrid(_listData.owner).variableRowHeight)
+                multiline = true;
+
+            var dataTips:Boolean = dg.showDataTips;
+            if (column.showDataTips == true)
+                dataTips = true;
+            if (column.showDataTips == false)
+                dataTips = false;
+            if (dataTips)
+            {
+                if (!(_data is AdvancedDataGridColumn) && (textWidth > width
+                    || column.dataTipFunction || column.dataTipField
+                    || dg.dataTipFunction || dg.dataTipField))
+                {
+                    toolTip = column.itemToDataTip(_data);
+                }
+                else
+                {
+                    toolTip = null;
+                }
+            }
+            else
+            {
+                toolTip = null;
+            }
+        }
+        else
+        {
+            text = " ";
+            toolTip = null;
+        }
+    }
+
+    /**
+     *  If Flex calls the LayoutManager.invalidateSize()
+     *  method on this ILayoutManagerClient,
+     *  this function is called when it's time to do measurements.
+     *
+     *  @param recursive If true, call this method
+     *  on the object's children.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function validateSize(recursive:Boolean = false):void
+    {
+        invalidateSizeFlag = false;
+        validateNow();
+    }
+
+    /**
+     *  If Flex calls LayoutManager.invalidateDisplayList()
+     *  method on this ILayoutManagerClient instance,
+     *  this function is called when it's time to update the display list.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function validateDisplayList():void
+    {
+        validateNow();
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#clearStyle()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function clearStyle(styleProp:String):void
+    {
+        setStyle(styleProp, undefined);
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#notifyStyleChangeInChildren()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function notifyStyleChangeInChildren(
+                        styleProp:String, recursive:Boolean):void
+    {
+    }
+
+    /**
+     *  Sets up the inheritingStyles
+     *  and nonInheritingStyles objects
+     *  and their proto chains so that the getStyle() method can work.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function initProtoChain():void
+    {
+        styleChangedFlag = true;
+
+        var classSelectors:Array = [];
+
+        if (styleName)
+        {
+            if (styleName is CSSStyleDeclaration)
+            {
+                // Get the style sheet referenced by the styleName property
+                classSelectors.push(CSSStyleDeclaration(styleName));
+            }
+            else if (styleName is IFlexDisplayObject)
+            {
+                // If the styleName property is a UIComponent, then there's a
+                // special search path for that case.
+                StyleProtoChain.initProtoChainForUIComponentStyleName(this);
+                return;
+            }
+            else if (styleName is String)
+            {
+                // Get the style sheet referenced by the styleName property
+                var styleNames:Array = styleName.split(/\s+/);
+                for (var c:int=0; c < styleNames.length; c++)
+                {
+                    if (styleNames[c].length) {
+                        classSelectors.push(styleManager.getMergedStyleDeclaration("." +
+                            styleNames[c]));
+                    }
+                }
+            }
+        }
+
+        // To build the proto chain, we start at the end and work forward.
+        // Referring to the list at the top of this function, we'll start by
+        // getting the tail of the proto chain, which is:
+        //  - for non-inheriting styles, the global style sheet
+        //  - for inheriting styles, my parent's style object
+        var nonInheritChain:Object = styleManager.stylesRoot;
+
+        var p:IStyleClient = parent as IStyleClient;
+        if (p)
+        {
+            var inheritChain:Object = p.inheritingStyles;
+            if (inheritChain == StyleProtoChain.STYLE_UNINITIALIZED)
+                inheritChain = nonInheritChain;
+        }
+        else
+        {
+            inheritChain = styleManager.stylesRoot;
+        }
+
+        // Working backwards up the list, the next element in the
+        // search path is the type selector
+        var typeSelectors:Array = getClassStyleDeclarations();
+        var n:int = typeSelectors.length;
+        for (var i:int = 0; i < n; i++)
+        {
+            var typeSelector:CSSStyleDeclaration = typeSelectors[i];
+            inheritChain = typeSelector.addStyleToProtoChain(inheritChain, this);
+            nonInheritChain = typeSelector.addStyleToProtoChain(nonInheritChain, this);
+        }
+
+        // Next are the class selectors
+        for (i = 0; i < classSelectors.length; i++)
+        {
+            var classSelector:CSSStyleDeclaration = classSelectors[i];
+            if (classSelector)
+            {
+                inheritChain = classSelector.addStyleToProtoChain(inheritChain, this);
+                nonInheritChain = classSelector.addStyleToProtoChain(nonInheritChain, this);
+            }
+        }
+
+        // Finally, we'll add the in-line styles
+        // to the head of the proto chain.
+        inheritingStyles = styleDeclaration ?
+            styleDeclaration.addStyleToProtoChain(inheritChain, this) :
+            inheritChain;
+
+        nonInheritingStyles = styleDeclaration ?
+            styleDeclaration.addStyleToProtoChain(nonInheritChain, this) :
+            nonInheritChain;
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#regenerateStyleCache()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function regenerateStyleCache(recursive:Boolean):void
+    {
+        initProtoChain();
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#registerEffects()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function registerEffects(effects:Array /* of String */):void
+    {
+    }
+
+    /**
+     *  @copy mx.core.UIComponent#getClassStyleDeclarations()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function getClassStyleDeclarations():Array
+    {
+        var className:String = getQualifiedClassName(this)
+        className = className.replace("::", ".");
+
+        var decls:Array = [];
+
+        while (className != null &&
+               className != "mx.core.UIComponent" &&
+               className != "mx.core.UIFTETextField")
+        {
+            var s:CSSStyleDeclaration =
+                styleManager.getMergedStyleDeclaration(className);
+
+            if (s)
+            {
+                decls.unshift(s);
+            }
+
+            try
+            {
+                className = getQualifiedSuperclassName(getDefinitionByName(className));
+                className = className.replace("::", ".");
+            }
+            catch(e:ReferenceError)
+            {
+                className = null;
+            }
+        }
+
+        return decls;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The event handler to position the tooltip.
+     *
+     *  @param event The event object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    protected function toolTipShowHandler(event:ToolTipEvent):void
+    {
+        var toolTip:IToolTip = event.toolTip;
+
+        // Calculate global position of label.
+        var sm:ISystemManager = systemManager.topLevelSystemManager;
+        var sbRoot:DisplayObject = sm.getSandboxRoot();
+        var screen:Rectangle;
+        var pt:Point = new Point(0, 0);
+        pt = localToGlobal(pt);
+        pt = sbRoot.globalToLocal(pt);
+
+        toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
+
+        if (sm != sbRoot)
+        {
+            var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
+                false, false,
+                "getVisibleApplicationRect");
+            sbRoot.dispatchEvent(request);
+            screen = Rectangle(request.value);
+        }
+        else
+        {
+            screen = sm.getVisibleApplicationRect();
+        }
+
+        var screenRight:Number = screen.x + screen.width;
+        pt.x = toolTip.x;
+        pt.y = toolTip.y;
+        pt = sbRoot.localToGlobal(pt);
+        if (pt.x + toolTip.width > screenRight)
+            toolTip.move(toolTip.x - (pt.x + toolTip.width - screenRight), toolTip.y);
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6169
Author:   dloverin@adobe.com
Date:     2009-04-20T20:19:55.241620Z

Log Message:
-----------
Show disabled look when the application is disabled.

Set the Spark ApplicationSkin to use alpha="0.5" when the application is disabled.

Removed setting the name property in the Halo Application constructor and the Spark Application constructor. The name set there is overwritten in the FlexSprite constructor.

QE Notes: None.
Doc Notes: None.
Bugs: SDK-20428
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>

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

--- frameworks/projects/mx/src/mx/core/Application.as
+++ frameworks/projects/mx/src/mx/core/Application.as
@@ -325,8 +325,6 @@
      */
     public function Application()
     {
-        name = "application";
-
         UIComponentGlobals.layoutManager = ILayoutManager(
             Singleton.getInstance("mx.managers::ILayoutManager"));
         UIComponentGlobals.layoutManager.usePhasedInstantiation = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10344
Author:   smgilson@adobe.com
Date:     2009-09-17T18:06:55.200452Z

Log Message:
-----------
Update ASDoc for the error event for bug FLEXDOCS-501

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

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

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

--- frameworks/projects/mx/src/mx/core/Application.as
+++ frameworks/projects/mx/src/mx/core/Application.as
@@ -57,8 +57,7 @@
 [Event(name="applicationComplete", type="mx.events.FlexEvent")]

 /**
- *  Dispatched when an error occurs anywhere in the application,
- *  or when an HTTPService call fails.
+ *  Dispatched when an HTTPService call fails.
  *
  *  @eventType flash.events.ErrorEvent.ERROR
  *


fixed FXU-52

fixed FXU-52

git-svn-id: 9278a788294a4258aac04586390fc35fb4a5f335@9132 a9308255-753e-0410-a2e9-80b3fbc4fff6

--- FlexUnit4/src/org/flexunit/internals/runners/FlexUnit1ClassRunner.as
+++ FlexUnit4/src/org/flexunit/internals/runners/FlexUnit1ClassRunner.as
@@ -26,6 +26,8 @@
  * @version
  **/
 package org.flexunit.internals.runners {
+	import flash.events.TimerEvent;
+	import flash.utils.Timer;
 	import flash.utils.getDefinitionByName;
 	import flash.utils.getQualifiedClassName;

@@ -48,7 +50,7 @@
 	import org.flexunit.runners.model.FrameworkMethod;
 	import org.flexunit.token.AsyncTestToken;
 	import org.flexunit.token.ChildResult;
-	import org.flexunit.utils.ClassNameUtil;
+	import org.flexunit.utils.ClassNameUtil;

 	public class FlexUnit1ClassRunner implements IRunner, IFilterable {

@@ -57,6 +59,7 @@
 		private var totalTestCount:int = 0;
 		private var numTestsRun:int = 0;
 		private var filterRef:Filter = null;
+		private var testCompletedToken : AsyncTestToken;

 		public function FlexUnit1ClassRunner( klassOrTest:* ) {
 			super();
@@ -151,11 +154,22 @@
 		protected function handleTestComplete( result:ChildResult ):void {
 			//trace( numTestsRun + ' ' + totalTestCount );
 			if ( ++numTestsRun == totalTestCount ) {
-				var error:Error = result.error;
-				var token:AsyncTestToken = result.token;
-
-				token.parentToken.sendResult();
-			}
+				testCompletedToken = result.token;
+
+				// FlexUnit 0.9 has a timer set up in TestSuiteTestListener executed
+				// 5ms after each test execution to clean up the static property listenerStack.
+				// We have to add this 5ms delay here as well otherwise the parentToken would be executed
+				// before the TestSuiteTestListener timer and would mess things up.
+				var timer : Timer = new Timer ( 5, 1 );
+				timer.addEventListener( TimerEvent.TIMER,handleAllTestsComplete,false, 0, false );
+				timer.start();
+			}
+		}
+
+		private function handleAllTestsComplete( event : TimerEvent ) : void
+		{
+			(event.target as Timer).removeEventListener( TimerEvent.TIMER, handleAllTestsComplete );
+			testCompletedToken.parentToken.sendResult();
 		}

 		public static function createAdaptingListener( notifier:IRunNotifier, token:AsyncTestToken ):TestListener {
@@ -240,19 +254,16 @@
 	}

 	public function endTest( test:Test ):void {
-		//trace("End Test");
 		notifier.fireTestFinished(asDescription(test));
 		token.sendResult();
 	}

 	public function startTest( test:Test ):void {
-		//trace("Start Test");
 		notifier.fireTestStarted(asDescription(test));
 	}

 	// Implement junit.framework.TestListener
 	public function addError( test:Test, error:Error ):void {
-		//trace("Add Error");
 		var failure:Failure = new Failure(asDescription(test), error );
 		notifier.fireTestFailure(failure);
 	}


OFC-517	For species input fields, focus on autocomplete popup when key down is pressed and autocomplete popup is opened

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/TaxonAttributePresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/TaxonAttributePresenter.as
@@ -53,10 +53,13 @@

 			//id text input
 			view.codeTextInput.addEventListener(InputFieldEvent.CHANGING, inputFieldChangingHandler);
+			view.codeTextInput.textInput.addEventListener(KeyboardEvent.KEY_DOWN, inputFieldKeyDownHandler);
 			//scientific name text input
 			view.scientificNameTextInput.addEventListener(InputFieldEvent.CHANGING, inputFieldChangingHandler);
+			view.scientificNameTextInput.textInput.addEventListener(KeyboardEvent.KEY_DOWN, inputFieldKeyDownHandler);
 			//vernacular name text input
 			view.vernacularNameTextInput.addEventListener(InputFieldEvent.CHANGING, inputFieldChangingHandler);
+			view.vernacularNameTextInput.textInput.addEventListener(KeyboardEvent.KEY_DOWN, inputFieldKeyDownHandler);
 			//language code text input
 			view.languageCodeTextInput.addEventListener(InputFieldEvent.CHANGING, inputFieldChangingHandler);
 			//language variety text input
@@ -91,6 +94,12 @@
 			}
 			if(searchType != null) {
 				showAutoCompletePopUp(searchType, inputField, view.codeTextInput);
+			}
+		}
+
+		protected function inputFieldKeyDownHandler(event:KeyboardEvent):void {
+			if ( event.keyCode == Keyboard.DOWN && autoCompletePopUpOpen ) {
+				autoCompletePopUp.dataGrid.setFocus();
 			}
 		}


Beware of cd.

Beware of cd.

	* build-aux/base.as: Don't expect relative paths to be alive.

--- build-aux/base.as
+++ build-aux/base.as
@@ -341,6 +341,8 @@
   (x) set -x;;
 esac

+# We can only check absolute dirs, since we may be called from other
+# directories than the ones we were created from.
 : ${abs_builddir='@abs_builddir@'}
 : ${abs_srcdir='@abs_srcdir@'}
 : ${abs_top_builddir='@abs_top_builddir@'}
@@ -350,9 +352,7 @@
 : ${builddir='@builddir@'}
 : ${srcdir='@srcdir@'}
 : ${top_builddir='@top_builddir@'}
-check_dir top_builddir config.status
 : ${top_srcdir='@top_srcdir@'}
-check_dir top_srcdir configure.ac

 # Bounce the signals to trap 0, passing the signal as exit value.
 for signal in 1 2 13 15; do


Changed UIComponent validation to not forget changes to the selectorPath for non-displayed elements

--- src/reprise/ui/UIComponent.as
+++ src/reprise/ui/UIComponent.as
@@ -1824,6 +1824,7 @@
 		 */
 		protected function calculateStyles() : void
 		{
+			var oldSelectorPath : String = m_selectorPath;
 			refreshSelectorPath();

 			var styles : CSSDeclaration = new CSSDeclaration();
@@ -1872,6 +1873,8 @@
 				styles.getStyle('display').specifiedValue() == 'none') && m_rootElement;
 			if (!m_isRendered)
 			{
+				//We want changes to the selectorPath picked up during the next real validation
+				m_selectorPath = oldSelectorPath;
 				return;
 			}


Whitespaces.

Whitespaces.


fixed google closure warnings

fixed google closure warnings

--- WeaveJS/src/weavejs/data/source/GeoJSONDataSource.as
+++ WeaveJS/src/weavejs/data/source/GeoJSONDataSource.as
@@ -202,7 +202,7 @@
 				var qkeys:Array = [];
 				var geoms:Array = [];
 				var i:int = 0;
-				function initGeoms(stopTime:int):Number
+				var initGeoms:Function = function(stopTime:int):Number
 				{
 					if (!jsonData)
 					{
@@ -223,7 +223,7 @@
 					}
 					return 1;
 				}
-				function setGeoms():void
+				var setGeoms:Function = function():void
 				{
 					var gc:GeometryColumn = new GeometryColumn(metadata);
 					gc.setGeometries(qkeys, geoms);


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

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

 package mx.controls.advancedDataGridClasses
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/skins/halo/ListDropIndicator.as
+++ frameworks/projects/framework/src/mx/skins/halo/ListDropIndicator.as
@@ -17,6 +17,11 @@

 /**
  *  The skin for the drop indicator of a list-based control.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ListDropIndicator extends ProgrammaticSkin
 {
@@ -30,6 +35,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function ListDropIndicator()
 	{
@@ -49,6 +59,11 @@
 	/**
 	 *  Should the skin draw a horizontal line or vertical line.
 	 *  Default is horizontal.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var direction:String = "horizontal";


Transferred from the Adobe Open Source Subversion Repository

Revision: 19255
Author:   jasonsj@adobe.com
Date:     2010-12-10T01:09:55.925106Z

Log Message:
-----------
Missing invalidateSize and invalidateDisplay list when CheckBox or RadioButton label changes. Fixes regression from rev 19253.

QE notes:
Bugs:
SDK-28583 	textShadowAlpha should have a common global value, should only apply to ActionBar and Button
Reviewer: jszeto
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
@@ -13,13 +13,11 @@
 {

 import flash.display.DisplayObject;
-import flash.display.GradientType;
 import flash.display.Graphics;

 import mx.core.DeviceDensity;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
-import mx.utils.ColorUtil;

 import spark.components.supportClasses.StyleableTextField;
 import spark.skins.mobile.supportClasses.ButtonSkinBase;
@@ -189,9 +187,6 @@

             // add shadow before display
             addChildAt(labelDisplayShadow, getChildIndex(labelDisplay));
-
-            // update shadow when labelDisplay changes
-            labelDisplay.addEventListener(FlexEvent.VALUE_COMMIT, labelDisplay_valueCommitHandler);
         }
     }

@@ -313,11 +308,10 @@
     /**
      *  @private
      */
-    private function labelDisplay_valueCommitHandler(event:FlexEvent):void
-    {
+    override protected function labelDisplay_valueCommitHandler(event:FlexEvent):void
+    {
+        super.labelDisplay_valueCommitHandler(event);
         labelDisplayShadow.text = labelDisplay.text;
-        invalidateSize();
-        invalidateDisplayList();
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</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/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as
@@ -110,6 +110,12 @@
      *  added at the end of the argument list to preserve backward compatibility even though this signature differs from
      *  ChannelEvent's constructor.
      *
+     *  @param type The type of the event.
+     *
+     *  @param bubbles Indicates whether the event can bubble up the display list hierarchy.
+     *
+     *  @param cancelable Indicates whether the behavior associated with the event can be prevented.
+     *
      *  @param channel The Channel generating the event.
      *
      *  @param reconnecting Indicates whether the Channel is in the process of
@@ -236,4 +242,4 @@

 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -32,6 +32,8 @@
 import spark.layouts.supportClasses.LayoutBase;
 import mx.managers.IFocusManagerContainer;
 import mx.utils.BitFlagUtil;
+
+use namespace mx_internal;

 /**
  *  Dispatched after the content for this component has been created. With deferred
@@ -656,7 +658,7 @@
      */
     public function get numElements():int
     {
-        return mx_internal::currentContentGroup.numElements;
+        return currentContentGroup.numElements;
     }

     /**
@@ -669,7 +671,7 @@
      */
     public function getElementAt(index:int):IVisualElement
     {
-        return mx_internal::currentContentGroup.getElementAt(index);
+        return currentContentGroup.getElementAt(index);
     }

@@ -683,7 +685,7 @@
      */
     public function getElementIndex(element:IVisualElement):int
     {
-        return mx_internal::currentContentGroup.getElementIndex(element);
+        return currentContentGroup.getElementIndex(element);
     }

     /**
@@ -696,7 +698,7 @@
      */
     public function addElement(element:IVisualElement):IVisualElement
     {
-        return mx_internal::currentContentGroup.addElement(element);
+        return currentContentGroup.addElement(element);
     }

     /**
@@ -709,7 +711,7 @@
      */
     public function addElementAt(element:IVisualElement, index:int):IVisualElement
     {
-        return mx_internal::currentContentGroup.addElementAt(element, index);
+        return currentContentGroup.addElementAt(element, index);
     }

     /**
@@ -722,7 +724,7 @@
      */
     public function removeElement(element:IVisualElement):IVisualElement
     {
-        return mx_internal::currentContentGroup.removeElement(element);
+        return currentContentGroup.removeElement(element);
     }

     /**
@@ -735,7 +737,7 @@
      */
     public function removeElementAt(index:int):IVisualElement
     {
-        return mx_internal::currentContentGroup.removeElementAt(index);
+        return currentContentGroup.removeElementAt(index);
     }

     /**
@@ -748,7 +750,7 @@
      */
     public function removeAllElements():void
     {
-        mx_internal::currentContentGroup.removeAllElements();
+        currentContentGroup.removeAllElements();
     }

     /**
@@ -756,7 +758,7 @@
      */
     public function setElementIndex(element:IVisualElement, index:int):void
     {
-        mx_internal::currentContentGroup.setElementIndex(element, index);
+        currentContentGroup.setElementIndex(element, index);
     }

     /**
@@ -769,7 +771,7 @@
      */
     public function swapElements(element1:IVisualElement, element2:IVisualElement):void
     {
-        mx_internal::currentContentGroup.swapElements(element1, element2);
+        currentContentGroup.swapElements(element1, element2);
     }

     /**
@@ -782,7 +784,7 @@
      */
     public function swapElementsAt(index1:int, index2:int):void
     {
-        mx_internal::currentContentGroup.swapElementsAt(index1, index2);
+        currentContentGroup.swapElementsAt(index1, index2);
     }

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


remove dead/commented code

remove dead/commented code

--- src/aerys/minko/scene/node/Group.as
+++ src/aerys/minko/scene/node/Group.as
@@ -113,22 +113,6 @@
 				addChild(ISceneNode(children[childrenIndex]));
 		}

-//		override protected function addedHandler(child : ISceneNode, parent : Group) : void
-//		{
-//			super.addedHandler(child, parent);
-//
-//			for (var childIndex : int = 0; childIndex < _numChildren; ++childIndex)
-//				_children[childIndex].added.execute(child, parent);
-//		}
-//
-//		override protected function removedHandler(child : ISceneNode, parent : Group) : void
-//		{
-//			super.removedHandler(child, parent);
-//
-//			for (var childIndex : int = 0; childIndex < _numChildren; ++childIndex)
-//				_children[childIndex].removed.execute(child, parent);
-//		}
-
 		private function descendantAddedHandler(group : Group, child : ISceneNode) : void
 		{
 			if (group == this)


mispelling

mispelling

--- src/aerys/minko/scene/node/Scene.as
+++ src/aerys/minko/scene/node/Scene.as
@@ -66,7 +66,7 @@

 		public function belongsToLayer(leaf : ITaggable, layerName : String) : Boolean
 		{
-			var layer : uint = getLayerName(layerName);
+			var layer : uint = getLayerByName(layerName);

 			return (leaf.tag & layer) != 0;
 		}


changed BasicStyle string ids to be easier to parse

--- src/aerys/minko/render/effect/basic/BasicStyle.as
+++ src/aerys/minko/render/effect/basic/BasicStyle.as
@@ -4,13 +4,13 @@

 	public final class BasicStyle
 	{
-		public static const DIFFUSE_MAP			: int	= Style.getStyleId("basicDiffuseMap");
+		public static const DIFFUSE_MAP			: int	= Style.getStyleId("basic diffuse map");
+		public static const NORMAL_MAP			: int	= Style.getStyleId("basic normal map");

-		public static const BLENDING			: int	= Style.getStyleId("basicBlending");
+		public static const BLENDING			: int	= Style.getStyleId("basic blending");

-		public static const FRUSTUM_CULLING		: int	= Style.getStyleId("basicFrustumCulling");
-		public static const TRIANGLE_CULLING	: int	= Style.getStyleId("basicTriangleCulling");
-		public static const NORMAL_MULTIPLIER	: int	= Style.getStyleId("basicTriangleCullingMultiplier");
-
+		public static const FRUSTUM_CULLING		: int	= Style.getStyleId("basic frustum culling");
+		public static const TRIANGLE_CULLING	: int	= Style.getStyleId("basic triangle culling");
+		public static const NORMAL_MULTIPLIER	: int	= Style.getStyleId("basic normal multiplier");
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12074
Author:   gruehle@adobe.com
Date:     2009-11-21T01:02:03.186839Z

Log Message:
-----------
Change baseColor to chromeColor.

QE notes: Tests need to be updated.
Doc notes: ASDoc has been updated. Other docs need updating.
Bugs: SDK-24298
Reviewer: Ely
Tests run: checkintests, qe cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
112 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/Label.as
+++ frameworks/projects/mx/src/mx/controls/Label.as
@@ -158,7 +158,7 @@
 [Exclude(name="focusPane", kind="property")]
 [Exclude(name="mouseFocusEnabled", kind="property")]
 [Exclude(name="tabEnabled", kind="property")]
-[Exclude(name="baseColor", kind="style")]
+[Exclude(name="chromeColor", kind="style")]
 [Exclude(name="focusBlendMode", kind="style")]
 [Exclude(name="focusSkin", kind="style")]
 [Exclude(name="focusThickness", kind="style")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 807
Author:   mhorn@adobe.com
Date:     2008-03-13T20:42:31.384362Z

Log Message:
-----------
Many minor ASDoc updates.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Label.as
+++ frameworks/projects/mx/src/mx/controls/Label.as
@@ -1418,6 +1418,8 @@
      *
      *  @param lineIndex The zero-based index of the line for which to get the metrics.
      *  For the Label control, which has only a single line, must be 0.
+     *
+     *  @return The TextLineMetrics object that contains information about the text.
      *
      *  @see flash.text.TextField
      *  @see flash.text.TextLineMetrics


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -977,7 +977,7 @@
      *  of the border, expressed in pixels.
      *
      *
Unlike viewMetrics, this property is not
-     *  overriden by subclasses of Container.

+     *  overridden by subclasses of Container.

      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9206
Author:   dloverin@adobe.com
Date:     2009-08-10T18:39:33.826984Z

Log Message:
-----------
Merge 3.4 changes 9109, 8949.

Also fixed a bug in the generated code for IFlexModuleFactory.allowInsecureDomain() and cleanup up SystemManager by removing unused variables rslSizes and lastSystemManager.

QE notes: None.
Doc notes: None.
Bugs: SDK-16050, SDK-22556
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CompcPreLink.java</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/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/events/RSLEvent.as
+++ frameworks/projects/framework/src/mx/events/RSLEvent.as
@@ -12,6 +12,7 @@
 package mx.events
 {

+import flash.display.LoaderInfo;
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.net.URLRequest;
@@ -244,7 +245,17 @@
 	 */
 	public var isResourceModule:Boolean;

-	//----------------------------------
+    //----------------------------------
+    //  loaderInfo
+    //----------------------------------
+
+    /**
+     *  The loaderInfo associated with this event. This is only set in the
+     *  RSLEvent.RSL_COMPLETE event. Otherwise loaderInfo will be null.
+     */
+    public var loaderInfo:LoaderInfo;
+
+    //----------------------------------
 	//  rslIndex
 	//----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 10872
Author:   cframpto@adobe.com
Date:     2009-10-05T19:39:47.041984Z

Log Message:
-----------
Most changes already approved by PARB and a few are pending.  Given the two reviewers are at MAX and then there is a shutdown week we decided to take a chance that these changes will actually stick.

TLFText.css -> MXFTEText.css
TLFTextField -> FTETextField
UITLFTextField -> UIFTETextField
TLFDataGridItemRenderer -> FTEDataGridItemRenderer
TLFTextInput -> MXFTETextInput

UITextFormat.useTLF -> UITextFormat.useFTE

QE notes:
Doc notes:
Bugs: SDK-22909
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/MXFTETextInput.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/TLFTextInput.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/TLFTextField.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/TLFDataGridItemRenderer.as" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TextFieldFactory.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/TLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/TLFDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextFieldFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/TLFText.css" copyfrom-rev="10865" action="A">/flex/sdk/trunk/frameworks/projects/spark/MXFTEText.css</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/TLFText.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -23,7 +23,7 @@
 import flash.text.TextLineMetrics;
 import flashx.textLayout.compose.ITextLineCreator;
 import mx.automation.IAutomationObject;
-import mx.core.TLFTextField;
+import mx.core.FTETextField;
 import mx.managers.ISystemManager;
 import mx.managers.IToolTipManagerClient;
 import mx.managers.SystemManager;
@@ -66,7 +66,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class UITLFTextField extends TLFTextField
+public class UIFTETextField extends FTETextField
                             implements IAutomationObject, IIMESupport,
                             IFlexModule,
                             IInvalidating, ISimpleStyleClient,
@@ -261,7 +261,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function UITLFTextField()
+    public function UIFTETextField()
     {
         super();

@@ -1896,7 +1896,7 @@
         textFormat.sharpness = sharpness;
         textFormat.thickness = thickness;

-        textFormat.useTLF = true;
+        textFormat.useFTE = true;
         textFormat.direction = direction;
         textFormat.locale = locale;

@@ -2175,7 +2175,7 @@
 		// can affect both Halo and Spark components,
 		// we need to map "auto" and "on" to true
 		// and "off" to false for Halo components
-		// here and in TLFTextField.
+		// here and in FTETextField.
 		// For Spark components, Label and CSSTextLayoutFormat,
 		// do the opposite mapping of true to "on" and false to "off".
 		// We also support a value of "default"


Validator now handles nulls

Validator now handles nulls

--- src/ras3r/Validates.as
+++ src/ras3r/Validates.as
@@ -131,7 +131,7 @@
 			var options:Hash = new Hash({ message: "{attr} is invalid" }).update(extract_options(attr_names));
 			add_validator(object, attr_names, options, function (e:PropertyChangeEvent) :void
 			{
-				dispatch_result_event_for(e, object, Boolean(e.newValue.match(options.using) != null), options.message);
+				dispatch_result_event_for(e, object, Boolean(e.newValue != null && e.newValue.match(options.using) != null), options.message);
 			});
 		}


Flash: Remove the poster image once we've opened our canvas

--- src/ogv.as
+++ src/ogv.as
@@ -164,6 +164,12 @@
                 bitmap.y = -videoInfo.picY;
                 resizeForStage();
                 addChild(bitmap);
+
+                // Don't need this anymore...
+                if (posterLoader) {
+                    removeChild(posterLoader);
+                    posterLoader = null;
+                }
             };
             codec.onloadedmetadata = function():void {
                 jsCallback('onloadedmetadata');
@@ -330,26 +336,28 @@
         }

         private function loadPoster():void {
-            if (posterLoader) {
-                removeChild(posterLoader);
-                posterLoader = null;
-            }
-            if (poster == "" || poster == null) {
-                // no poster for you
-            } else {
-                var urlRequest:URLRequest = new URLRequest(poster);
-
-                posterLoader = new Loader();
-                posterLoader.x = 0;
-                posterLoader.y = 0;
-                posterLoader.width = stage.stageWidth;
-                posterLoader.height = stage.stageHeight;
-                posterLoader.load(urlRequest);
-                addChild(posterLoader);
-
-                posterLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function():void {
-                    resizeForStage();
-                });
+            if (bitmap == null) {
+                if (posterLoader) {
+                    removeChild(posterLoader);
+                    posterLoader = null;
+                }
+                if (poster == "" || poster == null) {
+                    // no poster for you
+                } else {
+                    var urlRequest:URLRequest = new URLRequest(poster);
+
+                    posterLoader = new Loader();
+                    posterLoader.x = 0;
+                    posterLoader.y = 0;
+                    posterLoader.width = stage.stageWidth;
+                    posterLoader.height = stage.stageHeight;
+                    posterLoader.load(urlRequest);
+                    addChild(posterLoader);
+
+                    posterLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function():void {
+                        resizeForStage();
+                    });
+                }
             }
         }


operator function referencing is now done with backslash.

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -55,14 +55,9 @@

 		/**
 		 * This is the prefix used for the function notation of infix operators.
-		 * For example, the function notation for ( x + y ) is ( (+)(x,y) ).
+		 * For example, the function notation for ( x + y ) is ( \+(x,y) ).
 		 */
-		public static const OPERATOR_PREFIX:String = '(';
-		/**
-		 * This is the suffix used for the function notation of infix operators.
-		 * For example, the function notation for ( x + y ) is ( (+)(x,y) ).
-		 */
-		public static const OPERATOR_SUFFIX:String = ')';
+		public static const OPERATOR_ESCAPE:String = '\\';

 		/**
 		 * This is a String containing all the characters that are treated as whitespace.
@@ -364,7 +359,7 @@
 			// create a corresponding function name for each operator
 			for (var op:String in operators)
 				if (operators[op] is Function)
-					constants[OPERATOR_PREFIX + op + OPERATOR_SUFFIX] = operators[op];
+					constants[OPERATOR_ESCAPE + op] = operators[op];
 		}

 		/**
@@ -512,6 +507,17 @@
 				}
 			}

+			// next step: compile escaped operators
+			for (i = 0; i < tokens.length - 1; i++)
+			{
+				token = tokens[i];
+				if (token == OPERATOR_ESCAPE && operators[tokens[i + 1]] is Function)
+				{
+					token = tokens[i + 1];
+					tokens.splice(i, 2, new CompiledConstant(OPERATOR_ESCAPE + token, operators[token]));
+				}
+			}
+
 			// next step: handle operators "..[]{}()"
 			compileBracketsAndProperties(tokens);

@@ -595,7 +601,7 @@
 				if (enableOptimizations && condition is CompiledConstant)
 					result = (condition as CompiledConstant).value ? trueBranch : falseBranch;
 				else
-					result = compileFunctionCall(new CompiledConstant(OPERATOR_PREFIX + '?:' + OPERATOR_SUFFIX, operators['?:']), [condition, trueBranch, falseBranch]);
+					result = compileFunctionCall(new CompiledConstant(OPERATOR_ESCAPE + '?:', operators['?:']), [condition, trueBranch, falseBranch]);

 				tokens.splice(left - 1, end - left + 1, result);
 			}
@@ -626,9 +632,9 @@
 					continue;
 				}

-				// verify that lhs.compiledMethod.name is '(.)'
+				// verify that lhs.compiledMethod.name is \.
 				var lhsMethod:CompiledConstant = lhs.compiledMethod as CompiledConstant;
-				if (lhsMethod && lhsMethod.name == OPERATOR_PREFIX + '.' + OPERATOR_SUFFIX)
+				if (lhsMethod && lhsMethod.name == OPERATOR_ESCAPE + '.')
 				{
 					// switch to the assignment operator
 					lhs.compiledParams.push(tokens[i + 1]);
@@ -861,13 +867,6 @@
 				{
 					var propertyToken:String = tokens[open + 1] as String;

-					// special case for lone operator
-					if (open > 0 && token == OPERATOR_PREFIX && propertyToken == OPERATOR_SUFFIX)
-					{
-						tokens.splice(open - 1, 3, new CompiledConstant(OPERATOR_PREFIX + tokens[open] + OPERATOR_SUFFIX, operators[tokens[open]]));
-						continue;
-					}
-
 					if (!token || !propertyToken || operators.hasOwnProperty(propertyToken))
 						break; // error

@@ -881,11 +880,7 @@
 				var subArray:Array = tokens.splice(open + 1, close - open - 1);
 				if (debug)
 					trace("compiling tokens", leftBracket, subArray.join(' '), rightBracket);
-				// allow getting a pointer to an operator's function by surrounding it in parentheses
-				if (leftBracket == OPERATOR_PREFIX && !compiledToken && subArray.length == 1 && subArray[0] is String && operators[subArray[0]] is Function)
-					compiledParams = [new CompiledConstant(OPERATOR_PREFIX + subArray[0] + OPERATOR_SUFFIX, operators[subArray[0]])];
-				else
-					compiledParams = compileArray(subArray, leftBracket == '{' ? ';' : ',');
+				compiledParams = compileArray(subArray, leftBracket == '{' ? ';' : ',');

 				if (leftBracket == '[') // this is either an array or a property access
 				{
@@ -987,7 +982,7 @@
 			if (!enableOptimizations
 				|| !constantMethod
 				|| operators[constantMethod.name] == undefined
-				|| constantMethod.name == OPERATOR_PREFIX + '[' + OPERATOR_SUFFIX
+				|| constantMethod.name == OPERATOR_ESCAPE + '['
 				|| assignmentOperators[constantMethod.value] != undefined)
 			{
 				return compiledFunctionCall;
@@ -1101,7 +1096,7 @@
 			if (operatorName == '#')
 				return new CompiledFunctionCall(compiledParams[0], null);
 			*/
-			operatorName = OPERATOR_PREFIX + operatorName + OPERATOR_SUFFIX;
+			operatorName = OPERATOR_ESCAPE + operatorName;
 			return compileFunctionCall(new CompiledConstant(operatorName, constants[operatorName]), compiledParams);
 		}

@@ -1140,10 +1135,9 @@
 				params[i] = decompileObject(call.compiledParams[i]);

 			// replace infix operator function calls with the preferred infix syntax
-			if (name.indexOf(OPERATOR_PREFIX) == 0 || name == '{,}')
-			{
-				var op:String = name.substr(OPERATOR_PREFIX.length);
-				op = op.substr(0, -OPERATOR_SUFFIX.length);
+			if (name.indexOf(OPERATOR_ESCAPE) == 0)
+			{
+				var op:String = name.substr(OPERATOR_ESCAPE.length);
 				if (op == '.' && params.length >= 2)
 				{
 					var result:String = params[0];
@@ -1170,7 +1164,7 @@
 					return '[' + params.join(', ') + ']'
 				if (op == ';')
 					return '{' + params.join('; ') + '}';
-				if (op == ',')
+				if (op == ',' && params.length > 0)
 					return '(' + params.join(', ') + ')';

 				if (call.compiledParams.length == 1) // unary op
@@ -1223,9 +1217,9 @@
 			const TRUE_INDEX:int = 1;
 			const FALSE_INDEX:int = 2;
 			const BRANCH_LOOKUP:Dictionary = new Dictionary();
-			BRANCH_LOOKUP[constants[OPERATOR_PREFIX + '?:' + OPERATOR_SUFFIX]] = true;
-			BRANCH_LOOKUP[constants[OPERATOR_PREFIX + '&&' + OPERATOR_SUFFIX]] = true;
-			BRANCH_LOOKUP[constants[OPERATOR_PREFIX + '||' + OPERATOR_SUFFIX]] = false;
+			BRANCH_LOOKUP[constants[OPERATOR_ESCAPE + '?:']] = true;
+			BRANCH_LOOKUP[constants[OPERATOR_ESCAPE + '&&']] = true;
+			BRANCH_LOOKUP[constants[OPERATOR_ESCAPE + '||']] = false;
 			const ASSIGN_OP_LOOKUP:Object = new Dictionary();
 			for each (var assigOp:Function in assignmentOperators)
 				ASSIGN_OP_LOOKUP[assigOp] = true;


now registering class alias for DynamicState

Change-Id: Ia4513710b69122001372df9ae3a7363fb6b9699f

--- WeaveCore/src/weave/core/DynamicState.as
+++ WeaveCore/src/weave/core/DynamicState.as
@@ -19,13 +19,20 @@

 package weave.core
 {
+	import flash.net.registerClassAlias;
+	import flash.utils.getQualifiedClassName;
+
 	/**
 	 * This contains a session state object plus some metadata: objectName and className.
 	 *
 	 * @author adufilie
 	 */
 	public class DynamicState
-	{
+	{
+		{ /** begin static code block **/
+			registerClassAlias(getQualifiedClassName(DynamicState), DynamicState);
+		} /** end static code block **/
+
 		public function DynamicState(objectName:String = null, className:String = null, sessionState:Object = null)
 		{
 			this.objectName = objectName;


bug fix in VectorUtils.getItems() with no keys

--- WeaveData/src/weave/utils/VectorUtils.as
+++ WeaveData/src/weave/utils/VectorUtils.as
@@ -491,7 +491,7 @@
 			else
 			{
 				keyIndex = 0;
-				for each (keyValue in keys)
+				for each (keyValue in object)
 				{
 					if (object is XML_Class)
 						item = String((object as XML_Class).attribute(keyValue));


remove the stub grayscale on flash

remove the stub grayscale on flash

--- src/ogv.as
+++ src/ogv.as
@@ -558,7 +558,6 @@

             // colorspace conversion
             start = getTimestamp();
-            //convertYCbCr(yCbCrBuffer, pixelBuffer);
             YCbCr.convertYCbCr(yCbCrBuffer, pixelBuffer);
             delta = getTimestamp() - start;
             colorTime += delta;
@@ -585,32 +584,7 @@
             lastFrameDecodeTime = 0;
             lastFrameTimestamp = newFrameTimestamp;
         }
-
-        private function convertYCbCr(yCbCrBuffer:Object, pixelBuffer:ByteArray):void {
-            // @todo port the actual code over
-            // @todo change to copy directly out of the heap
-            var w:int = videoInfo.frameWidth,
-                h:int = videoInfo.frameHeight,
-                strideY:int = yCbCrBuffer.strideY;
-            var bytesY:ByteArray = yCbCrBuffer.bytesY;
-            pixelBuffer.position = 0;
-            var colorY:int;
-            var x:int, y:int;
-            var yPtr:int;
-            var outPtr:int = 0;
-            for (y = 0; y < h; y++) {
-                yPtr = y * strideY;
-                for (x = 0; x < w; x++) {
-                    colorY = bytesY[yPtr++];
-                    // ARGB big-endian
-                    pixelBuffer.writeInt(0xff000000 |
-                                         colorY << 16 |
-                                         colorY << 8 |
-                                         colorY);
-                }
-            }
-        }
-
+
         // Audio output functions...
         private function getPlaybackState():Object {
             return {


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

--- frameworks/projects/mx/src/mx/controls/VSlider.as
+++ frameworks/projects/mx/src/mx/controls/VSlider.as
@@ -0,0 +1,127 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls
+{
+
+import mx.controls.sliderClasses.Slider;
+import mx.controls.sliderClasses.SliderDirection;
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  The location of the data tip relative to the thumb.
+ *  Possible values are "left", "right",
+ *  "top", and "bottom".
+ *
+ *  @default "left"
+ */
+[Style(name="dataTipPlacement", type="String", enumeration="left, top, right, bottom", inherit="no")]
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="direction", kind="property")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[DefaultBindingProperty(source="value", destination="labels")]
+
+[DefaultTriggerEvent("change")]
+
+[IconFile("VSlider.png")]
+
+/**
+ *  The VSlider control lets users select a value by moving
+ *  a slider thumb between the end points of the slider track.
+ *  The current value of the slider is determined by the relative
+ *  location of the thumb between the end points of the slider,
+ *  corresponding to the slider's minimum and maximum values.
+ *
+ *
The slider may allow a continuous range of values between its
+ *  minimum and maximum values, or it may be restricted to values
+ *  at concrete intervals between the minimum and maximum value.
+ *  It may show tick marks at specified intervals along the track. These
+ *  tick marks are independent of the allowed values of the slider. It
+ *  may also use a data tip to display its current value.

+ *
+ *
The VSlider has a vertical orientation.
+ *  The slider track stretches from bottom to top, and the labels
+ *  and tick marks are placed to the left or right of the track.

+ *
+ *
The VSlider control has the following default characteristics:

+ *

+ *

+ *           Characteristic
+ *           Description
+ *

+ *

+ *           Default size
+ *           250 pixels high, wide enough to hold the slider and any associated labels
+ *

+ *

+ *           Minimum size
+ *           None
+ *

+ *

+ *           Maximum size
+ *           None
+ *

+ *

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

+ *
+ *

+ *  <mx:VSlider
+ *    Styles
+ *    dataTipPlacement="top"
+ *  />
+ *

+ *

+ *
+ *  @includeExample examples/SimpleImageVSlider.mxml
+ *
+ *  @see mx.controls.HSlider
+ *  @see mx.controls.sliderClasses.Slider
+ *  @see mx.controls.sliderClasses.SliderThumb
+ *  @see mx.controls.sliderClasses.SliderDataTip
+ *  @see mx.controls.sliderClasses.SliderLabel
+ */
+public class VSlider extends Slider
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function VSlider()
+	{
+		super();
+
+		direction = SliderDirection.VERTICAL;
+	}
+}
+
+}


THRIFT-4784 Thrift should throw when skipping over unexpected data Client: as3 Patch: Jens Geyer

--- lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
+++ lib/as3/src/org/apache/thrift/protocol/TProtocolUtil.as
@@ -141,7 +141,7 @@
           break;
         }
         default:
-          break;
+          throw new TProtocolError(TProtocolError.INVALID_DATA, "invalid data");
       }
     }
   }


fixed incorrect reference

fixed incorrect reference

--- WeaveJS/src/weavejs/util/DateUtils.as
+++ WeaveJS/src/weavejs/util/DateUtils.as
@@ -48,9 +48,10 @@
 				for (var fmtIdx:int in validFormatsSparse);
 				{
 					fmt = validFormatsSparse[fmtIdx];
-					if (!fmt) continue;
+					if (!fmt)
+						continue;

-					var moment:* = new JS.moment(date, fmt, true);
+					var moment:* = new moment(date, fmt, true);

 					if (!moment.isValid())
 					{