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

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


FLEX-33920: It now checks the upper bounds before calling dataProvider.getItemAt()

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -883,7 +883,7 @@
     {
         super.changeHighlightedSelection(newIndex, scrollToTop);

-        if (newIndex >= 0)
+        if (newIndex >= 0 && newIndex < dataProvider.length)
         {
             var item:Object = dataProvider ? dataProvider.getItemAt(newIndex) : undefined;
             if (item && textInput)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -285,33 +285,6 @@
         }
     }

-    /**
-     *  Boolean to let us know if we need to add system handlers or not.
-     *  We can't do this early on because systemManager may be null
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    private var systemListenersNeeded:Boolean = true;
-
-    /**
-     *  @private
-     *
-     *  Need to add system handlers in commitProperties() because at
-     *  createChildren() time, systemManager may be null (it's null
-     *  when it's parent (or grandparent) isn't added to the display list yet).
-     */
-    override protected function commitProperties():void
-    {
-        if (systemListenersNeeded)
-        {
-            addSystemHandlers(MouseEvent.MOUSE_WHEEL, mouseWheelHandler, mouseWheelHandler);
-            systemListenersNeeded = false;
-        }
-    }
-
     //----------------------------------
     //  verticalScrollPolicy
     //----------------------------------
@@ -727,6 +700,7 @@
         super.attachSkin();
         skin.layout = new ScrollerLayout();
         installViewport();
+        skin.addEventListener(MouseEvent.MOUSE_WHEEL, skin_mouseWheelHandler);
     }

     /**
@@ -736,6 +710,7 @@
     {
         uninstallViewport();
         skin.layout = null;
+        skin.removeEventListener(MouseEvent.MOUSE_WHEEL, skin_mouseWheelHandler);
         super.detachSkin();
     }

@@ -861,7 +836,7 @@
     private static var textViewClassLoaded:Boolean = false;
     private static var textViewClass:Class = null;

-    private function mouseWheelHandler(event:MouseEvent):void
+    private function skin_mouseWheelHandler(event:MouseEvent):void
     {
         var vp:IViewport = viewport;
         if (!vp || event.isDefaultPrevented())
@@ -871,7 +846,7 @@
         // handling mouse wheel events.  For now, we'll make the same
         // assumption about RichEditableText.

-        var focusOwner:InteractiveObject = getFocus();
+        /*var focusOwner:InteractiveObject = getFocus();
         if ((focusOwner is TextField) && TextField(focusOwner).mouseWheelEnabled)
             return;

@@ -883,7 +858,7 @@
                 textViewClass = Class(ApplicationDomain.currentDomain.getDefinition(s));
         }
         if (textViewClass && (focusOwner is textViewClass))
-            return;
+            return;*/

         var nSteps:uint = Math.abs(event.delta);
         var scrollUnit:uint;


Made it properly detect negative values on axis, ugh

--- com/zehfernando/input/binding/KeyActionBinder.as
+++ com/zehfernando/input/binding/KeyActionBinder.as
@@ -439,9 +439,10 @@
 	// PUBLIC INTERFACE -----------------------------------------------------------------------------------------------

 	public function get value():Number {
-		val = 0;
+		val = NaN;
 		for (iis in sensitiveValues) {
-			if (sensitiveValues[iis] > val) val = sensitiveValues[iis];
+			// NOTE: this will be a problem if two axis control the same action, since +1 is not necessarily better than -1
+			if (isNaN(val) || sensitiveValues[iis] > val) val = sensitiveValues[iis];
 		}
 		return val;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12880
Author:   egeorgie@adobe.com
Date:     2009-12-12T08:41:36.761960Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-23833 DragDrop of multiple items to Spark List is much slower than to Halo List

Problems:
1. The selection in the drag initiator was not getting properly cleared and it was causing n^2 operations for drag-moving n items.
2. The selection in the drop target was not getting properly cleared before the dropped elements were inserted, which resulted in n*m operations for inserting n items with m already selected items.
3. The LinearLayoutVector in the drop target was shifting cached sizes for each element inserted, resulting in m*n operations for dropping n items in front of m items.

Note #3 is not a drag-and-drop specific problem, but a problem for insert/delete in all virtual layout cases (vertical/horizontal).

Fixes:
1. & 2. - properly clear the selection before the remove/insert operations, as the selection is going to be updated after the operations anyway.
3. Modify the LinearLayoutVector to store insert/remove requests as pending intervals. The pending intervals get flushed before any size updates/reads are executed.

QE notes: None
Doc notes: None
Bugs: SDK-23833
Reviewer: Hans
Tests run: checkintests, mustella tests/gumbo/, tests/DragManager
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.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/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -1352,6 +1352,7 @@
         // Clear the selection, but remember which items were moved
         var movedIndices:Vector.<int> = selectedIndices;
         selectedIndices = new Vector.<int>();
+        validateProperties(); // To commit the selection

         // Remove the moved items
         movedIndices.sort(compareValues);
@@ -1895,6 +1896,12 @@
         if (dragSource.hasFormat("orderedItemsCaretIndex"))
             caretIndex = event.dragSource.dataForFormat("orderedItemsCaretIndex") as int;

+        // Clear the selection first to avoid extra work while adding and removing items.
+        // We will set a new selection further below in the method.
+        var indices:Vector.<int> = selectedIndices;
+        selectedIndices = new Vector.<int>();
+        validateProperties(); // To commit the selection
+
         // If we are reordering the list, remove the items now,
         // adjusting the dropIndex in the mean time.
         // If the items are drag moved to this list from a different list,
@@ -1904,10 +1911,8 @@
             event.action == DragManager.MOVE &&
             event.dragInitiator == this)
         {
-            var indices:Vector.<int> = selectedIndices;
+            // Remove the previously selected items
             indices.sort(compareValues);
-
-            // Remove the previously selected items
             for (var i:int = indices.length - 1; i >= 0; i--)
             {
                 if (indices[i] < dropIndex)


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

--- frameworks/projects/charts/src/mx/charts/events/LegendMouseEvent.as
+++ frameworks/projects/charts/src/mx/charts/events/LegendMouseEvent.as
@@ -0,0 +1,231 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.charts.events
+{
+
+import flash.events.Event;
+import flash.events.MouseEvent;
+import mx.charts.LegendItem;
+import flash.display.InteractiveObject;
+
+/**
+ *   The LegendMouseEvent class represents event objects that are specific to the chart legend components.
+ *   such as when a legend item is clicked on.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class LegendMouseEvent extends MouseEvent
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Event type constant; indicates that the user clicked the mouse button
+	 *  over a legend item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const ITEM_MOUSE_DOWN:String = "itemMouseDown";
+
+	/**
+	 *  Event type constant; indicates that the user released the mouse button
+	 *  while over  a legend item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const ITEM_MOUSE_UP:String = "itemMouseUp";
+
+	/**
+	 *  Event type constant; indicates that the user rolled the mouse pointer
+	 *  away from a legend item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const ITEM_MOUSE_OUT:String = "itemMouseOut";
+
+	/**
+	 *  Event type constant; indicates that the user rolled the mouse pointer
+	 *  over  a legend item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const ITEM_MOUSE_OVER:String = "itemMouseOver";
+
+	/**
+	 *  Event type constant; indicates that the user clicked the mouse button
+	 *  over a legend item.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public static const ITEM_CLICK:String = "itemClick";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static function convertType(baseType:String):String
+	{
+		switch (baseType)
+		{
+			case MouseEvent.CLICK:
+			{
+				return ITEM_CLICK;
+			}
+
+			case MouseEvent.MOUSE_DOWN:
+			{
+				return ITEM_MOUSE_DOWN;
+			}
+
+			case MouseEvent.MOUSE_UP:
+			{
+				return ITEM_MOUSE_UP;
+			}
+
+			case MouseEvent.MOUSE_OVER:
+			{
+				return ITEM_MOUSE_OVER;
+			}
+
+			case MouseEvent.MOUSE_OUT:
+			{
+				return ITEM_MOUSE_OUT;
+			}
+		}
+
+		return baseType;
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *	@param type The type of Mouse event. If a mouse event type is given it
+	 *  would be converted into a LegendMouseEvent type.
+	 *
+	 *  @param triggerEvent The MouseEvent that triggered this LegentMouseEvent.
+	 *
+	 *  @param item The item in the Legend on which this event was triggered.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function LegendMouseEvent(type:String, triggerEvent:MouseEvent=null,
+												item:LegendItem=null)
+	{
+		var eventType:String = convertType(type);
+		var bubbles:Boolean = true;
+		var cancelable:Boolean = false;
+		var localX:int = 0;
+		var localY:int = 0;
+		var relatedObject:InteractiveObject = null;
+		var ctrlKey:Boolean = false;
+		var shiftKey:Boolean = false;
+		var altKey:Boolean = false;
+		var buttonDown:Boolean = false;
+		var delta:int = 0;
+
+		if (triggerEvent)
+		{
+        	bubbles = triggerEvent.bubbles;
+			cancelable = triggerEvent.cancelable;
+			localX = triggerEvent.localX;
+			localY = triggerEvent.localY;
+			relatedObject = triggerEvent.relatedObject;
+			ctrlKey = triggerEvent.ctrlKey;
+			altKey = triggerEvent.altKey;
+			shiftKey = triggerEvent.shiftKey;
+			buttonDown = triggerEvent.buttonDown;
+			delta = triggerEvent.delta;
+		}
+
+		super(eventType, bubbles, cancelable,
+				localX, localY, relatedObject,
+				ctrlKey, altKey, shiftKey,
+				buttonDown, delta);
+
+		this.item = item;
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+	//  item
+    //----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The item in the Legend on which this event was triggered.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public var item:LegendItem;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: event
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *	@private
+	 */
+	override public function clone():Event
+	{
+		return new LegendMouseEvent(type, this, item);
+	}
+}
+
+}


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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -54,6 +54,11 @@
          *
          *  @param systemManager The system manager that this class is a proxy for.
          *  This is the system manager in the same application domain as the popup.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.1
+         *  @productversion Flex 3
          */
         public function SystemManagerProxy(systemManager:ISystemManager)
         {
@@ -81,6 +86,11 @@
     //----------------------------------
     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function get screen():Rectangle
     {
@@ -97,6 +107,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function get document():Object
     {
@@ -124,6 +139,11 @@
      *  The SystemManager that is being proxied.
      *  This is the SystemManager of the application that created this proxy
      *  and the pop up window that is a child of this proxy.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         public function get systemManager():ISystemManager
         {
@@ -138,6 +158,11 @@

         /**
          *  @inheritDoc
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.1
+         *  @productversion Flex 3
          */
         override public function getDefinitionByName(name:String):Object
         {
@@ -146,6 +171,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         override public function create(... params):Object
         {
@@ -157,6 +187,11 @@
      *
      *  @param bridge The bridge used to talk to the parent.
      *  @param owner The display object that owns the bridge.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function addChildBridge(bridge:IEventDispatcher, owner:DisplayObject):void
     {
@@ -165,6 +200,11 @@

     /**
      *  Remove a child bridge.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function removeChildBridge(bridge:IEventDispatcher):void
     {
@@ -173,6 +213,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         override public function useSWFBridge():Boolean
         {
@@ -181,6 +226,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false,
                                             priority:int=0, useWeakReference:Boolean=false):void
@@ -191,6 +241,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
     {
@@ -200,6 +255,11 @@

         /**
          *  @inheritDoc
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.1
+         *  @productversion Flex 3
          */
         override public function activate(f:IFocusManagerContainer):void
         {
@@ -230,6 +290,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         override public function deactivate(f:IFocusManagerContainer):void
         {
@@ -262,6 +327,11 @@
      *  @inheritdoc
      *
      *  proxy to real system manager.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle
     {
@@ -288,6 +358,11 @@
      *  popup window parented by this proxy.
      *
      *  @param f The top-level window whose FocusManager should be activated.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         public function activateByProxy(f:IFocusManagerContainer):void
         {
@@ -299,6 +374,11 @@
      *  parented by this proxy.
      *
      *  @param f The top-level window whose FocusManager should be deactivated.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
         public function deactivateByProxy(f:IFocusManagerContainer):void
         {


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

--- frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
@@ -210,7 +210,7 @@
             // only if it's not set already, then it only works the
             // first time through, since an Effect will retain its
             // MotionPaty, which retains its KeyFrames, etc.
-            kf.mx_internal::timeFraction = kf.time / duration;
+            kf.timeFraction = kf.time / duration;
         }
     }


Fix typo.

Fix typo.

--- src/aerys/minko/scene/node/AbstractSceneNode.as
+++ src/aerys/minko/scene/node/AbstractSceneNode.as
@@ -279,7 +279,7 @@

 		public function clone(cloneControllers : Boolean = false) : ISceneNode
 		{
-			throw new Error('The method AbstractSceneNod.clone() must be overriden.');
+			throw new Error('The method AbstractSceneNode.clone() must be overriden.');
 		}

 		protected function copyControllersFrom(source 			: ISceneNode,


Group.iniitliaze is now private

Group.iniitliaze is now private

--- src/aerys/minko/scene/node/Group.as
+++ src/aerys/minko/scene/node/Group.as
@@ -64,7 +64,7 @@
 			initializeChildren(children);
 		}

-		protected function initialize() : void
+		private function initialize() : void
 		{
 			_children = new <ISceneNode>[];

@@ -236,24 +236,6 @@
 			return descendants;
 		}

-		public function getControllersByType(type			: Class,
-											 controllers	: Vector.<AbstractController> = null) : Vector.<AbstractController>
-		{
-			controllers ||= new Vector.<AbstractController>();
-
-			var nbControllers : uint = numControllers;
-
-			for (var i : int = 0; i < nbControllers; ++i)
-			{
-				var ctrl 	: AbstractController	= getController(i);
-
-				if (ctrl is type)
-					controllers.push(ctrl);
-			}
-
-			return controllers;
-		}
-
 		public function toString() : String
 		{
 			return "[" + getQualifiedClassName(this) + " " + name + "]";


Added support for ".." descendants operator

Change-Id: I1250107c760ff43f9c2b0803f40e64d9e609e8f6

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -21,7 +21,9 @@
 {
 	import flash.system.ApplicationDomain;
 	import flash.utils.Dictionary;
+	import flash.utils.Proxy;
 	import flash.utils.describeType;
+	import flash.utils.flash_proxy;
 	import flash.utils.getDefinitionByName;
 	import flash.utils.getQualifiedClassName;

@@ -241,7 +243,7 @@

 			/** operators **/
 			// first, make sure all special characters are defined as operators whether or not they have functions associated with them
-			var specialChars:String = "~!#%^&*()-+=[{]}\\;:'\",<.>/?";
+			var specialChars:String = "`~!#%^&*()-+=[{]}\\|;:'\",<.>/?";
 			for (var i:int = 0; i < specialChars.length; i++)
 				operators[specialChars.charAt(i)] = true;
 			// now define the functions
@@ -250,6 +252,13 @@
 				for (var i:int = 0; i < chain.length; i++)
 					object = object[chain[i]];
 				return object;
+			};
+			operators[".."] = function(object:*, propertyName:*):* {
+				if (object is XML)
+					return (object as XML).descendants(propertyName);
+				if (object is XMLList)
+					return (object as XMLList).descendants(propertyName);
+				return object.flash_proxy::getDescendants(propertyName);
 			};
 			// array creation
 			operators["[]"] = function(...args):* { return args; };
@@ -771,16 +780,16 @@
 			{
 				// find first closing bracket or '.'
 				for (close = 0; close < tokens.length; close++)
-					if ('.])}'.indexOf(tokens[close]) >= 0)
+					if ('..])}'.indexOf(tokens[close]) >= 0)
 						break;
 				if (close == tokens.length || close == 0)
-					break; // possible error
+					break; // possible error, or no operator found
 				// work backwards to the preceeding opening bracket or stop if '.'
 				for (open = close; open >= 0; open--)
-					if ('.[({'.indexOf(tokens[open]) >= 0)
+					if ('..[({'.indexOf(tokens[open]) >= 0)
 						break;
 				if (open < 0 || open + 1 == tokens.length)
-					break; // possible error
+					break; // possible error, or no operator found

 				// unless it's an operator, compile the token to the left
 				token = open > 0 ? tokens[open - 1] : null;
@@ -794,8 +803,8 @@
 						compiledToken = compileVariable(token as String);
 				}

-				// handle access operator
-				if (tokens[open] == '.')
+				// handle access and descendants operators
+				if (tokens[open] == '.' || tokens[open] == '..')
 				{
 					var propertyToken:String = tokens[open + 1] as String;
 					if (!token || !propertyToken || operators.hasOwnProperty(propertyToken))
@@ -803,7 +812,7 @@

 					// the token on the right is a variable name, but we will store it as a String because it's a property lookup
 					compiledParams = [compiledToken, new CompiledConstant(encodeString(propertyToken), propertyToken)];
-					tokens.splice(open - 1, 3, compileOperator('.', compiledParams));
+					tokens.splice(open - 1, 3, compileOperator(tokens[open], compiledParams));
 					continue;
 				}


BufferThresholdController: remove conservative factor as the algorithm is already really conservative... minBufferLength is the time to process a complete segment (of duration EXT-X-TARGETDURATION), using current processing rate

--- src/org/mangui/hls/controller/BufferThresholdController.as
+++ src/org/mangui/hls/controller/BufferThresholdController.as
@@ -16,10 +16,6 @@
     public class BufferThresholdController {
         /** Reference to the HLS controller. **/
         private var _hls : HLS;
-        // max nb of samples used for bw checking. the bigger it is, the more conservative it is.
-        private static const MAX_SAMPLES : int = 30;
-        private var _bw : Vector.<Number>;
-        private var _nbSamples : uint;
         private var _targetduration : Number;
         private var _minBufferLength : Number;

@@ -55,9 +51,7 @@
         }

         private function _manifestLoadedHandler(event : HLSEvent) : void {
-            _nbSamples = 0;
             _targetduration = event.levels[_hls.startLevel].targetduration;
-            _bw = new Vector.<Number>(MAX_SAMPLES,true);
             _minBufferLength = _targetduration;
         };

@@ -65,30 +59,8 @@
             var metrics : HLSLoadMetrics = event.loadMetrics;
             // only monitor main fragment metrics for buffer threshold computing
             if(metrics.type == HLSLoaderTypes.FRAGMENT_MAIN) {
-                var cur_bw : int = metrics.bandwidth;
-                _bw[_nbSamples % MAX_SAMPLES] = cur_bw;
-                _nbSamples++;
-
-                // compute min bw on MAX_SAMPLES
-                var minBw : Number = Number.POSITIVE_INFINITY;
-                var samples_max : int = Math.min(_nbSamples, MAX_SAMPLES);
-                for (var i : int = 0; i < samples_max; i++) {
-                    minBw = Math.min(minBw, _bw[i]);
-                }
-
-                // give more weight to current bandwidth
-                var bw_ratio : Number = 2 * cur_bw / (minBw + cur_bw);
-
-                /* predict time to dl next segment using a conservative approach.
-                 *
-                 * heuristic is as follow :
-                 *
-                 * time to dl next segment = time to dl current segment *  (playlist target duration / current segment duration) * bw_ratio
-                 *                           \---------------------------------------------------------------------------------/
-                 *                                  this part is a simple rule by 3, assuming we keep same dl bandwidth
-                 *  bw ratio is the conservative factor, assuming that next segment will be downloaded with min bandwidth
-                 */
-                _minBufferLength = metrics.processing_duration * (_targetduration / metrics.duration) * bw_ratio;
+                /* set min buf len to be the time to process a complete segment, using current processing rate */
+                _minBufferLength = metrics.processing_duration * (_targetduration / metrics.duration);
                 // avoid min > max
                 if (HLSSettings.maxBufferLength) {
                     _minBufferLength = Math.min(HLSSettings.maxBufferLength, _minBufferLength);


replaced old 'defaults=' with new 'file=' url syntax

Change-Id: If9e3bc31ccb2c638c7f97b536799b7163f4a816d

--- WeaveAdmin/src/weave/services/AdminInterface.as
+++ WeaveAdmin/src/weave/services/AdminInterface.as
@@ -597,7 +597,7 @@
 		{
 			var connectionName:String = createWeaveService();
 			ExternalInterface.call(
-					'function(){ window.open("weave.html?defaults='+fileName+'&connectionName='+connectionName+'","_blank","width=800,height=600,location=0,toolbar=0,menubar=0,resizable=1") }'
+					'function(){ window.open("weave.html?file='+fileName+'&connectionName='+connectionName+'","_blank","width=800,height=600,location=0,toolbar=0,menubar=0,resizable=1") }'
 				);
 		}


Fixed bug in base url code.

Fixed bug in base url code.

Change-Id: I9d1689d189777def0958c2858344c4556e13e6a0

--- WeaveData/src/weave/services/URLRequestUtils.as
+++ WeaveData/src/weave/services/URLRequestUtils.as
@@ -73,7 +73,7 @@
 			// remove '?' and everything after
 			baseURL = baseURL.split('?')[0];
 			// remove last '/' and everything after
-			_baseURL = baseURL.substr(0, baseURL.lastIndexOf('/') + 1);
+			_baseURL = baseURL.substr(0, baseURL.lastIndexOf('/'));
 		}

 		private var _baseURL:String;


removed traces

removed traces

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@152 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/media/AbstractPlayer.as
+++ src/reprise/media/AbstractPlayer.as
@@ -169,10 +169,8 @@

 		public function play():void
 		{
-			trace("play");
 			if (m_status & STATUS_PAUSED_AT_END)
 			{
-				trace("stop first then play");
 				stop();
 			}

@@ -214,7 +212,7 @@
 			// stop the mediafile
 			m_status &= ~STATUS_SHOULD_PLAY;
 			m_status &= ~STATUS_PAUSED_AT_END;
-			trace(stateToString());
+
 			if (m_state != STATE_PLAYING && m_state != STATE_PAUSED)
 			{
 				return;
@@ -231,6 +229,7 @@

 		public function seek(offset:Number):void
 		{
+			m_status &= ~STATUS_PAUSED_AT_END;
 			if ([STATE_PLAYING, STATE_PAUSED, STATE_IDLE].indexOf(m_state) == -1 ||
 				(!(m_status & STATUS_IS_LOADING) && !(m_status & STATUS_LOAD_FINISHED)))
 			{
@@ -389,10 +388,8 @@

 		protected function mediaReachedEnd():void
 		{
-			trace("media reached end");
 			if (m_options & OPTIONS_LOOP)
 			{
-				trace("loop!");
 				stop();
 				dispatchEvent(new CommandEvent(CommandEvent.COMPLETE));
 				play();
@@ -400,13 +397,11 @@
 			}
 			if (m_options & OPTIONS_REVERSE_ON_COMPLETE)
 			{
-				trace("reverse!");
 				stop();
 				goIdle();
 				dispatchEvent(new CommandEvent(CommandEvent.COMPLETE));
 				return;
 			}
-			trace("pause!");
 			m_status |= STATUS_PAUSED_AT_END
 			pause();
 			dispatchEvent(new CommandEvent(CommandEvent.COMPLETE));


absolute cow density sizes

absolute cow density sizes

--- src/battlecode/client/viewer/render/DrawMap.as
+++ src/battlecode/client/viewer/render/DrawMap.as
@@ -142,24 +142,14 @@
             var cowsTeams:Array = controller.currentState.getNeutralTeams();
             var i:uint, j:uint, team:String;

-            var maxDensity:Number = 1.0;
-            for (i = 0; i < cows.length; i++) {
-                for (j = 0; j < cows[i].length; j++) {
-                    maxDensity = Math.max(cows[i][j], maxDensity);
-                }
-            }
-
             this.neutralCanvas.graphics.clear();
             var g:Number = getGridSize();
             for (i = 0; i < cows.length; i++) {
                 for (j = 0; j < cows[i].length; j++) {
-                    var density:Number = cows[i][j] / maxDensity;
-                    if (density < .1) {
-                        continue; // thresh cows
-                    }
-                    var offset:Number = (1.0 - density) / 2;
-                    team = Team.valueOf(cowsTeams[i][j]);
-                    this.neutralCanvas.graphics.beginFill(Team.cowColor(team), 0.5);
+                    var density:Number = cows[i][j] / 8000.0;
+                    var color:Number = Team.cowColor(Team.valueOf(cowsTeams[i][j]));
+                    this.neutralCanvas.graphics.lineStyle(1, color, 0.8);
+                    this.neutralCanvas.graphics.beginFill(color, 0.4);
                     this.neutralCanvas.graphics.drawCircle((i + .5) * g, (j + .5) * g, g * density / 2);
                     this.neutralCanvas.graphics.endFill();
                 }


AsUnitCore now extends EventDispatcher instead of delegating. Several other classes were already doing that, might as well be consistent and have less code.

--- asunit-4.0/src/asunit/core/AsUnitCore.as
+++ asunit-4.0/src/asunit/core/AsUnitCore.as
@@ -4,7 +4,6 @@
 	import asunit.framework.IRunnerFactory;
 	import asunit.framework.Result;
 	import asunit.framework.IRunner;
-	import asunit.framework.InjectionDelegate;
 	import asunit.framework.RunnerFactory;
 	import asunit.framework.TestObserver;
 	import asunit.runners.LegacyRunner;
@@ -13,15 +12,12 @@
 	import flash.display.DisplayObjectContainer;
 	import flash.events.Event;
 	import flash.events.EventDispatcher;
-	import flash.events.IEventDispatcher;

-	public class AsUnitCore implements IEventDispatcher {
+	public class AsUnitCore extends EventDispatcher {

         internal var result:IResult;

 		protected var injector:Injector;
-		protected var bridgeInjector:InjectionDelegate;
-        protected var dispatcher:IEventDispatcher;
         protected var legacyRunnerReference:LegacyRunner;
         protected var observers:Array;
         protected var runner:IRunner;
@@ -30,7 +26,6 @@
         public function AsUnitCore() {
             super();
 			initializeInjector();
-            initializeDispatcher();
             initializeObservers();
             initialize();
         }
@@ -42,10 +37,6 @@
  			result = new Result();
 			injector.mapValue(IResult, result);
 		}
-
-        protected function initializeDispatcher():void {
-            dispatcher = new EventDispatcher(this);
-        }

         /**
          * Template method for subclasses to override,
@@ -148,28 +139,5 @@
 		protected function onRunCompleted():void {
 		}

-        // BEGIN: Implement the IEventDispatcher Interface:
-
-		public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false):void {
-			dispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
-		}
-
-		public function removeEventListener(type:String, listener:Function, useCapture:Boolean=false):void {
-			dispatcher.removeEventListener(type, listener, useCapture);
-		}
-
-		public function dispatchEvent(event:Event):Boolean {
-			return dispatcher.dispatchEvent(event);
-		}
-
-		public function hasEventListener(type:String):Boolean {
-			return dispatcher.hasEventListener(type);
-		}
-
-		public function willTrigger(type:String):Boolean {
-			return dispatcher.willTrigger(type);
-		}
-
-        // END: Implement the IEvent Dispatcher Interface:
 	}
 }


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPTuple.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPTuple.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: 5067
Author:   smgilson@adobe.com
Date:     2009-02-25T16:21:22.849704Z

Log Message:
-----------
In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.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/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/airframework/src/mx/events/AIREvent.as
+++ frameworks/projects/airframework/src/mx/events/AIREvent.as
@@ -22,7 +22,6 @@
  *  @see mx.core.Window
  *  @see mx.core.WindowedApplication
  *
- *  @playerversion AIR 1.1
  */
 public class AIREvent extends Event
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4756
Author:   pfarland@adobe.com
Date:     2009-01-30T15:58:55.850639Z

Log Message:
-----------
Bug fix for universal Advanced CSS selectors.

1. In CSS, the universal selector * matches any element. It is often implied in selectors, such as the .foo class selector would formally be written *.foo { }. So, what we were previously calling "global selectors" will now be referred to as universal selectors. Flex retains its own special top level "global" selector to function as the root of the inheriting style prototype chain, but other universal selectors will not be associated with this special subject.

2. When looking for universal selectors, we now match against all possible selectors that have * as the subject rather than trying to pick out specific styleName (class), id or pseudo conditions. This is needed as there may arbitrary advanced conditions in the selector chain, for example, descendant selectors that have a universal subject. Note this was the actual cause of the bug - but the other fixes were needed to separate "global" from "*".

3. In the compiler, we'll still use the generated _globalStyles.as (i.e. from the "global" StyleDef collection of style declarations) as the place holder for universal selectors (as _*Styles.as would be an invalid ActionScript class name), though these universal selectors will report their subject as "*".

4. When representing a selector in full as a String, we'll continue to omit "*" as the subject and substitute the empty string, so "*.foo" will be printed as ".foo".

QA: Yes
Doc: No
Checkintests: Pass
Reviewer: Paul
Bugs:
SDK-18196 -  [Advanced CSS] Descendant selectors with class selectors like VBox .greenBox are not working correctly.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/framework/src/mx/styles/CSSSelector.as
+++ frameworks/projects/framework/src/mx/styles/CSSSelector.as
@@ -195,7 +195,7 @@
         if (kind == CSSSelectorKind.TYPE_SELECTOR
             || kind == CSSSelectorKind.CONDITIONAL_SELECTOR)
         {
-            if (value == "*" || value == "global" || value == "" || object.isAssignableToType(value))
+            if (value == "*" || value == "" || object.isAssignableToType(value))
             {
                 match = true;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11768
Author:   jacobg@adobe.com
Date:     2009-11-13T00:26:40.459681Z

Log Message:
-----------
Link to ASDoc ComboBoxExample

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

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

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -159,6 +159,7 @@
  *
  *  @see spark.skins.spark.ComboBoxSkin
  *  @see spark.skins.spark.ComboBoxTextInputSkin
+ *  @includeExample examples/ComboBoxExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 17523
Author:   cframpto@adobe.com
Date:     2010-08-30T22:35:06.528905Z

Log Message:
-----------
Doc for selectionChanging and selectionChange events was reveresed.

QE notes:
Doc notes:
Bugs: SDK-27648
Reviewer:  Kevin
Tests run:
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -233,12 +233,13 @@
 [Event(name="gridDoubleClick", type="spark.events.GridEvent")]

 /**
- *  Dispatched when the selection has changed.
+ *  Dispatched when the selection is going to change.
+ *  Calling the preventDefault() method
+ *  on the event prevents the selection from changing.
  *
  *
This event is dispatched when the user interacts with the control.
  *  When you change the selection programmatically,
  *  the component does not dispatch the selectionChanging event.
- *  It dispatches the valueCommit event instead.

  *
  *  @eventType spark.events.GridSelectionChangeEvent.SELECTION_CHANGING
  *
@@ -250,9 +251,7 @@
 [Event(name="selectionChanging", type="spark.events.GridSelectionEvent")]

 /**
- *  Dispatched when the selection is going to change.
- *  Calling the preventDefault() method
- *  on the event prevents the selection from changing.
+ *  Dispatched when the selection has changed.
  *
  *
This event is dispatched when the user interacts with the control.
  *  When you change the selection programmatically,


Transferred from the Adobe Open Source Subversion Repository

Revision: 2736
Author:   gosmith@adobe.com
Date:     2008-08-04T23:44:10.712576Z

Log Message:
-----------
TextInput now sets the lineBreak property of its TextView to "explicit", to prevent the text from wrapping at the right edge. And TextArea now sets it back to "toFit", since TextArea extends TextInput.

Reviewer: Deepa
Bug: SDK-16220
QA: No
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -18,6 +18,8 @@
 import flex.component.TextView;
 import flex.events.TextOperationEvent;

+import text.model.LineBreak;
+
 [DefaultProperty("content")]

 /**
@@ -163,6 +165,7 @@
 		{
 			// Set the TextView to allow multiple lines of input.
 			textView.heightInLines = 10;
+            textView.lineBreak = LineBreak.TO_FIT;
 			textView.multiline = true;
         }
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 2805
Author:   chaase@adobe.com
Date:     2008-08-11T20:37:18.700675Z

Log Message:
-----------
First checkin for the "Arbitrary Type Interpolation" feature. This feature has a rewritten Tween class (now named flex.effects.Animation). This class supports the old Tween capabilities, but adds functionality such as the ability to supply alternate interpolation objects (to allow animation of non-Number types), a new Easing API, and new 'repeat behavior' that will allow terser looping or reversing animations. The existing new effects were slightly changed to use the new Animation class (instead of Tween), and the superclass of the new effects, AnimateProperties (renamed 'Animate'), is now a subclass of Effect (not TweenEffect).

Added various new interpolation and easing classes, along with the new packages flex.effects.interpolation and flex.effects.easing. Also added new color-interpolation effect, 'Tint'.

Expect slight tweaks to the API during i7, but the bulk of the functionality and API changes are being checked in now.

Reviewed by Jason S.
Testing: checkintests & mustella tests/Effects (passed)

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Fade.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Constant.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Power.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ColorInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/TintInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/IEaser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Tint.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Move.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/AnimationEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/spark/src/spark/effects/easing/Sine.as
+++ frameworks/projects/spark/src/spark/effects/easing/Sine.as
@@ -0,0 +1,70 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flex.effects.easing
+{
+/**
+ * Provides easing functionality using a Sine wave, where the
+ * instance is created with a power paramter describing the
+ * behavior of the expression.
+ */
+public class Sine implements IEaser
+{
+    /**
+     * Storage for the easeIn property
+     */
+    private var _easeIn:Number;
+    /**
+     * The percentage of an animation that should be spent accelerating.
+     * This factor sets an implicit
+     * "easeOut" parameter, equal to (1 - easeIn), so that any time not
+     * spent easing in is spent easing out. For example, to have an easing
+     * equation that spends half the time easing in and half easing out,
+     * set easeIn equal to .5.
+     *
+     * @default .5
+     */
+    public function get easeIn():Number
+    {
+        return _easeIn;
+    }
+    public function set easeIn(value:Number):void
+    {
+        _easeIn = value;
+    }
+
+    /**
+     * Constructs a Sine instance with an optional easeIn
+     * parameter.
+     */
+    public function Sine(easeIn:Number = .5)
+    {
+        this.easeIn = easeIn;
+    }
+
+    /**
+     * Performs an easing on the elapsed fraction of an animation
+     * using a sine curve calculation.
+     *
+     * @param fraction The elapsed fraction of the animation
+     * @return The eased fraction of the animation
+     */
+    public function ease(fraction:Number):Number
+    {
+        var easeOut:Number = 1 - easeIn;
+
+        if (fraction <= easeIn)
+            return (1 - Math.cos((fraction/easeIn) * Math.PI/2)) * easeIn;
+        else
+            return easeIn + Math.sin(((fraction - easeIn)/easeOut) * Math.PI/2) * easeOut;
+    }
+
+}
+}


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

--- frameworks/projects/spark/src/spark/layouts/ColumnAlign.as
+++ frameworks/projects/spark/src/spark/layouts/ColumnAlign.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


change Signal.execute to avoid calling Function.apply but drop support for callbacks with more than 10 arguments

--- src/aerys/minko/type/Signal.as
+++ src/aerys/minko/type/Signal.as
@@ -122,13 +122,51 @@
 			return _callbacks.indexOf(callback) >= 0;
 		}

-		public function execute(...params) : void
+		public function execute(...p) : void
 		{
 			if (_numCallbacks && _enabled)
 			{
 				_executed = true;
 				for (var i : uint = 0; i < _numCallbacks; ++i)
-					_callbacks[i].apply(null, params);
+                {
+                    switch (p.length)
+                    {
+    					case 0:
+                            _callbacks[i]();
+                            break ;
+                        case 1:
+                            _callbacks[i](p[0]);
+                            break ;
+                        case 2:
+                            _callbacks[i](p[0], p[1]);
+                            break ;
+                        case 3:
+                            _callbacks[i](p[0], p[1], p[2]);
+                            break ;
+                        case 4:
+                            _callbacks[i](p[0], p[1], p[2], p[3]);
+                            break ;
+                        case 5:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4]);
+                            break ;
+                        case 6:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4], p[5]);
+                            break ;
+                        case 7:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4], p[5], p[6]);
+                            break ;
+                        case 8:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]);
+                            break ;
+                        case 9:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]);
+                            break ;
+                        case 10:
+                            _callbacks[i](p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]);
+                            break ;
+                    }
+//                   _callbacks[i].apply(null, params);
+                }
 				_executed = false;

 				for (i = 0; i < _numAdded; ++i)


Transferred from the Adobe Open Source Subversion Repository

Revision: 3430
Author:   gruehle@adobe.com
Date:     2008-09-30T23:43:13.377931Z

Log Message:
-----------
This is a collection of minor component changes, done for consistency.

* Data is always "pushed" into skin parts. We were doing this in some places like ItemsComponent.contentGroup, but not in other places. Affected components are TextInput, TextArea, NumericStepper, and Button.

* Button (and every subclass) has an optional "labelField" SkinPart. The Button "label" property is pushed into this part if it is defined.

* Added skin states to the following components:
  TrackBase (includes H/VScrollBar and H/VSlider): States "normal" and "disabled".
  Spinner (includes NumericStepper): States "normal" and "disabled".
  ContainerBase (includes ItemsComponent, Selector, and List): States "normal" and "disabled".

  The appearance of "disabled" states is controlled by the skin. The behavior of "disabled" states is still controlled by the component (ie ScrollBar disables the thumb, track and arrow when it is disabled).

* Added new ContainerBase class, which is the base class for ItemsComponent and DataComponent. The base class manages the skin states and puts up a mouse shield when disabled.

* Thumb positioning code in slider and scrollbar always rounds to the nearest pixel boundary. Sub-pixel positioning makes the thumbs look blurry.

* TextView measurement is rounded to integer values. It was commonly returning non-integer values which was causing subsequent components in relative layouts to be positioned on sub-pixel boundaries.

Bugs: SDK-16933 Make Label be an optional part of Button and related components
QE: The pixel alignment changes may result in bitmap comparison failures. The bitmaps should be regenerated with the pixel alignment. There should be no functional changes to any of the components.
Reviewer: Chet, Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/DataComponentSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ItemsComponentSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SelectorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ComplexPanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -63,8 +63,8 @@
  * visual content. This class is not typically instantiated in MXML. It is primarily
  * used as a base class, or as a SkinPart.
  */
-public class ItemsComponent extends SkinnableComponent
-	   implements IFocusManagerContainer, IDeferredContentOwner
+public class ItemsComponent extends ContainerBase
+	   implements IDeferredContentOwner
 {
     include "../core/Version.as";


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 10464
Author:   rfrishbe@adobe.com
Date:     2009-09-21T17:40:30.663638Z

Log Message:
-----------
Removing support in Flex framework for compatibility version < 3.  We won't support compatibility-version 2 or 2.01 anymore.  We only keep compatibility-version for one full release, so for Flex 4, we only support compatibility-version = 3.x.

This should reduce our code-size some as we no longer need this old code.  I didn't clean up the compiler's support for compatibility-versioning as it didn't seem worth the effort.

QE notes: -
Doc notes: -
Bugs: SDK-15360
Reviewer: Kevin
Tests run: checkintests, Joan ran all mustella tests
Is noteworthy for integration: Yes

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/skins/halo/HaloBorder.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/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.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/spark/src/mx/core/UITLFTextField.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/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.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/core/UITextField.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/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.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/styles/StyleProxy.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/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserYearArrowSkin.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/MenuBar.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/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PanelSkin.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/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.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/colorPickerClasses/SwatchPanel.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/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.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/controls/listClasses/ListItemRenderer.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/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/Flex.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>

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

--- frameworks/projects/mx/src/mx/controls/NavBar.as
+++ frameworks/projects/mx/src/mx/controls/NavBar.as
@@ -24,7 +24,6 @@
 import mx.containers.ViewStack;
 import mx.core.ClassFactory;
 import mx.core.INavigatorContent;
-import mx.core.FlexVersion;
 import mx.core.IFactory;
 import mx.core.IFlexDisplayObject;
 import mx.core.ScrollPolicy;
@@ -214,9 +213,6 @@
      */
     override public function get baselinePosition():Number
     {
-		if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
-			return super.baselinePosition;
-
 		if (!validateBaselinePosition())
 			return NaN;


organize imports

organize imports

--- WeaveJS/src/WeaveJS.as
+++ WeaveJS/src/WeaveJS.as
@@ -22,14 +22,12 @@
 	import weavejs.core.EditorManager;
 	import weavejs.core.LinkableDynamicObject;
 	import weavejs.core.LinkableHashMap;
-	import weavejs.core.LinkableVariable;
 	import weavejs.core.Locale;
 	import weavejs.core.ProgressIndicator;
 	import weavejs.core.Scheduler;
 	import weavejs.core.SessionManager;
 	import weavejs.data.AttributeColumnCache;
 	import weavejs.data.CSVParser;
-	import weavejs.data.ColumnUtils;
 	import weavejs.data.StatisticsCache;
 	import weavejs.data.key.QKeyManager;
 	import weavejs.geom.SolidFillStyle;


Late night coding errors

Late night coding errors

Because as awesome as it would be for one event to have two functions,
that's not how it works.

--- src/main.as
+++ src/main.as
@@ -804,7 +804,6 @@
 			}
 			else
 			{
-
 				NativeApplication.nativeApplication.startAtLogin = true;
 				config_mc.startatlaunch_mc.gotoAndStop(1);
 			}
@@ -839,8 +838,6 @@
 			f = File.applicationStorageDirectory.resolvePath("C:/");
 			f.openWithDefaultApplication();
 		}
-
-

 		// ===== DESKTOP FRAME ======
@@ -1264,9 +1261,11 @@
 				desktopService.removeEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
 				desktopService.removeEventListener(DesktopServiceEvent.PERMISSIONS_ERROR, handleDesktopPermissionsError);
 				publicDesktop_mc.navivation_mc.text_txt.removeEventListener(KeyboardEvent.KEY_DOWN, handlePublicDesktopKeyDown);
+				publicDesktop_mc.visible = false;
 			}
 			else
 			{
+				publicDesktop_mc.visible = true;
 				publicDesktop_mc.navivation_mc.text_txt.addEventListener(KeyboardEvent.KEY_DOWN, handlePublicDesktopKeyDown);
 			}
 		}
@@ -1307,8 +1306,8 @@
 			//Host request
 			//rmh!:123892095.477682095.14518920235.5421892095.112892095.541892095

-			desktopService.removeEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
-			desktopService.removeEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
+			desktopService.removeEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleInitialRequest);
+			desktopService.removeEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleInitialRequest);
 			desktopService.removeEventListener(DesktopServiceEvent.PERMISSIONS_ERROR, handleDesktopPermissionsError);

 			currentRequest = new String(address);
@@ -1327,6 +1326,8 @@
 			{
 				//It's a public key.
 				desktopService.getFile(address, DesktopService.SPACE_DIRECTORY);
+				//Since it's a public key, public key addressed default to a space file. So There's no need to request for both a space directory
+				//and a resource directory in hopes of retrieving something.
 			}

 			else
@@ -1335,8 +1336,8 @@
 				return;
 			}

-			desktopService.addEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
-			desktopService.addEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
+			desktopService.addEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleInitialRequest);
+			desktopService.addEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleInitialRequest);
 			desktopService.addEventListener(DesktopServiceEvent.PERMISSIONS_ERROR, handleDesktopPermissionsError);

 			objectsLoaded = new int();
@@ -1345,8 +1346,8 @@

 		private function handleDesktopPermissionsError(e:DesktopServiceEvent):void
 		{
-			desktopService.removeEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
-			desktopService.removeEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleSpaceObject, handleInitialRequest);
+			desktopService.removeEventListener(DesktopServiceEvent.SPACE_OBJECT_RECIEVED, handleInitialRequest);
+			desktopService.removeEventListener(DesktopServiceEvent.RESOURCE_OBJECT_RECIEVED, handleInitialRequest);
 			desktopService.removeEventListener(DesktopServiceEvent.PERMISSIONS_ERROR, handleDesktopPermissionsError);

 			publicDesktop_mc.navivation_mc.text_txt.text = "The user owning " + currentRequest + " does not allow you to navigate here.";


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPSchema.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPSchema.as
@@ -0,0 +1,160 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import flash.utils.Dictionary;
+import mx.collections.ArrayCollection;
+import mx.collections.IList;
+
+//--------------------------------------
+//  metadata
+//--------------------------------------
+
+[DefaultProperty("cubeArray")]
+
+/**
+ *  The OLAPSchema class represents an OLAP cube or cubes.
+ *
+ *  @mxml
+ *

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

+ *

+ *  <mx:OLAPSchema
+ *    Properties
+ *       cubeArray=""
+ *  />
+ *
+ *  @see mx.olap.IOLAPSchema
+ *  @see mx.olap.OLAPCube
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPSchema implements IOLAPSchema
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // cubes
+    //----------------------------------
+
+    private var _cubes:Dictionary = new Dictionary;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get cubes():IList
+    {
+        var temp:Array = [];
+        for each (var i:Object in _cubes)
+            temp.push(i);
+        return new ArrayCollection(temp);
+    }
+
+    /**
+     *  @private
+     */
+    public function set cubes(value:IList):void
+    {
+        var n:int = value.length;
+        for (var i:int = 0; i < n; ++i)
+        {
+            var cube:IOLAPCube = value.getItemAt(i) as IOLAPCube;
+            _cubes[cube.name] = cube;
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    public function addCube(cube:IOLAPCube):Boolean
+    {
+        if (_cubes[cube.name])
+            return false;
+
+        _cubes[cube.name] = cube;
+
+        return true;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function createCube(name:String):IOLAPCube
+    {
+        var c:IOLAPCube;
+        if (!_cubes[name])
+        {
+            c = new OLAPCube(name);
+            _cubes[name] = c;
+        }
+
+        return _cubes[name];
+    }
+
+    /**
+     *  Lets you set the cubes of a schema by passing an Array of IOLAPCube instances.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function set cubeArray(value:Array):void
+    {
+        var tempCubes:ArrayCollection = new ArrayCollection(value);
+        cubes = tempCubes;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getCube(name:String):IOLAPCube
+    {
+        return _cubes[name];
+    }
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8420
Author:   dloverin@adobe.com
Date:     2009-07-07T14:27:05.571766Z

Log Message:
-----------
Remove showGripper and showTitleBar from ASDoc.

Removed the references to showGripper and showTitleBar in the Spark WindowedApplication and Spark Window classes.

QE Notes: none.
Doc Notes: none.
Bugs: SDK-22112
Reviewer:
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -383,9 +383,7 @@
  *    minimizable="true"
  *    minWidth="0"
  *    resizable="true"
- *    showGripper="true"
  *    showStatusBar="true"
- *    showTitleBar="true"
  *    status=""
  *    systemChrome="standard"
  *    title=""