Transferred from the Adobe Open Source Subversion Repository

Revision: 11323
Author:   aharui@adobe.com
Date:     2009-10-30T20:07:45.203965Z

Log Message:
-----------
Some tweaks to MXItemRenderer

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Ryan
API Change: no
Is noteworthy for integration: No
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>

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

--- frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
+++ frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
@@ -111,7 +111,7 @@
     //  columnIndex
     //----------------------------------

-	[Bindable("dataChange")]
+	[Bindable("__NoChangeEvent__")]

     /**
      *  The index of the column of the List-based control relative
@@ -129,7 +129,7 @@
     //  label
     //----------------------------------

-	[Bindable("dataChange")]
+	[Bindable("__NoChangeEvent__")]

     /**
      *  The textual representation of the item data, based on the list class's
@@ -146,7 +146,7 @@
     //  owner
     //----------------------------------

-	[Bindable("dataChange")]
+	[Bindable("__NoChangeEvent__")]

     /**
      *  A reference to the list object that owns this item.
@@ -166,7 +166,7 @@
     //  rowIndex
     //----------------------------------

-    [Bindable("dataChange")]
+    [Bindable("__NoChangeEvent__")]

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

-	[Bindable("dataChange")]
+	[Bindable("__NoChangeEvent__")]

     /**
      *  The unique identifier for this item.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

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

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

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -641,7 +641,7 @@
             dataProviderChanged = false;
             doingWholesaleChanges = false;

-            // TODO: should resetting the dataProvider clear out all of its state?
+            // FIXME (dsubrama): should resetting the dataProvider clear out all of its state?
             // or should we preserve selectedIndex
             if (selectedIndex >= 0 && dataProvider && selectedIndex < dataProvider.length)
                itemSelected(selectedIndex, true);
@@ -717,7 +717,7 @@
             {
                 for (var i:int = 0; i < dataGroup.numChildren; i++)
                 {
-                    //TODO: Ryan, figure out numChildren/numElement vs. getElement/getChild
+                    // FIXME (rfrishbe):(dsubrama) Ryan, figure out numChildren/numElement vs. getElement/getChild
                     //and which is more performant.
                     var renderer:IItemRenderer = dataGroup.getElementAt(i) as IItemRenderer;
                     //Push the correct text into the renderer by settings its label
@@ -749,7 +749,7 @@
             if (renderer is ItemRenderer)
                 ItemRenderer(renderer).playTransitions = false;

-            // TODO (dsubrama) - Go through helper methods to do this.
+            // FIXME (dsubrama): - Go through helper methods to do this.
             // Make itemSelected()/itemShowingCaret() pass around the renderer
             // instead of index
             IItemRenderer(renderer).selected = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8726
Author:   egeorgie@adobe.com
Date:     2009-07-22T04:32:15.441890Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-22023 Text stacking order changes when bitmap layer is altered on mouseover.

Fix: disable TextGraphicElement display object sharing.

QE notes: None
Doc notes: None
Bugs: SDK-22023
Reviewer: Gordon
Tests run: checkintests, mustella gumbo/core
Is noteworthy for integration: Yes, this bug came from the Catalyst team.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -17,7 +17,6 @@
 import flash.display.Graphics;
 import flash.display.Sprite;
 import flash.events.Event;
-import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.text.engine.TextLine;

@@ -573,25 +572,37 @@
     		invalidateDisplayList();
     	}
     }
-
+
+    /**
+     *  @private
+     */
+    override public function canShareWithPrevious(element:IGraphicElement):Boolean
+    {
+        // TextGraphicElement always requires its own display object as
+        // Group doesn't support IGraphicElements with multiple display objects.
+        return false;
+    }
+
     /**
      *  @private
      */
     override public function canShareWithNext(element:IGraphicElement):Boolean
     {
+        // TextGraphicElement always requires its own display object as
+        // Group doesn't support IGraphicElements with multiple display objects.
         return false;
-        // FIXME (egeorgie): Returning false is a temporary workaround to fix SDK-21084
-        // for Beta 1. The real problem involves how Group does z-ordering
-        // of its children without taking TextLines into account.
-        // We should restore the code below after we have a proper fix
-        // for SDK-21084.
-
-        // We can share with the next GraphicElement only if it is also
-        // a TextGraphicElement, as TextGraphicElements add child DisplayObjects
-        // instead of drawing the the DisplayObject's graphics.
-        //return element is TextGraphicElement && super.canShareWithNext(element);
-    }
-
+    }
+
+    /**
+     *  @private
+     */
+    override public function setSharedDisplayObject(displayObject:DisplayObject):Boolean
+    {
+        // TextGraphicElement always requires its own display object as
+        // Group doesn't support IGraphicElements with multiple display objects.
+        return false;
+    }
+
     //----------------------------------
     //  styleChainInitialized
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -17,13 +17,11 @@
 import flash.display.Graphics;
 import flash.display.Sprite;
 import flash.events.Event;
-import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.text.engine.TextLine;

 import flashx.textLayout.compose.TextLineRecycler;

-import mx.core.IVisualElementContainer;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
@@ -36,6 +34,7 @@
 import mx.utils.NameUtil;

 import spark.components.Group;
+import spark.core.DisplayObjectSharingMode;
 import spark.core.IGraphicElement;

 use namespace mx_internal;
@@ -815,7 +814,7 @@
         // position of the lines has remained the same.
         if (compose)
             composeTextLines(unscaledWidth, unscaledHeight);
-        else if (sharedIndex != -1)
+        else if (displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             adjustTextLines();

         // If the text is overset it always has to be clipped (as well as if
@@ -831,7 +830,7 @@
         if (clipText)
         {
             alwaysCreateDisplayObject = true;
-            if (sharedIndex > 0)
+            if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_SHARED_OBJECT)
                 return;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7663
Author:   cframpto@adobe.com
Date:     2009-06-09T01:01:39.339448Z

Log Message:
-----------
- Clicking within already focused spark text control causes focus to redraw since it was being drawn on the TextBase rather than the textView.
- SimpleText ignored visible property because it was set on lines which were removed and then readded without textLine.visible set the 2nd time.
- On focusOut need to dispatch Event.VALUE_COMMIT to trigger the validator to check for required fields and draw the error highlight, if needed.

QA Notes:
Doc Notes:
Bugs: SDK-21335, SDK-21588, SDK-20667
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -1246,6 +1246,7 @@

             textLine.x += drawX;
             textLine.y += drawY;
+            textLine.visible = visible;

 			addChildAtMethod(textLine, index);
 		}


def: 4679 disableGui on "cleanMedia" only if gui is enabled

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@86346 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -391,8 +391,11 @@
 					sendNotification(NotificationType.DO_PAUSE);
 					cleanMedia();
 					kMediaPlayer.hideThumbnail();
-					//disable GUI
-					sendNotification( NotificationType.ENABLE_GUI , {guiEnabled : false , enableType : EnableType.CONTROLS} );
+					//disable GUI (if its not already disabled)
+					if (!_mediaProxy.vo.isMediaDisabled)
+					{
+						sendNotification( NotificationType.ENABLE_GUI , {guiEnabled : false , enableType : EnableType.CONTROLS} );
+					}
 					break;
 				case NotificationType.DO_SWITCH:
 					var preferedFlavorBR:int = int(note.getBody());


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -317,7 +317,7 @@
 		dragProxy.allowMove = allowMove;

         // Make sure any scale/rotation from the initiator will be reflected.
-        var concatenatedMatrix:Matrix = MatrixUtil.getConcatenatedMatrix(DisplayObject(dragInitiator));
+        var concatenatedMatrix:Matrix = MatrixUtil.getConcatenatedMatrix(DisplayObject(dragInitiator), true /*excludingRootSprite*/);
         // Zero out the translation part of the matrix, as we're going to
         // position the dragProxy explicitly further below.
         concatenatedMatrix.tx = 0;


Transferred from the Adobe Open Source Subversion Repository

Revision: 406
Author:   dloverin@adobe.com
Date:     2008-02-04T14:39:10.659250Z

Log Message:
-----------
Bugs: SDK-14521
QA: YES
Doc: No

Fix security error when loading RSLs on AIR. Set "allowLoadBytesCodeExecution" to true in the LoaderContext.

[ private comments below ]:
Reviewed by: Steve

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as

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

--- frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
+++ frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
@@ -237,6 +237,13 @@
 		var context:LoaderContext = new LoaderContext();
 		context.applicationDomain = ApplicationDomain.currentDomain;
 		context.securityDomain = null;
+
+		// If the AIR flag is available then set it to true so we can
+		// load the RSL without a security error.
+		if ("allowLoadBytesCodeExecution" in context)
+		{
+			context["allowLoadBytesCodeExecution"] = true;
+		}

 		// verify the digest, if any, is correct
 		if (digests[urlIndex] != null && String(digests[urlIndex]).length > 0)


Transferred from the Adobe Open Source Subversion Repository

Revision: 20736
Author:   smgilson@adobe.com
Date:     2011-03-09T21:18:00.204102Z

Log Message:
-----------
Merge 20719 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EdgeMetrics.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextFieldInterface.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DPIClassification.as</path>

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

--- frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as
+++ frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as
@@ -125,6 +125,12 @@
      *  call will, by default, allow the same domains as have been allowed by
      *  previous calls to this method. This behavior is controlled by the
      *  allowDomainsInNewRSLs property.
+     *
+     *  @param domains One or more strings or URLRequest objects that name
+     *  the domains from which you want to allow access.
+     *  You can specify the special domain "*" to allow access from all domains.
+     *
+     *  @see flash.system.Security#allowDomain()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.2
@@ -141,6 +147,12 @@
      *  allow the same domains as have been allowed by
      *  previous calls to this method. This behavior is controlled by the
      *  allowInsecureDomainsInNewRSLs property.
+     *
+     *  @param domains One or more strings or URLRequest objects that name
+     *  the domains from which you want to allow access.
+     *  You can specify the special domain "*" to allow access from all domains.
+     *
+     *  @see flash.system.Security#allowInsecureDomain()
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.2
@@ -195,6 +207,10 @@
      *  Get the implementation for an interface.
      *  Similar to Singleton.getInstance() method, but per-
      *  IFlexModuleFactory.
+     *
+     *  @param interfaceName The interface.
+     *
+     *  @return The implementation for the interface.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -234,6 +250,10 @@
      *  Register an implementation for an interface.
      *  Similar to the Singleton.registerClass() method, but per-
      *  IFlexModuleFactory, and takes an instance not a class.
+     *
+     *  @param interfaceName The interface.
+     *
+     *  @param impl The implementation.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 7836
Author:   chaase@adobe.com
Date:     2009-06-15T14:37:21.379918Z

Log Message:
-----------
PARB changes for effects. This includes various property renames, a couple of class renames, moving 3 classes to a sub-package, and various doc cleanups. This also includes changing a handful of Array properties to typed Vectors.

QE: This breaks Mustella due to the renames
Doc: Docs will need to be updated to reflect the changes as well
Bugs: None
Reviewer: Jason
Tests: checkintests, Thermo's transitionbug test

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.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/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/CallActionInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as" copyfrom-rev="7748" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.pbk</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -26,6 +26,8 @@
 import mx.styles.IStyleClient;

 import spark.core.IGraphicElement;
+import spark.effects.animation.Keyframe;
+import spark.effects.animation.MotionPath;
 import spark.effects.supportClasses.AnimateTransformInstance;

 use namespace mx_internal;
@@ -1136,6 +1138,8 @@
     //--------------------------------------------------------------------------

     /**
+     *  @private
+     *
      *  Creates the instance for this effect. Unlike other effects which operate
      *  autonomously, this effect uses only a single effect instance per target.
      *  So all objects of type AnimateTransform, or its subclasses, share this
@@ -1610,7 +1614,7 @@
      * Inserts a keyframe into an existing set of keyframes according to
      * its time. Keyframes are sorted in increasing time order.
      */
-    private function insertKeyframe(keyframes:Array, newKF:KeyFrame):void
+    private function insertKeyframe(keyframes:Vector.<Keyframe>, newKF:Keyframe):void
     {
         for (var i:int = 0; i < keyframes.length; i++)
         {
@@ -1681,8 +1685,8 @@
         }
         // Now create a MotionPath from the result
         var mp:MotionPath = new MotionPath(property);
-        mp.keyframes = [new KeyFrame(0, valueFrom),
-            new KeyFrame(duration, valueTo, valueBy)];
+        mp.keyframes = new <Keyframe>[new Keyframe(0, valueFrom),
+            new Keyframe(duration, valueTo, valueBy)];

         // Finally, integrate this MotionPath in with the existing
         // MotionPath objects, if there are any
@@ -1704,7 +1708,7 @@
         }
         else
         {
-            motionPaths = [];
+            motionPaths = new Vector.<MotionPath>();
         }
         motionPaths.push(mp);
     }
@@ -1746,7 +1750,7 @@
         if (transformPropertiesSet)
         {
             if (!motionPaths)
-                motionPaths = [];
+                motionPaths = new Vector.<MotionPath>();
             if (_translationX)
                 motionPaths.push(_translationX);
             if (_translationY)
@@ -1769,7 +1773,7 @@
         if (postLayoutTransformPropertiesSet)
         {
             if (!motionPaths)
-                motionPaths = [];
+                motionPaths = new Vector.<MotionPath>();

             // there are two ways we can be affecting post-layout values.
             // first, if the user has explicity asked the motion paths to be post layout by setting the motionPathsAffectLayout
@@ -1810,7 +1814,7 @@
                 {
                     for (var j:int = 0; j < mp.keyframes.length; ++j)
                     {
-                        var kf:KeyFrame = KeyFrame(mp.keyframes[j]);
+                        var kf:Keyframe = Keyframe(mp.keyframes[j]);
                         // NaN for the time is used by SimpleMotionPath as a
                         // placeholder for the end time of the effect
                         if (isNaN(kf.time))
@@ -1860,7 +1864,7 @@
         // so that they are still available for reuse upon re-playing the effect
         var tmpStartDelay:Number = startDelay;
         startDelay = 0;
-        var tmpAnimProps:Array = motionPaths;
+        var tmpAnimProps:Vector.<MotionPath> = motionPaths;
         motionPaths = null;
         super.initInstance(instance);
         startDelay = tmpStartDelay;


[FWR-j9J3LsxC] MicrophoneSamplesForwarder: code quality improvements.

--- src/main/flashwavrecorder/MicrophoneSamplesForwarder.as
+++ src/main/flashwavrecorder/MicrophoneSamplesForwarder.as
@@ -11,17 +11,17 @@
     }

     public function handleMicSampleData(event:SampleDataEvent):void {
-      var inputSamples:ByteArray = event.data;
-      inputSamples.position = 0;
-      var outputSamples:Array = [];
-      while (inputSamples.bytesAvailable) {
-        outputSamples.push(inputSamples.readFloat());
-      }
-      dispatchSamplesEvent(outputSamples);
+      var outputSamples:Array = readFloatsFromBytes(event.data);
+      dispatchEvent(new MicrophoneSamplesEvent(outputSamples));
     }

-    private function dispatchSamplesEvent(samples:Array):void {
-      dispatchEvent(new MicrophoneSamplesEvent(samples));
+    private function readFloatsFromBytes(bytes:ByteArray):Array {
+      var floats:Array = [];
+      bytes.position = 0;
+      while (bytes.bytesAvailable > 0) {
+        floats.push(bytes.readFloat());
+      }
+      return floats;
     }
   }
 }


fixed detection of Apache FlexJS on Windows when it is installed from NPM

--- source/com/nextgenactionscript/flexjs/utils/ApacheFlexJSUtils.as
+++ source/com/nextgenactionscript/flexjs/utils/ApacheFlexJSUtils.as
@@ -83,11 +83,23 @@
 				for(var i:int = 0; i < pathCount; i++)
 				{
 					var currentPath:String = paths[i];
-					var asjscPath:String = path.join(currentPath, ASJSC);
+					//first check if this directory contains the NPM version for
+					//Windows
+					var asjscPath:String = path.join(currentPath, ASJSC + ".cmd");
 					if(fs.existsSync(asjscPath))
 					{
-						//this may not be the actual file if Apache FlexJS was
-						//installed with NPM
+						sdkPath = path.join(path.dirname(asjscPath), "node_modules", "flexjs");
+						if(isValidSDK(sdkPath))
+						{
+							return sdkPath;
+						}
+					}
+					asjscPath = path.join(currentPath, ASJSC);
+					if(fs.existsSync(asjscPath))
+					{
+						//this may a symbolic link rather than the actual file,
+						//such as when Apache FlexJS is installed with NPM on
+						//Mac, so get the real path.
 						asjscPath = fs.realpathSync(asjscPath);
 						sdkPath = path.join(path.dirname(asjscPath), "..", "..");
 						if(isValidSDK(sdkPath))


adding ad impression event constant

adding ad impression event constant

--- actionscript/src/com/freshplanet/ane/AirFacebook/appevents/FBAppEventsConstants.as
+++ actionscript/src/com/freshplanet/ane/AirFacebook/appevents/FBAppEventsConstants.as
@@ -100,9 +100,14 @@
         public static const EVENT_NAME_VIEWED_CONTENT:String = "fb_mobile_content_view";

 		/**
-		 * Log this event when the user has viewed a form of content in the app.
+		 * Log this event when the user has opened a push notification
 		 */
 		public static const EVENT_NAME_PUSH_OPENED:String = "fb_mobile_push_opened";
+
+		/**
+		 * Log this event when ad was displayed
+		 */
+		public static const EVENT_NAME_AD_IMPRESSION:String = "AdImpression";

         /**
          * Parameter key used to specify an ID for the specific piece of content being logged about.


Transferred from the Adobe Open Source Subversion Repository

Revision: 7306
Author:   aharui@adobe.com
Date:     2009-05-27T14:54:00.080376Z

Log Message:
-----------
Fix another pair of mustella failures from the frame1 cleanup

QE Notes: None
Doc Notes: None
Bugs: SDK-21386
Reviewer: corey
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
@@ -227,14 +227,14 @@

 				form = findLastActiveForm(f);

-                e = new DynamicEvent("deactivatedForm", false, true);
-                e.form = form;
-                if (dispatchEvent(e))
-                {
-				    // make sure we have a valid top level window.
-				    // This can be null if top level window has been hidden for some reason.
-				    if (form)
-				    {
+				// make sure we have a valid top level window.
+				// This can be null if top level window has been hidden for some reason.
+				if (form)
+				{
+                    e = new DynamicEvent("deactivatedForm", false, true);
+                    e.form = form;
+                    if (dispatchEvent(e))
+                    {
 					    form.focusManager.activate();
 				    }
                 }


We should just test the bitmap itself, not the source frames.

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

--- src/as/com/threerings/cast/MultiFrameBitmap.as
+++ src/as/com/threerings/cast/MultiFrameBitmap.as
@@ -80,14 +80,13 @@
         if (_curFrameIndex == -1) {
             return false;
         } else {
-            var frame :Bitmap = getFrame(_curFrameIndex);
-            if (frame.hitTestPoint(stageX, stageY, true)) {
+            if (_bitmap.hitTestPoint(stageX, stageY, true)) {
                 // Doesn't even hit the bounds...
                 return false;
             }
             // Check the actual pixels...
-            var pt :Point = frame.globalToLocal(new Point(stageX, stageY));
-            return frame.bitmapData.hitTest(new Point(0, 0), 0, pt);
+            var pt :Point = _bitmap.globalToLocal(new Point(stageX, stageY));
+            return _bitmap.bitmapData.hitTest(new Point(0, 0), 0, pt);
         }
     }


Allow XML to be encoded.
Let's try it and see if it works. Let us know Nathan.

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

--- src/as/com/threerings/util/ObjectMarshaller.as
+++ src/as/com/threerings/util/ObjectMarshaller.as
@@ -196,10 +196,9 @@
             }
             // then, continue on with sub-property check (below)

-
         } else {
             var type :String = typeof(value);
-            if (type == "number" || type == "string" || type == "boolean" ) {
+            if (type == "number" || type == "string" || type == "boolean" || type == "xml") {
                 return null; // kosher!
             }
             if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClassName(value))) {


OFC-548 On submit of cluster with errors, show unresolved errors in popup

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/ErrorListPopUpPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/ErrorListPopUpPresenter.as
@@ -83,8 +83,9 @@
 			var childDefinitions:ListCollectionView = entityDefn.childDefinitions;
 			var messages:Array
 			for each (var childDefn:NodeDefinitionProxy in childDefinitions) {
-				var minCountValid:ValidationResultFlag = entity.childrenMinCountValidationMap.get(childDefn);
-				var maxCountValid:ValidationResultFlag = entity.childrenMinCountValidationMap.get(childDefn);
+				var childName:String = childDefn.name;
+				var minCountValid:ValidationResultFlag = entity.childrenMinCountValidationMap.get(childName);
+				var maxCountValid:ValidationResultFlag = entity.childrenMinCountValidationMap.get(childName);
 				if(minCountValid == ValidationResultFlag.ERROR || maxCountValid == ValidationResultFlag.ERROR) {
 					if ( minCountValid == ValidationResultFlag.ERROR ) {
 						messages = [Message.get("edit.validation.minCount", [childDefn.minCount > 0 ? childDefn.minCount: 1])];


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.controls.olapDataGridClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/advancedgrids/src/mx/olap/aggregators/SumAggregator.as
+++ frameworks/projects/advancedgrids/src/mx/olap/aggregators/SumAggregator.as
@@ -0,0 +1,135 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+
+package mx.olap.aggregators
+{
+import mx.olap.IOLAPCustomAggregator;
+import mx.formatters.NumberBase;
+
+/**
+ *  The SumAggregator class  implements the sum aggregator.
+ *  The sum aggregator returns the sum of all measures.
+ *  Flex uses this aggregator when you set the OLAPMeasure.aggregator property
+ *  to "SUM".
+ *
+ *  @see mx.olap.OLAPMeasure
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class SumAggregator implements IOLAPCustomAggregator
+{
+	//--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    // sum functions
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeBegin(dataField:String):Object
+    {
+        var newObj:Object = {};
+        newObj[dataField] = 0;
+        return newObj;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeLoop(data:Object, dataField:String, rowData:Object):void
+    {
+    	var value:Number = rowData[dataField];
+    	if (typeof(value) == "xml")
+			value = Number(value.toString());
+
+        if (!data.hasOwnProperty(dataField))
+            data[dataField] = value ;
+        else
+            data[dataField] += value;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeEnd(data:Object, dataField:String):Number
+    {
+        return data[dataField];
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeObjectBegin(value:Object):Object
+    {
+        var newObj:Object = {};
+        for (var p:String in value)
+        {
+            newObj[p] = value[p];
+        }
+        return newObj;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeObjectLoop(oldValue:Object, newValue:Object):void
+    {
+        for (var p:String in newValue)
+        {
+            oldValue[p] += newValue[p];
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function computeObjectEnd(oldValue:Object, dataField:String):Number
+    {
+        return oldValue[dataField];
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
@@ -334,7 +334,7 @@
 	     */
 	    mx_internal function getBookmark(mcvCursor:ModifiedCollectionViewCursor):ModifiedCollectionViewBookmark
 	    {
-	    	var index:int = mcvCursor.mx_internal::currentIndex;
+	    	var index:int = mcvCursor.currentIndex;

 	        if (index < 0 || index > length)
 	        {
@@ -1388,7 +1388,7 @@
         else
         {
             //setCurrent(ModifiedCollectionView(view).getItemAt(tempIndex));
-            setCurrent(ModifiedCollectionView(view).mx_internal::getWrappedItemUsingCursor(this,tempIndex));
+            setCurrent(ModifiedCollectionView(view).getWrappedItemUsingCursor(this,tempIndex));
         }
         currentIndex = tempIndex;
         return !afterLast;
@@ -1443,7 +1443,7 @@
         else
         {
             //setCurrent(ModifiedCollectionView(view).getItemAt(tempIndex));
-            setCurrent(ModifiedCollectionView(view).mx_internal::getWrappedItemUsingCursor(this,tempIndex));
+            setCurrent(ModifiedCollectionView(view).getWrappedItemUsingCursor(this,tempIndex));
         }
         currentIndex = tempIndex;
         return !beforeFirst;
@@ -1573,7 +1573,7 @@
         }
         else
         {
-			newCurrent = ModifiedCollectionView(view).mx_internal::getWrappedItemUsingCursor(this,newIndex);
+			newCurrent = ModifiedCollectionView(view).getWrappedItemUsingCursor(this,newIndex);
             //newCurrent = ModifiedCollectionView(view).getItemAt(newIndex);
             currentIndex = newIndex;
         }


Apache license 2.0 added.

Apache license 2.0 added.

--- tui_flashdevelop4_2_1__tuioAS3_0_8__AIR2_6/lib/touchAll/pong/cl/kirill/PongGame.as
+++ tui_flashdevelop4_2_1__tuioAS3_0_8__AIR2_6/lib/touchAll/pong/cl/kirill/PongGame.as
@@ -1,3 +1,20 @@
+/*
+ * Tangible User Interfacer (former TouchAll) misc code.
+ *
+ * Copyright 2016 Gonçalo Amador <g.n.p.amador@gmail.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package touchAll.pong.cl.kirill
 {
 	import flash.display.MovieClip;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12380
Author:   smgilson@adobe.com
Date:     2009-12-02T18:37:15.838623Z

Log Message:
-----------
ASDoc edits in preparation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.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/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -84,6 +84,8 @@

 /**
  *  The alpha of the content background for this component.
+ *
+ *  @default 1.0
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -106,6 +108,8 @@

 /**
  *  The alpha value when the container is disabled.
+ *
+ *  @default 0.5
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -174,15 +178,69 @@
  *    autoLayout="true"
  *    clipAndEnableScrolling="false"
  *    horizontalScrollPosition="null"
+ *    luminosityClip="false"
+ *    luminosityInvert="false"
  *    layout="BasicLayout"
  *    mask=""
  *    maskType="clip"
+ *    mouseEnabledWhereTransparent="true"
  *    resizeMode="noScale"
  *    verticalScrollPosition="no default"
  *
- *    Events
- *    elementAdd="No default"
- *    elementRemove="No default"
+ *    Styles
+ *    accentColor="0x0099FF"
+ *    alignmentBaseline="useDominantBaseline"
+ *    alternatingItemColors="undefined"
+ *    baselineShift="0"
+ *    blockProgression="tb"
+ *    breakOpportunity="auto"
+ *    cffHinting="horizontalStem"
+ *    chromeColor="0xCCCCCC"
+ *    color="0x000000"
+ *    contentBackgroundAlpha="1.0"
+ *    contentBackgroundColor="0xFFFFFF"
+ *    digitCase="default"
+ *    digitWidth="default"
+ *    direction="ltr"
+ *    disabledAlpha="0.5"
+ *    dominantBaseline="auto"
+ *    firstBaselineOffset="auto"
+ *    focusColor="0x70B2EE"
+ *    focusedTextSelectionColor="A8C6EE"
+ *    fontFamily="Arial"
+ *    fontLookup="device"
+ *    fontSize="12"
+ *    fontStyle="normal"
+ *    fontWeight="normal"
+ *    inactiveTextSelectionColor="E8E8E8"
+ *    justificationRule="auto"
+ *    justificationStyle="auto"
+ *    kerning="auto"
+ *    leadingModel="auto"
+ *    ligatureLevel="common"
+ *    lineHeight="120%"
+ *    lineThrough="false"
+ *    locale="en"
+ *    paragraphEndIndent="0"
+ *    paragraphSpaceAfter="0"
+ *    paragraphSpaceBefore="0"
+ *    paragraphStartIndent="0"
+ *    renderingMode="cff"
+ *    rollOverColor="0xCEDBEF"
+ *    symbolColor="0x000000"
+ *    tabStops="null"
+ *    textAlign="start"
+ *    textAlignLast="start"
+ *    textAlpha="1"
+ *    textDecoration="none"
+ *    textIndent="0"
+ *    textJustify="interWord"
+ *    textRotation="auto"
+ *    trackingLeft="0"
+ *    trackingRight="0"
+ *    typographicCase="default"
+ *    unfocusedTextSelectionColor="0xE8E8E8"
+ *    whiteSpaceCollapse="collapse"
  *  />
  *

  *
@@ -353,7 +411,7 @@
      *
      *  @default spark.layouts.BasicLayout
      *
-     *  @see LayoutBase
+     *  @see spark.layouts.supportClasses.LayoutBase
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -687,9 +745,10 @@
     [Inspectable(category="General")]

     /**
-     *  The overlay plane for this Group.
+     *  The overlay plane for this group.
      *  All objects of the overlay plane render on top of the Group elements.
-     *  Don't hold on to this object, as Group destroys and creates it on demand.
+     *
+     *
Note: Do not retain this object because the group destroys and creates it on demand.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -808,9 +867,9 @@
     [Inspectable(category="General", enumeration="true,false")]

     /**
-     *  When set to true the mouseOpaque flag ensures that the entire bounds
-     *  of the Group are opaque to all mouse events such as clicks, rollOvers,
-     *  etc.
+     *  When set to true, the mouseOpaque property
+     *  ensures that the entire bounds of the Group are opaque to all
+     *  mouse events such as click and roll over.
      *
      *  @default true
      *
@@ -1609,21 +1668,21 @@
      *
The mask type. Possible values are MaskType.CLIP, MaskType.ALPHA
      *  or MaskType.LUMINOSITY.

      *
-     *
Clip Masking

+     *
Clip Masking

      *
      *
When masking in clip mode, a clipping masks is reduced to 1-bit.  This means that a mask will
      *  not affect the opacity of a pixel in the source content; it either leaves the value unmodified,
      *  if the corresponding pixel in the mask is has a non-zero alpha value, or makes it fully
      *  transparent, if the mask pixel value has an alpha value of zero.

      *
-     *
Alpha Masking

+     *
Alpha Masking

      *
      *
In alpha mode, the opacity of each pixel in the source content is multiplied by the opacity
      *  of the corresponding region of the mask.  i.e., a pixel in the source content with an opacity of
      *  1 that is masked by a region of opacity of .5 will have a resulting opacity of .5.  A source pixel
      *  with an opacity of .8 masked by a region with opacity of .5 will have a resulting opacity of .4.

      *
-     *
Luminosity Masking

+     *
Luminosity Masking

      *
      *
A luminosity mask, sometimes called a 'soft mask', works very similarly to an alpha mask
      *  except that both the opacity and RGB color value of a pixel in the source content is multiplied


Transferred from the Adobe Open Source Subversion Repository

Revision: 3304
Author:   chaase@adobe.com
Date:     2008-09-23T00:28:25.186205Z

Log Message:
-----------
Fix for SDK-16985. Two problems:
1) nonzero startDelay caused us to sometimes set the visible flag immediately, but not also send in the first alpha value (this only happens when the animation actually begins, after the startDelay duration). Fix is to set alpha=0 when first setting up animation, to ensure that if we set a fading-in object to be visible, it stays invisible until the fade actually starts.
2) composite effects do not restore the end state values until after the last child effect finishes, so we were sometimes restoring an alpha value without also making the item visible/invisible, thinking that the state-setting mechanism would handle it for us (which it does ... but not until other effects finish). Fix is to ensure that we set the object to be invisible if we are restoring alpha to 1, for fading-out effects.

reviewed by Glenn
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/FadeInstance.as

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
@@ -35,6 +35,8 @@
      *  The original transparency level.
      */
     private var origAlpha:Number = NaN;
+
+    private var makeInvisible:Boolean;

     /**
      *  @private
@@ -139,7 +141,18 @@
             alphaFrom == 0 && alphaTo != 0 &&
             propChanges && propChanges.end["visible"] !== undefined)
         {
+            target.alpha = 0;
             target.visible = true;
+        }
+        // And logic to make the object invisible at the end if we're
+        // fading it out
+        // TODO (chaase): simplify logic of which variables we are
+        // side-effecting and what we should reset at the end
+        if ("visible" in target && target.visible &&
+            alphaFrom != 0 && alphaTo == 0 &&
+            propChanges && propChanges.end["visible"] !== undefined)
+        {
+            makeInvisible = true;
         }

         propertyValuesList =
@@ -159,9 +172,10 @@
         super.endHandler(event);

         if (restoreAlpha)
-        {
             target.alpha = origAlpha;
-        }
+
+        if (makeInvisible)
+            target.visible = false;
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18556
Author:   cframpto@adobe.com
Date:     2010-11-12T18:18:29.899950Z

Log Message:
-----------
The grid item renderers are using UIFTETextField and UITextField in a non-standard way.  Both are intended to inherit their styles from their parents.  They don't support setStyle() and a few of the styles (direction, locale) are actually properties so when set with MXML, the compiler finds the properties rather than the styles.  In DefaultGridItemRenderer kludge in support for direction and locale.  For both renderers, layoutDirection must be inherited so hide the layoutDirection property and style metadata from FlashBuilder and add this info to the doc.

QE notes:
Doc notes:
Bugs: SDK-28290
Reviewer: Hans, Kevin
Tests run: cyclone
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -46,18 +46,31 @@
  */
 [Event(name="dataChange", type="mx.events.FlexEvent")]

+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+// These must be inherited to work correctly.
+
+[Exclude(name="layoutDirection", kind="property")]
+[Exclude(name="layoutDirection", kind="style")]
+
 /**
- *   A simple and efficent IGridItemRenderer that displays a single text label.  This
+ *   A simple and efficient IGridItemRenderer that displays a single text label.  This
  *   class is the default value for the s:DataGrid itemRenderer property.   It's based
  *   on FTE, the FlashTextEngine, It is based on FTE, the “FlashTextEngine”, which supports
  *   high-quality international typography and font embedding in the same way as other
  *   Spark controls.
  *
+ *
DefaultGridItemRenderer will inherit its layoutDirection
+ *   from its parent.  It should not be set directly on
+ *   DefaultGridItemRenderer.

+ *
  *
Label text wrapping can be controlled with the lineBreak style.  For example
  *   a DataGrid configured like this:
  *   lineBreak="explicit" variableRowHeight="false" yields fixed height
  *   DataGrid cells whose labels do not wrap.

- *
+ *
  *
DefaultGridItemRenderer is not intended to be subclassed or copied, it is
  *   effectively final.  Custom item renderers can be created in MXML with the
  *   GridItemRenderer component.

@@ -78,6 +91,69 @@
         addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);
     }

+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Hold the property to style conversions that getStyle() should use.
+     *  Since setStyle() in UIFTETextField is a no-op, getStyle() will look here
+     *  for a "pseudo style" before looking for the real styles.  See notes
+     *  on direction and locale properties.
+     */
+    private var pseudoStyles:Object;
+
+    //----------------------------------
+    //  direction
+    //----------------------------------
+
+    /**
+     * @private
+     * This is a property in FTETextField so if set in mxml the property
+     * rather than the style is set.  UIFTETextField will overwrite the
+     * property with the value of the "direction" style so convert the property
+     * to a style.
+     */
+    override public function set direction(value:String):void
+    {
+        if (!pseudoStyles)
+            pseudoStyles = {};
+        pseudoStyles["direction"] = value;
+    }
+
+    //----------------------------------
+    //  locale
+    //----------------------------------
+
+    /**
+     * @private
+     * This is a property in FTETextField so if set in mxml the property
+     * rather than the style is set.  UIFTETextField will overwrite the
+     * property with the value of the "locale" style so convert the property
+     * to a style.
+     */
+    override public function set locale(value:String):void
+    {
+        if (!pseudoStyles)
+            pseudoStyles = {};
+        pseudoStyles["locale"] = value;
+    }
+
+    /**
+     * @private
+     */
+    override public function getStyle(styleProp:String):*
+    {
+        if (pseudoStyles && pseudoStyles[styleProp] !== undefined)
+            return pseudoStyles[styleProp];
+
+        return super.getStyle(styleProp);
+    }
+
+
 include "TextFieldGridItemRendererInclude.as"

 }


ArrayUtil.copyOf()

ArrayUtil.copyOf()

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

--- src/as/com/threerings/util/ArrayUtil.as
+++ src/as/com/threerings/util/ArrayUtil.as
@@ -30,6 +30,15 @@
  */
 public class ArrayUtil
 {
+    /**
+     * Creates a shallow copy of the array.
+     * @TODO: add support for copy ranges and deep copies?
+     */
+    public static function copyOf (arr :Array) :Array
+    {
+        return arr.slice();
+    }
+
     /**
      * Sort the specified array according to natural order- all elements
      * must implement Comparable or be null.


Issue #89: Fix image format logic switch statement falling through to default.

--- src/com/esri/builder/model/ConfigLayer.as
+++ src/com/esri/builder/model/ConfigLayer.as
@@ -356,6 +356,7 @@
             case "gif":
             {
                 parsedImageFormat = imageFormat;
+                break;
             }
             default:
             {


-added check for InvokeEventReason.OPEN_URL in onInvoke() to handle open url right (closes #12)

--- actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -2,6 +2,8 @@
 import com.freshplanet.ane.AirFacebook.appevents.FBEvent;
 import com.freshplanet.ane.AirFacebook.share.FBAppInviteContent;
 import com.freshplanet.ane.AirFacebook.share.FBShareLinkContent;
+
+import flash.desktop.InvokeEventReason;

 import flash.desktop.NativeApplication;
 import flash.events.Event;
@@ -460,14 +462,28 @@

     private function onInvoke(event:InvokeEvent):void
     {
-        log("FACEBOOK about to call handleOpenURL on args: [" + event.arguments.join(",") + "] with reason: " + event.reason);
+//  NOTE: you can debug onInvoke with these lines of code
+//        var debugStr:String;
+//        if(event.reason == InvokeEventReason.NOTIFICATION){
+//            var obj:Object = event.arguments[0];
+//            var arr:Array = [];
+//            for (var prop in obj) {
+//                arr.push(prop + ": " + obj[prop]);
+//            }
+//            debugStr = arr.join(", ")
+//        }else{
+//            debugStr = event.arguments.join(",");
+//        }
+//
+//        log("onInvoke reason: " + event.reason + " params: " + debugStr);

         if (Capabilities.manufacturer.indexOf("iOS") != -1) {
-            if (event.arguments != null && event.arguments.length > 0) {
+            if (event.reason == InvokeEventReason.OPEN_URL && event.arguments != null && event.arguments.length == 3) {
                 var url:String = event.arguments[0] as String;
                 var sourceApplication:String = event.arguments[1] as String;
                 var annotation:String = event.arguments[2] as String;

+                log("handleOpenURL url: " + url + " sourceApplication: " + sourceApplication + " annotation: " + annotation);
                 _context.call("handleOpenURL", url, sourceApplication, annotation);
             }
         }
@@ -556,7 +572,12 @@
         }
     }

-    private function log(message:String):void
+    /**
+     * Do not use this method outside this class. It may be removed anytime!
+     *
+     * @param message
+     */
+    public function log(message:String):void
     {
         if (Facebook.logEnabled) {
             as3Log(message, "AS3");


Transferred from the Adobe Open Source Subversion Repository

Revision: 11731
Author:   smgilson@adobe.com
Date:     2009-11-12T21:14:24.811066Z

Log Message:
-----------
ASDoc updates for bugs: SDK-23414, FLEXDOCS-609, FLEXDOCS-552

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

Modified Paths:
--------------
<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/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -33,7 +33,7 @@
 //--------------------------------------

 /**
- *  @copy spark.components.supportClasses.GroupBase#baseColor
+ *  @copy spark.components.supportClasses.GroupBase#style:baseColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


ImageEditor, Flash: Survive weird resample option.

--- src/flash/src/com/ImageEditor.as
+++ src/flash/src/com/ImageEditor.as
@@ -297,9 +297,6 @@
 				var tmpBd:BitmapData = new BitmapData(_bd.width * newScale, _bd.height * newScale);

 				switch (resample) {
-					case 'nearest':
-						shader.byteCode = new NearestNeighbourScale();
-						break;

 					case 'bicubic':
 						shader.byteCode = new BicubicScale();
@@ -309,7 +306,10 @@
 						shader.byteCode = new BilinearScale();
 						break;

-					default: return;
+					case 'nearest':
+					default:
+						shader.byteCode = new NearestNeighbourScale();
+
 				}

 				// order matters - byteCode should be assigned first (that's why it is above this)


Added option to label histogram bars.

Added option to label histogram bars.

--- WeaveUISpark/src/weave/visualization/plotters/HistogramPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/HistogramPlotter.as
@@ -29,13 +29,18 @@
 	import weave.api.setSessionState;
 	import weave.api.ui.IPlotTask;
 	import weave.api.ui.ISelectableAttributes;
+	import weave.compiler.StandardLib;
 	import weave.core.LinkableBoolean;
+	import weave.core.LinkableNumber;
 	import weave.core.LinkableString;
 	import weave.data.AttributeColumns.BinnedColumn;
 	import weave.data.AttributeColumns.ColorColumn;
 	import weave.data.AttributeColumns.DynamicColumn;
 	import weave.data.AttributeColumns.FilteredColumn;
 	import weave.primitives.Bounds2D;
+	import weave.utils.BitmapText;
+	import weave.utils.ColumnUtils;
+	import weave.utils.LinkableTextFormat;
 	import weave.visualization.plotters.styles.SolidFillStyle;
 	import weave.visualization.plotters.styles.SolidLineStyle;

@@ -117,7 +122,16 @@
 		public const drawPartialBins:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(true));
 		public const columnToAggregate:DynamicColumn = newSpatialProperty(DynamicColumn);
 		public const aggregationMethod:LinkableString = registerSpatialProperty(new LinkableString(AG_COUNT, verifyAggregationMethod));
-		public const horizontalMode:LinkableBoolean = registerSpatialProperty(new LinkableBoolean(false));
+		public const horizontalMode:LinkableBoolean = registerSpatialProperty(new LinkableBoolean(false));
+
+		public const showValueLabels:LinkableBoolean = registerLinkableChild(this, new LinkableBoolean(false));
+		public const valueLabelHorizontalAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.HORIZONTAL_ALIGN_LEFT));
+		public const valueLabelVerticalAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.VERTICAL_ALIGN_MIDDLE));
+		public const valueLabelRelativeAngle:LinkableNumber = registerLinkableChild(this, new LinkableNumber(NaN));
+		public const valueLabelColor:LinkableNumber = registerLinkableChild(this, new LinkableNumber(0));
+		public const valueLabelMaxWidth:LinkableNumber = registerLinkableChild(this, new LinkableNumber(200, verifyLabelMaxWidth));
+		private function verifyLabelMaxWidth(value:Number):Boolean { return value > 0; }
+		private const _bitmapText:BitmapText = new BitmapText();

 		private static function verifyAggregationMethod(value:String):Boolean { return ENUM_AGGREGATION_METHODS.indexOf(value) >= 0; }
 		public static const ENUM_AGGREGATION_METHODS:Array = [AG_COUNT, AG_SUM, AG_MEAN];
@@ -197,31 +211,28 @@
 		 */
 		override public function drawPlotAsyncIteration(task:IPlotTask):Number
 		{
-			drawAll(task.recordKeys, task.dataBounds, task.screenBounds, task.buffer);
-			return 1;
-		}
-		private function drawAll(recordKeys:Array, dataBounds:IBounds2D, screenBounds:IBounds2D, destination:BitmapData):void
-		{
 			var i:int;

 			// convert record keys to bin keys
 			// save a mapping of each bin key found to a value of true
 			var binName:String;
 			var _tempBinKeyToSingleRecordKeyMap:Object = new Object();
-			for (i = 0; i < recordKeys.length; i++)
+			for (i = 0; i < task.recordKeys.length; i++)
 			{
-				binName = binnedColumn.getValueFromKey(recordKeys[i], String);
+				binName = binnedColumn.getValueFromKey(task.recordKeys[i], String);
 				var array:Array = _tempBinKeyToSingleRecordKeyMap[binName] as Array
 				if (!array)
 					array = _tempBinKeyToSingleRecordKeyMap[binName] = [];
-				array.push(recordKeys[i]);
+				array.push(task.recordKeys[i]);
 			}

 			var binNames:Array = [];
 			for (binName in _tempBinKeyToSingleRecordKeyMap)
 				binNames.push(binName);
 			var allBinNames:Array = binnedColumn.binningDefinition.getBinNames();
-
+
+			LinkableTextFormat.defaultTextFormat.copyTo(_bitmapText.textFormat);
+
 			// draw the bins
 			// BEGIN template code for defining a drawPlot() function.
 			//---------------------------------------------------------
@@ -250,7 +261,7 @@
 					tempBounds.setYRange(0, binHeight);
 					tempBounds.setCenteredXRange(binIndex, 1);
 				}
-				dataBounds.projectCoordsTo(tempBounds, screenBounds);
+				task.dataBounds.projectCoordsTo(tempBounds, task.screenBounds);

 				// draw rectangle for bin
 				graphics.clear();
@@ -267,11 +278,43 @@
 				graphics.drawRect(tempBounds.getXMin(), tempBounds.getYMin(), tempBounds.getWidth(), tempBounds.getHeight());
 				graphics.endFill();
 				// flush the tempShape "buffer" onto the destination BitmapData.
-				destination.draw(tempShape);
-			}
-
-			//---------------------------------------------------------
-			// END template code
+				task.buffer.draw(tempShape);
+
+				// draw value label
+				if (showValueLabels.value)
+				{
+					if (agCol)
+						_bitmapText.text = ColumnUtils.deriveStringFromNumber(agCol, binHeight);
+					else
+						_bitmapText.text = StandardLib.formatNumber(binHeight);
+					if (horizontalMode.value)
+					{
+						_bitmapText.x = tempBounds.getXMax();
+						_bitmapText.y = tempBounds.getYCenter();
+						_bitmapText.angle = 0;
+					}
+					else
+					{
+						_bitmapText.x = tempBounds.getXCenter();
+						_bitmapText.y = tempBounds.getYMax();
+						_bitmapText.angle = 270;
+					}
+
+					_bitmapText.maxWidth = valueLabelMaxWidth.value;
+					_bitmapText.verticalAlign = valueLabelVerticalAlign.value;
+					_bitmapText.horizontalAlign = valueLabelHorizontalAlign.value;
+
+					if (isFinite(valueLabelRelativeAngle.value))
+						_bitmapText.angle += valueLabelRelativeAngle.value;
+
+					_bitmapText.textFormat.color = valueLabelColor.value;
+
+					TextGlyphPlotter.drawInvisibleHalo(_bitmapText, task);
+					_bitmapText.draw(task.buffer);
+				}
+			}
+
+			return 1;
 		}

 		private const tempBounds:IBounds2D = new Bounds2D(); // reusable temporary object


added [Bindable]

added [Bindable]

Change-Id: I9adfbff34203d076eece65545efe4ed1b0dc0038

--- WeaveCore/src/weave/core/StageUtils.as
+++ WeaveCore/src/weave/core/StageUtils.as
@@ -151,7 +151,7 @@
 		/**
 		 * When the current frame elapsed time reaches this threshold, callLater processing will be done in later frames.
 		 */
-		public var maxComputationTimePerFrame:uint = 100;
+		[Bindable] public var maxComputationTimePerFrame:uint = 100;

 		/**
 		 * This function gets called on ENTER_FRAME events.


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4460
Author:   gosmith@adobe.com
Date:     2009-01-09T01:53:33.590972Z

Log Message:
-----------
Renamed UIComponentAccImpl to UIComponentAccProps because it extends AccessibilityProperties, not AccessibilityImplementation.

Added comments with the identifier for each magic role constant, so that it is easier to understand what roles our components are using.

Moved two static methods from UIComponentAccProperties to AccImpl because they make more sense there.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None (no functional changes)

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/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/ComboBaseAccImpl.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/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="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as" copyfrom-rev="4437" action="A">/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/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
@@ -168,7 +168,7 @@
 	{
 		super(master);

-		role = 0x23;
+		role = 0x23; // ROLE_SYSTEM_OUTLINE
 	}

 	//--------------------------------------------------------------------------
@@ -205,10 +205,7 @@
 	 */
 	override public function get_accRole(childID:uint):uint
 	{
-		if (childID == 0)
-			return role;
-
-		return ROLE_SYSTEM_OUTLINEITEM;
+		return childID == 0 ? role : ROLE_SYSTEM_OUTLINEITEM;
 	}

 	/**
@@ -379,6 +376,7 @@
 				childIDs[i] = i + 1;
 			}
 		}
+
 		return childIDs;
 	}