Transferred from the Adobe Open Source Subversion Repository

Revision: 3297
Author:   jimurphy@adobe.com
Date:     2008-09-22T17:59:53.303960Z

Log Message:
-----------
Merge 3.0.x revisions 3260,3262,3266,3271,3276,3282,3285,3292,3294 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.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/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/AbstractMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -12,6 +12,7 @@
 package mx.managers
 {

+import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.events.Event;
 import flash.events.IEventDispatcher;
@@ -19,6 +20,7 @@
 import flash.geom.Rectangle;
 import mx.core.FlexSprite;
 import mx.core.IFlexModuleFactory;
+import mx.core.ISWFBridgeGroup;
 import mx.core.ISWFBridgeProvider;
 import mx.core.mx_internal;
 import mx.events.SWFBridgeEvent;
@@ -31,6 +33,7 @@
 [ExcludeClass]

 /**
+ *  @private
  *  This class acts as the SystemManager for a popup window that is
  *  added to a parent SystemManager from a compatible application.
  *  Instead of the popup window being a child of the host
@@ -44,29 +47,29 @@
  */
 public class SystemManagerProxy extends SystemManager
 {
-	include "../core/Version.as";
-
-	/**
-	 *  Constructor.
-	 *
-	 *  @param systemManager The system manager that this class is a proxy for.
-	 *  This is the system manager in the same application domain as the popup.
-	 */
-	public function SystemManagerProxy(systemManager:ISystemManager)
-	{
-		super();
-
-		_systemManager = systemManager;
-
-		// We are a proxy for a popup - we are the hightest system manager.
+        include "../core/Version.as";
+
+        /**
+         *  Constructor.
+         *
+         *  @param systemManager The system manager that this class is a proxy for.
+         *  This is the system manager in the same application domain as the popup.
+         */
+        public function SystemManagerProxy(systemManager:ISystemManager)
+        {
+                super();
+
+                _systemManager = systemManager;
+
+                // We are a proxy for a popup - we are the hightest system manager.
         topLevel = true;
-
-		// Capture mouseDown so we can switch top level windows and activate
-		// the right focus manager before the components inside start
-		// processing the event.
-		super.addEventListener(MouseEvent.MOUSE_DOWN, proxyMouseDownHandler, true);
-	}
-
+
+                // Capture mouseDown so we can switch top level windows and activate
+                // the right focus manager before the components inside start
+                // processing the event.
+                super.addEventListener(MouseEvent.MOUSE_DOWN, proxyMouseDownHandler, true);
+        }
+
     //--------------------------------------------------------------------------
     //
     //  Overriden properties
@@ -81,6 +84,8 @@
      */
     override public function get screen():Rectangle
     {
+        // This is called to center an Alert over the systemManager
+        // this proxy represents.
         return _systemManager.screen;
     }

@@ -89,12 +94,28 @@
     //  Properties
     //
     //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    override public function get document():Object
+    {
+        // The document of this proxy is its pop up.
+        return findFocusManagerContainer(this);
+    }
+
+    /**
+     *  @private
+     */
+    override public function set document(value:Object):void
+    {
+    }

     //----------------------------------
     //  systemManager
     //----------------------------------

-	/**
+        /**
      *  @private
      */
     private var _systemManager:ISystemManager;
@@ -103,42 +124,61 @@
      *  The SystemManager that is being proxied.
      *  This is the SystemManager of the application that created this proxy
      *  and the pop up window that is a child of this proxy.
-     */
-	public function get systemManager():ISystemManager
-	{
-		return _systemManager;
-	}
-
+     */
+        public function get systemManager():ISystemManager
+        {
+                return _systemManager;
+        }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods: SystemManager
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  @inheritDoc
-	 */
-	override public function getDefinitionByName(name:String):Object
-	{
-		return _systemManager.getDefinitionByName(name);
-	}
-
-    /**
-     *  @inheritDoc
-     */
-	override public function create(... params):Object
-	{
-		return IFlexModuleFactory(_systemManager).create.apply(this, params);
-	}
-
-    /**
-     *  @inheritDoc
-     */
-	override public function useSWFBridge():Boolean
-	{
-		return false; // proxy does not want to use the bridge
-	}
-
+        /**
+         *  @inheritDoc
+         */
+        override public function getDefinitionByName(name:String):Object
+        {
+                return _systemManager.getDefinitionByName(name);
+        }
+
+    /**
+     *  @inheritDoc
+     */
+        override public function create(... params):Object
+        {
+                return IFlexModuleFactory(_systemManager).create.apply(this, params);
+        }
+
+    /**
+     *  Add a bridge to talk to the child owned by owner.
+     *
+     *  @param bridge The bridge used to talk to the parent.
+     *  @param owner The display object that owns the bridge.
+     */
+    override public function addChildBridge(bridge:IEventDispatcher, owner:DisplayObject):void
+    {
+        _systemManager.addChildBridge(bridge, owner);
+    }
+
+    /**
+     *  Remove a child bridge.
+     */
+    override public function removeChildBridge(bridge:IEventDispatcher):void
+    {
+        _systemManager.removeChildBridge(bridge);
+    }
+
+    /**
+     *  @inheritDoc
+     */
+        override public function useSWFBridge():Boolean
+        {
+                return _systemManager.useSWFBridge();
+        }
+
     /**
      *  @inheritDoc
      */
@@ -158,66 +198,66 @@
         _systemManager.removeEventListener(type, listener, useCapture);
     }

-	/**
-	 *  @inheritDoc
-	 */
-	override public function activate(f:IFocusManagerContainer):void
-	{
-		// trace("SM Proxy: activate " + f );
-
-		// Activate the proxied SystemManager.
-
-		var bridge:IEventDispatcher =
+        /**
+         *  @inheritDoc
+         */
+        override public function activate(f:IFocusManagerContainer):void
+        {
+                // trace("SM Proxy: activate " + f );
+
+                // Activate the proxied SystemManager.
+
+                var bridge:IEventDispatcher =
             _systemManager.swfBridgeGroup ?
-			_systemManager.swfBridgeGroup.parentBridge :
+                        _systemManager.swfBridgeGroup.parentBridge :
             null;

-		if (bridge)
-		{
-			var mutualTrust:Boolean =
+                if (bridge)
+                {
+                        var mutualTrust:Boolean =
                 SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(_systemManager));

-			var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
+                        var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
                 SWFBridgeEvent.BRIDGE_WINDOW_ACTIVATE,
                 false, false,
                 { notifier: bridge,
                   window: mutualTrust ? this : NameUtil.displayObjectToString(this)
                 });
-
+
             _systemManager.getSandboxRoot().dispatchEvent(bridgeEvent);
-		}
-	}
-
-    /**
-     *  @inheritDoc
-     */
-	override public function deactivate(f:IFocusManagerContainer):void
-	{
-		// trace("SM Proxy: deactivate " + f );
+                }
+        }
+
+    /**
+     *  @inheritDoc
+     */
+        override public function deactivate(f:IFocusManagerContainer):void
+        {
+                // trace("SM Proxy: deactivate " + f );

         // Deactivate the proxied SystemManager.

-		var sm:ISystemManager = _systemManager;
-
+                var sm:ISystemManager = _systemManager;
+
         var bridge:IEventDispatcher =
             sm.swfBridgeGroup ? sm.swfBridgeGroup.parentBridge : null;
-
+
         if (bridge)
-		{
-			var mutualTrust:Boolean =
+                {
+                        var mutualTrust:Boolean =
                 SecurityUtil.hasMutualTrustBetweenParentAndChild(ISWFBridgeProvider(_systemManager));
-
+
             var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
                 SWFBridgeEvent.BRIDGE_WINDOW_DEACTIVATE,
-				false, false,
+                                false, false,
                 { notifier: bridge,
                   window: mutualTrust ? this : NameUtil.displayObjectToString(this)
                 });

-			_systemManager.getSandboxRoot().dispatchEvent(bridgeEvent);
-		}
-	}
-
+                        _systemManager.getSandboxRoot().dispatchEvent(bridgeEvent);
+                }
+        }
+
     /**
      *  @inheritdoc
      *
@@ -227,6 +267,15 @@
     {
         return _systemManager.getVisibleApplicationRect(bounds);
     }
+
+    override public function get swfBridgeGroup():ISWFBridgeGroup
+    {
+        return _systemManager.swfBridgeGroup;
+    }
+
+    override public function set swfBridgeGroup(bridgeGroup:ISWFBridgeGroup):void
+    {
+    }

     //--------------------------------------------------------------------------
     //
@@ -240,10 +289,10 @@
      *
      *  @param f The top-level window whose FocusManager should be activated.
      */
-	public function activateByProxy(f:IFocusManagerContainer):void
-	{
-		super.activate(f);
-	}
+        public function activateByProxy(f:IFocusManagerContainer):void
+        {
+                super.activate(f);
+        }

     /**
      *  Deactivates the focus manager for the popup window
@@ -251,11 +300,11 @@
      *
      *  @param f The top-level window whose FocusManager should be deactivated.
      */
-	public function deactivateByProxy(f:IFocusManagerContainer):void
-	{
-		if (f)
+        public function deactivateByProxy(f:IFocusManagerContainer):void
+        {
+                if (f)
             f.focusManager.deactivate();
-	}
+        }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20690
Author:   mhorn@adobe.com
Date:     2011-03-08T20:26:51.755036Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/Legend.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/items/LineSeriesSegment.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/InstanceCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/Series.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartElement.as</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 10131
Author:   chaase@adobe.com
Date:     2009-09-10T21:25:42.980194Z

Log Message:
-----------
Fixes to several effects bugs and one styles-related bug.

QE notes: Fixes to all filed auto-center feature bugs.
Doc notes: None
Bugs: sdk-22994, sdk-22992, sdk-22990, sdk-21850, sdk-22973
Reviewer: Jason (+Glenn for RadioButton/CheckBox changes, 21850)
Tests run: checkintests, Mustella (transform effects, Slider, DataGrid - all passed last week, prior to skin/test changes)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SoundEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Rotate.as
+++ frameworks/projects/spark/src/spark/effects/Rotate.as
@@ -214,7 +214,7 @@
         }
         else
         {
-            addPostLayoutMotionPath("postLayoutRotationZ", angleFrom, angleTo, angleBy);
+            addMotionPath("postLayoutRotationZ", angleFrom, angleTo, angleBy);
         }
         super.initInstance(instance);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20619
Author:   aharui@adobe.com
Date:     2011-03-04T22:54:18.425795Z

Log Message:
-----------
Add [RemoteClass] metadata so DataItem can be copied via ObjectUtil.copy.

QE notes: none
Doc notes:  none
Bugs: SDK-29675
Reviewer: Hans, Peter F
Tests run: checkintests mustella cyclone full run
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/utils/DataItem.as
+++ frameworks/projects/spark/src/spark/utils/DataItem.as
@@ -25,6 +25,7 @@
 use namespace mx_internal;
 use namespace flash_proxy;

+[RemoteClass(alias="spark.utils.DataItem")]

 /**
  *  The DataItem class represents a dynamic object with bindable properties.


Transferred from the Adobe Open Source Subversion Repository

Revision: 17308
Author:   dthakkar@adobe.com
Date:     2010-08-12T23:22:20.533632Z

Log Message:
-----------
Flex integration feature (includes spark formatters and related checkintests.)
UIComponent.as - Added API's to support non visual style client
IAdvancedStyleClient.as - Added setter for StyleParent method
StyleProtoChain.as - Added else loop to verify if the component is IAdvancedStyleClient
StyleProxy.as - added setter for styleParent method (this class inherits IAdvancedStyleClient interface)

QE notes: No
Doc notes: No
Bugs: No
Reviewer: Gordon , Darrell
Tests run: CheckinTests, Mustella
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CollatorTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/StringToolsTestScript.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/AdvancedStyleClientTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest/ADVStyleTestEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProxy.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/NumberFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CurrencyFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/CollatorTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/NumberFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/DateTimeFormatterTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/CurrencyFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/DateTimeFormatterTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/AdvancedStyleClientTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/formatters/IFormatter.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/styleTest/ADVStyleTestClass.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/StringToolsTests.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/SortingCollator.as
+++ frameworks/projects/spark/src/spark/globalization/SortingCollator.as
@@ -0,0 +1,120 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.globalization
+{
+
+import flash.globalization.CollatorMode;
+
+import spark.globalization.supportClasses.CollatorBase;
+
+/**
+ *  The SortingCollator class provides locale-sensitve string
+ *  comparison capabilities with inital settings suitable for linguistic
+ *  sorting purposes such as sorting a list of
+ *  text strings that are displayed to an end user.
+ *
+ *
This class is a wrapper class around the
+ *  flash.globalization.Collator.
+ *  Therefore the locale-specific string comparison is provided by the
+ *  flash.globalization.Collator.
+ *  However this SortingCollator class can be used in MXML declartions, uses
+ *  the locale style for the requested Locale ID name, and has methods and
+ *  properties that are bindable.
+ *  Additionally events are generated if there is an error or warning
+ *  generated by the flash.globalization class.

+ *
+ *
The flash.globalization.Collator class use the underlying operating
+ *  system for the formatting functionality and to supply the locale
+ *  specific data.
+ *  On some operating systems, the flash.globalization classes are
+ *  unsupported, this wrapper class provides a fallback functionality in
+ *  this case.

+ *
+ *  @see flash.globalization.Collator
+ */
+public class SortingCollator extends CollatorBase
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructs a new SortingCollator object to provide string comparisons
+     *  according to the conventions of a specified locale.
+     *
+     *
This class sets the initial values of the various collation
+     *  options for general linguistic sorting usages such as sorting a list of
+     *  text strings that are displayed to an end user.
+     *  In this mode, differences in uppercase and lowercase letters,
+     *  accented characters, and other differences specific to the
+     *  locale are considered when doing string comparisons.
+     *

+     *
+     *
The comparison provided by an instance of this class is
+     *  equivalent to constructing an instance of the
+     *  flash.globalization.Collator with the
+     *  initialMode paramater set to
+     *  CollatorMode.SORTING.
+     *  For more details and examples of this mode, please
+     *  see the documentation for the
+     *  flash.globalization.Collator class
+     *

+     *
+     *
The locale for this class is supplied by the locale style.
+     *  The locale style can be set in several ways:

+     *
+     *

+     *
Inheriting the style from a UIComponent by calling the
+     *          UIComponent's addStyleClient method.

+     *
By using the class in an MXML declaration and inheriting the
+     *          locale from the document that contains the declaration.
+     *  <listing version="3.0">
+     *  <fx:Declarations>
+     *         <s:StringTools id="st" />
+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *
By using an MXML declaration and specifying the locale value
+     *              in the list of assignments.
+     *  <listing version="3.0">
+     *  <fx:Declarations>
+     *      <s:StringTools id="st_turkish" locale="tr-TR" />
+     *  </fx:Declarations>
+     *  </listing>
+     *

+     *
Calling the setStyle method, e.g.
+     *              st.setStyle("locale", "tr-TR")

+     *

+     *
+     *
If the locale style is not set by one of the above techniques, the
+     *  methods of this class that depend on the locale will return 0, false,
+     *  or null depending on the return type and the lastOperationStatus
+     *  property will be set to
+     *  spark.globalization.LastOperationStatus.LOCALE_UNDEFINED_ERROR.
+     *

+     *
+     *  @see flash.globalization.Collator
+     *  @playerversion Flash 10.1
+     *  @langversion 3.0
+     *  @productversion Flex 4.5
+     *  @productversion Flash CS5
+     */
+    public function SortingCollator()
+    {
+        super(CollatorMode.SORTING);
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/charts/src/mx/charts/events/ChartItemEvent.as
+++ frameworks/projects/charts/src/mx/charts/events/ChartItemEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 9352
Author:   clucier@adobe.com
Date:     2009-08-17T19:38:36.092988Z

Log Message:
-----------
Update DesignLayer ASDOC to reflect most recent updates to specification.  A bug fix to all IVisualElement implementers to account for initial value of alpha/visible for their owning layer.

QE notes:  None.
Doc notes:  None.
Bugs:  N/A.
Reviewer:  Chet
Tests run: Checkin
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="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DesignLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -1845,7 +1845,11 @@
         _layer = value;

         if (_layer)
+        {
             _layer.addEventListener("layerPropertyChange", layer_PropertyChange, false, 0, true);
+            super.alpha = _alpha * _layer.computedAlpha;
+            super.visible = _visible && _layer.computedVisibility;
+        }
     }

     //----------------------------------
@@ -4682,14 +4686,14 @@
     {
         switch (event.property)
         {
-            case "visible":
+            case "computedVisibility":
             {
                 var newValue:Boolean = (event.newValue && _visible);
                 if (newValue != super.visible)
                     super.visible = newValue;
                 break;
             }
-            case "alpha":
+            case "computedAlpha":
             {
                 var newAlpha:Number = Number(event.newValue) * _alpha;
                 if (newAlpha != super.alpha)


Transferred from the Adobe Open Source Subversion Repository

Revision: 12065
Author:   rfrishbe@adobe.com
Date:     2009-11-20T21:44:36.911707Z

Log Message:
-----------
Fixing UIMovieClip issue where a UIMC loaded in as an untrusted app would throw an RTE because it was trying to access the stage directly.  Now in places where UIMC tries to do that we have a try-catch for this and attach the event listeners to the systemManager instead.

QE notes: -
Doc notes: -
Bugs: SDK-21832
Reviewer: Alex
Tests run: checkintests, mustella FCK
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -4684,8 +4684,19 @@
      */
     private function addFocusEventListeners():void
     {
-        stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 1, true);
-        stage.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, false, 0, true);
+        // If we get a security error because we're not allowed to add event listeners to the stage,
+        // then just add them to the systemManager instead because we could be an untrusted app.
+        try
+        {
+            stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 1, true);
+            stage.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, false, 0, true);
+        }
+        catch (err:SecurityError)
+        {
+            systemManager.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 1, true);
+            systemManager.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, false, 0, true);
+        }
+
         focusListenersAdded = true;
     }

@@ -4699,8 +4710,18 @@
      */
     private function removeFocusEventListeners():void
     {
-        stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
-        stage.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
+        // Same security issue as addFocusEventListeners()
+        try
+        {
+            stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
+            stage.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
+        }
+        catch (err:SecurityError)
+        {
+            systemManager.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
+            systemManager.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
+        }
+
         focusListenersAdded = false;
     }

@@ -4782,11 +4803,34 @@
         // Add a key focus change handler at the capture phase. We use this to
         // determine focus direction in the setFocus() call.
         if (systemManager)
-            systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
-                                                 true, 0, true);
+        {
+            // If we get a security error because we're not allowed to add event listeners to the stage,
+            // then just add them to the systemManager instead because we could be an untrusted app.
+            try
+            {
+                systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
+                                                     true, 0, true);
+            }
+            catch (err:SecurityError)
+            {
+                systemManager.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
+                                               true, 0, true);
+            }
+        }
         else if (parentDocument && parentDocument.systemManager)
-            parentDocument.systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
-                                                 true, 0, true);
+        {
+            // Same security issue as above
+            try
+            {
+                parentDocument.systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
+                                                                    true, 0, true);
+            }
+            catch (err:SecurityError)
+            {
+                parentDocument.systemManager.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeCaptureHandler,
+                                                              true, 0, true);
+            }
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/formatters/PhoneFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/PhoneFormatter.as
@@ -0,0 +1,358 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.formatters
+{
+
+import mx.managers.ISystemManager;
+import mx.managers.SystemManager;
+
+[ResourceBundle("formatters")]
+
+/**
+ *  The PhoneFormatter class formats a valid number into a phone number format,
+ *  including international configurations.
+ *
+ *
A shortcut is provided for the United States seven-digit format.
+ *  If the areaCode property contains a value
+ *  and you use the seven-digit format string, (###-####),
+ *  a seven-digit value to format automatically adds the area code
+ *  to the returned String.
+ *  The default format for the area code is (###).
+ *  You can change this using the areaCodeFormat property.
+ *  You can format the area code any way you want as long as it contains
+ *  three number placeholders.

+ *
+ *
If an error occurs, an empty String is returned and a String
+ *  that describes the error is saved to the error property.
+ *  The error property can have one of the following values:

+ *
+ *

+ *
"Invalid value" means an invalid numeric value is passed
+ *    to the format() method. The value should be a valid number
+ *    in the form of a Number or a String, or the value contains a different
+ *    number of digits than what is specified in the format String.

+ *
 "Invalid format" means any of the characters in the
+ *    formatString property do not match the allowed characters
+ *    specified in the validPatternChars property,
+ *    or the areaCodeFormat property is specified but does not
+ *    contain exactly three numeric placeholders.

+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:PhoneFormatter> tag
+ *  inherits all of the tag attributes of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:PhoneFormatter
+ *    areaCode="-1"
+ *    areaCodeFormat="(###)"
+ *    formatString="(###) ###-####"
+ *    validPatternChars="+()#-. "
+ *  />
+ *

+ *
+ *  @includeExample examples/PhoneFormatterExample.mxml
+ *
+ *  @see mx.formatters.SwitchSymbolFormatter
+ */
+public class PhoneFormatter extends Formatter
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function PhoneFormatter()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  areaCode
+    //----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the areaCode property.
+	 */
+	private var _areaCode:Object;
+
+    /**
+	 *  @private
+	 */
+	private var areaCodeOverride:Object;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Area code number added to a seven-digit United States
+     *  format phone number to form a 10-digit phone number.
+     *  A value of -1 means do not
+     *  prepend the area code.
+     *
+     *  @default -1
+     */
+	public function get areaCode():Object
+	{
+		return _areaCode;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set areaCode(value:Object):void
+	{
+		areaCodeOverride = value;
+
+		_areaCode = value != null ?
+					int(value) :
+					resourceManager.getInt(
+						"formatters", "areaCode");
+	}
+
+    //----------------------------------
+    //  areaCodeFormat
+    //----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the areaCodeFormat property.
+	 */
+	private var _areaCodeFormat:String;
+
+    /**
+	 *  @private
+	 */
+	private var areaCodeFormatOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  Default format for the area code when the areacode
+     *  property is rendered by a seven-digit format.
+     *
+     *  @default "(###) "
+     */
+	public function get areaCodeFormat():String
+	{
+		return _areaCodeFormat;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set areaCodeFormat(value:String):void
+	{
+		areaCodeFormatOverride = value;
+
+		_areaCodeFormat = value != null ?
+						  value :
+						  resourceManager.getString(
+						      "formatters", "areaCodeFormat");
+	}
+
+    //----------------------------------
+    //  formatString
+    //----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the formatString property.
+	 */
+	private var _formatString:String;
+
+    /**
+	 *  @private
+	 */
+	private var formatStringOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  String that contains mask characters
+     *  that represent a specified phone number format.
+     *
+     *  @default "(###) ###-####"
+     */
+	public function get formatString():String
+	{
+		return _formatString;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set formatString(value:String):void
+	{
+		formatStringOverride = value;
+
+		_formatString = value != null ?
+						value :
+						resourceManager.getString(
+							"formatters", "phoneNumberFormat");
+	}
+
+    //----------------------------------
+    //  validPatternChars
+    //----------------------------------
+
+    /**
+	 *  @private
+	 *  Storage for the validPatternChars property.
+	 */
+	private var _validPatternChars:String;
+
+    /**
+	 *  @private
+	 */
+	private var validPatternCharsOverride:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  List of valid characters that can be used
+     *  in the formatString property.
+     *  This property is used during validation
+     *  of the formatString property.
+     *
+     *  @default "+()#- ."
+     */
+	public function get validPatternChars():String
+	{
+		return _validPatternChars;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set validPatternChars(value:String):void
+	{
+		validPatternCharsOverride = value;
+
+		_validPatternChars = value != null ?
+							 value :
+							 resourceManager.getString(
+							     "formatters", "validPatternChars");
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function resourcesChanged():void
+    {
+		super.resourcesChanged();
+
+        areaCode = areaCodeOverride;
+        areaCodeFormat = areaCodeFormatOverride;
+        formatString = formatStringOverride;
+        validPatternChars = validPatternCharsOverride;
+    }
+
+    /**
+     *  Formats the String as a phone number.
+     *  If the value cannot be formatted, return an empty String
+     *  and write a description of the error to the error property.
+     *
+     *  @param value Value to format.
+     *
+     *  @return Formatted String. Empty if an error occurs. A description
+     *  of the error condition is written to the error property.
+     */
+    override public function format(value:Object):String
+    {
+        // Reset any previous errors.
+        if (error)
+            error = null;
+
+        // --value--
+
+        if (!value || String(value).length == 0 || isNaN(Number(value)))
+        {
+            error = defaultInvalidValueError;
+            return "";
+        }
+
+        // --length--
+
+        var fStrLen:int = 0;
+        var letter:String;
+        var n:int;
+        var i:int;
+
+        n = formatString.length;
+        for (i = 0; i < n; i++)
+        {
+            letter = formatString.charAt(i);
+            if (letter == "#")
+            {
+                fStrLen++;
+            }
+            else if (validPatternChars.indexOf(letter) == -1)
+            {
+                error = defaultInvalidFormatError;
+                return "";
+            }
+        }
+
+        if (String(value).length != fStrLen)
+        {
+            error = defaultInvalidValueError;
+            return "";
+        }
+
+        // --format--
+
+        var fStr:String = formatString;
+
+        if (fStrLen == 7 && areaCode != -1)
+        {
+            var aCodeLen:int = 0;
+            n = areaCodeFormat.length;
+            for (i = 0; i < n; i++)
+            {
+                if (areaCodeFormat.charAt(i) == "#")
+                    aCodeLen++;
+            }
+            if (aCodeLen == 3 && String(areaCode).length == 3)
+            {
+                fStr = String(areaCodeFormat).concat(fStr);
+                value = String(areaCode).concat(value);
+            }
+        }
+
+        var dataFormatter:SwitchSymbolFormatter = new SwitchSymbolFormatter();
+
+        return dataFormatter.formatValue(fStr, value);
+    }
+}
+
+}


- change: ADDED_TO_DOCUMENT doesn't bubble anymore

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

--- src/reprise/ui/UIObject.as
+++ src/reprise/ui/UIObject.as
@@ -132,7 +132,7 @@
 			}
 			invalidate();

-			dispatchEvent(new DisplayEvent(DisplayEvent.ADDED_TO_DOCUMENT, true));
+			dispatchEvent(new DisplayEvent(DisplayEvent.ADDED_TO_DOCUMENT));

 			return this;
 		}


adding removing padding from Row

adding removing padding from Row

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4619 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Carousel.as
+++ src/laml/display/Carousel.as
@@ -203,7 +203,7 @@
 			var xml:XML = <HBox width="100%" height="100%" gutter={gutter} padding={padding} xmlns="laml.display">
 							<CarouselPreviousButton id={LEFT_BUTTON} width="15" height="65" />
 							<Component width="100%" height="100%">
-								<Row id={CONTENT_CONTAINER} excludeFromLayout="true" gutter={gutter} padding={padding} />
+								<Row id={CONTENT_CONTAINER} excludeFromLayout="true" gutter={gutter} />
 								<Component id={CONTENT_MASK} backgroundColor="#0000ff" width="100%" height="100%" />
 							</Component>
 							<CarouselNextButton id={RIGHT_BUTTON} width="15" height="65" />


git-svn-id: http://svn.rails2u.com/as3rails2u/trunk@18 96db6a20-122f-0410-8d9f-89437bbe4005

--- src/com/rails2u/utils/MathUtil.as
+++ src/com/rails2u/utils/MathUtil.as
@@ -3,17 +3,64 @@
     public class MathUtil
     {
         public static function randomPlusMinus(val:Number = 1):Number {
-            if (Math.random() > 0.5) {
+            if (randomBoolean() ) {
                 return val;
             } else {
                 return val * -1;
             }
         }

-        public static function randomRange(s:Number, e:Number = 0):Number {
-            var ra:Number = e - s;
-            return s + ra * Math.random();
+        /*
+         * randomBoolean(-100, 100); // retun value is between -100 and 100;
+         */
+        public static function randomBetween(s:Number, e:Number = 0):Number {
+            return s + (e - s) * Math.random();
         }
+
+        /*
+         * randomBetween(); // return value is true or false.
+         */
+        public static function randomBoolean():Boolean {
+            return (Math.round(Math.random()) == 1) ? true : false;
+        }
+
+        /*
+         * randomPickup(1,2,3,4); // return value is 1 or 2 or 3 or 4
+         */
+        public static function randomPickup(... args):Object {
+            var len:uint = args.length;
+            if (len == 1) {
+                return args[0];
+            } else {
+                return args[Math.round(Math.random() * (len - 1))];
+            }
+        }
+
+        /*
+         * var cycleABC = MathUtil.cycle('a', 'b', 'c');
+         * cycleABC(); // 'a'
+         * cycleABC(); // 'b'
+         * cycleABC(); // 'c'
+         * cycleABC(); // 'a'
+         * cycleABC(); // 'b'
+         */
+        public static function cycle(... args):Function {
+            var len:uint = args.length;
+            var i:uint = 0;
+            if (len == 1) {
+                return function():Object {
+                    return args[0];
+                }
+            } else {
+                return function():Object {
+                    var res:Object = args[i];
+                    i++;
+                    if (i >= len) i = 0;
+                    return res;
+                };
+            }
+        }
+
     }
 }


Fixed typo in IErrorManager docs

Fixed typo in IErrorManager docs

--- WeaveAPI/src/weave/api/core/IErrorManager.as
+++ WeaveAPI/src/weave/api/core/IErrorManager.as
@@ -27,7 +27,7 @@
 		 * This function is intended to be the global error reporting mechanism for Weave.
 		 * @param error An Error or a String describing the error.
 		 * @param faultMessage A message associated with the error, if any.  If specified, the error will be wrapped in a Fault object.
-		 * @param faultCessage Content associated with the error, if any.  If specified, the error will be wrapped in a Fault object.
+		 * @param faultContent Content associated with the error, if any.  If specified, the error will be wrapped in a Fault object.
 		 */
 		function reportError(error:Object, faultMessage:String = null, faultContent:Object = null):void;


- bugfix: The initial file for each CSS object was loaded twice, causing each import to be loaded twice as well and thus doubling the amount of CSS declarations to interpret. This caused a massive loss of performance for applications with large CSS files

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

--- src/reprise/css/CSS.as
+++ src/reprise/css/CSS.as
@@ -109,6 +109,7 @@
 			setURL(m_url);
 			m_cssFile.setURL(CSSParsingHelper.resolvePathAgainstPath(url(), baseURL()));
 			m_stylesheetURLs.push(m_cssFile.url());
+			m_loader.addResource(m_cssFile);
 			m_loader.execute();
 		}

@@ -211,7 +212,6 @@
 			m_url = src;
 			m_cssFile = cssImportWithURL(src);
 			m_cssSegments[0] = m_cssFile;
-			m_loader.addResource(m_cssFile);
 		}
 		public override function content() : *
 		{


fix DynamicTextureController.sceneEnterFrameHandler() to make sure the source is rasterized/uploaded to init. the texture and avoid error 3700 at the first frame

--- src/aerys/minko/scene/controller/mesh/DynamicTextureController.as
+++ src/aerys/minko/scene/controller/mesh/DynamicTextureController.as
@@ -93,7 +93,6 @@
 		{
 			super.targetAddedHandler(ctrl, target);

-//			(target as Mesh).properties.setProperty(_propertyName, _texture);
 			if (target is Scene)
 				(target as Scene).bindings.addProvider(_data);
 			else if (target is Mesh)
@@ -107,8 +106,6 @@
 		{
 			super.targetRemovedHandler(ctrl, target);

-//			(target as Mesh).properties.removeProperty(_propertyName);
-
 			if (target is Scene)
 				(target as Scene).bindings.removeProvider(_data);
 			else if (target is Mesh)
@@ -120,15 +117,17 @@
 														   target	: BitmapData,
 														   time		: Number) : void
 		{
-			if (time - _lastDraw > 1000. / _framerate)
+			if (!_lastDraw || time - _lastDraw > 1000. / _framerate)
 			{
 				_lastDraw = time;

 				_bitmapData ||= new BitmapData(_source.width, _source.height);
 				if (_forceBitmapDataClear)
-				{
-					_bitmapData.fillRect(new Rectangle(0, 0, _bitmapData.width, _bitmapData.height), 0);
-				}
+					_bitmapData.fillRect(
+                        new Rectangle(0, 0, _bitmapData.width, _bitmapData.height),
+                        0
+                    );
+
 				_bitmapData.draw(_source, _matrix);

 				_texture.setContentFromBitmapData(_bitmapData, _mipMapping);


Transferred from the Adobe Open Source Subversion Repository

Revision: 18987
Author:   rfrishbe@adobe.com
Date:     2010-12-03T01:08:34.503999Z

Log Message:
-----------
PARB changes for sizeElement/positionElement.  MobileSkin and MobileItemRenderer's methods have been renamed: resizeElement() -> setElementSize(), positionElement() -> setElementPosition().

Also, cleaning up text reflow for TextAreaSkin

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as
@@ -242,8 +242,8 @@
 		// position & size border
 		if (border)
 		{
-			resizeElement(border, unscaledWidth, unscaledHeight);
-			positionElement(border, 0, 0);
+			setElementSize(border, unscaledWidth, unscaledHeight);
+			setElementPosition(border, 0, 0);
 		}

 		// position & size the text
@@ -260,15 +260,15 @@
 		{
 			textDisplay.commitStyles();

-			resizeElement(textDisplay, unscaledTextWidth, unscaledTextHeight);
-			positionElement(textDisplay, paddingLeft, textTopPosition);
+			setElementSize(textDisplay, unscaledTextWidth, unscaledTextHeight);
+			setElementPosition(textDisplay, paddingLeft, textTopPosition);
 		}

 		if (promptDisplay)
 		{
 			promptDisplay.commitStyles();
-			resizeElement(promptDisplay, unscaledTextWidth, unscaledTextHeight);
-			positionElement(promptDisplay, paddingLeft, textTopPosition);
+			setElementSize(promptDisplay, unscaledTextWidth, unscaledTextHeight);
+			setElementPosition(promptDisplay, paddingLeft, textTopPosition);
 		}
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17401
Author:   dthakkar@adobe.com
Date:     2010-08-20T03:21:57.711520Z

Log Message:
-----------
Flex integration bug fixes

QE notes: No
Doc notes: No
Bugs: SDK-27420, SDK-26936, SDK-27452
Reviewer: Craig , Masa
Tests run: Checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
+++ frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as
@@ -120,7 +120,7 @@
      *  The code needs be able to find out if the locale style has been changed
      *  from earlier.
      */
-    mx_internal var localeStyle:String = null;
+    mx_internal var localeStyle:* = undefined;

     /**
      *  @private
@@ -362,7 +362,7 @@
         // following such rule here. We update the lastOperationStatus only when
         // locale is undefined.

-        if (!localeStyle)
+        if ((localeStyle === undefined) || (localeStyle === null))
         {
             fallbackLastOperationStatus
                                 = LastOperationStatus.LOCALE_UNDEFINED_ERROR;
@@ -436,9 +436,9 @@
      */
     private function localeChanged():void
     {
-        const newlocaleStyle:String = getStyle("locale");
-
-        if (localeStyle == newlocaleStyle)
+        const newlocaleStyle:*= getStyle("locale") ;
+
+        if (localeStyle !== undefined && localeStyle == newlocaleStyle)
             return;

         localeStyle = newlocaleStyle;


FLEX-34854 FLEX-34885 While trying to figure out whether ComplexFieldChangeWatcher should handle CollectionEventKind.UPDATE events, I stumbled on this bug. This is the unit test which demonstrates it (currently fails, since the bug is still there).

--- frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
+++ frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
@@ -360,6 +360,37 @@
             assertRemoveAll();
         }

+        [Test]
+        public function test_marking_entire_item_as_updated_gets_the_old_object_out_of_the_list():void
+        {
+            //given
+            var from0To4:IList = generateVOs(5);
+            _sut.addAll(from0To4);
+
+            const sortByNameAscending:Sort = new Sort();
+            sortByNameAscending.fields = [new SortField("name", false, false, false)];
+            _sut.sort = sortByNameAscending;
+            _sut.refresh(); //values["name"]: Object0, Object1, Object2, Object3, Object4
+
+            //when
+            const removedItem:ListCollectionView_Sort_VO = _sut.getItemAt(0) as ListCollectionView_Sort_VO;
+            const newItem:ListCollectionView_Sort_VO = generateOneObject(0);
+            (_sut.list as ArrayList).source[0] = newItem;
+            _sut.itemUpdated(newItem, null, removedItem, newItem);
+
+            removedItem.name = "Object7"; //should make no difference
+            newItem.name = "Object9"; //should place it at the end of the list
+
+            //then
+            const indexOfRemovedItem:int = _sut.getItemIndex(removedItem);
+            assertEquals("the item should have been removed from the list", -1, indexOfRemovedItem);
+            for(var i:int = 0; i < _sut.length; i++)
+            {
+                assertThat(_sut.getItemAt(i) != removedItem);
+            }
+            assertEquals("the new item should have been moved to the end of the list", _sut.length - 1, _sut.getItemIndex(newItem));
+        }
+
         private function assertIndexesAre(indexes:Array):void
         {
             assertFieldValuesAre("index", indexes);
@@ -442,15 +473,11 @@
     }
 }

+[Bindable]
 dynamic class ListCollectionView_Sort_VO
 {
-    [Bindable]
     public var name:String;
-
-    [Bindable]
     public var address:ListCollectionView_Sort_AddressVO;
-
-    [Bindable]
     public var index:Number;

     public function ListCollectionView_Sort_VO(index:Number, namePrefix:String, streetPrefix:String)
@@ -461,9 +488,9 @@
     }
 }

+[Bindable]
 class ListCollectionView_Sort_AddressVO
 {
-    [Bindable]
     public var street:String;

     public function ListCollectionView_Sort_AddressVO(street:String)


Transferred from the Adobe Open Source Subversion Repository

Revision: 22669
Author:   chiedozi@adobe.com
Date:     2011-09-21T20:01:59.520012Z

Log Message:
-----------
SkinnablePopUpContainer no longer inherits styles from its owner

QE notes:
Doc notes:
Bugs:
Reviewer: Jason SJ
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/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -28,7 +28,6 @@
 import mx.core.mx_internal;
 import mx.events.ResizeEvent;
 import mx.managers.SystemManager;
-import mx.styles.StyleProtoChain;
 import mx.utils.MatrixUtil;
 import mx.utils.PopUpUtil;

@@ -703,15 +702,6 @@
         // Position the arrow
         updateSkinDisplayList();
     }
-
-    /**
-     *  @private
-     *  Force callout inheritance chain to start at the style root.
-     */
-    override mx_internal function initProtoChain():void
-    {
-        StyleProtoChain.initProtoChain(this, false);
-    }

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


Fix 551993 -  Add a %%prefix clause to selftest specs (r=edwsmith)

--- extensions/selftest.as
+++ extensions/selftest.as
@@ -60,10 +60,11 @@
  *
  * Grammar
  *
- *   file      ::= component category ifdef* (decls | methods | prologue | epilogue | test)*
+ *   file      ::= component category ifdef* prefix? (decls | methods | prologue | epilogue | test)*
  *   component ::= SOL "%%component" ident EOL
  *   category  ::= SOL "%%category" ident EOL
  *   ifdef     ::= SOL ( "%%ifdef" | "%%ifndef" ) ident EOL
+ *   prefix    ::= SOL "%%prefix" EOL text
  *   decls     ::= SOL "%%decls" EOL text
  *   methods   ::= SOL "%%methods" EOL text
  *   prologue  ::= SOL "%%prologue" EOL text
@@ -99,12 +100,18 @@
  *   VMCFG_SELFTEST and also each of the names declared in %%ifdef
  *   statements.
  *
- *   The code that is generated comprises a class and its methods, all
- *   within a "namespace avmplus" block. Text in %%decls blocks is
- *   inserted verbatim into the class definition; text in %%methods
- *   blocks is inserted verbatim into the top level of the file.
- *   These sections allow the test case to define and use auxiliary
- *   data and methods.
+ *   Code is generated into a "namespace avmplus" block.
+
+ *   The %%prefix text, if any, is inserted verbatim before generated
+ *   classes or methods; it is useful for "use namespace", class
+ *   definitions, and so on.
+ *
+ *   Apart from the prefix, the code that is generated comprises a
+ *   class and its methods. Text in %%decls blocks is inserted
+ *   verbatim into the class definition; text in %%methods blocks is
+ *   inserted verbatim into the top level of the file following the
+ *   class definition.  These sections allow the test case to define
+ *   and use auxiliary data and methods.
  *
  *   The code in a %%prologue section will be run once, before any
  *   test in the file is run.  The code in an %%epilogue section will
@@ -132,6 +139,7 @@
 		var category = null;
 		var ifdefs = [];
 		var ifndefs = [];
+		var prefix = [];
 		var decls = [];
 		var methods = [];
 		var prologue = null;
@@ -179,28 +187,35 @@
 				state = 1;
 				st.ifndefs.push(res[1]);
 			}
+			else if (line.match(/^\s*%%prefix/)) {
+				if (state > 2)
+					throw "Too late to define prefix";
+			    state = 2;
+				st.prefix = text();
+				state = 3;
+			}
 			else if (line.match(/^\s*%%decls/)) {
-				state = 2;
+				state = 3;
 				pushMultiple(st.decls, text());
 			}
 			else if (line.match(/^\s*%%methods/)) {
-				state = 2;
+				state = 3;
 				pushMultiple(st.methods, text());
 			}
 			else if (line.match(/^\s*%%prologue/)) {
-				state = 2;
+				state = 3;
 				if (st.prologue != null)
 					throw "Prologue already defined";
 				st.prologue = text();
 			}
 			else if (line.match(/^\s*%%epilogue/)) {
-				state = 2;
+				state = 3;
 				if (st.epilogue != null)
 					throw "Epilogue already defined";
 				st.epilogue = text();
 			}
 			else if (res = /^\s*%%test\s+([a-zA-Z_][a-zA-Z0-9_]+)\s*$/.exec(line)) {
-				state = 2;
+				state = 3;
 				var loc = i;
 				var t = [];
 				var vs = 0;
@@ -277,6 +292,9 @@
 			s.push(st.ifndef_text);
 		s.push("namespace avmplus {");

+		for ( var i=0 ; i < st.prefix.length ; i++ )
+			s.push(st.prefix[i]);
+
 		s.push("class " + classname + " : public Selftest {");
         s.push("public:");
 		s.push(classname + "(AvmCore* core);");


def: 4741 send play & playthrough statistics for bumper ads

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

--- plugins/statisticsPlugin/src/com/kaltura/kdpfl/plugin/component/StatisticsMediator.as
+++ plugins/statisticsPlugin/src/com/kaltura/kdpfl/plugin/component/StatisticsMediator.as
@@ -286,7 +286,18 @@

 			if (sequenceProxy.vo.isInSequence)
 			{
-				handleAdsNotifications();
+				//bumper plugin case - send play & play through statistics
+				if (sequenceProxy.activePlugin() &&
+					sequenceProxy.activePlugin().sourceType=="entryId" &&
+					(note.getName()==NotificationType.MEDIA_READY || note.getName()==NotificationType.PLAYER_PLAYED || note.getName()==NotificationType.PLAYER_UPDATE_PLAYHEAD))
+				{
+					handleMainContentNotifications();
+
+				}
+				else
+				{
+					handleAdsNotifications();
+				}
 			}
 			else
 			{
@@ -340,6 +351,10 @@

 						if (_isNewLoad && !_played) {
 							kse.eventType = com.kaltura.types.KalturaStatsEventType.PLAY;
+							_p25Once = false;
+							_p50Once = false;
+							_p75Once = false;
+							_p100Once = false;
 							_played = true;
 						}

@@ -353,10 +368,6 @@
 								_played = false;
 								_lastId = kse.entryId;
 								_hasSeeked = false;
-								_p25Once = false;
-								_p50Once = false;
-								_p75Once = false;
-								_p100Once = false;
 								_isNewLoad = true;
 								kse.eventType = com.kaltura.types.KalturaStatsEventType.MEDIA_LOADED;
 							}


Cleanup.

Cleanup.

--- HLSPlugin/src/com/kaltura/hls/m2ts/PESProcessor.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/PESProcessor.as
@@ -261,15 +261,12 @@
                 }
             }

-            if (pts > 4294967295) {
-                // decrement 2^33
+            // Handle rollover PTS/DTS values.
+            if (pts > 4294967295)
                 pts -= 8589934592;
-            }
-
-            if (dts > 4294967295) {
-                // decrement 2^33
+
+            if (dts > 4294967295)
                 dts -= 8589934592;
-            }

             packet.pts = pts;
             packet.dts = dts;


A ASDoc for Shader.initializeSettings()

A ASDoc for Shader.initializeSettings()

--- src/aerys/minko/render/shader/Shader.as
+++ src/aerys/minko/render/shader/Shader.as
@@ -19,7 +19,8 @@
 	use namespace minko_shader;

 	/**
-	 * The base class to extend in order to create ActionScript shaders.
+	 * The base class to extend in order to create ActionScript shaders
+	 * and program the GPU using AS3.
 	 *
 	 * @author Jean-Marc Le Roux
 	 * @author Romain Gilliotte
@@ -53,6 +54,7 @@
 		/**
 		 * The name of the shader. Default value is the qualified name of the
 		 * ActionScript shader class (example: "aerys.minko.render.effect.basic::BasicShader").
+		 *
 		 * @return
 		 *
 		 */
@@ -65,16 +67,49 @@
 			_name = value;
 		}

+		/**
+		 * The signal executed when the shader (one of its forks) is used
+		 * for rendering for the very first time during the current frame.
+		 * Callbacks for this signal must accept the following arguments:
+		 *

+		 *
shader : Shader, the shader executing the signal

+		 *
context : Context3D, the context used for rendering

+		 *
backBuffer : RenderTarget, the render target used as the back-buffer

+		 *

+		 *
+		 * @return
+		 *
+		 */
 		public function get begin() : Signal
 		{
 			return _begin;
 		}

+		/**
+		 * The signal executed when the shader (one of its forks) is used
+		 * for rendering for the very last time during the current frame.
+		 * Callbacks for this signal must accept the following arguments:
+		 *

+		 *
shader : Shader, the shader executing the signal

+		 *
context : Context3D, the context used for rendering

+		 *
backBuffer : RenderTarget, the render target used as the back-buffer

+		 *

+		 *
+		 * @return
+		 *
+		 */
 		public function get end() : Signal
 		{
 			return _end;
 		}

+		/**
+		 * Whether the shader (and all its forks) are enabled for rendering
+		 * or not.
+		 *
+		 * @return
+		 *
+		 */
 		public function get enabled() : Boolean
 		{
 			var numInstances 	: uint = _instances.length;
@@ -152,6 +187,16 @@
 			_instances.length = currentId;
 		}

+		/**
+		 * Override this method to initialize the settings
+		 * - such as the blending operands or the triangle culling - of the shader.
+		 * This values can be read from both the mesh and the scene bindings.
+		 *
+		 * @param settings
+		 *
+		 * @see aerys.minko.render.shader.ShaderSettings
+		 *
+		 */
 		protected function initializeSettings(settings : ShaderSettings) : void
 		{
 //			throw new Error("The method 'configurePass' must be implemented.");


Transferred from the Adobe Open Source Subversion Repository

Revision: 12796
Author:   cframpto@adobe.com
Date:     2009-12-10T18:05:16.265768Z

Log Message:
-----------
Because TLF does not have the concept of "auto" fontLookup like we have at the Flex-level, we have had to rework the meaning of the fontLookup attribute so it is possible to have spans with device text in a component whose fontLookup is "embeddedCFF" without requiring fontLookup "device" to be explicitly specified for those spans.

For Spark text components, the default fontLookup has been changed from "auto" to "embeddedCFF".  The default fontFamily is "Arial".

If the component level fontLookup either defaults to "embeddedCFF" or is explicitly set to "embeddedCFF", for each element that is not explicitly set to fontLookup "device", it will first look for the embedded font, and failing that, will fail back to the device font.  All fonts for a given text component must be in the same swf context.

If the component-level fontLookup is "device" or the component-level fontFamily is not found in the swf context, the font lookup for all elements in the component will revert to "device".

If the player doesn't find the device font it will fallback to one of the builtin default fonts.

QE notes: probably need some new mustella tests to cover all the cases - 5 RichText truncation tests fail but I'm not sure this change has anything to do with that
Doc notes:
Bugs: SDK-24470
Reviewer: Gordon
Tests run: checkintests, TextArea, Label, RichText
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>

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

--- frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as
+++ frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as
@@ -60,6 +60,18 @@
      */
 	function deregisterFont(font:EmbeddedFont,
 							moduleFactory:IFlexModuleFactory):void;
+
+    /**
+     *  Returns true if the embedded font with the given characteristics is
+     *  in the moduleFactory, otherwise returns false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function isFontRegistered(font:EmbeddedFont,
+                              moduleFactory:IFlexModuleFactory):Boolean;

     /**
      *  Finds the moduleFactory associated with a font.


Transferred from the Adobe Open Source Subversion Repository

Revision: 1218
Author:   jimurphy@adobe.com
Date:     2008-04-15T16:09:32.174552Z

Log Message:
-----------
merge 3.0.x[1069:1202] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/PNGEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaTypeRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/IImageEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPFault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloColors.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RoundedRectangle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLBinding.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as
+++ frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as
@@ -322,7 +322,7 @@
      *
      *  @param bitmapData The input BitmapData object.
      *
-     *  @returns A ByteArray object containing JPEG-encoded image data.
+     *  @return Returns a ByteArray object containing JPEG-encoded image data.
      */
     public function encode(bitmapData:BitmapData):ByteArray
     {
@@ -353,7 +353,7 @@
      *  @param transparent If false,
 	 *  alpha channel information is ignored.
      *
-     *  @returns A ByteArray object containing JPEG-encoded image data.
+     *  @return Returns a ByteArray object containing JPEG-encoded image data.
      */
     public function encodeByteArray(byteArray:ByteArray, width:int, height:int,
 									transparent:Boolean = true):ByteArray