Transferred from the Adobe Open Source Subversion Repository

Revision: 12930
Author:   egeorgie@adobe.com
Date:     2009-12-15T00:23:58.803039Z

Log Message:
-----------
Optimize transformSize and transformBounds, reduce allocation of Point objects.

This change addresses a couple of FIXMEs I had put in the internal MatrixUtil class. The parameters were changed to numbers instead of points and I unrolled the matrix multiplication to significantly reduce the number of multiplications and additions. Both methods now return reference to the same internal static Point object to further reduce dynamic object allocation.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests, mustella tests/gumbo/layout
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/sparkTest/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.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/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -71,7 +71,7 @@
         var ch:Number = viewport.contentHeight;
         if (((cw == 0) && (ch == 0)) || (isNaN(cw) || isNaN(ch)))
             return new Point(0,0);
-        return MatrixUtil.transformSize(new Point(cw, ch), viewport.getLayoutMatrix());
+        return MatrixUtil.transformSize(cw, ch, viewport.getLayoutMatrix());
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7472
Author:   chaase@adobe.com
Date:     2009-06-01T17:57:10.489577Z

Log Message:
-----------
Changing a handful of behavior-related properties to styles instead, for usability and consistency:
Scroller.horizontalScrollPolicy
Scroller.verticalScrollPolicy
TextArea.horizontalScrollPolicy
TextArea.verticalScrollPolicy
Slider.liveDragging

Also made previous properties-as-styles changes (smoothScrolling and fixedThumbSize) not inheritable and not exposed in SkinnableContainer/GroupBase.

QE Notes: Requires Mustella updates to handle changes from properties to styles
Doc Notes:
Bugs: sdk-21032
Reviewer: Glenn
Tests: checkintests, Mustella gumbo/components/Scroller, gumbo/components/ScrollBar, gumbo/components/TextArea/, and gumbo/components/Slider

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/SkinnableContainer.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/TextArea.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/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as
@@ -82,7 +82,7 @@

         var hsb:ScrollBar = scroller.horizontalScrollBar;
         var showHSB:Boolean = false;
-        switch(scroller.horizontalScrollPolicy)
+        switch(scroller.getStyle("horizontalScrollPolicy"))
         {
             case ScrollPolicy.ON:
                 if (hsb) showHSB = true;
@@ -94,7 +94,7 @@

         var vsb:ScrollBar = scroller.verticalScrollBar;
         var showVSB:Boolean = false;
-        switch(scroller.verticalScrollPolicy)
+        switch(scroller.getStyle("verticalScrollPolicy"))
         {
            case ScrollPolicy.ON:
                 if (vsb) showVSB = true;
@@ -181,7 +181,7 @@

         var showHSB:Boolean = false;
         var hAuto:Boolean = false;
-        switch(scroller.horizontalScrollPolicy) {
+        switch(scroller.getStyle("horizontalScrollPolicy")) {
             case ScrollPolicy.ON:
                 if (hsb) showHSB = true;
                 break;
@@ -198,7 +198,7 @@

         var showVSB:Boolean = false;
         var vAuto:Boolean = false;
-        switch(scroller.verticalScrollPolicy) {
+        switch(scroller.getStyle("verticalScrollPolicy")) {
            case ScrollPolicy.ON:
                 if (vsb) showVSB = true;
                 break;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8535
Author:   chaase@adobe.com
Date:     2009-07-13T23:23:47.722512Z

Log Message:
-----------
Fixed some transform effects bugs plus a GraphicElement.localToGlobal() bug with the shared display object.

QE Notes: 8 failures in transform effects tests, 1 in Resize test, require changes to the test (new, correct behavior causes a change in the relevantStyles and affectedProperties return values)
Doc Notes: None
Bugs: sdk-21875, sdk-21465, sdk-21804, sdk-22165, sdk-21933
Reviewer: Jason, Glenn (for 21933)
Tests: checkintests, Mustella (spark/effects, mx/effects), Catalyst transition test

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/Animation.as
+++ frameworks/projects/spark/src/spark/effects/animation/Animation.as
@@ -958,11 +958,15 @@
             var keyframes:Vector.<Keyframe> = motionPaths[i].keyframes;
             if (isNaN(keyframes[0].time))
                 keyframes[0].time = 0;
-            // Create an initial (time==0) value if necessary
+            // Create an initial interval if necessary; this holds the property
+            // at it's current value until the first real keyframe is reached.
+            // This situation can occur when an effect has a startDelay that causes
+            // the first keyframe to have a nonzero time value.
             else if (keyframes[0].time > 0)
             {
+                var startTime:Number = keyframes[0].time;
                 keyframes.splice(0, 0, new Keyframe(0, null));
-                keyframes[0].timeFraction = 0;
+                keyframes.splice(1, 0, new Keyframe(startTime-1, null));
             }
             for (j = 1; j < keyframes.length; ++j)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19316
Author:   smgilson@adobe.com
Date:     2010-12-13T19:12:21.336750Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorAction.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
@@ -25,9 +25,11 @@
  *  The NavigationStack class is a data structure that is internally used by
  *  ViewNavigator to track the current set of views that are being managed
  *  by the navigator.
+ *
+ *  @see spark.components.ViewNavigator
  *
  *  @langversion 3.0
- *  @playerversion Flash 10.1
+ *  @playerversion Flash 10
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
@@ -90,7 +92,7 @@
     //----------------------------------

     /**
-     *  Returns the length of the stack.
+     *  The length of the stack.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -107,8 +109,8 @@
     //----------------------------------

     /**
-     *  Returns the object at the top of the stack.  If the stack is empty,
-     *  this propety is null.
+     *  Returns the object at the top of the stack.
+     *  If the stack is empty, this property is null.
      *
      *  @default null
      *
@@ -144,10 +146,17 @@
     // FIXME (chiedozi): Should return things...
     /**
      *  Adds a view to the top of the navigation stack.
+     *  Pushing a view changes the display of the application to
+     *  the new view on the stack.
      *
      *  @param viewClass The class of the View to create.
-     *  @param data The data object to pass to the view when it is created
-     *  @param context The context identifier to pass to the view when created
+     *
+     *  @param data The data object to pass to the view when it is created.
+     *  The new view accesses this Object by using
+     *  the View.data property.
+     *
+     *  @param context The context identifier to pass to the view when
+     *  it is created.
      *
      *  @return The data structure that represents the current view.
      *
@@ -164,6 +173,8 @@

     /**
      *  Removes the top view off the stack.
+     *  Returns control from the current view back to
+     *  the previous view on the stack.
      *
      *  @return The data structure that represented the View.
      *
@@ -179,6 +190,7 @@

     /**
      *  Removes all but the root object from the navigation stack.
+     *  The root object becomes the current view.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -214,8 +226,8 @@
     }

     /**
-     *  Deserializes the navigation stack when being loaded from a shared
-     *  object.
+     *  Deserializes the navigation stack when it is being loaded
+     *  from a shared object.
      *
      *  @param input The external object to read from.
      *


Include all Android skins so that they will get compiled into mobiletheme.swc

--- frameworks/projects/mobiletheme/src/MobileThemeClasses.as
+++ frameworks/projects/mobiletheme/src/MobileThemeClasses.as
@@ -19,60 +19,93 @@

 package
 {
-
-internal class MobileThemeClasses
-{
-
-/**
- *  @private
- *  This class is used to link additional classes into mobile.swc
- *  beyond those that are found by dependecy analysis starting
- *  from the classes specified in manifest.xml.
- */
-import spark.skins.mobile.ActionBarSkin; ActionBarSkin;
-import spark.skins.mobile.BeveledActionButtonSkin; BeveledActionButtonSkin;
-import spark.skins.mobile.BeveledBackButtonSkin; BeveledBackButtonSkin;
-import spark.skins.mobile.ButtonBarSkin; spark.skins.mobile.ButtonBarSkin;
-import spark.skins.mobile.ButtonSkin; spark.skins.mobile.ButtonSkin;
-import spark.skins.mobile.CalloutSkin; spark.skins.mobile.CalloutSkin;
- import spark.skins.mobile.supportClasses.CalloutArrow;  spark.skins.mobile.supportClasses.CalloutArrow;
-    import spark.skins.mobile.CalloutActionBarSkin; spark.skins.mobile.CalloutActionBarSkin;
-import spark.skins.mobile.CalloutViewNavigatorSkin; spark.skins.mobile.CalloutViewNavigatorSkin;
-import spark.skins.mobile.CheckBoxSkin; spark.skins.mobile.CheckBoxSkin;
-import spark.skins.mobile.DefaultBeveledActionButtonSkin; spark.skins.mobile.DefaultBeveledActionButtonSkin;
-import spark.skins.mobile.DefaultBeveledBackButtonSkin; spark.skins.mobile.DefaultBeveledBackButtonSkin;
-import spark.skins.mobile.DefaultButtonSkin; spark.skins.mobile.DefaultButtonSkin;
-import spark.skins.mobile.DefaultTransparentActionButtonSkin; spark.skins.mobile.DefaultTransparentActionButtonSkin;
-import spark.skins.mobile.DefaultTransparentNavigationButtonSkin; spark.skins.mobile.DefaultTransparentNavigationButtonSkin;
-import spark.skins.mobile.DateSpinnerSkin; spark.skins.mobile.DateSpinnerSkin;
-import spark.skins.mobile.HScrollBarSkin; spark.skins.mobile.HScrollBarSkin;
-import spark.skins.mobile.HSliderSkin; spark.skins.mobile.HSliderSkin;
-import spark.skins.mobile.ImageSkin; spark.skins.mobile.ImageSkin;
-import spark.skins.mobile.ListSkin; spark.skins.mobile.ListSkin;
-import spark.skins.mobile.RadioButtonSkin; spark.skins.mobile.RadioButtonSkin;
-import spark.skins.mobile.SpinnerListContainerSkin; SpinnerListContainerSkin;
-import spark.skins.mobile.SpinnerListScrollerSkin; SpinnerListScrollerSkin;
-import spark.skins.mobile.SpinnerListSkin; SpinnerListSkin;
-import spark.skins.mobile.SkinnableContainerSkin; SkinnableContainerSkin;
-import spark.skins.mobile.SplitViewNavigatorSkin; SplitViewNavigatorSkin;
-import spark.skins.mobile.StageTextAreaSkin; StageTextAreaSkin;
-import spark.skins.mobile.StageTextInputSkin; StageTextInputSkin;
- import spark.skins.mobile.ScrollingStageTextInputSkin; ScrollingStageTextInputSkin;
-import spark.skins.mobile.ScrollingStageTextAreaSkin; ScrollingStageTextAreaSkin
-import spark.skins.mobile.TabbedViewNavigatorApplicationSkin; TabbedViewNavigatorApplicationSkin;
-import spark.skins.mobile.TabbedViewNavigatorSkin; TabbedViewNavigatorSkin;
-import spark.skins.mobile.TabbedViewNavigatorTabBarSkin; TabbedViewNavigatorTabBarSkin;
-import spark.skins.mobile.TextAreaSkin; TextAreaSkin;
-import spark.skins.mobile.TextAreaHScrollBarSkin; TextAreaHScrollBarSkin;
-import spark.skins.mobile.TextAreaVScrollBarSkin; TextAreaVScrollBarSkin;
-import spark.skins.mobile.TextInputSkin; TextInputSkin;
-import spark.skins.mobile.ToggleSwitchSkin; ToggleSwitchSkin;
-import spark.skins.mobile.TransparentActionButtonSkin; TransparentActionButtonSkin;
-import spark.skins.mobile.TransparentNavigationButtonSkin; TransparentNavigationButtonSkin;
-import spark.skins.mobile.ViewMenuItemSkin; ViewMenuItemSkin;
-import spark.skins.mobile.ViewMenuSkin; ViewMenuSkin;
-import spark.skins.mobile.ViewNavigatorApplicationSkin; ViewNavigatorApplicationSkin;
-import spark.skins.mobile.ViewNavigatorSkin; ViewNavigatorSkin;
-import spark.skins.mobile.VScrollBarSkin; spark.skins.mobile.VScrollBarSkin;
+
+	internal class MobileThemeClasses
+	{
+
+		/**
+		 *  @private
+		 *  This class is used to link additional classes into mobile.swc
+		 *  beyond those that are found by dependecy analysis starting
+		 *  from the classes specified in manifest.xml.
+		 */
+		import spark.skins.mobile.ActionBarSkin; spark.skins.mobile.ActionBarSkin;
+		import spark.skins.mobile.BeveledActionButtonSkin; spark.skins.mobile.BeveledActionButtonSkin;
+		import spark.skins.mobile.BeveledBackButtonSkin; spark.skins.mobile.BeveledBackButtonSkin;
+		import spark.skins.mobile.ButtonBarSkin; spark.skins.mobile.ButtonBarSkin;
+		import spark.skins.mobile.ButtonSkin; spark.skins.mobile.ButtonSkin;
+		import spark.skins.mobile.CalloutSkin; spark.skins.mobile.CalloutSkin;
+		import spark.skins.mobile.supportClasses.CalloutArrow;  spark.skins.mobile.supportClasses.CalloutArrow;
+		import spark.skins.mobile.CalloutActionBarSkin; spark.skins.mobile.CalloutActionBarSkin;
+		import spark.skins.mobile.CalloutViewNavigatorSkin; spark.skins.mobile.CalloutViewNavigatorSkin;
+		import spark.skins.mobile.CheckBoxSkin; spark.skins.mobile.CheckBoxSkin;
+		import spark.skins.mobile.DefaultBeveledActionButtonSkin; spark.skins.mobile.DefaultBeveledActionButtonSkin;
+		import spark.skins.mobile.DefaultBeveledBackButtonSkin; spark.skins.mobile.DefaultBeveledBackButtonSkin;
+		import spark.skins.mobile.DefaultButtonSkin; spark.skins.mobile.DefaultButtonSkin;
+		import spark.skins.mobile.DefaultTransparentActionButtonSkin; spark.skins.mobile.DefaultTransparentActionButtonSkin;
+		import spark.skins.mobile.DefaultTransparentNavigationButtonSkin; spark.skins.mobile.DefaultTransparentNavigationButtonSkin;
+		import spark.skins.mobile.DateSpinnerSkin; spark.skins.mobile.DateSpinnerSkin;
+		import spark.skins.mobile.HScrollBarSkin; spark.skins.mobile.HScrollBarSkin;
+		import spark.skins.mobile.HSliderSkin; spark.skins.mobile.HSliderSkin;
+		import spark.skins.mobile.ImageSkin; spark.skins.mobile.ImageSkin;
+		import spark.skins.mobile.ListSkin; spark.skins.mobile.ListSkin;
+		import spark.skins.mobile.RadioButtonSkin; spark.skins.mobile.RadioButtonSkin;
+		import spark.skins.mobile.SpinnerListContainerSkin; spark.skins.mobile.SpinnerListContainerSkin;
+		import spark.skins.mobile.SpinnerListScrollerSkin; spark.skins.mobile.SpinnerListScrollerSkin;
+		import spark.skins.mobile.SpinnerListSkin; spark.skins.mobile.SpinnerListSkin;
+		import spark.skins.mobile.SkinnableContainerSkin; spark.skins.mobile.SkinnableContainerSkin;
+		import spark.skins.mobile.SplitViewNavigatorSkin; spark.skins.mobile.SplitViewNavigatorSkin;
+		import spark.skins.mobile.StageTextAreaSkin; spark.skins.mobile.StageTextAreaSkin;
+		import spark.skins.mobile.StageTextInputSkin; spark.skins.mobile.StageTextInputSkin;
+		import spark.skins.mobile.ScrollingStageTextInputSkin; spark.skins.mobile.ScrollingStageTextInputSkin;
+		import spark.skins.mobile.ScrollingStageTextAreaSkin; spark.skins.mobile.ScrollingStageTextAreaSkin
+		import spark.skins.mobile.TabbedViewNavigatorApplicationSkin; spark.skins.mobile.TabbedViewNavigatorApplicationSkin;
+		import spark.skins.mobile.TabbedViewNavigatorSkin; spark.skins.mobile.TabbedViewNavigatorSkin;
+		import spark.skins.mobile.TabbedViewNavigatorTabBarSkin; spark.skins.mobile.TabbedViewNavigatorTabBarSkin;
+		import spark.skins.mobile.TextAreaSkin; spark.skins.mobile.TextAreaSkin;
+		import spark.skins.mobile.TextAreaHScrollBarSkin; spark.skins.mobile.TextAreaHScrollBarSkin;
+		import spark.skins.mobile.TextAreaVScrollBarSkin; spark.skins.mobile.TextAreaVScrollBarSkin;
+		import spark.skins.mobile.TextInputSkin; spark.skins.mobile.TextInputSkin;
+		import spark.skins.mobile.ToggleSwitchSkin; spark.skins.mobile.ToggleSwitchSkin;
+		import spark.skins.mobile.TransparentActionButtonSkin; spark.skins.mobile.TransparentActionButtonSkin;
+		import spark.skins.mobile.TransparentNavigationButtonSkin; spark.skins.mobile.TransparentNavigationButtonSkin;
+		import spark.skins.mobile.ViewMenuItemSkin; spark.skins.mobile.ViewMenuItemSkin;
+		import spark.skins.mobile.ViewMenuSkin; spark.skins.mobile.ViewMenuSkin;
+		import spark.skins.mobile.ViewNavigatorApplicationSkin; spark.skins.mobile.ViewNavigatorApplicationSkin;
+		import spark.skins.mobile.ViewNavigatorSkin; spark.skins.mobile.ViewNavigatorSkin;
+		import spark.skins.mobile.VScrollBarSkin; spark.skins.mobile.VScrollBarSkin;
+
+		//Android skins
+		import spark.skins.android4.ActionBarSkin; spark.skins.android4.ActionBarSkin;
+		import spark.skins.android4.BusyIndicatorSkin; spark.skins.android4.BusyIndicatorSkin;
+		import spark.skins.android4.ButtonBarFirstButtonSkin; spark.skins.android4.ButtonBarFirstButtonSkin;
+		import spark.skins.android4.ButtonBarMiddleButtonSkin; spark.skins.android4.ButtonBarMiddleButtonSkin;
+		import spark.skins.android4.ButtonBarSkin; spark.skins.android4.ButtonBarSkin;
+		import spark.skins.android4.ButtonSkin; spark.skins.android4.ButtonSkin;
+		import spark.skins.android4.CalloutSkin; spark.skins.android4.CalloutSkin;
+		import spark.skins.android4.CheckBoxSkin; spark.skins.android4.CheckBoxSkin;
+		import spark.skins.android4.HScrollBarSkin; spark.skins.android4.HScrollBarSkin;
+		import spark.skins.android4.HScrollBarThumbSkin; spark.skins.android4.HScrollBarThumbSkin;
+		import spark.skins.android4.HSliderSkin; spark.skins.android4.HSliderSkin;
+		import spark.skins.android4.HSliderThumbSkin; spark.skins.android4.HSliderThumbSkin;
+		import spark.skins.android4.HSliderTrackSkin; spark.skins.android4.HSliderTrackSkin;
+		import spark.skins.android4.RadioButtonSkin; spark.skins.android4.RadioButtonSkin;
+		import spark.skins.android4.SpinnerListContainerSkin; spark.skins.android4.SpinnerListContainerSkin;
+		import spark.skins.android4.SpinnerListScrollerSkin; spark.skins.android4.SpinnerListScrollerSkin;
+		import spark.skins.android4.SpinnerListSkin; spark.skins.android4.SpinnerListSkin;
+		import spark.skins.android4.StageTextAreaSkin; spark.skins.android4.StageTextAreaSkin;
+		import spark.skins.android4.StageTextInputSkin; spark.skins.android4.StageTextInputSkin;
+		import spark.skins.android4.TabbedViewNavigatorTabBarSkin; spark.skins.android4.TabbedViewNavigatorTabBarSkin;
+		import spark.skins.android4.TextAreaSkin; spark.skins.android4.TextAreaSkin;
+		import spark.skins.android4.TextInputSkin; spark.skins.android4.TextInputSkin;
+		import spark.skins.android4.ToggleSwitchSkin; spark.skins.android4.ToggleSwitchSkin;
+		import spark.skins.android4.TransparentActionButtonSkin; spark.skins.android4.TransparentActionButtonSkin;
+		import spark.skins.android4.TransparentNavigationButtonSkin; spark.skins.android4.TransparentNavigationButtonSkin;
+		import spark.skins.android4.ViewMenuItemSkin; spark.skins.android4.ViewMenuItemSkin;
+		import spark.skins.android4.ViewMenuSkin; spark.skins.android4.ViewMenuSkin;
+		import spark.skins.android4.VScrollBarSkin; spark.skins.android4.VScrollBarSkin;
+		import spark.skins.android4.VScrollBarThumbSkin; spark.skins.android4.VScrollBarThumbSkin;
+		import spark.skins.android4.supportClasses.CalloutArrow; spark.skins.android4.supportClasses.CalloutArrow;
+
+	}
 }
-}


* 修复了 KeyboardPad 控制多个对象时状态设置不正确的 bug

* 修复了 KeyboardPad 控制多个对象时状态设置不正确的 bug

--- age/src/age/pad/KeyboardPad.as
+++ age/src/age/pad/KeyboardPad.as
@@ -65,7 +65,7 @@
 				// 更新旧状态
 				o.state.direction = direction;
 				// 新状态
-				var newState:AbstractObjectState;
+				var newState:AbstractObjectState = null;

 				// 后跳
 				if (isBackstep)


Transferred from the Adobe Open Source Subversion Repository

Revision: 19928
Author:   smgilson@adobe.com
Date:     2011-01-25T16:35:31.950757Z

Log Message:
-----------
Fix invalid HTML - adding closing </li> tags

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as

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

--- frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as
@@ -91,10 +91,10 @@
  *  "Visible" here means not hidden by the developer
  *  (column.visible=false).  The header for a column that is not
  *  marked invisible by the developer but which is scrolled off screen is
- *  considered "visible" here.
- *
In row selection mode, one child for each data row in the grid; OR
+ *  considered "visible" here.

+ *
In row selection mode, one child for each data row in the grid; OR

  *
In cell selection mode, one child for each cell in the grid,
- *  excluding cells in invisible (as just described) columns.
+ *  excluding cells in invisible (as just described) columns.

  *

  *
  *
The number of children depends on the number of rows and columns in
@@ -184,23 +184,23 @@
  *
The MSAA State of a DataGrid is a combination of:

  *

  *
STATE_SYSTEM_UNAVAILABLE (when enabled is
- *  false)
+ *  false)

  *
STATE_SYSTEM_FOCUSABLE (when enabled is
- *  true)
+ *  true)

  *
STATE_SYSTEM_FOCUSED (when enabled is
- *  true and the DataGrid has focus)
+ *  true and the DataGrid has focus)

  *
STATE_SYSTEM_MULTISELECTABLE (when
- *  allowMultipleSelection is true)
+ *  allowMultipleSelection is true)

  *

  *
  *
The State of a data row or cell is a combination of:

  *

- *
STATE_SYSTEM_FOCUSABLE
- *
STATE_SYSTEM_FOCUSED (when focused)
+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED (when focused)

  *
STATE_SYSTEM_OFFSCREEN (when the row or cell has
- *  scrolled offscreen)
- *
STATE_SYSTEM_SELECTABLE
- *
STATE_SYSTEM_SELECTED (when it is selected)
+ *  scrolled offscreen)

+ *
STATE_SYSTEM_SELECTABLE

+ *
STATE_SYSTEM_SELECTED (when it is selected)

  *

  *
  *
The State of a header cell is STATE_SYSTEM_NORMAL, since


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

--- frameworks/projects/charts/src/mx/charts/chartClasses/DateRangeUtilities.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/DateRangeUtilities.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: 12466
Author:   aharui@adobe.com
Date:     2009-12-03T20:26:07.995232Z

Log Message:
-----------
Update ASDoc to match spec

QE Notes: None
Doc Notes: None
Bugs: SDK-24526
Reviewer: Me
API Change: No
Is noteworthy for integration: No
tests: checkintests

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

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

--- frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as
+++ frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as
@@ -82,7 +82,9 @@
     private var _disclosureGroup:Group;

     /**
-     *  The ID of the component that receives focus as the item editor.
+     *  If supplied, the component that will be used as the Tree's
+     *  disclosure control.  Clicking on this control will result
+     *  in TreeEvents and the click event will not be propagated
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 3341
Author:   rfrishbe@adobe.com
Date:     2008-09-24T23:10:20.245436Z

Log Message:
-----------
Changing the definition of some methods in SkinnableComponent.  So instead of:

protected function partAdded(partName:String, instance:*):void

We now have:

protected function partAdded(partName:String, instance:Object):void

Technically this just means we can't support the value of "undefined" anymore.  This change was made to partAdded(), partRemoved(), createPartInstance(), removePartInstance(), and getDyanamicPartAt().

As I was making these changes in all the files that override these methods, I noticed Slider should have a partRemoved() method, so I added it.

I also made a minor change in Selector where there was a bug in the dataProvider collectionChange eventHandler.  Basically we were doing remove code on replace rather than remove.

QE: Yes - This will break (as in, it won't compile) some tests in SkinnableComponent.  Joann will change them soon after I checkin.
Doc: Yes
Bugs: SDK-16640, SDK-16709
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -96,7 +96,7 @@
     /**
      *  @private
      */
-    override protected function partAdded(partName:String, instance:*):void
+    override protected function partAdded(partName:String, instance:Object):void
     {
         super.partAdded(partName, instance);

@@ -104,6 +104,20 @@
         {
             thumb.addEventListener(KeyboardEvent.KEY_DOWN,
                                    thumb_keyboardHandler);
+        }
+    }
+
+    /**
+     *  @private
+     */
+    override protected function partRemoved(partName:String, instance:Object):void
+    {
+        super.partRemoved(partName, instance);
+
+        if (instance == thumb)
+        {
+            thumb.removeEventListener(KeyboardEvent.KEY_DOWN,
+                                      thumb_keyboardHandler);
         }
     }


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/core/FlexSimpleButton.as
+++ frameworks/projects/framework/src/mx/core/FlexSimpleButton.as
@@ -20,6 +20,11 @@
  *  It overrides the toString() method
  *  to return a string indicating the location of the object
  *  within the hierarchy of DisplayObjects in the application.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class FlexSimpleButton extends SimpleButton
 {
@@ -44,6 +49,11 @@
 	 *
 	 *  @see flash.display.DisplayObject#name
 	 *  @see mx.utils.NameUtil#createUniqueName()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function FlexSimpleButton()
 	{
@@ -87,6 +97,11 @@
 	 *
 	 *  @see flash.display.DisplayObject#name
 	 *  @see mx.utils.NameUtil#displayObjectToString()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function toString():String
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 6478
Author:   dloverin@adobe.com
Date:     2009-05-01T21:47:53.102002Z

Log Message:
-----------
Remove documentDescriptor code from Spark Application and Spark Window.

QE Notes: None.
Doc Notes: None.
Bugs:
Reviewer: Ryan
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -170,10 +170,6 @@
         super();

         showInAutomationHierarchy = true;
-        // Flex's auto-generated init() override has set the
-        // documentDescriptor property for the application object.
-        // We get the id and the creationPolicy, which we want to
-        // set very early, from that descriptor.
     }

     //--------------------------------------------------------------------------
@@ -680,26 +676,6 @@
         _parameters = sm.loaderInfo.parameters;

         initManagers(sm);
-        _descriptor = null;
-
-        if (documentDescriptor)
-        {
-            var properties:Object = documentDescriptor.properties;
-
-            if (properties.width != null)
-            {
-                width = properties.width;
-                delete properties.width;
-            }
-            if (properties.height != null)
-            {
-                height = properties.height;
-                delete properties.height;
-            }
-
-            // Flex auto-generated code has already set up events.
-            documentDescriptor.events = null;
-        }

         // Setup the default context menu here. This allows the application
         // developer to override it in the initialize event, if desired.


Transferred from the Adobe Open Source Subversion Repository

Revision: 4357
Author:   egreenfi@adobe.com
Date:     2008-12-18T23:52:27.017290Z

Log Message:
-----------
UIComponent now implements ILayoutElement directly

ILayoutElement was moved to mx.core.ILayoutElement, as it is now a core interface required by UIComponent.

Further phases to follow:
1) IVlisualElement to extend ILayoutElement, pending resolution of a compiler bug.
2) remove LayoutElementUIC, pending UIMovieclip implementing ILayoutElement
3) remove LayoutElementFactory, once all IVisualElements implement ILayoutElement directly.
4) remove ITransformable, moving transform properties onto IVisualElement.

Reviewer: Evtim
QA: yes.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as" copyfrom-rev="4249" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -12,13 +12,14 @@
 package mx.layout
 {
 import flash.display.DisplayObject;
+import flash.events.Event;
+import flash.events.EventDispatcher;
 import flash.geom.Point;
 import flash.geom.Rectangle;
-import flash.events.Event;
-import flash.events.EventDispatcher;

 import mx.components.baseClasses.GroupBase;
 import mx.containers.utilityClasses.Flex;
+import mx.core.ILayoutElement;
 import mx.core.ScrollUnit;
 import mx.events.PropertyChangeEvent;
 import mx.layout.LinearLayoutVector;
@@ -1258,7 +1259,7 @@

 [ExcludeClass]

-import mx.layout.ILayoutElement;
+import mx.core.ILayoutElement;
 import mx.containers.utilityClasses.FlexChildInfo;

 class LayoutElementFlexChildInfo extends FlexChildInfo


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

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


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

--- frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
+++ frameworks/projects/mx/src/mx/skins/halo/HaloBorder.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.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3305
Author:   shodgson@adobe.com
Date:     2008-09-23T00:44:38.062171Z

Log Message:
-----------
Change visibility of messageHandler(event:MessageEvent):void from private to protected.

Bug: NA
QA: No
Doc: No
Checkintests Pass: Yes

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

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

--- frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
+++ frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
@@ -1309,6 +1309,22 @@

     //--------------------------------------------------------------------------
     //
+    // Protected Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Redispatches message events from the currently connected Channel.
+     *
+     *  @param event The MessageEvent from the Channel.
+     */
+    protected function messageHandler(event:MessageEvent):void
+    {
+        dispatchEvent(event);
+    }
+
+    //--------------------------------------------------------------------------
+    //
     // Private Methods
     //
     //--------------------------------------------------------------------------
@@ -1349,17 +1365,6 @@
     private function dispatchRPCEvent(event:AbstractEvent):void
     {
         event.callTokenResponders();
-        dispatchEvent(event);
-    }
-
-    /**
-     *  @private
-     *  Redispatches message events from the currently connected Channel.
-     *
-     *  @param event The MessageEvent from the Channel.
-     */
-    private function messageHandler(event:MessageEvent):void
-    {
         dispatchEvent(event);
     }


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18749
Author:   cframpto@adobe.com
Date:     2010-11-19T21:50:39.069347Z

Log Message:
-----------
selectAll() should not include cells in columns which have the visible property set to false.  In addition, selectAll() will not longer include rows and columns which are added after selectAll but before any operation which 'canceled' the select all.  The ASDoc has been updated.  Fix selectionLength since it was busted for rows.  Fix selectedItem's ASdoc default value.

QE notes:
Doc notes:
Bugs: SDK-28613
Reviewer: Hans
Tests run: cyclone
Is noteworthy for integration: yes - selectAll() behavior changed

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridSelection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -1825,7 +1825,7 @@
      *  for programatic selection updates, for example when writing a keyboard
      *  or mouse event handler.

      *
-     *  @default undefined
+     *  @default null
      *
      *  @return Vector of dataProvider items.
      *
@@ -2017,17 +2017,8 @@
     [Bindable("valueCommit")]

     /**
-     *  If selectionMode is GridSelectionMode.SINGLE_ROW
-     *  or GridSelectionMode.MULTIPLE_ROWS, returns the
-     *  number of selected rows, and if selectionMode is
-     *  GridSelectionMode.SINGLE_CELLS
-     *  or GridSelectionMode.MULTIPLE_CELLS, returns the
-     *  number of selected cells.
-     *
-     *  @default 0
-     *
-     *  @return Number of selected rows or cells.
-     *
+     *  @copy spark.components.gridClasses.GridSelection#selectionLength
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 2.0
@@ -2245,34 +2236,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  If selectionMode is
-     *  GridSelectionMode.MULTIPLE_ROWS, selects all rows and
-     *  removes the caret or if selectionMode is
-     *  GridSelectionMode.MULTIPLE_CELLS selects all cells
-     *  and removes the caret.  For all other selection modes, this method
-     *  has no effect.
-     *
-     *
If items are added to the dataProvider or
-     *  columns are added after this method is called, the
-     *  new rows or cells in the new column will be selected.

-     *
-     *
This implicit "selectAll" mode ends when any of the following occur:
-     *

-     *
selection is cleared using clearSelection

-     *
selection reset using one of setSelectedCell,
-     *    setSelectedCells, setSelectedIndex,
-     *    selectIndices

-     *
dataProvider is refreshed and preserveSelection is false

-     *
dataProvider is reset

-     *
columns is refreshed,
-     *    preserveSelection is false and
-     *    selectionMode is
-     *    GridSelectionMode.MULTIPLE_CELLS

-     *
columns is reset and selectionMode is
-     *    GridSelectionMode.MULTIPLE_CELLS

-     *

-     *
-     *  @return True if the selection changed.
+     *  @copy spark.components.gridClasses.GridSelection#selectAll()
      *
      *  @see spark.components.Grid#clearSelection
      *  @see spark.components.Grid#selectIndices


Transferred from the Adobe Open Source Subversion Repository

Revision: 17668
Author:   hmuller@adobe.com
Date:     2010-09-10T22:52:09.156291Z

Log Message:
-----------
Grid layers are now defined as type GridLayer (a private class), instead of Group.

GridLayer type no longer extends Group, it's now an object that has Group valued root property.   This makes the type's API relatively tiny - only two methods - and makes it possible for GridLayer to encapsulate the Grid itself as a layer (the item renderer layer).

Grid item renders are now consistently typed as IGridItemRenderer, rather than IVisualElement.

DefaultGridItemRenderer is now a UIFTETextField subclass and no longer supports the "textFieldClass" style.  A new UITextField based item renderer has been added, it's UITextFieldGridItemRenderer.

Support for the module implications of embedded fonts is now GridColumn's responsiblity.  GridColumn/itemToRenderer() now wraps item renderer ClassFactory item renders with a local ClassFactory subclass that delegates the newInstance() operation to the grid's moduleFactory.

QE notes:
Doc notes:
Bugs:
Reviewer: Carol, Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="A">/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/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/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/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRendererOwner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</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@1278979 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -237,10 +237,10 @@

     // TODO(hmuller): the following public variables are temporary

-    public var backgroundGroup:Group;
-    public var selectionGroup:Group;
-    public var itemRendererGroup:Group;
-    public var overlayGroup:Group;
+    public var backgroundLayer:GridLayer;
+    public var selectionLayer:GridLayer;
+    public var rendererLayer:GridLayer
+    public var overlayLayer:GridLayer;

     //--------------------------------------------------------------------------
@@ -262,16 +262,13 @@
         super();
         layout = new GridLayout();

-        backgroundGroup = new GridLayer();
-        addElement(backgroundGroup);
-
-        selectionGroup = new GridLayer();
-        addElement(selectionGroup);
-
-        itemRendererGroup = this;
-
-        overlayGroup = new GridLayer();
-        addElement(overlayGroup);
+        backgroundLayer = new GridLayer();
+        selectionLayer = new GridLayer();
+        rendererLayer = new GridLayer(this);
+        overlayLayer = new GridLayer();
+
+        for each (var layer:GridLayer in [backgroundLayer, selectionLayer, overlayLayer])
+            addElement(layer.root);

         MouseEventUtil.addDownDragUpListeners(this,
             grid_mouseDownDragUpHandler,


Transferred from the Adobe Open Source Subversion Repository

Revision: 6474
Author:   jszeto@adobe.com
Date:     2009-05-01T20:45:45.128367Z

Log Message:
-----------
SDK-20892 - Using navigation keys don't work when the DropDownList is closed

The dataGroup skin part holds the layout value. The layout was null when the DropDownList was closed because the dataGroup only exists when the DropDownList is open. The fix is to override the layout getter and return VerticalLayout if the dataGroup doesn't exist.

SDK-20850 - DropDownList dispatches open event before dropDown is visible on screen

The skin update was changed from synchronous to asynchronous, so the open event was dispatched too early. We now wait for UPDATE_COMPLETE before sending the open or close events.

SDK-19874 - Setting selectedIndex on Spark DropDownList control doesnt auto-scroll dropdown

The skin update was changed from synchronous to asynchronous, so the dataGroup skin part didn't exist when we tried to auto-scroll. We now wait for UPDATE_COMPLETE before auto-scrolling.

SDK-20810 - DropDownList does not display color style correctly when set to white

The labelElement was getting colorized to the baseColor. The DropDownListSkin has been changed to subclass Skin instead of SparkSkin. There are no visuals in the DropDownListSkin that need any of the SparkSkin functionality.

SDK-20870 - Changing Spark DropDownList skin at runtime clears the DropDownList Button label

In partAdded, when the labelElement is added, we now update the labelElement with the selectedItem's text representation

QE Notes: Fix for SDK-20850 should resolve the image snapshot problem when writing DDL mustella tests.
Doc Notes: None
Bugs: SDK-20892, SDK-20850, SDK-19874, SDK-20810, SDK-20870
Reviewer: Ryan

Modified Paths:
--------------
<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/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -699,6 +699,8 @@
             else currentIndex = selectedIndex;

 	        //Delegate to the layout to tell us what the next item is we should select.
+	        // TODO (jszeto) At some point we should refactor this so we don't depend on layout
+	        // for keyboard handling. If layout doesn't exist, then use some other keyboard handler
 	        var proposedSelectedIndex:int = (layout) ?
 	           layout.nextItemIndex(event.keyCode, currentIndex, dataProvider.length - 1) : -1;


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

--- frameworks/projects/spark/src/spark/effects/Scale3D.as
+++ frameworks/projects/spark/src/spark/effects/Scale3D.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 spark.effects
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20208
Author:   smgilson@adobe.com
Date:     2011-02-08T21:40:02.122057Z

Log Message:
-----------
Several ASDoc bug fixes

QE notes:
Doc notes:
Bugs: FLEXDOCS-1342, FLEXDOCS-1330, FLEXDOCS-1323
Reviewer:
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/asdoc/en_US/spark/components/examples/ScrollerExample.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>

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

--- frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
+++ frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
@@ -176,7 +176,7 @@
      *
      *  @default false
      *
-     *  @langversion 4.0
+     *  @langversion 3.0
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
@@ -297,7 +297,7 @@
      *
      *  @default true
      *
-     *  @langversion 4.0
+     *  @langversion 3.0
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17491
Author:   aharui@adobe.com
Date:     2010-08-26T18:31:34.581497Z

Log Message:
-----------
Handle clipped sub-apps

QE notes: none
Doc notes: New optional parameter to SystemManager.getVisibleApplicationRect
Bugs: SDK-26478
Reviewer: Darrell
Tests run: checkintests mustella/MarshallPlan
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DateField.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/mx/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<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/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.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/mx/src/mx/controls/MenuBar.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/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.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/mx/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ColorPicker.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@1261862 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -3368,15 +3368,19 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    public function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle
+    public function getVisibleApplicationRect(bounds:Rectangle = null, skipToSandboxRoot:Boolean = false):Rectangle
     {
         if (hasEventListener("getVisibleApplicationRect"))
         {
             var request:Request = new Request("getVisibleApplicationRect", false, true);
+			request.value = { bounds: bounds, skipToSandboxRoot: skipToSandboxRoot };
             if (!dispatchEvent(request))
                 return Rectangle(request.value);
         }

+		if (skipToSandboxRoot && !topLevel)
+			return topLevelSystemManager.getVisibleApplicationRect(bounds, skipToSandboxRoot);
+
         if (!bounds)
         {
             bounds = getBounds(DisplayObject(this));
@@ -3390,6 +3394,16 @@
             bounds.height = s.height;
         }

+		if (!topLevel)
+		{
+			var obj:DisplayObjectContainer = parent.parent;
+
+			if ("getVisibleApplicationRect" in obj)
+			{
+				var visibleRect:Rectangle = obj["getVisibleApplicationRect"](true);
+				bounds = bounds.intersection(visibleRect);
+			}
+		}
         return bounds;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12610
Author:   dloverin@adobe.com
Date:     2009-12-07T18:08:38.995213Z

Log Message:
-----------
Fix RTE in EmbeddedFontRegistry.

projects/framework/src/mx/managers/SystemManager.as
•         I added back the "mx.styles::IStyleManager" interface. I investigated the file history and found the code was removed during frame1 cleanup.

projects/framework/src/mx/core/EmbeddedFontRegistry.as
•         Fix RTE by only getting a ResourceManager instance when it is needed. The RTE happened when an RSL with embedded fonts, loading in frame1 created the registry. The ResourceManager is not ready at this point.

projects/framework/src/mx/styles/IStyleManager2.as
projects/framework/src/mx/styles/StyleManagerImpl.as
•         Removed parent setter. PARB approved.
•         Removed hasEventListener() check in dispatchInheritingStylesChangeEvent(). Each call to dispatchInheritingStylesChangeEvent() was already guarded with a listener check.

QE notes: None.
Doc notes: None.
Bugs: SDK-24467
Reviewer: Alex, Corey
Tests run: checkintests, PerModuleStyles
Is noteworthy for integration: no

Modified Paths:
--------------
<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/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -2560,7 +2560,9 @@
         Singleton.registerClass("mx.core::IEmbeddedFontRegistry",
                 Class(getDefinitionByName("mx.core::EmbeddedFontRegistry")));

-
+        Singleton.registerClass("mx.styles::IStyleManager",
+            Class(getDefinitionByName("mx.styles::StyleManagerImpl")));
+
         Singleton.registerClass("mx.styles::IStyleManager2",
             Class(getDefinitionByName("mx.styles::StyleManagerImpl")));


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

QE notes: None
Doc notes: None
Bugs: SDK-23184
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.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/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.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/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.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/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.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/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.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/framework/src/mx/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</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/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerDynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.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/framework/src/mx/styles/metadata/FocusStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -243,7 +243,8 @@
 /**
  *  The color of the background of a renderer when the user rolls over it.
  *
- *  @default 0xEEFEE6
+ *  The default value for the Halo theme is 0xB2E1FF.
+ *  The default value for the Spark theme is 0xCEDBEF.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -255,7 +256,8 @@
 /**
  *  The color of the background of a renderer when the user selects it.
  *
- *  @default 0x7FCEFF
+ *  The default value for the Halo theme is 0x7FCEFF.
+ *  The default value for the Spark theme is 0xA8C6EE.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -309,7 +311,8 @@
 /**
  *  The color of the text of a renderer when the user rolls over a it.
  *
- *  @default 0x2B333C
+ *  The default value for the Halo theme is 0x2B333C.
+ *  The default value for the Spark theme is 0x000000.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -321,7 +324,8 @@
 /**
  *  The color of the text of a renderer when the user selects it.
  *
- *  @default 0x2B333C
+ *  The default value for the Halo theme is 0x2B333C.
+ *  The default value for the Spark theme is 0x000000.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


Add meaningful trace to createDummyInstance error handling

Closes #30

--- src/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as
+++ src/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as
@@ -86,7 +86,11 @@
 			}
 			catch (error : Error)
 			{
-				trace(error);
+				trace('Exception caught while trying to create dummy instance for constructor ' +
+						'injection. It\'s almost certainly ok to ignore this exception, but you ' +
+						'might want to restructure your constructor to prevent errors from ' +
+						'happening. See the SwiftSuspenders documentation for more details. ' +
+						'The caught exception was:\n' + error);
 			}
 			constructorNode.setChildren(describeType(clazz).factory.constructor[0].children());
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20661
Author:   mhorn@adobe.com
Date:     2011-03-07T21:41:06.124806Z

Log Message:
-----------
ASdoc updates

Modified Paths:
--------------
<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/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as
+++ frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as
@@ -45,6 +45,11 @@
  * functionality for string comparison.

  *
  * @see flash.globalization.Collator
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.1
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
  */
 public class CollatorBase extends GlobalizationBase
 {
@@ -103,7 +108,7 @@
      *

      *
Inheriting the style from a UIComponent by calling
      *          the UIComponent's addStyleClient method with
-	 * 			an instance of this object as the parameter.

+     *          an instance of this object as the parameter.

      *
By using the class in an MXML declaration and inheriting the
      *          locale style from the document that contains the
      *          declaration.


Transferred from the Adobe Open Source Subversion Repository

Revision: 19878
Author:   gruehle@adobe.com
Date:     2011-01-21T22:32:28.954977Z

Log Message:
-----------
Text bug fixes:
* Make sure insertion point is at the end of the text after calling appendText()
* TextAreaSkin honors lineBreak style

QE notes: none
Doc notes: none
Bugs: SDK-29206, SDK-29138
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -790,6 +790,11 @@
     override public function appendText(text:String):void
     {
         super.appendText(text);
+
+		// Make sure insertion point is at the end of the text
+		var textLength:int = this.text.length;
+		setSelection(textLength, textLength);
+
         dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
         invalidateTextSizeFlag = true;
 		invalidateTightTextHeight = true;


fixed bug handling requestHeaders in JsonCache constructor

--- WeaveData/src/weave/services/JsonCache.as
+++ WeaveData/src/weave/services/JsonCache.as
@@ -15,13 +15,12 @@

 package weave.services
 {
-	import flash.external.ExternalInterface;
 	import flash.net.URLRequest;
 	import flash.net.URLRequestHeader;

-	import weave.api.core.ILinkableObject;
 	import weave.api.getCallbackCollection;
 	import weave.api.reportError;
+	import weave.api.core.ILinkableObject;
 	import weave.compiler.Compiler;
 	import weave.compiler.StandardLib;
 	import weave.core.ClassUtils;
@@ -51,7 +50,7 @@
 			{
 				var array:Array = [];
 				for (var key:String in requestHeaders)
-					array.push(new URLRequestHeader("Accept", "application/json"));
+					array.push(new URLRequestHeader(key, requestHeaders[key]));
 				requestHeaders = array;
 			}
 			this.requestHeaders = requestHeaders as Array;


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

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

 package mx.rpc.http
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6404
Author:   rfrishbe@adobe.com
Date:     2009-04-30T00:34:09.399480Z

Log Message:
-----------
Finishing up VideoPlayer/VideoElement. Added support for streaming videos and fixed a few of the bugs.  Added the skins from XD.  These still need a little tweaking, and I'll go over them with XD. For the skins, I had to add some new sub-components, like the VideoPlayerVolumeBar and VideoPlayScrubBar.

Also added 3 new events for TrackBase (thumbDrag, thumbPress, thumbRelease).  These were in Halo's Slider, and I needed them for the VideoPlayerScrubBar.

Also fixed some other bugs, like needing to call removeDynamicPartInstance() on the Slider when the dataTip is removed.  Also fixed a bug around alternatingItemsColor for ItemRenderer.

QE Notes: -
Doc Notes: -
Bugs: SDK-19486, SDK-20105, SDK-20789
Reviewer: Glenn, Jason
tests: checkintests, some mustella tests were failing, but seemed like random 1 pixel differences in DropDownList.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBarMuteButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarMuteButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/StreamItem.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarSkin.mxml</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="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarMuteButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarThumbSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerMuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenScrubBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenVolumeBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenFullScreenButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenPlayPauseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/templates/swfobject/index.template.html</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -640,8 +640,7 @@
      */
     protected function dropDownController_openHandler(event:DropdownEvent):void
     {
-    	// set skin state
-    	skin.currentState = getCurrentSkinState();
+    	invalidateSkinState();

     	ensureItemIsVisible(selectedIndex);

@@ -659,7 +658,7 @@
      */
     protected function dropDownController_closeHandler(event:DropdownEvent):void
     {
-    	skin.currentState = getCurrentSkinState();
+    	invalidateSkinState();

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


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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -49,6 +49,8 @@
 import spark.layouts.supportClasses.LayoutBase;
 import spark.primitives.supportClasses.TextGraphicElement;
 import spark.utils.LabelUtil;
+
+use namespace mx_internal;

 use namespace mx_internal;

@@ -614,11 +616,11 @@

                     case NavigationUnit.PAGE_UP:
                        proposedNewIndex = selectedIndex == -1 ?
-                                            -1 : Math.max(selectedIndex - mx_internal::PAGE_SIZE, 0);
+                                            -1 : Math.max(selectedIndex - PAGE_SIZE, 0);
                        break;

                     case NavigationUnit.PAGE_DOWN:
-                       proposedNewIndex = selectedIndex + mx_internal::PAGE_SIZE;
+                       proposedNewIndex = selectedIndex + PAGE_SIZE;
                        break;

                     case NavigationUnit.HOME:


Get smarter about when to try publishing.

--- exporter/src/main/as/flump/export/ProjectController.as
+++ exporter/src/main/as/flump/export/ProjectController.as
@@ -172,11 +172,13 @@

     protected function exportAll (modifiedOnly :Boolean) :void {
         // if we have one or more combined export format, publish them
-        if (hasCombinedConfig()) exportCombined();
+        if (hasCombinedExportConfig()) exportCombined();
         // now publish any appropriate single formats
-        for each (var status :DocStatus in _flashDocsGrid.dataProvider.toArray()) {
-            if (status.isValid && (!modifiedOnly || status.isModified)) {
-                exportFlashDocument(status);
+        if (hasSingleExportConfig()) {
+            for each (var status :DocStatus in _flashDocsGrid.dataProvider.toArray()) {
+                if (status.isValid && (!modifiedOnly || status.isModified)) {
+                    exportFlashDocument(status);
+                }
             }
         }
     }
@@ -305,14 +307,20 @@
         updateWindowTitle();
     }

-    protected function hasCombinedConfig () :Boolean {
+    protected function hasCombinedExportConfig () :Boolean {
         if (_conf == null) return false;
         for each (var config :ExportConf in _conf.exports) if (config.combine) return true;
         return false;
     }

+    protected function hasSingleExportConfig () :Boolean {
+        if (_conf == null) return false;
+        for each (var config :ExportConf in _conf.exports) if (!config.combine) return true;
+        return false;
+    }
+
     protected function onSelectedItemChanged (..._) :void {
-        _win.export.enabled = !hasCombinedConfig() && _exportChooser.dir != null &&
+        _win.export.enabled = !hasCombinedExportConfig() && _exportChooser.dir != null &&
             _flashDocsGrid.selectionLength > 0 &&
             _flashDocsGrid.selectedItems.some(function (status :DocStatus, ..._) :Boolean {
                 return status.isValid;


As we return data from the input buffer to the user, and write data from the output buffer onto the socket, we advance the file

--- tamarin-central/thane/Socket.as
+++ tamarin-central/thane/Socket.as
@@ -62,7 +62,7 @@
     {
         switch(_state) {
         case ST_VIRGIN:
-            return;
+            break;

         case ST_CONNECTED:
             nb_read(_iBuf);
@@ -71,6 +71,10 @@
                 var n :int = nb_write(_oBuf);
                 _oBuf.position = pos + n;
             }
+
+            _iBuf = massageBuffer(_iBuf);
+            _oBuf = massageBuffer(_oBuf);
+
             break;

         case ST_WAITING:
@@ -78,6 +82,7 @@
                 _state = ST_CONNECTED;
                 dispatchEvent(new Event(Event.CONNECT));
             }
+            break;
         }
     }

@@ -233,6 +238,18 @@
         _oBuf.writeUTFBytes(value);
     }

+    protected function massageBuffer (buffer :ByteArray) :ByteArray
+    {
+        // we only switch buffers if we're wasting 25% and at least 64k
+        if (buffer.position < 0x10000 || 4*buffer.position < buffer.length) {
+            return buffer;
+        }
+        var newBuffer :ByteArray = new ByteArray();
+
+        buffer.readBytes(newBuffer, buffer.position);
+        return newBuffer;
+    }
+
     private var _state :int;
     private var _port :int;