Transferred from the Adobe Open Source Subversion Repository

Revision: 4017
Author:   egeorgie@adobe.com
Date:     2008-11-04T21:39:03.021799Z

Log Message:
-----------
Add automatic tooltip support to FxButton. We will show a tooltip if the label text is clipped.

QE Notes: Make sure that when the label on the FxButton changes or the size of the FxButton, the tooltip is to appear only when the label text is clipped and no tooltip has been explicitly set.
Doc Notes: None
Bugs: None
Reviewer: Chet
tests: checkintests, Mustella (Button)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as

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

--- frameworks/projects/spark/src/spark/components/Button.as
+++ frameworks/projects/spark/src/spark/components/Button.as
@@ -330,7 +330,11 @@
     /**
      *  @private
      */
-    protected static const lastFlag:uint                = 1 << 5;
+    protected static const explicitToolTip:uint         = 1 << 6;
+    /**
+     *  @private
+     */
+    protected static const lastFlag:uint                = 1 << 6;

     /**
      *  An instance of the Flags32 class used to manipulate Boolean properties.
@@ -647,6 +651,50 @@
     {
         dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
     }
+
+    //----------------------------------
+    //  toolTip
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  @private
+     */
+    override public function set toolTip(value:String):void
+    {
+        super.toolTip = value;
+
+        flags.update(explicitToolTip, value != null);
+
+        // If explicit tooltip is cleared, we need to make sure our
+        // updateDisplayList is called, so that we add automatic tooltip
+        // in case the label is truncated.
+        if (!flags.isSet(explicitToolTip))
+            invalidateDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        // Bail out if we don't have a label or the tooltip is not explicitly set.
+        if (!labelField || flags.isSet(explicitToolTip))
+            return;
+
+        // Check if the label text is truncated
+        // TODO EGeorgie: use TextGraphicElement API to check for truncated text.
+        labelField.validateNow();
+        var truncated:Boolean = labelField.actualSize.x < labelField.preferredSize.x ||
+                                labelField.actualSize.y < labelField.preferredSize.y;
+
+        // If the label is truncated, show the whole label string as a tooltip
+        super.toolTip = truncated ? labelField.text : null;
+    }
 }

 }


Renamed property

Renamed property

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@1461 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/org.openwms.core/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/model/ModelLocator.as
+++ org.openwms/trunk/org.openwms.core/org.openwms.client.flex.lib/src/main/flex/org/openwms/web/flex/client/model/ModelLocator.as
@@ -158,9 +158,9 @@
         // Property Management
         // --------------------------------------------------------------------
         /**
-         * Collection of all Properties.
-         */
-        public var allProperties : ArrayCollection = new ArrayCollection();
+         * Collection of all Properties of type APPLICATION.
+         */
+        public var allApplicationProperties : ArrayCollection = new ArrayCollection();

         // --------------------------------------------------------------------
         // Security


adding "as" casting when retrieving values from vectors.

--- WeaveData/src/weave/data/AttributeColumns/GeometryColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/GeometryColumn.as
@@ -90,8 +90,8 @@
 			var uniqueKeyIndex:int = 0;
 			for (var geomIndex:int = 0; geomIndex < geometries.length; geomIndex++)
 			{
-				geom = geometries[geomIndex];
-				key = keys[geomIndex];
+				geom = geometries[geomIndex] as GeneralizedGeometry;
+				key = keys[geomIndex] as IQualifiedKey;
 				_geometryVector[geomIndex] = geom;
 				if (_keyToGeometryArrayMapping[key] == undefined)
 				{


remove params related to idle timer

remove params related to idle timer

--- src/com/google/analytics/v4/Configuration.as
+++ src/com/google/analytics/v4/Configuration.as
@@ -117,16 +117,6 @@
          * Default inactive session timeout in seconds (30 minutes).
          */
         public var sessionTimeout:Number = Timespan.thirtyminutes;
-
-        /**
-        * Default idle timer loop time in seconds (30 seconds).
-        */
-        public var idleLoop:Number    = 30;
-
-        /**
-        * Default idle timer inactivity time in seconds (1 minute).
-        */
-        public var idleTimeout:Number = 60;

         /**
          * Upper limit for number of href anchor tags to examine.


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/binding/StaticPropertyWatcher.as
+++ frameworks/projects/framework/src/mx/binding/StaticPropertyWatcher.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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
+//
+//      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: 22579
Author:   smgilson@adobe.com
Date:     2011-09-15T19:08:04.587501Z

Log Message:
-----------
Add images for mobile components without running examples

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/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/BusyIndicator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -68,6 +68,13 @@
  *  You can also use the ViewNavigatorApplicationBase.viewMenuOpen property
  *  to open the menu programmatically.
  *
+ *
The following images shows a ViewMenu at the bottom of the screen
+ *  with five menu items:

+ *
+ *

+ *
+ *

+ *
  *
The ViewMenuLayout class define the layout of the menu.
  *  Alternatively, you can create your own custom layout class.

  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

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/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<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/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.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/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.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/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.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/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
@@ -59,7 +59,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 public class CalloutSkin extends MobileSkin
 {
@@ -78,7 +78,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     public function CalloutSkin()
     {
@@ -157,7 +157,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var dropShadowVisible:Boolean = true;

@@ -170,7 +170,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var useBackgroundGradient:Boolean = true;

@@ -179,7 +179,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var contentCornerRadius:uint;

@@ -190,7 +190,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var contentBackgroundInsetClass:Class;

@@ -199,7 +199,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var backgroundCornerRadius:Number;

@@ -209,7 +209,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var frameThickness:Number;

@@ -218,7 +218,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var borderColor:Number = 0;

@@ -228,7 +228,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var borderThickness:Number = NaN;

@@ -238,7 +238,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var arrowWidth:Number;

@@ -248,7 +248,7 @@
      *
      *  @langversion 3.0
      *  @playerversion AIR 3
-     *  @productversion Flex 4.5.2
+     *  @productversion Flex 4.6
      */
     protected var arrowHeight:Number;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as
@@ -28,6 +28,12 @@
     /**
      * Constructor.
      * Initializes object, trait info and string reference tables.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function AMFXContext()
     {
@@ -37,6 +43,12 @@

     /**
      * Resets the trait info, object and string reference tables.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function reset():void
     {
@@ -50,6 +62,12 @@
      * already contains this list of traits. If found,
      * the index of the trait info is returned, starting
      * from 0. If not found -1 is returned.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function findTraitInfo(traitInfo:Object):int
     {
@@ -85,6 +103,12 @@
      * already contains this object. If found, the index
      * of the object is returned, starting from 0. If
      * not found -1 is returned.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function findObject(object:Object):int
     {
@@ -106,6 +130,12 @@
      * of the string is returned, starting from 0. If
      * not found (or if the value passed is the empty string)
      * -1 is returned.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function findString(str:String):int
     {
@@ -127,6 +157,12 @@
     /**
      * Remember the trait info for an object in this context
      * for an encoding or decoding session.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function addTraitInfo(traitInfo:Object):void
     {
@@ -136,6 +172,12 @@
     /**
      * Remember an object in this context for an encoding
      * or decoding session.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function addObject(obj:Object):void
     {
@@ -147,6 +189,12 @@
      * or decoding session. Note that the empty string
      * is not remembered as it should not be serialized
      * by reference.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function addString(str:String):void
     {
@@ -160,6 +208,12 @@
     /**
      * Retrieve trait info for an object by its reference
      * table index.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function getTraitInfo(ref:uint):*
     {
@@ -168,6 +222,12 @@

     /**
      * Retrieve an object by its reference table index.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function getObject(ref:uint):*
     {
@@ -176,6 +236,12 @@

     /**
      * Retrieve a string by its reference table index.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function getString(ref:uint):String
     {
@@ -184,21 +250,45 @@

     /**
      * Trait Info reference table
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     internal var traits:Array;

     /**
      * Object reference table
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     internal var objects:Array;

     /**
      * Strings reference table
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     internal var strings:Array;

     /**
      * Log for the current encoder/decoder context.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public var log:ILogger;
 }


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/LinkBarAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/LinkBarAutomationImpl.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.automation.delegates.controls
 {
 	import flash.display.DisplayObject;


Alphabetize imports.

Alphabetize imports.

It's shocking how badly I do this manually.

--- swfcat.as
+++ swfcat.as
@@ -3,18 +3,18 @@
     import flash.display.Sprite;
     import flash.display.StageAlign;
     import flash.display.StageScaleMode;
+    import flash.events.Event;
+    import flash.events.IOErrorEvent;
+    import flash.events.SecurityErrorEvent;
     import flash.external.ExternalInterface;
-    import flash.text.TextField;
-    import flash.text.TextFormat;
     import flash.net.Socket;
     import flash.net.URLLoader;
     import flash.net.URLLoaderDataFormat;
     import flash.net.URLRequest;
     import flash.net.URLRequestMethod;
     import flash.net.URLVariables;
-    import flash.events.Event;
-    import flash.events.IOErrorEvent;
-    import flash.events.SecurityErrorEvent;
+    import flash.text.TextField;
+    import flash.text.TextFormat;
     import flash.utils.setTimeout;

     public class swfcat extends Sprite
@@ -333,8 +333,8 @@
 import flash.events.MouseEvent;
 import flash.net.navigateToURL;
 import flash.net.URLRequest;
+import flash.text.TextField;
 import flash.text.TextFormat;
-import flash.text.TextField;
 import flash.utils.getTimer;

 class Badge extends flash.display.Sprite


alt audio : update PTS when reloading live audio playlist

--- src/org/mangui/hls/loader/AltAudioLevelLoader.as
+++ src/org/mangui/hls/loader/AltAudioLevelLoader.as
@@ -93,18 +93,21 @@
                 }
                 var frags : Vector.<Fragment> = Manifest.getFragments(string, url, level);
                 // set fragment and update sequence number range
-                var newLevel : Level = new Level();
-                newLevel.updateFragments(frags);
-                newLevel.targetduration = Manifest.getTargetDuration(string);
-            // if stream is live, arm a timer to periodically reload playlist
-            if (!Manifest.hasEndlist(string)) {
-                var timeout : Number = Math.max(100, _reload_playlists_timer + 1000 * newLevel.averageduration - getTimer());
-                CONFIG::LOGGING {
-                    Log.debug("Alt Audio Level Live Playlist parsing finished: reload in " + timeout.toFixed(0) + " ms");
+                var audioTrack : AudioTrack = _hls.audioTracks[_current_track];
+                var audioLevel : Level = audioTrack.level;
+                if(audioLevel == null) {
+                    audioLevel = audioTrack.level = new Level();
                 }
-                _timeoutID = setTimeout(_loadAudioLevelPlaylist, timeout);
-            }
-                _hls.audioTracks[_current_track].level = newLevel;
+                audioLevel.updateFragments(frags);
+                audioLevel.targetduration = Manifest.getTargetDuration(string);
+                // if stream is live, arm a timer to periodically reload playlist
+                if (!Manifest.hasEndlist(string)) {
+                    var timeout : Number = Math.max(100, _reload_playlists_timer + 1000 * audioLevel.averageduration - getTimer());
+                    CONFIG::LOGGING {
+                        Log.debug("Alt Audio Level Live Playlist parsing finished: reload in " + timeout.toFixed(0) + " ms");
+                    }
+                    _timeoutID = setTimeout(_loadAudioLevelPlaylist, timeout);
+                }
             }
             _hls.dispatchEvent(new HLSEvent(HLSEvent.AUDIO_LEVEL_LOADED, level));
             _manifest_loading = null;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11651
Author:   jimurphy@adobe.com
Date:     2009-11-11T14:06:01.837600Z

Log Message:
-----------
Merged 3.x revisions 11192,11237,11618 -> trunk

........
  r11192 | rfrishbe@adobe.com | 2009-10-27 15:54:37 -0400 (Tue, 27 Oct 2009) | 8 lines

  In AIR, you can drag'n drop text between text components like TextInput and TextArea.  There's an AIR bug where doing so doesn't result in a TEXT_INPUT or a CHANGE event.  This is a workaround for that bug so that we listen for a nativeDragDrop event.

  QE notes: -
  Doc notes: -
  Bugs: SDK-19816
  Reviewer: Gordon
  Tests run: checkintests, mustella TextInput, TextArea
  Is noteworthy for integration: no
........
  r11237 | smgilson@adobe.com | 2009-10-28 15:23:48 -0400 (Wed, 28 Oct 2009) | 9 lines

  Add ASDoc comment to the class. Please integrate into the 3.4.0 branch

........
  r11618 | aharui@adobe.com | 2009-11-10 13:12:56 -0500 (Tue, 10 Nov 2009) | 11 lines

  Allow extra parameters on itemToLabel so you can use DataGrid as the dropdown in a combobox.

  QE Notes: None
  Doc Notes: While we did change the signature on itemToLabel, I think we shouldn't document the change.  We are allowing extra params so we don't crash and we never use those params so the effective signature is the same
  Bugs: SDK-24027
  Reviewer: Corey
  API Change: No
  Is noteworthy for integration: No
  tests: checkintests mustella/components/ComboBox
........

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/com/adobe/viewsource/ViewSource.as</path>

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

--- frameworks/projects/mx/src/mx/controls/TextArea.as
+++ frameworks/projects/mx/src/mx/controls/TextArea.as
@@ -2228,6 +2228,11 @@
             textField.addEventListener("textReplace",
                                        textField_textModifiedHandler);

+            // can't use NativeDragEvent.NATIVE_DRAG_DROP b/c we need AIR for that
+            // ideally we don't need to listen for this event as doing a dragDrop should
+            // dispatch a TEXT_INPUT and a CHANGE event for us (see SDK-19816)
+            textField.addEventListener("nativeDragDrop", textField_nativeDragDropHandler);
+
             if (childIndex == -1)
                 addChild(DisplayObject(textField));
             else
@@ -2257,6 +2262,7 @@
                                           textField_textModifiedHandler);
             textField.removeEventListener("textReplace",
                                           textField_textModifiedHandler);
+            textField.removeEventListener("nativeDragDrop", textField_nativeDragDropHandler);

             removeChild(DisplayObject(textField));
             textField = null;
@@ -2568,6 +2574,15 @@
     private function textField_ioErrorHandler(event:IOErrorEvent):void
     {
     }
+
+    /**
+     *  @private
+     */
+    private function textField_nativeDragDropHandler(event:Event):void
+    {
+        // just call the "change" handler
+        textField_changeHandler(event);
+    }

     /**
      *  @private


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 153
Author:   proberts@adobe.com
Date:     2008-01-10T20:22:23.867658Z

Log Message:
-----------
Severity: ignore
Description: docs update -- added @productVersion tag to Flex AIR classes' class descriptions.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/airframework/src/mx/events/FileEvent.as
+++ frameworks/projects/airframework/src/mx/events/FileEvent.as
@@ -24,6 +24,8 @@
  *  @see mx.controls.FileSystemDataGrid
  *  @see mx.controls.FileSystemList
  *  @see mx.controls.FileSystemTree
+ *
+ *  @productversion Apollo 1.0
  */
 public class FileEvent extends Event
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8602
Author:   dloverin@adobe.com
Date:     2009-07-15T22:06:23.142556Z

Log Message:
-----------
Fix RTE after setting baseColor.

https://bugs.adobe.com/jira/browse/SDK-21749

TitleBarSkin:
Remove items form color exclusion array. Remove “bgFill” because it is not of type DisplayObject or GraphicElement. Remove “background” because it is part of the window chrome and should be affected by baseColor.

SparkSkin:
Only process excluded objects of type DisplayObject or GraphicElement in updateDisplayList().

https://bugs.adobe.com/jira/browse/SDK-21625

Spark and Halo WindowedApplication/Window:
Update class comments and remove dead code.

QE Notes: none.
Doc Notes: none.
Bugs: SDK-21749, SDK-21625.
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/TitleBarSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -375,13 +375,13 @@
  *    alwaysInFront="false"
  *    backgroundColor="white"
  *    colorCorrection="default"
- *    maxHeight="10000"
+ *    maxHeight="2880 less the height of the system chrome"
  *    maximizable="true"
- *    maxWidth="10000"
+ *    maxWidth="2880 less the width of the system chrome"
  *    menu="<i>null</i>"
- *    minHeight="0"
+ *    minHeight="dependent on the operating system and the AIR systemChrome setting"
  *    minimizable="true"
- *    minWidth="0"
+ *    minWidth="dependent on the operating system and the AIR systemChrome setting"
  *    resizable="true"
  *    showStatusBar="true"
  *    status=""
@@ -567,11 +567,6 @@

     /**
      *  @private
-     */
-    private var resizeHandlerAdded:Boolean = false;
-
-    /**
-     *  @private
      *  This flag indicates whether the width of the Application instance
      *  can change or has been explicitly set by the developer.
      *  When the stage is resized we use this flag to know whether the
@@ -2252,19 +2247,6 @@

     /**
      *  @private
-     *  Starts a system move.
-     */
-    private function startMove(event:MouseEvent):void
-    {
-        addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-        addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
-
-        prevX = event.stageX;
-        prevY = event.stageY;
-    }
-
-    /**
-     *  @private
      *  Starts a system resize.
      */
     private function startResize(start:String):void
@@ -2420,96 +2402,6 @@
     }

     /**
-     *  @private
-     */
-    private function closeButton_clickHandler(event:Event):void
-    {
-        if (!nativeWindow.closed)
-            stage.nativeWindow.close();
-    }
-
-    /**
-     *  @private
-     *  Triggered by a resize event of the stage.
-     *  Sets the new width and height.
-     *  After the SystemManager performs its function,
-     *  it is only necessary to notify the children of the change.
-     */
-    private function resizeHandler(event:Event):void
-    {
-        // When user has not specified any width/height,
-        // application assumes the size of the stage.
-        // If developer has specified width/height,
-        // the application will not resize.
-        // If developer has specified percent width/height,
-        // application will resize to the required value
-        // based on the current stage width/height.
-        // If developer has specified min/max values,
-        // then application will not resize beyond those values.
-
-        var w:Number;
-        var h:Number
-
-        if (resizeWidth)
-        {
-            if (isNaN(percentWidth))
-            {
-                w = DisplayObject(systemManager).width;
-            }
-            else
-            {
-                super.percentWidth = Math.max(percentWidth, 0);
-                super.percentWidth = Math.min(percentWidth, 100);
-                w = percentWidth*screen.width/100;
-            }
-
-            if (!isNaN(explicitMaxWidth))
-                w = Math.min(w, explicitMaxWidth);
-
-            if (!isNaN(explicitMinWidth))
-                w = Math.max(w, explicitMinWidth);
-        }
-        else
-        {
-            w = width;
-        }
-
-        if (resizeHeight)
-        {
-            if (isNaN(percentHeight))
-            {
-                h = DisplayObject(systemManager).height;
-            }
-            else
-            {
-                super.percentHeight = Math.max(percentHeight, 0);
-                super.percentHeight = Math.min(percentHeight, 100);
-                h = percentHeight*screen.height/100;
-            }
-
-            if (!isNaN(explicitMaxHeight))
-                h = Math.min(h, explicitMaxHeight);
-
-            if (!isNaN(explicitMinHeight))
-                h = Math.max(h, explicitMinHeight);
-        }
-        else
-        {
-            h = height;
-        }
-
-        if (w != width || h != height)
-        {
-            invalidateProperties();
-            invalidateSize();
-        }
-
-        setActualSize(w, h);
-
-        invalidateDisplayList();
-    }
-
-    /**
      *   @private
      *
      *   Perform a hit test to determine if an edge or corner of the application
@@ -2615,24 +2507,6 @@
         systemManager.stage.nativeWindow.addEventListener(
             NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE,
             window_displayStateChangeHandler);
-    }
-
-    /**
-     *  @private
-     */
-    private function mouseMoveHandler(event:MouseEvent):void
-    {
-        stage.nativeWindow.x += event.stageX - prevX;
-        stage.nativeWindow.y += event.stageY - prevY;
-    }
-
-    /**
-     *  @private
-     */
-    private function mouseUpHandler(event:MouseEvent):void
-    {
-        removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-        removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
     }

     /**


From whiteboard/cframpton/adobe.next.  ASDoc updates.

git-svn-id: 7d913817b0a978d84de757191e4bce372605a781@1414951 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/utils/Base64Encoder.as
+++ frameworks/projects/framework/src/mx/utils/Base64Encoder.as
@@ -136,8 +136,7 @@
      *
      * @param data The String to encode.
      * @param offset The character position from which to start encoding.
-     * @param length The number of characters to encode from the offset, or
-     * all the characters if the length is 0.
+     * @param length The number of characters to encode from the offset.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -202,8 +201,7 @@
      *
      * @param data The ByteArray to encode.
      * @param offset The index from which to start encoding.
-     * @param length The number of bytes to encode from the offset, or all
-     * the bytes if the length is 0.
+     * @param length The number of bytes to encode from the offset.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
@@ -0,0 +1,256 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.accessibility
+{
+
+import flash.accessibility.Accessibility;
+import flash.accessibility.AccessibilityProperties;
+import flash.events.Event;
+import mx.controls.Alert;
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+import mx.managers.SystemManager;
+
+use namespace mx_internal;
+
+/**
+ *  The AlertAccImpl class is the accessibility class for Alert.
+ *
+ *  @helpid 3030
+ *  @tiptext This is the Alert Accessibility Class.
+ *  @review
+ */
+public class AlertAccImpl extends TitleWindowAccImpl
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class initialization
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Static variable triggering the hookAccessibility() method.
+	 *  This is used for initializing AlertAccImpl class to hook its
+	 *  createAccessibilityImplementation() method to Alert class
+	 *  before it gets called from UIComponent.
+	 */
+	private static var accessibilityHooked:Boolean = hookAccessibility();
+
+	/**
+	 *  @private
+	 *  Static method for swapping the createAccessibilityImplementation()
+	 *  method of Alert with the AlertAccImpl class.
+	 */
+	private static function hookAccessibility():Boolean
+	{
+		Alert.createAccessibilityImplementation =
+			createAccessibilityImplementation;
+
+		return true;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Method for creating the Accessibility class.
+	 *  This method is called from UIComponent.
+	 *  @review
+	 */
+	mx_internal static function createAccessibilityImplementation(
+								component:UIComponent):void
+	{
+		var titleBar:UIComponent = Alert(component).getTitleBar();
+
+		var titleBarAccImpl:AlertAccImpl = new AlertAccImpl(component);
+		titleBar.accessibilityImplementation = titleBarAccImpl;
+	}
+
+	/**
+	 *  Method call for enabling accessibility for a component.
+	 *  This method is required for the compiler to activate
+	 *  the accessibility classes for a component.
+	 */
+	public static function enableAccessibility():void
+	{
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param master The UIComponent instance that this AccImpl instance
+	 *  is making accessible.
+	 */
+	public function AlertAccImpl(master:UIComponent)
+	{
+		super(master);
+
+		role = 0x08;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties: AccImpl
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  eventsToHandle
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *	Array of events that we should listen for from the master component.
+	 */
+	override protected function get eventsToHandle():Array
+	{
+		return super.eventsToHandle.concat([ "close", "creationComplete" ]);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: AccImpl
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  method for returning the name of the child
+	 *  which is spoken out by the screen reader.
+	 *
+	 *  @param childID uint
+	 *
+	 *  @return Name String
+	 *  @review
+	 */
+	override protected function getName(childID:uint):String
+	{
+		var name:String = Alert(master).title;
+
+		switch (childID)
+		{
+			case 1:
+			{
+				name = "";
+				break;
+			}
+
+			case 2:
+			{
+				name = "";
+				break
+			}
+
+			default:
+			{
+				name = Alert(master).title + ", " +
+					   Alert(master).text;
+				break;
+			}
+		}
+
+		return name;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden event handlers: AccImpl
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Override the generic event handler.
+	 *  All AccImpl must implement this
+	 *  to listen for events from its master component.
+	 */
+	override protected function eventHandler(event:Event):void
+	{
+		var titleBar:UIComponent;
+
+		switch (event.type)
+		{
+			case "close":
+			{
+				titleBar = Alert(master).getTitleBar();
+
+				SystemManager(master.parent).document.accessibilityProperties.silent = false;
+
+				Accessibility.updateProperties();
+
+				Accessibility.sendEvent(titleBar,0,0x0011); // DialogEnd
+				Accessibility.sendEvent(titleBar,0,0x8004); // ObjectReorder
+				Accessibility.sendEvent(titleBar,0,0x8001); // ObjectDestroyed
+				Accessibility.sendEvent(titleBar,0,0x800B); // LocationChanged
+				Accessibility.sendEvent(titleBar,0,0x800F); // ParentChanged
+				Accessibility.sendEvent(titleBar,0,0x0003); // ObjectHide
+				Accessibility.sendEvent(titleBar,0,0x0003); // ForegroundChanged
+				if (SystemManager(master.parent).stage.focus)
+					Accessibility.sendEvent(SystemManager(master.parent).stage.focus,0,0x8005); // Focus
+
+				break;
+			}
+			break;
+
+			case "creationComplete":
+			{
+				if (!SystemManager(master.parent).document.accessibilityProperties)
+				{
+					SystemManager(master.parent).document.accessibilityProperties =
+						new AccessibilityProperties();
+				}
+				SystemManager(master.parent).document.accessibilityProperties.
+					silent = true;
+
+				master.$visible = true;
+
+				titleBar = Alert(master).getTitleBar();
+
+				titleBar.tabIndex = 0;
+				Alert(master).alertForm.textField.tabIndex = 0;
+
+   				UIComponent(titleBar).$visible = true;
+
+				Accessibility.updateProperties();
+
+				Accessibility.sendEvent(titleBar, 0, 0x0010); // DialogStart
+				Accessibility.sendEvent(titleBar, 0, 0x8004); // ObjectReorder
+				Accessibility.sendEvent(titleBar, 0, 0x8000); // ObjectCreated
+				Accessibility.sendEvent(titleBar, 0, 0x800B); // LocationChanged
+				Accessibility.sendEvent(titleBar, 0, 0x800F); // ParentChanged
+				Accessibility.sendEvent(titleBar, 0, 0x0002); // ObjectShow
+				Accessibility.sendEvent(titleBar, 0, 0x0003); // ForegroundChanged
+				Accessibility.sendEvent(titleBar, 0, 0x8005); // Focus
+				Accessibility.sendEvent(Alert(master).alertForm.defaultButton, 0, 0x8005); // Focus
+
+				break;
+			}
+			break;
+		}
+	}
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12370
Author:   smgilson@adobe.com
Date:     2009-12-02T16:48:37.124467Z

Log Message:
-----------
Fix for doc bug FLEXDOCS-1150

Added a few new examples and default sizes to Spark components

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

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/VScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/BorderContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/HScrollBarExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TileGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/MyBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SkinnableDataContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/ApplicationContainerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -108,12 +108,12 @@
  *  the DataGroup container cannot be skinned.
  *  If you want to apply a skin, use the SkinnableDataContainer instead.

  *
- *
The DataGroup ciontainer has the following default characteristics:

+ *
The DataGroup container has the following default characteristics:

  *

  *
Characteristic	Description

  *
Default size	Large enough to display its children

  *
Minimum size	0 pixels

- *
Maximum size	No limit

+ *
Maximum size	10000 pixels wide and 10000 pixels high

  *

  *
  *  @mxml


Transferred from the Adobe Open Source Subversion Repository

Revision: 2509
Author:   chaase@adobe.com
Date:     2008-07-16T17:27:37.792321Z

Log Message:
-----------
New Resize effect that works with Flex4 components as well as GraphicElement objects. Minor fixes to infrastructure classes (mostly the new effects classes, but also SetProperty) as necessary, plus a minor bugfix for the old Resize effect.
As with the other 'new effects', triggers are non-functional for now, but manual playing and transitions using the effects should work.
checkintests: passed
reviewer: Jason S.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/NewEffects.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/RemoveAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -11,6 +11,7 @@

 package flex.effects
 {
+import flex.core.Group;
 import flex.effects.effectClasses.RemoveActionInstance;

 import mx.core.mx_internal;
@@ -163,7 +164,14 @@
         }
         if (property == "parent" && value)
             if (hasParent && target.parent == null)
-                value.addChildAt(target, Math.min(props.index, value.numChildren));
+                // TODO : workaround for current situation of mis-match between
+                // Group having 'item's and Flex3 components having 'parent's
+                if (value is Group)
+                    value.addItemAt(target, Math.min(props.index,
+                        value.numChildren));
+                else
+                    value.addChildAt(target, Math.min(props.index,
+                        value.numChildren));
         if (property == "elementHost" && value)
             if (!hasParent && target.elementHost == null)
                 value.addItemAt(target, Math.min(props.index, value.numChildren));


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/ComboBoxAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/ComboBoxAutomationImpl.as
@@ -292,7 +292,8 @@
 		{
 			var delegate:IAutomationObject = comboBox.dropdown as IAutomationObject;

-			return delegate.getAutomationChildren();
+			//return delegate.getAutomationChildren();
+			return Automation.automationManager2.getAutomationChildrenArray(delegate);
 		}
 		/**
 		 *  @private


Simplify WidgetSyncController logic.

Simplify WidgetSyncController logic.

--- src/com/esri/builder/controllers/WidgetSyncController.as
+++ src/com/esri/builder/controllers/WidgetSyncController.as
@@ -46,18 +46,10 @@

     private function getWidgetDirectory():File
     {
-        var widgetDirectory:File;
-        if (addedWidgetType.isCustom)
-        {
-            widgetDirectory = WellKnownDirectories.getInstance().customFlexViewer.resolvePath("widgets/" + addedWidgetType.name);
-        }
-        else
-        {
-            widgetDirectory = WellKnownDirectories.getInstance().bundledFlexViewer.resolvePath("widgets/" + addedWidgetType.name);
-        }
-        return widgetDirectory;
+        return addedWidgetType.isCustom ?
+            WellKnownDirectories.getInstance().customFlexViewer.resolvePath("widgets/" + addedWidgetType.name) :
+            WellKnownDirectories.getInstance().bundledFlexViewer.resolvePath("widgets/" + addedWidgetType.name);
     }
-

     private function copyMissingFilesToApp(widgetDirectory:File):void
     {
@@ -114,14 +106,9 @@

     private function getRelativePathToWidgetDirectory(fileOrFolder:File):String
     {
-        if (addedWidgetType.isCustom)
-        {
-            return WellKnownDirectories.getInstance().customFlexViewer.getRelativePath(fileOrFolder);
-        }
-        else
-        {
-            return WellKnownDirectories.getInstance().bundledFlexViewer.getRelativePath(fileOrFolder);
-        }
+        return addedWidgetType.isCustom ?
+            WellKnownDirectories.getInstance().customFlexViewer.getRelativePath(fileOrFolder) :
+            WellKnownDirectories.getInstance().bundledFlexViewer.getRelativePath(fileOrFolder);
     }
 }
 }


Added checks for showControls and showCloseButton properties of parent window.

--- src/flexlib/mdi/containers/MDIWindowControlsContainer.as
+++ src/flexlib/mdi/containers/MDIWindowControlsContainer.as
@@ -89,26 +89,35 @@
 		{
 			super.updateDisplayList(w, h);

-			// since we're in rawChildren we don't get measured and laid out by our parent
-			// this routine finds the bounds of our children and sets our size accordingly
-			var minX:Number = 9999;
-			var minY:Number = 9999;
-			var maxX:Number = -9999;
-			var maxY:Number = -9999;
-			for each(var child:DisplayObject in this.getChildren())
+			if(window.showControls)
 			{
-				minX = Math.min(minX, child.x);
-				minY = Math.min(minY, child.y);
-				maxX = Math.max(maxX, child.x + child.width);
-				maxY = Math.max(maxY, child.y + child.height);
+				// respect window's showCloseButton property
+				closeBtn.visible = closeBtn.includeInLayout = window.showCloseButton;
+
+				// since we're in rawChildren we don't get measured and laid out by our parent
+				// this routine finds the bounds of our children and sets our size accordingly
+				var minX:Number = 9999;
+				var minY:Number = 9999;
+				var maxX:Number = -9999;
+				var maxY:Number = -9999;
+				for each(var child:DisplayObject in this.getChildren())
+				{
+					if(child != window.closeBtn || child == window.closeBtn && window.showCloseButton)
+					{
+						minX = Math.min(minX, child.x);
+						minY = Math.min(minY, child.y);
+						maxX = Math.max(maxX, child.x + child.width);
+						maxY = Math.max(maxY, child.y + child.height);
+					}
+				}
+				this.setActualSize(maxX - minX, maxY - minY);
+
+				// now that we're sized we set our position
+				// right aligned, respecting border width
+				this.x = window.width - this.width - Number(window.getStyle("borderThicknessRight"));
+				// vertically centered
+				this.y = (window.titleBarOverlay.height - this.height) / 2;
 			}
-			this.setActualSize(maxX - minX, maxY - minY);
-
-			// now that we're sized we set our position
-			// right aligned, respecting border width
-			this.x = window.width - this.width - Number(window.getStyle("borderThicknessRight"));
-			// vertically centered
-			this.y = (window.titleBarOverlay.height - this.height) / 2;

 			// lay out the title field and icon (if present)
 			var tf:UITextField = window.getTitleTextField();


- bugfix: SimpleTween#setDirection now actually does something

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@814 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/tweens/SimpleTween.as
+++ src/reprise/tweens/SimpleTween.as
@@ -200,7 +200,10 @@
 		 */
 		public function setDirection(direction : int) : void
 		{
-			m_direction = direction;
+			if (direction != m_direction)
+			{
+				reverse();
+			}
 		}

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5009
Author:   rfrishbe@adobe.com
Date:     2009-02-19T06:06:50.044936Z

Log Message:
-----------
Adding events in AIR for automation so they'll know when a new window is created or when a FlexNativeMenu is created.  The window event is dispatched on the top level application when a new window is opened or closed.  The menu events are dispatched on the window when it's assigned or on the component if it's a context menu.  These events are just used for automation purposes.

QE Notes: -
Doc Notes: -
Bugs: SDK-18744, SDK-18985
Reviewer: Darrell
tests: checkintests, air menu/window tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as
+++ frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as
@@ -0,0 +1,144 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+import flash.events.Event;
+
+import mx.core.Window;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  The WindowExistenceEvent class is used as a global event
+ *  when a window gets created or destroyed.
+ *
+ *  @see mx.core.Window
+ *  @see mx.core.WindowedApplication
+ *
+ *  @playerversion AIR 1.1
+ */
+public class WindowExistenceEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The WindowExistenceEvent.WINDOW_CREATE constant defines the value of the
+     *  type property of the event object for a windowCreate event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
window	The window object that
+     *       was created.

+     *

+     *
+     *  @eventType windowCreate
+     */
+    public static const WINDOW_CREATE:String = "windowCreate";
+
+        /**
+     *  The WindowExistenceEvent.WINDOW_CLOSE constant defines the value of the
+     *  type property of the event object for a windowClose event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
window	The window object that
+     *       was closed.

+     *

+     *
+     *  @eventType windowClose
+     */
+    public static const WINDOW_CLOSE:String = "windowClose";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble
+     *  up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior
+     *  associated with the event can be prevented.
+     *
+     *  @param window The window object that was created or closed
+     */
+    public function WindowExistenceEvent(type:String, bubbles:Boolean = false,
+                                cancelable:Boolean = false, window:Window = null)
+	{
+	    super(type, bubbles, cancelable);
+
+        this.window = window;
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The window that was created or destroyed
+     */
+    public var window:Window;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new WindowExistenceEvent(type, bubbles, cancelable, window);
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17440
Author:   jasonsj@adobe.com
Date:     2010-08-21T01:02:38.151830Z

Log Message:
-----------
Fix initialization of titleDisplay ActionBar skin part.
Updated ActionBarSkin for latest XD spec for padding and button sizes.
Removed titleDisplay insertion into titleGroup behavior.
Updated SlideViewTransition to look for titleDisplay.

QE notes:
Doc notes:
Bugs:
SDK-27497 Clicks on controls near the ActionBar do not register.
Reviewer: gruehle
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</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/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.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/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
@@ -736,16 +736,9 @@
     public function get titleContent():Array
     {
         if (titleGroup)
-        {
-            if (BitFlagUtil.isSet(contentGroupProperties[TITLE_GROUP_PROPERTIES_INDEX], CONTENT_PROPERTY_FLAG))
-                return titleGroup.getMXMLContent();
-            else
-                return null;
-        }
-        else
-        {
+			return titleGroup.getMXMLContent();
+        else
             return contentGroupProperties[TITLE_GROUP_PROPERTIES_INDEX].content;
-        }
     }

     /**
@@ -755,16 +748,7 @@
     {
         if (titleGroup)
         {
-            if (value)
-            {
-                titleGroup.mxmlContent = value;
-            }
-            else
-            {
-                titleGroup.mxmlContent = (titleDisplay is IVisualElement)
-                    ? [titleDisplay] : null;
-            }
-
+            titleGroup.mxmlContent = value;
             contentGroupProperties[TITLE_GROUP_PROPERTIES_INDEX] =
                 BitFlagUtil.update(contentGroupProperties[TITLE_GROUP_PROPERTIES_INDEX] as uint,
                     CONTENT_PROPERTY_FLAG, value != null);
@@ -916,7 +900,6 @@
     {
         super.partAdded(partName, instance);

-        var defaultContent:Array; /*IVisualElement*/
         var group:Group;
         var index:int = -1;

@@ -931,10 +914,6 @@
         {
             group = titleGroup;
             index = TITLE_GROUP_PROPERTIES_INDEX;
-
-            // use titleContent if provided
-            defaultContent = (titleDisplay is IVisualElement)
-                ? [titleDisplay] : null;
         }
         else if (instance == actionGroup)
         {
@@ -944,12 +923,6 @@
         else if (instance == titleDisplay)
         {
             titleDisplay.text = title;
-
-            if ((titleGroup && !titleContent)
-                && (titleDisplay is IVisualElement))
-            {
-                titleGroup.mxmlContent = [titleDisplay];
-            }
         }

         if (index > -1)
@@ -964,10 +937,6 @@
                 group.mxmlContent = contentGroupProperties[index].content;
                 newContentGroupProperties = BitFlagUtil.update(newContentGroupProperties,
                     CONTENT_PROPERTY_FLAG, true);
-            }
-            else if (defaultContent)
-            {
-                group.mxmlContent = defaultContent;
             }

             if (contentGroupProperties[index].layout !== undefined)