Transferred from the Adobe Open Source Subversion Repository

Revision: 6440
Author:   jszeto@adobe.com
Date:     2009-04-30T21:48:25.862370Z

Log Message:
-----------
DropDownList, DropDownController and PopUpAnchor API Changes

DropDownList changes:
- Changed open/close events from type mx.events.DropdownEvent to spark.events.DropDownEvent
- Changed button (skin part) to openButton
- Removed DropDownControllerClass property
- Changed dropDownController from public to protected
- Remove initializeDropDownController

DropDownController changes:
- Changed button to openButton
- Changed button_buttonDownHandler to openButton_buttonDownHandler
- Changed systemManager_mouseDownHandler argument from type MouseEvent to type Event
- Changed focusOutHandler to processFocusOut
- Changed keyDownHandler to processKeyDown

PopUp changes:
- Renamed class to PopUpAnchor
- Added autoSizePopUpHeight and autoSizePopUpWidth
- Changed open to displayPopUp
- Changed content to popUp
- Changed placement to popUpPosition
- Changed updateContentTransform to updatePopUpTransform
- Added "center" and "exact" popUpPosition values
- Only add the popUp to the PopUpManager if the PopUpAnchor is attached to the stage
- Fixed sizing of the popUp by setting the width/height instead of calling setActualSize
- Only apply transform changes to the popUp if it is currently displayed

Other changes:
- Added spark.events.DropDownEvent to replace mx.events.DropdownEvent
- Applied API updates to VideoPlayer sub-components and skins
- Fixed bug in SkinnableComponent when setting a skinPart to null
- Replaced List.list_keyDownHandler with inherited keyDownHandler function

QE Notes: API Changes
Doc Notes: API Changes
Bugs: None
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarSkin.mxml</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/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarSkin.mxml</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/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/DropDownEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUp.as" copyfrom-rev="6423" action="A">/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/VideoPlayerVolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUp.as</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -38,12 +38,13 @@
 import mx.collections.IList;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
-import mx.events.DropdownEvent;
+
 import mx.events.FlexEvent;

 import spark.components.Button;
 import spark.components.supportClasses.ButtonBase;
 import spark.components.supportClasses.ListBase;
+import spark.events.DropDownEvent;
 import spark.primitives.supportClasses.TextGraphicElement;
 import spark.utils.LabelUtil;

@@ -59,28 +60,28 @@
  *  displayed

  *

  *
- *  @eventType mx.events.DropdownEvent.CLOSE
+ *  @eventType spark.events.DropDownEvent.CLOSE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Event(name="close", type="mx.events.DropdownEvent")]
+[Event(name="close", type="spark.events.DropDownEvent")]

 /**
  *  Dispatched when the user clicks the dropDown button
  *  to display the dropDown.  It is also dispatched if the user
  *  uses the keyboard and types Ctrl-Down to open the dropDown.
  *
- *  @eventType mx.events.DropdownEvent.OPEN
+ *  @eventType spark.events.DropDownEvent.OPEN
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-[Event(name="open", type="mx.events.DropdownEvent")]
+[Event(name="open", type="spark.events.DropDownEvent")]

 /**
  *  Open State of the DropDown component
@@ -134,18 +135,6 @@
     public var labelElement:TextGraphicElement;

 	/**
-     *  A skin part that defines the anchor button.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    [SkinPart(required="true")]
-    public var button:ButtonBase;
-
-
-	/**
      *  A skin part that defines the dropDown area. When the DropDownList is open,
      *  clicking anywhere outside of the dropDown skin part will close the
      *  DropDownList.
@@ -157,6 +146,17 @@
      */
     [SkinPart(required="false")]
     public var dropDown:DisplayObject;
+
+    /**
+     *  A skin part that defines the anchor button.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    [SkinPart(required="true")]
+    public var openButton:ButtonBase;

 	/**
      *  Constructor.
@@ -171,11 +171,7 @@
 		super();
 		super.allowMultipleSelection = false;

-		if (_dropDownControllerClass)
-		{
-			_dropDownController = new _dropDownControllerClass();
-			initializeDropDownController();
-		}
+		dropDownController = new DropDownController();
 	}

 	//--------------------------------------------------------------------------
@@ -215,42 +211,22 @@
 	{
 		return _dropDownController;
 	}
-
-	//----------------------------------
-    //  dropDownControllerClass
-    //----------------------------------
-
-	private var _dropDownControllerClass:Class = DropDownController;
-
-	/**
-     *  The class used to create an instance for the dropDownController
-     *  property. Set this property if you want to use a
-     *  DropDownController subclass to modify the default mouse,
-     *  keyboard and focus user interactions.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-	public function set dropDownControllerClass(value:Class):void
+
+	protected function set dropDownController(value:DropDownController):void
 	{
-		if (_dropDownControllerClass == value)
+		if (_dropDownController == value)
 			return;

-		_dropDownControllerClass = value;
-		_dropDownController = new _dropDownControllerClass();
-		initializeDropDownController();
+		_dropDownController = value;
+
+		_dropDownController.addEventListener(DropDownEvent.OPEN, dropDownController_openHandler);
+		_dropDownController.addEventListener(DropDownEvent.CLOSE, dropDownController_closeHandler);
+
+		if (openButton)
+			_dropDownController.openButton = openButton;
+		if (dropDown)
+			_dropDownController.dropDown = dropDown;
 	}
-
-	/**
-     *  @private
-     */
-	public function get dropDownControllerClass():Class
-	{
-		return _dropDownControllerClass;
-	}
-

 	//----------------------------------
     //  prompt
@@ -263,7 +239,9 @@
      *  a String that is displayed in the TextInput portion of the
      *  DropDownList when selectedIndex = -1.  It is usually
      *  a String like "Select one...".
-     *
+     *
+     *  @default ""
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -315,8 +293,8 @@
      */
     override public function get baselinePosition():Number
     {
-    	if (button)
-    		return button.baselinePosition;
+    	if (openButton)
+    		return openButton.baselinePosition;
     	else
     		return NaN;
     }
@@ -352,8 +330,8 @@
     		return;

     	super.enabled = value;
-    	if (button)
-    		button.enabled = value;
+    	if (openButton)
+    		openButton.enabled = value;
     }

     //----------------------------------
@@ -399,7 +377,6 @@
      */
     override public function set selectedIndices(value:Array):void
     {
-    	// TODO (jszeto) This needs to be localized
     	throw new Error(resourceManager.getString("components", "selectedIndicesDropDownListError"));
     }

@@ -412,7 +389,6 @@
      */
     override public function set selectedItems(value:Array):void
     {
-    	// TODO (jszeto) This needs to be localized
     	throw new Error(resourceManager.getString("components", "selectedItemsDropDownListError"));
     }

@@ -439,7 +415,7 @@
 	 /**
      *  Closes the dropDown.
      *
-     *  @param commitData Flag indicating if the component should commit the selected
+     *  @param commit Flag indicating if the component should commit the selected
      *  data from the dropDown.
      *
      *  @langversion 3.0
@@ -447,34 +423,10 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function closeDropDown(commitData:Boolean):void
-    {
-    	dropDownController.closeDropDown(commitData);
-    }
-
-	/**
-     *  Initializes the dropDownController after it has been created.
-     *  Override this function if you create a DropDownController subclass
-     *  and need to perform additional initialization.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-	protected function initializeDropDownController():void
-	{
-		if (dropDownController)
-		{
-			dropDownController.addEventListener(DropdownEvent.OPEN, dropDownController_openHandler);
-			dropDownController.addEventListener(DropdownEvent.CLOSE, dropDownController_closeHandler);
-
-			if (button)
-				dropDownController.button = button;
-			if (dropDown)
-				dropDownController.dropDown = dropDown;
-		}
-	}
+    public function closeDropDown(commit:Boolean):void
+    {
+    	dropDownController.closeDropDown(commit);
+    }

 	/**
      *  @private
@@ -552,11 +504,11 @@
     {
     	super.partAdded(partName, instance);

- 		if (instance == button)
+ 		if (instance == openButton)
     	{
     		if (dropDownController)
-    			dropDownController.button = button;
-    		button.enabled = enabled;
+    			dropDownController.openButton = openButton;
+    		openButton.enabled = enabled;
     	}

     	if (instance == dropDown && dropDownController)
@@ -570,8 +522,8 @@
     {
     	if (dropDownController)
     	{
-    		if (instance == button)
-	    		dropDownController.button = null;
+    		if (instance == openButton)
+	    		dropDownController.openButton = null;

     		if (instance == dropDown)
     			dropDownController.dropDown = null;
@@ -588,27 +540,18 @@
 		super.item_clickHandler(event);
 		closeDropDown(true);
 	}
-
-    /**
-     *  @private
-     */
-    // TODO (jszeto) Workaround for now until we can fix List so that it
-    // doesn't listen for keyDown events in the capture phase
-    override protected function keyDownHandler(event:KeyboardEvent) : void
-	{
-		list_keyDownHandler(event);
-	}
-
+
     /**
 	 *  @private
 	 */
-	override protected function list_keyDownHandler(event:KeyboardEvent) : void
+	override protected function keyDownHandler(event:KeyboardEvent) : void
 	{
 		if(!enabled)
             return;

-        if (!dropDownController.keyDownHandler(event))
-        	super.list_keyDownHandler(event);
+        // TODO (jszeto) Fix arrow key navigation. layout object is null.
+        if (!dropDownController.processKeyDown(event))
+        	super.keyDownHandler(event);

 	}

@@ -617,7 +560,7 @@
      */
     override protected function focusOutHandler(event:FocusEvent):void
     {
-		dropDownController.focusOutHandler(event);
+		dropDownController.processFocusOut(event);

         super.focusOutHandler(event);
     }
@@ -630,7 +573,7 @@

     /**
      *  Event handler for the dropDownController
-     *  DropdownEvent.OPEN event. Updates the skin's state and
+     *  DropDownEvent.OPEN event. Updates the skin's state and
      *  ensures that the selectedItem is visible.
      *
      *  @langversion 3.0
@@ -638,10 +581,12 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected function dropDownController_openHandler(event:DropdownEvent):void
+    protected function dropDownController_openHandler(event:DropDownEvent):void
     {
     	invalidateSkinState();

+    	// TODO (jszeto) Need to call this after the dropDown has been fully
+		// initialized
     	ensureItemIsVisible(selectedIndex);

     	dispatchEvent(event);
@@ -649,19 +594,19 @@

     /**
      *  Event handler for the dropDownController
-     *  DropdownEvent.CLOSE event. Updates the skin's state.
+     *  DropDownEvent.CLOSE event. Updates the skin's state.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected function dropDownController_closeHandler(event:DropdownEvent):void
+    protected function dropDownController_closeHandler(event:DropDownEvent):void
     {
     	invalidateSkinState();

     	// TODO!! Add logic to handle commitData
-    	//if (event.isDefaultPrevented())
+    	// if (event.isDefaultPrevented())

     	dispatchEvent(event);
     }


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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -594,7 +594,7 @@
      */
     override protected function keyDownHandler(event:KeyboardEvent) : void
     {
-        if(!enabled)
+        if (!enabled)
             return;

         if (!dropDownController.processKeyDown(event))


Transferred from the Adobe Open Source Subversion Repository

Revision: 13666
Author:   jimurphy@adobe.com
Date:     2010-01-20T19:05:30.983340Z

Log Message:
-----------
Merge /branches/4.0.0 revs 13595,13601,13613,13614,13615,13616,13619,13638,13644,13646,13647,13652,13653,13654,13665 -> trunk

checkintests pass

4.0.0 changes:
------------------------------------------------------------------------
r13665 | jimurphy@adobe.com

remove the call to clean-temp before the package staging starts.  Removing the temp directory before the copy was removing the config updates that happen before this target is called.
SDK-25160

------------------------------------------------------------------------
r13595 | jimurphy@adobe.com | 2010-01-18 18:24:33 -0500 (Mon, 18 Jan 2010) | 15 lines

split airframework from airspark docs
-delete airframework/bundles/[locale]/docs/spark xml's
-add airspark/bundles/[locale]/docs/spark xml's
-added airspark/bundles/en_US/ english properties
-modified airspark/build to:
  -use en_US properties for each of the locales until localized
  -use the localized spark doc files for each locale in the fat-swc target

SDK-25065
------------------------------------------------------------------------

------------------------------------------------------------------------
r13601 | preilly@adobe.com | 2010-01-18 19:54:16 -0500 (Mon, 18 Jan 2010) | 25 lines

* Fixed a regression caused by revision 13531.

SDK-25115 Code-level description of changes:

  StyleDef.java

    Modified extractImports() by adding a "null" value check for
    ClassReferences.

    Modified processReference() to use Reference's updated
    constructor.

  Reference.java

    Modified constructor by adding a isClassReference parameter.

    Removed setClassReference(), because it's no longer used.

------------------------------------------------------------------------

------------------------------------------------------------------------
r13613 | jimurphy@adobe.com | 2010-01-18 22:23:05 -0500 (Mon, 18 Jan 2010) | 14 lines

Integration:
from branch: releases/ct/yuki/sonoma/...
afe.jar: 62.418002
rideau.jar: 62.417355

https://bugs.adobe.com/jira/browse/SDK-25018
SDK-25018 https://bugs.adobe.com/jira/browse/SDK-25012
SDK-25012
------------------------------------------------------------------------

------------------------------------------------------------------------
r13614 | jimurphy@adobe.com | 2010-01-18 22:56:49 -0500 (Mon, 18 Jan 2010) | 9 lines

additional update for airspark, added packages.dita to svn and instead of unzipping properties from airspark_rb the locales will simply use the files from the en_US directory until the localized files are submitted.

SDK-25065
------------------------------------------------------------------------

------------------------------------------------------------------------
r13615 | jimurphy@adobe.com | 2010-01-18 23:59:14 -0500 (Mon, 18 Jan 2010) | 12 lines

fix airframework/build.xml so the en_US _rb does not become corrupt when the other.locales target is run.
-removed the redundant en_US call in the other.locales target
-added a clean for locales that will only remove the locale being built before rebuild - not all of the locales
-add updated dita that does not contain spark references

------------------------------------------------------------------------

------------------------------------------------------------------------
r13616 | rfrishbe@adobe.com | 2010-01-19 00:01:44 -0500 (Tue, 19 Jan 2010) | 10 lines

Fixing a VideoPlayer bug, SDK-25116 (When switching the video source while another video is loading, the switch doesn't always work).  It's similar to SDK-24933.  In the previous fix, we cleaned up the asynchronous load when we decided we wanted to just play the video.  However, we should also clean up this asynchronous load when the source changes.  This code could be refactored later, and I put a TODO in for that.
SDK-25116 SDK-24933
Also, I'm cleaning up some docs around some scenarios when the source is switched that explicitly won't work.  At some point, we could make these work, but I don't think it's worth the extra effort/code given how likely these are that a developer or user would run in to them.

SDK-25116
------------------------------------------------------------------------

------------------------------------------------------------------------
r13619 | egeorgie@adobe.com | 2010-01-19 01:23:05 -0500 (Tue, 19 Jan 2010) | 11 lines

Fix bug: Scaling a DateChooser inside a Canvas causes RTE http://bugs.adobe.com/jira/browse/SDK-25087
SDK-25087
The offending code was in the PostScaleAdapter - missing check for zero when dividing by the scale.

SDK-25087
------------------------------------------------------------------------

------------------------------------------------------------------------
r13638 | jimurphy@adobe.com | 2010-01-19 17:51:32 -0500 (Tue, 19 Jan 2010) | 14 lines

update to ensure fat-swcs contain a proper packages.dita file.
-removed all packages.dita files from all langs where it was checked in
-at the end of asdoc task we now copy the packages.dita out to the en_US project dir being built.  This is where the fat-swc task will pick up this file and place it in the docs directory of the _rb.swc
-had to change the order of the build process slightly - old order: ant clean main other.locales doc - new order: ant clean main doc other.locales
 - I removed other.locales from main in the root/build.xml and made it it's own task and also removed the property locales.  so to build other.locales, the doc target needs to run first (will add a depends at some point).
 -in the internal build.xml I have changed to use the new order

------------------------------------------------------------------------

------------------------------------------------------------------------
r13644 | jimurphy@adobe.com | 2010-01-19 18:55:59 -0500 (Tue, 19 Jan 2010) | 11 lines

fix the build.
-make sure the bundles do not get deleted before they are about to be updated, this holds especially true for swcs we are checking in
-make sure we don't try and rebuild osmf.swc as it should not change b/c it is in src

------------------------------------------------------------------------

------------------------------------------------------------------------
r13646 | jimurphy@adobe.com | 2010-01-19 19:29:21 -0500 (Tue, 19 Jan 2010) | 8 lines

fix the build take 2  Don't call other.locales for osmf since there aren't any other locales to build - I am hoping this is why the osmf_rb is losing the catalog

------------------------------------------------------------------------

------------------------------------------------------------------------
r13647 | jimurphy@adobe.com | 2010-01-19 20:04:22 -0500 (Tue, 19 Jan 2010) | 8 lines

this should actually fix the build - call the modified main target to call the bundle task for osmf and actually make the call from frameworks/build.xml

------------------------------------------------------------------------

------------------------------------------------------------------------
r13652 | rfrishbe@adobe.com | 2010-01-19 21:31:18 -0500 (Tue, 19 Jan 2010) | 8 lines

Fixing an MX TextArea bug.  It's caused by MX ScrollControlBase pushing the enabled property down in to the BorderSkin and also caused by some enabled/alpha issues in GroupBase.  For now, we're fixing the ScrollControlBase issue and no longer pushing the enabled property down in to the skin.

SDK-25109
------------------------------------------------------------------------

------------------------------------------------------------------------
r13653 | jimurphy@adobe.com | 2010-01-19 22:12:19 -0500 (Tue, 19 Jan 2010) | 11 lines

fix airspark_rb so it is localized properly.
-point to framework/bundles/[locale] localized files instead of using the english files we had in arispark
-remove en_US property files from airspark

------------------------------------------------------------------------

------------------------------------------------------------------------
r13654 | aharui@adobe.com | 2010-01-19 23:44:34 -0500 (Tue, 19 Jan 2010) | 8 lines

Replace an IPE defense I took out in svn 10058

SDK-25081
------------------------------------------------------------------------

Modified Paths:
--------------
104 paths were modified

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -900,6 +900,12 @@
      *  stream.  However, if you do this, the streamType is assumed to be "any,"
      *  and you don't have as much control over the streaming as you would if
      *  you used the DynamicStreamingVideoSource object.

+     *
+     *
Note: Setting the source on a MediaPlayerStateChangeEvent.LOADING or a
+     *  MediaPlayerStateChangeEvent.READY is not recommended if the source was
+     *  previously set.  This could cause an infinite loop or an RTE.
+     *  If you must do an operation like that, wait an additional frame to
+     *  set the source.

      *
      *  @see spark.components.mediaClasses.DynamicStreamingVideoSource
      *
@@ -1444,6 +1450,10 @@
      */
     private function setUpSource():void
     {
+        // clean up any listeners from the old source, especially if we
+        // are in the processing of loading that video file up
+        cleanUpSource()
+
         // if was playing a previous video, let's remove it now
         if (videoPlayer.element)
             videoGateway.removeElement(videoPlayer.element);
@@ -1742,6 +1752,50 @@

     /**
      *  @private
+     *  Cancels the load, no matter what state it's in.  This is used when changing the source.
+     */
+    private function cleanUpSource():void
+    {
+        // TODO (rfrishbe): very similar to cancelLoadAndPlay(). Should collapse it down.
+
+        // always remove listener as we could be out of loadState1 but still "loading to play"
+        videoPlayer.removeEventListener(MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, videoPlayer_mediaPlayerStateChangeHandlerForLoading);
+
+        if (inLoadingState1)
+        {
+            if (!inLoadingState2)
+            {
+                // first step
+
+                // Just need to remove event listeners as we did above
+            }
+            else if (!inLoadingState3)
+            {
+                // second step
+                videoPlayer.muted = beforeLoadMuted;
+                videoPlayer.view.visible = true;
+
+                // going to call pause() now to stop immediately
+                videoPlayer.pause();
+            }
+            else
+            {
+                // third step
+                videoPlayer.removeEventListener(SeekEvent.SEEK_END, videoPlayer_seekEndHandler);
+                videoPlayer.muted = beforeLoadMuted;
+                videoPlayer.view.visible = true;
+
+                // already called pause(), so don't do anything
+            }
+
+            inLoadingState1 = false;
+            inLoadingState2 = false;
+            inLoadingState3 = false;
+        }
+    }
+
+    /**
+     *  @private
      */
     private function addedToStageHandler(event:Event):void
     {


support a 'global' playback category on ios (only updates when playing sounds)

--- actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
+++ actionscript/src/com/freshplanet/ane/AirAACPlayer/AirAACPlayer.as
@@ -129,10 +129,14 @@
 	     * If the playback has been paused before, it will continue from this point.
 	     * @param startTime:int the start time in milliseconds
 	     */
-	    public function play(startTime:int = 0):void {
+	    public function play(startTime:int = 0, mode:int = 0):void {
 		    if (!isSupported || state != AirAACPlayerState.READY) return;
 		    startTime = Math.max(0, Math.min(duration, startTime));
-		    _context.call("AirAACPlayer_play", startTime);
+			if (isIOS) {
+				_context.call("AirAACPlayer_play", startTime, mode ? mode : _playbackCategory);
+			} else {
+				_context.call("AirAACPlayer_play", startTime);
+			}
 	    }

 	    /** Pause the playback */
@@ -145,6 +149,15 @@
 	    public function stop():void {
 		    if (!isSupported || state != AirAACPlayerState.READY) return;
 		    _context.call("AirAACPlayer_stop");
+	    }
+
+		public static const PLAYBACK_MODE_AMBIENT:int = 1
+		public static const PLAYBACK_MODE_SOLO_AMBIENT:int = 2;
+		public static const PLAYBACK_MODE_MEDIA:int = 3;
+		private static var _playbackCategory:int = 0;
+	    public static function setPlaybackCategory(mode:int = 0):void
+	    {
+	    	_playbackCategory = mode
 	    }

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


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

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


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

--- frameworks/projects/mx/src/mx/events/CalendarLayoutChangeEvent.as
+++ frameworks/projects/mx/src/mx/events/CalendarLayoutChangeEvent.as
@@ -0,0 +1,134 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+import flash.events.Event;
+
+/**
+ *  The CalendarLayoutChangeEvent class represents the event object passed to
+ *  the event listener for the change event for
+ *  the DateChooser and DateField controls.
+ *
+ *  @see mx.controls.DateChooser
+ *  @see mx.controls.DateField
+ */
+public class CalendarLayoutChangeEvent extends Event
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The CalendarLayoutChangeEvent.CHANGE constant
+	 *  defines the value of the type property of the event
+	 *  object for a change event.
+	 *
+	 *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	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.

+     *
newDate	The date selected in the control.

+     *
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.

+     *
triggerEvent	The event that triggered this change event;
+	 *       usually a change event.

+	 *

+	 *
+     *  @eventType change
+	 */
+	public static const CHANGE:String = "change";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that triggered the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble
+	 *  up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior
+	 *  associated with the event can be prevented.
+	 *
+	 *  @param newDate The date selected in the control.
+	 *
+	 *  @param triggerEvent The event that triggered this change event;
+	 *       usually a change event.
+	 */
+	public function CalendarLayoutChangeEvent(type:String,
+										      bubbles:Boolean = false,
+								  	 	      cancelable:Boolean = false,
+                                              newDate:Date = null,
+                                              triggerEvent:Event = null)
+	{
+		super(type, bubbles, cancelable);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  newDate
+	//----------------------------------
+
+	/**
+	 *  The selected date of the control.
+	 */
+	public var newDate:Date;
+
+	//----------------------------------
+	//  triggerEvent
+	//----------------------------------
+
+	/**
+	 *  The event that triggered the change of the date;
+	 *  usually a change event.
+	 */
+	public var triggerEvent:Event;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+        return new CalendarLayoutChangeEvent(type, bubbles, cancelable,
+											 newDate, triggerEvent);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18131
Author:   hmuller@adobe.com
Date:     2010-10-11T22:43:35.924917Z

Log Message:
-----------
IDataGridElement and some minor Doc/API changes:

Defined IDataGridElement.  Grid and ColumnHeaderBar implement it.

Removed the Grid gridOwner property.  The IDataGridElement dataGrid property serves the same purpose.

Added public grid ColumnHeaderBar property that's set/cleared by DataGrid partAdded/Removed().  ColumnHeaderBar is now responsible for syncing its scroll position with its grid.

Removed DataGrid headerRenderer property and headerColunmSeparator skin part.  These values can be changed by reconfiguring the default skin.

Corrected GridItemEditor event type metadata in DataGrid.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IDataGridElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as
+++ frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as
@@ -17,7 +17,7 @@
 import spark.components.supportClasses.GridColumn;

 /**
- *  The DatGridEditEvent class represents events that are dispatched over
+ *  This class represents events that are dispatched over
  *  the life cycle of an item editor.
  *
  *  <p>The life cycle starts with the dispatch of an <code>


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as
+++ frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as
@@ -1,4 +1,4 @@
-package flex.filters
+package mx.filters
 {
 	import flash.filters.BitmapFilter;
 	import flash.filters.GradientGlowFilter;


refactor with external  config

refactor with external  config

--- src/com/merlinds/miracle_tool/viewer/ViewerView.as
+++ src/com/merlinds/miracle_tool/viewer/ViewerView.as
@@ -57,7 +57,7 @@
 					"Start", this.startBtnHandler );
 		}

-		function clear():void
+		public function clear():void
 		{
 			if(_animation != null) _animation.clear();
 			if(_texture != null) _texture.clear();
@@ -79,7 +79,7 @@
 		}

 		private function getAnimationList():void {
-			var mafReader = new MafReader();
+			var mafReader:MafReader = new MafReader();
 			mafReader.execute(_animation, 1);
 			var animationsName:Array = [];
 			for each(var animation:AnimationHelper in mafReader.animations)


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/BlurFilter.as
+++ frameworks/projects/spark/src/spark/filters/BlurFilter.as
@@ -1,4 +1,4 @@
-package flex.filters
+package mx.filters
 {
 import flash.filters.BitmapFilter;
 import flash.filters.BitmapFilterQuality;


unload() tweak: Ensure position is reset to 0 if unload fails

--- src/SoundManager2.as
+++ src/SoundManager2.as
@@ -265,11 +265,13 @@

     var _unload = function(sID, sURL) {
       // effectively "stop" loading by loading a tiny MP3
-      // writeDebug('_unload()');
       var s = soundObjects[sID];
       s.onID3 = null;
       s.onLoad = null;
       s.loaded = false;
+      // ensure position is reset, if unload fails
+      s.start(0,1);
+      s.stop();
       s.loadSound(sURL, true);
       s.stop(); // prevent auto-play
       s.didJustBeforeFinish = false;


Update test fixed

Update test fixed

--- test/request/HTTPClientTest.as
+++ test/request/HTTPClientTest.as
@@ -40,8 +40,7 @@

     public function testShow():void {
       r.addEventListener("result", asyncHandler(function (e:ResultEvent, data:Object):void {
-            var p:Record = new Record;
-            p.setAttributes(e.result);
+            var p:Record = new Record(e.result);

             assertEquals('testFindAll #1', p.subject);
             assertEquals('testFindAll #1 body', p.body);
@@ -51,8 +50,7 @@

     public function testShowNotFound():void {
       r.addEventListener("result", asyncHandler(function (e:ResultEvent, data:Object):void {
-            var p:Record = new Record;
-            p.setAttributes(e.result);
+            var p:Record = new Record(e.result);

             assertEquals('Record Not Found', p.message);
           }, 1500));
@@ -66,8 +64,7 @@

     private function verifyCreateComplete(e:ResultEvent, data:Object):void {
       rCheck.addEventListener("result", asyncHandler(function (e:ResultEvent, data:Object):void {
-        var p:Record = new Record;
-        p.setAttributes(e.result);
+        var p:Record = new Record(e.result);

         assertEquals('creating new post', p.subject);
         assertEquals('creating new post with body', p.body);
@@ -78,13 +75,12 @@

     public function testUpdate():void {
       r.addEventListener("result", asyncHandler(verifyUpdateComplete, 1500));
-      r.update({post: {subject: "testFindAll #2 updated", body: "testFindAll #2 body updated"}}, 2);
+      r.update(2, {post: {subject: "testFindAll #2 updated", body: "testFindAll #2 body updated"}});
     }

     private function verifyUpdateComplete(e:ResultEvent, data:Object):void {
       rCheck.addEventListener("result", asyncHandler(function (e:ResultEvent, data:Object):void {
-            var p:Record = new Record;
-            p.setAttributes(e.result);
+            var p:Record = new Record(e.result);

             assertEquals('testFindAll #2 updated', p.subject);
             assertEquals('testFindAll #2 body updated', p.body);
@@ -98,8 +94,7 @@
     }

     private function verifyDestroy(e:ResultEvent, data:Object):void {
-      var p:Record = new Record;
-      p.setAttributes(e.result);
+      var p:Record = new Record(e.result);

       assertEquals(2, p.id);

@@ -112,5 +107,6 @@

       rCheck.show(p.id);
     }
+
   }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4738
Author:   chaase@adobe.com
Date:     2009-01-29T20:18:59.456550Z

Log Message:
-----------
Fixes to various effects bugs, mostly shader-transition related.

QE Notes: None
Doc Notes: None
Bugs: sdk-18873, sdk-18781, sdk-18821, sdk-18819, sdk-18778
Reviewer: Jason
tests: checkintests, Mustella: tests/Effects tests/ListDataEffects

Modified Paths:
--------------
<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/mx/effects/effectClasses/FxAnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateShaderTransition.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -1517,6 +1517,7 @@
      */
     protected function effectStopHandler(event:EffectEvent):void
     {
+        dispatchEvent(event);
         // We use this event to determine whether we should set final
         // state values in the ensuing endHandler() call
         effectStopped = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13126
Author:   chaase@adobe.com
Date:     2009-12-21T21:10:02.399245Z

Log Message:
-----------
Fix to bug when ending Parallel effects with Resize effect children. There were three problems here:
- Resize effects were being mis-ordered inside of the Parallel, causing them to be ended out of order. If any of these effects were order-dependent, this caused a problem in ending at the right values.
- Animation usually populates the values of an effect lazily, just when it actually starts. So an effect with a startDelay would not get real from/to values until the startDelay elapsed. This meant that an effect that was end()'d prematurely would send out a bogus final value because it had not yet been populated with real from/to values.
- Repeating/reversing animations were not being end()'d at the proper beginning/end value, based on their repeatCount (they would always end at the full durection of whatever iteration they were currently in).

QE notes: None
Doc notes: None
Bugs: SDK-24755
Reviewer: Jason
Tests run: Checkintests, Mustella spark/effects, mx/effects
Is noteworthy for integration: Yes: reported in Catalyst bug bash

Modified Paths:
--------------
<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/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -1320,7 +1320,7 @@
         else
         {
             var n:int = _instances.length;
-            for (var i:int = n; i >= 0; i--)
+            for (var i:int = n - 1; i >= 0; i--)
             {
                 var instance:IEffectInstance = IEffectInstance(_instances[i]);
                 if (instance)


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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.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: 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@1260294 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/effects/Rotate.as
+++ frameworks/projects/framework/src/mx/effects/Rotate.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.effects
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10828
Author:   jszeto@adobe.com
Date:     2009-10-02T17:41:48.523309Z

Log Message:
-----------
FXG stroke and fill translation fix

http://bugs.adobe.com/jira/browse/SDK-23257 - Gradient translation should occur from 0,0, not the upper left bounds

The current API only passes in the shape's bounds. I have added a new targetOrigin parameter to IFill.begin, IStroke.apply and IStroke.createGraphicsStroke of type Point. It is the origin (0,0) of the shape in the target graphic's coordinate space.

Changed the logic in the gradient stroke and fills. The x and y transform properties are now positioned relative to the origin instead of to the top left corner of the bounds. If no x and y are set, then the default behavior remains the same.

Removed the centering logic in LinearGradientStroke when scaleX was set.

This API change has been approved by PARB.

QE notes: Need to add tests that exercise this logic
Doc notes: Need to document additions to the API
Bugs: SDK-23257
Reviewer: Deepa
Tests run: spark/primitives, gumbo/components
Is noteworthy for integration: Yes, modifications to the API

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.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/graphics/GradientStroke.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/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/IFill.as
+++ frameworks/projects/framework/src/mx/graphics/IFill.as
@@ -13,6 +13,7 @@
 {

 import flash.display.Graphics;
+import flash.geom.Point;
 import flash.geom.Rectangle;

 /**
@@ -40,20 +41,23 @@
 	 *
 	 *  @param target The target Graphics object that is being filled.
 	 *
-	 *  @param bounds The Rectangle object that defines the size of the fill
+	 *  @param targetBounds The Rectangle object that defines the size of the fill
 	 *  inside the target.
 	 *  If the dimensions of the Rectangle are larger than the dimensions
 	 *  of the target, the fill is clipped.
 	 *  If the dimensions of the Rectangle are smaller than the dimensions
 	 *  of the target, the fill expands to fill the entire
 	 *  target.
+     *
+     *  @param targetOrigin The Point that defines the origin (0,0) of the shape in the
+     *  coordinate system of target.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
 	 *  @playerversion AIR 1.1
 	 *  @productversion Flex 3
 	 */
-	function begin(target:Graphics, bounds:Rectangle):void;
+	function begin(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void;

 	/**
 	 *  Ends the fill.


Transferred from the Adobe Open Source Subversion Repository

Revision: 7889
Author:   dsubrama@adobe.com
Date:     2009-06-16T20:01:19.393557Z

Log Message:
-----------
First batch of PARB changes to List, ListBase, ItemRenderer and IItemRenderer as documented here: https://zerowing.corp.adobe.com/display/flex/PARB_RENAME_LIST

QA: Yes
Docs: Yes
Checkintests: Pass

Modified Paths:
--------------
<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/DefaultItemRenderer.mxml</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/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.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/events/IndexChangedEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -96,7 +96,7 @@
 //--------------------------------------

 [IconFile("List.png")]
-[DefaultTriggerEvent("selectionChanged")]
+[DefaultTriggerEvent("change")]

 /**
  *  The List control displays a vertical list of items.
@@ -227,7 +227,7 @@
     private var _proposedSelectedIndices:Array = [];
     private var multipleSelectionChanged:Boolean;

-    [Bindable("selectionChanged")]
+    [Bindable("change")]
     /**
      *  An Array of inidices of the currently selected item or items.
      *  If multiple selection is disabled by setting allowMultipleSelection
@@ -259,7 +259,7 @@
         invalidateProperties();
     }

-    [Bindable("selectionChanged")]
+    [Bindable("change")]
     /**
      *  An Array of the currently selected data items.
      *  If multiple selection is disabled by setting allowMultipleSelection
@@ -390,7 +390,7 @@
     override protected function commitSelection(dispatchChangedEvents:Boolean = true):Boolean
     {
         var oldSelectedIndex:Number = _selectedIndex;
-        var oldCaretIndex:Number = _currentCaretIndex;
+        var oldCaretIndex:Number = _caretIndex;

         // Ensure that multiple selection is allowed and that proposed
         // selected indices honors it. For example, in the single
@@ -425,21 +425,21 @@
         // Validate and commit the multiple selection related properties.
         commitMultipleSelection();

-        // Set the currentCaretIndex based on the current selection
+        // Set the caretIndex based on the current selection
         setCurrentCaretIndex(selectedIndex);

-        // And dispatch selectionChanged and itemFocusChanged events so that all of
+        // And dispatch change and caretChange events so that all of
         // the bindings update correctly.
         if (dispatchChangedEvents && retVal)
         {
-            var e:IndexChangedEvent = new IndexChangedEvent(IndexChangedEvent.SELECTION_CHANGED);
+            var e:IndexChangedEvent = new IndexChangedEvent(IndexChangedEvent.CHANGE);
             e.oldIndex = oldSelectedIndex;
             e.newIndex = _selectedIndex;
             dispatchEvent(e);

-            e = new IndexChangedEvent(IndexChangedEvent.ITEM_FOCUS_CHANGED);
+            e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
             e.oldIndex = oldCaretIndex;
-            e.newIndex = currentCaretIndex;
+            e.newIndex = caretIndex;
             dispatchEvent(e);
         }

@@ -533,22 +533,22 @@
     /**
      *  @private
      */
-    override protected function itemInCaret(index:int, caret:Boolean):void
-    {
-    	super.itemInCaret(index, caret);
+    override protected function itemShowingCaret(index:int, showsCaret:Boolean):void
+    {
+    	super.itemShowingCaret(index, showsCaret);

         var renderer:Object = dataGroup ? dataGroup.getElementAt(index) : null;

         if (renderer is IItemRenderer)
         {
-            IItemRenderer(renderer).caret = caret;
-        }
-    }
-
-    /**
-     *  @private
-     */
-    override public function isItemIndexSelected(index:int):Boolean
+            IItemRenderer(renderer).showsCaret = showsCaret;
+        }
+    }
+
+    /**
+     *  @private
+     */
+    override mx_internal function isItemIndexSelected(index:int):Boolean
     {
         if (allowMultipleSelection && (selectedIndices != null))
             return selectedIndices.indexOf(index) != -1;
@@ -591,7 +591,7 @@
      *  @private
      *  Called when an item has been added to this component.
      */
-    override protected function itemAddedHandler(item:*, index:int):void
+    override protected function itemAdded(index:int):void
     {
         adjustSelectedIndices(index, true);
     }
@@ -600,7 +600,7 @@
      *  @private
      *  Called when an item has been removed from this component.
      */
-    override protected function itemRemovedHandler(item:*, index:int):void
+    override protected function itemRemoved(index:int):void
     {
         adjustSelectedIndices(index, false);
     }
@@ -668,8 +668,8 @@
                     // and that item was de-selected
                     if (selectedIndices.length == 1 && (selectedIndices[0] == index))
                     {
-                        // We need to respect requiresSelection
-                        if (!requiresSelection)
+                        // We need to respect requireSelection
+                        if (!requireSelection)
                             return [];
                         else
                             return [selectedIndices[0]];
@@ -806,7 +806,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    protected function ensureItemIsVisible(index:int):void
+    protected function ensureIndexIsVisible(index:int):void
     {
         if (!layout)
             return;
@@ -841,23 +841,23 @@
         if (selectedIndex == NO_SELECTION || doingWholesaleChanges)
         {
             // The case where one item has been newly added and it needs to be
-            // selected and careted because requiresSelection is true.
-            if (dataProvider && dataProvider.length == 1 && requiresSelection)
+            // selected and careted because requireSelection is true.
+            if (dataProvider && dataProvider.length == 1 && requireSelection)
             {
                 _selectedIndices = [0];
                 _selectedIndex = 0;
-                itemInCaret(0, true);
+                itemShowingCaret(0, true);
                 // If the selection properties have been adjusted to account for items that
-                // have been added or removed, send out a "selectionChanged" event and
-                // "itemFocusChanged" event so any bindings to them are updated correctly.
-                e = new IndexChangedEvent(IndexChangedEvent.SELECTION_CHANGED);
+                // have been added or removed, send out a "change" event and
+                // "caretChange" event so any bindings to them are updated correctly.
+                e = new IndexChangedEvent(IndexChangedEvent.CHANGE);
                 e.oldIndex = -1;
                 e.newIndex = _selectedIndex;
                 dispatchEvent(e);

-                e = new IndexChangedEvent(IndexChangedEvent.ITEM_FOCUS_CHANGED);
+                e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
                 e.oldIndex = -1;
-                e.newIndex = _currentCaretIndex;
+                e.newIndex = _caretIndex;
                 dispatchEvent(e);
             }
             return;
@@ -891,9 +891,9 @@
         else
         {
             // Quick check to see if we're removing the only selected item
-            // in which case we need to honor requiresSelection.
+            // in which case we need to honor requireSelection.
             if (!isEmpty(selectedIndices) && selectedIndices.length == 1
-                && index == selectedIndex && requiresSelection)
+                && index == selectedIndex && requireSelection)
             {
                 //Removing the last item
                 if (dataProvider.length == 0)
@@ -929,30 +929,30 @@
             }
         }

-        if (currentCaretIndex == selectedIndex)
-        {
-            // currentCaretIndex is not changing, so we just need to dispatch
-            // an "itemFocusChanged" event to update any bindings and update the
-            // currentCaretIndex backing variable.
-            var oldIndex:Number = currentCaretIndex;
-            _currentCaretIndex = getLastItemValue(newInterval);
+        if (caretIndex == selectedIndex)
+        {
+            // caretIndex is not changing, so we just need to dispatch
+            // an "caretChange" event to update any bindings and update the
+            // caretIndex backing variable.
+            var oldIndex:Number = caretIndex;
+            _caretIndex = getLastItemValue(newInterval);

-            e = new IndexChangedEvent(IndexChangedEvent.ITEM_FOCUS_CHANGED);
+            e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
             e.oldIndex = oldIndex;
-            e.newIndex = currentCaretIndex;
+            e.newIndex = caretIndex;
             dispatchEvent(e);
         }
         else
         {
-            // De-caret the previous currentCaretIndex renderer and set the
-            // currentCaretIndexAdjusted flag to true. This will mean in
-            // commitProperties, the currentCaretIndex will be adjusted to
+            // De-caret the previous caretIndex renderer and set the
+            // caretIndexAdjusted flag to true. This will mean in
+            // commitProperties, the caretIndex will be adjusted to
             // match the selectedIndex;

             // TODO: We should revisit the synchronous nature of the
             // de-careting/re-careting behavior.
-            itemInCaret(currentCaretIndex, false);
-            currentCaretIndexAdjusted = true;
+            itemShowingCaret(caretIndex, false);
+            caretIndexAdjusted = true;
             invalidateProperties();
         }

@@ -960,7 +960,7 @@
         _selectedIndices = newInterval;
         _selectedIndex = getLastItemValue(newInterval);
         // If the selection has actually changed, trigger a pass to
-        // commitProperties where a selectionChanged event will be
+        // commitProperties where a change event will be
         // fired to update any bindings to selection properties.
         if (_selectedIndices != oldIndices)
         {
@@ -1076,7 +1076,7 @@
         if (retVal != -1)
         {
             selectedIndex = retVal;
-            ensureItemIsVisible(retVal);
+            ensureIndexIsVisible(retVal);
             return true;
         }
         else
@@ -1119,7 +1119,7 @@
         // the item currently in focus, is being selected.
         if (event.keyCode == Keyboard.SPACE)
         {
-            selectedIndex = currentCaretIndex;
+            selectedIndex = caretIndex;
             event.preventDefault();
             return;
         }
@@ -1137,7 +1137,7 @@
         // Delegate to the layout to tell us what the next item is we should select or focus into.
         // TODO (jszeto) At some point we should refactor this so we don't depend on layout
         // for keyboard handling. If layout doesn't exist, then use some other keyboard handler
-        var proposedNewIndex:int = layout.getDestinationIndex(navigationUnit, currentCaretIndex);
+        var proposedNewIndex:int = layout.getDestinationIndex(navigationUnit, caretIndex);

         // TODO (jszeto) proposedNewIndex depends on CTRL key
         // move CTRL key logic into single selection
@@ -1173,24 +1173,24 @@
                 }
             }
             selectedIndices = newInterval;
-            ensureItemIsVisible(proposedNewIndex);
+            ensureIndexIsVisible(proposedNewIndex);
         }
         // Entering the caret state with the Ctrl key down
         else if (event.ctrlKey)
         {
-            var oldCaretIndex:Number = currentCaretIndex;
+            var oldCaretIndex:Number = caretIndex;
             setCurrentCaretIndex(proposedNewIndex);
-            var e:IndexChangedEvent = new IndexChangedEvent(IndexChangedEvent.ITEM_FOCUS_CHANGED);
+            var e:IndexChangedEvent = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
             e.oldIndex = oldCaretIndex;
-            e.newIndex = currentCaretIndex;
+            e.newIndex = caretIndex;
             dispatchEvent(e);
-            ensureItemIsVisible(proposedNewIndex);
+            ensureIndexIsVisible(proposedNewIndex);
         }
         // Its just a new selection action, select the new index.
         else
         {
             selectedIndex = proposedNewIndex;
-            ensureItemIsVisible(proposedNewIndex);
+            ensureIndexIsVisible(proposedNewIndex);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4513
Author:   chaase@adobe.com
Date:     2009-01-13T21:46:08.801038Z

Log Message:
-----------
Minor bug fixes.
* pausing effect currently sleeping through its startDelay now works
* new effects now work correctly with nonzero repeatDelay
* ASDoc fixes for ANIMATION_REPEAT event

QE Notes: None
Doc Notes: None
Bugs: sdk-17993, sdk-17842, sdk-18672
Reviewer: Jason
Tests: checkintests, Mustella: Effects, gumbo/effects, ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/AnimationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Animate.as
+++ frameworks/projects/spark/src/spark/effects/Animate.as
@@ -57,7 +57,7 @@
  * Flex also dispatches an animationUpdate event
  * for the effect at the same time.
  *
- * @eventType mx.events.AnimationEvent.ANIMATION_END
+ * @eventType mx.events.AnimationEvent.ANIMATION_REPEAT
  */
 [Event(name="animationRepeat", type="mx.events.AnimationEvent")]

@@ -137,7 +137,10 @@
     /**
      * An array of PropertyValuesHolder objects, each of which holds the
      * name of the property being animated and the values that the property
-     * will take on during the animation.
+     * will take on during the animation. This array takes precedence over
+     * any helper properties that may be declared in subclasses of FxAnimate.
+     * For example, if this array is set directly on an FxMove object,
+     * then any helper values such as xFrom will be ignored.
      */
     public var propertyValuesList:Array;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4196
Author:   egeorgie@adobe.com
Date:     2008-11-26T22:55:33.264128Z

Log Message:
-----------
Add a property interpolator to FxAnimate similar to the Animation interpolator. This way users can override the default interpolator.

QE Notes: Add test for this.
Doc Notes: None
Bugs: None
Reviewer: Chet
tests: checkintests, mustella (gumbo/effects)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Animate.as
+++ frameworks/projects/spark/src/spark/effects/Animate.as
@@ -12,6 +12,7 @@
 {

 import mx.effects.interpolation.IEaser;
+import mx.effects.interpolation.IInterpolator;
 import mx.effects.interpolation.Sine;
 import mx.effects.effectClasses.FxAnimateInstance;
 import mx.events.AnimationEvent;
@@ -152,6 +153,18 @@
     public var easer:IEaser = defaultEaser;

     /**
+     * The interpolator used by this effect to calculate values between
+     * the start and end values. By default, interpolation is handled
+     * by NumberInterpolator or, in the case of the start
+     * and end values being arrays, by NumberArrayInterpolator.
+     * Interpolation of other types, or of Numbers that should be interpolated
+     * differently, such as uint values that hold color
+     * channel information, can be handled by supplying a different
+     * interpolator.
+     */
+    public var interpolator:IInterpolator = null;
+
+    /**
      * The behavior of a repeating effect (an effect
      * with repeatCount equal to either 0 or >1). This
      * value should be either Animation.LOOP, where the animation
@@ -244,6 +257,9 @@

         if (easer)
             animateInstance.easer = easer;
+
+        if (interpolator)
+            animateInstance.interpolator = interpolator;

         if (isNaN(repeatCount))
             animateInstance.repeatCount = repeatCount;


Extension doesn't have to be 'swf'. Ping #4.

Update filename handling to allow for non swf extensions.

--- src/swf2png.as
+++ src/swf2png.as
@@ -199,7 +199,7 @@
 		private function getInputFile(ev:InvokeEvent):String {
 			if(ev.arguments && ev.arguments.length) {
 				inputFileName = ev.arguments[0];
-				var matchNameRegExStr:String = '([^\\' + File.separator + ']+)\\.swf$';
+				var matchNameRegExStr:String = '([^\\' + File.separator + ']+)$';
 				var matchNameRegEx:RegExp = new RegExp(matchNameRegExStr);
 				var matches:Array = inputFileName.match(matchNameRegEx);
 				if(!matches) {
@@ -207,7 +207,7 @@
 					exit(2);
 					return "";
 				}
-				prefix = matches[1];
+				prefix = matches[1].split('.')[0];
 				log("Prefix: " + prefix);
 				var f:File = new File(ev.currentDirectory.nativePath);
 				f = f.resolvePath(inputFileName);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4330
Author:   preilly@adobe.com
Date:     2008-12-16T21:45:10.745617Z

Log Message:
-----------
* Reduced code generation for Bindable, added weak reference support
  to BindingUtils and added support for binding to private Statics.

tests Passed: checkintests, mxunit databinding (with and without AST generation)

Needs QA: YES

Needs DOC: NO

Bug fixes: SDK-14891

API Change: Yes, see BindingUtils and IWatcherSetupUtil2.

Reviewer: Corey

Code-level description of changes:

  frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as

    Added useWeakReference arg to watch().

    Added useWeakReference variable.

    Modified reset() to use useWeakReference.

  frameworks/projects/framework/src/mx/binding/utils/BindingUtils.as

    Added useWeakReference arg to bindProperty() and bindSetter().

  frameworks/projects/framework/src/mx/binding/BindingManager.as

    Added set() function.

  frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil2.as

    Initial checkin.

  modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEvaluator.java

    Renamed ensureNonPublic() to ensurePublic() and reversed the logic.

    Renamed makeAttrListPrivate() to makeAttrListPublic() and modified
    to use ensurePublic().

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java

    Updated AST generation to mirror changes to WatcherSetupUtil.vm.

  modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm

    Modified setter code generation to use BindingManager.set() to
    reduce code size.

  modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm

    Added support for staticPropertyGetter.

  modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

    Updated WatcherSetupUtil imports.

  modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm

    Added static property getter arg to WatcherSetupUtil setup() call.

    Updated template to use IWatcherSetupUtil2.

  modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

    Updated AST generation to mirror changes to ClassDefLib.vm.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/PropertyWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/BindingManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEvaluator.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/IWatcherSetupUtil2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/NameFormatter.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/StaticPropertyWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/BindingUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableProperty.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/binding/BindingManager.as
+++ frameworks/projects/framework/src/mx/binding/BindingManager.as
@@ -12,7 +12,9 @@
 package mx.binding
 {

+import flash.events.IEventDispatcher;
 import mx.core.mx_internal;
+import mx.events.PropertyChangeEvent;

 use namespace mx_internal;

@@ -55,6 +57,49 @@

         document._bindingsByDestination[destStr] = b;
         document._bindingsBeginWithWord[getFirstWord(destStr)] = true;
+    }
+
+    /**
+     * Helper function used by the generated support code for Bindable.
+     *
+     * @param owner The instance or Class that owns the property to be set.
+     *
+     * @param userNamespace The namespace that the property is defined
+     *                      in.  Can be null.
+     *
+     * @param propertyName The name of the original property.
+     *
+     * @param backingPropertyName The name of renamed backing property.
+     *
+     * @param oldValue The previous value.
+     *
+     * @param newValue The value to be set.
+     *
+     * @param eventDispatcher The EventDispatcher used to dispatch the
+     *                        PropertyChangeEvent.  If the owner is an
+     *                        instance, then this is the same as the
+     *                        owner.  If the owner is a Class, then
+     *                        this is the generated static event
+     *                        dispatcher.
+     */
+    public static function set(owner:Object, userNamespace:Namespace,
+                               propertyName:String, backingPropertyName:String,
+                               oldValue:Object, newValue:Object,
+                               eventDispatcher:IEventDispatcher):void
+    {
+        if (oldValue !== newValue)
+        {
+            if (userNamespace)
+            {
+                owner.userNamespace::[backingPropertyName] = newValue;
+            }
+            else
+            {
+                owner[backingPropertyName] = newValue;
+            }
+
+            eventDispatcher.dispatchEvent(PropertyChangeEvent.createUpdateEvent(owner, propertyName, oldValue, newValue));
+        }
     }

     /**


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

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

 package mx.binding
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 22188
Author:   jasonsj@adobe.com
Date:     2011-08-24T21:00:34.483761Z

Log Message:
-----------
Update getVisibleBoundsRect() to include soft keyboard height. Update PopUpManager.centerPopUp() to use visible bounds. Gate both with a compatibility version check.

QE notes: Please test with and without -compatibility-version=4.5. Tests should call centerPopUp for each soft keyboard activate event that is dispatched in order to get updated keyboard bounds due to word predictions.
Doc notes: Use compiler arg -compatibility-version=4.5 to revert to previous behavior: (1) PopUpManager.centerPopUp() uses the full screen size for centering and (2) SystemManager.getVisibleBoundsRect() returns full screen size in global coordinates and does not exclude soft keyboard bounds.
Bugs:
SDK-31254 PopUpManager.centerPopUp() should subtract soft keyboard height from visible height
Reviewer: gruehle, egeorgie
Tests run: checkintests, mustella, mustella-air, mustella-mobile cyclones
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -45,6 +45,7 @@
 import flash.utils.getQualifiedClassName;

 import mx.core.FlexSprite;
+import mx.core.FlexVersion;
 import mx.core.IChildList;
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModuleFactory;
@@ -3547,6 +3548,16 @@
             bounds.y = pt.y;
             bounds.width = s.width;
             bounds.height = s.height;
+
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_6)
+            {
+                // softKeyboardRect is in global coordinates.
+                // Keyboard size may change size while active. Listen for
+                // SoftKeyboardEvents on the stage and call
+                // getVisibleApplicationRect() to get updated visible bounds.
+                var softKeyboardRect:Rectangle = stage.softKeyboardRect;
+                bounds.height = bounds.height - softKeyboardRect.height;
+            }
         }

 		if (!topLevel)


Transferred from the Adobe Open Source Subversion Repository

Revision: 19717
Author:   aharui@adobe.com
Date:     2011-01-11T23:18:16.083178Z

Log Message:
-----------
MediaQueryParser changes to support DesignView.  Also change from using Capabilities.manufacturere to Capabilities.version

QE notes: Shouldn't require test changes.  Might need new tests for SDK-29056
Doc notes: undocumented class so shouldn't require doc changes
Bugs: SDK-29056, SDK-29038
Reviewer: Glenn
Tests run: checkintests mustella cyclone
Is noteworthy for integration: yes for Design View

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MediaQueryParser.as</path>

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

--- frameworks/projects/framework/src/mx/utils/MediaQueryParser.as
+++ frameworks/projects/framework/src/mx/utils/MediaQueryParser.as
@@ -13,6 +13,8 @@
 {
 import flash.system.Capabilities;
 import mx.core.IFlexModuleFactory;
+import mx.core.mx_internal;
+use namespace mx_internal;

 [ExcludeClass]

@@ -47,7 +49,47 @@
          LNX: "linux"
      }

-    /**
+     /**
+      *  Mixin initialization
+      *
+      *  @langversion 3.0
+      *  @playerversion Flash 10.2
+      *  @playerversion AIR 2.6
+      *  @productversion Flex 4.5
+      */
+     public static function init(moduleFactory:IFlexModuleFactory):void
+     {
+         _instance = new MediaQueryParser(moduleFactory);
+     }
+
+     /**
+      *  @private
+      */
+     private static var _instance:MediaQueryParser;
+
+     /**
+      *  Single shared instance of the parser
+      *
+      *  @langversion 3.0
+      *  @playerversion Flash 10.2
+      *  @playerversion AIR 2.6
+      *  @productversion Flex 4.5
+      */
+     public static function get instance():MediaQueryParser
+     {
+         return _instance;
+     }
+
+     /**
+      *  @private
+      */
+     public static function set instance(value:MediaQueryParser):void
+     {
+         if (!_instance)
+             _instance = value;
+     }
+
+     /**
      *  @private
      *  Constructor
      *
@@ -69,16 +111,14 @@
     }

     /**
-     *  @private
      *  Queries that were true
      */
-    private var goodQueries:Object = {};
+    mx_internal var goodQueries:Object = {};

     /**
-     *  @private
      *  Queries that were false
      */
-    private var badQueries:Object = {};
+    mx_internal var badQueries:Object = {};

     /**
      *  @private
@@ -355,17 +395,15 @@
     private function getPlatform():String
     {
         var s:String = Capabilities.version.substr(0, 3);
-        s = platformMap[s] as String;
-        if (s)
-            return s;
-
-        s = Capabilities.manufacturer;
-        var c1:int = s.indexOf(" ") + 1;
-        var c2:int = s.indexOf(" ", c1);
-        if (c2 >= 0)
-            return s.substring(c1, c2 - 1);
-
-        return s.substring(c1);
+        // if there is a friendly name, then use it
+        if (platformMap.hasOwnProperty(s))
+            return platformMap[s] as String;
+
+        // otherwise match against the 3 characters.
+        // use lower case because match are case
+        // insensitive and we lower case the entire
+        // expression
+        return s.toLowerCase();
     }

     // the type of the media


Transferred from the Adobe Open Source Subversion Repository

Revision: 4492
Author:   gosmith@adobe.com
Date:     2009-01-12T22:47:10.154251Z

Log Message:
-----------
Simplified how an accessibility class gets hooked into its corresponding component class.

We now do the hooking in the static method enableAccessibility(), which is called by code that is autogenerated by the compiler. Previously this method did nothing and the hooking happened at static initialization time. This allows us to remove the static var accessibilityHooked and the static method hookAccessibility() in each accessibility class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/ListBaseAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/ListBaseAccImpl.as
@@ -24,14 +24,8 @@
 use namespace mx_internal;

 /**
- *  The ListBaseAccImpl class is the accessibility class
- *  for ListBase.
- *  Since List inherits from ListBase,
- *  this class is used in ListAccImpl as well.
- *
- *  @helpid 3009
- *  @tiptext This is the ListBase Accessibility Class.
- *  @review
+ *  ListBaseAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the ListBase class.
  */
 public class ListBaseAccImpl extends AccImpl
 {
@@ -39,107 +33,82 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class initialization
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Static variable triggering the hookAccessibility() method.
-	 *  This is used for initializing ListBaseAccImpl class to hook its
-	 *  createAccessibilityImplementation() method to ListBase class
-	 *  before it gets called from UIComponent.
-	 */
-	private static var accessibilityHooked:Boolean = hookAccessibility();
-
-	/**
-	 *  @private
-	 *  Static method for swapping the createAccessibilityImplementation()
-	 *  method of ListBase with the ListBaseAccImpl class.
-	 */
-	private static function hookAccessibility():Boolean
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static const ROLE_SYSTEM_LISTITEM:uint = 0x22;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_INVISIBLE:uint = 0x00008000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_OFFSCREEN:uint = 0x00010000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Enables accessibility in the ListBase class.
+	 *
+	 *
This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of ListBase are initialized,
+	 *  their accessibilityImplementation property
+	 *  will be set to an instance of this class.

+	 */
+	public static function enableAccessibility():void
 	{
 		ListBase.createAccessibilityImplementation =
 			createAccessibilityImplementation;
-
-		return true;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Role of listItem.
-	 */
-	private static const ROLE_SYSTEM_LISTITEM:uint = 0x22;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_INVISIBLE:uint = 0x00008000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_OFFSCREEN:uint = 0x00010000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
-
-	/**
-	 *  @private
-	 *  Event emitted if 1 item is selected.
-	 */
-	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-	/**
-	 *  @private
-	 *  Event emitted if 1 item is selected.
-	 */
-	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Method for creating the Accessibility class.
-	 *  This method is called from UIComponent.
-	 *  @review
+	}
+
+	/**
+	 *  @private
+	 *  Creates a ListBase's AccessibilityImplementation object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
 	 */
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void
 	{
 		component.accessibilityImplementation =
 			new ListBaseAccImpl(component);
-	}
-
-	/**
-	 *  Method call for enabling accessibility for a component.
-	 *  This method is required for the compiler to activate
-	 *  the accessibility classes for a component.
-	 */
-	public static function enableAccessibility():void
-	{
 	}

 	//--------------------------------------------------------------------------
@@ -207,7 +176,6 @@
 	 *  @param childID uint
 	 *
 	 *  @return Value String
-	 *  @review
 	 */
 	override public function get_accValue(childID:uint):String
 	{
@@ -438,7 +406,6 @@
 	 *  @param childID uint
 	 *
 	 *  @return Name String
-	 *  @review
 	 */
 	override protected function getName(childID:uint):String
 	{