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
+		{
+
 		}
 	}
 }