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

--- frameworks/projects/framework/src/mx/core/FlexSimpleButton.as
+++ frameworks/projects/framework/src/mx/core/FlexSimpleButton.as
@@ -0,0 +1,97 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import flash.display.SimpleButton;
+import mx.utils.NameUtil;
+
+/**
+ *  FlexSimpleButton is a subclass of the Player's SimpleButton class.
+ *  It overrides the toString() method
+ *  to return a string indicating the location of the object
+ *  within the hierarchy of DisplayObjects in the application.
+ */
+public class FlexSimpleButton extends SimpleButton
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+	 *
+	 *
Sets the name property to a string
+	 *  returned by the createUniqueName()
+	 *  method of the mx.utils.NameUtils class.

+	 *
+	 *
This string is the name of the object's class concatenated
+	 *  with an integer that is unique within the application,
+	 *  such as "FlexSimpleButton16".

+	 *
+	 *  @see flash.display.DisplayObject#name
+	 *  @see mx.utils.NameUtil#createUniqueName()
+     */
+    public function FlexSimpleButton()
+	{
+		super();
+
+		try
+		{
+			name = NameUtil.createUniqueName(this);
+		}
+		catch(e:Error)
+		{
+			// The name assignment above can cause the RTE
+			//   Error #2078: The name property of a Timeline-placed
+			//   object cannot be modified.
+			// if this class has been associated with an asset
+			// that was created in the Flash authoring tool.
+			// The only known case where this is a problem is when
+			// an asset has another asset PlaceObject'd onto it and
+			// both are embedded separately into a Flex application.
+			// In this case, we ignore the error and toString() will
+			// use the name assigned in the Flash authoring tool.
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  Returns a string indicating the location of this object
+	 *  within the hierarchy of DisplayObjects in the Application.
+	 *  This string, such as "MyApp0.HBox5.FlexSimpleButton16",
+	 *  is built by the displayObjectToString() method
+	 *  of the mx.utils.NameUtils class from the name
+	 *  property of the object and its ancestors.
+	 *
+	 *  @return A String indicating the location of this object
+	 *  within the DisplayObject hierarchy.
+	 *
+	 *  @see flash.display.DisplayObject#name
+	 *  @see mx.utils.NameUtil#displayObjectToString()
+     */
+    override public function toString():String
+	{
+		return NameUtil.displayObjectToString(this);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.geom
 {


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

--- frameworks/projects/framework/src/mx/geom/TransformOffsets.as
+++ frameworks/projects/framework/src/mx/geom/TransformOffsets.as
@@ -23,6 +23,11 @@

 	/**
 	 *  A CompoundTransform represents a 2D or 3D matrix transform. It can be used in the offsets property on a UIComponent or GraphicElement.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public class TransformOffsets extends EventDispatcher
 	{
@@ -33,6 +38,11 @@
     //--------------------------------------------------------------------------
     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 		public function TransformOffsets()
 		{
@@ -76,6 +86,11 @@

 	/**
 	 * the  x value added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set x(value:Number):void
 	{
@@ -94,6 +109,11 @@

 	/**
 	 * the y value added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set y(value:Number):void
 	{
@@ -113,6 +133,11 @@

 	/**
 	 * the z value added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set z(value:Number):void
 	{
@@ -135,6 +160,11 @@

 	/**
 	 * the rotationX, in degrees, added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set rotationX(value:Number):void
 	{
@@ -154,6 +184,11 @@

 	/**
 	 * the rotationY, in degrees, added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set rotationY(value:Number):void
 	{
@@ -173,6 +208,11 @@

 	/**
 	 * the rotationZ, in degrees, added to the transform
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set rotationZ(value:Number):void
 	{
@@ -195,6 +235,11 @@

 	/**
 	 * the multiplier applied to the scaleX of the transform.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set scaleX(value:Number):void
 	{
@@ -214,6 +259,11 @@

 	/**
 	 * the multiplier applied to the scaleY of the transform.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set scaleY(value:Number):void
 	{
@@ -234,6 +284,11 @@

 	/**
 	 * the multiplier applied to the scaleZ of the transform.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set scaleZ(value:Number):void
 	{
@@ -316,6 +371,11 @@
 	 * @param rx,ry,rz the new values for the rotation of the transform
 	 * @param sx,sy,sz the new values for the scale of the transform
 	 * @param tx,ty,tz the point, in the component's own coordinates, to keep fixed relative to its parent.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function transformAround(rx:Number,ry:Number,rz:Number,sx:Number,sy:Number,sz:Number,tx:Number,ty:Number,tz:Number):void
 	{


CodecFactory docs and cleanup.

CodecFactory docs and cleanup.

--- driver/src/main/flex/org/postgresql/codec/CodecFactory.as
+++ driver/src/main/flex/org/postgresql/codec/CodecFactory.as
@@ -1,9 +1,19 @@
 package org.postgresql.codec {

+    import org.postgresql.Oid;
     import flash.utils.Dictionary;

     import org.postgresql.CodecError;

+    /**
+     * The CodecFactory manages mappings between ActionScript Objects (of certain
+     * Classes) and PostgreSQL column values (of certain oids). A Class can be mapped
+     * to an oid registering an encoder, and an oid to a Class through a decoder.
+     * Only a single mapping can exist for a given oid (or Class) at any given time.
+     *
+     * @see org.postgresql.Oid
+     * @see Class
+     */
     public class CodecFactory {

         private var _decoders:Dictionary;
@@ -12,10 +22,13 @@
         private var _typeToOid:Dictionary;
         private var _oidToType:Dictionary;

-        // TODO: handle defaults. On input, any unknown type should be mapped
-        // to Oid.UNSPECIFIED and sent as its String representation. On output,
-        // if sent as text, we can destringify and present text.
+        /**
+         * Constructor. No encoders or decoders are registered by default.
+         */
         public function CodecFactory() {
+            // TODO: handle defaults. On input, any unknown type should be mapped
+            // to Oid.UNSPECIFIED and sent as its String representation. On output,
+            // if sent as text, we can destringify and present text.
             _decoders = new Dictionary();
             _encoders = new Dictionary();

@@ -23,11 +36,28 @@
             _oidToType = new Dictionary();
         }

+        /**
+         * Register the given encoder to map values of the inType to the inOid. If
+         * an encoder was previously registered for the same inType, it is silently
+         * replaced.
+         *
+         * @param inType
+         * @param inOid
+         * @param encoder
+         */
         public function registerEncoder(inType:Class, inOid:int, encoder:IPGTypeEncoder):void {
             _encoders[inType] = encoder;
             _typeToOid[inType] = inOid;
         }

+        /**
+         * Register the given decoder to map values of the given outOid to the outType. If
+         * a decoder was previously registered for the same outOid, it is silently replaced.
+         *
+         * @param outOid
+         * @param outType
+         * @param decoder
+         */
         public function registerDecoder(outOid:int, outType:Class, decoder:IPGTypeDecoder):void {
             _decoders[outOid] = decoder;
             _oidToType[outOid] = outType;
@@ -35,8 +65,9 @@

         /**
          * Return the decoder for the given oid
+         * @param oid oid for which to find decoder
          * @return registered decoder
-         * @throws org.postgresql.CodecError if no suitable decoder can be found
+         * @throws org.postgresql.CodecError if no decoder has been registered for the given oid
          */
         public function getDecoder(oid:int):IPGTypeDecoder {
             if (oid in _decoders) {
@@ -44,22 +75,28 @@
             } else {
                 throw new CodecError("Could not find suitable decoder", CodecError.DECODE, null, oid);
             }
-
         }

+        /**
+         * Return the Class given oid is currently mapped to.
+         * @param oid oid for which to find mapped Class
+         * @return Class mapped (or null if none)
+         */
         public function getOutputClass(oid:int):Class {
             return _oidToType[oid];
         }

-        public function getEncoder(value:Object):IPGTypeEncoder {
-            // TODO: This logic is wrong; see the SmartyPants IOC for a correct implementation. Also,
-            // this should take the class of the value to encoded, not the instance itself
-            if (value is int) {
-                return _encoders[int];
-            } else if (value is uint) {
-                return _encoders[uint];
+        /**
+         * Return the encoder for the given Class
+         * @param value for which to find encoder
+         * @return registered encoder
+         * @throws org.postgresql.CodecError if no encoder is registered for the given Class
+         */
+        public function getEncoder(clazz:Class):IPGTypeEncoder {
+            if (clazz in _encoders) {
+                return _encoders[clazz];
             } else {
-                return _encoders[Object(value).constructor];
+                throw new CodecError("Could not find suitable encoder", CodecError.ENCODE, null, Oid.UNSPECIFIED, clazz);
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.collections
 {


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

--- frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as
+++ frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 8142
Author:   srahim@adobe.com
Date:     2009-06-23T23:38:44.347619Z

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

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

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

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

--- frameworks/projects/spark/src/spark/components/HSlider.as
+++ frameworks/projects/spark/src/spark/components/HSlider.as
@@ -28,8 +28,30 @@
 [DefaultTriggerEvent("change")]

 /**
- *  The HSlider class defines a horizontal slider component.
+ *  The HSlider (horizontal slider) control lets users select a value
+ *  by moving a slider thumb between the end points of the slider track.
+ *  The HSlider control has a horizontal direction. The slider track stretches
+ *  from left to right.
+ *  The current value of the slider is determined by the relative location
+ *  of the thumb between the end points of the slider, corresponding to the
+ *  slider's minimum and maximum values.
  *
+ *
The slider can allow a continuous range of values between its minimum
+ *  and maximum values or it can be restricted to values at specific intervals
+ *  between the minimum and maximum value. The slider can contain a data tip
+ *  to show its current value.

+ *
+ *  @mxml
+ *
+ *
The <HSlider> tag inherits all of the tag
+ *  attributes of its superclass and adds no tag attributes:

+ *

+ *  <HSlider/>
+ *

+ *
+ *  @see spark.skins.spark.HSliderSkin
+ *  @see spark.skins.spark.HSliderThumbSkin
+ *  @see spark.skins.spark.HSliderTrackSkin
  *  @includeExample examples/HSliderExample.mxml
  *
  *  @langversion 3.0


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

--- frameworks/projects/spark/src/spark/components/Spinner.as
+++ frameworks/projects/spark/src/spark/components/Spinner.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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: 10606
Author:   egeorgie@adobe.com
Date:     2009-09-25T23:01:50.455888Z

Log Message:
-----------
White space cleanup.

Doc notes: None
Bugs: None
Reviewer: Evtim
Tests run: build
Is noteworthy for integration: Nope

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.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/spark/src/spark/layouts/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.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/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.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/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/testWheel.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1090,7 +1090,7 @@
         // update _tileWidth,HeightCached based on visible elements
         if ((visibleStartIndex != -1) && (visibleEndIndex != -1))
         {
-            for(var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
+            for (var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
                 updateVirtualTileSize(target.getVirtualElementAt(index));
         }

@@ -1261,7 +1261,7 @@
         // be added to DataGroup::freeRenderers

         var layoutTarget:GroupBase = target;
-        for(var i:int = oldVisibleStartIndex; i <= oldVisibleEndIndex; i++)
+        for (var i:int = oldVisibleStartIndex; i <= oldVisibleEndIndex; i++)
         {
             if ((i >= visibleStartIndex) && (i <= visibleEndIndex)) // skip past the visible range
             {
@@ -1741,7 +1741,7 @@
             yMinorDelta = 0;
         }

-        for(var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
+        for (var index:int = visibleStartIndex; index <= visibleEndIndex; index++)
         {
             var el:ILayoutElement = null;
             if (useVirtualLayout)


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

Modified Paths:
--------------
2361 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/ProgressBar.as
+++ frameworks/projects/mx/src/mx/controls/ProgressBar.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2002-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.controls
 {


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

--- frameworks/projects/framework/src/mx/events/ResizeEvent.as
+++ frameworks/projects/framework/src/mx/events/ResizeEvent.as
@@ -19,6 +19,11 @@
  *  component changes.
  *
  *  @see mx.core.UIComponent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ResizeEvent extends Event
 {
@@ -52,6 +57,11 @@
 	 *

 	 *
      *  @eventType resize
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const RESIZE:String = "resize";

@@ -75,6 +85,11 @@
 	 *  @param oldWidth The previous width of the object, in pixels.
 	 *
 	 *  @param oldHeight The previous height of the object, in pixels.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function ResizeEvent(type:String, bubbles:Boolean = false,
 							    cancelable:Boolean = false,
@@ -98,6 +113,11 @@

 	/**
 	 *  The previous height of the object, in pixels.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var oldHeight:Number;

@@ -107,6 +127,11 @@

 	/**
 	 *  The previous width of the object, in pixels.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var oldWidth:Number;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19934
Author:   hmuller@adobe.com
Date:     2011-01-25T19:53:44.376062Z

Log Message:
-----------
Fixed logic error in GridItemRenderer/initializeRendererTooltip().

Added DataGrid accessibility overrides: 'set tabIndex',  'set accessibilityDescription', 'set accessibilityShortcut'.

QE notes:
Doc notes:
Bugs: SDK-29248
Reviewer: Darrell
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<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/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -2101,7 +2101,46 @@
         g.drawRect(0, 0, focusOwnerWidth, focusOwnerHeight);
         $addChild(focusOwner);
         focusOwner.tabEnabled = true;
+        focusOwner.tabIndex = tabIndex;
         focusOwner.$visible = true;
+    }
+
+    /**
+     *  @private
+     *  Ensure that the DataGrid appears in the correct tab order, despite the fact that its
+     *  focusOwner gets the focus.
+     */
+    override public function set tabIndex(index:int):void
+    {
+        super.tabIndex = index;
+        if (focusOwner)
+            focusOwner.tabIndex = index;
+    }
+
+    /**
+     *  @private
+     *  Sync the focusOwner's copy of this value because the we can't cover this case in
+     *  DataGridAccImpl/get_accDescription(childID). Currently get_accDescription() is never
+     *  called with childID=0.
+     */
+    override public function set accessibilityDescription(value:String):void
+    {
+        super.accessibilityDescription = value;
+        if (focusOwner)
+            focusOwner.accessibilityDescription = value;
+    }
+
+    /**
+     *  @private
+     *  Sync the focusOwner's copy of this value because the we can't cover this case in
+     *  DataGridAccImpl/get_accShortcut(childID). Currently get_accShortcut() is never
+     *  called with childID=0.
+     */
+    override public function set accessibilityShortcut(value:String):void
+    {
+        super.accessibilityShortcut = value;
+        if (focusOwner)
+            focusOwner.accessibilityShortcut = value;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 12529
Author:   cframpto@adobe.com
Date:     2009-12-04T13:41:09.259946Z

Log Message:
-----------
Fix broken build.  TLF build 565 changed GlobalSettings.getResourceStringFunction to GlobalSettings.resourceStringFunction getter.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextFlowUtil.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -316,7 +316,7 @@
 		 *  TLF itself has English-only messages,
 		 *  but higher layers like Flex can provide localized versions.
 		 */
-		GlobalSettings.getResourceStringFunction = TextUtil.getResourceString;
+		GlobalSettings.resourceStringFunction = TextUtil.getResourceString;

 		staticStringFactory = new StringTextLineFactory();


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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -536,7 +536,7 @@
         super();
         hasFocusableChildren = true;
         focusEnabled = false;
-
+
         addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
         addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
     }
@@ -750,10 +750,10 @@
      *  for both axes.  They determine the points at which bounce and
      *  pull occur.
      */
-    private var minVerticalScrollPosition:Number;
-    private var maxVerticalScrollPosition:Number;
-    private var minHorizontalScrollPosition:Number;
-    private var maxHorizontalScrollPosition:Number;
+    private var minVerticalScrollPosition:Number = 0;
+    private var maxVerticalScrollPosition:Number = 0;
+    private var minHorizontalScrollPosition:Number = 0;
+    private var maxHorizontalScrollPosition:Number = 0;

     /**
      *  @private
@@ -2074,16 +2074,16 @@
      */
     private function determineNewPageScrollPosition(velocityX:Number, velocityY:Number):void
     {
-        // needdoc
+        // Convert the paging velocity threshold from inches/second to pixels/millisecond
         var minVelocityPixels:Number = pageThrowVelocityThreshold * Capabilities.screenDPI / 1000;

         if (canScrollHorizontally)
         {
-            // needdoc
+            // Check both the throw velocity and the drag distance.  If either exceeds our threholds, then we switch to the next page.
             if (velocityX < -minVelocityPixels || viewport.horizontalScrollPosition >= currentPageScrollPosition + viewport.width * pageDragDistanceThreshold)
             {
-                // needdoc
                 // Go to the next horizontal page
+                // Set the new page scroll position so the throw effect animates the page into place
                 currentPageScrollPosition = Math.min(currentPageScrollPosition + viewport.width, viewport.contentWidth - viewport.width);
             }
             else if (velocityX > minVelocityPixels || viewport.horizontalScrollPosition <= currentPageScrollPosition - viewport.width * pageDragDistanceThreshold)
@@ -2097,9 +2097,11 @@
         }
         else if (canScrollVertically)
         {
+            // Check both the throw velocity and the drag distance.  If either exceeds our threholds, then we switch to the next page.
             if (velocityY < -minVelocityPixels || viewport.verticalScrollPosition >= currentPageScrollPosition + viewport.height * pageDragDistanceThreshold)
             {
                 // Go to the next vertical page
+                // Set the new page scroll position so the throw effect animates the page into place
                 currentPageScrollPosition = Math.min(currentPageScrollPosition + viewport.height, viewport.contentHeight - viewport.height);
             }
             else if (velocityY > minVelocityPixels || viewport.verticalScrollPosition <= currentPageScrollPosition - viewport.height * pageDragDistanceThreshold)
@@ -2133,14 +2135,17 @@

         if (pageScrollingEnabled)
         {
-            // The throw velocity is greatly attenuated in paging mode
+            // See whether a page switch is warranted for this touch gesture.
+            determineNewPageScrollPosition(velocityX, velocityY);
+
+            // The throw velocity is greatly attenuated in paging mode.
+            // Note that this must be done after the call above to
+            // determineNewPageScrollPosition which compares the velocity
+            // to our threshold.
             const PAGING_VELOCITY_FACTOR:Number = 0.25;
             velocityX *= PAGING_VELOCITY_FACTOR;
             velocityY *= PAGING_VELOCITY_FACTOR;
-
-            // See whether a page switch is warranted for this touch gesture.
-            determineNewPageScrollPosition(velocityX, velocityY);
-
+
             // Make the scroller "lock" to the current page
             if (canScrollHorizontally)
                 minHSP = maxHSP = currentPageScrollPosition;
@@ -2867,7 +2872,7 @@
      *  @private
      */
     mx_internal function performThrow(velocityX:Number, velocityY:Number):void
-    {
+    {
         // Don't throw if we're doing a text selection auto scroll
         if (textSelectionAutoScrollEnabled)
         {