Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/IColumn.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/IColumn.as
@@ -0,0 +1,103 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+/**
+ *  ChartElements that can be clustered along the vertical axis
+ *  should implement this interface.
+ *  Any element implementing this interface can be used
+ *  as a child series of a ColumnSet element with its type property set to "clustered".
+ *  The ColumnSeries, HLOCSeries, CandleStickSeries, and ColumnSet classes
+ *  all implement this interface.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IColumn
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+	//  columnWidthRatio
+    //----------------------------------
+
+	/**
+	 *  Specifies the width of items relative to the category size.
+	 *  A value of 1 uses the entire space, while a value
+	 *  of 0.6 uses 60% of the item's available space.
+	 *  You typically do not set this property directly.
+	 *  A governing ColumSet or ColumnChart would implicitly assign this value.
+	 *  The actual item width used is the smaller of the
+	 *  columnWidthRatio and the maxColumnWidth
+	 *  properties.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	function set columnWidthRatio(value:Number):void;
+
+    //----------------------------------
+	//  maxColumnWidth
+    //----------------------------------
+
+	/**
+	 *  Specifies how wide to draw the items, in pixels.
+	 *  The actual item width used is the smaller of this property
+	 *  and the columnWidthRatio property.
+	 *  You typically do not set this property directly.
+	 *  The ColumSet or ColumnChart object assigns this value.
+	 *  The actual item width used is the smaller of the
+	 *  columnWidthRatio and maxColumnWidth
+	 *  properties.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	function set maxColumnWidth(value:Number):void;
+
+    //----------------------------------
+	//  offset
+    //----------------------------------
+
+	/**
+	 *  Specifies how far to offset the center of the items
+	 *  from the center of the available space, relative the category size.
+	 *  The range of values is a percentage in the range
+	 *  -100 to 100.
+	 *  Set to 0 to center the items in the space.
+	 *  Set to -50 to center the item
+	 *  at the beginning of the available space.
+	 *  You typically do not set this property directly.
+	 *  The ColumSet or ColumnChart object assigns this value.
+	 *
+	 *  @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	function set offset(value:Number):void;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 14744
Author:   klin@adobe.com
Date:     2010-03-12T23:33:39.865284Z

Log Message:
-----------
Merge revision 14741 from 4.x to trunk.

Adding ILayoutDirectionElement to address issues with non-styled components such as embedded bitmaps. Also, addressed issues with changing layoutDirection at runtime.

-Added ILayoutDirectionElement.as with the layoutDirection property and invalidateLayoutDirection(). I took them out of IVisualElement.
-Moved the mirroring code from FlexBitmap to BitmapAsset as well as SpriteAsset. Also, implemented ILayoutDirectionElement in both.
-Addressed issues with layoutDirection changing at runtime by adding logic in UIComponent and Container to call invalidateLayoutDirection() on all of their ILayoutDirectionElement children.
-Updated various other components to use the new interface.
-Updated the dependency checker.

QE notes: No
Doc notes: No
Bugs: SDK-25656, SDK-25685, SDK-25726, SDK-25758 , SDK-25776 , SDK-25784 , SDK-25791, SDK-25806
Reviewer: Jason, Carol
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexBitmap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as" copyfrom-rev="14741" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutDirectionElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -24,14 +24,14 @@
 import mx.core.IFlexDisplayObject;
 import mx.core.IFlexModule;
 import mx.core.IFlexModuleFactory;
+import mx.core.ILayoutDirectionElement;
 import mx.core.IUIComponent;
-import mx.core.IVisualElement;
+import mx.core.LayoutDirection;
 import mx.core.UIComponentGlobals;
 import mx.core.mx_internal;
 import mx.events.DragEvent;
 import mx.events.Request;
 import mx.managers.dragClasses.DragProxy;
-import mx.modules.IModule;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.IStyleManager2;
 import mx.styles.StyleManager;
@@ -338,9 +338,9 @@
         // If the target's layout is rtl that means the proxy origin x
         // is currently offset from the right edge of the dragInitiator. Fix that:
         var originX:Number = -xOffset;
-        if (dragInitiator is IVisualElement)
+        if (dragInitiator is ILayoutDirectionElement)
         {
-            if (IVisualElement(dragInitiator).layoutDirection == "rtl")
+            if (ILayoutDirectionElement(dragInitiator).layoutDirection == LayoutDirection.RTL)
                 originX += dragInitiator.getExplicitOrMeasuredWidth();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17350
Author:   klin@adobe.com
Date:     2010-08-17T17:59:48.307247Z

Log Message:
-----------
Add true states support to GridItemRenderer. Added the hovered property that was missing from IGridItemRenderer, and implemented it in GridItemRenderer and DefaultGridItemRenderer. GridLayout now also sets the hovered property correctly in initializeItemRenderer(). GridItemRenderer now sets the state correctly when the properties are changed. For now, we disable transitions at all times between states until Grid can support it.

QE notes: No
Doc notes: No
Bugs: SDK-27056, SDK-27262
Reviewer: Hans
Tests run: checkintests, DataGrid
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
@@ -52,7 +52,29 @@
     public function GridItemRenderer()
     {
         super();
-    }
+
+        setCurrentStateNeeded = true;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Private Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  True if the renderer has been created and commitProperties hasn't
+     *  run yet. See commitProperties.
+     */
+    private var setCurrentStateNeeded:Boolean = false;
+
+    /**
+     *  @private
+     *  A flag determining if this renderer should play any
+     *  associated transitions when a state change occurs.
+     */
+    mx_internal var playTransitions:Boolean = false;

     //--------------------------------------------------------------------------
     //
@@ -153,6 +175,37 @@
     }

     //----------------------------------
+    //  hovered
+    //----------------------------------
+    /**
+     *  @private
+     *  storage for the selected property
+     */
+    private var _hovered:Boolean = false;
+
+    /**
+     *  Set to true when the mouse is hovered over the item renderer.
+     *
+     *  @default false
+     */
+    public function get hovered():Boolean
+    {
+        return _hovered;
+    }
+
+    /**
+     *  @private
+     */
+    public function set hovered(value:Boolean):void
+    {
+        if (value == _hovered)
+            return;
+
+        _hovered = value;
+        setCurrentState(getCurrentRendererState(), playTransitions);
+    }
+
+    //----------------------------------
     //  rowIndex
     //----------------------------------

@@ -216,8 +269,8 @@
         if (_showsCaret == value)
             return;

-        // TBD(hmuller): state change
         _showsCaret = value;
+        setCurrentState(getCurrentRendererState(), playTransitions);
         dispatchChangeEvent("labelDisplayChanged");
     }

@@ -253,8 +306,8 @@
         if (_selected == value)
             return;

-        // TBD(hmuller): state change
         _selected = value;
+        setCurrentState(getCurrentRendererState(), playTransitions);
         dispatchChangeEvent("selectedChanged");
     }

@@ -282,8 +335,8 @@
         if (_dragging == value)
             return;

-        // TBD(hmuller): state change
         _dragging = value;
+        setCurrentState(getCurrentRendererState(), playTransitions);
         dispatchChangeEvent("draggingChanged");
     }

@@ -363,6 +416,67 @@
     //--------------------------------------------------------------------------

     /**
+     *  Returns the name of the state to be applied to the renderer. For example, a
+     *  very basic Grid item renderer would return the String "normal", "hovered",
+     *  or "selected" to specify the renderer's state.
+     *
+     *
A subclass of GridItemRenderer must override this method to return a value
+     *  if the behavior desired differs from the default behavior.

+     *
+     *  @return A string specifying the name of the state to apply to the renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    protected function getCurrentRendererState():String
+    {
+        if (dragging && hasState("dragging"))
+            return "dragging";
+
+        if (selected && showsCaret && hasState("selectedAndShowsCaret"))
+            return "selectedAndShowsCaret";
+
+        if (hovered && showsCaret && hasState("hoveredAndShowsCaret"))
+            return "hoveredAndShowsCaret";
+
+        if (showsCaret && hasState("normalAndShowsCaret"))
+            return "normalAndShowsCaret";
+
+        if (selected && hasState("selected"))
+            return "selected";
+
+        if (hovered && hasState("hovered"))
+            return "hovered";
+
+        if (hasState("normal"))
+            return "normal";
+
+        return null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        if (setCurrentStateNeeded)
+        {
+            setCurrentState(getCurrentRendererState(), playTransitions);
+            setCurrentStateNeeded = false;
+        }
+    }
+
+    /**
      *  @inheritDoc
      */
     public function prepare(willBeRecycled:Boolean):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 7287
Author:   chaase@adobe.com
Date:     2009-05-26T21:29:39.221182Z

Log Message:
-----------
Changed fixedThumbSize and smoothScrolling properties on ScrollBar to be styles instead, per a recent ARB decision.

QE Notes: None
Doc Notes: None
Bugs: sdk-21031
Reviewer: Glenn
tests: checkintests mustella gumbo/ScrollBar gumbo/Scroller

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -40,6 +40,19 @@
  *  @productversion Flex 4
  */
 [Style(name="symbolColor", type="uint", format="Color", inherit="yes", theme="spark")]
+
+/**
+ *  If true, the thumb's size along the scrollbar's axis will be
+ *  its preferred size.
+ *
+ *  @default false
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="fixedThumbSize", type="Boolean", inherit="yes")]

 /**
  *  Number of milliseconds after the first page event
@@ -66,6 +79,22 @@
  *  @productversion Flex 4
  */
 [Style(name="repeatInterval", type="Number", format="Time", inherit="no")]
+
+/**
+ * This style determines whether the scrollbar will animate
+ * smoothly when paging and stepping. When false, page and step
+ * operations will jump directly to the paged/stepped locations.
+ * When true, the scrollbar, and any content it is scrolling, will
+ * animate to that location.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="smoothScrolling", type="Boolean", inherit="yes")]

 /**
  *  The ScrollBar class helps to position
@@ -258,92 +287,6 @@
     //--------------------------------------------------------------------------

     //---------------------------------
-    // smoothScrolling
-    //---------------------------------
-    /**
-     * This property determines the default value smoothScrolling
-     * for all ScrollBars.
-     *
-     * @default true
-     * @langversion 3.0
-     * @playerversion Flash 10
-     * @playerversion AIR 1.5
-     * @productversion Flex 4
-     * @see #smoothScrolling
-     */
-    public static var smoothScrollingDefault:Boolean = true;
-
-    //---------------------------------
-    // smoothScrolling
-    //---------------------------------
-
-    /**
-     * @private
-     * Backing storage for the smoothScrolling property
-     */
-    private var _smoothScrolling:Boolean = smoothScrollingDefault;
-
-    /**
-     * This property determines whether the scrollbar will animate
-     * smoothly when paging and stepping. When false, page and step
-     * operations will jump directly to the paged/stepped locations.
-     * When true, the scrollbar, and any content it is scrolling, will
-     * animate to that location.
-     *
-     * @default true
-     *
-     * @langversion 3.0
-     * @playerversion Flash 10
-     * @playerversion AIR 1.5
-     * @productversion Flex 4
-     */
-    public function get smoothScrolling():Boolean
-    {
-        return _smoothScrolling;
-    }
-
-    public function set smoothScrolling(value:Boolean):void
-    {
-        _smoothScrolling = value;
-    }
-
-    //---------------------------------
-    // fixedThumbSize
-    //---------------------------------
-
-    private var _fixedThumbSize:Boolean = false;
-
-    /**
-     *  If true, the thumb's size along the scrollbar's axis will be
-     *  its preferred size.
-     *
-     *  @default false
-     *  @see #calculateThumbSize
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get fixedThumbSize():Boolean
-    {
-        return _fixedThumbSize;
-    }
-
-    /**
-     *  @private
-     */
-    public function set fixedThumbSize(value:Boolean):void
-    {
-        if (value == _fixedThumbSize)
-            return;
-
-        _fixedThumbSize = value;
-        invalidateSize();
-        invalidateDisplayList();
-    }
-
-    //---------------------------------
     // pageSize
     //---------------------------------

@@ -578,7 +521,7 @@
             val = Math.min(value + pageSize, maximum);
         else
             val = Math.max(value - pageSize, minimum);
-        if (smoothScrolling) {
+        if (getStyle("smoothScrolling")) {
             startAnimation(getStyle("repeatInterval"), val, Linear.getInstance());
             animatingSinglePage = true;
         }
@@ -745,7 +688,7 @@
                 dispatchEvent(new Event("change"));
             }

-            if (smoothScrolling)
+            if (getStyle("smoothScrolling"))
             {
                 systemManager.getSandboxRoot().addEventListener(MouseEvent.MOUSE_UP,
                     button_buttonUpHandler, true /*useCapture*/);
@@ -843,7 +786,7 @@
             newScrollPosition -= thumbSize/2;
             newScrollValue = positionToValue(newScrollPosition);
             var adjustedValue:Number = nearestValidValue(newScrollValue, valueInterval);
-            if (smoothScrolling &&
+            if (getStyle("smoothScrolling") &&
                 slideDuration != 0 &&
                 (maximum - minimum) != 0)
             {
@@ -1025,7 +968,7 @@
             return;
         }

-        if (smoothScrolling)
+        if (getStyle("smoothScrolling"))
         {
             // This gets called after an initial repeateDelay on a paging
             // operation, but after that we're just running the animation. This
@@ -1103,7 +1046,7 @@
         if (trackScrollTimer)
             trackScrollTimer.reset();

-        if (smoothScrolling && !animatingSinglePage)
+        if (getStyle("smoothScrolling") && !animatingSinglePage)
         {
             if (animator.isPlaying)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18139
Author:   hmuller@adobe.com
Date:     2010-10-12T19:02:33.052295Z

Log Message:
-----------
Data,Grid variableRowHeight is now false by default.

The DefaultGridItemRenderer and UITextFieldItemRenderer classes now configure their wordWrap property to match variableRowHeight, unless wordWrap is explicitly specified.

Fixed layoutItemRenderers() which had never (!) called the prepare()/discard() IGridItemRenderer methods.

Fixed GridDimensions/getTypicalContentHeight() - removed dependency on variableRowHeight.

QE notes: This commit's cyclone failures have been vetted
Doc notes:
Bugs: SDK-28179
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
@@ -68,8 +68,6 @@
     {
         super();

-        multiline = true;  // consistent with singleLine=false (the default)
-        wordWrap = true;
         autoSize = TextFieldAutoSize.NONE;

         addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20025
Author:   hmuller@adobe.com
Date:     2011-02-01T00:07:06.400929Z

Log Message:
-----------
TextFieldGridItemRendererInclude.as/updatePreferredSize() - now only sets the multiline property if it hasn't been explicitly set.

QE notes: One test excluded for new bitmap (Jacob)
Doc notes: Added material about the multiline property to DefaultGridItemRenderer, UITextFieldGridItemRenderer
Bugs: SDK-29261
Reviewer: Darrell
Tests run:
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/UITextFieldGridItemRenderer.as
@@ -59,16 +59,16 @@
  *  this renderer provides optimum performance on Microsoft Windows.
  *  It is based on TextField, not the Flash Text Engine (FTE), so it lacks support for
  *  some Spark text features and it does not support the FTE specific text styles.
- *
- *
UITextFieldGridItemRenderer inherits its the value of the
- *  layoutDirection property from its parent.
- *  It should not be set directly on UITextFieldGridItemRenderer.

  *
  *
You can control the label text wrapping by using the wordWrap property.
  *  For example, setting wordWrap="false" and variableRowHeight="false"
  *  creates fixed height cells whose labels do not wrap.
  *  If you do not explicitly set the wordWrap property, wordWrap
  *  will be set to the value of the grid's variableRowHeight property.

+ *
+ *
UITextFieldGridItemRenderer inherits its the value of the
+ *  layoutDirection property from its parent.
+ *  It should not be set directly on UITextFieldGridItemRenderer.

  *
  *
The UITextFieldGridItemRenderer class is not intended to be subclassed or copied.
  *  Create custom item renderers based on the GridItemRenderer class.


Transferred from the Adobe Open Source Subversion Repository

Revision: 20520
Author:   jasonsj@adobe.com
Date:     2011-03-01T21:48:59.996826Z

Log Message:
-----------
SDK-29671 Updated StyleableTextField.truncateToFit() to use scaled text measurement.
SDK-29672 Typo in styleChanged looked for textAlign instead of titleAlign. styleChanged corrected to work for init and styleName change.
SDK-29532 Added error checking invalid use of embedAsCFF=true in StyleableTextField.

QE notes: none
Doc notes: none
Bugs:
SDK-29671 ActionBar title is truncated with using application scaling and center alignment
SDK-29672 ActionBar titleAlign right does not work
SDK-29532 Setting embedAsCFF=true on embedded font and applying that font to the ViewNavigatorApplication global style causes runtime error in StyleableTextField
Reviewer: gruehle, rfrishbe
Tests run: checkintests, mobile cyclone
Is noteworthy for integration: no

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -24,6 +24,7 @@
 import flash.geom.Point;
 import flash.geom.Vector3D;
 import flash.text.Font;
+import flash.text.FontType;
 import flash.text.TextField;
 import flash.text.TextFieldAutoSize;
 import flash.text.TextFieldType;
@@ -470,31 +471,37 @@
         // if we can't find the value in our table let's calculate it
         if (isNaN(topOffset))
         {
+            // default offset is top gutter
+            topOffset = StyleableTextField.TEXT_HEIGHT_PADDING/2;
+
             // create sample text field
             var field:TextField = new TextField();
             field.defaultTextFormat = textFormat;
             field.embedFonts = isFontEmbedded(textFormat);
             field.textColor = 0x000000; // make sure our text is black so it will show up against white
             field.text = "T"; // use "T" as our standard
-            field.width = field.textWidth;
-            field.height = field.textHeight;
-
-            // draw the field into a bitmap data - note default bg color of bitmapData is white.
-            var bitmapData:BitmapData = new BitmapData(field.width, field.height);
-            bitmapData.draw(field);
-
-            // search vertically for the first non white pixel
-            var col:int = Math.round(bitmapData.width/2);
-            for (var i:int = 0; i < bitmapData.height; i++)
+
+            // Bitmap data requires non-zero size
+            if ((field.textWidth > 0) && (field.textHeight > 0))
             {
-                if (bitmapData.getPixel(col, i) != 0xFFFFFF)
-                    break;
+                field.width = field.textWidth;
+                field.height = field.textHeight;
+
+                // draw the field into a bitmap data - note default bg color of bitmapData is white.
+                var bitmapData:BitmapData = new BitmapData(field.width, field.height);
+                bitmapData.draw(field);
+
+                // search vertically for the first non white pixel
+                var col:int = Math.round(bitmapData.width/2);
+                for (var i:int = 0; i < bitmapData.height; i++)
+                {
+                    if (bitmapData.getPixel(col, i) != 0xFFFFFF)
+                        break;
+                }
+
+                if (i < bitmapData.height)
+                    topOffset = i;
             }
-
-            if (i == bitmapData.height)
-                topOffset = StyleableTextField.TEXT_HEIGHT_PADDING/2; // if we didn't find a non white pixel set top offset to top gutter
-            else
-                topOffset = i;

             // store the offset value in our look up table
             textTopOffsetTable[key] = topOffset;
@@ -1138,22 +1145,25 @@
         // could be due to rounding error.  Let's check that it's not.
         // Examples of rounding errors happen with "South Africa" and "Game"
         // with verdana.ttf.
-        if (originalText != "" && textWidth + TEXT_WIDTH_PADDING > w + 0.00000000000001)
+
+        if (originalText != "" && measuredTextSize.x > w + 0.00000000000001)
         {
             // This should get us into the ballpark.
-            var s:String = super.text = originalText;
+            var s:String = originalText;
+
             // TODO (rfrishbe): why is this here below...it does nothing (see SDK-26438)
             //originalText.slice(0,
             //    Math.floor((w / (textWidth + TEXT_WIDTH_PADDING)) * originalText.length));

-            while (s.length > 1 && textWidth + TEXT_WIDTH_PADDING > w)
+            while (s.length > 1 && (measuredTextSize.x > w))
             {
                 s = s.slice(0, -1);
                 super.text = s + truncationIndicator;
+
+                invalidateTextSizeFlag = true;
             }

             _isTruncated = true;
-            invalidateTextSizeFlag = true;
             invalidateBaselinePosition = true;
             invalidateTightTextHeight = true;

@@ -1182,7 +1192,11 @@
         for (var i:int = 0; i < embeddedFonts.length; i++)
         {
             var font:Font = Font(embeddedFonts[i]);
-            if (font.fontName == format.font)
+
+            // embedAsCFF is not supported for StyleableTextField
+            // reporting CFF as not embedded degrades to default device font
+            if (font.fontName == format.font &&
+                (font.fontType != FontType.EMBEDDED_CFF))
             {
                 var style:String = "regular";
                 if (format.bold && format.italic)


Transferred from the Adobe Open Source Subversion Repository

Revision: 20888
Author:   chiedozi@adobe.com
Date:     2011-03-17T01:22:06.499653Z

Log Message:
-----------
Merging hero_private revision 20886 into trunk

Modified Paths:
--------------
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
@@ -331,7 +331,9 @@
         if (startView)
         {
             startViewProps = { includeInLayout:startView.includeInLayout,
-                cacheAsBitmap:startView.cacheAsBitmap };
+                               cacheAsBitmap:startView.cacheAsBitmap,
+                               x:startView.x,
+                               y:startView.y};

             startView.includeInLayout = false;
             startView.cacheAsBitmap = true;
@@ -590,15 +592,15 @@
                 {
                     slideTargets.push(tabBar);

-                // When Uncovering, the cachedTabBar is not needed because the transition
-                // animates a cachedBitamp
-                if (cachedTabBar)
-                {
-                    cachedTabBar.includeInLayout = false;
-                    addCachedElementToGroup(transitionGroup, cachedTabBar, cachedTabBarGlobalPosition);
+                    // When Uncovering, the cachedTabBar is not needed because the transition
+                    // animates a cachedBitamp
+                    if (cachedTabBar)
+                    {
+                        cachedTabBar.includeInLayout = false;
+                        addCachedElementToGroup(transitionGroup, cachedTabBar, cachedTabBarGlobalPosition);
+                    }
                 }
             }
-        }
         }

         var slideDistance:Number;
@@ -697,6 +699,8 @@
             {
                 startView.includeInLayout = startViewProps.includeInLayout;
                 startView.cacheAsBitmap = startViewProps.cacheAsBitmap;
+                startView.x = startViewProps.x;
+                startView.y = startViewProps.y;

                 if (startView.contentGroup)
                 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2814
Author:   jimurphy@adobe.com
Date:     2008-08-12T13:49:02.219041Z

Log Message:
-----------
Merged 3.0.x revs [2798,2804,2811] -> trunk

Modified Paths:
--------------
<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/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
+++ frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
@@ -1862,6 +1862,17 @@
         return bounds;
     }

+   /**
+    *  @inheritdoc
+    */
+    public function deployMouseShields(deploy:Boolean):void
+    {
+        var me:MarshalEvent = new MarshalEvent(MarshalEvent.DRAG_MANAGER, false, false,
+                                    "mouseShield", deploy);
+        getSandboxRoot().dispatchEvent(me);
+    }
+
+
 	/**
 	 * @private
 	 *


Transferred from the Adobe Open Source Subversion Repository

Revision: 4492
Author:   gosmith@adobe.com
Date:     2009-01-12T22:47:10.154251Z

Log Message:
-----------
Simplified how an accessibility class gets hooked into its corresponding component class.

We now do the hooking in the static method enableAccessibility(), which is called by code that is autogenerated by the compiler. Previously this method did nothing and the hooking happened at static initialization time. This allows us to remove the static var accessibilityHooked and the static method hookAccessibility() in each accessibility class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as
+++ frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as
@@ -24,12 +24,9 @@
 use namespace mx_internal;

 /**
- *  The UIComponentAccProps class is the accessibility class for UIComponent.
+ *  UIComponentAccProps is a subclass of AccessibilityProperties
+ *  for use by various UIComponents.
  *  It is used to provide accessibility to Form, ToolTip, and Error ToolTip.
- *
- *  @helpid 3030
- *  @tiptext This is the UIComponent Accessibility Class.
- *  @review
  */
 public class UIComponentAccProps extends AccessibilityProperties
 {
@@ -37,44 +34,30 @@

     //--------------------------------------------------------------------------
     //
-    //  Class initialization
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Static variable triggering the hookAccessibility() method.
-     *  This is used for initializing UIComponentAccProps class to hook its
-     *  createAccessibilityImplementation() method to UIComponent class
-     *  before it gets called from UIComponent.initialize().
-     */
-    private static var accessibilityHooked:Boolean = hookAccessibility();
-
-    /**
-     *  @private
-     *  Static Method for swapping the
-     *  createAccessibilityImplementation method of UIComponent with
-     *  the UIComponentAccProps class.
-     */
-    private static function hookAccessibility():Boolean
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  Enables accessibility in the UIComponent class.
+	 *
+	 *
This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of UIComponent are initialized,
+	 *  their accessibilityProperties property
+	 *  will be set to an instance of this class.

+     */
+    public static function enableAccessibility():void
     {
         UIComponent.createAccessibilityImplementation =
             createAccessibilityImplementation;
-
-        return true;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class methods
-    //
-    //--------------------------------------------------------------------------
+    }

     /**
      *  @private
-     *  Method for creating the Accessibility class.
-     *  This method is called from UIComponent.
-     *  @review
+	 *  Creates a UIComponent's AccessibilityProperties object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
      */
     mx_internal static function createAccessibilityImplementation(
                                             component:UIComponent):void
@@ -83,15 +66,6 @@
             new UIComponentAccProps(component);
     }

-    /**
-     *  Method call for enabling accessibility for a component.
-     *  This method is required for the compiler to activate
-     *  the accessibility classes for a component.
-     */
-    public static function enableAccessibility():void
-    {
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Constructor


FLEX-34862

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -1980,13 +1980,13 @@

     /**
      *  @private
-     *  Called when an item has been removed from this component.
+     *  Called on rollover or roll out.
      */
     private function item_mouseEventHandler(event:MouseEvent):void
     {
         var type:String = event.type;
         type = TYPE_MAP[type];
-        if (hasEventListener(type))
+        if (hasEventListener(type) && dataProvider != null)
         {
             var itemRenderer:IItemRenderer = event.currentTarget as IItemRenderer;

@@ -1995,7 +1995,11 @@
                 itemIndex = itemRenderer.itemIndex;
             else
                 itemIndex = dataGroup.getElementIndex(event.currentTarget as IVisualElement);
-
+			// The event can be called by an item renderer which has already been removed from the dataProvider.
+			// In that case, bail out.
+            if(itemIndex < 0 || itemIndex >= dataProvider.length)
+				return;
+
             var listEvent:ListEvent = new ListEvent(type, false, false,
                                                     event.localX,
                                                     event.localY,


def: 3430 sometimes KDP started to play after change media and no autoPlay

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

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -703,6 +703,7 @@
 					break;

 				case NotificationType.PLAYER_PLAY_END:
+					_mediaProxy.vo.singleAutoPlay = false;
 					cleanMedia();
 					kMediaPlayer.showThumbnail();
 					break;


Transferred from the Adobe Open Source Subversion Repository

Revision: 22118
Author:   jasonsj@adobe.com
Date:     2011-08-19T22:45:54.903069Z

Log Message:
-----------
SDK-31259 CalloutSkin graphic ordering
SDK-29673 default button skins for ActionBar buttons.

Update CalloutArrow to match spec, useBackgroundGradient should be protected.

Update mobile skins test app with emphasized examples and fix Callout examples to use to contentBackgroundAppearance.

QE notes: Fixed regression from contentBackgroundAppearance. Update baselines for ActionBar accentColor tests.
Doc notes: ActionBar buttons now support emphasized (i.e. accentColor)
Bugs:
SDK-31259 slight difference in callout content for 320 and 240/160 runs
SDK-29673 accentColor not working inside ActionBarsdk
Reviewer: tkraikit, betravis
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/CalloutContentBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as
@@ -0,0 +1,68 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.skins.mobile
+{
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  Emphasized button uses accentColor instead of chromeColor. Replaces the
+ *  TransparentActionButtonSkin.
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 3
+ *  @productversion Flex 4.5.2
+ */
+public class DefaultTransparentActionButtonSkin extends TransparentActionButtonSkin
+{
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 3
+     *  @productversion Flex 4.5.2
+     *
+     */
+    public function DefaultTransparentActionButtonSkin()
+    {
+        super();
+
+        fillColorStyleName = "accentColor";
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * @private
+     */
+    override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        // omit super.drawBackground() to drawRect instead
+        // always draw accentColor regardless of skin state
+        graphics.beginFill(getStyle(fillColorStyleName));
+        graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
+        graphics.endFill();
+    }
+}
+}


Apache license 2.0 added.

Apache license 2.0 added.

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


More tests added.

More tests added.

--- unittests/TestModusPonens.as
+++ unittests/TestModusPonens.as
@@ -109,6 +109,52 @@
 			trace("The inference is: ", mp.getInference("whenever"));
 		}

+		[Test(order=7)]
+		public function testProvidedThatTrue():void
+		{
+			mp.providedThat(true);
+			trace("~~ Printing all reasons in testProvidedThatTrue");
+			for each (var reason:String in mp.getReason()){
+				trace(reason);
+			}
+			trace("The claim is: ", mp.getClaim());
+			trace("The inference is: ", mp.getInference("providedThat"));
+		}
+		[Test(order=8)]
+		public function testProvidedThatFalse():void
+		{
+			mp.providedThat(false);
+			trace("~~ Printing all reasons in testProvidedThatFalse");
+			for each (var reason:String in mp.getReason()){
+				trace(reason);
+			}
+			trace("The claim is: ", mp.getClaim());
+			trace("The inference is: ", mp.getInference("providedThat"));
+		}
+
+		[Test(order=9)]
+		public function testOnlyIfTrue():void
+		{
+			mp.onlyIf(true);
+			trace("~~ Printing all reasons in testOnlyIfTrue");
+			for each (var reason:String in mp.getReason()){
+				trace(reason);
+			}
+			trace("The claim is: ", mp.getClaim());
+			trace("The inference is: ", mp.getInference("onlyIf"));
+		}
+		[Test(order=10)]
+		public function testOnlyIfFalse():void
+		{
+			mp.onlyIf(true);
+			trace("~~ Printing all reasons in testOnlyIfFalse");
+			for each (var reason:String in mp.getReason()){
+				trace(reason);
+			}
+			trace("The claim is: ", mp.getClaim());
+			trace("The inference is: ", mp.getInference("onlyIf"));
+		}
+
 		[Test]
 		public function testModusPonens():void
 		{
@@ -121,17 +167,8 @@
 			Assert.fail("Test method Not yet implemented");
 		}

-		[Test]
-		public function testOnlyIf():void
-		{
-			Assert.fail("Test method Not yet implemented");
-		}
+

-		[Test]
-		public function testProvidedThat():void
-		{
-			Assert.fail("Test method Not yet implemented");
-		}

 		[Test]
 		public function testSufficientCondition():void


Transferred from the Adobe Open Source Subversion Repository

Revision: 20764
Author:   smgilson@adobe.com
Date:     2011-03-10T17:16:24.059260Z

Log Message:
-----------
Merge 20761 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/URLUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedListNode.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/XMLNotifier.as</path>

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

--- frameworks/projects/rpc/src/mx/utils/URLUtil.as
+++ frameworks/projects/rpc/src/mx/utils/URLUtil.as
@@ -450,10 +450,12 @@
         }

         /**
-         * Given a url, determines whether the url contains the server.name and
-         * server.port tokens.
+         *  Given a url, determines whether the url contains the server.name and
+         *  server.port tokens.
+         *
+         *  @param url A url string.
          *
-         * @return true if the url contains server.name and server.port tokens.
+         *  @return true if the url contains server.name and server.port tokens.
          *
          *  @langversion 3.0
          *  @playerversion Flash 10


Replace tabs with spaces.

Replace tabs with spaces.

--- Game/Resources/elevatorScene/Scripts/elevator_frontDoorCon.as
+++ Game/Resources/elevatorScene/Scripts/elevator_frontDoorCon.as
@@ -61,13 +61,13 @@
         }
     }

-	void OpenDoor() {
-		openDoor = true;
+    void OpenDoor() {
+        openDoor = true;
         doorWithX.GetSoundSource().Play();
         doorWithService.GetSoundSource().Play();
-	}
-
-	void CloseDoor() {
-		openDoor = false;
-	}
-}+    }
+
+    void CloseDoor() {
+        openDoor = false;
+    }
+}


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

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

 package mx.containers.utilityClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23079
Author:   jszeto@adobe.com
Date:     2011-10-21T07:19:18.098583Z

Log Message:
-----------
SpinnerList Bug Fix

SDK-31913 - SpinnerList RTE when using an empty ArrayCollection

QE notes: none
Doc notes: none
Bugs: SDK-31913
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as

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

--- frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
+++ frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as
@@ -376,7 +376,7 @@
 		// If the element at index % numElements) is not selectable, find the nearest one that is
         var iter:LayoutIterator = new LayoutIterator(target, startIndex);

-        if (dataGroup && dataGroup.dataProvider)
+        if (dataGroup && dataGroup.dataProvider && dataGroup.dataProvider.length > 0)
         {
             while (Math.abs(distance) <= (target.numElements / 2) + 1)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18072
Author:   chiedozi@adobe.com
Date:     2010-10-07T21:09:04.099363Z

Log Message:
-----------
PARB Changes to ViewNavigator feature set.  Changes summarized below:

View
active getter renamed to isActive
Removed context property from View and moved it to ViewNavigator

ViewNavigator
context property is now typed Object
navigationStack property now mx_internal in ViewNavigatorBase
factory parameter for push operations renamed to  viewClass
NavigationStack push and pop api names changed to match ViewNavigator methods
active getter renamed isActive
viewNavigator no longer dispatches a COMPLETE event
defaultTransitions are no longer skin parts.  They are now  mx_internal vars.

TabbedViewNavigator
No longer dispatches complete, instead dispatches IndexChangeEvent.CHANGE

ViewProxy
ViewProxy renamed to ViewDescriptor
persistedData renamed to persistenceData

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewReturnObject.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as" copyfrom-rev="18044" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewDescriptor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewProxy.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -20,38 +20,14 @@

 import spark.components.SkinnableContainer;
 import spark.components.View;
+import spark.core.ContainerDestructionPolicy;
 import spark.events.DisplayLayerObjectExistenceEvent;
-import spark.core.ContainerDestructionPolicy;

 use namespace mx_internal;

 //--------------------------------------
 //  Events
 //--------------------------------------
-
-/**
- *  Dispatched when the navigator has been activated.
- *
- *  @eventType mx.events.FlexEvent.NAVIGATOR_ACTIVATE
- *
- *  @langversion 3.0
- *  @playerversion Flash 10.1
- *  @playerversion AIR 2.5
- *  @productversion Flex 4.5
- */
-[Event(name="navigatorActivate", type="mx.events.FlexEvent")]
-
-/**
- *  Dispatched when the navigator has been deactivated.
- *
- *  @eventType mx.events.FlexEvent.NAVIGATOR_DEACTIVATE
- *
- *  @langversion 3.0
- *  @playerversion Flash 10.1
- *  @playerversion AIR 2.5
- *  @productversion Flex 4.5
- */
-[Event(name="navigatorDeactivate", type="mx.events.FlexEvent")]

 /**
  *  The ViewNavigatorBase class defines the base class logic and
@@ -113,7 +89,7 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function get active():Boolean
+    public function get isActive():Boolean
     {
         return _active;
     }
@@ -131,11 +107,6 @@

             if (activeView)
                 activeView.setActive(value);
-
-            var eventName:String = _active ? FlexEvent.NAVIGATOR_ACTIVATE :
-                                             FlexEvent.NAVIGATOR_DEACTIVATE;
-            if (hasEventListener(eventName))
-                dispatchEvent(new FlexEvent(eventName));
         }
     }

@@ -344,20 +315,22 @@
     protected var _navigationStack:NavigationStack;

     /**
+     *  @private
      *  The navigation stack that is being managed by the navigator.
      *  An empty navigation stack is automatically created when
      *  a navigator is created.
      *
      *  @default null
      */
-    public function get navigationStack():NavigationStack
+    mx_internal function get navigationStack():NavigationStack
     {
         return _navigationStack;
     }
-    /**
-     *  @private
-     */
-    public function set navigationStack(value:NavigationStack):void
+
+    /**
+     *  @private
+     */
+    mx_internal function set navigationStack(value:NavigationStack):void
     {
         if (value == null)
             _navigationStack = new NavigationStack();
@@ -408,6 +381,8 @@
     //----------------------------------
     //  parentNavigator
     //----------------------------------
+    private var _parentNavigator:ViewNavigatorBase;
+
     /**
      *  The parent navigator for this navigator.
      *
@@ -418,7 +393,18 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public var parentNavigator:ViewNavigatorBase;
+    public function get parentNavigator():ViewNavigatorBase
+    {
+        return _parentNavigator;
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function setParentNavigator(value:ViewNavigatorBase):void
+    {
+        _parentNavigator = value;
+    }

     //----------------------------------
     //  transitionsEnabled


Cleanup.

Cleanup.

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

--- src/as/com/threerings/util/MediaContainer.as
+++ src/as/com/threerings/util/MediaContainer.as
@@ -399,7 +399,6 @@
     {
         var args :Array = (event.value as Array);
         updateContentDimensions(int(args[0]), int(args[1]));
-        trace("Video size is now known: " + _w + ", " + _h);
     }

     /**
@@ -407,7 +406,7 @@
      */
     protected function handleVideoError (event :ValueEvent) :void
     {
-        trace("Video load error: " + event.value);
+        log.warning("Error loading video [cause=" + event.value + "].");
         stoppedLoading();
         setupBrokenImage(-1, -1);
     }


Added damping & more friction to TestScene.

--- Bin/Data/Scripts/TestScene.as
+++ Bin/Data/Scripts/TestScene.as
@@ -412,7 +412,8 @@
     RigidBody@ body = newNode.CreateComponent("RigidBody");
     body.mass = 1;
     body.linearVelocity = rotation * Vector3(0.0, 1.0, 10.0);
-    body.friction = 0.75;
+    body.linearDamping = 0.001;
+    body.friction = 1.0;

     BoxShape@ shape = newNode.CreateComponent("BoxShape");
     shape.size = Vector3(2.0, 2.0, 2.0);


Ragdoll tweaks.

Ragdoll tweaks.

--- Bin/Data/Scripts/TestScene.as
+++ Bin/Data/Scripts/TestScene.as
@@ -469,28 +469,28 @@
 {
     Node@ root = model.node;

-    CreateRagdollBone(root, "Bip01_Pelvis", 1.0, SHAPE_BOX, Vector3(0.15, 0.2, 0.3), Vector3(0.1, 0, 0), Quaternion(0, 0, 0));
-    CreateRagdollBone(root, "Bip01_Spine1", 1.0, SHAPE_BOX, Vector3(0.3, 0.25, 0.3), Vector3(0.15, 0, 0), Quaternion(0, 0, 0));
-    CreateRagdollBone(root, "Bip01_L_Thigh", 1.0, SHAPE_CAPSULE, Vector3(0.2, 0.5, 0.2), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Thigh", 1.0, SHAPE_CAPSULE, Vector3(0.2, 0.5, 0.2), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_L_Calf", 1.0, SHAPE_CAPSULE, Vector3(0.2, 0.45, 0.2), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Calf", 1.0, SHAPE_CAPSULE, Vector3(0.2, 0.45, 0.2), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_Head", 1.0, SHAPE_SPHERE, Vector3(0.3, 0.3, 0.3), Vector3(0.1, 0, 0), Quaternion(0, 0, 0));
-    CreateRagdollBone(root, "Bip01_L_UpperArm", 1.0, SHAPE_CAPSULE, Vector3(0.15, 0.3, 0.15), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_UpperArm", 1.0, SHAPE_CAPSULE, Vector3(0.15, 0.3, 0.15), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_L_Forearm", 1.0, SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-    CreateRagdollBone(root, "Bip01_R_Forearm", 1.0, SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
-
-    CreateRagdollConstraint(root, "Bip01_L_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 10), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 10), Vector2(0, 0));
+    CreateRagdollBone(root, "Bip01_Pelvis", 1.0, SHAPE_BOX, Vector3(0.2, 0.2, 0.2), Vector3(0.1, 0, 0), Quaternion(0, 0, 0));
+    CreateRagdollBone(root, "Bip01_Spine1", 1.0, SHAPE_BOX, Vector3(0.25, 0.2, 0.2), Vector3(0.15, 0, 0), Quaternion(0, 0, 0));
+    CreateRagdollBone(root, "Bip01_L_Thigh", 0.75, SHAPE_CAPSULE, Vector3(0.175, 0.45, 0.175), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_R_Thigh", 0.75, SHAPE_CAPSULE, Vector3(0.175, 0.45, 0.175), Vector3(0.25, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_L_Calf", 0.75, SHAPE_CAPSULE, Vector3(0.15, 0.45, 0.15), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_R_Calf", 0.75, SHAPE_CAPSULE, Vector3(0.15, 0.45, 0.15), Vector3(0.2, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_Head", 0.75, SHAPE_SPHERE, Vector3(0.25, 0.25, 0.25), Vector3(0.1, 0, 0), Quaternion(0, 0, 0));
+    CreateRagdollBone(root, "Bip01_L_UpperArm", 0.5, SHAPE_CAPSULE, Vector3(0.125, 0.3, 0.125), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_R_UpperArm", 0.5, SHAPE_CAPSULE, Vector3(0.125, 0.3, 0.125), Vector3(0.1, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_L_Forearm", 0.5, SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.15, 0, 0), Quaternion(0, 0, 90));
+    CreateRagdollBone(root, "Bip01_R_Forearm", 0.5, SHAPE_CAPSULE, Vector3(0.1, 0.3, 0.1), Vector3(0.15, 0, 0), Quaternion(0, 0, 90));
+
+    CreateRagdollConstraint(root, "Bip01_L_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 15), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_R_Thigh", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, -1), Vector3(0, 0, 1), Vector2(45, 15), Vector2(0, 0));
     CreateRagdollConstraint(root, "Bip01_L_Calf", "Bip01_L_Thigh", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
     CreateRagdollConstraint(root, "Bip01_R_Calf", "Bip01_R_Thigh", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_Spine1", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, 1), Vector3(0, 0, 1), Vector2(25, 10), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_Spine1", "Bip01_Pelvis", CONSTRAINT_CONETWIST, Vector3(0, 0, 1), Vector3(0, 0, 1), Vector2(30, 15), Vector2(0, 0));
     CreateRagdollConstraint(root, "Bip01_Head", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, 0, 1), Vector3(0, 0, 1), Vector2(45, 15), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_L_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(25, 45), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(25, 45), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_L_Forearm", "Bip01_L_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(45, 0), Vector2(0, 0));
-    CreateRagdollConstraint(root, "Bip01_R_Forearm", "Bip01_R_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(45, 0), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_L_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(45, 45), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_R_UpperArm", "Bip01_Spine1", CONSTRAINT_CONETWIST, Vector3(0, -1, 0), Vector3(0, 1, 0), Vector2(45, 45), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_L_Forearm", "Bip01_L_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));
+    CreateRagdollConstraint(root, "Bip01_R_Forearm", "Bip01_R_UpperArm", CONSTRAINT_HINGE, Vector3(0, 0, -1), Vector3(0, 0, -1), Vector2(90, 0), Vector2(0, 0));

     // Disable animation from all bones (both physical and non-physical) to not interfere
     Skeleton@ skel = model.skeleton;
@@ -506,8 +506,8 @@

     RigidBody@ body = boneNode.CreateComponent("RigidBody", LOCAL);
     body.mass = mass;
-    body.linearDamping = 0.5;
-    body.angularDamping = 0.5;
+    body.linearDamping = 0.75;
+    body.angularDamping = 0.75;

     CollisionShape@ shape = boneNode.CreateComponent("CollisionShape", LOCAL);
     shape.shapeType = type;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4035
Author:   jszeto@adobe.com
Date:     2008-11-06T23:38:55.516366Z

Log Message:
-----------
RadialGradient and GradientEntry bug fixes

SDK-17745 - MXML application with multiple identical gradient fills doesn't render correctly

RadialGradient now takes into account the x/y position of the graphic element's bounds.

SDK-17652 - AI import; non-default angle and location of gradients are not retained on import of .ai or .fxg.

RadialGradient now rotates as expected. Previously, we set rotation using the Matrix.createGradientBox function. But this only rotate the gradients themselves and not the shape of the gradient as defined by scaleX and scaleY. Instead, we need to translate the center of the gradient to 0,0, rotate it, and then translate it back to the original location.

SDK-17654 - GradientEntry ratio behavior is inconsistent between MXML and ActionScript

Changed the default value for the ratio parameter in the GradientEntry constructor from -1 to NaN. GradientEntry was probably written before we had support for NaN in the language.

Added a couple of comments and removed some dead code.

QE Notes: Please test rotation on RadialGradient and graphic elements with top/left or x/y defined and a RadialGradient fill.
Doc Notes: Change default value of ratio parameter for GradientEntry constructor.
Bugs: SDK-17745, SDK-17652, SDK-17654
Reviewer:

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -500,6 +500,7 @@
             maskChanged = false;
             if (_mask && !_mask.parent)
             {
+            	// TODO!!! This needs to be a sibling because alpha
                 super.addChild(_mask);
                 var maskComp:UIComponent = _mask as UIComponent;
                 if (maskComp)
@@ -799,7 +800,6 @@
     [Bindable("propertyChange")]
     [Inspectable(category="General",enumeration="clip,alpha", defaultValue="clip")]
     private var _maskType:String = MaskType.CLIP;
-    private var _oldMaskType:String = MaskType.CLIP;
     private var maskTypeChanged:Boolean;
     private var originalMaskFilters:Array;

@@ -821,7 +821,6 @@
     {
         if (_maskType != value)
         {
-            _oldMaskType = _maskType;
             _maskType = value;
             maskTypeChanged = true;
             invalidateProperties();


Transferred from the Adobe Open Source Subversion Repository

Revision: 20025
Author:   hmuller@adobe.com
Date:     2011-02-01T00:07:06.400929Z

Log Message:
-----------
TextFieldGridItemRendererInclude.as/updatePreferredSize() - now only sets the multiline property if it hasn't been explicitly set.

QE notes: One test excluded for new bitmap (Jacob)
Doc notes: Added material about the multiline property to DefaultGridItemRenderer, UITextFieldGridItemRenderer
Bugs: SDK-29261
Reviewer: Darrell
Tests run:
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -77,15 +77,22 @@
  *  high-quality international typography and font embedding in the same way as other
  *  Spark controls.
  *
- *
DefaultGridItemRenderer inherits its layoutDirection property
- *  from its parent.
- *  It should not be set directly.

- *
  *
You can control the label text wrapping by using the lineBreak style.
  *  For example, setting  lineBreak="explicit" and variableRowHeight="false"
  *  creates fixed height cells whose labels do not wrap.
  *  If you do not explicitly set the wordWrap property, wordWrap
  *  will be set to the value of the grid's variableRowHeight property.

+ *
+ *
The multiline property is used by the DataGrid's item editor to interpret
+ *  input newline characters.  If mutliline=false, then entering a newline ends the
+ *  editing session (as does tab or escape).  If multiline=true then a newline character
+ *  is inserted into the text.  If the multiline property is not set explicitly, then it's automatically
+ *  set to true if lineBreak="explicit" and text includes a newline
+ *  character.

+ *
+ *
DefaultGridItemRenderer inherits its layoutDirection property
+ *  from its parent.
+ *  It should not be set directly.

  *
  *
The DefaultGridItemRenderer class is not intended to be subclassed or copied.
  *  Create custom item renderers based on the GridItemRenderer class.


added centerX and centerY options

added centerX and centerY options

--- WeaveUISpark/src/weave/visualization/plotters/RectanglePlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/RectanglePlotter.as
@@ -90,7 +90,16 @@
 		/**
 		 * This is the maximum Y data value associated with the rectangle.
 		 */
-		public const heightData:AlwaysDefinedColumn = registerSpatialProperty(new AlwaysDefinedColumn(0));
+		public const heightData:AlwaysDefinedColumn = registerSpatialProperty(new AlwaysDefinedColumn(0));
+
+		/**
+		 * If this is true, the rectangle will be centered on xData coordinates.
+		 */
+		public const centerX:LinkableBoolean = registerSpatialProperty(new LinkableBoolean(false));
+		/**
+		 * If this is true, the rectangle will be centered on yData coordinates.
+		 */
+		public const centerY:LinkableBoolean = registerSpatialProperty(new LinkableBoolean(false));

 		// visual properties
 		/**
@@ -144,12 +153,25 @@
 		 */
 		override public function getDataBoundsFromRecordKey(recordKey:IQualifiedKey, output:Array):void
 		{
-			initBoundsArray(output);
+			getBounds(recordKey, initBoundsArray(output));
+		}
+
+		private function getBounds(recordKey:IQualifiedKey, output:IBounds2D):void
+		{
 			var x:Number = getCoordFromRecordKey(recordKey, true);
 			var y:Number = getCoordFromRecordKey(recordKey, false);
-			var width:Number = widthData.getValueFromKey(recordKey, Number);
-			var height:Number = heightData.getValueFromKey(recordKey, Number);
-			(output[0] as IBounds2D).setBounds(x, y, x + width, y + height);
+			var width:Number = widthData.getValueFromKey(recordKey, Number);
+			var height:Number = heightData.getValueFromKey(recordKey, Number);
+
+			if (centerX.value)
+				output.setCenteredXRange(x, width);
+			else
+				output.setXRange(x, x + width);
+
+			if (centerY.value)
+				output.setCenteredYRange(y, height);
+			else
+				output.setYRange(y, y + height);
 		}

 		/**
@@ -160,15 +182,10 @@
 			var graphics:Graphics = tempShape.graphics;

 			// project data coordinates to screen coordinates and draw graphics onto tempShape
-
-			var x:Number = getCoordFromRecordKey(recordKey, true);
-			var y:Number = getCoordFromRecordKey(recordKey, false);
-			var width:Number = widthData.getValueFromKey(recordKey, Number);
-			var height:Number = heightData.getValueFromKey(recordKey, Number);
-
-			// project x,y data coordinates to screen coordinates
-			tempPoint.x = x;
-			tempPoint.y = y;
+			getBounds(recordKey, tempBounds);
+
+			// project x,y data coordinates to screen coordinates
+			tempBounds.getMinPoint(tempPoint);
 			dataBounds.projectPointTo(tempPoint, screenBounds);
 			// add screen offsets
 			tempPoint.x += xMinScreenOffset.getValueFromKey(recordKey, Number);
@@ -176,9 +193,8 @@
 			// save x,y screen coordinates
 			tempBounds.setMinPoint(tempPoint);

-			// project x+w,y+h data coordinates to screen coordinates
-			tempPoint.x = x + width;
-			tempPoint.y = y + height;
+			// project x+w,y+h data coordinates to screen coordinates
+			tempBounds.getMaxPoint(tempPoint);
 			dataBounds.projectPointTo(tempPoint, screenBounds);
 			// add screen offsets
 			tempPoint.x += xMaxScreenOffset.getValueFromKey(recordKey, Number);
@@ -186,13 +202,14 @@
 			// save x+w,y+h screen coordinates
 			tempBounds.setMaxPoint(tempPoint);

-			// draw graphics
+			// draw graphics
+			tempBounds.makeSizePositive();
 			line.beginLineStyle(recordKey, graphics);
 			fill.beginFillStyle(recordKey, graphics);
 			if (drawEllipse.value)
-				graphics.drawEllipse(tempBounds.getXNumericMin(), tempBounds.getYNumericMin(), tempBounds.getXCoverage(), tempBounds.getYCoverage());
+				graphics.drawEllipse(tempBounds.getXMin(), tempBounds.getYMin(), tempBounds.getWidth(), tempBounds.getHeight());
 			else
-				graphics.drawRect(tempBounds.getXNumericMin(), tempBounds.getYNumericMin(), tempBounds.getXCoverage(), tempBounds.getYCoverage());
+				graphics.drawRect(tempBounds.getXMin(), tempBounds.getYMin(), tempBounds.getWidth(), tempBounds.getHeight());
 			graphics.endFill();
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {

 import flash.display.DisplayObject;
@@ -40,7 +40,7 @@
 //--------------------------------------

 /**
- *  Dispatched after the FxApplication has been initialized,
+ *  Dispatched after the Application has been initialized,
  *  processed by the LayoutManager, and attached to the display list.
  *
  *  @eventType mx.events.FlexEvent.APPLICATION_COMPLETE
@@ -99,17 +99,17 @@
 [ResourceBundle("components")]

 /**
- *  Flex defines a default, or FxApplication, container that lets you start
+ *  Flex defines a default, or Application, container that lets you start
  *  adding content to your application without explicitly defining
  *  another container.
  *
  *  @mxml
  *
- *
The <FxApplication> tag inherits all of the tag
+ *
The <Application> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <FxApplication
+ *  <Application
  *    Properties
  *    backgroundColor="white"
  *    colorCorrection="default"
@@ -134,7 +134,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxApplication extends FxContainer
+public class Application extends SkinnableContainer
 {
     include "../core/Version.as";

@@ -158,7 +158,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxApplication()
+    public function Application()
     {
         name = "fxApplication";

@@ -197,19 +197,19 @@

     /**
      *  @private
-     *  This flag indicates whether the width of the FxApplication instance
+     *  This flag indicates whether the width of the Application instance
      *  can change or has been explicitly set by the developer.
      *  When the stage is resized we use this flag to know whether the
-     *  width of the FxApplication should be modified.
+     *  width of the Application should be modified.
      */
     private var resizeWidth:Boolean = true;

     /**
      *  @private
-     *  This flag indicates whether the height of the FxApplication instance
+     *  This flag indicates whether the height of the Application instance
      *  can change or has been explicitly set by the developer.
      *  When the stage is resized we use this flag to know whether the
-     *  height of the FxApplication should be modified.
+     *  height of the Application should be modified.
      */
     private var resizeHeight:Boolean = true;

@@ -313,7 +313,7 @@
     //--------------------------------------------------------------------------

     // These declarations correspond to the MXML-compile-time attributes
-    // allowed on the <FxApplication> tag. These attributes affect the MXML
+    // allowed on the <Application> tag. These attributes affect the MXML
     // compiler, but they aren't actually used in the runtime framework.
     // The declarations appear here in order to provide metadata about these
     // attributes for FlexBuilder.
@@ -545,14 +545,14 @@

     /**
      *  An Object containing name-value
-     *  pairs representing the parameters provided to this FxApplication.
+     *  pairs representing the parameters provided to this Application.
      *
      *
You can use a for-in loop to extract all the names and values
      *  from the parameters Object.

      *
      *
There are two sources of parameters: the query string of the
-     *  FxApplication's URL, and the value of the FlashVars HTML parameter
-     *  (this affects only the main FxApplication).

+     *  Application's URL, and the value of the FlashVars HTML parameter
+     *  (this affects only the main Application).

      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -576,7 +576,7 @@
     mx_internal var _url:String;

     /**
-     *  The URL from which this FxApplication's SWF file was loaded.
+     *  The URL from which this Application's SWF file was loaded.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -608,9 +608,9 @@
      *  using MXML, not using ActionScript, as the following example shows:

      *
      *

-     *    <FxApplication viewSourceURL="http://path/to/source">
+     *    <Application viewSourceURL="http://path/to/source">
      *      ...
-     *    </FxApplication>

+     *    </Application>

      *
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -822,7 +822,7 @@
             const caption:String = resourceManager.getString("components", "viewSource");

             viewSourceCMI = new ContextMenuItem(caption, true);
-            viewSourceCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, viewSourceMenuItemSelectHandler);
+            viewSourceCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler);

             defaultMenu.customItems.push(viewSourceCMI);
         }
@@ -925,7 +925,7 @@
      *  Called when the "View Source" item in the application's context menu is
      *  selected.
      */
-    protected function viewSourceMenuItemSelectHandler(event:Event):void
+    protected function menuItemSelectHandler(event:Event):void
     {
         navigateToURL(new URLRequest(_viewSourceURL), "_blank");
     }