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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/IAdvancedDataGridRendererProvider.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/IAdvancedDataGridRendererProvider.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.controls.advancedDataGridClasses
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
+++ frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
@@ -43,6 +43,11 @@
  *  Changing these values can lead to unexpected results.

  *
  *  @see mx.controls.listClasses.IDropInListItemRenderer
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */

 public class BaseListData
@@ -69,6 +74,11 @@
      *
      *  @param columnIndex The index of the column in the currently visible columns of the
      *  control.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function BaseListData(label:String, uid:String,
                                  owner:IUIComponent, rowIndex:int = 0,
@@ -98,6 +108,11 @@
      *  The index of the column of the List-based control relative
      *  to the currently visible columns of the control, where the first column
      *  is at an index of 1.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var columnIndex:int;

@@ -110,6 +125,11 @@
     /**
      *  The textual representation of the item data, based on the list class's
      *  itemToLabel() method.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var label:String;

@@ -123,6 +143,11 @@
      *  This property is typed as IUIComponent so that drop-ins
      *  like Label and TextInput don't have to have dependencies
      *  on List and all of its dependencies.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var owner:IUIComponent;

@@ -140,6 +165,11 @@
      *  of the control, and then click on the same row as before.
      *  The rowIndex now contains a different value corresponding to
      *  the new index of the row in the currently visible rows.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var rowIndex:int;

@@ -155,6 +185,11 @@

     /**
      *  The unique identifier for this item.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get uid():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11273
Author:   aharui@adobe.com
Date:     2009-10-29T18:57:54.403337Z

Log Message:
-----------
Initial check in of MXItemRenderer and friends

QE Notes: New Classes and Code
Doc Notes: New Classes and Code
Bugs: None
Reviewer: Ryan
API Change: yes
Is noteworthy for integration: No
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListData.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeListData.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/MXItemRendererTestScript.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml</path>

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

--- frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
+++ frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
@@ -12,6 +12,8 @@
 package mx.controls.listClasses
 {

+import flash.events.EventDispatcher;
+
 import mx.core.IUIComponent;
 import mx.core.IUID;

@@ -42,6 +44,11 @@
  *  and read by an item renderer or item editor.
  *  Changing these values can lead to unexpected results.

  *
+ *
The properties are marked bindable, but these properties
+ *  do not actually do any change detection or send change events.
+ *  They are changed as a whole by setting a whole new listData
+ *  and the change event for that updates bindings.

+ *
  *  @see mx.controls.listClasses.IDropInListItemRenderer
  *
  *  @langversion 3.0
@@ -50,7 +57,7 @@
  *  @productversion Flex 3
  */

-public class BaseListData
+public class BaseListData extends EventDispatcher
 {

     include "../../core/Version.as";
@@ -104,6 +111,8 @@
     //  columnIndex
     //----------------------------------

+	[Bindable("dataChange")]
+
     /**
      *  The index of the column of the List-based control relative
      *  to the currently visible columns of the control, where the first column
@@ -136,6 +145,8 @@
     //----------------------------------
     //  owner
     //----------------------------------
+
+	[Bindable("dataChange")]

     /**
      *  A reference to the list object that owns this item.
@@ -154,6 +165,8 @@
     //----------------------------------
     //  rowIndex
     //----------------------------------
+
+    [Bindable("dataChange")]

     /**
      *  The index of the row of the DataGrid, List, or Tree control relative
@@ -183,6 +196,8 @@
      */
     private var _uid:String;

+	[Bindable("dataChange")]
+
     /**
      *  The unique identifier for this item.
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 19163
Author:   egeorgie@adobe.com
Date:     2010-12-08T20:09:54.989367Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-28800 Need a way to switch SkinnablePopUpContainer to "normal" state withouth popping up throught PopUpManager

In this change:
- add mx_internal method setIsOpen().  This will affect the skin state only, nothing will be popped up.

QE notes:
Doc notes:
Bugs: SDK-28800
Reviewer: Ryan
Tests run: build, manual testing
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
@@ -14,10 +14,13 @@
 import flash.display.DisplayObjectContainer;
 import flash.events.Event;

+import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.managers.PopUpManager;

 import spark.events.PopUpEvent;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Events
@@ -174,6 +177,19 @@
     public function get isOpen():Boolean
     {
         return _isOpen;
+    }
+
+    /**
+     *  Updates the isOpen flag to be reflected in the skin state
+     *  without actually popping up the container through the PopUpManager.
+     *
+     *  @private
+     */
+    mx_internal function setIsOpen(value:Boolean):void
+    {
+        // NOTE: DesignView relies on this API, consult tooling before making changes.
+        _isOpen = value;
+        invalidateSkinState();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17841
Author:   hmuller@adobe.com
Date:     2010-09-24T15:36:59.172298Z

Log Message:
-----------
The ColumnHeaderBar classes have been substantially revised simplified and some of the horizontal scrolling flashing has been eliminated.  I've temporarily removed the column header bar event handling code since we weren't using it.   It will be restored when the column resizing feature is added.

The new versions of ColumnHeaderBar and ColumnHeaderBarLayout only depend on Grid (not GridDimensions or GridLayout).

QE notes: Failing mustella tests (bitmap and geometry changes) have been excluded
Doc notes:
Bugs: SDK-27967
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRendererSkin.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridRowNode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridRowBackground.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DefaultColumnHeaderRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridRowList.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.as
@@ -1,3 +1,14 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.components.supportClasses
 {
 import spark.components.supportClasses.GridDimensions;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11118
Author:   gosmith@adobe.com
Date:     2009-10-23T23:35:38.504561Z

Log Message:
-----------
Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: None; no functional changes
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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


Add an Event.COMPLETE message when a ProxyPair finishes.

--- swfcat.as
+++ swfcat.as
@@ -138,6 +138,9 @@
             }

             proxy_pair = new ProxyPair(this, client_addr, DEFAULT_TOR_ADDR);
+            proxy_pair.addEventListener(Event.COMPLETE, function():void {
+                proxy_pair.log("Complete.");
+            })
             proxy_pair.connect();
         }

@@ -162,6 +165,7 @@

 import flash.display.Sprite;
 import flash.events.Event;
+import flash.events.EventDispatcher;
 import flash.events.IOErrorEvent;
 import flash.events.ProgressEvent;
 import flash.events.SecurityErrorEvent;
@@ -169,7 +173,7 @@
 import flash.utils.ByteArray;

 /* An instance of a client-relay connection. */
-class ProxyPair
+class ProxyPair extends EventDispatcher
 {
     // Address ({host, port}) of client.
     private var addr_c:Object;
@@ -212,16 +216,19 @@
             log("Tor: closed.");
             if (s_c.connected)
                 s_c.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });
         s_r.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
             log("Tor: I/O error: " + e.text + ".");
             if (s_c.connected)
                 s_c.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });
         s_r.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
             log("Tor: security error: " + e.text + ".");
             if (s_c.connected)
                 s_c.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });

         log("Tor: connecting to " + addr_r.host + ":" + addr_r.port + ".");
@@ -239,16 +246,19 @@
             log("Client: closed.");
             if (s_r.connected)
                 s_r.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });
         s_c.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
             log("Client: I/O error: " + e.text + ".");
             if (s_r.connected)
                 s_r.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });
         s_c.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
             log("Client: security error: " + e.text + ".");
             if (s_r.connected)
                 s_r.close();
+            dispatchEvent(new Event(Event.COMPLETE));
         });

         log("Client: connecting to " + addr_c.host + ":" + addr_c.port + ".");


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

--- frameworks/projects/advancedgrids/src/mx/olap/aggregators/MaxAggregator.as
+++ frameworks/projects/advancedgrids/src/mx/olap/aggregators/MaxAggregator.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.olap.aggregators


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

--- frameworks/projects/advancedgrids/src/mx/olap/aggregators/MinAggregator.as
+++ frameworks/projects/advancedgrids/src/mx/olap/aggregators/MinAggregator.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.olap.aggregators


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

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

 package spark.primitives.supportClasses
 {


Reading from facilitator works... using readMultiByte()

--- swfcat.as
+++ swfcat.as
@@ -154,7 +154,7 @@

             s_f.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
                 var client_spec:String = new String();
-		client_spec = s_f.readUTF();
+		client_spec = s_f.readMultiByte(0, "utf-8");
                 puts("Facilitator: got \"" + client_spec + "\"");
                 //s_c.writeBytes(bytes);
 		/* Need to parse the bytes to get the new client. Fill out client_address and client_port */


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

--- frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as
+++ frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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.preloaders
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18691
Author:   hmuller@adobe.com
Date:     2010-11-18T04:51:00.108928Z

Log Message:
-----------
Column-resizing now works relatively intuitively for RTL layouts.

API changes:
- Added DataGrid,Grid/invalidateCell()

- Added GridItemRenderer/get columnIndex()

- Renamed the following protected Grid methods:
grid_RollOverHandler() => grid_rollOverHandler()
grid_RollOutHandler() => grid_rollOutHandler()
grid_MouseUpHandler() => grid_mouseUpHandler()
grid_MouseDownHandler() => grid_mouseDownHandler()

QE notes: One failing mustella test excluded
Doc notes:
Bugs: SDK-28539, SDK-28322, SDK-28571
Reviewer: Carol, Kevin
Tests run: checkin, mustella
Is noteworthy for integration: yes

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
@@ -166,6 +166,23 @@

         _column = value;
         dispatchChangeEvent("columnChanged");
+    }
+
+    //----------------------------------
+    //  columnIndex
+    //----------------------------------
+
+    /**
+     *  Returns column.columnIndex.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get columnIndex():int
+    {
+        return (column) ? column.columnIndex : -1;
     }

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


Regenerated from the Java version.

Regenerated from the Java version.

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

--- src/as/com/threerings/crowd/data/Place.as
+++ src/as/com/threerings/crowd/data/Place.as
@@ -24,11 +24,13 @@
 import com.threerings.io.ObjectInputStream;
 import com.threerings.io.ObjectOutputStream;
 import com.threerings.io.SimpleStreamableObject;
+import com.threerings.util.Hashable;

 /**
  * Contains information on the current place occupied by a body.
  */
 public class Place extends SimpleStreamableObject
+    implements Hashable
 {
     /** The oid of this place's {@link PlaceObject}. */
     public var placeOid :int;
@@ -39,6 +41,12 @@
     public function Place (placeOid :int = 0)
     {
         this.placeOid = placeOid;
+    }
+
+    // from Object
+    override public function hashCode () :int
+    {
+        return placeOid;
     }

     // from Object


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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransitionMode.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransitionMode.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.transitions
 {


if js-output-type is specified explicitly, never try to build a SWF

--- source/ASConfigC.as
+++ source/ASConfigC.as
@@ -311,6 +311,8 @@
 			{
 				//if it is set explicitly, then clear the default
 				this._jsOutputType = null;
+				//also, make sure that we don't try to a build a SWF
+				this._isSWF = false;
 			}
 		}


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3483
Author:   rfrishbe@adobe.com
Date:     2008-10-04T00:27:35.945772Z

Log Message:
-----------
Few different changes, most to Group and DataGroup:

1.  GroupBase - added simple class ASDoc so it'll hopefully be included in the nightly ASDoc builds

2.  Group - Removed support for ILists from Group.

3.  ToggleButton - Moved around a method from skinLoaded to the constructor since it was just adding an event listener to the object and not the skin instance

4.  DataGroup - Cleaned up a lot of the logic when a collectionChange event happens so that we don't just remove everything and add everything all the time. This also fixes a bug.  Will work with QA to make sure this gets tested for all scenarios.

QE: Yes
Doc: Yes
Bugs: SDK-17179
Reviewer: Evtim, Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -48,6 +48,9 @@
 include "../styles/metadata/BasicCharacterFormatTextStyles.as"
 include "../styles/metadata/AdvancedCharacterFormatTextStyles.as"

+/**
+ *  The GroupBase class.
+ */
 public class GroupBase extends UIComponent implements IGraphicElementHost, IViewport
 {
     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 17338
Author:   hmuller@adobe.com
Date:     2010-08-16T23:25:19.449412Z

Log Message:
-----------
DataGrid performance optimization in GridLayout: defer validating grid "layers" as long as possible, to avoid display object sharing induced redundant valdiations.

QE notes:
Doc notes:
Bugs:
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -361,7 +361,7 @@
         if (labelDisplay)
             removeChild(DisplayObject(labelDisplay));

-        labelDisplay = IUITextField(createInFontContext(UITextField));
+        labelDisplay = IUITextField(createInFontContext(UITextField));
         labelDisplay.multiline = true;
         labelDisplay.wordWrap = true;
         labelDisplay.autoSize = TextFieldAutoSize.LEFT;


Fix context3D getter

Fix context3D getter

--- src/aerys/minko/render/resource/Context3DResource.as
+++ src/aerys/minko/render/resource/Context3DResource.as
@@ -53,7 +53,7 @@
         private var _stencilActionOnDepthFail               : String;
         private var _stencilActionOnDepthPassStencilFail    : String;

-		minko_render function get context() : Context3D
+		public function get context() : Context3D
 		{
 			return _context;
 		}


Format method cleanup.

Format method cleanup.

--- driver/src/main/flex/org/postgresql/util/format.as
+++ driver/src/main/flex/org/postgresql/util/format.as
@@ -4,17 +4,27 @@
      * Format the template by substituting any parameter marker with its
      * corresponding argument. Parameter markers are defined by a number
      * (indicating the argument index to replace) enclosed by curly braces.
+     *

      * E.g., an invocation such as format("{1} {0}!", 'world', 'hello')
      * would return the string hello world!.
+     *

+     * If the replacement values are not Strings, they are coerced to
+     * Strings before substitution, as per the String function.
+     *
      * @param template String in which to perform parameter substitution
      * @param args arguments to substitute
+     * @return a String with all token references subtituted with their corresponding values
+     * @throws ArgumentException if more values are referenced than provided
+     * @see String
      */
     public function format(template:String, ...args):String {
         return template.replace(/{(\d+)}/g, function():String {
             var replacementIndex:int = int(arguments[1]);
-            return replacementIndex < args.length ?
-                args[replacementIndex] :
-                arguments[0];
+            if (replacementIndex > args.length) {
+                throw new ArgumentError("Invalid log argument index: " + replacementIndex);
+            } else {
+                return String(args[replacementIndex]);
+            }
         });
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19386
Author:   clucier@adobe.com
Date:     2010-12-15T12:42:21.760777Z

Log Message:
-----------
Fix a typo from most recent update.

QE notes: None
Doc notes: None
Bugs: SDK-28914
Reviewer: Chiedo
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as
@@ -891,10 +891,10 @@
         transitionGroup.validateNow();

         // Setup fade out targets.
+        if (!verticalTransition && cachedNavigationGroup)
+            fadeOutTargets.push(cachedNavigationGroup.displayObject);
+
         if (!verticalTransition && cachedActionGroup)
-            fadeOutTargets.push(cachedNavigationGroup.displayObject);
-
-        if (!verticalTransition && cachedNavigationGroup)
             fadeOutTargets.push(cachedActionGroup.displayObject);

         // Fade out action and navigation content


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6290
Author:   chaase@adobe.com
Date:     2009-04-27T18:42:18.522446Z

Log Message:
-----------
Added animation behavior to scrollbars and sliders. For now, animation only happens based on mouse events (key events still have previous non-animated behavior).
Also, added shift-click behavior to ScrollBar, behaves essentially like a Slider, going to the clicked location instead of paging toward it.
Finally, fixed an unrelated bug in Animation where Animates set up with a MotionPath with no time=0 keyframe would not run properly.

These changes necessitate changes in Mustella (need to listen to 'change' event on scrollbars/sliders, not 'updateComplete' or 'click', since the animations may cause several valid 'updateComplete' events on the way to the final changed value.

QE Notes: Mustella changes in ScrollBar and Slider necessary. See note above. Changes have been made and are awaiting this checkin to update Mustella tests.
Doc Notes: None
Bugs:
Reviewer: Hans and Glenn (scrolling/sliding changes), Jason (Animation bug changes)
tests: checkintests, Mustella ScrollBar, Slider, Scroller (all required minor changes to pass)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Range.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/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/AnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/AnimationTarget.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/AnimationTarget.as
@@ -0,0 +1,54 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.components.supportClasses
+{
+import spark.effects.animation.Animation;
+import spark.effects.animation.IAnimationTarget;
+
+internal class AnimationTarget implements IAnimationTarget
+{
+    public var updateFunction:Function;
+    public var startFunction:Function;
+    public var endFunction:Function;
+    public var repeatFunction:Function;
+
+    public function AnimationTarget(updateFunction:Function = null)
+    {
+        this.updateFunction = updateFunction;
+    }
+
+    public function animationStart(animation:Animation):void
+    {
+        if (startFunction != null)
+            startFunction(animation);
+    }
+
+    public function animationEnd(animation:Animation):void
+    {
+        if (endFunction != null)
+            endFunction(animation);
+    }
+
+    public function animationRepeat(animation:Animation):void
+    {
+        if (repeatFunction != null)
+            repeatFunction(animation);
+    }
+
+    public function animationUpdate(animation:Animation):void
+    {
+        if (updateFunction != null)
+            updateFunction(animation);
+    }
+
+}
+}


Color: Grayscale

Color: Grayscale

--- index.as
+++ index.as
@@ -4971,23 +4971,31 @@

       // AARRGGBB
       let color: uint32 = if pixel == 0 {
+        // Grayscale
+        0xFFFFFFFF;
         // Green
-        0xFF9BBC0F;
+        // 0xFF9BBC0F;
         // Yellow
         // 0xFFFFFD4B;
       } else if pixel == 1 {
+        // Grayscale
+        0xFFC0C0C0;
         // Green
-        0xFF8BB30F;
+        // 0xFF8BB30F;
         // Yellow
         // 0xFFABA92F;
       } else if pixel == 2 {
+        // Grayscale
+        0xFF606060;
         // Green
-        0xFF306230;
+        // 0xFF306230;
         // Yellow
         // 0xFF565413;
       } else if pixel == 3 {
+        // Grayscale
+        0xFF000000;
         // Green
-        0xFF0F410F;
+        // 0xFF0F410F;
         // Yellow
         // 0xFF000000;
       } else {


:memo:

:memo:

--- index.as
+++ index.as
@@ -11,10 +11,25 @@
 // [ ] Pass: Declare
 // [ ] Main!

-def method(a: int32): int32 {
+type c_int = int32;
+extern def puts(s: str) -> c_int;
+
+def method(a: int32) {
   return 30;
 }

 def main() {
-  let value: int32 = method(1);
+  // let apple;
+  // let banana: int8;
+  // let car = method(20);
+  let dollar: int32 = method(1);
+  if dollar > 10 {
+    puts("over");
+  } else {
+    puts("under");
+  }
 }
+
+def test() {
+  return false;
+}


fix trackUnstructuredEvent to place unstructured data into serialized json instead of on the payload itself.

--- snowplow-as3-tracker/src/com/snowplowanalytics/snowplow/tracker/Tracker.as
+++ snowplow-as3-tracker/src/com/snowplowanalytics/snowplow/tracker/Tracker.as
@@ -238,14 +238,14 @@
 		public function trackUnstructuredEvent(eventData:SchemaPayload, context:Array = null,
 			timestamp:Number = 0):void
 		{
-			var payload:IPayload = new TrackerPayload();
 			var envelope:SchemaPayload = new SchemaPayload();
-
 			envelope.setSchema(Constants.SCHEMA_UNSTRUCT_EVENT);
 			envelope.setData(eventData.getMap());

+			var payload:IPayload = new TrackerPayload();
 			payload.add(Parameter.EVENT, Constants.EVENT_UNSTRUCTURED);
-			payload.addMap(envelope.getMap());
+			payload.addMap(envelope.getMap(), base64Encoded,
+				Parameter.UNSTRUCTURED_ENCODED, Parameter.UNSTRUCTURED);

 			completePayload(payload, context, timestamp);


Transferred from the Adobe Open Source Subversion Repository

Revision: 18875
Author:   smgilson@adobe.com
Date:     2010-11-30T21:18:42.267112Z

Log Message:
-----------
ASDoc updates on formatters

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
+++ frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
@@ -28,10 +28,12 @@
 //--------------------------------------

 /**
- *  The change event is generated whenever the locale style is changed or
+ *  The change event is generated whenever the locale style is changed or
  *  another property is set that would cause
  *  the format of a number to change or cause updates to the other
  *  values available through this class.
+ *
+ *  @eventType flash.events.Event.CHANGE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10.1
@@ -152,13 +154,13 @@
      *  This is the locale that is used to access the formatting data and
      *  functionality from the operating system.
      *
-     *  If the locale that was set by the locale style is not available,
-     *  then the value of the actualLocaleIDName will be different
-     *  from the value of the locale style.
-     *  It will indicate the fallback locale that is being used.
+     *
If the locale that was set by the locale style is not available,
+     *  then the value of the actualLocaleIDName is different
+     *  from the value of the locale style.
+     *  It indicates the fallback locale that is being used.
      *  If the locale style was set to LocaleID.DEFAULT the
-     *  name of the locale specified by the user's operating system will be
-     *  used.
+     *  name of the locale specified by the user's operating system is
+     *  used.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1


Transferred from the Adobe Open Source Subversion Repository

Revision: 6003
Author:   egeorgie@adobe.com
Date:     2009-04-07T22:44:37.670097Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-19154 layoutBounds for group that has a path with a larger stroke weight is incorrect

Fix: Modify BasicLayout to use the new ILayoutElement APIs getLayoutBoundsXAtSize, getLayoutBoundsYAtSize.

QE Notes: None
Doc Notes: None
Bugs: SDK-19154
Reviewer: Ely
tests: checkintests, mustella (group, layout)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -3354,6 +3354,76 @@
                                        preferredHeightPreTransform(),
                                        postTransform);
     }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getBoundsXAtSize(width:Number, height:Number, postTransform:Boolean = true):Number
+    {
+        var strokeExtents:Point = getStrokeExtents(postTransform);
+        var m:Matrix = postTransform ? computeMatrix() : null;
+        if (!m)
+            return strokeExtents.x * -0.5 + this.measuredX + this.x;
+
+        if (!isNaN(width))
+            width -= strokeExtents.x;
+
+        if (!isNaN(height))
+            height -= strokeExtents.y;
+
+        // Calculate the width and height pre-transform:
+        var newSize:Point = MatrixUtil.fitBounds(width, height, m,
+                                                 preferredWidthPreTransform(),
+                                                 preferredHeightPreTransform(),
+                                                 minWidth, minHeight,
+                                                 maxWidth, maxHeight);
+        if (!newSize)
+            newSize = new Point(minWidth, minHeight);
+
+        var topLeft:Point = new Point(measuredX, measuredY);
+        MatrixUtil.transformBounds(newSize, m, topLeft);
+        return strokeExtents.x * -0.5 + topLeft.x;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getBoundsYAtSize(width:Number, height:Number, postTransform:Boolean = true):Number
+    {
+        var strokeExtents:Point = getStrokeExtents(postTransform);
+        var m:Matrix = postTransform ? computeMatrix() : null;
+        if (!m)
+            return strokeExtents.y * -0.5 + this.measuredY + this.y;
+
+        if (!isNaN(width))
+            width -= strokeExtents.x;
+
+        if (!isNaN(height))
+            height -= strokeExtents.y;
+
+        // Calculate the width and height pre-transform:
+        var newSize:Point = MatrixUtil.fitBounds(width, height, m,
+                                                 preferredWidthPreTransform(),
+                                                 preferredHeightPreTransform(),
+                                                 minWidth, minHeight,
+                                                 maxWidth, maxHeight);
+        if (!newSize)
+            newSize = new Point(minWidth, minHeight);
+
+        var topLeft:Point = new Point(measuredX, measuredY);
+        MatrixUtil.transformBounds(newSize, m, topLeft);
+        return strokeExtents.y * -0.5 + topLeft.y;
+    }

     /**
      *  @inheritDoc
@@ -3533,17 +3603,19 @@
     }

     /**
-     *  @private
-     */
-    private function preferredWidthPreTransform():Number
+     *  Used for the implementation of the ILayoutElement interface,
+     *  returns the explicit of measured width pre-transform.
+     */
+    protected function preferredWidthPreTransform():Number
     {
         return isNaN(explicitWidth) ? measuredWidth : explicitWidth;
     }

     /**
-     *  @private
-     */
-    private function preferredHeightPreTransform():Number
+     *  Used for the implementation of the ILayoutElement interface,
+     *  returns the explicit of measured height pre-transform.
+     */
+    protected function preferredHeightPreTransform():Number
     {
         return isNaN(explicitHeight) ? measuredHeight: explicitHeight;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 9453
Author:   egeorgie@adobe.com
Date:     2009-08-21T17:48:14.795338Z

Log Message:
-----------
Fix ASDoc comments, exclude the LayoutElementHelper class.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2828,7 +2828,18 @@
     }

     /**
-     *  Documentation is not currently available.
+     *  True if the element requires an exclusive DisplayObject.
+     *
+     *  Developers don't usually call this method directly, but override it in
+     *  their subclasses to indicate that an exclusive DisplayObject is needed.
+     *
+     *  Usually a subclass needs a DisplayObject when it has to set its properties.
+     *
+     *  Some examples of such DisplayObject properties are filters,
+     *  blendMode, mask,
+     *  rotation, alpha.
+     *
+     *  @return Returns true when the element requires an exclusive DisplayObject.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


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

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

 import mx.core.mx_internal;


fix

fix

fix

--- src/ageofai/home/view/HomeMediator.as
+++ src/ageofai/home/view/HomeMediator.as
@@ -13,8 +13,17 @@

 		override public function initialize():void
 		{
-			this.addContextListener( HomeEvent.VILLAGER_CREATED, );
-			this.addContextListener( HomeEvent.VILLAGER_CREATION_IN_PROGRESS, );
+			this.addContextListener( HomeEvent.VILLAGER_CREATED, this.villagerCredatedEventHandler);
+			this.addContextListener( HomeEvent.VILLAGER_CREATION_IN_PROGRESS, this.villagerCreatedEventHandler );
+		}
+
+		private function villagerCredatedEventHandler():void
+		{
+
+		}
+		private function villagerCreatedEventHandler():void
+		{
+
 		}
 	}
 }