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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12744
Author:   smgilson@adobe.com
Date:     2009-12-09T20:33:46.610069Z

Log Message:
-----------
asdoc prep for L10N

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -721,8 +721,8 @@
      *  computed matrix.  For example UIComponent
      *  defines the offsets property.

      *
-     *  @return
Returns the layout transform Matrix3D for this element.
-     *  Don't directly modify the return value but call setLayoutMatrix instead.

+     *  @return The layout transform Matrix3D for this element.
+     *  Don't directly modify the return value but call setLayoutMatrix instead.
      *
      *  @see #getLayoutMatrix
      *  @see #setLayoutMatrix


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9054
Author:   clucier@adobe.com
Date:     2009-08-04T14:12:22.809061Z

Log Message:
-----------
Refactoring DataGroup a bit to allow for more robust delegation of renderer updates to owning components.  Found and addressed an issue where we were setting the label for each item renderer upwards of four times each update.

QE notes: None
Doc notes: None
Bugs: SDK-22153, SDK-22226
Reviewer: Ryan
Tests run: Checkin, Mustella Spark (List, ButtonBar, DataGroup)
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/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -373,7 +373,6 @@
                 IFocusManagerComponent(renderer).focusEnabled = false;
             if (renderer is ButtonBarButton)
                 ButtonBarButton(renderer).allowDeselection = !requireSelection;
-            updateRenderer(renderer);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3756
Author:   gruehle@adobe.com
Date:     2008-10-20T21:38:18.681299Z

Log Message:
-----------
Adding placeholder icons for the Gumbo components that appear in the FB components panel. Where possible, these are simply copies of the Halo icons. There were some that didn't have a direct Halo counterpart, so the closest match was chosen.

QE Notes: None
Doc Notes: None
Bugs: SDK-17668
Reviewer: -

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/HGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/VGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/HGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.png</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -52,6 +52,9 @@
 [Event(name="itemRemove", type="mx.events.ItemExistenceChangedEvent")]

 [DefaultProperty("dataProvider")]
+
+[IconFile("DataGroup.png")]
+
 /**
  *  The DataGroup class is the base container class for data elements.
  *  The DataGroup class converts data elements to visual elements for display.


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

--- frameworks/projects/spark/src/spark/components/TileGroup.as
+++ frameworks/projects/spark/src/spark/components/TileGroup.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/AnimateColor.as
+++ frameworks/projects/spark/src/spark/effects/AnimateColor.as
@@ -8,9 +8,9 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package flex.effects
+package mx.effects
 {
-import flex.effects.effectClasses.TintInstance;
+import mx.effects.effectClasses.FxAnimateColorInstance;

 import mx.effects.IEffectInstance;
 import mx.styles.StyleManager;
@@ -19,7 +19,7 @@
  * This effect animates a change in color over time, interpolating
  * between given from/to color values on a per-channel basis.
  */
-public class Tint extends Animate
+public class FxAnimateColor extends FxAnimate
 {
     include "../core/Version.as";

@@ -57,10 +57,10 @@
     /**
      * Constructs a Tint effect with an optional target object
      */
-    public function Tint(target:Object=null)
+    public function FxAnimateColor(target:Object=null)
     {
         super(target);
-        instanceClass = TintInstance;
+        instanceClass = FxAnimateColorInstance;
     }

     /**
@@ -86,7 +86,7 @@
     {
         super.initInstance(instance);

-        var tintInstance:TintInstance = TintInstance(instance);
+        var tintInstance:FxAnimateColorInstance = FxAnimateColorInstance(instance);
         tintInstance.colorFrom = colorFrom;
         tintInstance.colorTo = colorTo;
         tintInstance.colorPropertyName = colorPropertyName;


- added ability to turn background gradient off

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

--- src/reprise/css/propertyparsers/Background.as
+++ src/reprise/css/propertyparsers/Background.as
@@ -96,6 +96,7 @@

 		public static const GRADIENT_TYPE_LINEAR : String	= 'linear';
 		public static const GRADIENT_TYPE_RADIAL : String = 'radial';
+		public static const GRADIENT_TYPE_NONE : String = 'none';

 		public static const SCALE9_TYPE_STRETCH : String 	= 'stretch';
 		public static const SCALE9_TYPE_REPEAT : String	= 'repeat';
@@ -206,6 +207,7 @@
 			var gradientTypeLookup : Array = [];
 			gradientTypeLookup[GRADIENT_TYPE_LINEAR] = true;
 			gradientTypeLookup[GRADIENT_TYPE_RADIAL] = true;
+			gradientTypeLookup[GRADIENT_TYPE_NONE] = true;

 			// type
 			part = parts[counter];


Improved target label rendering.

Improved target label rendering.

--- src/com/cenix/louice/shared/model/vos/MoleculeDesignPoolMember.as
+++ src/com/cenix/louice/shared/model/vos/MoleculeDesignPoolMember.as
@@ -26,12 +26,21 @@

         public function get targetsLabel():String
         {
+            var label:String = "";
             var labels:Array = new Array();
             for each (var gene:GeneMember in genes)
             {
                 labels.push(gene.geneIdLabel);
             }
-            return labels.join('\n');
+            if (labels.length > 5)
+            {
+                label = labels.slice(0, 5).join(', ') + ", [..." + (labels.length-5) + " more...]";
+            }
+            else
+            {
+                label = labels.join(', ');
+            }
+            return label
         }

     }


Fix some crashes from mask loops and null children

--- mustella/as3/src/mustella/CompareBitmap.as
+++ mustella/as3/src/mustella/CompareBitmap.as
@@ -1169,7 +1169,7 @@
 		xml.@height = d.height;
 		if (xml.visible == false)
 			xml.@visible = "false";
-		if (d.mask && !noMask)
+		if (d.mask && d.mask != d.parent && !noMask)
 		{
 			xml.mask = <mask/>;
 			childXML = getDisplayListProperties(d.mask, true);
@@ -1239,8 +1239,12 @@
 			n = doc.numChildren;
 			for (i = 0; i < n; i++)
 			{
-				childXML = getDisplayListProperties(doc.getChildAt(i));
-				xml.appendChild(childXML);
+                var child:DisplayObject = doc.getChildAt(i);
+                if (child) // was null in an FCK test.
+                {
+    				childXML = getDisplayListProperties(child);
+    				xml.appendChild(childXML);
+                }
 			}
 		}
 		return xml;


Transferred from the Adobe Open Source Subversion Repository

Revision: 22561
Author:   smgilson@adobe.com
Date:     2011-09-14T19:12:37.612519Z

Log Message:
-----------
Minor ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/ModuleEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/advancedgrids/src/mx/events/AdvancedDataGridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/framework/src/mx/events/EventListenerRequest.as
+++ frameworks/projects/framework/src/mx/events/EventListenerRequest.as
@@ -44,245 +44,245 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  Request to add an event listener.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static const ADD_EVENT_LISTENER_REQUEST:String = "addEventListenerRequest";
-
-	/**
-	 *  Request to remove an event listener.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static const REMOVE_EVENT_LISTENER_REQUEST:String = "removeEventListenerRequest";
-
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Marshals an event by copying the relevant parameters
+    /**
+     *  Request to add an event listener.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const ADD_EVENT_LISTENER_REQUEST:String = "addEventListenerRequest";
+
+    /**
+     *  Request to remove an event listener.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const REMOVE_EVENT_LISTENER_REQUEST:String = "removeEventListenerRequest";
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Marshals an event by copying the relevant parameters
      *  from the event into a new event.
-     	*
-     	*  @param event The event to marshal.
-     	*
-     	*  @return An EventListenerRequest that defines the new event.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static function marshal(event:Event):EventListenerRequest
-	{
-		var eventObj:Object = event;
-
-		return new EventListenerRequest(eventObj.type, eventObj.bubbles,
-										eventObj.cancelable, eventObj.eventType,
+        *
+        *  @param event The event to marshal.
+        *
+        *  @return An EventListenerRequest that defines the new event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function marshal(event:Event):EventListenerRequest
+    {
+        var eventObj:Object = event;
+
+        return new EventListenerRequest(eventObj.type, eventObj.bubbles,
+                                        eventObj.cancelable, eventObj.eventType,
                                         ("listener" in eventObj) ? eventObj.listener : null,
                                         eventObj.useCapture, eventObj.priority,
                                         eventObj.useWeakReference);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Creates a new request to add or remove an event listener.
-	 *
-	 *  @param type The event type; indicates the action that caused the event. Either EventListenerRequest.ADD
-	 *  or EventListenerRequest.REMOVE.
-         *
-         *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
-         *
-         *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
-         *
-	 *  @param eventType The type of message you would normally pass to the addEventListener() method.
-         *
-	 *  @param useCapture Determines whether the listener works in the capture phase or the target and bubbling phases.
-         *
-	 *  @param priority The priority level of the event listener. Priorities are designated by a 32-bit integer.
-         *
-	 *  @param useWeakReference Determines whether the reference to the listener is strong or weak.
-	 *
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function EventListenerRequest(type:String, bubbles:Boolean = false,
-										 cancelable:Boolean = true,
-								         eventType:String = null,
-										 listener:Function = null,
-								         useCapture:Boolean = false,
-								         priority:int = 0,
-								         useWeakReference:Boolean = false)
-
-	{
-		super(type, false, false);
-
-		_eventType = eventType;
-		_listener = listener;
-		_useCapture = useCapture;
-		_priority = priority;
-		_useWeakReference = useWeakReference;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  priority
-	//----------------------------------
-
-	/**
-     *  @private
-     */
-	private var _priority:int;
-
-	/**
-	 *  The priority parameter
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Creates a new request to add or remove an event listener.
+     *
+     *  @param type The event type; indicates the action that caused the event. Either EventListenerRequest.ADD
+     *  or EventListenerRequest.REMOVE.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+     *
+     *  @param eventType The type of message you would normally pass to the addEventListener() method.
+     *
+     *  @param useCapture Determines whether the listener works in the capture phase or the target and bubbling phases.
+     *
+     *  @param priority The priority level of the event listener. Priorities are designated by a 32-bit integer.
+     *
+     *  @param useWeakReference Determines whether the reference to the listener is strong or weak.
+     *
+     *  @see flash.events.IEventDispatcher#addEventListener
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function EventListenerRequest(type:String, bubbles:Boolean = false,
+                                         cancelable:Boolean = true,
+                                         eventType:String = null,
+                                         listener:Function = null,
+                                         useCapture:Boolean = false,
+                                         priority:int = 0,
+                                         useWeakReference:Boolean = false)
+
+    {
+        super(type, false, false);
+
+        _eventType = eventType;
+        _listener = listener;
+        _useCapture = useCapture;
+        _priority = priority;
+        _useWeakReference = useWeakReference;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  priority
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _priority:int;
+
+    /**
+     *  The priority parameter
      *  to addEventListener().
      *
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get priority():int
-	{
-		return _priority;
-	}
-
-	//----------------------------------
-	//  useCapture
-	//----------------------------------
-
-	/**
-     *  @private
-     */
-	private var _useCapture:Boolean;
-
-	/**
-	 *  The useCapture parameter
+     *  @see flash.events.IEventDispatcher#addEventListener
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get priority():int
+    {
+        return _priority;
+    }
+
+    //----------------------------------
+    //  useCapture
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _useCapture:Boolean;
+
+    /**
+     *  The useCapture parameter
      *  to addEventListener().
      *
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get useCapture():Boolean
-	{
-		return _useCapture;
-	}
-
-	//----------------------------------
-	//  eventType
-	//----------------------------------
-
-	/**
+     *  @see flash.events.IEventDispatcher#addEventListener
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get useCapture():Boolean
+    {
+        return _useCapture;
+    }
+
+    //----------------------------------
+    //  eventType
+    //----------------------------------
+
+    /**
      *  @private
      */
     private var _eventType:String;
-
-	/**
-	 *  The type of the event to listen to.
-     *
-	 *  @see flash.events.Event#type
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get eventType():String
-	{
-		return _eventType;
-	}
-
-	//----------------------------------
-	//  listener
-	//----------------------------------
-
-	/**
+
+    /**
+     *  The type of the event to listen to.
+     *
+     *  @see flash.events.Event#type
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get eventType():String
+    {
+        return _eventType;
+    }
+
+    //----------------------------------
+    //  listener
+    //----------------------------------
+
+    /**
      *  @private
      */
     private var _listener:Function;
-
-	/**
-	 *  The method or function to call
-     *
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 */
-	public function get listener():Function
-	{
-		return _listener;
-	}
-
-	//----------------------------------
-	//  useWeakReference
-	//----------------------------------
-
-	/**
-     *  @private
-     */
-	private var _useWeakReference:Boolean;
-
-	/**
-	 *  The useWeakReference parameter
+
+    /**
+     *  The method or function to call
+     *
+     *  @see flash.events.IEventDispatcher#addEventListener
+     */
+    public function get listener():Function
+    {
+        return _listener;
+    }
+
+    //----------------------------------
+    //  useWeakReference
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _useWeakReference:Boolean;
+
+    /**
+     *  The useWeakReference parameter
      *  to addEventListener().
      *
-	 *  @see flash.events.IEventDispatcher#addEventListener
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function get useWeakReference():Boolean
-	{
-		return _useWeakReference;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: Event
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override public function clone():Event
-	{
-		return new EventListenerRequest(type, bubbles, cancelable,
-										eventType, listener, useCapture,
+     *  @see flash.events.IEventDispatcher#addEventListener
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get useWeakReference():Boolean
+    {
+        return _useWeakReference;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new EventListenerRequest(type, bubbles, cancelable,
+                                        eventType, listener, useCapture,
                                         priority, useWeakReference);
-	}
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12764
Author:   gosmith@adobe.com
Date:     2009-12-10T02:06:04.655479Z

Log Message:
-----------
Dealt with issues involving accessibility and skin parts.

1. The accessibility implementation classes for four Spark components -- ComboBox, NumericStepper, TitleWindow, and VideoPlayer -- need to listen to events dispatched from skin parts. The problems were:

a) Skin parts may not exist at the time that the acc impl constructor executes, which is when we were doing addEventListener() on them. This is now fixed by consistently having null checks.

b) Skin parts may come and go at any later time. We now cope with this by having the acc impls listen for "partAdded" and "partRemoved" events from the component. When they discover that a skin part they want to listen to is being added, they now call addEventListener(), and when a skin part is removed they call removeEventListener().

2. The accessibility implementation classes for two Spark components -- Panel and TitleWindow -- actually get attached to a skin part (the titleDisplay) rather than to the component. Since we do this in createAccessibilityImplementation(), it's a problem if this happens before the titleDisplay exists. So instead of calling createAccessibilityImplementation() from initializeAccessibiility(), these components now call it from partAdded(). They also remove the acc impl if the titleDisplay is removed. Finally, there is some logic to prevent the partAdded() method of TitleWindow, which is a subclass of Panel, from creating both a PanelAccImpl and a TitleWindowAccImpl.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as
@@ -118,7 +118,7 @@
      */
     override protected function get eventsToHandle():Array
     {
-        return super.eventsToHandle.concat(["change"]);
+        return super.eventsToHandle.concat([ Event.CHANGE ]);
     }

     //--------------------------------------------------------------------------
@@ -242,6 +242,7 @@
                     Spinner(master).changeValueByStep(true)
                 break;
             }
+
             case 2:
             {
                 if (Spinner(master).incrementButton.enabled)
@@ -250,7 +251,8 @@
             }
         }

-        if (Spinner(master).value != prevValue) {
+        if (Spinner(master).value != prevValue)
+		{
             master.dispatchEvent(new Event(Event.CHANGE));
             master.dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
         }
@@ -297,7 +299,7 @@

         switch (event.type)
         {
-            case "change":
+            case Event.CHANGE:
             {
                 Accessibility.sendEvent(master, 0,
                                         AccConst.EVENT_OBJECT_VALUECHANGE, true);


Initing StringLiteral data on first use

Initing StringLiteral data on first use

--- raw/src/org/yellcorp/lib/string/StringLiteral.as
+++ raw/src/org/yellcorp/lib/string/StringLiteral.as
@@ -9,71 +9,83 @@
  */
 public class StringLiteral
 {
-    private static const escapeChars:RegExp = new RegExp(
-        "[" +
-            // Cc "Other, control"
-            // c0 control codes
-            "\\x00-\\x1f" +
+    private static var _escapeChars:RegExp;
+    private static function get escapeChars():RegExp
+    {
+        if (!_escapeChars)
+        {
+            _escapeChars = new RegExp(
+            "[" +
+                // Cc "Other, control"
+                // c0 control codes
+                "\\x00-\\x1f" +

-            // backslash
-            "\\\\" +
+                // backslash
+                "\\\\" +

-            // DEL and c1 control codes
-            "\\x7f-\\x9f" +
+                // DEL and c1 control codes
+                "\\x7f-\\x9f" +

-            // Cf "Other, format"
-            "\u00ad" +
-            "\u0600-\u0603" +
-            "\u06dd" +
-            "\u070f" +
-            "\u17b4" +
-            "\u17b5" +
-            "\u200b-\u200f" +
-            "\u202a-\u202e" +
+                // Cf "Other, format"
+                "\u00ad" +
+                "\u0600-\u0603" +
+                "\u06dd" +
+                "\u070f" +
+                "\u17b4" +
+                "\u17b5" +
+                "\u200b-\u200f" +
+                "\u202a-\u202e" +

-            "\u2060-\u2063" +
+                "\u2060-\u2063" +

-            // U+2064 Invisible Plus
+                // U+2064 Invisible Plus

-            // Doesn't match - including this char in both this
-            // expression and the test against it causes the test
-            // to fail.
+                // Doesn't match - including this char in both this
+                // expression and the test against it causes the test
+                // to fail.

-            // Unique in the 2060-2064 range as it was introduced in
-            // Unicode version 5.1.0
+                // Unique in the 2060-2064 range as it was introduced in
+                // Unicode version 5.1.0

-            // So probably too new
+                // So probably too new

-            //"\u2064" +
+                //"\u2064" +

-            "\u206a-\u206f" +
-            "\ufeff" +
-            "\ufff9-\ufffb" +
+                "\u206a-\u206f" +
+                "\ufeff" +
+                "\ufff9-\ufffb" +

-            // Zl "Seperator, Line"
-            "\u2028" +
+                // Zl "Seperator, Line"
+                "\u2028" +

-            // Zp "Seperator, Paragraph"
-            "\u2029" +
+                // Zp "Seperator, Paragraph"
+                "\u2029" +

-            // Cs "Other, Surrogate"
-            // Can't be matched - these characters are seen by the
-            // regex parser as ? (question mark 0x3F)
-            //"\ud800-\udfff" +
+                // Cs "Other, Surrogate"
+                // These are UTF-16 surrogates and can't be matched.
+                //"\ud800-\udfff" +

-            // BMP Private Use Area
-            "\ue000-\uf8ff" +
-        "]", "g");
+                // BMP Private Use Area
+                "\ue000-\uf8ff" +
+            "]", "g");
+        }
+        return _escapeChars;
+    }

-    private static const standardSequences:Array = [ ];
-
+    private static var _standardSequences:Object;
+    private static function get standardSequences():Object
     {
-        standardSequences[0x08] = "\\b";
-        standardSequences[0x09] = "\\t";
-        standardSequences[0x0a] = "\\n";
-        standardSequences[0x0c] = "\\f";
-        standardSequences[0x0d] = "\\r";
-        standardSequences[0x5c] = "\\\\";
+        if (!_standardSequences)
+        {
+            _standardSequences = { };
+            _standardSequences["\b"] = "\\b";
+            _standardSequences["\t"] = "\\t";
+            _standardSequences["\n"] = "\\n";
+            _standardSequences["\f"] = "\\f";
+            _standardSequences["\r"] = "\\r";
+            _standardSequences["\\"] = "\\\\";
+        }
+        return _standardSequences;
     }

     /**
@@ -112,14 +124,13 @@
      */
     public static function getEscapeSequence(char:String, ... ignored):String
     {
-        var code:uint = char.charCodeAt(0);
-        var sequence:String = standardSequences[code];
+        var sequence:String = standardSequences[char];

         if (!sequence)
         {
-            sequence = "\\u" + StringUtil.padLeft(code.toString(16), 4, "0");
+            sequence = "\\u" + StringUtil.padLeft(
+                char.charCodeAt(0).toString(16), 4, "0");
         }
-
         return sequence;
     }
 }


Fix to forceUpdateList on HDividedBox

Fix to forceUpdateList on HDividedBox

--- src/org/openPyro/containers/HDividedBox.as
+++ src/org/openPyro/containers/HDividedBox.as
@@ -147,7 +147,7 @@

 			leftUIC.enableMouseEvents()
 			rightUIC.enableMouseEvents();
-
+			forceUpdateDisplayList = true;
 		}

 		/**


text updated

text updated

--- Arguments/src/Controller/logic/ModusTollens.as
+++ Arguments/src/Controller/logic/ModusTollens.as
@@ -74,7 +74,7 @@
 					//if many reasons
 					var params:AGORAParameters = AGORAParameters.getInstance();
 					if(argumentTypeModel.reasonModels.length > 1 && argumentTypeModel.lSubOption == null){
-						output = "Select how you want to connect the reasons";
+						output = "Select how you want to connect the reasons by clicking on \"modus tollens\" above, then \"only if,\" and then select \"and\" or \"or.\" ";
 						if(argSelector != null){//if the view is created
 							argSelector.andor.x = argSelector.typeSelector.x + argSelector.typeSelector.width;
 							argSelector.andor.dataProvider = [params.AND, params.OR];


uncommented try/catch

uncommented try/catch

--- WeaveAPI/src/WeaveAPI.as
+++ WeaveAPI/src/WeaveAPI.as
@@ -82,8 +82,8 @@
 				///////////////////////
 				// TEMPORARY SOLUTION (until everything is a plug-in.)
 				// run static initialization code to register weave implementations
-//				try
-//				{
+				try
+				{
 					/*
 					// before initializing other classes, initialize all public properties of this class
 					for each (var array:Object in DescribeType.getClassInfo(WeaveAPI).traits)
@@ -96,11 +96,11 @@
 					getDefinitionByName("_InitializeWeaveData");
 					getDefinitionByName("_InitializeWeaveUISpark");
 					getDefinitionByName("_InitializeWeaveUI");
-//				}
-//				catch (e:Error)
-//				{
-//					trace(e.getStackTrace() || e);
-//				}
+				}
+				catch (e:Error)
+				{
+					trace(e.getStackTrace() || e);
+				}
 				// END TEMPORARY SOLUTION
 				///////////////////////////
 			}


Add test case.

Add test case.

--- src/avm2/tests/regress/correctness/pass/order.as
+++ src/avm2/tests/regress/correctness/pass/order.as
@@ -36,4 +36,26 @@
     trace(r8);

   })();
+
+  (function () {
+    trace("--- Test 2 ---");
+    var o : A = new A();
+    trace(o.x);
+    o.x = 2;
+    trace(o.x + o.x);
+    o.x = 3;
+    trace(o.x + o.x + o.x);
+    o.x = 4;
+    trace(o.x + o.x + o.x + o.x);
+    o.x = 5;
+    trace(o.x + o.x + o.x + o.x + o.x);
+    o.x = 6;
+    trace(o.x + o.x + o.x + o.x + o.x + o.x);
+    o.x = 7;
+    trace(o.x + o.x + o.x + o.x + o.x + o.x + o.x);
+    o.x = 8;
+    trace(o.x + o.x + o.x + o.x + o.x + o.x + o.x + o.x);
+    o.x = 9;
+    trace(o.x + o.x + o.x + o.x + o.x + o.x + o.x + o.x + o.x);
+  })();
 }


UPDATED 'login' method doc comment

UPDATED 'login' method doc comment

--- actionscript/src/com/marpies/ane/facebook/accountkit/AccountKit.as
+++ actionscript/src/com/marpies/ane/facebook/accountkit/AccountKit.as
@@ -115,9 +115,26 @@
         }

         /**
-         *
-         * @param configuration
-         * @param callback
+         * Starts the login process with the given configuration.
+         *
+         * @param configuration Configuration object.
+         * @param callback Function with the following signature:
+         * <listing version="3.0">
+         * function onAccountKitLoginResult( result:AKLoginResult ):void {
+         *     if( result.wasCancelled ) {
+         *         // login cancelled
+         *     } else if( result.errorMessage != null ) {
+         *         // error logging in
+         *     } else {
+         *         // success
+         *         trace( result.authorizationState );
+         *         trace( result.accessToken );
+         *         trace( result.authorizationCode );
+         *     }
+         * };
+         * </listing>
+         *
+         * @see com.marpies.ane.facebook.accountkit.AKConfiguration
          */
         public static function login( configuration:AKConfiguration, callback:Function ):void {
             if( !isSupported ) return;


These unicode characters aren't available on Windows.

I just spent the last hour trying to get icon images in a Flex grid. Fuck it,
replace with text.

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -402,7 +402,7 @@
 class DocStatus extends EventDispatcher implements IPropertyChangeNotifier {
     public var path :String;
     public var modified :String;
-    public var valid :String = QUESTION;
+    public var valid :String = PENDING;
     public var lib :XflLibrary;

     public function DocStatus (path :String, rootLen :int, modified :Ternary, valid :Ternary, lib :XflLibrary) {
@@ -416,19 +416,19 @@

     public function updateValid (newValid :Ternary) :void {
         changeField("valid", function (..._) :void {
-            if (newValid == Ternary.TRUE) valid = CHECK;
-            else if (newValid == Ternary.FALSE) valid = FROWN;
-            else valid = QUESTION;
-        });
-    }
-
-    public function get isValid () :Boolean { return valid == CHECK; }
+            if (newValid == Ternary.TRUE) valid = OK;
+            else if (newValid == Ternary.FALSE) valid = ERROR;
+            else valid = PENDING;
+        });
+    }
+
+    public function get isValid () :Boolean { return valid == OK; }

     public function updateModified (newModified :Ternary) :void {
         changeField("modified", function (..._) :void {
-            if (newModified == Ternary.TRUE) modified = CHECK;
+            if (newModified == Ternary.TRUE) modified = OK;
             else if (newModified == Ternary.FALSE) modified = " ";
-            else modified = QUESTION;
+            else modified = PENDING;
         });
     }

@@ -444,7 +444,7 @@

     protected var _uid :String;

-    protected static const QUESTION :String = "?";
-    protected static const FROWN :String = "☹";
-    protected static const CHECK :String = "✓";
+    protected static const PENDING :String = "...";
+    protected static const ERROR :String = "ERROR";
+    protected static const OK :String = "Ok";
 }


Properly check for the presence of the "tweens" child

(This was detecing every keyframe as having a custom tween)

--- exporter/src/main/as/flump/xfl/XflKeyframe.as
+++ exporter/src/main/as/flump/xfl/XflKeyframe.as
@@ -38,7 +38,7 @@

         if (symbolXml == null) return kf; // Purely labelled frame

-        if (xml.tweens != null) {
+        if (XmlUtil.hasChild(xml, "tweens")) {
             lib.addError(kf, ParseError.WARN, "Custom easing is not supported");
         }


Now avoiding infinite recursion in linkBindableProperty when value isn't
accepted by verifier function.

Change-Id: I4fdcf66c52ace803cadcb223ade21fe5df0d89c6

--- WeaveCore/src/weave/core/SessionManager.as
+++ WeaveCore/src/weave/core/SessionManager.as
@@ -1104,6 +1104,7 @@
 			var useLinkableValue:Boolean = true;
 			var callLaterTime:int = 0;
 			var uiComponent:UIComponent = bindableParent as UIComponent;
+			var recursiveCall:Boolean = false;
 			// a function that takes zero parameters and sets the bindable value.
 			var synchronize:Function = function(firstParam:* = undefined, callingLater:Boolean = false):void
 			{
@@ -1143,7 +1144,8 @@
 				}

 				// if the bindable value is not a boolean and the bindable parent has focus, delay synchronization
-				if (!(bindableParent[bindablePropertyName] is Boolean))
+				var bindableValue:Object = bindableParent[bindablePropertyName];
+				if (!(bindableValue is Boolean))
 				{
 					if (uiComponent && watcher)
 					{
@@ -1152,7 +1154,7 @@
 						{
 							if (linkableVariable is LinkableVariable)
 							{
-								if ((linkableVariable as LinkableVariable).verifyValue(bindableParent[bindablePropertyName]))
+								if ((linkableVariable as LinkableVariable).verifyValue(bindableValue))
 								{
 									// clear any existing error string
 									if (uiComponent.errorString)
@@ -1195,7 +1197,6 @@
 				}

 				// synchronize
-				var bindableValue:Object = bindableParent[bindablePropertyName];
 				if (useLinkableValue)
 				{
 					var linkableValue:Object = linkableVariable.getSessionState();
@@ -1231,8 +1232,13 @@
 					// be constraints on the session state that will prevent the callbacks
 					// from triggering if the bindable value does not match those constraints.
 					// This makes UIComponents update to the real value after they lose focus.
-					if (callbackCollection.triggerCounter == prevCount)
+					if (callbackCollection.triggerCounter == prevCount && !recursiveCall)
+					{
+						// avoid infinite recursion in the case where the new value is not accepted by a verifier function
+						recursiveCall = true;
 						synchronize();
+						recursiveCall = false;
+					}
 				}
 			};
 			// Copy session state over to bindable property now, before calling BindingUtils.bindSetter(),


added calls to lang()

added calls to lang()

--- WeaveUI/src/weave/editors/DynamicEditor.as
+++ WeaveUI/src/weave/editors/DynamicEditor.as
@@ -38,7 +38,6 @@
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableNumber;
 	import weave.core.LinkableString;
-	import weave.core.LinkableVariable;
 	import weave.core.SessionManager;
 	import weave.core.UIUtils;
 	import weave.primitives.WeaveTreeItem;
@@ -80,7 +79,7 @@
 			if (ln)
 			{
 				var input:IndentTextInput = new IndentTextInput();
-				input.prompt = "number";
+				input.prompt = lang("number");
 				input.translate = true;
 				input.label = label;
 				linkBindableProperty(ln, input, 'text', 250, true);
@@ -359,7 +358,7 @@
 		catch (e:Error)
 		{
 			// do nothing because user input was invalid
-			host.errorString = "Invalid JSON";
+			host.errorString = lang("Invalid JSON");
 			return;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

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

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

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

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

--- frameworks/projects/mx/src/mx/containers/Box.as
+++ frameworks/projects/mx/src/mx/containers/Box.as
@@ -70,6 +70,9 @@
 //--------------------------------------

 [IconFile("Box.png")]
+
+[Alternative(replacement="spark.components.HGroup", since="4.0")]
+[Alternative(replacement="spark.components.VGroup", since="4.0")]

 /**
  *  A Halo Box container lays out its children in a single vertical column


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

--- frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
+++ frameworks/projects/spark/src/spark/components/IItemRendererOwner.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: 16247
Author:   smgilson@adobe.com
Date:     2010-05-20T12:51:53.786607Z

Log Message:
-----------
merge 16246: fix asdoc issue in MXML syntax

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

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

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -207,7 +207,6 @@
  *    Properties
  *    autoLayout="true"
  *    creationPolicy="auto"
- *    horizontalScrollPosition="null"
  *    layout="BasicLayout"
  *
  *    Styles


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

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


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

--- frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as
+++ frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as
@@ -41,6 +41,8 @@
 import mx.events.FlexNativeMenuEvent;
 import mx.managers.ILayoutManagerClient;
 import mx.managers.ISystemManager;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Events
@@ -784,9 +786,9 @@
      */
     public function get dataProvider():Object
     {
-        if (mx_internal::_rootModel)
-        {
-            return mx_internal::_rootModel;
+        if (_rootModel)
+        {
+            return _rootModel;
         }
         else return null;
     }
@@ -796,9 +798,9 @@
      */
     public function set dataProvider(value:Object):void
     {
-        if (mx_internal::_rootModel)
-        {
-            mx_internal::_rootModel.removeEventListener(CollectionEvent.COLLECTION_CHANGE,
+        if (_rootModel)
+        {
+            _rootModel.removeEventListener(CollectionEvent.COLLECTION_CHANGE,
                                            collectionChangeHandler);
         }

@@ -815,18 +817,18 @@
             _hasRoot = true;
             var xl:XMLList = new XMLList();
             xl += value;
-            mx_internal::_rootModel = new XMLListCollection(xl);
+            _rootModel = new XMLListCollection(xl);
         }
         //if already a collection dont make new one
         else if (value is ICollectionView)
         {
-            mx_internal::_rootModel = ICollectionView(value);
-            if (mx_internal::_rootModel.length == 1)
+            _rootModel = ICollectionView(value);
+            if (_rootModel.length == 1)
                 _hasRoot = true;
         }
         else if (value is Array)
         {
-            mx_internal::_rootModel = new ArrayCollection(value as Array);
+            _rootModel = new ArrayCollection(value as Array);
         }
         //all other types get wrapped in an ArrayCollection
         else if (value is Object)
@@ -835,14 +837,14 @@
             // convert to an array containing this one item
             var tmp:Array = [];
             tmp.push(value);
-            mx_internal::_rootModel = new ArrayCollection(tmp);
+            _rootModel = new ArrayCollection(tmp);
         }
         else
         {
-            mx_internal::_rootModel = new ArrayCollection();
+            _rootModel = new ArrayCollection();
         }
         //add listeners as weak references
-        mx_internal::_rootModel.addEventListener(CollectionEvent.COLLECTION_CHANGE,
+        _rootModel.addEventListener(CollectionEvent.COLLECTION_CHANGE,
                                     collectionChangeHandler, false, 0, true);
         //flag for processing in commitProps
         dataProviderChanged = true;
@@ -1361,8 +1363,8 @@
         if (!invalidatePropertiesFlag && nestLevel > 0)
         {
             invalidatePropertiesFlag = true;
-            if (UIComponentGlobals.mx_internal::layoutManager)
-                UIComponentGlobals.mx_internal::layoutManager.invalidateProperties(this);
+            if (UIComponentGlobals.layoutManager)
+                UIComponentGlobals.layoutManager.invalidateProperties(this);
             else
             {
                 var myTimer:Timer = new Timer(100, 1);
@@ -1479,16 +1481,16 @@
             dataDescriptorChanged = false;

             // are we swallowing the root?
-            if (mx_internal::_rootModel && !_showRoot && _hasRoot)
-            {
-                var rootItem:* = mx_internal::_rootModel.createCursor().current;
+            if (_rootModel && !_showRoot && _hasRoot)
+            {
+                var rootItem:* = _rootModel.createCursor().current;
                 if (rootItem != null &&
-                    _dataDescriptor.isBranch(rootItem, mx_internal::_rootModel) &&
-                    _dataDescriptor.hasChildren(rootItem, mx_internal::_rootModel))
+                    _dataDescriptor.isBranch(rootItem, _rootModel) &&
+                    _dataDescriptor.hasChildren(rootItem, _rootModel))
                 {
                     // then get rootItem children
                     tmpCollection =
-                        _dataDescriptor.getChildren(rootItem, mx_internal::_rootModel);
+                        _dataDescriptor.getChildren(rootItem, _rootModel);
                 }
             }

@@ -1497,10 +1499,10 @@
             clearMenu(_nativeMenu);

             // make top level items
-            if (mx_internal::_rootModel)
+            if (_rootModel)
             {
                 if (!tmpCollection)
-                    tmpCollection = mx_internal::_rootModel;
+                    tmpCollection = _rootModel;
                 // not really a default handler, but we need to
                 // be later than the wrapper
                 tmpCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE,
@@ -1595,7 +1597,7 @@
             nativeMenuItem.checked = type == "check" && dataDescriptor.isToggled(data);

             // data
-            nativeMenuItem.data = dataDescriptor.getData(data, mx_internal::_rootModel);
+            nativeMenuItem.data = dataDescriptor.getData(data, _rootModel);

             // key equivalent
             nativeMenuItem.keyEquivalent = itemToKeyEquivalent(data);
@@ -1622,12 +1624,12 @@
             nativeMenuItem.addEventListener(flash.events.Event.SELECT, itemSelectHandler, false, 0, true);

             // recursive
-            if (dataDescriptor.isBranch(data, mx_internal::_rootModel) &&
-                dataDescriptor.hasChildren(data, mx_internal::_rootModel))
+            if (dataDescriptor.isBranch(data, _rootModel) &&
+                dataDescriptor.hasChildren(data, _rootModel))
             {
                 nativeMenuItem.submenu = createMenu();
                 populateMenu(nativeMenuItem.submenu,
-                    dataDescriptor.getChildren(data, mx_internal::_rootModel));
+                    dataDescriptor.getChildren(data, _rootModel));
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18259
Author:   deeptika@adobe.com
Date:     2010-10-21T09:02:19.811454Z

Log Message:
-----------
Automation support for item-editing, column resize and header clicks in spark DG
(New xml should be taken from changelist 290001 in perforce)

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkUITextFieldGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/manifest_automation_spark.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/AutomationSparkClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/skins/spark/SparkDefaultGridHeaderRendererAutomationImpl.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/gridClasses</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/SparkRichEditableTextAutomationHelper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/gridClasses/SparkGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/AutomationSparkClasses.as
+++ frameworks/projects/automation_spark/src/AutomationSparkClasses.as
@@ -50,6 +50,8 @@
 		import spark.automation.delegates.components.SparkVideoPlayerAutomationImpl;SparkVideoPlayerAutomationImpl;
 		import spark.automation.delegates.components.SparkRichEditableTextAutomationImpl;SparkRichEditableTextAutomationImpl;

+		import spark.automation.delegates.components.gridClasses.SparkGridItemRendererAutomationImpl;SparkGridItemRendererAutomationImpl;
+
 		import spark.automation.delegates.components.mediaClasses.SparkMuteButtonAutomationImpl;SparkMuteButtonAutomationImpl;
 		import spark.automation.delegates.components.mediaClasses.SparkVolumeBarAutomationImpl;SparkVolumeBarAutomationImpl;

@@ -68,8 +70,10 @@

 		import spark.automation.delegates.skins.spark.SparkDefaultComplexItemRendererAutomationImpl;SparkDefaultComplexItemRendererAutomationImpl;
 		import spark.automation.delegates.skins.spark.SparkDefaultGridItemRendererAutomationImpl;SparkDefaultGridItemRendererAutomationImpl;
+		import spark.automation.delegates.skins.spark.SparkDefaultGridHeaderRendererAutomationImpl;SparkDefaultGridHeaderRendererAutomationImpl;
 		import spark.automation.delegates.skins.spark.SparkDefaultItemRendererAutomationImpl;SparkDefaultItemRendererAutomationImpl;
-
+		import spark.automation.delegates.skins.spark.SparkUITextFieldGridItemRendererAutomationImpl;SparkUITextFieldGridItemRendererAutomationImpl;
+
 		import spark.automation.tabularData.SkinnableContainerTabularData;SkinnableContainerTabularData;
 		import spark.automation.tabularData.SparkDataGridTabularData;SparkDataGridTabularData;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16822
Author:   deeptika@adobe.com
Date:     2010-07-07T06:16:32.586582Z

Log Message:
-----------
Removing deprecated API and their usage.

QE notes:
Doc notes:
Bugs: FLEXDMV-2463 (LineaSeries legendData marker are not working if the series has lineStroke to a SolidColorStroke)
FLEXDMV-2470 (Remove deprecation or Remove deprecated properties in charting)
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/CartesianChartAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/AreaRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/HLOCSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/LineSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BubbleSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation/src/mx/automation/tabularData/CartesianChartTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/StackedSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/HLOCSeriesBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/AreaSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/charts/renderers/HLOCItemRenderer.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as
@@ -1806,47 +1806,7 @@

         updateDataTips();
     }
-
-    //----------------------------------
-    //  transforms
-    //----------------------------------
-
-    /**
-     *  The DataTransform objects that are managed by this chart.
-     *  Each chart contains one or more data transforms
-     *  that represent a set of axes used to map from tuples
-     *  from data space to screen space and vice-versa.
-     *  Most charts have only a single DataTransform object,
-     *  but CartesianChart controls that support second axes
-     *  can manage a second DataTransform as needed.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    [Deprecated(replacement="IChartElement2.dataTransform")]
-
-    protected function get transforms():Array /* of DataTransform */
-    {
-        return _transforms;
-    }
-
-    /**
-     *  @private
-     */
-    protected function set transforms(value:Array /* of DataTransform */):void
-    {
-        _transforms = value;
-
-        invalidateProperties();
-        invalidateSeries();
-        invalidateData();
-
-        legendDataChanged();
-    }
-
-
+
     //--------------------------------------------------------------------------
     //
     //  Diagnostics
@@ -2062,102 +2022,6 @@
     //
     //--------------------------------------------------------------------------

-    [Deprecated(replacement="Series.getAxis()")]
-    /**
-     *  Retrieves the Axis instance for a particular dimension of the chart.
-     *  This is a low level accessor.
-     *  You typically retrieve the Axis instance directly through a named property,
-     *  such as horizontalAxis, verticalAxis,
-     *  or radiusAxis.
-     *
-     *  @param dimension The dimension that you want to get the axis for.
-     *
-     *  @return The Axis instance.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function getAxis(dimension:String):IAxis
-    {
-        return transforms[0].getAxis(dimension);
-    }
-
-    [Deprecated(replacement="Series.setAxis()")]
-    /**
-     *  Assigns an Axis instance to a particular dimension of the chart.
-     *  This is a low-level accessor.
-     *  You typically set the Axis instance directly through a named property,
-     *  such as horizontalAxis, verticalAxis,
-     *  or radiusAxis.
-     *
-     *  @param dimension The dimension whose axis is responsible
-     *  for transforming the data.
-     *
-     *  @param value The Axis instance.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function setAxis(dimension:String, value:IAxis):void
-    {
-        transforms[0].setAxis(dimension, value);
-    }
-
-    [Deprecated(replacement="IChartElement2.dataToLocal()")]
-    /**
-     *  Converts a tuple of data values to an x-y coordinate on screen.
-     *  Call this method to transform data on to the screen
-     *  by using the same transform that the individual elements use.
-     *  For example, to create a custom highlight for a data region of a chart,
-     *  you might use this method to determine the on-screen coordinates
-     *  of the range of interest.
-     *
-     *
For Cartesian charts, you typically pass two values.
-     *  The first value maps to the horizontal axis,
-     *  and the second value maps to the vertical axis.

-     *
-     *
For polar charts, the first value maps to the angular axis,
-     *  and the second maps to the radial axis.

-     *
-     *  @param ...dataValues The data values to convert.
-     *
-     *  @return Coordinates that are relative to the chart.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function dataToLocal(... dataValues):Point
-    {
-        return null;
-    }
-
-    [Deprecated(replacement="IChartElement2.localToData()")]
-    /**
-     *  Converts a coordinate on screen to a tuple of data values.
-     *  Call this function to determine what data values
-     *  a particular point on screen represents.
-     *
Individual chart types determine how this transformation occurs.
-     *  The point is relative to the chart's coordinate space.

-     *
-     *  @param pt The Point object to convert.
-     *
-     *  @return The tuple of data values.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function localToData(pt:Point):Array /* of Object */
-    {
-        return null;
-    }

     /**
      *  Returns an array of HitData objects that describe


Transferred from the Adobe Open Source Subversion Repository

Revision: 3670
Author:   gosmith@adobe.com
Date:     2008-10-15T23:26:37.608871Z

Log Message:
-----------
The interaction of the 'text' and 'content' properties is now working as intended. If you set one and wait for the updateComplete event, you can now get the other. (In the meantime, the other is null.) If you set both at the same time, 'content' wins.

Also, setting the 'text' or the 'content' of a TextView now causes the selection range to be reset to (-1, -1), which means "no selection".

Reviewer: Deepa
Bugs: SDK-16035, SDK-16359, SDK-17307
QA: Please test the interaction of the 'text' and 'content' properties in TextGraphic, TextView, and TextArea.
Doc: No

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -279,9 +279,14 @@
         if (value == _content)
             return;

+        // Setting 'content' temporarily causes 'text' to become null.
+        // Later, after the 'content' has been committed into the TextFlow,
+        // getting 'text' will extract the text from the TextFlow.
+        _text = null;
+        textChanged = false;
+
         _content = value;
         contentChanged = true;
-        textInvalid = true;

         invalidateSize();
         invalidateDisplayList();
@@ -533,7 +538,7 @@
     private var textChanged:Boolean = false;

     /**
-     *  The text String displayed by this TextView..
+     *  The text String displayed by this TextView.
      */
     public function get text():String
     {
@@ -551,9 +556,17 @@
      */
     public function set text(value:String):void
     {
-        if (value == _text)
+		// If 'text' is being set after 'content', ignore it
+        // because 'content' has precedence.
+        if (contentChanged)
             return;

+        // Setting 'text' temporarily causes 'content' to become null.
+        // Later, after the 'text' has been committed into the TextFlow,
+        // getting 'content' will return the TextFlow.
+        _content = null;
+        contentChanged = false;
+
         _text = value;
         textChanged = true;

@@ -774,6 +787,11 @@
             if (textFlow && textFlow.flowComposer)
                 textFlow.flowComposer.removeControllerAt(0);

+            // If the text was changed, clear the selection.
+            if (textChanged || contentChanged)
+            	if (textFlow.interactionManager)
+                	textFlow.interactionManager.setSelection(-1, -1);
+
             // Create a new TextFlow for the current text.
             _content = textFlow = createTextFlow();

@@ -784,8 +802,8 @@
             textFlow.flowComposer = flowComposer;

             // Give it an EditManager to make it editable.
-            textFlow.interactionManager = new TextViewEditManager();
-
+            textFlow.interactionManager = new TextViewEditManager();
+
             // Listen to events from the TextFlow and its EditManager.
             addListeners(textFlow);

@@ -931,52 +949,49 @@
 	 */
 	private function createTextFlow():TextFlow
 	{
-		if (contentChanged || textChanged)
-        {
-		    if (contentChanged)
-		    {
-                if (content is TextFlow)
-                {
-                    textFlow = TextFlow(content);
-                }
-                else if (content is Array)
-                {
-                    textFlow = new TextFlow();
-                    textFlow.mxmlChildren = content as Array;
-                }
-                else if (content is FlowElement)
-                {
-                    textFlow = new TextFlow();
-                    textFlow.mxmlChildren = [ content ];
-                }
-			    else if (content is String)
-			    {
-				    textFlow = importMarkup(String(content));
-			    }
-			    else if (content == null)
-			    {
-				    textFlow = createEmptyTextFlow();
-			    }
-                else
-                {
-                    throw new Error("invalid content");
-                }
-		    }
-		    else if (textChanged)
-		    {
-			    if (text != null && text != "")
-			    {
-				    textFlow = TextFilter.importToFlow(text, TextFilter.PLAIN_TEXT_FORMAT);
-			    }
-			    else
-			    {
-				    textFlow = createEmptyTextFlow();
-			    }
-		    }
-        }
-
- 		contentChanged = false;
-		textChanged = false;
+		if (contentChanged)
+		{
+            if (_content is TextFlow)
+            {
+                textFlow = TextFlow(_content);
+            }
+            else if (_content is Array)
+            {
+                textFlow = new TextFlow();
+                textFlow.mxmlChildren = _content as Array;
+            }
+            else if (_content is FlowElement)
+            {
+                textFlow = new TextFlow();
+                textFlow.mxmlChildren = [ _content ];
+            }
+			else if (_content is String)
+			{
+				textFlow = importMarkup(String(_content));
+			}
+			else if (_content == null)
+			{
+				textFlow = createEmptyTextFlow();
+			}
+            else
+            {
+                throw new Error("invalid content");
+            }
+            textInvalid = true;
+            dispatchEvent(new Event("textInvalid"));
+		}
+		else if (textChanged)
+		{
+            var t:String = _text;
+			if (t != null && t != "")
+			{
+				textFlow = TextFilter.importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
+			}
+			else
+			{
+				textFlow = createEmptyTextFlow();
+			}
+		}

         if (hostFormatsInvalid)
         {
@@ -1324,6 +1339,7 @@
         // cause the 'text' getter to call extractText() to extract
         // the text by walking the TextFlow.
         textInvalid = true;
+        dispatchEvent(new Event("textInvalid"));

         // Dispatch a 'change' event from the TextView
         // as notification that an editing operation has occurred.


fixed (probably) Bug #910 raycasting hit point is not correct

--- src/aerys/minko/render/geometry/Geometry.as
+++ src/aerys/minko/render/geometry/Geometry.as
@@ -1003,7 +1003,8 @@
 			var xyzStream 		: VertexStream 	= vertexStream.getStreamByComponent(VertexComponent.XYZ);
 			var format 			: VertexFormat 	= xyzStream.format;
 			var xyzVertexSize 	: uint 			= format.numBytesPerVertex;
-			var offset			: uint 			= format.getOffsetForComponent(VertexComponent.XYZ);
+			var offsetInBytes	: uint 			= format.getBytesOffsetForComponent(VertexComponent.XYZ);
+			var stride			: uint			= VertexComponent.XYZ.numProperties;

 			var localDirectionX : Number 		= localDirection.x;
 			var localDirectionY	: Number 		= localDirection.y;
@@ -1045,21 +1046,21 @@
 			var edge2Y 			: Number 		= .0;
 			var edge2Z 			: Number 		= .0;

-			for (var verticeIndex : uint = 0; verticeIndex < numVertices; verticeIndex += 3)
+			for (var verticeIndex : uint = 0; verticeIndex < numVertices; verticeIndex += stride)
 			{
 				indicesData.position = verticeIndex * 2;

-				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset
+				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes;
 				v0X = xyzData.readFloat();
 				v0Y = xyzData.readFloat();
 				v0Z = xyzData.readFloat();

-				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset;
+				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes;
 				v1X = xyzData.readFloat();
 				v1Y = xyzData.readFloat();
 				v1Z = xyzData.readFloat();

-				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset;
+				xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes;
 				v2X = xyzData.readFloat();
 				v2Y = xyzData.readFloat();
 				v2Z = xyzData.readFloat();
@@ -1168,17 +1169,17 @@
 				{
 					indicesData.position = triangleIndice * 2;

-					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset
+					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes
 					v0X = xyzData.readFloat();
 					v0Y = xyzData.readFloat();
 					v0Z = xyzData.readFloat();

-					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset;
+					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes;
 					v1X = xyzData.readFloat();
 					v1Y = xyzData.readFloat();
 					v1Z = xyzData.readFloat();

-					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offset;
+					xyzData.position = indicesData.readUnsignedShort() * xyzVertexSize + offsetInBytes;
 					v2X = xyzData.readFloat();
 					v2Y = xyzData.readFloat();
 					v2Z = xyzData.readFloat();


:bug: fix irq service routine

:bug: fix irq service routine

--- index.as
+++ index.as
@@ -326,7 +326,7 @@

   // External RAM: $A000 – $BFFF
   if (address & 0xF000) <= 0xB000 {
-    // printf("warn: unhandled write to external ram: $%04X ($%02X)\n", address, value);
+    printf("warn: unhandled write to external ram: $%04X ($%02X)\n", address, value);
     return;
   }

@@ -4320,27 +4320,30 @@
   }

   // STEP -> Interrupts
-  if IME and (IE > 0) and (IF > 0) {
+
+  let irq = IF & IE;
+  if IME and irq > 0 {
     om_push16(&PC);

-    if (IF & 0x01) != 0 and (IE & 0x01) != 0 {
+    let pc_ = PC;
+
+    if (irq & 0x01) != 0 {
       // V-Blank
-      printf("VBLANK!\n");
       PC = 0x40;
       IF &= ~0x01;
-    } else if (IF & 0x02) != 0 and (IE & 0x02) != 0 {
+    } else if (irq & 0x02) != 0 {
       // LCD STAT
       PC = 0x48;
       IF &= ~0x02;
-    } else if (IF & 0x04) != 0 and (IE & 0x04) != 0 {
+    } else if (irq & 0x04) != 0 {
       // Timer
       PC = 0x50;
       IF &= ~0x04;
-    } else if (IF & 0x08) != 0 and (IE & 0x08) != 0 {
+    } else if (irq & 0x08) != 0 {
       // Serial
       PC = 0x58;
       IF &= ~0x08;
-    } else if (IF & 0x10) != 0 and (IE & 0x10) != 0 {
+    } else if (irq & 0x10) != 0 {
       // Joypad
       PC = 0x60;
       IF &= ~0x10;
@@ -4350,8 +4353,6 @@
     IME = false;

     if HALT {
-      printf("disable halt (from interrupt)\n");
-
       CYCLES += 4;
       HALT = false;
     }


[VectorCommon] fixed issue with double sequenceProvider memento creation for undo/redo stack

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@139 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- VectorCommon/src/org/jbei/lib/SequenceProvider.as
+++ VectorCommon/src/org/jbei/lib/SequenceProvider.as
@@ -103,7 +103,7 @@
                 }
             }

-            return new SequenceProviderMemento(_name, _circular, _sequence, clonedFeatures);
+            return new SequenceProviderMemento(_name, _circular, DNATools.createDNA(_sequence.seqString()), clonedFeatures);
         }

         public function setMemento(memento:IMemento):void