Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/events/PropertyChangeEvent.as
+++ frameworks/projects/framework/src/mx/events/PropertyChangeEvent.as
@@ -0,0 +1,229 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+import flash.events.Event;
+import mx.events.PropertyChangeEventKind;
+
+/**
+ * The PropertyChangeEvent class represents the event object
+ * passed to the event listener when one of the properties of
+ * an object has changed, and provides information about the change.
+ * This event is used by collection classes, and is the only way for
+ * collections to know that the data they represent has changed.
+ * This event is also used by the Flex data binding mechanism.
+ *
+ * @see PropertyChangeEventKind
+ */
+public class PropertyChangeEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    // Note: If the value for CHANGE changes,
+    // update mx.utils.ObjectProxy's Bindable metadata.
+
+    /**
+     *  The PropertyChangeEvent.PROPERTY_CHANGE constant defines the value of the
+     *  type property of the event object for a PropertyChange event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	Determined by the constructor; defaults to false.

+     *
cancelable	Determined by the constructor; defaults to false.

+     *
kind	The kind of change; PropertyChangeEventKind.UPDATE
+     *             or PropertyChangeEventKind.DELETE.

+     *
oldValue	The original property value.

+     *
newValue	The new property value, if any.

+     *
property	The property that changed.

+     *
source	The object that contains the property that changed.

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *

+     *
+     *  @eventType propertyChange
+     *
+     */
+    public static const PROPERTY_CHANGE:String = "propertyChange";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns a new PropertyChangeEvent of kind
+     *  PropertyChangeEventKind.UPDATE
+     *  with the specified properties.
+     *  This is a convenience method.
+     *
+     *  @param source The object where the change occured.
+     *
+     *  @param property A String, QName, or int
+     *  specifying the property that changed,
+     *
+     *  @param oldValue The value of the property before the change.
+     *
+     *  @param newValue The value of the property after the change.
+     *
+     *  @return A newly constructed PropertyChangeEvent
+     *  with the specified properties.
+     */
+    public static function createUpdateEvent(
+                                    source:Object,
+                                    property:Object,
+                                    oldValue:Object,
+                                    newValue:Object):PropertyChangeEvent
+    {
+        var event:PropertyChangeEvent =
+            new PropertyChangeEvent(PROPERTY_CHANGE);
+
+        event.kind = PropertyChangeEventKind.UPDATE;
+        event.oldValue = oldValue;
+        event.newValue = newValue;
+        event.source = source;
+        event.property = property;
+
+        return event;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that triggered the event.
+     *
+     *  @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 kind Specifies the kind of change.
+     *  The possible values are PropertyChangeEventKind.UPDATE,
+     *  PropertyChangeEventKind.DELETE, and null.
+     *
+     *  @param property A String, QName, or int
+     *  specifying the property that changed.
+     *
+     *  @param oldValue The value of the property before the change.
+     *
+     *  @param newValue The value of the property after the change.
+     *
+     *  @param source The object that the change occured on.
+     */
+    public function PropertyChangeEvent(type:String, bubbles:Boolean = false,
+                                        cancelable:Boolean = false,
+                                        kind:String = null,
+                                        property:Object = null,
+                                        oldValue:Object = null,
+                                        newValue:Object = null,
+                                        source:Object = null)
+    {
+        super(type, bubbles, cancelable);
+
+        this.kind = kind;
+        this.property = property;
+        this.oldValue = oldValue;
+        this.newValue = newValue;
+        this.source = source;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  kind
+    //----------------------------------
+
+    /**
+     *  Specifies the kind of change.
+     *  The possible values are PropertyChangeEventKind.UPDATE,
+     *  PropertyChangeEventKind.DELETE, and null.
+     */
+    public var kind:String;
+
+    //----------------------------------
+    //  newValue
+    //----------------------------------
+
+    /**
+     *  The value of the property after the change.
+     */
+    public var newValue:Object;
+
+    //----------------------------------
+    //  oldValue
+    //----------------------------------
+
+    /**
+     *  The value of the property before the change.
+     */
+    public var oldValue:Object;
+
+    //----------------------------------
+    //  property
+    //----------------------------------
+
+    /**
+     *  A String, QName, or int specifying the property that changed.
+     */
+    public var property:Object;
+
+    //----------------------------------
+    //  source
+    //----------------------------------
+
+    /**
+     *  The object that the change occured on.
+     */
+    public var source:Object;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new PropertyChangeEvent(type, bubbles, cancelable, kind,
+                                       property, oldValue, newValue, source);
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/resources/IResourceManager.as
+++ frameworks/projects/framework/src/mx/resources/IResourceManager.as
@@ -87,6 +87,11 @@
  *  @see mx.resources.ResourceManager
  *  @see mx.resources.IResourceBundle
  *  @see mx.resources.ResourceBundle
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IResourceManager extends IEventDispatcher
 {
@@ -140,6 +145,11 @@
      *
      *
Setting this property causes the ResourceManager to dispatch
      *  a "change" Event.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get localeChain():Array /* of String */;

@@ -192,6 +202,11 @@
      *
      *  @see mx.events.ResourceEvent
      *  @see mx.resources.IResourceManager#update()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function loadResourceModule(url:String, update:Boolean = true,
                                 applicationDomain:ApplicationDomain = null,
@@ -200,6 +215,11 @@

     /**
      *  This method has not yet been implemented.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function unloadResourceModule(url:String, update:Boolean = true):void;

@@ -209,6 +229,11 @@
      *  methods such as getString().
      *
      *  @param resourceBundle The resource bundle to be added.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function addResourceBundle(resourceBundle:IResourceBundle):void;

@@ -222,6 +247,11 @@
      *  @param bundleName A bundle name such as "MyResources".
      *
      *  @see mx.resources.IResourceBundle
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function removeResourceBundle(locale:String, bundleName:String):void;

@@ -234,6 +264,11 @@
      *  @param locale A locale string such as "en_US".
      *
      *  @see mx.resources.IResourceBundle
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function removeResourceBundlesForLocale(locale:String):void;

@@ -252,6 +287,11 @@
      *  of a UIComponent, Formatter, or Validator to execute.
      *  Many components implement this method to update
      *  their state based on the latest resources.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function update():void;

@@ -262,6 +302,11 @@
      *
The order of locales in this array is not specified.

      *
      *  @return An Array of locale Strings.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getLocales():Array /* of String */;

@@ -273,6 +318,11 @@
      *  Capabilities.languages.
      *
      *  @return An Array of locale Strings.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getPreferredLocaleChain():Array /* of String */;

@@ -288,6 +338,11 @@
      *  @return An Array of bundle names.
      *
      *  @see mx.resources.IResourceBundle
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getBundleNamesForLocale(locale:String):Array /* of String */;

@@ -305,6 +360,11 @@
      *  and bundleName if one exists; otherwise null.
      *
      *  @see mx.resources.IResourceBundle
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getResourceBundle(locale:String,
                                bundleName:String):IResourceBundle;
@@ -321,6 +381,11 @@
      *
      *  @return The first ResourceBundle in the localeChain
      *  that contains the specified resource, or null.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function findResourceBundleWithResource(
                         bundleName:String,
@@ -361,6 +426,11 @@
      *  @return The resource value, exactly as it is stored
      *  in the content Object,
      *  or undefined if the resource is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getObject(bundleName:String, resourceName:String,
                        locale:String = null):*;
@@ -400,6 +470,11 @@
      *
      *  @return The resource value, as a String,
      *  or null if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getString(bundleName:String, resourceName:String,
                        parameters:Array = null,
@@ -440,6 +515,11 @@
      *
      *  @return The resource value, as an Array of Strings,
      *  or null if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getStringArray(bundleName:String,
                             resourceName:String,
@@ -476,6 +556,11 @@
      *
      *  @return The resource value, as a Number,
      *  or NaN if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getNumber(bundleName:String, resourceName:String,
                        locale:String = null):Number;
@@ -511,6 +596,11 @@
      *
      *  @return The resource value, as an int,
      *  or 0 if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getInt(bundleName:String, resourceName:String,
                     locale:String = null):int;
@@ -546,6 +636,11 @@
      *
      *  @return The resource value, as a uint,
      *  or 0 if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getUint(bundleName:String, resourceName:String,
                      locale:String = null):uint;
@@ -576,6 +671,11 @@
      *
      *  @return The resource value, as a Boolean,
      *  or false if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getBoolean(bundleName:String, resourceName:String,
                         locale:String = null):Boolean;
@@ -615,12 +715,22 @@
      *
      *  @return The resource value, as a Class,
      *  or null if it is not found.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function getClass(bundleName:String, resourceName:String,
                       locale:String = null):Class;

     /**
      *  Used only by classes which implement IFlexModuleFactory.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function installCompiledResourceBundles(
                                 applicationDomain:ApplicationDomain,
@@ -629,6 +739,11 @@

 	/**
 	 *  Used only by classes which implement IFlexModuleFactory.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     function initializeLocaleChain(compiledLocales:Array):void;
 }


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

--- frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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: 8760
Author:   cframpto@adobe.com
Date:     2009-07-23T17:26:12.518306Z

Log Message:
-----------
The textFlow getter needs to make sure there is a composer in place if the editingMode != read only.

QE notes:
Doc notes:
Bugs: SDK-22374
Reviewer: will be Gordon
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -1491,6 +1491,14 @@
                 _textFlow = staticPlainTextImporter.importToFlow(_text);
         }

+        // If not read-only, make sure the textFlow has a composer in
+        // place so that it can be modified by the caller if desired.
+        if (editingMode != EditingMode.READ_ONLY)
+        {
+            _textContainerManager.beginInteraction();
+            _textContainerManager.endInteraction();
+        }
+
         return _textFlow;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11934
Author:   cframpto@adobe.com
Date:     2009-11-18T15:01:08.366461Z

Log Message:
-----------
Remove dependencies RichEditableText api calls had on using an interactionManager.  API calls can be done regardless of the values of editable and selectable which just apply to interactive editing.

The api calls are: insertText, appendText, selectRange, selectAll, setFormatOfRange, getFormatOfRange.  The first 4 methods can change the selection and when that occurs, a selectionChange event will be dispatched.

The editingMode should not be changed any event handler while in the middle of a text operation.  This includes the selectionChange event.

I may make a few more tweaks to this code as I continue to test and find edge conditions.

QE notes:
Doc notes: editingMode should not be changed by any event handler while in the middle of a text operation
Bugs: SDK-23638
Reviewer: Gordon
Tests run: checkintests, TextArea, TextInput, NumericStepper, ComboBox
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -668,11 +668,6 @@
     /**
      *  @private
      */
-    mx_internal var ignoreSelectionChangeEvent:Boolean = false;
-
-    /**
-     *  @private
-     */
     mx_internal var passwordChar:String = "*";

     /**
@@ -1352,7 +1347,26 @@
      */
     private function set editingMode(value:String):void
     {
+        var lastEditingMode:String = _textContainerManager.editingMode;
+
+        if (lastEditingMode == value)
+            return;
+
         _textContainerManager.editingMode = value;
+
+        // Make sure the selection manager selection is in sync with the
+        // current selection.
+        if (value != EditingMode.READ_ONLY &&
+            _selectionAnchorPosition != -1 && _selectionActivePosition != -1)
+        {
+            var selectionManager:ISelectionManager =
+                _textContainerManager.beginInteraction();
+
+            selectionManager.selectRange(
+                _selectionAnchorPosition, _selectionActivePosition);
+
+            _textContainerManager.endInteraction();
+        }
     }

     //----------------------------------
@@ -1922,7 +1936,7 @@
     /**
      *  @private
      */
-    private var _textContainerManager:TextContainerManager;
+    private var _textContainerManager:RichEditableTextContainerManager;

     /**
      *  @private
@@ -2324,12 +2338,13 @@
             if (editingMode != EditingMode.READ_ONLY)
             {
                 // Must preserve the selection, if there was one.
-                var selectionManager:ISelectionManager = getSelectionManager();
+                var selManager:ISelectionManager =
+                    _textContainerManager.beginInteraction();

                 // The visible selection will be refreshed during the update.
-                selectionManager.selectRange(oldAnchorPosition, oldActivePosition);
+                selManager.selectRange(oldAnchorPosition, oldActivePosition);

-                releaseSelectionManager();
+                _textContainerManager.endInteraction();
             }

             displayAsPasswordChanged = false;
@@ -2876,14 +2891,28 @@
         // Make sure all properties are committed before doing the operation.
         validateNow();

-        var selectionManager:ISelectionManager = getSelectionManager();
-
-        selectionManager.selectRange(anchorPosition, activePosition);
-
-        // Refresh the selection.  This does not cause a damage event.
-        selectionManager.refreshSelection();
-
-        releaseSelectionManager();
+        if (editingMode == EditingMode.READ_ONLY)
+        {
+            var selectionState:SelectionState =
+                new SelectionState(textFlow, anchorPosition, activePosition);
+
+            var selectionEvent:SelectionEvent =
+                new SelectionEvent(SelectionEvent.SELECTION_CHANGE,
+                                   false, false, selectionState);
+
+            textContainerManager_selectionChangeHandler(selectionEvent);
+        }
+        else
+        {
+            var im:ISelectionManager = _textContainerManager.beginInteraction();
+
+            im.selectRange(anchorPosition, activePosition);
+
+            // Refresh the selection.  This does not cause a damage event.
+            im.refreshSelection();
+
+            _textContainerManager.endInteraction();
+        }

         // Remember if the current selection is a range which was set
         // programatically.
@@ -2939,8 +2968,6 @@
          // Make sure all properties are committed before doing the operation.
         validateNow();

-        var selectionManager:ISelectionManager = getSelectionManager();
-
         // This internal TLF object maps the names of format properties
         // to Property instances.
         // Each Property instance has a category property which tells
@@ -2990,36 +3017,32 @@
         var containerFormat:ITextLayoutFormat;
         var paragraphFormat:ITextLayoutFormat;
         var characterFormat:ITextLayoutFormat;
-
-        // Unfortunatley getCommonContainerFormat() works only on the curent
-        // selection, so if another selection is requested, we have to
-        // temporarily change the current selection and then restore it when
-        // we are done.
-        var oldAnchorPosition:int;
-        var oldActivePosition:int;
-        if (anchorPosition != -1 && activePosition != -1)
-        {
-            oldAnchorPosition = _selectionAnchorPosition;
-            oldActivePosition = _selectionActivePosition;
-
-            ignoreSelectionChangeEvent = true;
-            selectionManager.selectRange(anchorPosition, activePosition);
-        }
-
+
+        if (anchorPosition == -1 && activePosition == -1)
+        {
+            anchorPosition = _selectionAnchorPosition;
+            activePosition = _selectionActivePosition;
+        }
+
         if (needContainerFormat)
-            containerFormat = selectionManager.getCommonContainerFormat();
+        {
+            containerFormat =
+                _textContainerManager.getCommonContainerFormat();
+        }

         if (needParagraphFormat)
-            paragraphFormat = selectionManager.getCommonParagraphFormat();
-
+        {
+            paragraphFormat =
+                _textContainerManager.getCommonParagraphFormat(
+                    anchorPosition, activePosition);
+        }
+
         if (needCharacterFormat)
-            characterFormat = selectionManager.getCommonCharacterFormat();
-
-        if (anchorPosition != -1 && activePosition != -1)
-        {
-            selectionManager.selectRange(oldAnchorPosition, oldActivePosition);
-            ignoreSelectionChangeEvent = false;
-        }
+        {
+            characterFormat =
+                _textContainerManager.getCommonCharacterFormat(
+                    anchorPosition, activePosition);
+        }

         // Extract the requested formats to return.
         for each (p in requestedFormats)
@@ -3036,9 +3059,6 @@
             else if (category == Category.CHARACTER && characterFormat)
                 format[p] = characterFormat[p];
         }
-
-        // All done with the selection manager.
-        releaseSelectionManager();

         return format;
     }
@@ -3070,8 +3090,6 @@
     {
          // Make sure all properties are committed before doing the operation.
         validateNow();
-
-        var editManager:IEditManager = getEditManager();

         // Assign each specified attribute to one of three format objects,
         // depending on whether it is container-, paragraph-,
@@ -3113,25 +3131,24 @@
             }
         }

-        var selectionState:SelectionState =
-            anchorPosition == -1 || activePosition == -1 ? null :
-            new SelectionState(editManager.textFlow,
-                               anchorPosition,
-                               activePosition);
-
+        // If the selection isn't specified, use the current one.
+        if (anchorPosition == -1 && activePosition == -1)
+        {
+            anchorPosition = _selectionAnchorPosition;
+            activePosition = _selectionActivePosition;
+        }
+
         // Apply the three format objects to the current selection if
         // selectionState is null, else the specified selection.
-        editManager.applyFormat(
-            characterFormat, paragraphFormat, containerFormat, selectionState);
-
-        // All done with the edit manager.
-        releaseEditManager(editManager);
-    }
-
-    /**
-     *  @private
-     */
-    mx_internal function createTextContainerManager():TextContainerManager
+        _textContainerManager.applyFormatOperation(
+            characterFormat, paragraphFormat, containerFormat,
+            anchorPosition, activePosition);
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function createTextContainerManager():RichEditableTextContainerManager
     {
         return new RichEditableTextContainerManager(this, staticConfiguration);
     }
@@ -3231,71 +3248,6 @@
         return fontContext;
     }

-    /**
-     *  @private
-     *  The editingMode is set to READ_SELECT if not already READ_SELECT or
-     *  READ_WRITE.
-     *  When done call releaseSelectionManager().
-     */
-    private function getSelectionManager():ISelectionManager
-    {
-        priorEditingMode = editingMode;
-
-        if (editingMode == EditingMode.READ_ONLY)
-            editingMode = EditingMode.READ_SELECT;
-
-        return SelectionManager(_textContainerManager.beginInteraction());
-    }
-
-    /**
-     *  @private
-     */
-    private function releaseSelectionManager():void
-    {
-        _textContainerManager.endInteraction();
-
-        editingMode = priorEditingMode;
-    }
-
-    /**
-     *  @private
-     *  The editingMode is set to READ_WRITE.
-     *  When done call releaseEditManager().  Should only be used by API calls.
-     */
-    private function getEditManager():IEditManager
-    {
-        // This triggers a damage event if the interactionManager is
-        // changed.
-
-        priorEditingMode = editingMode;
-
-        if (editingMode != EditingMode.READ_WRITE)
-            editingMode = EditingMode.READ_WRITE;
-
-        var editManager:IEditManager =
-            EditManager(_textContainerManager.beginInteraction());
-
-        // Combine all the edits from one API call into one operation so it
-        // can be undone as a single operation.  It will also prevent this from
-        // possibibly being combined with the last operation.
-        editManager.beginCompositeOperation();
-
-        return editManager;
-    }
-
-    /**
-     *  @private
-     *  Should only be used by API calls.
-     */
-    private function releaseEditManager(editManager:IEditManager):void
-    {
-        editManager.endCompositeOperation();
-
-        _textContainerManager.endInteraction();
-
-        editingMode = priorEditingMode;
-    }
-
     /**
      *  @private
      *  Return true if there is a width and height to use for the measure.
@@ -3612,37 +3564,32 @@
      *
      *  This is used when text is either inserted or appended via the API.
      */
-    private function handleInsertText(text:String, isAppend:Boolean=false):void
+    private function handleInsertText(newText:String, isAppend:Boolean=false):void
     {
         // Make sure all properties are committed and events dispatched
         // before doing the append.
         validateNow();

-        // Always use the EditManager regardless of the values of
-        // selectable, editable and enabled.
-        var editManager:IEditManager = getEditManager();
-
-        // An append is an insert with the selection set to the end.
-        // If no selection, then it's an append.
-         if (isAppend || !editManager.hasSelection())
-            editManager.selectRange(int.MAX_VALUE, int.MAX_VALUE);
-
-        dispatchChangeAndChangingEvents = false;
-
-        // Insert the text.  It will be composed but the display will not be
-        // updated because of our override of
-        // EditManager.updateAllControllers().
-        editManager.insertText(text);
-
-        // Make the insertion happen now rather than on the next frame.
-        editManager.flushPendingOperations();
-
-        dispatchChangeAndChangingEvents = true;
-
-        // All done with edit manager.
-        releaseEditManager(editManager);
-
-        dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
+        if (isAppend)
+        {
+            // Set insertion pt to the end of the current text.
+            _selectionAnchorPosition = text.length;
+            _selectionActivePosition = _selectionAnchorPosition;
+        }
+        else
+        {
+            // Insert requires a selection, or it is a noop.
+            if (_selectionAnchorPosition == -1 || _selectionActivePosition == -1)
+                return;
+        }
+
+        // This will update the selection after the operation is done.
+        var success:Boolean =
+            _textContainerManager.insertTextOperation(
+                newText, _selectionAnchorPosition, _selectionActivePosition);
+
+        if (success)
+            dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
     }

     /**
@@ -4066,20 +4013,22 @@
     private function textContainerManager_selectionChangeHandler(
                         event:SelectionEvent):void
     {
-        if (ignoreSelectionChangeEvent)
-            return;
-
         var oldAnchor:int = _selectionAnchorPosition;
         var oldActive:int = _selectionActivePosition;

-        var selectionManager:ISelectionManager =
-            _textContainerManager.beginInteraction();
-
-        _selectionAnchorPosition = selectionManager.anchorPosition;
-        _selectionActivePosition = selectionManager.activePosition;
-
-        _textContainerManager.endInteraction();
-
+        var selectionState:SelectionState = event.selectionState;
+
+        if (selectionState)
+        {
+            _selectionAnchorPosition = selectionState.anchorPosition;
+            _selectionActivePosition = selectionState.activePosition;
+        }
+        else
+        {
+            _selectionAnchorPosition = -1;
+            _selectionActivePosition = -1;
+        }
+
         // Selection changed so reset.
         hasProgrammaticSelectionRange = false;


Code clean

Code clean

--- collect-client/src/main/flex/org/openforis/collect/presenter/AttributePresenter.as
+++ collect-client/src/main/flex/org/openforis/collect/presenter/AttributePresenter.as
@@ -1,14 +1,13 @@
 package org.openforis.collect.presenter {
 	import mx.binding.utils.ChangeWatcher;
-	import mx.collections.IList;
 	import mx.core.UIComponent;
 	import mx.events.PropertyChangeEvent;

 	import org.openforis.collect.event.ApplicationEvent;
 	import org.openforis.collect.metamodel.proxy.AttributeDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.CodeAttributeDefinitionProxy;
+	import org.openforis.collect.model.proxy.AttributeChangeProxy;
 	import org.openforis.collect.model.proxy.AttributeProxy;
-	import org.openforis.collect.model.proxy.AttributeChangeProxy;
 	import org.openforis.collect.model.proxy.EntityChangeProxy;
 	import org.openforis.collect.model.proxy.NodeChangeProxy;
 	import org.openforis.collect.model.proxy.NodeChangeSetProxy;


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10275
Author:   gruehle@adobe.com
Date:     2009-09-15T19:13:55.351053Z

Log Message:
-----------
Beta 2 bug fix. Remove styleProxy from SkinnableTextBase, and replace with pushing padding styles from the skin into the textDisplay.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -23,7 +23,6 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;
-import mx.styles.StyleProxy;
 import mx.utils.BitFlagUtil;

 import spark.components.TextSelectionHighlighting;
@@ -236,16 +235,6 @@
      *  @private
      */
     private static const WIDTH_IN_CHARS_PROPERTY_FLAG:uint = 1 << 12;
-
-    /**
-     *  @private
-     */
-    private static const paddingStyleFilters:Object = {
-        "paddingLeft":"paddingLeft",
-        "paddingTop":"paddingTop",
-        "paddingRight":"paddingRight",
-        "paddingBottom":"paddingBottom"
-    }

     //--------------------------------------------------------------------------
     //
@@ -821,9 +810,6 @@

             textDisplay.addEventListener(FlexEvent.VALUE_COMMIT,
                                          textDisplay_valueCommitHandler);
-
-            // Proxy padding styles to the textDisplay
-            textDisplay.styleName = new StyleProxy(this, paddingStyleFilters);
         }
     }


Fixed SET description

Fixed SET description

--- src/Values/OpcodeValue.as
+++ src/Values/OpcodeValue.as
@@ -81,7 +81,7 @@
 		public static const OP_SUB:OpcodeValue = new OpcodeValue("SUB", 2, "Subtract the TARGET register from the SOURCE register, and store the difference in the DESTINATION register.", "Subtract");
 		public static const OP_MUL:OpcodeValue = new OpcodeValue("MUL", 3, "Multiply the SOURCE register with the TARGET register, and store the product in the DESTINATION register.", "Multiply");
 		public static const OP_DIV:OpcodeValue = new OpcodeValue("DIV", 4, "Divide the SOURCE register by the TARGET register, and store the quotient in the DESTINATION register.", "Divide");
-		public static const OP_SET:OpcodeValue = new OpcodeValue("SET", 5, "Set the TARGET register to the SOURCE value.", "Set");
+		public static const OP_SET:OpcodeValue = new OpcodeValue("SET", 5, "Set the DESTINATION register to the SOURCE value.", "Set");
 		public static const OP_JMP:OpcodeValue = new OpcodeValue("JMP", 6, "Jump over the DESTINATION value, to the instruction after.", "Jump");
 		public static const OP_SAV:OpcodeValue = new OpcodeValue("SAV", 7, "Set memory at the value of the TARGET register to the value of the SOURCE register.", "Save");
 		public static const OP_BEQ:OpcodeValue = new OpcodeValue("BEQ", 8, "Jump over the DESTINATION value if the SOURCE register equals the TARGET register.", "Branch");


coding

coding

--- src/org/hola/JSURLStream.as
+++ src/org/hola/JSURLStream.as
@@ -4,12 +4,10 @@
 package org.hola {
     import flash.events.*;
     import flash.external.ExternalInterface;
-    import org.hola.ZExternalInterface;
     import flash.net.URLRequest;
     import flash.net.URLStream;
     import flash.utils.ByteArray;
-    import flash.utils.getTimer;
-    import flash.utils.Timer;
+    import org.hola.ZExternalInterface;
     import org.hola.ZErr;
     import org.hola.Base64;
     import org.hola.WorkerUtils;
@@ -36,8 +34,8 @@
             /* XXX arik: setting this to true will pass js exceptions to
              * as3 and as3 exceptions to js. this may break current customer
              * code
-            ExternalInterface.marshallExceptions = true;
-            */
+             ExternalInterface.marshallExceptions = true;
+             */
             ExternalInterface.addCallback('hola_onFragmentData',
                 hola_onFragmentData);
             js_api_inited = true;
@@ -181,18 +179,13 @@
             var fetchBinStream : URLStream = o.fetchBinReq.stream;
             _resource = _resource || new ByteArray();
             var prev : Number = _resource.position;
-            var len : Number =
-                Math.min(fetchBinStream.bytesAvailable, 128*1024);
-            // XXX arik: seems that flashls already have timer to process data
-            // so no need for this one
-            len = fetchBinStream.bytesAvailable;
+            var len : Number = fetchBinStream.bytesAvailable;
             if (len)
             {
                 fetchBinStream.readBytes(_resource, _resource.length, len);
                 _resource.position = prev;
-                var finalLength : Number = o.fetchBinReq.bytesTotal;
                 dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false,
-                    false, _resource.length, finalLength));
+                    false, _resource.length, o.fetchBinReq.bytesTotal));
             }
             if (_resource.length < o.fetchBinReq.bytesTotal)
             {
@@ -206,7 +199,7 @@
             }
         }

-        private static function hola_onFragmentData(o : Object) : void{
+        private static function hola_onFragmentData(o : Object) : void {
             var stream : JSURLStream;
             try {
                 if (!(stream = reqs[o.req_id]))


remove forced level capping on new manifest load

--- src/org/mangui/hls/controller/LevelController.as
+++ src/org/mangui/hls/controller/LevelController.as
@@ -34,7 +34,7 @@
         private var _lastSegmentDuration : Number;
         private var _lastFetchDuration : Number;
         private var  lastBandwidth : Number;
-        private var  _autoLevelCapping : int = -1;
+        private var  _autoLevelCapping : int;
         private var  _startLevel : int = -1;
         private var  _fpsController : FPSController;

@@ -79,6 +79,7 @@
             _bitrate = new Vector.<Number>(_nbLevel, true);
             _switchup = new Vector.<Number>(_nbLevel, true);
             _switchdown = new Vector.<Number>(_nbLevel, true);
+            _autoLevelCapping = -1;
             _lastSegmentDuration = 0;
             _lastFetchDuration = 0;
             lastBandwidth = 0;
@@ -394,4 +395,4 @@
             return seek_level;
         }
     }
-}+}


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

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

 package mx.charts.series.items
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
+++ frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as
@@ -30,6 +30,11 @@
      *  @return Returns the preferred width (untransformed) of the IUIComponent.
      *  Takes into account measured width, explicit width, explicit min width
      *  and explicit max width.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private static function getPreferredUBoundsWidth(obj:IUIComponent):Number
     {
@@ -49,6 +54,11 @@
      *  @return Returns the preferred height (untransformed) of the IUIComponent.
      *  Takes into account measured height, explicit height, explicit min height
      *  and explicit max height.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private static function getPreferredUBoundsHeight(obj:IUIComponent):Number
     {
@@ -154,6 +164,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getPreferredBoundsWidth(obj:IUIComponent,transformMatrix:Matrix):Number
     {
@@ -179,6 +194,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getMinBoundsWidth(obj:IUIComponent, transformMatrix:Matrix):Number
     {
@@ -206,6 +226,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getMaxBoundsWidth(obj:IUIComponent, transformMatrix:Matrix):Number
     {
@@ -231,6 +256,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getLayoutBoundsWidth(obj:IUIComponent,transformMatrix:Matrix):Number
     {
@@ -292,6 +322,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function getLayoutBoundsX(obj:IUIComponent,transformMatrix:Matrix):Number
     {
@@ -343,6 +378,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function setLayoutBoundsPosition(obj:IUIComponent,x:Number, y:Number, transformMatrix:Matrix):void
     {
@@ -359,6 +399,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function setLayoutBoundsSize(obj:IUIComponent,width:Number,
                                   height:Number,


Changed reference to Phase (unused) into RecordStep enum

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/Application.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/Application.as
@@ -12,12 +12,13 @@
 	import org.openforis.collect.i18n.Message;
 	import org.openforis.collect.metamodel.proxy.EntityDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.SurveyProxy;
-	import org.openforis.collect.model.Phase;
 	import org.openforis.collect.model.proxy.RecordProxy;
+	import org.openforis.collect.model.proxy.RecordProxy$Step;
 	import org.openforis.collect.util.ModelClassInitializer;

 	/**
-	 * @author Mino Togna
+	 * @author M. Togna
+	 * @author S. Ricci
 	 * */
 	public class Application {

@@ -32,7 +33,7 @@
 		private static var _activeSurvey:SurveyProxy;
 		private static var _activeRecord:RecordProxy;
 		private static var _activeRootEntity:EntityDefinitionProxy;
-		private static var _activePhase:Phase;
+		private static var _activeStep:RecordProxy$Step;
 		private static var _serverOffline:Boolean;

 		private static var initialized:Boolean = false;
@@ -133,12 +134,12 @@
 		}

 		[Bindable]
-		public static function get activePhase():Phase {
-			return _activePhase;
-		}
-
-		public static function set activePhase(value:Phase):void {
-			_activePhase = value;
+		public static function get activeStep():RecordProxy$Step {
+			return _activeStep;
+		}
+
+		public static function set activeStep(value:RecordProxy$Step):void {
+			_activeStep = value;
 		}

 		[Bindable]


Add test for isSubscribedApp

Add test for isSubscribedApp

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -72,6 +72,8 @@
 				log("getFileCount() == "+Steamworks.getFileCount());
 				log("fileExists('test.txt') == "+Steamworks.fileExists('test.txt'));
 				log("getDLCCount() == " + Steamworks.getDLCCount());
+				log("isSubscribedApp(" + _appId + ") == " + Steamworks.isSubscribedApp(_appId));
+				log("isSubscribedApp(999999) == " + Steamworks.isSubscribedApp(999999));

 				var quota:Array = Steamworks.getQuota();
 				log("getQuota() == " + (quota ? "[" + quota.join(", ") + "]" : "null"));


Add missing imports to test app.

Add missing imports to test app.

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -11,10 +11,21 @@
 package
 {
 	import com.amanitadesign.steam.FRESteamWorks;
-	import com.amanitadesign.steam.SteamConstants;
+
 	import com.amanitadesign.steam.SteamEvent;
 	import com.amanitadesign.steam.SteamResults;
+
+	import com.amanitadesign.steam.SteamConstants;
 	import com.amanitadesign.steam.WorkshopConstants;
+
+	import com.amanitadesign.steam.DownloadUGCResult;
+	import com.amanitadesign.steam.FileDetailsResult;
+	import com.amanitadesign.steam.FilesByUserActionResult;
+	import com.amanitadesign.steam.ItemVoteDetailsResult;
+	import com.amanitadesign.steam.SubscribedFilesResult;
+	import com.amanitadesign.steam.UserFilesResult;
+	import com.amanitadesign.steam.UserVoteDetails;
+	import com.amanitadesign.steam.WorkshopFilesResult;

 	import flash.desktop.NativeApplication;
 	import flash.display.SimpleButton;


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

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

 package mx.automation.delegates.containers
 {


revision 01

revision 01

--- main.as
+++ main.as
@@ -1,4 +1,4 @@
-function initApp ():Void
+function initTWApp ():Void
 {
 	if (MovieClip (root).currentFrame == 1)
 	{
@@ -17,6 +17,6 @@
 		#include "as/main/frame4.as"
 	}
 }
-initApp ();
+initTWApp ();

 // Copyright Delfi Ramirez @ Segonquart Studio HQ  2007.


conversations load correct npc

conversations load correct npc

--- flexEditor/src/org/arisgames/editor/view/ItemEditorCharacterView.as
+++ flexEditor/src/org/arisgames/editor/view/ItemEditorCharacterView.as
@@ -105,8 +105,8 @@
 		trace("ItemEditorCharaterView: reloadTheConversations() called");

 		if (objectPaletteItem != null) {
-			trace("ItemEditorCharaterView: Starting reloadTheConversations() with NpcID:" + objectPaletteItem.id);
-			AppServices.getInstance().getConversationsForNpc(GameModel.getInstance().game.gameId, objectPaletteItem.id, new Responder(handleLoadConversations, handleFault));
+			trace("ItemEditorCharaterView: Starting reloadTheConversations() with NpcID:" + objectPaletteItem.objectId);
+			AppServices.getInstance().getConversationsForNpc(GameModel.getInstance().game.gameId, objectPaletteItem.objectId, new Responder(handleLoadConversations, handleFault));
 		}
 	}


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

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

 package mx.charts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/Move.as
+++ frameworks/projects/framework/src/mx/effects/Move.as
@@ -0,0 +1,210 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects
+{
+
+import mx.effects.effectClasses.MoveInstance;
+
+/**
+ *  The Move effect changes the position of a component
+ *  over a specified time interval.
+ *  You can specify the initial position with the xFrom and
+ *  yFrom values, the destination position with xTo
+ *  and yTo, or the number of pixels to move the component
+ *  with xBy and yBy.
+ *
+ *
If you specify any two of the values (initial position, destination,
+ *  or amount to move), Flex calculates the third.
+ *  If you specify all three, Flex ignores the xBy and
+ *  yBy values.
+ *  If you specify only the xTo and yTo values
+ *  or the xBy and yBy values,
+ *  Flex sets xFrom and yFrom to be the object's
+ *  current position.

+ *
+ *
If you specify a Move effect for a moveEffect trigger,
+ *  and if you do not set the six From, To, and By properties,
+ *  Flex sets them to create a smooth transition between the object's
+ *  old position and its new position.

+ *
+ *
You typically apply this effect to a target in a container
+ *  that uses absolute positioning, such as Canvas,
+ *  or one with "layout=absolute",  such as Application or Panel.
+ *  If you apply it to a target in a container that performs automatic layout,
+ *  such as a VBox or Grid container,
+ *  the move occurs, but the next time the container updates its layout,
+ *  it moves the target back to its original position.
+ *  You can set the container's autoLayout property to false
+ *  to disable the move back, but that disables layout for all controls in the container.

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

+ *
+ *

+ *  <mx:Move
+ *    id="ID"
+ *    xFrom="val"
+ *    yFrom="val"
+ *    xTo="val"
+ *    yTo="val"
+ *    xBy="val"
+ *    yBy="val"
+ *   />
+ *

+ *
+ *  @see mx.effects.effectClasses.MoveInstance
+ *
+ *  @includeExample examples/MoveEffectExample.mxml
+ */
+public class Move extends TweenEffect
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static var AFFECTED_PROPERTIES:Array = [ "x", "y" ];
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param target The Object to animate with this effect.
+     */
+    public function Move(target:Object = null)
+    {
+        super(target);
+
+        instanceClass = MoveInstance;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  xBy
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Number of pixels to move the components along the x axis.
+     *  Values can be negative.
+     */
+    public var xBy:Number;
+
+    //----------------------------------
+    //  xFrom
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Initial position's x coordinate.
+     */
+    public var xFrom:Number;
+
+    //----------------------------------
+    //  xTo
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Destination position's x coordinate.
+     */
+    public var xTo:Number;
+
+    //----------------------------------
+    //  yBy
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Number of pixels to move the components along the y axis.
+     *  Values can be negative.
+     */
+    public var yBy:Number;
+
+    //----------------------------------
+    //  yFrom
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Initial position's y coordinate.
+     */
+    public var yFrom:Number;
+
+    //----------------------------------
+    //  yTo
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="NaN")]
+
+    /**
+     *  Destination position's y coordinate.
+     */
+    public var yTo:Number;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function getAffectedProperties():Array /* of String */
+    {
+        return AFFECTED_PROPERTIES;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function initInstance(instance:IEffectInstance):void
+    {
+        super.initInstance(instance);
+
+        var moveInstance:MoveInstance = MoveInstance(instance);
+
+        moveInstance.xFrom = xFrom;
+        moveInstance.xTo = xTo;
+        moveInstance.xBy = xBy;
+        moveInstance.yFrom = yFrom;
+        moveInstance.yTo = yTo;
+        moveInstance.yBy = yBy;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6122
Author:   chaase@adobe.com
Date:     2009-04-10T14:30:17.762458Z

Log Message:
-----------
Various refactorings/renamings/changes from effects PARB review.

QE Notes: mx/effects and spark/effects currently broken (and disabled) due to these API changes. Matt is fixing.
Doc Notes: None
Bugs:
Reviewer: Hans
tests: checkintests, mustella tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Rotate3DInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
@@ -118,6 +118,17 @@
 		return _playheadTime + super.playheadTime;
 	}

+    override public function set playheadTime(value:Number):void
+    {
+        // Subclasses should tell their child effects to seek
+        // appropriately. This logic just sets the internal time on
+        // the overall CompositeEffectInstance.
+        if (timerTween)
+            timerTween.seek(value);
+        else
+            _playheadTime = value;
+    }
+
 	//--------------------------------------------------------------------------
 	//
 	//  Properties
@@ -333,17 +344,6 @@
 		// Needs to be overridden
 	}

-    override public function seek(seekTime:Number):void
-    {
-        // Subclasses should tell their child effects to seek
-        // appropriately. This logic just sets the internal time on
-        // the overall CompositeEffectInstance.
-        if (timerTween)
-            timerTween.seek(seekTime);
-        else
-            _playheadTime = seekTime;
-    }
-
 	/**
 	 *  @private
 	 */


Added support for «Page Down», «Page Up», «Home» and «End» keys.

--- src/flash/tandem/core/zooming/controllers/ZoomKeyboardController.as
+++ src/flash/tandem/core/zooming/controllers/ZoomKeyboardController.as
@@ -85,6 +85,11 @@
     private var leftActivated : Boolean
     private var rightActivated : Boolean

+    private var pageUpActivated : Boolean
+    private var pageDownActivated : Boolean
+    private var homeActivated : Boolean
+    private var endActivated : Boolean
+
     private var zoomInActivated : Boolean
     private var zoomOutActivated : Boolean

@@ -127,6 +132,24 @@
             case 68: // D
                 rightActivated = value
                 break
+
+
+            case Keyboard.PAGE_UP:
+                pageUpActivated = value
+                break
+
+            case Keyboard.PAGE_DOWN:
+                pageDownActivated = value
+                break
+
+            case Keyboard.HOME:
+                homeActivated = value
+                break
+
+            case Keyboard.END:
+                endActivated = value
+                break
+

             case Keyboard.NUMPAD_ADD:
             case 73: // I
@@ -163,6 +186,20 @@
         if( rightActivated )
             model.moveBy( horizontalStep, 0 )

+
+        if( pageUpActivated )
+            model.moveTo( model.viewport.x, 0 )
+
+        if( pageDownActivated )
+            model.moveTo( model.viewport.x, 1 )
+
+        if( homeActivated )
+            model.moveTo( 0, model.viewport.y )
+
+        if( endActivated )
+            model.moveTo( 1, model.viewport.y )
+
+
         if( zoomInActivated )
             model.zoomBy( 11/7 )


Add test that passes invalid data

Add test that passes invalid data

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -62,6 +62,7 @@
 			addButton("Delete published file", deletePublishedFile, _buttonContainer);
 			addButton("Toggle fullscreen", toggleFullscreen, _buttonContainer);
 			addButton("Update file", updateFile, _buttonContainer);
+			addButton("Invalid API call", invalidCall, _buttonContainer);
 			addButton("Enumerate workshop", null, _buttonContainer, _enumerateContainer);
 			addButton("Show overlay", null, _buttonContainer, _overlayContainer);

@@ -343,6 +344,13 @@
 			log("commitPublishedFileUpdate(...) == " + res);
 		}

+		private function invalidCall(e:Event = null):void {
+			if(!Steamworks.isReady) return;
+
+			var res:Boolean = Steamworks.getPublishedFileDetails(undefined);
+			log("getPublishedFileDetails(undefined) == " + res);
+		}
+
 		private var id:String;
 		private var ugcHandle:String;
 		private var publishedFile:String;


Add fullscreen toggle button to test app

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -18,6 +18,7 @@
 	import flash.desktop.NativeApplication;
 	import flash.display.SimpleButton;
 	import flash.display.Sprite;
+	import flash.display.StageDisplayState;
 	import flash.events.Event;
 	import flash.events.MouseEvent;
 	import flash.text.TextField;
@@ -43,6 +44,7 @@
 			addButton("Toggle cloud enabled", toggleCloudEnabled);
 			addButton("Toggle file", toggleFile);
 			addButton("Publish file", publishFile);
+			addButton("Toggle fullscreen", toggleFullscreen);
 			addButton("Show Friends overlay", activateOverlay);

 			Steamworks.addEventListener(SteamEvent.STEAM_RESPONSE, onSteamResponse);
@@ -146,6 +148,13 @@
 				"Test.txt", "Test.txt", WorkshopConstants.VISIBILITY_Private,
 				["TestTag"], WorkshopConstants.FILETYPE_Community);
 			log("publishWorkshopFile('test.txt' ...) == " + res);
+		}
+
+		private function toggleFullscreen(e:Event = null):void {
+			if(stage.displayState == StageDisplayState.NORMAL)
+				stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
+			else
+				stage.displayState = StageDisplayState.NORMAL;
 		}

 		private function activateOverlay(e:Event = null):void {


Check ExternalInterface availability

Check ExternalInterface availability

--- src/main/actionscript/com/castlabs/dash/utils/Console.as
+++ src/main/actionscript/com/castlabs/dash/utils/Console.as
@@ -36,7 +36,8 @@
             return;
         }

-        ExternalInterface.call("handleEvents", events);
+		if (ExternalInterface.available)
+			ExternalInterface.call("handleEvents", events);

         while (events.length > 0) {
             events.pop();


Added Query.map() construct for applying aggregate functions to all tuples

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@198 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare.tests/src/flare/tests/ExpressionTests.as
+++ flare.tests/src/flare/tests/ExpressionTests.as
@@ -22,6 +22,7 @@
 			addTest("testExpressions");
 			addTest("testExpressionMethods");
 			addTest("testQuery");
+			addTest("testAggregate");
 		}

 		public function testParse():void
@@ -314,5 +315,39 @@
 	  		assertEquals("c", r[2].cat); assertEquals(11, r[2].sum);
 		}

+		public function testAggregate():void
+		{
+			var data:Array = [
+				{val:1, cat:"a"},
+				{val:2, cat:"a"},
+				{val:3, cat:"a"},
+				{val:4, cat:"b"},
+				{val:5, cat:"b"},
+				{val:6, cat:"b"},
+				{val:7, cat:"c"},
+				{val:8, cat:"c"},
+				{val:9, cat:"c"},
+				{val:10, cat:"d"}
+			];
+
+			var sums:Object = {}
+			sums.all = sums.a = sums.b = sums.c = sums.d = 0;
+			for each (var o:Object in data) {
+				sums.all += o.val;
+				sums[o.cat] += o.val;
+			}
+
+			var q:Query = select({val:div("val",sum("val"))}).map();
+			var r:Array = q.eval(data);
+			for (var i:uint=0; i<r.length; ++i) {
+				assertEquals(data[i].val/sums.all, r[i].val);
+			}
+
+			q.groupby("cat");
+			r = q.eval(data);
+			for (i=0; i<r.length; ++i) {
+				assertEquals(data[i].val/sums[data[i].cat], r[i].val);
+			}
+		}
 	}
 }


Re-enable (broken) interrupts

Re-enable (broken) interrupts


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

--- frameworks/projects/framework/src/mx/core/ApplicationDomainTarget.as
+++ frameworks/projects/framework/src/mx/core/ApplicationDomainTarget.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 mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
+++ frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
@@ -71,4 +71,4 @@
     function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void;

 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12747
Author:   mhorn@adobe.com
Date:     2009-12-09T21:22:56.886279Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerIncrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TabBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerDecrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ComboBoxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarTrackSkin.mxml</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/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TabBarButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -180,7 +180,7 @@
 /**
  *  The SkinnableContainer class is the base class for skinnable containers that have
  *  visual content.
- *  The SkinnableContainer container take as children any components that implement
+ *  The SkinnableContainer container takes as children any components that implement
  *  the IVisualElement interface.
  *  All Spark and Halo components implement the IVisualElement interface, as does
  *  the GraphicElement class.


Transferred from the Adobe Open Source Subversion Repository

Revision: 18025
Author:   egeorgie@adobe.com
Date:     2010-10-05T23:57:27.340957Z

Log Message:
-----------
Rename IGraphicElementHost to IGraphicElementContainer

QE notes: N/A
Doc notes: None.
Bugs:
Reviewer: Ryan
Tests run: build
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElementHost.as" copyfrom-rev="18023" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElementContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElementHost.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElementContainer.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElementContainer.as
@@ -12,11 +12,11 @@
 {

 /**
- *  The IGraphicElementHost is the minimal contract for a container class to
+ *  The IGraphicElementContainer is the minimal contract for a container class to
  *  support IGraphicElement children.
  *
  *
Typically instead of directly implementing this interface, a developer
- *  would sub-class Group which already implements the IGraphicElementHost interface.

+ *  would sub-class Group which already implements the IGraphicElementContainer interface.

  *
  *  @see spark.core.IGraphicElement
  *
@@ -25,12 +25,12 @@
  *  @playerversion AIR 2.0
  *  @productversion Flex 4.5
  */
-public interface IGraphicElementHost
+public interface IGraphicElementContainer
 {
     /**
      *  Notify the host that an element layer has changed.
      *
-     *  The IGraphicElementHost must re-evaluates the sequences of
+     *  The IGraphicElementContainer must re-evaluates the sequences of
      *  graphic elements with shared DisplayObjects and may need to re-assign the
      *  DisplayObjects and redraw the sequences as a result.
      *
@@ -49,7 +49,7 @@
     /**
      *  Notify the host component that an element changed and needs to validate properties.
      *
-     *  The IGraphicElementHost must call the validateProperties()
+     *  The IGraphicElementContainer must call the validateProperties()
      *  method on the IGraphicElement to give it a chance to commit its properties.
      *
      *  Typically the host will validate the elements' properties in its
@@ -67,7 +67,7 @@
     /**
      *  Notify the host component that an element size has changed.
      *
-     *  The IGraphicElementHost must call the validateSize()
+     *  The IGraphicElementContainer must call the validateSize()
      *  method on the IGraphicElement to give it a chance to validate its size.
      *
      *  Typically the host will validate the elements' size in its
@@ -85,7 +85,7 @@
     /**
      *  Notify the host component that an element has changed and needs to be redrawn.
      *
-     *  The IGraphicElementHost must call the validateDisplayList()
+     *  The IGraphicElementContainer must call the validateDisplayList()
      *  method on the IGraphicElement to give it a chance to redraw.
      *
      *  Typically the host will validate the elements' display lists in its
@@ -99,79 +99,5 @@
      *  @productversion Flex 4.5
      */
     function invalidateGraphicElementDisplayList(element:IGraphicElement):void;
-
-    /**
-     *  Removes the DisplayObject of the element from this host's
-     *  display list and returns and its index.
-     *
-     *  Typically the developer calls detachDisplayObject() before
-     *  performing some temporary operation, like taking a snap-shot with a different parent,
-     *  after which the developer calls attachDisplayObject() to restore
-     *  the display list of the host.
-     *
-     *  The return value is used as a parameter to a subsequent call to
-     *  the attachDisplayObject() method.
-     *
-     *  Note: for performance reasons, the attachDisplayObject() and
-     *  detachDisplayObject() methods don't invalidate anything in the
-     *  host and it is assumed that they will always be called in pairs -
-     *  detachDisplayObject() followed by attachDisplayObject().
-     *
-     *  @param element The element whose DisplayObject will be detached.
-     *
-     *  @see #attachDisplayObject
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
-     *  @productversion Flex 4.5
-     */
-    function detachDisplayObject(element:IGraphicElement):int;
-
-    /**
-     *  Re-adds the DisplayObject of the element to this host's
-     *  display list.
-     *
-     *  Typically the developer calls detachDisplayObject() before
-     *  performing some temporary operation, like taking a snap-shot with a different parent,
-     *  after which the developer calls attachDisplayObject() to restore
-     *  the display list of the host.
-     *
-     *  Note: for performance reasons, the attachDisplayObject() and
-     *  detachDisplayObject() methods don't invalidate anything in the
-     *  host and it is assumed that they will always be called in pairs -
-     *  detachDisplayObject() followed by attachDisplayObject().
-     *
-     *  @param element The element whose DisplayObject will be attached.
-     *  @param index The value returned from a preceding call to detachDisplayObject().
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
-     *  @productversion Flex 4.5
-     */
-    function attachDisplayObject(element:IGraphicElement, index:int):void
-
-    /**
-     *  Removes the element's DisplayObject from this IGraphicElementHost
-     *  display list.
-     *
-     *  The host also must ensure that any elements that share the
-     *  DisplayObject are redrawn.
-     *
-     *
This method doesn't necessarily trigger new DisplayObject
-     *  reassignment for the passed in element.
-     *
-     *  To request new display object reassignment for the element, call the
-     *  invalidateGraphicElementSharing() method.

-     *
-     *  @param element The graphic element whose display object is discarded.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
-     *  @productversion Flex 4.5
-     */
-    function discardDisplayObject(element:IGraphicElement):void;
 }
 }


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

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


updated documentation

updated documentation

--- WeaveCore/src/weave/core/WeaveXMLDecoder.as
+++ WeaveCore/src/weave/core/WeaveXMLDecoder.as
@@ -39,7 +39,9 @@
 	{
 		/**
 		 * This function will include a package in ClassUtils.defaultPackages,
-		 * which is consulted when decoding dynamic session states.
+		 * which is consulted when decoding dynamic session states.
+		 * @param packageOrClass Either a qualified class name as a String, or a pointer to a Class.
+		 * @param others More qualified class names or Class objects.
 		 */
 		public static function includePackages(packageOrClass:*, ...others):void
 		{


[lib] Fix typo

[lib] Fix typo

--- lib/src/com/amanitadesign/steam/SteamConstants.as
+++ lib/src/com/amanitadesign/steam/SteamConstants.as
@@ -36,7 +36,7 @@
 		public static const RESPONSE_OnUnsubscribePublishedFile:int = 16;
 		public static const RESPONSE_OnGetPublishedItemVoteDetails:int = 17;
 		public static const RESPONSE_OnUpdateUserPublishedItemVote:int = 18;
-		public static const RESPONSE_OnSetUserPublishedFileActio:int = 19;
+		public static const RESPONSE_OnSetUserPublishedFileAction:int = 19;
 	}

 }


fixed ambiguous references to numTargets in ScriptController

--- src/aerys/minko/scene/controller/ScriptController.as
+++ src/aerys/minko/scene/controller/ScriptController.as
@@ -26,7 +26,7 @@

 		private function initialize() : void
 		{
-			var numTargets : uint = numTargets;
+			var numTargets : uint = this.numTargets;

 			for (var i : uint = 0; i < numTargets; ++i)
 				start(getTarget(i));
@@ -40,7 +40,7 @@
 			_deltaTime = _lastTime - time;
 			_lastTime = time;

-			var numTargets : uint = numTargets;
+			var numTargets : uint = this.numTargets;

 			for (var i : uint = 0; i < numTargets; ++i)
 				update(getTarget(i));


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

--- frameworks/projects/automation_air/src/mx/core/Version.as
+++ frameworks/projects/automation_air/src/mx/core/Version.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////

 import mx.core.mx_internal;