Transferred from the Adobe Open Source Subversion Repository

Revision: 3621
Author:   smgilson@adobe.com
Date:     2008-10-14T15:21:00.927025Z

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

Checkin Test Passed: Yes
QA: No
Bug:
Doc: No

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -14,16 +14,14 @@
 import flash.ui.Keyboard;
 import mx.layout.ILayoutItem;
 import mx.layout.LayoutItemFactory;
-import mx.components.baseClasses.FxScrollBar;
+import mx.components.baseClasses.FxScrollBar;

 /**
- *  The VScrollBar (vertical ScrollBar) control lets you control
+ *  The FxVScrollBar (vertical ScrollBar) control lets you control
  *  the portion of data that is displayed when there is too much data
  *  to fit vertically in a display area.
  *
- *
This control extends the base ScrollBar control.

- *
- *
Although you can use the VScrollBar control as a stand-alone control,
+ *
Although you can use the FxVScrollBar control as a stand-alone control,
  *  you usually combine it as part of another group of components to
  *  provide scrolling functionality.

  */
@@ -52,7 +50,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  The size of the track on a VScrollBar equals the height of the track.
+     *  The size of the track, which equals the height of the track.
      */
     override protected function get trackSize():Number
     {
@@ -69,8 +67,8 @@
     //--------------------------------------------------------------------------

     /**
-     *  Position the thumb button according to the given thumbPos parameter,
-     *  relative to the current y location of the track in the scrollbar control.
+     *  Position the thumb button based on the specified thumb position,
+     *  relative to the current Y location of the track in the control.
      *
      *  @param thumbPos A number representing the new position of the thumb
      *  button in the control.
@@ -82,7 +80,7 @@
             var trackPos:Number = track ? track.y : 0;
             var layoutItem:ILayoutItem = LayoutItemFactory.getLayoutItemFor(thumb);
             layoutItem.setActualPosition(layoutItem.actualPosition.x,
-            					    	 Math.round(trackPos + thumbPos));
+                                         Math.round(trackPos + thumbPos));
         }
     }

@@ -103,11 +101,14 @@
     }

     /**
-     *  The position of the thumb on a VScrollBar is equal to the given
-     *  localY parameter.
-     *
-     *  @param localX The x position relative to the scrollbar control
-     *  @param localY The y position relative to the scrollbar control
+     *  Returns the position of the thumb button on an FxVScrollBar control,
+     *  which is equal to the localY parameter.
+     *
+     *  @param localX The X position relative to the scrollbar control.
+     *
+     *  @param localY The Y position relative to the scrollbar control.
+     *
+     *  @return The position of the thumb button.
      */
     override protected function pointToPosition(localX:Number,
                                                 localY:Number):Number
@@ -129,14 +130,30 @@
     }

     /**
-     *  If viewport is non null then ask it to compute the vertical
-     *  scroll position delta for page up/down.  The delta is added
-     *  to this scrollbar's value.
-     *
-     *  @see viewport
-     *  @see #setValue
-     *  @see IViewport#verticalScrollPositionDelta
-     */
+     *  If viewport is not null,
+     *  change the vertical scroll position for page up or page down by
+     *  scrolling the viewport.
+     *  This method calculates the amount to scroll by calling the
+     *  IViewport.verticalScrollPositionDelta() method
+     *  with either flash.ui.Keyboard.PAGE_UP
+     *  or flash.ui.Keyboard.PAGE_DOWN.
+     *  It then calls the setValue() method to
+     *  set the IViewport.verticalScrollPosition property
+     *  to the appropriate value.
+     *
+     *
If viewport is null,
+     *  change the vertical scroll position for page up or page down by calling
+     *  the page() method.

+     *
+     *  @param increase Whether the page scroll is up (true) or
+     *  down (false).
+     *
+     *  @see mx.components.baseClasses.FxTrackBase#page()
+     *  @see mx.components.baseClasses.FxTrackBase#setValue()
+     *  @see mx.core.IViewport
+     *  @see mx.core.IViewport#verticalScrollPosition
+     *  @see mx.core.IViewport#verticalScrollPositionDelta()
+    */
     override public function page(increase:Boolean = true):void
     {
         if (!viewport)
@@ -146,13 +163,29 @@
     }

     /**
-     *  If viewport is non null then ask it to compute the verical
-     *  scroll position delta for step up/down.  The delta is added
-     *  to this scrollbar's value.
-     *
-     *  @see viewport
-     *  @see #setValue
-     *  @see IViewport#verticalScrollPositionDelta
+     *  If viewport is not null,
+     *  change the vertical scroll position for line up or line down by
+     *  scrolling the viewport.
+     *  This method calculates the amount to scroll by calling the
+     *  IViewport.verticalScrollPositionDelta() method
+     *  with either flash.ui.Keyboard.RIGHT
+     *  or flash.ui.Keyboard.LEFT.
+     *  It then calls the setValue() method to
+     *  set the IViewport.verticalScrollPosition property
+     *  to the appropriate value.
+     *
+     *
If viewport is null,
+     *  change the vertical scroll position for line up or line down by calling
+     *  the step() method.

+     *
+     *  @param increase Whether the line scoll is up (true) or
+     *  down (false).
+     *
+     *  @see mx.components.baseClasses.FxTrackBase#step()
+     *  @see mx.components.baseClasses.FxTrackBase#setValue()
+     *  @see mx.core.IViewport
+     *  @see mx.core.IViewport#verticalScrollPosition
+     *  @see mx.core.IViewport#verticalScrollPositionDelta()
      */
     override public function step(increase:Boolean = true):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19260
Author:   cframpto@adobe.com
Date:     2010-12-10T14:48:52.501638Z

Log Message:
-----------
SparkButtonSkin for left and right icon placement should set textAlign to start rather than left so it will work correctly for rtl layouts.  In DataGrid, fix misnumbered steps in comments.

QE notes:
Doc notes:
Bugs: SDK-28848
Reviewer: Darrell
Tests run: cyclone
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/skins/SparkButtonSkin.as
+++ frameworks/projects/spark/src/spark/skins/SparkButtonSkin.as
@@ -492,7 +492,7 @@

                 var alignment:String =
                     iconPlacement == IconPlacement.LEFT ||
-                    iconPlacement == IconPlacement.RIGHT ? "left" : "center"
+                    iconPlacement == IconPlacement.RIGHT ? "start" : "center"

                 IStyleClient(labelDisplay).setStyle("textAlign", alignment);
             }


Fix bug: need to check for isNaN() on the httpCode.

--- HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPHLSNetStream.as
+++ HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPHLSNetStream.as
@@ -1213,9 +1213,9 @@
 					if(event.url.match(/.m3u8/))
 					{
 						var httpCode:int = parseInt(event.reason);
-						if( httpCode >= 400 )
-						{
-							// There's no point in retrying.
+						if( !isNaN(httpCode) && httpCode >= 400 )
+						{
+							// There's no point in retrying--some 400 level error, which is something bunk client-side.
 							dispatchEvent( new NetStatusEvent( NetStatusEvent.NET_STATUS, false, false, {code:event.reason, level:"error", details:event.url}));
 						}
 						else


LegacyRunnerTest now explicitly sends a context Sprite to run().

--- asunit-4.0/test/asunit/runners/LegacyRunnerTest.as
+++ asunit-4.0/test/asunit/runners/LegacyRunnerTest.as
@@ -5,6 +5,7 @@
     import asunit.framework.Result;
     import asunit.framework.TestCase;
     import asunit.support.LegacyTestCase;
+	import flash.display.Sprite;

     import flash.events.Event;

@@ -33,7 +34,7 @@
                 assertEquals(2, testRunner.result.runCount);
             };
             testRunner.addEventListener(Event.COMPLETE, addAsync(handler));
-            testRunner.run(LegacyTestCase);
+            testRunner.run(LegacyTestCase, null, new Sprite());
         }
     }
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8556
Author:   clucier@adobe.com
Date:     2009-07-14T20:28:40.866257Z

Log Message:
-----------
Reverting revision 8551.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/ErrorSkin.as
@@ -19,7 +19,6 @@
 import flash.filters.GlowFilter;
 import flash.geom.ColorTransform;
 import flash.geom.Matrix;
-import flash.geom.Matrix3D;
 import flash.geom.Point;
 import flash.geom.Rectangle;

@@ -159,15 +158,7 @@
         // If the error object has a focus skin, make sure it is hidden.
         if (errorObject.focusObj)
             errorObject.focusObj.visible = false;
-
-        // Ensure no 3D transforms apply, as this skews our snapshot bitmap.
-        var transform3D:Matrix3D = null;
-        if (errorObject.transform.matrix3D)
-        {
-            transform3D = errorObject.transform.matrix3D;
-            errorObject.transform.matrix3D = null;
-        }
-
+
         // Temporary solution for error drawing on CheckBox and RadioButton components.
         // Hide the label before drawing the focus.
         // FIXME (gruehle): Figure out a better solution.
@@ -228,10 +219,6 @@
         // of overlaying the error skin on the border of the component.
         bitmap.width = errorObject.width;
         bitmap.height = errorObject.height;
-
-        // Restore original 3D matrix if applicable.
-        if (transform3D)
-            errorObject.transform.matrix3D = transform3D;
     }

     private static var classDefCache:Object = {};


Failing test for error on resolving unregistered scope

--- src/asfac.tests/src/com/thedevstop/asfac/ResolutionTests.as
+++ src/asfac.tests/src/com/thedevstop/asfac/ResolutionTests.as
@@ -1,9 +1,11 @@
 package com.thedevstop.asfac
 {
+	import adobe.utils.CustomActions;
 	import asunit.framework.TestCase;
 	import com.thedevstop.asfac.stubs.ConstructorWithRequiredParameters;
 	import com.thedevstop.asfac.stubs.HasObjectProperty;
 	import com.thedevstop.asfac.stubs.IPoint;
+	import flash.display.AVM1Movie;
 	import flash.errors.IllegalOperationError;
 	import flash.utils.Dictionary;

@@ -127,5 +129,20 @@
 			var instance:Object = factory.resolve(Object);
 			assertSame(instance, obj);
 		}
+
+		public function test_should_throw_error_when_resolving_with_scope_that_is_not_registered():void
+		{
+			var factory:AsFactory = new AsFactory();
+
+			var obj:Object = { numbers:[1, 2, 3] };
+			factory.registerInstance(obj, Object);
+
+			var resolveFunction:Function =function ():void
+			{
+				var instance:Object = factory.resolve(Object, "nonDefaultScope");
+			};
+
+			assertThrows(ArgumentError, resolveFunction);
+		}
 	}
 }


Added failing test for singleton callback resolution

--- src/asfac.tests/src/com/thedevstop/asfac/ResolutionTests.as
+++ src/asfac.tests/src/com/thedevstop/asfac/ResolutionTests.as
@@ -168,7 +168,23 @@
 			};
 			factory.register(resolveFunction, Dictionary, scope);

-			var instance:Dictionary = factory.resolve(Dictionary);
+			var instance:Dictionary = factory.resolve(Dictionary, scope);
+		}
+
+		public function test_should_pass_factory_into_callback_during_singleton_resolution():void
+		{
+			var factory:AsFactory = new AsFactory();
+
+			var scope:String = "nonDefaultScope";
+
+			var resolveFunction:Function = function (asFactory:AsFactory, scopeName:String):Object
+			{
+				assertSame(factory, asFactory);
+				return new Dictionary();
+			};
+			factory.register(resolveFunction, Dictionary, scope, true);
+
+			var instance:Dictionary = factory.resolve(Dictionary, scope);
 		}

 		public function test_should_pass_factory_and_scope_name_into_callback_during_resolution():void


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

--- frameworks/projects/advancedgrids/src/mx/styles/metadata/LeadingStyle.as
+++ frameworks/projects/advancedgrids/src/mx/styles/metadata/LeadingStyle.as
@@ -1,23 +1,2 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////

-/**
- *  Additional vertical space between lines of text.
- *
- *
The default value is 2.

- *
The default value for the ComboBox control is 0.

- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
 [Style(name="leading", type="Number", format="Length", inherit="yes")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 3222
Author:   jimurphy@adobe.com
Date:     2008-09-16T14:09:08.134976Z

Log Message:
-----------
Merged 3.0.x revisions 3157,3162,3165-3166,3168,3177,3180-3183,3185,3187,3189,3199 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<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/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.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/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
@@ -1097,7 +1097,7 @@
                     }
                 }
                 if (i >= headerItems.length)
-                    return;
+                    i = headerItems.length - 1;
             }

             if (visibleColumns[i].sortable)


Transferred from the Adobe Open Source Subversion Repository

Revision: 11951
Author:   hhillen@paciellogroup.com
Date:     2009-11-18T20:35:52.215971Z

Log Message:
-----------
Accessibility implementation support for the spark ToggleButton, DropDownListBase and ComboBox components.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.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/DropDownList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as
@@ -0,0 +1,136 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.accessibility
+{
+    import mx.core.UIComponent;
+    import mx.core.mx_internal;
+
+    import spark.components.supportClasses.ToggleButtonBase;
+
+    use namespace mx_internal;
+
+
+    /**
+     *  ToggleButtonAccImpl is a subclass of AccessibilityImplementation
+     *  which implements accessibility for the ToggleButton class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public class ToggleButtonAccImpl extends ButtonAccImpl
+    {
+        include "../core/Version.as";
+
+        //--------------------------------------------------------------------------
+        //
+        //  Class constants
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         */
+        private static const STATE_SYSTEM_PRESSED:uint = 0x00000008;
+
+        //--------------------------------------------------------------------------
+        //
+        //  Class methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Enables accessibility in the ToggleButton class.
+         *
+         *
This method is called by application startup code
+         *  that is autogenerated by the MXML compiler.
+         *  Afterwards, when instances of ToggleButton are initialized,
+         *  their accessibilityImplementation property
+         *  will be set to an instance of this class.

+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public static function enableAccessibility():void
+        {
+            ToggleButtonBase.createAccessibilityImplementation =
+                createAccessibilityImplementation;
+        }
+
+        /**
+         *  @private
+         *  Creates a ToggleButton's AccessibilityImplementation object.
+         *  This method is called from UIComponent's
+         *  initializeAccessibility() method.
+         */
+        mx_internal static function createAccessibilityImplementation(
+            component:UIComponent):void
+        {
+            component.accessibilityImplementation =
+                new ToggleButtonAccImpl(component);
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Constructor
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Constructor.
+         *
+         *  @param master The UIComponent instance that this AccImpl instance
+         *  is making accessible.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function ToggleButtonAccImpl(master:UIComponent)
+        {
+            super(master);
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Overridden methods: AccessibilityImplementation
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  @private
+         *  IAccessible method for returning the state of the ToggleButton.
+         *  States are predefined for all the components in MSAA.
+         *  Values are assigned to each state.
+         *  Depending upon the Togglebutton being pressed or released,
+         *  a value is returned.
+         *
+         *  @param childID uint
+         *
+         *  @return State uint
+         */
+        override public function get_accState(childID:uint):uint
+        {
+            var accState:uint = getState(childID);
+            if (ToggleButtonBase(master).selected)
+                accState |= STATE_SYSTEM_PRESSED;
+
+            return accState;
+        }
+
+    }
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11660
Author:   rfrishbe@adobe.com
Date:     2009-11-11T18:42:54.860139Z

Log Message:
-----------
Change IItemRendererOwner’s updateRenderer() method definition to:

/**
 *  Updates the renderer for re-use. This first prepares the item
 *  renderer for re-use by clearing out any stale properties
 *  as well as updating it with new properties.
 *
 *
The last thing this method should do is set the data property
 *  on the renderer.

 *
 *  @param renderer The item renderer.
 *  @param itemIndex The index of the data in the data provider
 *  @param data The data object this item renderer is representing
 *
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void;

Before, it only took one parameter, the renderer.  Now it takes 3.

The reason for this change is to make the code a little cleaner in terms of the separation between DataGroup and List.  Now DataGroup won’t do any work if the mx_internal _rendererUpdateDelegate is set.  If it is set (to a List for instance), then _rendererUpdateDelegate.updateRenderer(renderer, itemIndex, data) will be called.  This makes the updateRenderer() pass more clear because it’s all done in the rendererUpdateDelegate (rather than splitting it in DataGroup and ListBase).  It also makes it easier to get the ordering of properties correctly as we want the “data” property to be the last set property as part of the “item renderer contract”.

As part of this change, DataGroup is the default _rendererUpdateDelegate, and because of this it now implements IItemRendererOwner.  The only other method on IItemRendererOwner besides updateRenderer() is itemToLabel().  DataGroup already had a private itemToLabel() method, so I’m just making it public.

Also, I'm making label and itemIndex bindable to the "dataChange" event now.

QE notes: Please test that the data property is the last thing set
Doc notes: You could update the documentation around item renderers to mention that the data property should be the last thing set.
Bugs: SDK-19870, SDK-24086
Reviewer: Deepa
Tests run: checkintest, mustella list, listdragdrop, dropdownlist, combobox, buttonbar
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -15,6 +15,7 @@
 import flash.events.Event;

 import mx.collections.IList;
+import mx.core.IDataRenderer;
 import mx.core.IFactory;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
@@ -524,12 +525,22 @@
      *  @productversion Flex 4
      *
      */
-    public function updateRenderer(renderer:IVisualElement):void
-    {
+    public function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void
+    {
+        // set the owner
         renderer.owner = this;
-
+
+        // Set the index
         if (renderer is IItemRenderer)
-            IItemRenderer(renderer).label = itemToLabel(IItemRenderer(renderer).data);
+            IItemRenderer(renderer).itemIndex = itemIndex;
+
+        // set the label to the toString() of the data
+        if (renderer is IItemRenderer)
+            IItemRenderer(renderer).label = itemToLabel(data);
+
+        // always set the data last
+        if ((renderer is IDataRenderer) && (renderer !== data))
+            IDataRenderer(renderer).data = data;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 16754
Author:   cframpto@adobe.com
Date:     2010-07-01T01:10:56.986435Z

Log Message:
-----------
The following changes apply to Spark DataGrid only.   Code reviews have been deferred until the implementation is closer to completion.

In GridLayout.initializeItemRenderers, if the height for a row changes, make a 2nd pass thru the item renders in that row to resize them to the new height.  Use the new height when determining which rows are visible.

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -203,7 +203,7 @@
     {
         // TBD(hmuller):DTRT when the target changes
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  DataGrid Access
@@ -351,7 +351,7 @@
 	 *  @private
 	 *  Update the column widths for the columns visible beginning at scrollX, that will fit
 	 *  within the specified width.  The width of GridColumns that lack an explicit width is
-	 *  the maximuum of the preferred width of an item renderer for the grid's typicalItem,
+	 *  the maximum of the preferred width of an item renderer for the grid's typicalItem,
 	 *  and the preferredWidth of the corresponding ColumnHeaderBar item's renderer.
 	 *
 	 *  This method should be called *before* layoutItemRenderers().
@@ -468,6 +468,11 @@
         {
             newVisibleRowIndices.push(rowIndex);

+            // The offset for the columns in this row.
+            const irOffsetForRow:int = newVisibleItemRenderers.length;
+
+            // Returns the default height, if the row/cell height not previously
+            // set.
             var rowHeight:Number = gridDimensions.getRowHeight(rowIndex);
             for each (colIndex in newVisibleColumnIndices)
             {
@@ -479,7 +484,7 @@
                     var factory:IFactory = column.itemToRenderer(dataItem);
                     renderer = allocateGridElement(factory) as IVisualElement;
                 }
-
+
                 if (renderer.parent != itemRendererGroup)
                     itemRendererGroup.addElement(renderer);

@@ -491,10 +496,23 @@
                 gridDimensions.setCellHeight(rowIndex, colIndex, renderer.getPreferredBoundsHeight());
                 cellX += colWidth + colGap;
             }
-
-            // TBD: if gridDimensions.rowHeight is now larger, we need to make another
-            // pass to fix up the item renderer heights.
-
+
+            // If gridDimensions.rowHeight is now larger, we need to make another
+            // pass to fix up the item renderer heights.
+            const finalRowHeight:Number = gridDimensions.getRowHeight(rowIndex);
+            if (rowHeight != finalRowHeight)
+            {
+                rowHeight = finalRowHeight;
+                for each (colIndex in newVisibleColumnIndices)
+                {
+                    renderer = newVisibleItemRenderers[irOffsetForRow + colIndex];
+                    layoutGridElement(renderer, renderer.x, renderer.y,
+                                      renderer.width, rowHeight);
+                    gridDimensions.setCellHeight(
+                        rowIndex, colIndex, renderer.getPreferredBoundsHeight());
+                }
+            }
+
             cellX = startCellR.x;
             cellY += rowHeight + rowGap;

@@ -503,7 +521,7 @@
             else
                 availableHeight -= rowHeight + rowGap;
         }
-
+
         // Free renderers that aren't in use

         for each (var oldRenderer:IVisualElement in visibleItemRenderers)


Transferred from the Adobe Open Source Subversion Repository

Revision: 17609
Author:   cframpto@adobe.com
Date:     2010-09-08T18:50:34.924013Z

Log Message:
-----------
Implement getItemRendererAt for an IR that is not currently visible.

QE notes:
Doc notes:
Bugs: SDK-27533
Reviewer: Hans
Tests run: checkintests, cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -392,7 +392,6 @@

     /**
      *  @private
-     *  ToDo(cframpto): what is the proper way to get at this?
      */
     private function getColumnHeaderBar():ColumnHeaderBar
     {
@@ -2052,18 +2051,32 @@
         // TBD(hmuller)
         return new Vector.<Object>;
     }
-
-
-    /**
-     *  Returns a reference to the item renderer currently displayed at the
-     *  specified cell.  If the requested item renderer is not visible then
-     *  (each time this method is called) a new item renderer is created.  If
-     *  the specified is invalid, e.g. if rowIndex == -1,
-     *  then null is returned.
-     *
+
+    /**
+     *  If the requested item renderer is visible, returns a reference to
+     *  the item renderer currently displayed at the specified cell.  Once the
+     *  item renderer is no longer visible it is recycled and its properties
+     *  will be reset.
+     *
+     *
If the requested item renderer is not visible then,
+     *  each time this method is called, a new item renderer is created.  The
+     *  new item renderer is not visible

+     *
+     *
If the specified column doesn't have an explicit width, then the width
+     *  of this cell will be based on the typicalItem.  If a
+     *  typicalItem was not specified or hasn't been measured yet,
+     *  then the item renderer's width will default to 150.

+     *
+     *
If the grid property variableRowHeight is
+     *  true (the default) and an overall row height hasn't been
+     *  cached for the specified row, then the item renderer's height is based
+     *  on the typicalItem.  If the typicalItem wasn't
+     *  specified or has not been measured yet, then the item renderer's height
+     *  will default to 26.

+     *
      *  @param rowIndex The 0-based row index of the item renderer's cell.
      *  @param columnIndex The 0-based column index of the item renderer's cell.
-     *  @return The item renderer
+     *  @return The item renderer or null if the cell location is invalid.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2075,8 +2088,30 @@
         const visibleItemRenderer:IVisualElement = getVisibleItemRenderer(rowIndex, columnIndex);
         if (visibleItemRenderer)
             return visibleItemRenderer;
-        // TBD(hmuller): create an item renderer
-        return null;
+
+        // Create an item renderer.
+        var dataItem:Object = getDataProviderItem(rowIndex);
+        var column:GridColumn = getGridColumn(columnIndex);
+
+        // Invalid row or column.
+        if (dataItem == null || column == null)
+            return null;
+
+        const factory:IFactory = column.itemToRenderer(dataItem);
+        const renderer:IVisualElement = factory.newInstance() as IVisualElement;
+
+        grid.itemRendererGroup.addElement(renderer);
+
+        initializeItemRenderer(renderer, rowIndex, columnIndex, dataItem, false);
+
+        // The width/height may change later if the cell becomes visible.
+        var bounds:Rectangle = gridDimensions.getCellBounds(rowIndex, columnIndex);
+        layoutItemRenderer(renderer, bounds.x, bounds.y, bounds.width, bounds.height);
+
+        grid.itemRendererGroup.removeElement(renderer);
+        renderer.visible = false;
+
+        return renderer;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3935
Author:   hmuller@adobe.com
Date:     2008-10-28T23:06:19.450100Z

Log Message:
-----------
Fix for 17281, 17751, 17765, and PARB changes: ClipContent now defaults to false, defined ScrollUnit enum and changed IViewport ScrollPositionDelta methods to use it.   Added "get" prefix to the ScrollPositionDelta methods.

Changed the default value of the clipContent property in GroupBase
and FxContainer from true to false.

Scroller now sets the clipContent of its viewport to true.

Removed clipContent="false" from spark skins, since false is
now the default.

Removed a clipContent="false" hack from CircularScrollbar test.

Removed calls to updateScrollRect from layout updateDisplayList()
methods, since the scrollRect is no longer contingent on
the value of the contentWidth,Height properties.  To keep
the scrollRect in sync with a component's size, we call
layout.updateScrollRect() in GroupBase::updateDisplayList()
and FxContainer::updateDisplayList().

Revised (simplified) the LayoutBase::updateScrollRect ASDoc.

Provisional change to make the FxContainer clipContent property work
correctly.

LayoutBase method renames per PARB feedback:
verticalScrollPositionDelta() => getVerticalScrollPositionDelta()
horizontalScrollPositionDelta() => getHorizontalScrollPositionDelta()

Defined a new mx.core.ScrollUnit enum per PARB feedback.  The
IViewport getHorizontal,VerticalScrollPositionDelta() methods now take
a ScrollUnit type argument, instead of a (character code) uint.

QE Notes: clipContent and ScrollUnit changes will break tests
Doc Notes: None
Bugs: sdk-17751, sdk-17257, sdk-17765
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
@@ -12,13 +12,16 @@
 package mx.layout
 {

+import flash.events.Event;
 import flash.geom.Rectangle;
 import flash.ui.Keyboard;

 import mx.components.baseClasses.GroupBase;
+import mx.core.ScrollUnit;
+import mx.layout.ILayoutItem;
 import mx.utils.OnDemandEventDispatcher;

-
+
 public class LayoutBase extends OnDemandEventDispatcher
 {
     //--------------------------------------------------------------------------
@@ -132,7 +135,7 @@
     //  clipContent
     //----------------------------------

-    private var _clipContent:Boolean = true;
+    private var _clipContent:Boolean = false;

     [Inspectable(category="General")]

@@ -168,7 +171,7 @@
     /**
      *  @copy flex.intf.IViewport#horizontalScrollPositionDelta
      */
-    public function horizontalScrollPositionDelta(unit:uint):Number
+    public function getHorizontalScrollPositionDelta(unit:ScrollUnit):Number
     {
         var g:GroupBase = target;
         if (!g)
@@ -187,22 +190,22 @@

         switch (unit)
         {
-            case Keyboard.UP:
+            case ScrollUnit.LEFT:
                 return (scrollR.x <= 0) ? 0 : -1;

-            case Keyboard.DOWN:
+            case ScrollUnit.RIGHT:
                 return (scrollR.x >= maxDelta) ? 0 : 1;

-            case Keyboard.PAGE_UP:
+            case ScrollUnit.PAGE_LEFT:
                 return Math.max(minDelta, -scrollR.width);

-            case Keyboard.PAGE_DOWN:
+            case ScrollUnit.PAGE_RIGHT:
                 return Math.min(maxDelta, scrollR.width);

-            case Keyboard.HOME:
+            case ScrollUnit.HOME:
                 return minDelta;

-            case Keyboard.END:
+            case ScrollUnit.END:
                 return maxDelta;

             default:
@@ -213,7 +216,7 @@
     /**
      *  @copy flex.intf.IViewport#verticalScrollPositionDelta
      */
-    public function verticalScrollPositionDelta(unit:uint):Number
+    public function getVerticalScrollPositionDelta(unit:ScrollUnit):Number
     {
         var g:GroupBase = target;
         if (!g)
@@ -232,22 +235,22 @@

         switch (unit)
         {
-        	case Keyboard.UP:
+        	case ScrollUnit.UP:
         	    return (scrollR.y <= 0) ? 0 : -1;

-        	case Keyboard.DOWN:
+        	case ScrollUnit.DOWN:
         	    return (scrollR.y >= maxDelta) ? 0 : 1;

-            case Keyboard.PAGE_UP:
+            case ScrollUnit.PAGE_UP:
                 return Math.max(minDelta, -scrollR.height);

-            case Keyboard.PAGE_DOWN:
+            case ScrollUnit.PAGE_DOWN:
                 return Math.min(maxDelta, scrollR.height);

-            case Keyboard.HOME:
+            case ScrollUnit.HOME:
                 return minDelta;

-            case Keyboard.END:
+            case ScrollUnit.END:
                 return maxDelta;

             default:
@@ -277,51 +280,32 @@
     }

     /**
-     *  Conditionally sets the origin of the scrollRect to
+     *  If clipContent is true, sets the origin of the scrollRect to
      *  verticalScrollPosition,horizontalScrollPosition and its width
      *  width,height to w,h (the target's unscaled width,height).
      *
-     *  This method must be called by updateDisplayList after the
-     *  target's contentWidth and contentHeight properties have been
-     *  set to the display list's actual limits.
-     *
-     *  The target's scrollRect property is set if its contentWidth,Height
-     *  is larger than its width,height, or the target's
-     *  vertical,horizontalScrollPosition is non-zero.
-     *
-     *  If none of the above conditions are true, or if clipContent
-     *  is false, then the scrollRect is set to null.
-     *
+     *  If clipContent is false, sets the scrollRect to null.
+     *
      *  @param w The target's unscaled width.
      *  @param h The target's unscaled height.
      *
      *  @see target
      *  @see flash.display.DisplayObject#scrollRect
      *  @see updateDisplayList
-     *  @see mx.components.GroupBase#contentWidth
-     *  @see mx.components.GroupBase#contentHeight
      */
-    protected function updateScrollRect(w:Number, h:Number):void
-    {
-        var g:GroupBase = target;
-        if (!g)
-            return;
-
-        if (!clipContent)
+    public function updateScrollRect(w:Number, h:Number):void
+    {
+        var g:GroupBase = target;
+        if (!g)
+            return;
+
+        if (clipContent)
         {
-            g.scrollRect = null;
-            return;
-        }
-
-        var hsp:Number = horizontalScrollPosition;
-        var vsp:Number = verticalScrollPosition;
-        var cw:Number = g.contentWidth;
-        var ch:Number = g.contentHeight;
-
-        // Don't set the scrollRect needlessly.
-        if ((hsp != 0) || (vsp != 0) || (cw > w) || (ch > h))
+            var hsp:Number = horizontalScrollPosition;
+            var vsp:Number = verticalScrollPosition;
             g.scrollRect = new Rectangle(hsp, vsp, w, h);
-        else
+        }
+        else
             g.scrollRect = null;
     }


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

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


FLEX-34837 Making the code intention more explicit and removing an IntelliJ code analysis warning.

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -1450,7 +1450,7 @@
 					if (updatedItems[j].item == item)
 					{
 						// even if it is, if a different property changed, track that too.
-						var evts:Array = updatedItems[j].events;
+						var evts:Array = updatedItems[j].events as Array;
 						var l:int = evts.length;
 						for (var k:int = 0; k < l; k++)
 						{


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

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

 package mx.messaging.channels
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4205
Author:   clucier@adobe.com
Date:     2008-12-01T19:48:53.571431Z

Log Message:
-----------
Initial baselinePosition support for our new skinnable components.
QE Notes: Please wait until Evtim completes his baseline support in our new layouts to test.
Doc Notes: None
Reviewer: Glenn, Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</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/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -26,6 +26,6 @@
                         color.selected="0xA8C6EE" />
 		</fill>
 	</Rect>
-	<TextBox text="{data}" verticalCenter="0" left="3" right="3" top="6" bottom="4" />
+	<TextBox id="labelField" text="{data}" verticalCenter="0" left="3" right="3" top="6" bottom="4" />

 </ItemRenderer>


add ASDoc to explain the behavior of PhongEffect

--- src/aerys/minko/render/material/phong/PhongEffect.as
+++ src/aerys/minko/render/material/phong/PhongEffect.as
@@ -14,6 +14,30 @@
 	import aerys.minko.type.enum.ShadowMappingQuality;
 	import aerys.minko.type.enum.ShadowMappingType;

+    /**
+     *
The PhongEffect using the Phong lighting model to render the geometry according to
+     * the lighting setup of the scene. It supports an infinite number of lights/projected
+     * shadows and will automatically switch between singlepass and multipass rendering
+     * in order to give the best performances whenever possible.

+     *
+     *
Because of the Stage3D restrictions regarding the number of shader operations or
+     * the number of available registers, the number of lights might be to big to allow them
+     * to be rendered in a single pass. In this situation, the PhongEffect will automatically
+     * fallback and use multipass rendering.

+     *
+     *
Multipass rendering is done as follow:

+     *

+     *
The "base" pass renders objects with one per-pixel directional lights with shadows,
+     * the lightmap and the ambient/emissive lighting.

+     *
Each "additional" pass (one per light) will render a single light with shadows and
+     * blend it using additive blending.

+     *

+     *
+     * The singlepass rendering will mimic this behavior in order to get preserve consistency.
+     *
+     * @author Jean-Marc Le Roux
+     *
+     */
 	public class PhongEffect extends Effect
 	{
         private var _singlePassShader   : Shader;


Implemented Feature #933 ArcBallCamera with customizable speed/acceleration/inertia (at least inertia)

--- src/aerys/minko/scene/controller/camera/ArcBallController.as
+++ src/aerys/minko/scene/controller/camera/ArcBallController.as
@@ -5,6 +5,7 @@
 	import aerys.minko.scene.node.ISceneNode;
 	import aerys.minko.scene.node.Scene;
 	import aerys.minko.type.math.Matrix4x4;
+	import aerys.minko.type.math.Quaternion;
 	import aerys.minko.type.math.Vector4;

 	import flash.display.BitmapData;
@@ -23,9 +24,14 @@

 		private var _enabled			: Boolean	= true;

+		private var _previousTime		: uint		= 0;
+
 		private var _distance			: Number	= 1.;
 		private var _yaw				: Number	= 0;
 		private var _pitch				: Number	= 0;
+		private var _newDistance		: Number	= 1.;
+		private var _newYaw				: Number	= 0;
+		private var _newPitch			: Number	= 0;
 		private var _update				: Boolean	= true;

 		private var _position			: Vector4	= new Vector4(0, 0, 0, 1);
@@ -39,6 +45,29 @@
 		private var _yawStep			: Number	= 0.01;
 		private var _pitchStep			: Number	= 0.01;

+		private var _inertia			: Number	= 1.0;
+		private var _interpolationSpeed	: Number	= 1;
+
+		public function get inertia() : Number
+		{
+			return _inertia;
+		}
+
+		public function set inertia(value : Number):void
+		{
+			_inertia = value;
+		}
+
+		public function get interpolationSpeed() : Number
+		{
+			return _interpolationSpeed;
+		}
+
+		public function set interpolationSpeed(value : Number):void
+		{
+			_interpolationSpeed = value;
+		}
+
 		public function get enabled() : Boolean
 		{
 			return _enabled;
@@ -58,11 +87,11 @@
 		 */
 		public function get distance() : Number
 		{
-			return _distance;
+			return _newDistance;
 		}
 		public function set distance(value : Number) : void
 		{
-			_distance = value;
+			_newDistance = value;
 			_update = true;
 		}

@@ -71,11 +100,11 @@
 		 */
 		public function get yaw() : Number
 		{
-			return _yaw;
+			return _newYaw;
 		}
 		public function set yaw(value : Number) : void
 		{
-			_yaw = value;
+			_newYaw = value;
 			_update = true;
 		}

@@ -84,11 +113,11 @@
 		 */
 		public function get pitch() : Number
 		{
-			return _pitch;
+			return _newPitch;
 		}
 		public function set pitch(value : Number)	: void
 		{
-			_pitch = value;
+			_newPitch = value;
 			_update = true;
 		}

@@ -175,7 +204,7 @@
 		{
 			super();

-			_pitch = Math.PI * .5;
+			_newPitch = Math.PI * .5;
 			_lookAt.changed.add(updateNextFrameHandler);
 			_up.changed.add(updateNextFrameHandler);
 		}
@@ -210,28 +239,50 @@
 														   destination	: BitmapData,
 														   time			: Number) : void
 		{
-			updateTargets();
-		}
-
-		private function updateTargets() : void
-		{
-			if (_update && _enabled)
+			updateTargets((time - _previousTime) * .001);
+			_previousTime = time;
+		}
+
+		private function clampValues() : void
+		{
+			if (_newDistance < _minDistance)
+				_newDistance = _minDistance;
+			if (_newDistance > _maxDistance)
+				_newDistance = _maxDistance;
+			if (_newPitch <= EPSILON)
+				_newPitch = EPSILON;
+			if (_newPitch > Math.PI - EPSILON)
+				_newPitch = Math.PI - EPSILON;
+		}
+
+		private function dampValues(time : Number, dampingFactor : Number) : void
+		{
+			_distance	= interpolate(_distance,	_newDistance,	time,	dampingFactor);
+			_pitch		= interpolate(_pitch,		_newPitch,		time,	dampingFactor);
+			_yaw		= interpolate(_yaw,			_newYaw, 		time,	dampingFactor);
+		}
+
+		private function updateTargets(time : Number = 1) : void
+		{
+			var enableInertia	: Boolean	= (_inertia != 1. && _interpolationSpeed != 1.);
+			if (enableInertia || (_update && _enabled))
 			{
-				if (_distance < _minDistance)
-					_distance = _minDistance;
-				if (_distance > _maxDistance)
-					_distance = _maxDistance;
-				if (_pitch <= EPSILON)
-					_pitch = EPSILON;
-				if (_pitch > Math.PI - EPSILON)
-					_pitch = Math.PI - EPSILON;
+				clampValues();
+
+				if (enableInertia)
+					dampValues(time * _interpolationSpeed, _inertia);
+				else
+				{
+					_yaw = _newYaw;
+					_pitch = _newPitch;
+					_distance = _newDistance;
+				}

 				_position.set(
 					_lookAt.x + _distance * Math.cos(_yaw) * Math.sin(_pitch),
 					_lookAt.y + _distance * Math.cos(_pitch),
 					_lookAt.z + _distance * Math.sin(_yaw) * Math.sin(_pitch)
 				);
-
 				TMP_MATRIX.lookAt(_lookAt, _position, _up);

 				var numTargets : uint = this.numTargets;
@@ -244,8 +295,8 @@

 		protected function mouseWheelHandler(e : MouseEvent) : void
 		{
-			_distance	-=	e.delta * _distanceStep;
-			_update		=	true;
+			_newDistance	-=	e.delta * _distanceStep;
+			_update			=	true;
 		}

 		protected function mouseMoveHandler(e : MouseEvent) : void
@@ -253,8 +304,8 @@
 			// compute position
 			if (e.buttonDown && _enabled)
 			{
-				_yaw	+= (_mousePosition.x - e.stageX) * _yawStep;
-				_pitch	+= (_mousePosition.y - e.stageY) * _pitchStep;
+				_newYaw		+= (_mousePosition.x - e.stageX) * _yawStep;
+				_newPitch		+= (_mousePosition.y - e.stageY) * _pitchStep;

 				_update = true;
 			}
@@ -266,5 +317,10 @@
 		{
 			_update = true;
 		}
+
+		private function interpolate(src : Number, dst : Number, dt : Number, factor : Number) : Number
+		{
+			return (((src * factor) + (dst * dt)) / (factor + dt));
+		}
 	}
 }


def: 5179 captions didn't work when there's no default

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

--- plugins/closedCaptionsPlugin/src/closedCaptionsPluginCode.as
+++ plugins/closedCaptionsPlugin/src/closedCaptionsPluginCode.as
@@ -35,7 +35,7 @@
 		[Bindable]
 		public var hasCaptions:Boolean;

-		public var defaultLanguageKey:String;
+		public var defaultLanguageKey:String = "";

 		//Glow parameters
 		private var _useGlow : Boolean;


Import fix.

Import fix.

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

--- src/main/as/com/threerings/crowd/chat/client/ChatDirector.as
+++ src/main/as/com/threerings/crowd/chat/client/ChatDirector.as
@@ -20,7 +20,6 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 package com.threerings.crowd.chat.client {
-import com.threerings.crowd.client.CrowdClient;
 import com.threerings.util.ArrayUtil;
 import com.threerings.util.Log;
 import com.threerings.util.Map;
@@ -43,6 +42,7 @@
 import com.threerings.util.Name;
 import com.threerings.util.TimeUtil;

+import com.threerings.crowd.client.CrowdClient;
 import com.threerings.crowd.data.BodyObject;
 import com.threerings.crowd.data.CrowdCodes;
 import com.threerings.crowd.data.PlaceObject;


- implemented support for delays in CSS property transitions

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

--- src/reprise/css/transitions/CSSPropertyTransition.as
+++ src/reprise/css/transitions/CSSPropertyTransition.as
@@ -11,6 +11,8 @@

 package reprise.css.transitions
 {
+	import flash.utils.getTimer;
+
 	import reprise.css.CSSProperty;

 	public class CSSPropertyTransition
@@ -24,7 +26,7 @@
 		public var easing : Function;

 		public var currentValue : CSSProperty;
-		public var currentRatio : Number;
+		public var currentRatio : Number = 0;
 		public var startTime : int;

 		public var hasCompleted : Boolean;
@@ -77,6 +79,8 @@
 			var oldStart : CSSProperty = this.startValue;
 			var oldEnd : CSSProperty = this.endValue;
 			var oldCurrent : CSSProperty = this.currentValue;
+			var oldDelay : CSSProperty = this.delay;
+			var oldStartTime : int = this.startTime;

 			this.endValue = endValue;
 			this.duration = duration;
@@ -96,19 +100,43 @@
 					timeOffset += 5;
 					ratio = easing(timeOffset, 0, 1, durationValue);
 				}
-				this.startTime -= timeOffset;
+				this.startTime -= timeOffset + delay.specifiedValue();
 			}
 			else
 			{
 				//let the transition start from the current value without adjusting time
 				this.startValue = oldCurrent;
+				if (currentRatio == 0)
+				{
+					//add new delay minus the delay already spent
+					var spentDelay : int = getTimer() - oldStartTime;
+					if (delay.specifiedValue() > spentDelay)
+					{
+						this.startTime -= spentDelay;
+					}
+					else
+					{
+						this.startTime -= delay.specifiedValue();
+					}
+					this.startTime -=  spentDelay - delay.specifiedValue();
+				}
+				else
+				{
+					//already moving, don't delay any further
+					this.startTime -= delay.specifiedValue();
+				}
 			}
 		}

 		public function setValueForTimeInContext(time : int, context : Object) : void
 		{
 			var durationValue : int = duration.valueOf() as int;
-			var currentTime : int = time - startTime;
+			var delayValue : int = delay.valueOf() as int;
+			var currentTime : int = time - startTime - delayValue;
+			if (currentTime < 0)
+			{
+				return;
+			}
 			if (durationValue <= currentTime)
 			{
 				hasCompleted = true;


Further FURTHER clarification in monster class comment

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -89,7 +89,8 @@
 		 * because the original is completely closed and private, and unable
 		 * to be properly extended to override the desired functionality.
 		 * By duplicating it, we can modify the alternate audio stream
-		 * data instantiation to suit our needs.
+		 * data instantiation to suit our needs; specifically, the
+		 * changeAudioStreamTo() method.
 		 *
 		 * The org.osmf.net.httpstreaming namespace is required due to
 		 * internal namespace usage.


Removed unused variable in open door script.


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

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

 package mx.core
 {


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

--- frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as
@@ -0,0 +1,119 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc.soap
+{
+
+import mx.rpc.wsdl.WSDLOperation;
+import mx.rpc.xml.IXMLDecoder;
+import mx.rpc.xml.SchemaConstants;
+
+[ExcludeClass]
+
+/**
+ * Decodes the SOAP response for a particular operation.
+ *
+ */
+public interface ISOAPDecoder extends IXMLDecoder
+{
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Determines whether or not a single or empty return value for an output
+     * message part that is defined as an array should be returned as an array
+     * containing one (or zero, respectively) elements. This is applicable for
+     * document/literal "wrapped" web services, where one or more of the elements
+     * that represent individual message parts in the "wrapper" sequence could
+     * have the maxOccurs attribute set with a value greater than 1. This is a
+     * hint that the corresponding part should be treated as an array even if
+     * the response contains zero or one values for that part. Setting
+     * forcePartArrays to true will always create an array for parts defined in
+     * this manner, regardless of the number of values returned. Leaving
+     * forcePartArrays as false will only create arrays if two or more elements
+     * are returned.
+     */
+    function get forcePartArrays():Boolean;
+    function set forcePartArrays(value:Boolean):void;
+
+    /**
+     * Determines whether the decoder should ignore whitespace when processing
+     * the XML of a SOAP-encoded response. The default should be
+     * true and thus whitespace not preserved. If an XML Schema
+     * type definition specifies a whiteSpace restriction set to
+     * preserve then ignoreWhitespace must first be set to false.
+     * Conversely, if a type whiteSpace restriction is set to
+     * replace or collapse then that setting is
+     * be honored even if ignoreWhitespace is set to false.
+     */
+    function get ignoreWhitespace():Boolean;
+    function set ignoreWhitespace(value:Boolean):void;
+
+    /**
+     * Determines how the SOAP-encoded XML result is decoded. A value of
+     * object specifies that the XML is decoded into an
+     * object structure as specified in the WSDL document. A value of
+     * xml specifies that the XML is left as XMLNodes. A
+     * value of e4x specifies that the XML will be accessible
+     * using ECMAScript for XML (E4X) expressions.
+     */
+    function get resultFormat():String;
+    function set resultFormat(value:String):void;
+
+    /**
+     * Determines how the SOAP-encoded headers are decoded. A value of
+     * object specifies that each header XML node is decoded
+     * into a SOAPHeader object, and its content property is
+     * an object structure as specified in the WSDL document. A value of
+     * xml specifies that the XML is left as XMLNodes. A
+     * value of e4x specifies that the XML should be accessible
+     * using ECMAScript for XML (E4X) expressions.
+     */
+    function get headerFormat():String;
+    function set headerFormat(value:String):void;
+
+    /**
+     * Determines the type of the default result object for calls to web services
+     * that define multiple parts in the output message. A value of "object"
+     * specifies that the lastResult object will be an Object with named properties
+     * corresponding to the individual output parts. A value of "array" would
+     * make the lastResult an array, where part values are pushed in the order
+     * they occur in the body of the SOAP message. The default value for document-
+     * literal web services is "object". The default for rpc services is "array".
+     * The multiplePartsFormat property is applicable only when
+     * resultFormat="object" and ignored otherwise.
+     */
+    function get multiplePartsFormat():String;
+    function set multiplePartsFormat(value:String):void;
+
+    /**
+     * A WSDLOperation defines the SOAP binding styles and specifies how to
+     * decode a SOAP result.
+     */
+    function get wsdlOperation():WSDLOperation;
+    function set wsdlOperation(value:WSDLOperation):void;
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Decodes a SOAP response into a result and headers.
+     */
+    function decodeResponse(response:*):SOAPResult;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6133
Author:   jszeto@adobe.com
Date:     2009-04-10T20:37:18.082983Z

Log Message:
-----------
Moved Group scaleGrid error message into localization resource

SDK-17014 String localization in Gumbo

Moved into components.properties.

QE Notes: None
Doc Notes: None
Bugs: SDK-17014
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/bundles/en_US/components.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -740,7 +740,7 @@
         	if (isValidScaleGrid())
         	{
 	        	if (numChildren > 0)
-	        		throw new Error("ScaleGrid properties can not be set on this Group since at least one child element is a DisplayObject.");
+	        		throw new Error(resourceManager.getString("components", "scaleGridGroupError"));

 	        	super.scale9Grid = new Rectangle(scaleGridLeft,
 	        							   scaleGridTop,


Transferred from the Adobe Open Source Subversion Repository

Revision: 12052
Author:   clucier@adobe.com
Date:     2009-11-20T18:38:19.094091Z

Log Message:
-----------
We now issue runtime warnings for incompatible embedded fonts as we detect their use.

QE notes: You might want to create a couple tests around this.
Doc notes: None.
Bugs: SDK-23920.
Reviewer: Alex, Darrell
Tests run: Checkin
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/core.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -607,46 +607,28 @@
 		return elementFormat;
 	}

-	/**
-	 *  @private
-	 *  Uses the component's CSS styles to determine the module factory
-	 *  that should creates its TextLines.
-	 */
-	private function getEmbeddedFontContext():IFlexModuleFactory
-	{
-		var moduleFactory:IFlexModuleFactory;
-
-		var fontLookup:String = getStyle("fontLookup");
-		if (fontLookup != FontLookup.DEVICE)
-        {
-			var font:String = getStyle("fontFamily");
-			var bold:Boolean = getStyle("fontWeight") == "bold";
-			var italic:Boolean = getStyle("fontStyle") == "italic";
-
+    /**
+     *  @private
+     *  Uses the component's CSS styles to determine the module factory
+     *  that should creates its TextLines.
+     */
+    private function getEmbeddedFontContext():IFlexModuleFactory
+    {
+        var moduleFactory:IFlexModuleFactory;
+
+        var fontLookup:String = getStyle("fontLookup");
+        if (fontLookup != FontLookup.DEVICE)
+        {
+            var font:String = getStyle("fontFamily");
+            var bold:Boolean = getStyle("fontWeight") == "bold";
+            var italic:Boolean = getStyle("fontStyle") == "italic";
+
+            var localLookup:ISystemManager =
+                fontContext && fontContext is ISystemManager ?
+                ISystemManager(fontContext) : systemManager;
+
             moduleFactory = embeddedFontRegistry.getAssociatedModuleFactory(
-            	font, bold, italic,
-                this, fontContext);
-
-            // If we found the font, then it is embedded.
-            // But some fonts are not listed in info()
-            // and are therefore not in the above registry.
-            // So we call isFontFaceEmbedded() which gets the list
-            // of embedded fonts from the player.
-            if (!moduleFactory)
-            {
-                var sm:ISystemManager;
-                if (fontContext != null && fontContext is ISystemManager)
-                	sm = ISystemManager(fontContext);
-                else if (parent is IUIComponent)
-                	sm = IUIComponent(parent).systemManager;
-
-                staticTextFormat.font = font;
-                staticTextFormat.bold = bold;
-                staticTextFormat.italic = italic;
-
-                if (sm != null && sm.isFontFaceEmbedded(staticTextFormat))
-                    moduleFactory = sm;
-            }
+                font, bold, italic, this, fontContext, localLookup, true);
         }

         if (!moduleFactory && fontLookup == FontLookup.EMBEDDED_CFF)
@@ -657,7 +639,7 @@
         }

         return moduleFactory;
-	}
+    }

     /**
      *  @private


fix panel background styling

fix panel background styling

--- frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
+++ frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
@@ -20,6 +20,11 @@
 {
 	import org.apache.flex.core.IPanelModel;

+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;
+    }
+
 	[Event(name="close", type="org.apache.flex.events.Event")]

 	/**
@@ -103,6 +108,14 @@
 		{
 			IPanelModel(model).showCloseButton = value;
 		}
-
+
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+            super.createElement();
+            element.className = "Panel";
+            typeNames = "Panel";
+            return element;
+        }
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21504
Author:   aaltman@adobe.com
Date:     2011-06-30T16:58:51.113669Z

Log Message:
-----------
Initial checkin of StageText-based skins for mobile TextInput and TextArea. New default skins have not been changed yet. Skins use native text controls on Android and iOS devices.

QE notes: Padding isn't correct yet. Skins do not yet work on iOS because of runtime bug 2906305.
Doc notes:
Bugs:
Reviewer: Carol Frampton, Jason Szeto, Alex Harui
Tests run: Checkin tests, focusManager tests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="A">/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/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -580,6 +580,14 @@
             return null;

         var o:InteractiveObject = stage.focus;
+
+        // If a Stage* object (such as StageText or StageWebView) has focus,
+        // stage.focus will be set to null. Much of the focus framework is not
+        // set up to handle this. So, if stage.focus is null, we return the last
+        // IFocusManagerComponent that had focus.
+        if (!o && _lastFocus)
+            return _lastFocus;
+
         return findFocusManagerComponent(o);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5647
Author:   pfarland@adobe.com
Date:     2009-03-27T13:59:54.760468Z

Log Message:
-----------
Fixing programmatic usages of 'mx.components' to the spark equivalent after the rename.

Also fixing calls to StyleManager.getStyleDeclaration() that use an unqualified type name. Type selectors should be referenced via fully qualified ActionScript class names at runtime. When compatibility version is set to 3, getStyleDeclaration will remove the package name to match type selectors in the legacy unqualified manner.

QE: This fixes bug SDK-20253, and potentially a few other edge cases like the CursorManager RTE.
Doc: No
Checkintests: Pass

Bugs:
SDK-20253 - [rename_work] Spark RadioButton and CheckBox focus ring now highlights the label of the RadioButton

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>

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

--- frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as
+++ frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as
@@ -55,7 +55,7 @@
 		super();

 		var cursorManagerStyleDeclaration:CSSStyleDeclaration =
-			StyleManager.getStyleDeclaration("CursorManager");
+			StyleManager.getStyleDeclaration("mx.managers.CursorManager");

 		var cursorClass:Class =
 			cursorManagerStyleDeclaration.getStyle("busyCursorBackground");


set ALLOW_PLUGINS = false

set ALLOW_PLUGINS = false

--- WeaveUI/src/weave/Weave.as
+++ WeaveUI/src/weave/Weave.as
@@ -83,7 +83,7 @@
 	 */
 	public class Weave
 	{
-		public static var ALLOW_PLUGINS:Boolean = true; // TEMPORARY
+		public static var ALLOW_PLUGINS:Boolean = false; // TEMPORARY
 		public static var debug:Boolean = false;

 		{ /** begin static code block **/


Transferred from the Adobe Open Source Subversion Repository

Revision: 6112
Author:   jszeto@adobe.com
Date:     2009-04-10T00:52:20.424522Z

Log Message:
-----------
DropDownList Bug Fixes

- Added functionality to keep the anchor button in the down state when the dropDown is open.
- Changed SkinnableDataContainer's dataGroup skin part from required to optional. Added some null check protection to List, and ListBase. Changed the DropDownListSkin to only include the dropDown in the open state.

Bug Fixes:

SDK-20534 - DropDownList does not gray out text when disabled

Updated the skin to set the alpha in the disabled state

SDK-20532 - When using scroll bar on the dropDown of a DropDownList the dropDown closes

Added dropDown skinPart that defines the area that doesn't automatically close DropDownList on a mouseDown

SDK-19868 - Gumbo DropDownList should support symbolColor style

Changed the down arrow in the DropDownListButtonSkin to use a radialGradient fill instead of a DropShadowFilter. Also, the PopUp component now passes its styles along to its content.

SDK-19572 - DropDownList popup doesnt close or move when resizing browser window

Added a systemManager resize handler that closes the dropDown

SDK-20535 - DropDownList text styles are not passed on to dropDown and no dropDown styles exist

The PopUp component now passes its styles along to its content.

SDK-20555 - Spark DropDownList should size itself a bit better so partial rows arent displayed if possible

Changed the default size of the dropDown from 140 to 134. This should handle this issue if the DropDownList is using the default item renderer

QE Notes:
Doc Notes: Added dropDown skin part to DropDownList
Bugs: SDK-20534, SDK-20532, SDK-19868, SDK-19572, SDK-20535, SDK-20555
Reviewer: Glenn

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

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -90,7 +90,13 @@
 	 */
 	public function set content(value:UIComponent):void
 	{
+		if (_content == value)
+			return;
+
 		_content = value;
+
+		if (_content)
+			_content.styleName = this;
 		updateContentState();
 	}

@@ -300,4 +306,4 @@
 		}
 	}
 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17305
Author:   gruehle@adobe.com
Date:     2010-08-12T21:18:50.910120Z

Log Message:
-----------
This revision includes the following changes:
* Text skin parts for Spark components changed from TextBase and RichEditableText to IDisplayText and IEditableText
* TextBase implements IDisplayText
* RichEditableText implements IEditableText
* New mobile skins for TextInput and TextArea (TextArea appearance is placeholder for now)
* Add a TOUCH_SCROLL_STARTING handler to SkinnableTextBase. This handler prevents the touch scroll from happening if the text is selectable or editable.
* Change global contentBackgroundColor to #3F3F3F and mobile application backgroundColor to #484848

Now that text skin parts are interfaces they need to be cast to concrete types in a bunch of places. There are two general approaches taken here:
* For required functionality, cast to a known type like InteractiveObject
* For optional functionality, cast to the desired type using “as” and wrap the code with a null check.

QE notes: Mobile TextInput is ready for testing. TextArea has some issues with resizing, so testing should wait for now.
Doc notes: -
Bugs: -
Reviewer: Jason Szeto, Corey L.
Tests run: full mustella pass (thank you cyclone server!), checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkComboBoxAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/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/MobileThemeClasses.as</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/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="A">/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/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DefaultColumnHeaderRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableTextBaseAutomationImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -36,13 +36,12 @@
 import org.osmf.events.TimeEvent;
 import org.osmf.media.MediaPlayerState;

-import spark.components.mediaClasses.DynamicStreamingVideoSource;
 import spark.components.mediaClasses.MuteButton;
 import spark.components.mediaClasses.ScrubBar;
 import spark.components.mediaClasses.VolumeBar;
 import spark.components.supportClasses.ButtonBase;
+import spark.core.IDisplayText;
 import spark.components.supportClasses.SkinnableComponent;
-import spark.components.supportClasses.TextBase;
 import spark.components.supportClasses.ToggleButtonBase;
 import spark.events.TrackBaseEvent;

@@ -648,7 +647,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var currentTimeDisplay:TextBase;
+    public var currentTimeDisplay:IDisplayText;

     [SkinPart(required="false")]

@@ -764,7 +763,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var durationDisplay:TextBase;
+    public var durationDisplay:IDisplayText;

     [SkinPart(required="false")]


Fountains are only creatable for item locations

--- flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
+++ flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
@@ -87,6 +87,7 @@
 		errorText.text = placeMark.errorText;
 		qrCode.text = placeMark.qrCode;
 		qrImage.addEventListener(MouseEvent.CLICK, handleQRImageClick);
+		if(this.placeMark.contentType != AppConstants.CONTENTTYPE_ITEM_VAL) this.fountainPopupButton.visible = false;
 		if(placeMark.isFountain) this.fountainPopupButton.label = "Edit Fountain Settings";


Set Application.stageQuality to HIGH_16X16_LINEAR

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
@@ -21,6 +21,7 @@
     import flash.display.DisplayObject;
     import flash.display.Sprite;
     import flash.display.StageAlign;
+    import flash.display.StageQuality;
     import flash.display.StageScaleMode;
     import flash.events.IOErrorEvent;
     import flash.system.ApplicationDomain;
@@ -98,6 +99,8 @@
 			{
 				stage.align = StageAlign.TOP_LEFT;
 				stage.scaleMode = StageScaleMode.NO_SCALE;
+				stage.quality = StageQuality.HIGH_16X16_LINEAR;
+				trace("working");
 			}

             loaderInfo.addEventListener(flash.events.Event.INIT, initHandler);


Transferred from the Adobe Open Source Subversion Repository

Revision: 18884
Author:   jasonsj@adobe.com
Date:     2010-12-01T01:01:18.896589Z

Log Message:
-----------
Use authorDensity in Mobile theme

QE notes: By default, 240 devices should still report as 240. Mustella known goods should not be affected.
Doc notes:
Bugs:
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/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/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/supportClasses/ActionBarButtonSkinBase.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/CheckBoxSkin.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/supportClasses/TextSkinBase.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/ButtonSkin.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@1265603 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
@@ -14,8 +14,9 @@

 import flash.events.Event;

+import mx.core.DeviceDensity;
+
 import spark.components.TextInput;
-import spark.skins.mobile.supportClasses.MobileSkin;
 import spark.skins.mobile.supportClasses.TextSkinBase;
 import spark.skins.mobile160.assets.TextInput_border;
 import spark.skins.mobile240.assets.TextInput_border;
@@ -42,9 +43,9 @@

         useChromeColor = false;

-        switch (targetDensity)
+        switch (authorDensity)
         {
-            case MobileSkin.PPI240:
+            case DeviceDensity.PPI_240:
             {
                 borderClass = spark.skins.mobile240.assets.TextInput_border;
                 layoutCornerEllipseSize = 16;
@@ -106,6 +107,8 @@
             textDisplay.text = "Wj";
             textDisplay.commitStyles();

+            // FIXME (jasonsj) use measuredHeight
+            // textHeight = textDisplay.measuredHeight;
             textHeight = textDisplay.textHeight;
             textDisplay.text = oldText;
         }


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

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

 package mx.accessibility
 {