Transferred from the Adobe Open Source Subversion Repository

Revision: 19337
Author:   mhorn@adobe.com
Date:     2010-12-13T22:01:27.841985Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as
@@ -45,6 +45,9 @@
     //  Variables
     //
     //--------------------------------------------------------------------------
+    /**
+     *  @copy spark.skins.spark.ApplicationSkin#hostComponent
+     */
     public var hostComponent:TabbedViewNavigator;

     // Groups and UI Controls


Transferred from the Adobe Open Source Subversion Repository

Revision: 21994
Author:   cframpto@adobe.com
Date:     2011-08-15T20:30:46.356152Z

Log Message:
-----------
Don't access focusManager before checking that it exists.

QE notes:
Doc notes:
Bugs: SDK-30934
Reviewer:  Adam
Tests run: cyclone
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -2512,7 +2512,7 @@

         // If we already have focus, make sure to open soft keyboard
         // on mouse up
-        if (focusManager.getFocus() == this)
+        if (focusManager && focusManager.getFocus() == this)
             delaySetFocus = true;

         // Wait for a mouseUp somewhere


Transferred from the Adobe Open Source Subversion Repository

Revision: 18373
Author:   aharui@adobe.com
Date:     2010-10-29T19:02:14.988996Z

Log Message:
-----------
Hopefully last of prompt text bugs.  Add skin states for prompt states to SkinnableTextBase (and move old skin states from TI and TA to STB).

Handle disabledWithPrompt in ComboBoxSkin by disabling the internal TextInput

QE notes: update custom TI skins in mustella
Doc notes: new skin states
Bugs: SDK-28983, SDK-28328
Reviewer: Corey
Tests run: checkintests mustella gumbo/components/ComboBox, NumericStepper
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -173,6 +173,50 @@
  *  @productversion Flex 4
  */
 [Event(name="textInput", type="flash.events.TextEvent")]
+
+//--------------------------------------
+//  Skin states
+//--------------------------------------
+
+/**
+ *  Normal State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("normal")]
+
+/**
+ *  Disabled State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("disabled")]
+
+/**
+ *  Normal State with Prompt
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("normalWithPrompt")]
+
+/**
+ *  Disabled State with Prompt
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("disabledWithPrompt")]

 /**
  *  The base class for skinnable components, such as the Spark TextInput


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20097
Author:   jasonsj@adobe.com
Date:     2011-02-03T17:48:25.773740Z

Log Message:
-----------
Remove use of minWidth and minHeight where possible from mobile skins to fix constraint use cases. Replace usage of minWidth/minHeight and layoutMeasuredWidth/layoutMeasuredHeight with MobileSkin property measuredDefaultWidth/measuredDefaultHeight.

Use minWidth/minHeight for skins that do not scale down: Beveled buttons, CheckBox, RadioButton, and scroll bars.

Doc notes:
Bugs:
SDK-28715 Cannot size and position button correctly in i4 build.
Reviewer: egeorgie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorTabBarTabSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ImageSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as
@@ -18,8 +18,8 @@

 import spark.components.Button;
 import spark.components.HSlider;
- import spark.skins.mobile.supportClasses.MobileSkin;
 import spark.skins.mobile.supportClasses.HSliderDataTip;
+import spark.skins.mobile.supportClasses.MobileSkin;

 /**
  *  ActionScript-based skin for HSlider controls in mobile applications.
@@ -198,7 +198,6 @@

         measuredMinHeight = Math.max(track.getPreferredBoundsHeight(), thumb.getPreferredBoundsHeight());
         measuredMinWidth = thumb.getPreferredBoundsWidth();
-        minHeight = Math.max(track.getPreferredBoundsHeight(), thumb.getPreferredBoundsHeight());
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 22077
Author:   smgilson@adobe.com
Date:     2011-08-18T19:26:48.573123Z

Log Message:
-----------
ASdoc edits for CalloutButton

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
@@ -92,7 +92,7 @@
     {
         if (_openButton === value)
             return;
-
+
         removeOpenTriggers();

         _openButton = value;
@@ -109,47 +109,47 @@
         return _openButton;
     }

-	/**
-	 *  @private
-	 */
-	private var _systemManager:ISystemManager;
-
-	/**
-	 *  A reference to the SystemManager used
-	 *  for mouse tracking.  if none is specified, the controller
-	 *  will use the systemManager associated with the openButton.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
+    /**
+     *  @private
+     */
+    private var _systemManager:ISystemManager;
+
+    /**
+     *  A reference to the SystemManager used
+     *  for mouse tracking.  if none is specified, the controller
+     *  will use the systemManager associated with the openButton.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function set systemManager(value:ISystemManager):void
     {
-        _systemManager = value;
-    }
-	/**
-	 *  @private
-	 */
+        _systemManager = value;
+    }
+    /**
+     *  @private
+     */
     public function get systemManager():ISystemManager
     {
         return (_systemManager != null)?  _systemManager:
                 (openButton != null)?  openButton.systemManager:
                                         null;
     }
-
-	/**
-	 *  A list of display objects to consider part of the hit area
-	 *  of the drop down.  Mouse clicks within any component listed
-	 *  as an inclusion will not automatically close the drop down.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public var hitAreaAdditions:Vector.<DisplayObject>;
-
+
+    /**
+     *  A list of display objects to consider part of the hit area
+     *  of the drop down.  Mouse clicks within any component listed
+     *  as an inclusion will not automatically close the drop down.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var hitAreaAdditions:Vector.<DisplayObject>;
+
     //----------------------------------
     //  dropDown
     //----------------------------------
@@ -209,7 +209,11 @@
     private var _closeOnResize:Boolean = true;

     /**
-     *  When true, resizing the system manager will close the the drop down.
+     *  When true, resizing the system manager
+     *  closes the drop down.
+     *  For mobile applications, you can set this property
+     *  to false so that the drop down stays open when the
+     *  page orientation changes.
      *
      *  @default true
      *
@@ -347,8 +351,8 @@

             addCloseOnResizeTrigger();

-			if (openButton && openButton.systemManager)
-            	openButton.systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_WHEEL, systemManager_mouseWheelHandler);
+            if (openButton && openButton.systemManager)
+                openButton.systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_WHEEL, systemManager_mouseWheelHandler);
         }
     }

@@ -385,7 +389,7 @@
             removeCloseOnResizeTrigger();

             if (openButton && openButton.systemManager)
-            	openButton.systemManager.getSandboxRoot().removeEventListener(MouseEvent.MOUSE_WHEEL, systemManager_mouseWheelHandler);
+                openButton.systemManager.getSandboxRoot().removeEventListener(MouseEvent.MOUSE_WHEEL, systemManager_mouseWheelHandler);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7537
Author:   rfrishbe@adobe.com
Date:     2009-06-03T20:25:36.987268Z

Log Message:
-----------
VideoPlayer fixes, including focus fixes and some other fixes.

For Focus:

SkinnableComponent:
- Now check the drawFocusAnyway flag before checking for focusManager.getFocus() != this because in the case of the video player volume bar, we don’t actually have a focusManager

TrackBase:
- Override of focusIn/OutHandler wasn’t calling super.focusIn/OutHandler().

Slider:
- Now instead of overriding setFocus() and calling stage.focus = thumb, we just override drawFocus() and tell the thumb to drawFocus().  This means we keep the focus ourselves and handle the keyDown events on ourself rather than on the thumb.

FocusSkin:
- Change the exit-early logic so that we don’t exit if we have no focusManager...we only exit if we don’t have a focusObject (and we sometimes rely on the focusManager for this focusObject).  FocusObject actually gets slammed in via SkinnableComponent, so this should be fine.

VideoPlayerVolumeBar:
- On focus in, open the drop down, validate it, and draw the focus on thumb.

VideoPlayer:
- set tabChildren = true so we can tab into the components

Skins (VideoPlayerSkin.mxml only):
- Change the layer of focused components with: focusIn="event.target.layer=1" focusOut="event.target.layer=0"

Other Changes:

TrackBase:
- Add official CHANGING event.  Work still needs to be done on dispatching it in all cases correctly.
- Remove the check for (!enabled) in the thumb_mouseDownHandler...this shouldn’t be needed thanks to Jason’s change.  We do this in Scroller as well, and I’ve got a local change for that which will come later as part of the Change/Changing ARB issue fix.

PopUpAnchor:
- Needs to take into account the fullScreenRect to get the popup to display correctly in those cases.

FlexEvent:
- Adding CHANGING event.

VideoPlayerScrubBar:
- Changed bufferedValue to an Array to handle a Range.

VideoPlayerVolumeBar/VideoPlayerVolumeBarEvent:
- “rollOverOpenDelay“: Change the “behavior property” to a style per the ARB decision.  I intentionally left it as a private static const before to make this change easier.
- Advertise a new event, mutedChange to go along with a new property muted, rather than rely on mutedButtonClick.

VideoPlayer:
- Add symbolColor metadata (this was already working...just no metadata for it).  Do I add color here?
- Add fullScreenHideControlDelay as part of ARB behavioral property decision
- Changes around volume bar and muted property and muteButtonChanged event.
- Fiex the full screen case...need to make sure to use globalToLocal() and localToGlobal() when positioning the object since fulLScreenRect is in global coordinates.  Also need to call LayoutManager.getInstance().validateNow() rather than just validateNow() because I need everythignt o be validated since not including the compoennt in a layout may change the coordinates of the parent component.
- In scrubBar_changeHandler, if scrubbing to the end of a video, don’t do it when streaming and you’ve called play() because the source is a String...there’s a bug in the FLVPlayback that doesn’t look like it’ll get fixed :-)
- Fixed a few other bugs..nothing too big

Defaults.css:
Set the behavioral properties in here

Skins:
- Set the height explicitly on the ThumbSkin..this is the exact pattern we use for Hslider/Vslider now
- Fix up the baseColor so it gets cleared in the full screen case
- Fix up the text styles so we are explicitly setting them in the fullScreen case.  They can now be styled via CSS in the non-fullScreen case and the color style should work.

QE Notes: -
Doc Notes: -
Bugs: SDK-21505, SDK-21352, SDK-21504, SDK-21503, SDK-21486, SDK-21485
Reviewer: Alex, Glenn
tests: checkintests, mustella tests for Scroller, ScrollBar, Slider

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.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/VideoPlayerVolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/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/skins/default/VideoPlayerSkin.mxml</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/skins/default/VideoPlayerFullScreenScrubBarSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/VideoPlayerVolumeBarEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -449,7 +449,7 @@
         {
             // For some composite components, the focused object may not
             // be "this". If so, we don't want to draw the focus.
-            if (focusManager.getFocus() != this && !mx_internal::drawFocusAnyway)
+            if (!mx_internal::drawFocusAnyway && focusManager.getFocus() != this)
                 return;

             if (!mx_internal::focusObj)


Fixed Physics example.

Fixed Physics example.

--- Bin/Data/Scripts/Physics.as
+++ Bin/Data/Scripts/Physics.as
@@ -110,8 +110,8 @@
         RenderPath@ newRenderPath = renderer.viewports[0].renderPath.Clone();
         newRenderPath.Append(cache.GetResource("XMLFile", "PostProcess/Bloom.xml"));
         newRenderPath.Append(cache.GetResource("XMLFile", "PostProcess/EdgeFilter.xml"));
-        newRenderPath.SetActive("Bloom", false);
-        newRenderPath.SetActive("EdgeFilter", false);
+        newRenderPath.SetEnabled("Bloom", false);
+        newRenderPath.SetEnabled("EdgeFilter", false);
         renderer.viewports[0].renderPath = newRenderPath;

         audio.listener = cameraNode.CreateComponent("SoundListener");
@@ -303,10 +303,10 @@
         }

         if (key == 'B')
-            renderer.viewports[0].renderPath.ToggleActive("Bloom");
+            renderer.viewports[0].renderPath.ToggleEnabled("Bloom");

         if (key == 'F')
-            renderer.viewports[0].renderPath.ToggleActive("EdgeFilter");
+            renderer.viewports[0].renderPath.ToggleEnabled("EdgeFilter");

         if (key == 'O')
             camera.orthographic = !camera.orthographic;


Image, Flash: Fix invalid conditional.

Image, Flash: Fix invalid conditional.

--- src/flash/src/com/ImageEditor.as
+++ src/flash/src/com/ImageEditor.as
@@ -295,8 +295,8 @@
 				job.addEventListener(ShaderEvent.COMPLETE, function onJobComplete() : void {
 					_bd.dispose();
 					_bd = tmpBd;
-
-					if (tmpBd.width <= dstWidth) {
+
+					if (scale < 1 && tmpBd.width <= dstWidth || tmpBd.width >= dstWidth) {
 						onOperationComplete();
 						onDrawComplete();
 					} else {


fixed bug where icon media was not saving properly

--- flexEditor/src/org/arisgames/editor/util/AppUtils.as
+++ flexEditor/src/org/arisgames/editor/util/AppUtils.as
@@ -315,6 +315,7 @@
             npc.description = data.description;
             npc.greeting = data.text;
             npc.mediaId = data.media_id;
+			npc.iconMediaId = data.icon_media_id;

             return npc;
         }
@@ -336,6 +337,7 @@
 			node.title = data.title;
 			node.text = data.text;
 			node.mediaId = data.media_id;
+			node.iconMediaId = data.icon_media_id;
 			node.opt1Text = data.opt1_text;
 			node.opt1NodeId = data.opt1_node_id;
 			node.opt2Text = data.opt2_text;


Transferred from the Adobe Open Source Subversion Repository

Revision: 20920
Author:   build@adobe.com
Date:     2011-03-18T19:54:14.958635Z

Log Message:
-----------
Version update to 4.5.1

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

--- frameworks/projects/framework/src/mx/core/Version.as
+++ frameworks/projects/framework/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.0";
+mx_internal static const VERSION:String = "4.5.1.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 13038
Author:   hneelu@adobe.com
Date:     2009-12-17T09:45:13.816497Z

Log Message:
-----------
Reverting P4 changes made for automation project.

Modified Paths:
--------------
228 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/tabularData/ChartBaseTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/ChartBaseTabularData.as
@@ -103,7 +103,8 @@
 			maxItems = 0;
 			// code modified to avoid the usage of numAutomationChildren and
 			// getAutomationChildAt in a loop
-			var childList:Array  = delegate.getAutomationChildren();
+			//var childList:Array  = delegate.getAutomationChildren();
+			var childList:Array  = Automation.automationManager2.getAutomationChildrenArray(delegate);
 			var n:int = childList?childList.length:0;
 			//for(var i:int = 0; i < delegate.numAutomationChildren; ++i)
 			for (var i:int = 0; i < n; ++i)
@@ -158,7 +159,8 @@

 			// code modified to avoid the usage of numAutomationChildren and
 			// getAutomationChildAt in a loop
-			var childList:Array  = delegate.getAutomationChildren();
+			//var childList:Array  = delegate.getAutomationChildren();
+			var childList:Array  = Automation.automationManager2.getAutomationChildrenArray(delegate);
 			if (childList)
 			{
 				end  = end > childList.length ? childList.length : end;


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

--- frameworks/projects/charts/src/mx/charts/series/renderData/BubbleSeriesRenderData.as
+++ frameworks/projects/charts/src/mx/charts/series/renderData/BubbleSeriesRenderData.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


removed Text#format getter

removed Text#format getter

--- test/ras3r/controls/TextTest.as
+++ test/ras3r/controls/TextTest.as
@@ -52,7 +52,7 @@

 					for (var key:String in format)
 					{
-						so(text.format[key]).should.equal(format[key]);
+						so(text.defaultTextFormat[key]).should.equal(format[key]);
 					}
 				});
 			});


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentActionButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentActionButtonSkin.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.skins.mobile
 {


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.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.skins.mobile.supportClasses
 {


prevent OVVImpression and Unmeasurable impression to fire when pause

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -203,6 +203,9 @@
          */
         private var _ad:*;

+        private var _isPaused: Boolean = false;
+
+
         ////////////////////////////////////////////////////////////
         //   CONSTRUCTOR
         ////////////////////////////////////////////////////////////
@@ -427,14 +430,16 @@
             var results: Object = checkViewability();
 			raiseLog(results);

-            _intervalsUnMeasurable = (results.viewabilityState == OVVCheck.UNMEASURABLE) ? _intervalsUnMeasurable + 1 : 0;
-            _intervalsInView = (results.viewabilityState == OVVCheck.VIEWABLE && results.focus == true) ? _intervalsInView + 1 : 0;
-
-            if (_impressionEventRaised == false && _intervalsInView >= VIEWABLE_IMPRESSION_THRESHOLD) {
-                raiseImpression(results);
-            }
-            else if (_impressionUnmeasurableEventRaised == false && _intervalsUnMeasurable >= UNMEASURABLE_IMPRESSION_THRESHOLD) {
-                raiseImpressionUnmeasurable(results);
+            if (_isPaused == false) {
+                _intervalsUnMeasurable = (results.viewabilityState == OVVCheck.UNMEASURABLE) ? _intervalsUnMeasurable + 1 : 0;
+                _intervalsInView = (results.viewabilityState == OVVCheck.VIEWABLE && results.focus == true) ? _intervalsInView + 1 : 0;
+
+                if (_impressionEventRaised == false && _intervalsInView >= VIEWABLE_IMPRESSION_THRESHOLD) {
+                    raiseImpression(results);
+                }
+                else if (_impressionUnmeasurableEventRaised == false && _intervalsUnMeasurable >= UNMEASURABLE_IMPRESSION_THRESHOLD) {
+                    raiseImpressionUnmeasurable(results);
+                }
             }
         }

@@ -551,11 +556,17 @@
 					_intervalTimer.stop();
 					_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
 					_intervalTimer = null;
-                    			break;
-				default:
+					break;
+				case VPAIDEvent.AdPaused:
+                    _isPaused = true;
+                    break;
+                case VPAIDEvent.AdPlaying:
+                    _isPaused = false;
+                    break;
+                default:
 					// do nothing
-			}
-
+					break;
+			}
 			publishToJavascript(event.type, getEventData(event), ovvData);
 		}


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

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

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10071
Author:   gruehle@adobe.com
Date:     2009-09-08T22:30:13.088072Z

Log Message:
-----------
More styling bug fixes.

QE notes: None
Doc notes:  None
Bugs: SDK-23079, SDK-23080, SDK-23090
Reviewer: Jason
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</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/graphics/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>

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

--- frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.as
+++ frameworks/projects/framework/src/mx/graphics/RectangularDropShadow.as
@@ -563,9 +563,9 @@
 		// Copy the corners of the shadow bitmap onto the graphics object
 		if (leftShadow || topShadow)
 		{
-			var tlWidth:Number = Math.min(tlRadius + widthThickness,
+			var tlWidth:Number = Math.min(tlRadius + leftThickness + distance,
 										  maxCornerWidth);
-			var tlHeight:Number = Math.min(tlRadius + heightThickness,
+			var tlHeight:Number = Math.min(tlRadius + topThickness + distance,
 										   maxCornerHeight);

 			matrix.tx = x - leftThickness;
@@ -578,9 +578,9 @@

 		if (rightShadow || topShadow)
 		{
-			var trWidth:Number = Math.min(trRadius + widthThickness,
+			var trWidth:Number = Math.min(trRadius + rightThickness + distance,
 										  maxCornerWidth);
-			var trHeight:Number = Math.min(trRadius + heightThickness,
+			var trHeight:Number = Math.min(trRadius + topThickness + distance,
 										   maxCornerHeight);

 			matrix.tx = x + width + rightThickness - shadow.width;
@@ -595,9 +595,9 @@

 		if (leftShadow || bottomShadow)
 		{
-			var blWidth:Number = Math.min(blRadius + widthThickness,
+			var blWidth:Number = Math.min(blRadius + leftThickness + distance,
 										  maxCornerWidth);
-			var blHeight:Number = Math.min(blRadius + heightThickness,
+			var blHeight:Number = Math.min(blRadius + bottomThickness + distance,
 										   maxCornerHeight);

 			matrix.tx = x - leftThickness;
@@ -612,9 +612,9 @@

 		if (rightShadow || bottomShadow)
 		{
-			var brWidth:Number = Math.min(brRadius + widthThickness,
+			var brWidth:Number = Math.min(brRadius + rightThickness + distance,
 										  maxCornerWidth);
-			var brHeight:Number = Math.min(brRadius + heightThickness,
+			var brHeight:Number = Math.min(brRadius + bottomThickness + distance,
 										   maxCornerHeight);

 			matrix.tx = x + width + rightThickness - shadow.width;


Yep, this fixed the problem.
Rejoice and comment it.

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

--- src/as/com/threerings/flex/ChatInput.as
+++ src/as/com/threerings/flex/ChatInput.as
@@ -61,6 +61,9 @@
     {
         super.createChildren();

+        // For some reason, in embeds, during certain circumstances, it's really hard to focus
+        // chat. This makes that work better. The problem was *not* testable locally, only
+        // on embeds in production. (I don't know why.)
         TextFieldUtil.setFocusable(TextField(textField));
     }


compact

compact

--- testSrc/com/kemsky/TestStream.as
+++ testSrc/com/kemsky/TestStream.as
@@ -328,6 +328,8 @@
             });

             assertEquals(count, 1);
+
+            assertEquals(s.count(eq(_, 2)), 1);
         }

         [Test]


Transferred from the Adobe Open Source Subversion Repository

Revision: 10766
Author:   gruehle@adobe.com
Date:     2009-09-30T22:55:55.205927Z

Log Message:
-----------
Re-commit compiler errors for other theme's styles feature. If Style metadata has a "themes" attribute, the style is only valid if that theme is applied.

The Spark theme is applied by default. The halo theme can be specified as a compiler argument or by selecting the "MX Only" component set in Builder.

All other themes need to be applied using theme+= instead of theme=. If you use theme= you will get warnings about styles used in CSS selectors, and errors if you use any theme-specific style as an attribute on an MXML tag.

By default, styles that aren't valid for the current theme are errors. These can be changed to warnings with the report-invalid-styles-as-warnings compiler option.

QE notes: Expect test breakage
Doc notes: The new policy for themes needs to be documented.
Bugs: none yet, but I'm sure there will be some...
Reviewer: Ryan
Tests run: checkintests, cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java</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="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ApplicationBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/themes/Spark/spark.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.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/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</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/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.css</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/DeclarationHandler.java</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/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ToolTipBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Type.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</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/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/SparkSkinsClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/AttributeHandler.java</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/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FXGCompiler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/controls/TextArea.as
+++ frameworks/projects/mx/src/mx/controls/TextArea.as
@@ -134,7 +134,6 @@
 //  Styles
 //--------------------------------------

-include "../styles/metadata/FocusStyles.as"
 include "../styles/metadata/PaddingStyles.as"

 /**


fixed bug in validateNow constructor option

--- WeaveCore/src/weave/core/LinkablePromise.as
+++ WeaveCore/src/weave/core/LinkablePromise.as
@@ -80,9 +80,12 @@
 			_description = description;
 			_callbackCollection = WeaveAPI.SessionManager.getCallbackCollection(this);
 			_callbackCollection.addImmediateCallback(null, _immediateCallback);
-			_callbackCollection.addGroupedCallback(null, _groupedCallback);
+			_callbackCollection.addGroupedCallback(null, _groupedCallback, validateNow);
 			if (validateNow)
-				validate();
+			{
+				_lazy = false;
+				_immediateCallback();
+			}
 		}

 		private var _task:Function;


Fixed bug where table and hierarchy lists were requested twice after invalidateAll().

--- WeaveData/src/weave/services/EntityCache.as
+++ WeaveData/src/weave/services/EntityCache.as
@@ -334,8 +334,6 @@
 		 */
 		public function invalidateAll(purge:Boolean = false):void
         {
-			callbacks.delayCallbacks();
-
 			if (purge)
 			{
 				idsToFetch = {};
@@ -347,14 +345,11 @@
 			}
 			else
 			{
-				invalidate(ROOT_ID);
 				// we don't want to delete the cache because we can still use the cached values for display in the meantime.
 				for (var id:* in entityCache)
 					idsDirty[id] = true;
 			}
 			callbacks.triggerCallbacks();
-
-			callbacks.resumeCallbacks();
         }

 		public function update_metadata(id:int, diff:EntityMetadata):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 11664
Author:   smgilson@adobe.com
Date:     2009-11-11T19:42:00.734447Z

Log Message:
-----------
Update ASDoc comments on new MXItemRenderer classes, and fix a broken HTML tag in Range.as

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

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

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

--- frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as
+++ frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as
@@ -22,8 +22,16 @@
 import spark.components.supportClasses.ItemRenderer;

 /**
- *  The MXItemRenderer class is the base class for Spark item renderers in
- *  Halo (mx) classes
+ *  The MXItemRenderer class is the base class for Spark item renderers
+ *  and item editors used in MX list-based controls.
+ *  This class lets you use the Spark item renderer architecture with the
+ *  MX DataGrid and Tree controls.
+ *
+ *
Note: Many MX controls support item renderers or item editors.
+ *  These controls include the MX List, Menu, MenuBar, and TileLIst controls.
+ *  However, only the MX DataGrid and Tree classes support the MXItemRenderer class.
+ *  Therefore, continue to use MX item renderers and item editors with
+ *  MX controls other than DataGrid and Tree.

  *
  *  @mxml
  *
@@ -106,7 +114,7 @@
     //----------------------------------

     /**
-     *  ID of the component that will receive focus as the editor
+     *  The ID of the component that receives focus as the item editor.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -121,12 +129,13 @@

     /**
      *  The text property of
-     *  the component with the editorID.
+     *  the component specified by editorID.
      *  This is a convenience property to
-     *  allow the Halo List class itemEditors
-     *  to pull the value from most editors
+     *  let the item editor of the MX control,
+     *  specified by the itemEditor property,
+     *  pull the value from most item editors
      *  without having to propagate a property
-     *  to the MXItemRenderer
+     *  to the MXItemRenderer.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Use remote events for spawning particle effects in networked NinjaSnowWar to avoid sending all ParticleEmitter attributes.

--- Bin/Data/Scripts/NinjaSnowWar.as
+++ Bin/Data/Scripts/NinjaSnowWar.as
@@ -163,6 +163,7 @@
     network.RegisterRemoteEvent("PlayerSpawned");
     network.RegisterRemoteEvent("UpdateScore");
     network.RegisterRemoteEvent("UpdateHiscores");
+    network.RegisterRemoteEvent("ParticleEffect");

     if (runServer)
     {
@@ -186,6 +187,7 @@
         SubscribeToEvent("UpdateScore", "HandleUpdateScore");
         SubscribeToEvent("UpdateHiscores", "HandleUpdateHiscores");
         SubscribeToEvent("NetworkUpdateSent", "HandleNetworkUpdateSent");
+        SubscribeToEvent("ParticleEffect", "HandleParticleEffect");
     }
 }

@@ -640,6 +642,14 @@
         network.serverConnection.controls.Set(CTRL_ALL, false);
 }

+void HandleParticleEffect(StringHash eventType, VariantMap& eventData)
+{
+    Vector3 position = eventData["Position"].GetVector3();
+    String effectName = eventData["EffectName"].GetString();
+    float duration = eventData["Duration"].GetFloat();
+    SpawnParticleEffect(position, effectName, duration, LOCAL);
+}
+
 int FindPlayerIndex(uint nodeID)
 {
     for (uint i = 0; i < players.length; ++i)
@@ -747,9 +757,16 @@

 Node@ SpawnParticleEffect(const Vector3&in position, const String&in effectName, float duration, CreateMode mode = REPLICATED)
 {
-    // \todo Should be refactored to use an RPC mechanism in networked mode, as a ParticleEmitter has a lot of attributes
-    // which cost network traffic
-    Node@ newNode = scene.CreateChild("", mode);
+    if (runServer && mode == REPLICATED)
+    {
+        VariantMap eventData;
+        eventData["Position"] = position;
+        eventData["EffectName"] = effectName;
+        eventData["Duration"] = duration;
+        network.BroadcastRemoteEvent(gameScene, "ParticleEffect", false, eventData);
+    }
+
+    Node@ newNode = scene.CreateChild("Effect", LOCAL);
     newNode.position = position;

     // Create the particle emitter


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

--- frameworks/projects/automation/src/mx/automation/codec/ScrollDirectionPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/ScrollDirectionPropertyCodec.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


adds new functions to sample app

adds new functions to sample app

--- sample/src/AirFacebookSample.as
+++ sample/src/AirFacebookSample.as
@@ -25,6 +25,11 @@

 			createUI(
 				{label: "Connect", 					handler: onBtnConnect},
+
+				{label: "Disconnect",				handler: onBtnDisconnect},
+
+				// you need to be connected to call this one
+				{label: "Share opengraph object (old version)", handler: onBtnShareOGAction},

 				// You don't need to be connected to use those functionalities
 				// it will call the native app or mFacebook in a webview
@@ -52,6 +57,11 @@

 		}

+		private function onBtnDisconnect(e:Event):void
+		{
+			Facebook.getInstance().closeSessionAndClearTokenInformation();
+		}
+
 		// ------------------
 		// showing dialogs
 		private function onBtnShareStatus(e:Event):void
@@ -94,6 +104,15 @@

 			trace(JSON.stringify(data));

+		}
+
+		private function onBtnShareOGAction(e:Event):void
+		{
+			var ogObject:Object = {
+				object:"http://freshplanet.com"
+			};
+
+			Facebook.getInstance().requestWithGraphPath("me/books.reads", ogObject, 'POST');
 		}


Issue #66: Store token from ConfigLayer URL internally.

--- src/com/esri/builder/model/ConfigLayer.as
+++ src/com/esri/builder/model/ConfigLayer.as
@@ -38,6 +38,7 @@
 import com.esri.ags.symbols.SimpleMarkerSymbol;
 import com.esri.ags.symbols.Symbol;
 import com.esri.ags.virtualearth.VETiledLayer;
+import com.esri.builder.supportClasses.URLUtil;

 import flash.utils.ByteArray;

@@ -165,7 +166,22 @@

     public var token:String;

-    public var url:String;
+    public var _url:String;
+
+    public function get url():String
+    {
+        return _url;
+    }
+
+    public function set url(value:String):void
+    {
+        var urlToken:String = URLUtil.extractToken(value);
+        if (urlToken)
+        {
+            token = urlToken;
+        }
+        _url = URLUtil.removeToken(value);
+    }

     public var useProxy:Boolean;


added code in comment for importing localizations from archive

--- WeaveUISpark/src/weave/Weave.as
+++ WeaveUISpark/src/weave/Weave.as
@@ -410,6 +410,9 @@
 				{
 					history.setSessionState(_history);
 				}
+
+//				if (archive.objects['lang'])
+//					WeaveAPI.LocaleManager.importLocalizations(archive.objects['lang']);
 			}

 			// hack for forcing VisApplication menu to refresh


handle manually added views

handle manually added views

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIButtonBase.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/UIButtonBase.as
@@ -672,6 +672,8 @@
 			strand.push(bead);
 			if (bead is IBeadModel)
 				_model = bead as IBeadModel;
+            else if (bead is IBeadView)
+                _view = bead as IBeadView;
 			bead.strand = this;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.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/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -1759,7 +1759,7 @@
      *  Opens the window where AIR decides, sized to the parent application.
      *  It will close when the parent WindowedApplication closes.
      */
-    protected function menuItemSelectHandler(event:Event):void
+    override protected function menuItemSelectHandler(event:Event):void
     {
         const vsLoc:File = File.applicationDirectory.resolvePath(viewSourceURL);
         if (vsLoc.exists)
@@ -1794,23 +1794,22 @@
                 win.width  = winWidth;
                 win.height = winHeight;

-                win.addChild(html);
-
                 // handle resizing since the HTML should take the whole stage
                 win.addEventListener(
                     FlexNativeWindowBoundsEvent.WINDOW_RESIZE,
                     viewSourceResizeHandler(html),
                     false, 0, true);

-                // links should open in the system web browser (e.g. the .zip links)
-                html.htmlLoader.navigateInSystemBrowser = true;
-
                 // close the View Source window when this WindowedApp closes
                 addEventListener(Event.CLOSING, viewSourceCloseHandler(win), false, 0, true);
             }

             // make it so
             win.open();
+            win.contentGroup.addElement(html);
+
+            // links should open in the system web browser (e.g. the .zip links)
+            html.htmlLoader.navigateInSystemBrowser = true;
             win.move(winX, winY);
         }
         else


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

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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
 {
 import flash.events.Event;


Transferred from the Adobe Open Source Subversion Repository

Revision: 22086
Author:   jszeto@adobe.com
Date:     2011-08-19T00:14:47.664747Z

Log Message:
-----------
SpinnerList bug fixes and visual update

Tweaked the SpinnerListContainer visuals based on XD and PM feedback

SDK-31201 - DateSpinner: when setting a big year like 9999 year as selectedDate , no date in Date list in dateAndTime mode .

We were hitting a Player limitation for the x/y values. The solution is to offset the y value if we exceed that maximum number.

SDK-31178 - Application freezes when SpinnerList does not have a dataProvider

Added check to VerticalSpinnerLayout and gave the SpinnerList a minimum height to draw

SDK-31096 - DateSpinner doesn't support text styles like fontWeight and color

Added the text style metadata

SDK-30969 - fontSize style isn't respected by SpinnerList

Moved fontSize style from SpinnerListItemRenderer type selector to SpinnerList type selector. Made sure typicalLayoutElement is remeasured after a text style change

QE notes: none
Doc notes: none
Bugs: listed above
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerShadow.fxg</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as
@@ -246,7 +246,7 @@

 		// SnapElement requires a layout pass in order to properly center the selection
 		// The listener for updateComplete calls commitSelection
-		if (initialized)
+		if (initialized && spinnerLayout)
 			scroller.snapElement(spinnerLayout.getUnwrappedElementIndex(selectedIndex), false);

 		return result;
@@ -306,7 +306,7 @@
 	 */
 	mx_internal function animateToSelectedIndex(index:int, dispatchChangeEvent:Boolean = false):void
 	{
-		if (scroller)
+		if (scroller && spinnerLayout)
 		{
 			var animate:Animate = scroller.snapElement(
 				spinnerLayout.getUnwrappedElementIndex(index), true);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5005
Author:   rfrishbe@adobe.com
Date:     2009-02-19T01:21:52.645265Z

Log Message:
-----------
Last PARB changes for FxContainer/FxDataContainer.  We're now exposing more properties on the FxContainer from the underlying Group (same for FxDataContainer and DataGroup).  The only new property being exposed on FxContainer is autoLayout.  For FxDataContainer we're now exposing autoLayout, typicalItem, and the renderer_add and renderer_remove events.  We're also being smarter about when to add events on the underlying contentGroup/dataGroup--however, we're ignoring some of the parameters in addEventListener and these aren't getting proxied down on to the listeners we add to the contentGroup/dataGroup.

Also found and fixed a bug in the RendererExistenceEvent.clone() method.

QE Notes: Please test these new properties/events.
Doc Notes: -
Bugs: -
Reviewer: Hans
tests: checkintests, DataGroup, FxList, FxButtonBar, FxDataContainer, FxContainer

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/RendererExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -19,9 +19,26 @@
 import mx.core.IViewport;
 import mx.events.FlexEvent;
 import mx.events.PropertyChangeEvent;
+import mx.events.RendererExistenceEvent;
 import mx.layout.LayoutBase;
 import mx.managers.IFocusManagerContainer;
 import mx.utils.BitFlagUtil;
+
+/**
+ *  Dispatched when a renderer is added to the content holder.
+ * event.renderer is the renderer that was added.
+ *
+ *  @eventType mx.events.RendererExistenceEvent.RENDERER_ADD
+ */
+[Event(name="rendererAdd", type="mx.events.RendererExistenceEvent")]
+
+/**
+ *  Dispatched when a renderer is removed from the content holder.
+ * event.renderer is the renderer that was removed.
+ *
+ *  @eventType mx.events.RendererExistenceEvent.ITEM_REMOVE
+ */
+[Event(name="rendererRemove", type="mx.events.RendererExistenceEvent")]

 include "../styles/metadata/BasicTextLayoutFormatStyles.as"

@@ -73,17 +90,27 @@
     /**
      *  @private
      */
-    private static const DATA_PROVIDER_PROPERTY_FLAG:uint = 1 << 4;
-
-    /**
-     *  @private
-     */
-    private static const ITEM_RENDERER_PROPERTY_FLAG:uint = 1 << 5;
-
-    /**
-     *  @private
-     */
-    private static const ITEM_RENDERER_FUNCTION_PROPERTY_FLAG:uint = 1 << 6;
+    private static const AUTO_LAYOUT_PROPERTY_FLAG:uint = 1 << 4;
+
+    /**
+     *  @private
+     */
+    private static const DATA_PROVIDER_PROPERTY_FLAG:uint = 1 << 5;
+
+    /**
+     *  @private
+     */
+    private static const ITEM_RENDERER_PROPERTY_FLAG:uint = 1 << 6;
+
+    /**
+     *  @private
+     */
+    private static const ITEM_RENDERER_FUNCTION_PROPERTY_FLAG:uint = 1 << 7;
+
+    /**
+     *  @private
+     */
+    private static const TYPICAL_ITEM_PROPERTY_FLAG:uint = 1 << 8;

     //--------------------------------------------------------------------------
     //
@@ -147,6 +174,42 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  autoLayout
+    //----------------------------------
+
+    [Inspectable(defaultValue="true")]
+
+    /**
+     *  @copy mx.components.baseClasses.GroupBase#autoLayout
+     */
+    public function get autoLayout():Boolean
+    {
+        if (dataGroup)
+            return dataGroup.autoLayout;
+        else
+        {
+            // want the default to be true
+            return (dataGroupProperties.autoLayout === undefined) ?
+                    true : false
+        }
+    }
+
+    /**
+     *  @private
+     */
+    public function set autoLayout(value:Boolean):void
+    {
+        if (dataGroup)
+        {
+            dataGroup.autoLayout = value;
+            dataGroupProperties = BitFlagUtil.update(dataGroupProperties as uint,
+                                                     AUTO_LAYOUT_PROPERTY_FLAG, true);
+        }
+        else
+            dataGroupProperties.autoLayout = value;
+    }
+
+    //----------------------------------
     //  clipAndEnableScrolling
     //----------------------------------

@@ -353,6 +416,35 @@
     }

     //----------------------------------
+    //  typicalItem
+    //----------------------------------
+
+    /**
+     *  @copy mx.components.DataGroup#typicalItem
+     */
+    public function get typicalItem():Object
+    {
+        return (dataGroup)
+            ? dataGroup.typicalItem
+            : dataGroupProperties.typicalItem;
+    }
+
+    /**
+     *  @private
+     */
+    public function set typicalItem(value:Object):void
+    {
+        if (dataGroup)
+        {
+            dataGroup.typicalItem = value;
+            dataGroupProperties = BitFlagUtil.update(dataGroupProperties as uint,
+                                                     TYPICAL_ITEM_PROPERTY_FLAG, true);
+        }
+        else
+            dataGroupProperties.typicalItem = value;
+    }
+
+    //----------------------------------
     //  verticalScrollPosition
     //----------------------------------

@@ -479,8 +571,29 @@

             dataGroupProperties = newDataGroupProperties;

-            dataGroup.addEventListener(
-                PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
+            if (hasEventListener(PropertyChangeEvent.PROPERTY_CHANGE))
+            {
+                // the only reason we have this listener is to re-dispatch events.  So only add it here
+                // if someone's listening on us.
+                dataGroup.addEventListener(
+                    PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
+            }
+
+            if (hasEventListener(RendererExistenceEvent.RENDERER_ADD))
+            {
+                // the only reason we have this listener is to re-dispatch events.  So only add it here
+                // if someone's listening on us.
+                dataGroup.addEventListener(
+                    RendererExistenceEvent.RENDERER_ADD, dispatchEvent);
+            }
+
+            if (hasEventListener(RendererExistenceEvent.RENDERER_REMOVE))
+            {
+                // the only reason we have this listener is to re-dispatch events.  So only add it here
+                // if someone's listening on us.
+                dataGroup.addEventListener(
+                    RendererExistenceEvent.RENDERER_REMOVE, dispatchEvent);
+            }
         }
     }

@@ -490,6 +603,10 @@
         {
             dataGroup.removeEventListener(
                 PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
+            dataGroup.removeEventListener(
+                RendererExistenceEvent.RENDERER_ADD, dispatchEvent);
+            dataGroup.removeEventListener(
+                RendererExistenceEvent.RENDERER_REMOVE, dispatchEvent);

             // copy proxied values from dataGroup (if explicitely set) to dataGroupProperties

@@ -522,15 +639,94 @@
         }
     }

+    /**
+     *  @private
+     *
+     *  This method is overridden so we can figure out when someone starts listening
+     *  for property change events.  If no one's listening for them, then we don't
+     *  listen for them on our dataGroup.
+     */
+    override public function addEventListener(
+        type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false) : void
+    {
+        super.addEventListener(type, listener, useCapture, priority, useWeakReference);
+
+        // TODO (rfrishbe): this isn't ideal as we should deal with the useCapture,
+        // priority, and useWeakReference parameters.
+
+        // if it's a different type of event or the dataGroup doesn't
+        // exist, don't worry about it.  When the dataGroup,
+        // gets created up, we'll check to see whether we need to add this
+        // event listener to the dataGroup.
+        if (type == PropertyChangeEvent.PROPERTY_CHANGE && dataGroup)
+        {
+            dataGroup.addEventListener(
+                PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
+        }
+
+        if (type == RendererExistenceEvent.RENDERER_ADD && dataGroup)
+        {
+            dataGroup.addEventListener(
+                RendererExistenceEvent.RENDERER_ADD, dispatchEvent);
+        }
+
+        if (type == RendererExistenceEvent.RENDERER_REMOVE && dataGroup)
+        {
+            dataGroup.addEventListener(
+                RendererExistenceEvent.RENDERER_REMOVE, dispatchEvent);
+        }
+    }
+
+    /**
+     *  @private
+     *
+     *  This method is overridden so we can figure out when someone stops listening
+     *  for property change events.  If no one's listening for them, then we don't
+     *  listen for them on our dataGroup.
+     */
+    override public function removeEventListener(type:String, listener:Function, useCapture:Boolean=false) : void
+    {
+        super.removeEventListener(type, listener, useCapture);
+
+        // if no one's listening to us for this event any more, let's
+        // remove our underlying event listener from the dataGroup.
+        if (type == PropertyChangeEvent.PROPERTY_CHANGE && dataGroup)
+        {
+            if (!hasEventListener(PropertyChangeEvent.PROPERTY_CHANGE))
+            {
+                dataGroup.removeEventListener(
+                    PropertyChangeEvent.PROPERTY_CHANGE, dataGroup_propertyChangeHandler);
+            }
+        }
+
+        if (type == RendererExistenceEvent.RENDERER_ADD && dataGroup)
+        {
+            if (!hasEventListener(RendererExistenceEvent.RENDERER_ADD))
+            {
+                dataGroup.removeEventListener(
+                    RendererExistenceEvent.RENDERER_ADD, dispatchEvent);
+            }
+        }
+
+        if (type == RendererExistenceEvent.RENDERER_REMOVE && dataGroup)
+        {
+            if (!hasEventListener(RendererExistenceEvent.RENDERER_REMOVE))
+            {
+                dataGroup.removeEventListener(
+                    RendererExistenceEvent.RENDERER_REMOVE, dispatchEvent);
+            }
+        }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event Handlers
     //
     //--------------------------------------------------------------------------

-   /**
-    * @private
-    */
+    /**
+     * @private
+     */
     private function dataGroup_propertyChangeHandler(event:PropertyChangeEvent):void
     {
         // Re-dispatch the event if it's one other people are binding too


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorTabBarSkin.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.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4752
Author:   rfrishbe@adobe.com
Date:     2009-01-30T01:54:14.279718Z

Log Message:
-----------
SkinStates metadata change.  Now each skin state is enumerated on its own line with its own metadata ([SkinState("normal")] instead of [SkinStates("normal", "disabled")])

Also changed the builds so that we don't keep unnecessary metadata around anymore at runtime (SkinStates, HostComponent, and States fall into this category).

QE Notes: None
Doc Notes: None
Bugs: SDK-18939
Reviewer: Hans, Glenn
tests: checkintests, mustella SkinnableComponent, FxButton, FxToggleButton, Group, DataGroup

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as
@@ -19,9 +19,14 @@

 /**
- *  Skin states for this component.
+ *  Normal State
  */
-[SkinStates("normal", "disabled")]
+[SkinState("normal")]
+
+/**
+ *  Disabled State
+ */
+[SkinState("disabled")]

 /**
  *  Base class for skinnable container components.


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

--- frameworks/projects/charts/src/mx/charts/renderers/DiamondItemRenderer.as
+++ frameworks/projects/charts/src/mx/charts/renderers/DiamondItemRenderer.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.charts.renderers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5110
Author:   dsubrama@adobe.com
Date:     2009-02-27T18:33:07.234761Z

Log Message:
-----------
Bugfixes:

SDK-15413: Fix ASDoc for DateChooser.displayedYear. Also removed legacy @helpid, @tiptext ASDoc directives.

SDK-18682: Ensure selectedItem and selectedItems show up in code hints for List-based components.

SDK-19485: requiresSelection and allowMultipleSelection are legit properties on List now. Multiple selection support is coming in a subsequent checkin, but now list doesn't RTE when those two props are set.

QA: Yes, tests for requiresSelection should be added to the Spark List testsuite.
Checkintests: Yes, pass
Reviewer: Ryan

Modified Paths:
--------------
<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/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.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/flex4/src/mx/components/baseClasses/FxListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -285,8 +285,7 @@
      *  Flag that is set when requiresSelection has changed.
      */
     private var requiresSelectionChanged:Boolean = false;
-
-    [Bindable]
+
     /**
      *  Specifies whether an item must always be selected.
      *  If the value is true, the selectedIndex property


Transferred from the Adobe Open Source Subversion Repository

Revision: 7303
Author:   dsubrama@adobe.com
Date:     2009-05-27T05:20:10.470410Z

Log Message:
-----------
A "Chet-approved" fix whereby transitions are turned off by passing setCurrentState() the name of the new state as well as a boolean param that instructs the state change to abort playing any new transitions. List uses this to "turn off" transitions when cleaning up old properties upon renderer recycling.

Checkintests: Pass
QA: No
Reviewer: Chet, like 4 days ago

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -726,27 +726,25 @@
         if (renderer is IItemRenderer)
         {
             // If there are transitions bound to the renderer, lets turn them
-            // off while we clear stale properties
-            if (renderer is UIComponent)
-            {
-                transitions = UIComponent(renderer).transitions;
-                UIComponent(renderer).transitions = null;
-            }
+            // off while we clear stale properties by setting ItemRenderer's
+            // mx_internal property, playTransitions, to false
+            if (renderer is ItemRenderer)
+                ItemRenderer(renderer).playTransitions = false;

             // TODO (dsubrama) - Go through helper methods to do this.
             // Make itemSelected()/itemInCaret() pass around the renderer
             // instead of index
             IItemRenderer(renderer).selected = false;
             IItemRenderer(renderer).caret = false;
+
+            // Now turn the transitions back on by setting playTransitions
+            // back to true
+            if (renderer is ItemRenderer)
+                ItemRenderer(renderer).playTransitions = true;
         }

         // Now run through and initialize the renderer correctly
         super.updateRenderer(renderer);
-
-        // Re-apply any transitions bound to the renderer that may
-        // have been previously nulled out
-        if (transitions)
-            UIComponent(renderer).transitions = transitions;

         var index:Number = dataGroup.getElementIndex(renderer);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17335
Author:   chiedozi@adobe.com
Date:     2010-08-16T21:27:33.474052Z

Log Message:
-----------
Fixed an issue in ListBase where an RTE would occur if a list switched layouts between states without a default layout defined.

QE notes:
Doc notes:
Bugs: SDK-27442
Reviewer: Evtim
Tests run: checkintests, cyclone-pass
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -317,7 +317,7 @@
      */
     override public function set layout(value:LayoutBase):void
     {
-        if (useVirtualLayout)
+        if (value && useVirtualLayout)
             value.useVirtualLayout = true;

         super.layout = value;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7465
Author:   cframpto@adobe.com
Date:     2009-06-01T12:52:48.879867Z

Log Message:
-----------
Rev 7434 removed an optimization that didn't work if bounds.x != 0.  This puts it back in correctly.

QA Notes: need to add tests to determine if objects are clipped when they should not be
Doc Notes:
Bugs: SDK-21470
Reviewers: Gordon

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -784,14 +784,8 @@
         else if (unscaledHeight != bounds.height)
         {
             // Height changed.
-            if ((unscaledHeight > bounds.height &&
-                isOverset) ||
-                composeOnHeightChange(unscaledHeight) ||
-                getStyle("blockProgression") != "tb")
+            if (composeOnHeightChange(unscaledHeight))
             {
-                // More height is needed and it's possible there is more text
-                // since it didn't all fit before.  Or the styles require a
-                // recompose if the height changes.
                 compose = true;
             }
             else if (unscaledHeight < bounds.height)
@@ -805,14 +799,12 @@
         // Width changed.
         if (!compose && unscaledWidth != bounds.width)
         {
-            if (getStyle("lineBreak") == "toFit" ||
-                getStyle("blockProgression") != "tb")
+            if (composeOnWidthChange(unscaledWidth))
             {
-                // Width changed and toFit line breaks or the styles
-                // require a recompose if the width changes.
                 compose = true;
             }
-            else if (unscaledWidth < bounds.width)
+            else if (getStyle("lineBreak") == "explicit" &&
+                     unscaledWidth < bounds.width)
             {
                 // Explicit line breaks.  Don't need to recompose but need to
                 // clip since the not all the width is needed.
@@ -1166,6 +1158,10 @@
      */
     private function composeOnHeightChange(unscaledHeight:Number):Boolean
     {
+        // Height increased and there is more content that can be composed.
+        if (unscaledHeight > bounds.height && isOverset)
+            return true;
+
         if (truncation != 0 && getStyle("lineBreak") == "toFit")
         {
             // -1 is fill the bounds and the bounds changed so recompose.
@@ -1183,7 +1179,31 @@
                 return true;
             }
         }
-
+
+        // ToDo: optimize this case.
+        if (getStyle("blockProgression") != "tb")
+            return true;
+
+        return false;
+    }
+
+    /**
+     *  @private
+     */
+    private function composeOnWidthChange(unscaledWidth:Number):Boolean
+    {
+        // If toFit, then the composeWidth must equal the unscaledWidth
+        // so that the text flows properly.
+        if (getStyle("lineBreak") == "toFit")
+        {
+            if (isNaN(_composeWidth) || _composeWidth != unscaledWidth)
+                return true;
+        }
+
+        // ToDo: optimize this case.
+        if (getStyle("blockProgression") != "tb")
+            return true;
+
         return false;
     }