asdoc

asdoc

--- src/com/kemsky/Stream.as
+++ src/com/kemsky/Stream.as
@@ -581,9 +581,9 @@
         }

         /**
-         * Creates a copy of current stream
+         * Creates a copy of the current stream
          * @param deep Create a deep copy using AMF serialization.
-         * @return A copy of current stream.
+         * @return A copy of the current stream.
          */
         public function clone(deep:Boolean = false):Stream
         {
@@ -618,6 +618,10 @@
             return source.join(sep);
         }

+        /**
+         * Creates reversed stream from the current one.
+         * @return A new reversed stream.
+         */
         public function reverse():Stream
         {
             //don't want to change local array
@@ -745,6 +749,14 @@
             return this;
         }

+        /**
+         * Executes a function on each item in a stream, and constructs a new
+         * stream of items corresponding to the results of the function on each
+         * item in the original stream.
+         * @param callback The function to run on each item in the stream.
+         *
function(item:*):Boolean

+         * @return A new stream that contains the results of the function on each item in the original stream.
+         */
         public function map(callback:Function):Stream
         {
             return new Stream(source.map(function (item:*, index:int, array:Array):*
@@ -757,7 +769,8 @@
          * Executes a test function on each item in the stream until an item is reached
          * that returns true. Use this method to determine whether any items in a
          * stream meet a criterion, such as having a value less than a particular number.
-         * @param callback
+         * @param callback The function to run on each item in the stream.
+         *
function(item:*):Boolean

          * @return  A Boolean value of true if any items in the stream return true for the specified function; otherwise false.
          */
         public function some(callback:Function):Boolean
@@ -976,18 +989,12 @@
             }
         }

-
-        /*
-         * IExternalizable part
-         * --------------------------------------------
-         */
-
         /**
          * A class implements this method to decode itself from a data stream by calling
          * the methods of the IDataInput interface. This method must read the values in
          * the same sequence and with the same types as were written by the writeExternal() method.
          * @param input The name of the class that implements the IDataInput interface.
-         * @private
+         * @see flash.utils.IExternalizable#readExternal
          */
         public function readExternal(input:IDataInput):void
         {
@@ -998,7 +1005,7 @@
          * A class implements this method to encode itself for a data stream by calling
          * the methods of the IDataOutput interface.
          * @param output The name of the class that implements the IDataOutput interface.
-         * @private
+         * @see flash.utils.IExternalizable#readExternal
          */
         public function writeExternal(output:IDataOutput):void
         {


Whitespace fixes.

Whitespace fixes.


Add if lever

Add if lever


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

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


ensure seek Level is less or equal than cap Level

--- src/org/mangui/hls/controller/LevelController.as
+++ src/org/mangui/hls/controller/LevelController.as
@@ -371,8 +371,8 @@
             var seek_level : int = -1;
             var levels : Vector.<Level> = _hls.levels;
             if (HLSSettings.seekFromLevel == -1) {
-                // keep last level
-                return _hls.loadLevel;
+                // keep last level, but don't exceed _maxLevel
+                return Math.min(_hls.loadLevel,_maxLevel);
             }

             // set up seek level as being the lowest non-audio level.


Bugfix: stop the positionTimer when we unload.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@698 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/video/FlvVideoPlayer.as
+++ src/as/com/threerings/flash/video/FlvVideoPlayer.as
@@ -154,6 +154,7 @@
     public function unload () :void
     {
         _sizeChecker.reset();
+        _positionChecker.reset();
         _vid.attachNetStream(null);

         if (_netStream != null) {


updated documentation of FastMath.atan2

updated documentation of FastMath.atan2

--- apparat-ersatz/src/main/as3/apparat/math/FastMath.as
+++ apparat-ersatz/src/main/as3/apparat/math/FastMath.as
@@ -77,11 +77,15 @@
 		}

 		/**
+		 * Computes and returns the angle of the point y/x in radians, when measured counterclockwise
+		 * from a circle's x axis (where 0,0 represents the center of the circle).
+		 * The return value is between positive pi and negative pi.
+		 *
 		 * @author Eugene Zatepyakin
 		 * @author Joa Ebert
-		 * @param y
-		 * @param x
-		 * @return
+		 * @param y A number specifying the y coordinate of the point.
+		 * @param x A number specifying the x coordinate of the point.
+		 * @return A number.
 		 */
 		public static function atan2(y:Number, x:Number):Number {
 			var angle: Number


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/core/MaskType.as
+++ frameworks/projects/spark/src/spark/core/MaskType.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.graphics
+package spark.core
 {

 /**


fix sizing logic

fix sizing logic

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/NonVirtualBasicLayout.as
@@ -20,11 +20,11 @@
 {

 	import org.apache.flex.core.IBeadLayout;
-    import org.apache.flex.core.ILayoutChild;
+	import org.apache.flex.core.ILayoutChild;
 	import org.apache.flex.core.ILayoutParent;
 	import org.apache.flex.core.IParentIUIBase;
 	import org.apache.flex.core.IStrand;
-    import org.apache.flex.core.IUIBase;
+	import org.apache.flex.core.IUIBase;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.IEventDispatcher;
@@ -70,6 +70,7 @@
 			IEventDispatcher(value).addEventListener("heightChanged", changeHandler);
             IEventDispatcher(value).addEventListener("widthChanged", changeHandler);
 			IEventDispatcher(value).addEventListener("childrenAdded", changeHandler);
+            IEventDispatcher(value).addEventListener("layoutNeeded", changeHandler);
 			IEventDispatcher(value).addEventListener("itemsCreated", changeHandler);
 			IEventDispatcher(value).addEventListener("beadsAdded", changeHandler);
 		}
@@ -89,39 +90,43 @@
                 var right:Number = ValuesManager.valuesImpl.getValue(child, "right");
                 var top:Number = ValuesManager.valuesImpl.getValue(child, "top");
                 var bottom:Number = ValuesManager.valuesImpl.getValue(child, "bottom");
+                var ww:Number = w;
+                var hh:Number = h;

                 if (!isNaN(left))
                 {
                     child.x = left;
+                    ww -= left;
                 }
                 if (!isNaN(top))
                 {
                     child.y = top;
+                    hh -= top;
                 }
                 var ilc:ILayoutChild;
                 if (child is ILayoutChild)
                 {
                     ilc = child as ILayoutChild;
-                    if (!isNaN(ilc.percentHeight))
-                        ilc.setHeight(contentView.height * ilc.percentHeight / 100);
+                    if (!isNaN(ilc.percentWidth))
+                        ilc.setWidth((ww - (isNaN(right) ? 0 : right)) * ilc.percentWidth / 100);
+                }
+                if (!isNaN(right))
+                {
+                    if (!isNaN(left))
+                        child.width = ww - right;
+                    else
+                        child.x = w - right - child.width;
                 }
                 if (child is ILayoutChild)
                 {
                     ilc = child as ILayoutChild;
-                    if (!isNaN(ilc.percentWidth))
-                        ilc.setWidth(contentView.width * ilc.percentWidth / 100);
-                }
-                if (!isNaN(right))
-                {
-                    if (!isNaN(left))
-                        child.width = w - right - left;
-                    else
-                        child.x = w - right - child.width;
+                    if (!isNaN(ilc.percentHeight))
+                        ilc.setHeight((hh - (isNaN(bottom) ? 0 : bottom)) * ilc.percentHeight / 100);
                 }
                 if (!isNaN(bottom))
                 {
                     if (!isNaN(top))
-                        child.height = h - bottom - top;
+                        child.height = hh - bottom;
                     else
                         child.y = h - bottom - child.height;
                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19270
Author:   cframpto@adobe.com
Date:     2010-12-10T18:21:34.150045Z

Log Message:
-----------
Add mouseWheelChanging event to VScrollBar, HScrollBar and Scroller.  The event is dispatched before the mouseWheel event modifies the scroll position.  The event can be canceled to prevent the mouseWheel handler's default behavior or the event's delta can be modified and that value will be used by the mouseWheel handler when calculating the new scroll position.  In RichEditableText, when pasting, add null check before accessing the TextScrap.  There is a bug in one or more version of the player such that this can be null at times.

QE notes: Hans said we will do a PARB review by email for the new event
Doc notes:
Bugs: SDK-27106, SDK-26432
Reviewer: Hans (scroller), Darrell (RET)
Tests run: cyclone
Is noteworthy for integration: yes - new mouseWheelChanging event on VScrollBar, HScrollBar and Scroller

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexMouseEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/MouseEventUtil.as</path>

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

--- frameworks/projects/framework/src/mx/events/FlexMouseEvent.as
+++ frameworks/projects/framework/src/mx/events/FlexMouseEvent.as
@@ -92,6 +92,64 @@
 	 */
 	public static const MOUSE_DOWN_OUTSIDE:String = "mouseDownOutside";

+    /**
+     *  The FlexMouseEvent.MOUSE_WHEEL_CHANGING constant defines the value of the
+     *  type property of the event object for a mouseWheelChanging
+     *  event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
altKey
+     *         Indicates whether the Alt key is down
+     * 	          (true) or not (false).

+     *
bubbles	false

+     *
buttonDown
+     *         Indicates whether the main mouse button is down
+     * 	          (true) or not (false).

+     *
cancelable	false

+     *
ctrlKey
+     *         Indicates whether the Control key is down
+     * 	          (true) or not (false).

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

+     *
delta
+     *         Indicates how many lines should be scrolled for each notch the user
+     *             scrolls the mouse wheel.
+     *

+     *
localX
+     *         The horizontal position at which the event occurred.
+     *

+     *
localY
+     *         The vertical position at which the event occurred.
+     *

+     *
relatedObject
+     *         A reference to a display list object that is related to the event.
+	 *             For this event, the object is the component which is
+	 *             the target of the mouseWheel event.

+     *
shiftKey
+     *         Indicates whether the Shift key is down
+     * 	          (true) or not (false).

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

+     *

+     *
+     *  @eventType mouseWheelChanging
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const MOUSE_WHEEL_CHANGING:String = "mouseWheelChanging";
+
 	/**
 	 *  The FlexMouseEvent.MOUSE_WHEEL_OUTSIDE constant defines the value of the
 	 *  type property of the event object for a mouseWheelOutside


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

--- frameworks/projects/mx/src/mx/skins/halo/ProgressTrackSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ProgressTrackSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2006 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: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/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/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.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/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/FocusSkin.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/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.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/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.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/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.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/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -1528,7 +1528,7 @@
      */
     private function videoElement_completeHandler(event:spark.events.VideoEvent):void
     {
-        // TODO: needed??
+        // FIXME (rfrishbe): needed??
         if (totalTimeDisplay)
             updateTotalTime();

@@ -1732,7 +1732,7 @@

             systemManager.stage.fullScreenSourceRect = new Rectangle(0, 0, width, height);

-            // TODO (rfrishbe): Should we make this FULL_SCREEN_INTERACTIVE if in AIR?
+            // FIXME (rfrishbe): Should we make this FULL_SCREEN_INTERACTIVE if in AIR?
             systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;

             // start timer for detecting for mouse movements/clicks to hide the controls


Transferred from the Adobe Open Source Subversion Repository

Revision: 21763
Author:   eday@adobe.com
Date:     2011-08-02T00:08:19.563082Z

Log Message:
-----------
Item Snapping fixes + tests
- Made page velocity change per XD motion review
- Fixed small bug causing RTE on orientation changes
- Fixed small bug causing RTE with empty list
- Added snapping and paging cases to MobileSkins app
- Added snapping and paging tests to mobile checkintests

QE notes:
Doc notes:
Bugs:
Reviewer: Jason Szeto
Tests run: checkintests, full Cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/ListSnappingTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/renderers</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/views/ListPaging.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/views/MobileSkinsHomeView.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite1.jpg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite2.jpg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite3.jpg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/airMobileBasicTests-config.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite4.jpg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/views/ListSnapping.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite5.jpg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/assets/yosemite6.jpg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/views/ListPagingView.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/airMobileBasicTests/src/mobile/scripts/ListPagingTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/renderers/ImageRenderer.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/tests/MobileSkins/src/views/ListSnappingView.mxml</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -2247,8 +2247,11 @@
             return super.getElementNearestScrollPosition(position, elementComparePoint);

         var g:GroupBase = GroupBase(target);
-        if (!g || !llv)
+        if (!g)
             return -1;
+
+        // We need a valid LLV for this function
+        updateLLV(g);

         // Find the element which overlaps with the position
         var index:int = llv.indexOf(position.y);


minor coding style fixes in ShaderInstance

--- src/aerys/minko/render/shader/ShaderInstance.as
+++ src/aerys/minko/render/shader/ShaderInstance.as
@@ -24,17 +24,17 @@
 		private static const TMP_NUMBERS	: Vector.<Number>	= new Vector.<Number>(0xffff, true);
 		private static const TMP_INTS		: Vector.<int>		= new Vector.<int>(0xffff, true);

-		private var _numUses	: int					= 0;
-		private var _generator	: Shader				= null;
-		private var _signature	: Signature				= null;
+		private var _numUses	: int				= 0;
+		private var _generator	: Shader			= null;
+		private var _signature	: Signature			= null;

-		private var _settings		: ShaderSettings		= null;
-		private var _program	: Program3DResource		= null;
+		private var _settings	: ShaderSettings	= null;
+		private var _program	: Program3DResource	= null;

-		private var _retained	: Signal				= new Signal('ShaderInstance.retained');
-		private var _released	: Signal				= new Signal('ShaderInstance.released');
-		private var _begin		: Signal				= new Signal('ShaderInstance.begin');
-		private var _end		: Signal				= new Signal('ShaderInstance.end');
+		private var _retained	: Signal			= new Signal('ShaderInstance.retained');
+		private var _released	: Signal			= new Signal('ShaderInstance.released');
+		private var _begin		: Signal			= new Signal('ShaderInstance.begin');
+		private var _end		: Signal			= new Signal('ShaderInstance.end');

 		public function get generator() : Shader
 		{
@@ -58,7 +58,7 @@

 		public function get isDisposable() : Boolean
 		{
-			return _numUses == 0
+			return _numUses == 0;
 		}

 		public function get retained() : Signal


Some layout fixes. These buttons are still really ugly, alas.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@264 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/SimpleTextButton.as
+++ src/as/com/threerings/flash/SimpleTextButton.as
@@ -53,31 +53,23 @@
         label.text = text;
         label.textColor = foreground;
         label.autoSize = TextFieldAutoSize.LEFT;
+        face.addChild(label);

-        var w :Number = label.textWidth + 2 * padding;
-        var h :Number = label.textHeight + 2 * padding;
+        var w :Number = label.width + 2 * padding;
+        var h :Number = label.height + 2 * padding;

-        // create our button background (and outline)
-        var button :Shape = new Shape();
-        button.graphics.beginFill(background);
+        // draw our button background (and outline)
+        face.graphics.beginFill(background);
+        face.graphics.lineStyle(1, foreground);
         if (rounded) {
-            button.graphics.drawRoundRect(0, 0, w, h, padding, padding);
+            face.graphics.drawRoundRect(0, 0, w, h, padding, padding);
         } else {
-            button.graphics.drawRect(0, 0, w, h);
+            face.graphics.drawRect(0, 0, w, h);
         }
-        button.graphics.endFill();
-        button.graphics.lineStyle(1, foreground);
-        if (rounded) {
-            button.graphics.drawRoundRect(0, 0, w, h, padding, padding);
-        } else {
-            button.graphics.drawRect(0, 0, w, h);
-        }
-
-        face.addChild(button);
+        face.graphics.endFill();

         label.x = padding;
         label.y = padding;
-        face.addChild(label);

         return face;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4840
Author:   egeorgie@adobe.com
Date:     2009-02-04T21:20:07.890221Z

Log Message:
-----------
Fix bug SDK-18904 Redudant APIs on UICompoennt and GraphicElement, SDK-17508 Applying a translation to a Rect causes shape to be scaled

Fix: remove layoutMatrix, layoutMatrix3D properties, add a parameter to the setLayoutMatrix, setLayoutMatrix3D methods to designate whether to trigger a layout pass after the transformation is applied.

QE Notes: None
Doc Notes: None
Bugs: SDK-18434
Reviewer: Jason
tests: checkintests, mustella flash component kit

Modified Paths:
--------------
<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/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/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/framework/src/mx/core/ILayoutElement.as
+++ frameworks/projects/framework/src/mx/core/ILayoutElement.as
@@ -83,8 +83,8 @@
      *  layout transform matrix.
      *
      *  @see #getPreferredHeight
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getPreferredBoundsWidth(postTransform:Boolean=true):Number;

@@ -99,8 +99,8 @@
      *  layout transform matrix.
      *
      *  @see #getPreferredWidth
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getPreferredBoundsHeight(postTransform:Boolean=true):Number;

@@ -113,8 +113,8 @@
      *  layout transform matrix.
      *
      *  @see #getMinHeight
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getMinBoundsWidth(postTransform:Boolean=true):Number;

@@ -127,8 +127,8 @@
      *  layout transform matrix.
      *
      *  @see #getMinWidth
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getMinBoundsHeight(postTransform:Boolean=true):Number;

@@ -141,8 +141,8 @@
      *  layout transform matrix.
      *
      *  @see #getMaxHeight
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getMaxBoundsWidth(postTransform:Boolean=true):Number;

@@ -155,8 +155,8 @@
      *  layout transform matrix.
      *
      *  @see #getMaxWidth
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getMaxBoundsHeight(postTransform:Boolean=true):Number;

@@ -170,8 +170,8 @@
      *  layout transform matrix.
      *
      *  @see #getLayoutHeight
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getLayoutBoundsWidth(postTransform:Boolean=true):Number;

@@ -185,8 +185,8 @@
      *  layout transform matrix.
      *
      *  @see #getLayoutWidth
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getLayoutBoundsHeight(postTransform:Boolean=true):Number;

@@ -199,8 +199,8 @@
      *  from the element's layout size, layout position and layout transform matrix.
      *
      *  @see #getLayoutPositionY
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getLayoutBoundsX(postTransform:Boolean=true):Number;

@@ -213,8 +213,8 @@
      *  from the element's layout size, layout position and layout transform matrix.
      *
      *  @see #getLayoutPositionX
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function getLayoutBoundsY(postTransform:Boolean=true):Number;

@@ -230,8 +230,8 @@
      *  setLayoutPosition should be called after setLayoutSize.
      *
      *  @see #setLayoutSize
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function setLayoutBoundsPosition(x:Number, y:Number, postTransform:Boolean=true):void;

@@ -262,16 +262,34 @@
      *  from the element's layout size, layout position and layout transform matrix.
      *
      *  @see #setLayoutPosition
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      */
     function setLayoutBoundsSize(width:Number = Number.NaN,
                            height:Number = Number.NaN,
                            postTransform:Boolean=true):void;

     /**
-     *  Returns the layout transform Matrix for this element.
-     *  Don't directly modify the return value but call setLayoutMatrix instead.
+     *  Returns the transform matrix that is used to calculate the component's
+     *  layout relative to its siblings.
+     *
+     *
This matrix is typically defined by the
+     *  component's 2D properties such as x, y,
+     *  rotation, scaleX, scaleY,
+     *  transformX, and transformY.
+     *  Some components may have additional transform properties that
+     *  are applied on top of the layout matrix to determine the final,
+     *  computed matrix.  For example UIComponent
+     *  defines the offsets property.

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

+     *
+     *  @see #setLayoutMatrix
+     *  @see #getLayoutMatrix3D
+     *  @see #setLayoutMatrix3D
+     *  @see mx.core.UIComponent#offsets
+     *  @see mx.graphics.graphicsClasses.GraphicElement#offsets
      */
     function getLayoutMatrix():Matrix;

@@ -279,24 +297,57 @@
      *  Sets the transform Matrix that is used to calculate the component's layout
      *  size and position relative to its siblings.
      *
-     *  Note that layout Matrix is factored in the getPreferredSize(),
+     *
This matrix is typically defined by the
+     *  component's 2D properties such as x, y,
+     *  rotation, scaleX, scaleY,
+     *  transformX, and transformY.
+     *  Some components may have additional transform properties that
+     *  are applied on top of the layout matrix to determine the final,
+     *  computed matrix.  For example UIComponent
+     *  defines the offsets.

+     *
+     *
Note that layout Matrix is factored in the getPreferredSize(),
      *  getMinSize(), getMaxSize(), getLayoutSize() when computed in parent coordinates
      *  as well as in getLayoutPosition() in both parent and child coordinates.
-     *
-     *
The method is typically used by layouts that calculate the transform
-     *  matrix explicitly and work with sizes in child coordinates, ingnoring
-     *  getLayoutPosition.  Calling this method does not cause a subsequent layout
-     *  pass (doesn't invalidate element's parent size or display list).

-     *
+     *  Layouts that calculate the transform matrix explicitly typically call
+     *  this method and work with sizes in child coordinates.
+     *  Layouts calling this method pass false
+     *  to triggerLayout so that a subsequent layout pass is not
+     *  triggered.

+     *
+     *
Developers that call this method directly typically pass true
+     *  to triggerLayout so that the parent container is notified that
+     *  it needs to re-layout the children.

+     *
+     *  @see #getLayoutMatrix
+     *  @see #getLayoutMatrix3D
      *  @see #setLayoutMatrix3D
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
-     */
-    function setLayoutMatrix(m:Matrix):void;
+     *  @see mx.core.UIComponent#offsets
+     *  @see mx.graphics.graphicsClasses.GraphicElement#offsets
+     */
+    function setLayoutMatrix(m:Matrix, triggerLayout:Boolean):void;

     /**
      *  Returns the layout transform Matrix3D for this element.
-     *  Don't directly modify the return value but call setLayoutMatrix instead.
+     *
+     *
This matrix is typically defined by the
+     *  component's transform properties such as x, y,
+     *  z, rotationX, rotationY,
+     *  rotationZ, scaleX, scaleY,
+     *  scaleZ, transformX, and transformY.
+     *  Some components may have additional transform properties that
+     *  are applied on top of the layout matrix to determine the final,
+     *  computed matrix.  For example UIComponent
+     *  defines the offsets property.

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

+     *
+     *  @see #getLayoutMatrix
+     *  @see #setLayoutMatrix
+     *  @see #setLayoutMatrix3D
+     *  @see mx.core.UIComponent#offsets
+     *  @see mx.graphics.graphicsClasses.GraphicElement#offsets
      */
     function getLayoutMatrix3D():Matrix3D;

@@ -304,20 +355,36 @@
      *  Sets the transform Matrix3D that is used to calculate the component's layout
      *  size and position relative to its siblings.
      *
-     *  Note that layout Matrix3D is factored in the getPreferredSize(),
+     *
This matrix is typically defined by the
+     *  component's transform properties such as x, y,
+     *  z, rotationX, rotationY,
+     *  rotationZ, scaleX, scaleY,
+     *  scaleZ, transformX, and transformY.
+     *  Some components may have additional transform properties that
+     *  are applied on top of the layout matrix to determine the final,
+     *  computed matrix.  For example UIComponent
+     *  defines the offsets property.

+     *
+     *
Note that layout Matrix3D is factored in the getPreferredSize(),
      *  getMinSize(), getMaxSize(), getLayoutSize() when computed in parent coordinates
      *  as well as in getLayoutPosition() in both parent and child coordinates.
-     *
-     *
The method is typically used by layouts that calculate the transform
-     *  matrix explicitly and work with sizes in child coordinates, ingnoring
-     *  getLayoutPosition.  Calling this method does not cause a subsequent layout
-     *  pass (doesn't invalidate element's parent size or display list).

-     *
-     *  @see #setLayoutMatrix3D
-     *  @see mx.core.UIComponent#layoutMatrix
-     *  @see mx.core.UIComponent#layoutMatrix3D
-     */
-    function setLayoutMatrix3D(m:Matrix3D):void;
+     *  Layouts that calculate the transform matrix explicitly typically call
+     *  this method and work with sizes in child coordinates.
+     *  Layouts calling this method pass false
+     *  to triggerLayout so that a subsequent layout pass is not
+     *  triggered.

+     *
+     *
Developers that call this method directly typically pass true
+     *  to triggerLayout so that the parent container is notified that
+     *  it needs to re-layout the children.

+     *
+     *  @see #getLayoutMatrix
+     *  @see #setLayoutMatrix
+     *  @see #getLayoutMatrix3D
+     *  @see mx.core.UIComponent#offsets
+     *  @see mx.graphics.graphicsClasses.GraphicElement#offsets
+     */
+    function setLayoutMatrix3D(m:Matrix3D, triggerLayout:Boolean):void;
 }

 }


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

--- frameworks/projects/framework/src/mx/effects/TweenEffect.as
+++ frameworks/projects/framework/src/mx/effects/TweenEffect.as
@@ -26,6 +26,11 @@
  *  before the tweenStart event.

  *
  *  @eventType mx.events.TweenEvent.TWEEN_START
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="tweenStart", type="mx.events.TweenEvent")]

@@ -35,6 +40,11 @@
  *  the TweenEffectInstance.onTweenUpdate() method.
  *
  *  @eventType mx.events.TweenEvent.TWEEN_UPDATE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="tweenUpdate", type="mx.events.TweenEvent")]

@@ -51,6 +61,11 @@
  *  after the effect plays for the final time.

  *
  *  @eventType mx.events.TweenEvent.TWEEN_END
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="tweenEnd", type="mx.events.TweenEvent")]

@@ -85,6 +100,11 @@
  *  @see mx.effects.effectClasses.TweenEffectInstance
  *
  *  @includeExample examples/SimpleTweenEffectExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TweenEffect extends Effect
 {
@@ -100,6 +120,11 @@
      *  Constructor.
      *
      *  @param target The Object to animate with this effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function TweenEffect(target:Object = null)
     {
@@ -148,6 +173,11 @@
      *
Flex includes a set of easing functions
      *  in the mx.effects.easing package.

      *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var easingFunction:Function = null;

@@ -182,6 +212,11 @@
      *  If you override this method, ensure that you call the super method.
      *
      *  @param event An event object of type TweenEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function tweenEventHandler(event:TweenEvent):void
     {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/graphics/SolidColor.as
+++ frameworks/projects/framework/src/mx/graphics/SolidColor.as
@@ -0,0 +1,154 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.graphics
+{
+
+import flash.display.Graphics;
+import flash.geom.Rectangle;
+import flash.events.EventDispatcher;
+import flash.events.Event;
+import mx.events.PropertyChangeEvent;
+
+[DefaultProperty("color")]
+
+/**
+ *  Defines a representation for a color,
+ *  including a color and an alpha value.
+ *
+ *  @see mx.graphics.IFill
+ */
+public class SolidColor extends EventDispatcher implements IFill
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+ 	/**
+	 *  Constructor.
+	 *
+	 *  @param color Specifies the color.
+	 *  The default value is 0x000000 (black).
+	 *
+	 *  @param alpha Specifies the level of transparency.
+	 *  Valid values range from 0.0 (completely transparent)
+	 *  to 1.0 (completely opaque).
+	 *  The default value is 1.0.
+ 	 */
+	public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)
+ 	{
+		super();
+
+		this.color = color;
+		this.alpha = alpha;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  alpha
+	//----------------------------------
+
+	private var _alpha:Number = 1.0;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+	/**
+	 *  The transparency of a color.
+	 *  Possible values are 0.0 (invisible) through 1.0 (opaque).
+	 *
+	 *  @default 1.0
+	 */
+	public function get alpha():Number
+	{
+		return _alpha;
+	}
+
+	public function set alpha(value:Number):void
+	{
+		var oldValue:Number = _alpha;
+		if (value != oldValue)
+		{
+			_alpha = value;
+			dispatchFillChangedEvent("alpha", oldValue, value);
+		}
+	}
+
+	//----------------------------------
+	//  color
+	//----------------------------------
+
+	private var _color:uint = 0x000000;
+
+	[Bindable("propertyChange")]
+    [Inspectable(category="General", format="Color")]
+
+	/**
+	 *  A color value.
+	 */
+	public function get color():uint
+	{
+		return _color;
+	}
+
+	public function set color(value:uint):void
+	{
+		var oldValue:uint = _color;
+		if (value != oldValue)
+		{
+			_color = value;
+			dispatchFillChangedEvent("color", oldValue, value);
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @inheritDoc
+	 */
+	public function begin(target:Graphics, rc:Rectangle):void
+	{
+		target.beginFill(color, alpha);
+	}
+
+	/**
+	 *  @inheritDoc
+	 */
+	public function end(target:Graphics):void
+	{
+		target.endFill();
+	}
+
+	/**
+	 *  @private
+	 */
+	private function dispatchFillChangedEvent(prop:String, oldValue:*,
+											  value:*):void
+	{
+        dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
+															oldValue, value));
+	}
+}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5004
Author:   rfrishbe@adobe.com
Date:     2009-02-19T01:17:22.291072Z

Log Message:
-----------
Working on cleaning up the renderers again when the dataProvider is set.  At the dataProvider setter time, we clean up the old ones.  At commitProperties() time we create the new ones (in the virtual case, this is done at updateDisplayList() time).

I had to add some cleanup around a dataProvider reset or refresh because we need to do this cleanup there as well.  However, we can't rely on the dataProvider to loop through the item renderers because it may have changed, so we rely on our own data structure, indexToRenderers.  This makes finding the actual item associated with the renderer a little hard, but for most use-cases it should be fine.

QE Notes: -
Doc Notes: -
Bugs: SDK-19364
Reviewer: Glenn
tests: checkintests, DataGroup, FxList, FxButtonBar, FxDataContainer

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -19,7 +19,6 @@
 import mx.layout.LayoutElementFactory;

-
 /**
  *  Dispatched when a renderer is added to the content holder.
  * event.renderer is the renderer that was added.
@@ -231,9 +230,8 @@
     {
         _itemRenderer = value;

+        cleanUpDataProvider();
         invalidateProperties();
-        invalidateSize();
-        invalidateDisplayList();

         itemRendererChanged = true;
         typicalItemChanged = true;
@@ -272,16 +270,15 @@
     {
         _itemRendererFunction = value;

+        cleanUpDataProvider();
         invalidateProperties();
-        invalidateSize();
-        invalidateDisplayList();

         itemRendererChanged = true;
         typicalItemChanged = true;
     }

     private var _dataProvider:IList;
-    private var dataProviderChanged:Boolean = false;
+    private var dataProviderChanged:Boolean;

     [Bindable("dataProviderChanged")]
     /**
@@ -308,21 +305,70 @@
     {
         if (_dataProvider == value)
             return;
-
+
+        cleanUpDataProvider();
+
+        _dataProvider = value;
+        dataProviderChanged = true;
+        invalidateProperties();
+    }
+
+    /**
+     *  Cleans up all the old item renderers.
+     */
+    protected function cleanUpDataProvider():void
+    {
+        if (_dataProvider)
+            _dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler);
+
+        var index:int;
+        var vLayout:Boolean = layout && layout.useVirtualLayout;
+
         // if there's an old dataProvider, and we've created the item renderer for
         // that dataProvider, then we need to clear out all those item renderers
-        if (!dataProviderChanged && _dataProvider)
-        {
-            var vLayout:Boolean = layout && layout.useVirtualLayout;
-            var startIndex:int = vLayout ? virtualLayoutStartIndex : 0;
-            var endIndex:int = vLayout ? virtualLayoutEndIndex : dataProvider.length - 1;
-            for (var index:int = endIndex; index >= startIndex; index--)
-            {
-                mx_internal::itemRemoved(_dataProvider.getItemAt(index), index);
-            }
-
-            if (vLayout)
-            {
+        if (indexToRenderer.length > 0)
+        {
+            var renderer:IVisualElement = indexToRenderer[index] as IVisualElement;
+            var item:Object;
+
+            if (!vLayout)
+            {
+                for (index = indexToRenderer.length - 1; index >= 0; index--)
+                {
+                    // TODO (rfrishbe): we can't key off of the oldDataProvider for
+                    // the item because it might not be there anymore (for instance,
+                    // in a dataProvider reset where the new data is loaded into
+                    // the dataProvider--the dataProvider doesn't actually change,
+                    // but we still need to clean up).
+                    // Because of this, we are assuming the item is either:
+                    //   1.  The data property if the item implements IDataRenderer
+                    //       and there is an itemRenderer or itemRendererFunction
+                    //   2.  The item itself
+
+                    renderer = indexToRenderer[index] as IVisualElement;
+                    if (renderer is IDataRenderer && (itemRenderer != null || itemRendererFunction != null))
+                        item = IDataRenderer(renderer).data;
+                    else
+                        item = renderer;
+                    mx_internal::itemRemoved(item, index);
+                }
+                indexToRenderer = [];
+            }
+            else
+            {
+                for (index = virtualLayoutEndIndex; index >= virtualLayoutStartIndex; index--)
+                {
+                    // TODO (rfrishbe): same as above
+
+                    renderer = indexToRenderer[index] as IVisualElement;
+                    if (renderer is IDataRenderer && (itemRenderer != null || itemRendererFunction != null))
+                        item = IDataRenderer(renderer).data;
+                    else
+                        item = renderer;
+                    mx_internal::itemRemoved(item, index);
+                }
+                indexToRenderer = [];
+
                 virtualLayoutStartIndex = virtualLayoutEndIndex = -1;
                 oldVirtualLayoutStartIndex = oldVirtualLayoutEndIndex = -1;

@@ -333,17 +379,6 @@
                 }
             }
         }
-
-        if (_dataProvider)
-            _dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler);
-
-        _dataProvider = value;
-
-        if (_dataProvider)
-            _dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler, false, 0, true);
-
-        dataProviderChanged = true;
-        invalidateProperties();
     }

     /**
@@ -351,20 +386,25 @@
      */
     protected function initializeDataProvider():void
     {
+        var index:int;
         var vLayout:Boolean = layout && layout.useVirtualLayout;
-
-        // Create all item renderers eagerly
-        if (_dataProvider && !vLayout)
-        {
-            for (var i:int = 0; i < _dataProvider.length; i++)
-                mx_internal::itemAdded(_dataProvider.getItemAt(i), i);
-        }
-
-        // The display list will be created lazily, at updateDisplayList() time
-        if (vLayout)
-        {
-            invalidateSize();
-            invalidateDisplayList();
+
+        if (_dataProvider)
+        {
+            _dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler, false, 0, true);
+
+            // Create all item renderers eagerly
+            if (!vLayout)
+            {
+                for (index = 0; index < _dataProvider.length; index++)
+                    mx_internal::itemAdded(_dataProvider.getItemAt(index), index);
+            }
+            else
+            {
+                // The display list will be created lazily, at updateDisplayList() time
+                invalidateSize();
+                invalidateDisplayList();
+            }
         }
     }

@@ -460,7 +500,7 @@
         {
             typicalItemChanged = false;
             initializeTypicalItem();
-        }
+        }
     }

     private function manageDisplayObjectLayers():void
@@ -947,9 +987,6 @@
      */
     protected function dataProvider_collectionChangeHandler(event:CollectionEvent):void
     {
-        if (dataProviderChanged || itemRendererChanged)
-            return;
-
         switch (event.kind)
         {
             case CollectionEventKind.ADD:
@@ -986,7 +1023,8 @@

             case CollectionEventKind.REFRESH:
             {
-                // from a filter or sort...let's just reset everything
+                // from a filter or sort...let's just reset everything
+                cleanUpDataProvider();
                 dataProviderChanged = true;
                 invalidateProperties();
                 break;
@@ -994,7 +1032,8 @@

             case CollectionEventKind.RESET:
             {
-                // reset everything
+                // reset everything
+                cleanUpDataProvider();
                 dataProviderChanged = true;
                 invalidateProperties();
                 break;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7910
Author:   egeorgie@adobe.com
Date:     2009-06-17T01:41:55.138890Z

Log Message:
-----------
P-ARB changes:

* IGraphicElement sharedIndex -> DisplayObjectSharingMode
* ScrollUnit -> NavigationUnit
* LayoutBase.getDestinationIndex -> LayoutBase.getNavigationDestinationIndex, param order reversed!!!!
* mouseOpaque -> mouseEnabledWhereTransparent
* various other small renames and changes to non-public APIs

Doc Notes: None
Bugs: N/A
Reviewer: Deepa
tests: checkintests

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/DataGroup.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/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/InvalidatingSprite.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/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.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/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -662,7 +662,7 @@
             useVirtualLayoutChanged = false;

             if (layout)
-                layout.clearCachedVirtualLayoutState();
+                layout.clearVirtualLayoutCache();

             // If an explicit value for typicalItem was never set, then clear
             // the layout's typicalLayoutElement, which will force it to be


Transferred from the Adobe Open Source Subversion Repository

Revision: 3985
Author:   smgilson@adobe.com
Date:     2008-10-31T20:45:23.566944Z

Log Message:
-----------
add pointers to event classes

QE Notes: None
Doc Notes: None
Bugs: -

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

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -11,7 +11,7 @@

 package mx.components
 {
-
+
 import flash.events.Event;
 import flash.events.FocusEvent;

@@ -28,6 +28,8 @@

 /**
  *  Dispatched when the user pressed the Enter key.
+ *
+ *  @eventType mx.events.FlexEvent.ENTER
  */
 [Event(name="enter", type="mx.events.FlexEvent")]

@@ -62,97 +64,97 @@
     /**
      *  Constructor.
      */
-	public function FxTextInput()
-	{
-		super();
-	}
+    public function FxTextInput()
+    {
+        super();
+    }

-	//----------------------------------
-	//  widthInChars
+    //----------------------------------
+    //  widthInChars
     //----------------------------------

-	/**
-	 *  @private
-	 */
-	private var _widthInChars:int = 20;
+    /**
+     *  @private
+     */
+    private var _widthInChars:int = 20;

-	/**
-	 *  @private
-	 */
-	private var widthInCharsChanged:Boolean = false;
-
-	/**
-	 *  The default width for the TextInput, measured in characters.
-	 *  The width of the "0" character is used for the calculation,
-	 *  since in most fonts the digits all have the same width.
-	 *  So if you set this property to 5, it will be wide enough
-	 *  to let the user enter 5 digits.
-	 *
-	 *  @default
-	 */
-	public function get widthInChars():int
-	{
-		return _widthInChars;
-	}
+    /**
+     *  @private
+     */
+    private var widthInCharsChanged:Boolean = false;
+
+    /**
+     *  The default width for the TextInput, measured in characters.
+     *  The width of the "0" character is used for the calculation,
+     *  since in most fonts the digits all have the same width.
+     *  So if you set this property to 5, it will be wide enough
+     *  to let the user enter 5 digits.
+     *
+     *  @default
+     */
+    public function get widthInChars():int
+    {
+        return _widthInChars;
+    }

-	/**
-	 *  @private
-	 */
-	public function set widthInChars(value:int):void
-	{
-		if (value == _widthInChars)
-			return;
+    /**
+     *  @private
+     */
+    public function set widthInChars(value:int):void
+    {
+        if (value == _widthInChars)
+            return;

-		_widthInChars = value;
-		widthInCharsChanged = true;
+        _widthInChars = value;
+        widthInCharsChanged = true;

-		invalidateProperties();
-	}
+        invalidateProperties();
+    }

-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
     //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 *  Pushes various TextInput properties down into the TextView.
-	 */
+    /**
+     *  @private
+     *  Pushes various TextInput properties down into the TextView.
+     */
     override protected function commitProperties():void
-	{
-		super.commitProperties();
+    {
+        super.commitProperties();

-		if (widthInCharsChanged)
-		{
-			textView.widthInChars = _widthInChars;
-			widthInCharsChanged = false;
-		}
-	}
+        if (widthInCharsChanged)
+        {
+            textView.widthInChars = _widthInChars;
+            widthInCharsChanged = false;
+        }
+    }

-	/**
-	 *  @private
-	 */
-	override protected function partAdded(partName:String, instance:Object):void
-	{
-		super.partAdded(partName, instance);
+    /**
+     *  @private
+     */
+    override protected function partAdded(partName:String, instance:Object):void
+    {
+        super.partAdded(partName, instance);

-		if (instance == textView)
-		{
-			// Set the TextView to allow only one line of input.
+        if (instance == textView)
+        {
+            // Set the TextView to allow only one line of input.
             textView.heightInLines = 1;
-			textView.multiline = false;
+            textView.multiline = false;
             textView.setStyle("lineBreak", "explicit");
-		}
-	}
+        }
+    }

-	/**
-	 *  @private
-	 */
-	override protected function getCurrentSkinState():String
-	{
-		return enabled ? "normal" : "disabled";
-	}
+    /**
+     *  @private
+     */
+    override protected function getCurrentSkinState():String
+    {
+        return enabled ? "normal" : "disabled";
+    }
 }

 }


Mark all nodes as visited when opening a saved record so that validation errors will be shown

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/MasterPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/MasterPresenter.as
@@ -68,6 +68,7 @@
 		 * */
 		protected function loadRecordResultHandler(event:ResultEvent, token:Object = null):void {
 			var record:RecordProxy = RecordProxy(event.result);
+			record.markNodesAsVisited();
 			setActiveRecord(record);
 		}


fixed bug handling diff for targetPath.

fixed bug handling diff for targetPath.

--- WeaveCore/src/weave/core/LinkableDynamicObject.as
+++ WeaveCore/src/weave/core/LinkableDynamicObject.as
@@ -128,7 +128,7 @@
 					sessionState = [objectName];
 				}

-				if (className == ARRAY_CLASS_NAME)
+				if (className == ARRAY_CLASS_NAME || (!className && targetPath))
 					targetPath = sessionState as Array;
 				else if (className == SessionManager.DIFF_DELETE)
 					target = null;
@@ -139,7 +139,7 @@
 					if (className || removeMissingDynamicObjects)
 						setLocalObjectType(className);
 					var classDef:Class = ClassUtils.getClassDefinition(className);
-					if (!className || (classDef && target is classDef))
+					if ((!className && target) || (classDef && target is classDef))
 						WeaveAPI.SessionManager.setSessionState(target, sessionState, prevTarget != target || removeMissingDynamicObjects);
 				}
 			}


remove useless imports

remove useless imports

--- src/aerys/minko/render/material/basic/BasicShader.as
+++ src/aerys/minko/render/material/basic/BasicShader.as
@@ -1,10 +1,8 @@
 package aerys.minko.render.material.basic
 {
-	import aerys.minko.render.DrawCall;
 	import aerys.minko.render.RenderTarget;
 	import aerys.minko.render.shader.SFloat;
 	import aerys.minko.render.shader.Shader;
-	import aerys.minko.render.shader.ShaderInstance;
 	import aerys.minko.render.shader.ShaderSettings;
 	import aerys.minko.render.shader.part.DiffuseShaderPart;
 	import aerys.minko.render.shader.part.animation.VertexAnimationShaderPart;
@@ -190,10 +188,6 @@
 		 */
 		override protected function getVertexPosition() : SFloat
 		{
-			var triangleCulling	: uint	= meshBindings.getProperty(
-				BasicProperties.TRIANGLE_CULLING, TriangleCulling.BACK
-			);
-
 			return localToScreen(
 				_vertexAnimationPart.getAnimatedVertexPosition()
 			);
@@ -205,9 +199,7 @@
 		 */
 		override protected function getPixelColor() : SFloat
 		{
-			var diffuse	: SFloat = _diffuseShaderPart.getDiffuseColor();
-
-			return diffuse;
+			return _diffuseShaderPart.getDiffuseColor();
 		}
 	}
 }


369 Obsessive dinking around with documentation

--- raw/src/org/yellcorp/lib/core/Set.as
+++ raw/src/org/yellcorp/lib/core/Set.as
@@ -12,7 +12,7 @@
  * keys in a flash.utils.Dictionary, that is, strict equality (===).
  *
  * This class extends flash.utils.Proxy to support
- * for each...in iteration, but as there are no keys,
+ * for each...in iteration, but because there are no keys,
  * for...in iteration is not supported, and neither is []
  * access.
  */
@@ -152,8 +152,8 @@
     }

     /**
-     * Removes some element from the Set and returns it.  Exactly which
-     * element is returned is not defined, as the Set is unordered. This can
+     * Removes some element from the Set and returns it. The element that
+     * is returned is not defined, as the Set is unordered. This can
      * be used to destructively iterate over a Set's elements.
      *
      * @return An element from the Set, or null if the Set is


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19722
Author:   egeorgie@adobe.com
Date:     2011-01-12T00:53:24.336848Z

Log Message:
-----------
Fix popups/tooltips and scaling bugs:
Slider tooltip renders far above under 2.0 scaling - http://bugs.adobe.com/jira/browse/SDK-28833
Mobile HSliderSkin dataTip sometimes stops following the thumb all the way to the right edge - http://bugs.adobe.com/jira/browse/SDK-28762
When the app is scaled, DropDownList shows the list at wrong place - http://bugs.adobe.com/jira/browse/SDK-28818

In this change:
- update popup/tooltip positioning code to work with scaling.

QE notes:  make another test pass on tooltips/pop-ups
Doc notes:
Bugs: SDK-28833, SDK-28762, SDK-28818
Reviewer: Alex
Tests run: full mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/PopUpUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/VSlider.as
+++ frameworks/projects/spark/src/spark/components/VSlider.as
@@ -18,6 +18,7 @@

 import mx.core.IDataRenderer;
 import mx.core.LayoutDirection;
+import mx.utils.PopUpUtil;

 import spark.components.supportClasses.SliderBase;

@@ -167,28 +168,27 @@

         if (tipAsDisplayObject && thumb)
         {
-            // Get the tips bounds. We only care about the dimensions.
-            var tipBounds:Rectangle = tipAsDisplayObject.getBounds(tipAsDisplayObject.parent);
+            // We are working in thumb.parent coordinates and we assume that there's no scale factor
+            // between the tooltip and the thumb.parent.
             var relY:Number = thumb.getLayoutBoundsY() +
                             (thumb.getLayoutBoundsHeight() - tipAsDisplayObject.height) / 2;
             var relX:Number = layoutDirection == LayoutDirection.RTL ?
                               initialPosition.x + tipBounds.width :
                               initialPosition.x;
-            var o:Point = new Point(relX, relY);
-            var r:Point = thumb.parent.localToGlobal(o);
-
-            // Get the screen bounds
-            var screenBounds:Rectangle = systemManager.getVisibleApplicationRect(null, true);
-
-            // Make sure the tip doesn't exceed the bounds of the screen
-            r.x = Math.floor( Math.max(screenBounds.left,
-                                Math.min(screenBounds.right - tipBounds.width, r.x)));
-            r.y = Math.floor( Math.max(screenBounds.top,
-                                Math.min(screenBounds.bottom - tipBounds.height, r.y)));
-
-            r = tipAsDisplayObject.parent.globalToLocal(r);
-            tipAsDisplayObject.x = r.x;
-            tipAsDisplayObject.y = r.y;
+
+            // Get the tips bounds. We only care about the dimensions.
+            var tipBounds:Rectangle = tipAsDisplayObject.getBounds(tipAsDisplayObject.parent);
+
+            // Ensure that we don't overlap the screen
+            var pt:Point = PopUpUtil.positionOverComponent(thumb.parent,
+                                                           systemManager,
+                                                           tipBounds.width,
+                                                           tipBounds.height,
+                                                           NaN,
+                                                           null,
+                                                           new Point(relX, relY));
+            tipAsDisplayObject.x = Math.floor(pt.x);
+            tipAsDisplayObject.y = Math.floor(pt.y);
         }
     }


Check for mastermind solutions during update.


little modification in pms channel.

little modification in pms channel.

--- src/org/si/sion/module/channels/SiOPMChannelKS.as
+++ src/org/si/sion/module/channels/SiOPMChannelKS.as
@@ -28,7 +28,7 @@
     // valiables
     //--------------------------------------------------
         private var _ks_delayBuffer:Vector.<int>;   // delay buffer
-        private var _ks_delayBufferIndex:Number;    // delay buffer index
+        private var _ks_delayBufferIndex:Number;    // delay buffer index
         private var _ks_pitchIndex:int;             // pitch index
         private var _ks_decay_lpf:Number;           // lpf decay
         private var _ks_decay:Number;               // decay
@@ -320,11 +320,11 @@
         // Karplus-Strong algorism
         private function _applyKarplusStrong(pointer:SLLint, len:int) : void
         {
-            var i:int, t:int, indexMax:Number, tmax:int = SiOPMTable.PITCH_TABLE_SIZE-1;
+            var i:int, t:int, indexMax:Number, tmax:int = SiOPMTable.PITCH_TABLE_SIZE-1;
             t = _ks_pitchIndex + operator[0]._pitchIndexShift + _pm_out;
             if (t<0) t=0;
             else if (t>tmax) t=tmax;
-            indexMax = _table.pitchWaveLength[t];
+            indexMax = _table.pitchWaveLength[t];

             for (i=0; i<len; i++) {
                 // lfo_update();
@@ -337,15 +337,16 @@
                     t = _ks_pitchIndex + operator[0]._pitchIndexShift + _pm_out;
                     if (t<0) t=0;
                     else if (t>tmax) t=tmax;
-                    indexMax = _table.pitchWaveLength[t];
+                    indexMax = _table.pitchWaveLength[t];
                     _lfo_timer += _lfo_timer_initial;
                 }

                 // ks_update();
-                if (++_ks_delayBufferIndex >= indexMax) _ks_delayBufferIndex %= indexMax;
+                if (++_ks_delayBufferIndex >= indexMax) _ks_delayBufferIndex %= indexMax;
                 _output *= _decay;
-                _output += (_ks_delayBuffer[int(_ks_delayBufferIndex)] - _output) * _decay_lpf + pointer.i;
-                _ks_delayBuffer[int(_ks_delayBufferIndex)] = _output;
+                t = int(_ks_delayBufferIndex);
+                _output += (_ks_delayBuffer[t] - _output) * _decay_lpf + pointer.i;
+                _ks_delayBuffer[int(_ks_delayBufferIndex)] = _output;
                 pointer.i = int(_output);
                 pointer = pointer.next;
             }


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

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

 package mx.messaging
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2506
Author:   jimurphy@adobe.com
Date:     2008-07-16T13:25:03.893431Z

Log Message:
-----------
Merged 3.0.x revisions [2417,2458,2504] -> trunk
-I also manually updated modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.java to implement flex2.linker.LinkerConfiguration due to a name change in trunk
-removed player 9 stuff

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.project" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/DependencyChecker.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.actionScriptProperties" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/air-config.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LinkerConfiguration.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.settings/org.eclipse.core.resources.prefs" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.settings/org.eclipse.core.resources.prefs</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.flexLibProperties" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.flexLibProperties</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/lnx/install_flash_player_9_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/LibrariesNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DependencyNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/win/Install Flash Player 9 Plugin.exe</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/mac/Install Flash Player 9 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/MarshalMouseEvent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/resources/LocaleSorter.as" copyfrom-rev="2504" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/LocaleSorter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/win/Install Flash Player 9 ActiveX.exe</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework" copyfrom-rev="2504" action="A">/flex/sdk/trunk/development/eclipse/flex/airframework</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollThumb.as</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DefNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/in/player/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/LibraryNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/ScriptNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/ContextStatics.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/nodes/DepNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/3.0.x/development/eclipse/flex/airframework/.settings" copyfrom-rev="2504" action="R">/flex/sdk/trunk/development/eclipse/flex/airframework/.settings</path>
<path kind="file" action="D">/flex/sdk/trunk/in/player/10/lnx/Flash Player.app.zip</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/libs/player/9</path>

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

--- frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as
@@ -194,28 +194,67 @@
         return content;
     }

-
-
     /**
      * All content:
      *     (annotation?, (element | any)*)
      *
-     * FIXME: This needs work, right now it treats all as a sequence.
+     *

+     *
maxOccurs for 'all' itself must be 1, minOccurs can be 0 or 1

+     *
maxOccurs for element declarations must be 1, minOccurs can be
+     * 0 or 1

+     *
'all' does not contain other groups and it must not appear in other
+     * structure groups - it must be at the top level of a complexType.

+     *

+     *
      * @private
      */
     public function decodeAll(definition:XML, parent:*, name:QName, valueElements:XMLList,
-                                context:DecodingContext = null, isRequired:Boolean = true):Boolean
-    {
-        //initialized context will indicate that all is nested, which is not valid
-        //minOccurs must be 0 or 1. maxOccurs must be 1
-        //on each contained element, minOccurs must be 0 or 1, maxOccurs must be 1
-        //can only contain element declarations, references and wildcards.
-        //no other groups are allowed to be nested inside an all group.
-        //We can just handle all checks here, so that whoever called this method
-        //shouldn't have to care how many elements we consumed.
-        return decodeSequence(definition, parent, name, valueElements, context, isRequired);
-    }
-
+                                context:DecodingContext=null, isRequired:Boolean=true):Boolean
+    {
+        if (context == null)
+            context = new DecodingContext();
+//      else
+            // TODO: Do we want to throw an error? If context was not null, it
+            // means this all group is not at the top level of a complex type
+
+        var minOccurs:uint = getMinOccurs(definition);
+        var allElements:XMLList = definition.elements();
+        var hasSiblings:Boolean = allElements.length() > 1 || context.hasContextSiblings;
+        var requireChild:Boolean = isRequired && minOccurs > 0;
+
+        // groupSatisfied should be true even if there are no elements to
+        // process in the cases when we don't require any child elements to be
+        // there.
+        var groupSatisfied:Boolean = !requireChild;
+
+        for each (var childDefinition:XML in allElements)
+        {
+            // all elements can appear in any order but no more than once each
+            context.index = 0;
+            context.anyIndex = 0;
+
+            if (childDefinition.name() == constants.annotationQName)
+            {
+                // <annotation>
+                groupSatisfied = true; // just move on
+            }
+            else if (childDefinition.name() == constants.elementTypeQName)
+            {
+                // <element>
+                if (!decodeGroupElement(childDefinition, parent, valueElements, context, requireChild, hasSiblings))
+                    break;
+            }
+            else if (childDefinition.name() == constants.anyQName)
+            {
+                // <any>
+                if (!decodeAnyElement(childDefinition, parent, name, valueElements, context, requireChild))
+                    break;
+            }
+            groupSatisfied = true;
+        }
+
+        return groupSatisfied;
+    }

     public function decodeAnyType(parent:*, name:QName, valueElements:XMLList):void
     {