Transferred from the Adobe Open Source Subversion Repository

Revision: 5305
Author:   chaase@adobe.com
Date:     2009-03-13T20:07:42.611851Z

Log Message:
-----------
Fixed a few unrelated effects bugs, including an RTE when manually playing an FxRotate3D effect, incorrect calculations using valueBy in general, and allowing FxAnimateColor to handle color names instead of just uints.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
@@ -423,14 +423,6 @@
             }
             if (interpolator)
                 mp.interpolator = interpolator;
-            // Fix the first and last values if necessary and possible
-            var kf:KeyFrame = keyframes[keyframes.length - 1];
-            if (!isValidValue(kf.value) &&
-                propertyChanges &&
-                propertyChanges.end[mp.property] !== undefined)
-            {
-                kf.value = propertyChanges.end[mp.property];
-            }
             // adjust effect duration to be the max of all MotionPath keyframe times
             // TODO (chaase): Currently we do not adjust *down* for smaller duration
             // MotionPaths. This is because we do not distinguish between
@@ -541,8 +533,8 @@
                     keyframes[0].value = getCurrentValue(motionPath.property);
                 }
             }
-            // set any other invalid values to the value in the preceding
-            // keyframe
+            // set any other invalid values based on information in surrounding
+            // keyframes
             prevValue = keyframes[0].value;
             for (j = 1; j < keyframes.length; ++j)
             {
@@ -552,7 +544,28 @@
                     if (isValidValue(kf.valueBy))
                         kf.value = motionPath.interpolator.increment(prevValue, kf.valueBy);
                     else
-                        kf.value = prevValue;
+                    {
+                        // if next keyframe has value and valueBy, use them
+                        if (j <= (keyframes.length - 2) &&
+                            isValidValue(keyframes[j+1].value) &&
+                            isValidValue(keyframes[j+1].valueBy))
+                        {
+                            kf.value = motionPath.interpolator.decrement(
+                                keyframes[j+1].value, keyframes[j+1].valueBy);
+                        }
+                        else if (j == (keyframes.length - 1) &&
+                            propertyChanges &&
+                            propertyChanges.end[motionPath.property] !== undefined)
+                        {
+                            // special case for final keyframe - use state value if it exists
+                            kf.value = propertyChanges.end[motionPath.property];
+                        }
+                        else
+                        {
+                            // otherwise, just use previous keyframe value
+                            kf.value = prevValue;
+                        }
+                    }
                 }
                 prevValue = kf.value;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.rpc.soap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19635
Author:   aharui@adobe.com
Date:     2011-01-07T00:25:18.039632Z

Log Message:
-----------
revert the layout changes from svn 18635.  Management feels that there isn't enough time to thoroughly test the changes.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.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/airspark/src/spark/components/Window.as</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="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.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/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.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/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/Window.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/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -27,7 +27,6 @@
 import flash.utils.setInterval;

 import mx.core.FlexGlobals;
-import mx.core.FlexVersion;
 import mx.core.IInvalidating;
 import mx.core.InteractionMode;
 import mx.core.Singleton;
@@ -1070,25 +1069,9 @@
     //--------------------------------------------------------------------------

     /**
-     *  @private
-     *  Applications set estimated sizes for their children
-     */
-    override public function setActualSize(w:Number, h:Number):void
-    {
-        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
-        {
-            setEstimatedSize(w, h, false);
-            invalidateEstimatedSizesOfChildren();
-            validateEstimatedSizesOfChildren();
-        }
-
-        super.setActualSize(w, h);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function invalidateParentSizeAndDisplayList(estimatedSizesChanged:Boolean = false):void
+     *  @private
+     */
+    override protected function invalidateParentSizeAndDisplayList():void
     {
         if (!includeInLayout)
             return;
@@ -1102,7 +1085,7 @@
             return;
         }

-        super.invalidateParentSizeAndDisplayList(estimatedSizesChanged);
+        super.invalidateParentSizeAndDisplayList();
     }

     /**
@@ -1133,7 +1116,7 @@
         // no matter what.
         // This is strictly for the debugger to be able to halt.
         // Note: isDebugger is true only with a Debugger Player.
-        if (sm.isTopLevelRoot() && Capabilities.isDebugger == true)
+        if (sm.isTopLevel() && Capabilities.isDebugger == true)
             setInterval(debugTickler, 1500);
     }

@@ -1530,7 +1513,6 @@
         {
             invalidateProperties();
             invalidateSize();
-            invalidateEstimatedSizesOfChildren();
         }

         setActualSize(w, h);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17249
Author:   rfrishbe@adobe.com
Date:     2010-08-10T00:59:19.903555Z

Log Message:
-----------
Fixing build after 17244.  The build was broken because of an ASDoc comment that included "@Embed".  However, the "@" character has a special meaning in ASDoc.

QE notes: -
Doc notes: -
Bugs: -
Reviewer: No one - simple ASDoc change
Tests run: only ran "ant asdoc"
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -681,7 +681,7 @@
     /**
      *  The image class for the SplashScreen preloader.
      *
-     *  Typically developers set to an embedded resource, i.e. splashScreenImage="@Embed('Default.png')".
+     *  Typically developers set to an embedded resource, i.e. splashScreenImage="@Embed('Default.png')".
      *
      *
Note: The property has effect only when the preloader is set to spark.preloaders.SplashScreen.
      *  The spark.preloaders.SplashScreen class is the default preloader for Mobile Flex applications.


Transferred from the Adobe Open Source Subversion Repository

Revision: 11799
Author:   jszeto@adobe.com
Date:     2009-11-13T22:17:28.344043Z

Log Message:
-----------
PopUpAnchor bug fix

SDK-23436 - spark.components.DropDownList skin - Throws RTE if Setting RotationY on Pop-Up for States

This bug no longer reproduces. But I have added null checks to the code that was throwing the RTE.

QE notes: None
Doc notes: None
Bugs: SDK-23436
Reviewer: Kevin
Tests run: PopUpAnchor, DropDownList, ComboBox
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -218,23 +218,7 @@
         return _displayPopUp;
     }

-    /*[InstanceType("mx.core.UIComponent")]
-    private var _popUpFactory:ITransientDeferredInstance;
-
-    public function set popUpFactory(value:ITransientDeferredInstance):void
-    {
-        if (_popUpFactory == value)
-            return;
-
-        _popUpFactory = value;
-
-        addOrRemovePopUp();
-    }
-
-    public function get popUpFactory():ITransientDeferredInstance
-    {
-        return _popUpFactory;
-    }*/
+

     //----------------------------------
     //  popUp
@@ -369,6 +353,9 @@
         var matrix:Matrix = getPopUpMatrix();

         var regPoint:Point = new Point();
+
+        if (!matrix)
+            return regPoint;

         var popUpBounds:Rectangle = new Rectangle();
         var popUpAsDisplayObject:DisplayObject = popUp as DisplayObject;
@@ -478,12 +465,6 @@
         if (!addedToStage)
             return;

-        /*if (popUpFactory && popUp == null && displayPopUp)
-        {
-            _popUp = UIComponent(popUpFactory.getInstance());
-            _popUp.styleName = this
-        }*/
-
         if (popUp == null)
             return;

@@ -518,13 +499,6 @@
             UIComponent(popUp).explicitWidth = popUpWidth;
             UIComponent(popUp).explicitHeight = popUpHeight;
         }
-
-        /*if (popUpFactory)
-        {
-            _popUp.styleName = null;
-            _popUp = null;
-            popUpFactory.reset();
-        }*/
     }

     /**
@@ -535,8 +509,12 @@
         // Take the PopUpAnchor's concatenatedMatrix
         // and subtract out the popUp parent's concatenatedMatrix
         var matrix:Matrix = systemManager.getSandboxRoot().transform.concatenatedMatrix;
-        matrix.invert();
-        matrix.concat(MatrixUtil.getConcatenatedMatrix(this));
+
+        if (matrix)
+        {
+            matrix.invert();
+            matrix.concat(MatrixUtil.getConcatenatedMatrix(this));
+        }

         return matrix;
     }
@@ -598,9 +576,9 @@
     {
         if (!popUpIsDisplayed)
             return;
-
-        var m:Matrix = $transform.concatenatedMatrix;
-
+
+        var m:Matrix = getPopUpMatrix();
+
         // Set the dimensions explicitly because UIComponents always set themselves to their
         // measured / explicit dimensions if they are parented by the SystemManager.
         if (popUp is UIComponent)
@@ -634,7 +612,10 @@
         {
             // Ignore the RTE
         }
-
+
+        if (!m)
+            return;
+
         // Position the popUp.
         m.tx = popUpPoint.x;
         m.ty = popUpPoint.y;
@@ -653,7 +634,7 @@
         }
         DisplayObject(popUp).transform.colorTransform = tmpColorTransform;
     }
-
+
     //--------------------------------------------------------------------------
     //
     //  Event Handlers


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.layouts
 {


Add loadSkin option in ParserOptions

Add loadSkin option in ParserOptions

--- src/aerys/minko/type/loader/parser/ParserOptions.as
+++ src/aerys/minko/type/loader/parser/ParserOptions.as
@@ -18,6 +18,7 @@
 	public final class ParserOptions
 	{
 		private var _loadDependencies			: Boolean	= false;
+        private var _loadSkin                   : Boolean   = false;
 		private var _dependencyLoaderClosure	: Function	= defaultDependencyLoaderClosure;
 		private var _mipmapTextures				: Boolean	= true;
 		private var _meshEffect					: Effect	= null;
@@ -95,9 +96,19 @@
 			_loadDependencies = value;
 		}

+        public function get loadSkin():Boolean
+        {
+            return _loadSkin;
+        }
+
+        public function set loadSkin(value:Boolean):void
+        {
+            _loadSkin = value;
+        }
+
 		public function clone(): ParserOptions
 		{
-			return new ParserOptions(
+			var parserOptions : ParserOptions = new ParserOptions(
 				_loadDependencies,
 				_dependencyLoaderClosure,
 				_mipmapTextures,
@@ -106,6 +117,8 @@
 				_indexStreamUsage,
 				_parser
 			);
+            parserOptions.loadSkin = _loadSkin;
+            return parserOptions;
 		}

 		public function ParserOptions(loadDependencies			: Boolean = false,
@@ -144,5 +157,6 @@

 			return loader;
 		}
-	}
+
+    }
 }


- bugfixes and code cleanup in DefaultBorderRenderer

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

--- src/reprise/ui/renderers/DefaultBorderRenderer.as
+++ src/reprise/ui/renderers/DefaultBorderRenderer.as
@@ -152,6 +152,13 @@
 			width : Number, pt1 : Point, pt2 : Point, pt3 : Point, pt4 : Point,
 			side : Number) : void
 		{
+			var colorValue : int = 0;
+			var opacityValue : int = 1;
+			if (color)
+			{
+				colorValue = color.rgb();
+				opacityValue = color.opacity();
+			}
 			switch (style)
 			{
 				case Border.BORDER_STYLE_DOTTED :
@@ -162,8 +169,8 @@
 					{
 						dashLength *= 3;
 					}
-					m_display.graphics.lineStyle(width, color && color.rgb() || 0,
-						color && color.opacity() || 1, false, "normal", "none");
+					m_display.graphics.lineStyle(width, colorValue, opacityValue,
+						false, "normal", "none");

 					switch (side)
 					{
@@ -199,8 +206,7 @@
 				case Border.BORDER_STYLE_SOLID :
 				{
 					m_display.graphics.lineStyle();
-					m_display.graphics.beginFill(color && color.rgb() || 0,
-						color && color.opacity() || 1);
+					m_display.graphics.beginFill(colorValue, opacityValue);
 					m_display.graphics.moveTo(pt1.x, pt1.y);
 					m_display.graphics.lineTo(pt2.x, pt2.y);
 					m_display.graphics.lineTo(pt3.x, pt3.y);


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as
+++ frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as
@@ -505,23 +505,27 @@
 	override public function fault(errMsg:ErrorMessage, msg:IMessage):void
     {
         // Ignore faults for any outstanding messages that return after disconnect() is invoked.
-        if (_disconnectBarrier)
-            return;
-
-        // If this error correlates to our current subscribe message,
-        // we should no longer be subscribed.
-        if ((_subscribeMsg != null) && (errMsg.correlationId == _subscribeMsg.messageId))
-            _shouldBeSubscribed = false;
-
-        // If the error is not retryable, or there is no resubscribe timer running,
-        // dispatch a fault event. Otherwise, the resubscribe timer is running and
-        // will generate a fault when it runs out of allowed resubscribe attempts.
-        if (!errMsg.headers[ErrorMessage.RETRYABLE_HINT_HEADER] || _resubscribeTimer == null)
-        {
-            // Stop the resubscribe timer in case it is running.
-            stopResubscribeTimer();
-            super.fault(errMsg, msg);
-        }
+	    if (_disconnectBarrier)
+	        return;
+
+        if (errMsg.headers[ErrorMessage.RETRYABLE_HINT_HEADER])
+        {
+            if (_resubscribeTimer == null)
+            {
+    	        // If this error correlates to our current subscribe message,
+    	        // we should no longer be subscribed.
+    	        if ((_subscribeMsg != null) && (errMsg.correlationId == _subscribeMsg.messageId))
+    	            _shouldBeSubscribed = false;
+    	        super.fault(errMsg, msg);
+    	    }
+    	    // Else, suppress the fault dispatch because the resubscribe
+    	    // timer is running and will generate a fault when it runs out of
+    	    // allowed resubscribe attempts.
+	    }
+	    else
+	    {
+	        super.fault(errMsg, msg);
+	    }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3553
Author:   chaase@adobe.com
Date:     2008-10-09T23:14:18.257660Z

Log Message:
-----------
Fixed sdk-17113, sdk-17139, sdk-16526, sdk-16884, sdk-17154, sdk-16999, sdk-16631, sdk-17214. Most of these fixes are related to making effects work when contraints are enabled on the target. For that, two new attributes were added to FxAnimate: disableLayout (default false) and adjustConstraints (default false). Fixes were also made for various other effects issues, such as running all animations and startDelays off of the same global timer.
The change also includes renames of some effects classes and the easing API (now in mx.effects.interpolation).

Reviewed by: Jason (effects code) and Hans (renames)
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/IEaser.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/IEaser.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/Linear.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/Animate3DInstance.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animate3D.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/Animate3DInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/Constant.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Constant.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/Rotate3DInstance.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Rotate3D.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate3D.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/EaseInOut.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/EaseInOut.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/Power.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Power.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/Rotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/fxEasing/Sine.as" copyfrom-rev="3548" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Sine.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Rotate3D.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateFilter.as
+++ frameworks/projects/spark/src/spark/effects/AnimateFilter.as
@@ -11,7 +11,7 @@
 package mx.effects
 {

-import mx.effects.fxEasing.IEaser;
+import mx.effects.interpolation.IEaser;
 import mx.effects.effectClasses.FxAnimateFilterInstance;

 import mx.core.mx_internal;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13189
Author:   jimurphy@adobe.com
Date:     2009-12-23T14:48:29.770138Z

Log Message:
-----------
merge 3.x revs 13067,13081,13120 -> trunk

--------
rev#13120
Fix to prevent a module leak when accessibility is turned on.

Soft-link to the following in mx.accessibility.AccImp:

mx.containers.Form;
mx.containers.FormHeading;
mx.containers.FormItem;
mx.controls.Label;
mx.core.Container;

and will soft-link to the following in mx.accessibility.UIComponentAccProps:

mx.controls.FormItemLabel;
mx.controls.scrollClasses.ScrollBar;

These changes will keep the classes from being drawn into memory when they are not being used in the application.

This fix stops the module leak because the module's application domain will contain both mx.controls.Button and mx.accessibility.ButtonAccImpl. Since both are in the same application domain the module is free to be garbage collected.

Bugs: SDK-24572

-----------
rev# 13081
AccImpl should check for ISystemManager, not SystemManager.

----------
rev#13067
Fix for html-wrapper ant task generates incorrect wrapper files for flash player version detection.

Bugs: SDK-18826

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/antTasks/src/flex/ant/HtmlWrapperTask.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/UIComponentAccProps.as</path>

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

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -15,18 +15,15 @@
 import flash.accessibility.Accessibility;
 import flash.accessibility.AccessibilityImplementation;
 import flash.accessibility.AccessibilityProperties;
+import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.events.Event;
-
-import mx.accessibility.AccConst;
-import mx.containers.Form;
-import mx.containers.FormHeading;
-import mx.containers.FormItem;
-import mx.controls.Label;
-import mx.core.Container;
+import flash.system.ApplicationDomain;
+
+import mx.core.IFlexModuleFactory;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.managers.SystemManager;
+import mx.managers.ISystemManager;
 import mx.resources.ResourceManager;
 import mx.resources.IResourceManager;

@@ -55,6 +52,38 @@
     //--------------------------------------------------------------------------

     /**
+     *  @private
+     *
+     *  Get the definition of a class, namespace, or function. The defintion is
+     *  obtained from the specified moduleFactory. If there is no moduleFactory,
+     *  then the definition of looked up in ApplicationDomain.currentDomain.
+     *
+     *  @param name name of the class, namespace, or function to get.
+     *  @param moduleFactory The moduleFactory that specifies the application
+     *  domain to use to find the name. If moduleFactory is null, then
+     *  ApplicationDomain.currentDomain is used as a fall back.
+     *
+     *  return a class, namespace, or function.
+     *
+     */
+    mx_internal static function getDefinition(name:String, moduleFactory:IFlexModuleFactory):Object
+    {
+        var currentDomain:ApplicationDomain;
+
+        // Use the given module factory to look for the domain. If the module
+        // factory is null then fall back to Application.currentDomain.
+        if (moduleFactory)
+            currentDomain = moduleFactory.info()["currentDomain"];
+        else
+            currentDomain = ApplicationDomain.currentDomain;
+
+        if (currentDomain.hasDefinition(name))
+            return currentDomain.getDefinition(name);
+
+        return null;
+    }
+
+    /**
      *  Method for supporting state Accessibility.
      *  Returns true if an ancestor of the component has enabled set to false.
      */
@@ -63,10 +92,12 @@
         // keeping this DisplayObjectContainer since parent returns
         // that as root is not a UIComponent.
         var par:DisplayObjectContainer = component.parent;
+
         // continue looking up the parent chain
-        // until root (or application) or FormItem is found.
+        // until a disabled UIComponent is found
+		// stopping at the root or system manager
         while (par && (par is UIComponent && UIComponent(par).enabled) &&
-               !(par is SystemManager) && par != component.root)
+               !(par is ISystemManager) && par != component.root)
         {
             par = par.parent;
         }
@@ -90,22 +121,26 @@
         var formName:String = "";

         // Return nothing if we are a container
-        if (component is Container)
+        var containerClass:Class = Class(getDefinition("mx.core.Container", component.moduleFactory));
+        if (containerClass && component is containerClass)
             return formName;

         // keeping this DisplayObjectContainer since parent returns
         // that as root is not a UIComponent.
+        var formItemClass:Class = Class(getDefinition("mx.containers.FormItem", component.moduleFactory));
         var par:DisplayObjectContainer = component.parent;
+
         // continue looking up the parent chain
-        // until root (or application) or FormItem is found.
-        while (par && !(par is FormItem) &&
-               !(par is SystemManager) && par != component.root)
+		// until a FormItem is found
+        // stopping at the root or system manager
+        while (par && !(formItemClass && par is formItemClass) &&
+               !(par is ISystemManager) && par != component.root)
         {
             par = par.parent;
         }

-        if (par && par is FormItem)
-            formName = updateFormItemString(FormItem(par));
+        if (par && formItemClass && par is formItemClass)
+            formName = updateFormItemString(par);

         return formName;
     }
@@ -132,30 +167,35 @@
     /**
      *  @private
      *  Method for supporting Form Accessibility.
-     */
-    private static function updateFormItemString(formItem:FormItem):String
+     *
+     *  @param formItem Object of type FormItem. Object is used here to avoid
+     *  linking in FormItem.
+     */
+    private static function updateFormItemString(formItem:Object):String
     {
         var formName:String = "";
         var resourceManager:IResourceManager = ResourceManager.getInstance();

+        var formClass:Class = Class(getDefinition("mx.containers.Form", formItem.moduleFactory));
         var form:UIComponent = UIComponent(formItem.parent);

         // If we are located within a Form, then look for the first FormHeading
         // that is a sibling that is above us in the parent's child hierarchy
-        if (form is Form)
-        {
-            var formItemIndex:int = form.getChildIndex(formItem);
+        if (formClass && form is formClass)
+        {
+            var formHeadingClass:Class = Class(getDefinition("mx.containers.FormHeading", formItem.moduleFactory));
+            var formItemIndex:int = form.getChildIndex(DisplayObject(formItem));
             for (var i:int = formItemIndex; i >= 0; i--)
             {
                 var child:UIComponent = UIComponent(form.getChildAt(i));
-                if (child is FormHeading)
+                if (formHeadingClass && child is formHeadingClass)
                 {
                     // Accessible name if it exists, else label text.
-                    if (FormHeading(child).accessibilityProperties)
+                    if (formHeadingClass(child).accessibilityProperties)
                         formName =
-                        FormHeading(child).accessibilityProperties.name;
+                            formHeadingClass(child).accessibilityProperties.name;
                     if (formName == "")
-                        formName = FormHeading(child).label;
+                        formName = formHeadingClass(child).label;
                     break;
                 }
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13256
Author:   smgilson@adobe.com
Date:     2010-01-04T17:43:03.272578Z

Log Message:
-----------
Fix broken HTML tag in ASDoc comment

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as

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

--- frameworks/projects/framework/src/mx/accessibility/AccImpl.as
+++ frameworks/projects/framework/src/mx/accessibility/AccImpl.as
@@ -119,7 +119,7 @@
  *      is called to provide a default name.
  *      (For example, ButtonAccImpl implements getName()
  *      to specify that a Button's default name is the label that it displays.)
- *      If not empty, the return value of getName() is added.
+ *      If not empty, the return value of getName() is added.

  *
Otherwise (if getName() returned empty),
  *      if the component's toolTip property is set,
  *      that String is added.

@@ -263,7 +263,7 @@

         // continue looking up the parent chain
         // until a disabled UIComponent is found
-		// stopping at the root or system manager
+        // stopping at the root or system manager
         while (par && (par is UIComponent && UIComponent(par).enabled) &&
                !(par is ISystemManager) && par != component.root)
         {
@@ -283,7 +283,7 @@
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
-	 */
+     */
     public static function getFormName(component:UIComponent):String
     {
         var formName:String = "";
@@ -299,7 +299,7 @@
         var par:DisplayObjectContainer = component.parent;

         // continue looking up the parent chain
-		// until a FormItem is found
+        // until a FormItem is found
         // stopping at the root or system manager
         while (par && !(formItemClass && par is formItemClass) &&
                !(par is ISystemManager) && par != component.root)
@@ -451,7 +451,7 @@

     /**
      *  Accessibility role of the component being made accessible.
-	 *
+     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
@@ -682,7 +682,7 @@
             case "toolTipChanged":
             {
                 Accessibility.sendEvent(master, 0,
-										AccConst.EVENT_OBJECT_NAMECHANGE);
+                                        AccConst.EVENT_OBJECT_NAMECHANGE);
                 Accessibility.updateProperties();
                 break;
             }
@@ -690,7 +690,7 @@
             case "show":
             {
                 Accessibility.sendEvent(master, 0,
-										AccConst.EVENT_OBJECT_SHOW);
+                                        AccConst.EVENT_OBJECT_SHOW);
                 Accessibility.updateProperties();
                 break;
             }
@@ -698,7 +698,7 @@
             case "hide":
             {
                 Accessibility.sendEvent(master, 0,
-										AccConst.EVENT_OBJECT_HIDE);
+                                        AccConst.EVENT_OBJECT_HIDE);
                 Accessibility.updateProperties();
                 break;
             }


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 21680
Author:   jszeto@adobe.com
Date:     2011-07-21T21:56:22.533455Z

Log Message:
-----------
Item Snapping, SpinnerList and DateSpinner Initial checkin

Merging in changes from sandbox development branch

SpinnerList and DateSpinner are in usable states, but there is still unimplemented functionality.

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Tom Kraikit, Eric Day, Jason Szeto
Tests run: checkintests, full cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateAndTimeRangeList.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.settings/org.eclipse.core.resources.prefs</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalendarDate.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.settings</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/DateSpinnerTest-app.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/effects/ThrowEffect.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerBackground.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/views</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.flexProperties</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/libs</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/bundles/en_US/components.properties</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollHelper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/TabbedViewNavigatorButtonBarFirstButton_down.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/DateSpinnerTest.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/blackberry-tablet.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/src/views/DateSpinnerTestHomeView.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="dir" action="M">/private/flex/sdk/branches/4.y</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/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/.settings</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/development/eclipse/flex/DateSpinnerTest/.project</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerShadow.fxg</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerShadow.fxg</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -266,7 +266,7 @@
      *  Sets the rowCount property and dispatches a
      *  PropertyChangeEvent.
      */
-    private function setRowCount(value:int):void
+    mx_internal function setRowCount(value:int):void
     {
         if (_rowCount == value)
             return;
@@ -834,7 +834,7 @@
      *
      *  @private
      */
-    private function setIndexInView(firstIndex:int, lastIndex:int):void
+    mx_internal function setIndexInView(firstIndex:int, lastIndex:int):void
     {
         if ((_firstIndexInView == firstIndex) && (_lastIndexInView == lastIndex))
             return;
@@ -887,7 +887,7 @@

         return llv.getBounds(index);
     }
-
+
     /**
      *  Returns 1.0 if the specified index is completely in view, 0.0 if
      *  it's not, or a value between 0.0 and 1.0 that represents the percentage
@@ -1236,7 +1236,7 @@
      *  @private
      *  @return rows to measure based on elements in layout and any requested/min/max rowCount settings.
      */
-    private function getRowsToMeasure(numElementsInLayout:int):int
+    mx_internal function getRowsToMeasure(numElementsInLayout:int):int
     {
         var rowsToMeasure:int;
         if (requestedRowCount != -1)
@@ -1766,11 +1766,11 @@
         var targetWidth:Number = Math.max(0, layoutTarget.width - paddingLeft - paddingRight);
         var minVisibleY:Number = layoutTarget.verticalScrollPosition;
         var maxVisibleY:Number = minVisibleY + layoutTarget.height;
-
-        var contentHeight:Number;
-        var paddedContentHeight:Number;

-        updateLLV(layoutTarget);
+		var contentHeight:Number;
+		var paddedContentHeight:Number;
+
+		updateLLV(layoutTarget);

         // Find the index of the first visible item. Since the item's bounds includes the gap
         // that follows it, we want to avoid looking at an item that has only a portion of
@@ -1779,13 +1779,13 @@
         // simply start from minVisibleY - SDK-22497.
         var startIndex:int = llv.indexOf(Math.max(0, minVisibleY + gap));
         if (startIndex == -1)
-        {
-            // No items are visible.  Just set the content size.
-            contentHeight = llv.end(llv.length - 1) - paddingTop;
-            paddedContentHeight = Math.ceil(contentHeight + paddingTop + paddingBottom);
-            layoutTarget.setContentSize(layoutTarget.contentWidth, paddedContentHeight);
-            return;
-        }
+		{
+			// No items are visible.  Just set the content size.
+			contentHeight = llv.end(llv.length - 1) - paddingTop;
+			paddedContentHeight = Math.ceil(contentHeight + paddingTop + paddingBottom);
+			layoutTarget.setContentSize(layoutTarget.contentWidth, paddedContentHeight);
+			return;
+		}

         var fixedRowHeight:Number = NaN;
         if (!variableRowHeight)
@@ -1838,7 +1838,7 @@
         }

         // Third pass: if neccessary, fix up y based on updated contentHeight
-        contentHeight = llv.end(llv.length - 1) - paddingTop;
+		contentHeight = llv.end(llv.length - 1) - paddingTop;
         var targetHeight:Number = Math.max(0, layoutTarget.height - paddingTop - paddingBottom);
         if (contentHeight < targetHeight)
         {
@@ -1870,7 +1870,7 @@
         // Make sure that if the content spans partially over a pixel to the right/bottom,
         // the content size includes the whole pixel.
         var paddedContentWidth:Number = Math.ceil(contentWidth + paddingLeft + paddingRight);
-        paddedContentHeight = Math.ceil(contentHeight + paddingTop + paddingBottom);
+		paddedContentHeight = Math.ceil(contentHeight + paddingTop + paddingBottom);
         layoutTarget.setContentSize(paddedContentWidth, paddedContentHeight);
     }

@@ -2233,6 +2233,56 @@
             delta.x = 0;
         return delta;
     }
+
+    /**
+     *  @private
+     *  Identifies the element which has its "compare point" located closest
+     *  to the specified position.
+     */
+    override mx_internal function getElementNearestScrollPosition(
+        position:Point,
+        elementComparePoint:String = "center"):int
+    {
+        if (!useVirtualLayout)
+            return super.getElementNearestScrollPosition(position, elementComparePoint);
+
+        var g:GroupBase = GroupBase(target);
+        if (!g || !llv)
+            return -1;
+
+        // Find the element which overlaps with the position
+        var index:int = llv.indexOf(position.y);
+
+        // Invalid index indicates that the position is past either end of the
+        // laid-out elements.   In this case, choose either the first or last one.
+        if (index == -1)
+            index = position.y < 0 ? 0 : g.numElements - 1;
+
+        var bounds:Rectangle = llv.getBounds(index);
+        var adjacentBounds:Rectangle;
+
+        // If we're comparing with a bottom-edge point, check both the current element and the element
+        // at index-1 to see which is closest.
+        if ((elementComparePoint == "bottomLeft" || elementComparePoint == "bottomRight") && index > 0)
+        {
+            adjacentBounds = llv.getBounds(index - 1);
+            if (Point.distance(position,adjacentBounds.bottomRight) < Point.distance(position,bounds.bottomRight))
+                index--;
+        }
+
+        // If we're comparing with a top-edge point, check both the current element and the element
+        // at index+1 to see which is closest.
+        if ((elementComparePoint == "topLeft" || elementComparePoint == "topRight") && index < g.numElements-1)
+        {
+            adjacentBounds = llv.getBounds(index + 1);
+            if (Point.distance(position,adjacentBounds.topLeft) < Point.distance(position,bounds.topLeft))
+                index++;
+        }
+
+        return index;
+    }
+
+
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3149
Author:   gruehle@adobe.com
Date:     2008-09-08T23:58:35.368231Z

Log Message:
-----------
Fix bugs introduced by the display object sharing optimization. This checkin should fix ordering problems when dynamically adding/removing graphic elements, and ordering problems when changing graphic element properties that require a display object (rotation, alpha, filters, etc).

Bugs:
MXMLG-219: BitmapGraphic component content always rendered from 0, 0 origin.
MXMLG-220: setting visible property of Rect and Ellipse does nothing.
MXMLG-222: setting the alpha of a rectangle changes z-order when there are 3 or more rectangles
SDK-16754: Z-order incorrect when a Group is present

QA: Yes - the test files from these bugs (or something equivalent) should be added to our standard test suite
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -251,8 +251,8 @@
 	    //g.clear();

 		g.lineStyle(0,0,0);
-		_fill.offsetX = 0;
-		_fill.offsetY = 0;
+		_fill.offsetX = drawX;
+		_fill.offsetY = drawY;
 		_fill.repeat = repeat;
 		_fill.smooth = smooth;
 		var w:Number = unscaledWidth;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.events
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2790
Author:   gosmith@adobe.com
Date:     2008-08-08T22:08:51.675681Z

Log Message:
-----------
Infrastructure for CSS support in TextGraphicElement.

TextGraphicElement now has stubs that implement the same two CSS interfaces that UIComponent implements, namely ISimpleStyleClient and IStyleClient.

Reviewer: Deepa
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
@@ -89,7 +89,7 @@
 		addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);

 		inheritingStyles = nonInheritingStyles =
-			UIComponent.STYLE_UNINITIALIZED;
+			StyleManager.STYLE_UNINITIALIZED;
 	}

 	//--------------------------------------------------------------------------
@@ -325,7 +325,7 @@
         var isInheritingStyle:Boolean =
 			StyleManager.isInheritingStyle(styleProp);
         var isProtoChainInitialized:Boolean =
-			inheritingStyles != UIComponent.STYLE_UNINITIALIZED;
+			inheritingStyles != StyleManager.STYLE_UNINITIALIZED;
         if (isInheritingStyle)
         {
             if (getStyle(styleProp) == newValue && isProtoChainInitialized)
@@ -527,7 +527,7 @@
         if (p)
         {
             var inheritChain:Object = p.inheritingStyles;
-            if (inheritChain == UIComponent.STYLE_UNINITIALIZED)
+            if (inheritChain == StyleManager.STYLE_UNINITIALIZED)
                 inheritChain = nonInheritChain;
         }
         else


def: 3547 ads didn't play after mediaError

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

--- plugins/vastPlugin/src/com/kaltura/kdpfl/plugin/component/VastLinearAdProxy.as
+++ plugins/vastPlugin/src/com/kaltura/kdpfl/plugin/component/VastLinearAdProxy.as
@@ -2,6 +2,7 @@

 	import com.kaltura.kdpfl.model.MediaProxy;
+	import com.kaltura.kdpfl.model.SequenceProxy;
 	import com.kaltura.kdpfl.model.type.SequenceContextType;
 	import com.kaltura.osmf.proxy.KSwitchingProxyElement;

@@ -358,7 +359,9 @@
 		 */
 		private function onVastAdError(e:MediaErrorEvent):void {
 			trace("A problem occured when playing this ad : " + e.error);
-			signalEnd();
+			var sequenceProxy : SequenceProxy = facade.retrieveProxy( SequenceProxy.NAME ) as SequenceProxy;
+			if (sequenceProxy.vo.isInSequence)
+				signalEnd();
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12287
Author:   aharui@adobe.com
Date:     2009-11-30T18:52:52.476947Z

Log Message:
-----------
Couple of DG fixes

QE Notes: None
Doc Notes: None
Bugs: SDK-24127, SDK-16262
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/DataGrid

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -4438,9 +4438,9 @@
         var dataGridEvent:DataGridEvent =
             new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, true);
             // ITEM_EDIT events are cancelable
-        dataGridEvent.columnIndex = columnIndex;
+        dataGridEvent.columnIndex = Math.min(columnIndex, columns.length - 1);
         dataGridEvent.dataField = _columns[columnIndex].dataField;
-        dataGridEvent.rowIndex = rowIndex;
+        dataGridEvent.rowIndex = Math.min(rowIndex, collection.length - 1);
         dataGridEvent.itemRenderer = itemRenderer;
         if (!dispatchEvent(dataGridEvent))
             lastEditedItemPosition = { columnIndex: columnIndex, rowIndex: rowIndex };


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

--- frameworks/projects/mx/src/mx/controls/TileList.as
+++ frameworks/projects/mx/src/mx/controls/TileList.as
@@ -0,0 +1,111 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-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.controls
+{
+
+import mx.controls.listClasses.TileBase;
+import mx.controls.listClasses.TileListItemRenderer;
+import mx.core.ClassFactory;
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[DefaultBindingProperty(source="selectedItem", destination="dataProvider")]
+
+[DefaultProperty("dataProvider")]
+
+[DefaultTriggerEvent("change")]
+
+[IconFile("TileList.png")]
+
+//--------------------------------------
+//  Effects
+//--------------------------------------
+
+/**
+ *  The data effect to play when a change occur to the control's data provider.
+ *
+ *
By default, the TileList control does not use a data effect.
+ *  For the TileList control, use an instance of the DefaultTileListEffect class.

+ *
+ * @default undefined
+ */
+[Effect(name="itemsChangeEffect", event="itemsChange")]
+
+/**
+ *  The TileList control displays a number of items laid out in tiles.
+ *  It displays a scroll bar on one of its axes to access all items
+ *  in the list, depending on the direction property.
+ *  You can set the size of the tiles by using rowHeight
+ *  and columnWidth properties.
+ *  Alternatively, Flex measures the item renderer for the first item
+ *  in the dataProvider and uses that size for all tiles.
+ *
+ *
The TileList control has the following default sizing
+ *     characteristics:

+ *

+ *

+ *           Characteristic
+ *           Description
+ *

+ *

+ *           Default size
+ *           Four columns and four rows. Using the default item
+ *               renderer, each cell is 50 by 50 pixels, and the total
+ *               size is 200 by 200 pixels.
+ *

+ *

+ *           Minimum size
+ *           0 pixels.
+ *

+ *

+ *           Maximum size
+ *           5000 by 5000.
+ *

+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:TileList> tag inherits
+ *  all of the tag attributes of its superclass, but ignores the
+ *  variableRowHeight and wordWrap tag attributes.
+ *  It adds no additional tag attributes.

+ *
+ *

+ *  <mx:TileList/>
+ *

+ *
+ *  @includeExample examples/TileListExample.mxml
+ */
+public class TileList extends TileBase
+{
+	include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function TileList()
+	{
+		super();
+
+		itemRenderer = new ClassFactory(TileListItemRenderer);
+	}
+}
+
+}


Added current/expected memory labels

Added current/expected memory labels

--- src/Displays/DMemory.as
+++ src/Displays/DMemory.as
@@ -58,12 +58,12 @@

 		protected function makePages():void {
 			pages = new Vector.<FlxGroup>;
-			pages.push(add(makeMemoryPage(memory)));
+			pages.push(add(makeMemoryPage(memory, "Current Memory")));
 			if (expectedMemory)
-				pages.push(add(makeMemoryPage(expectedMemory)));
+				pages.push(add(makeMemoryPage(expectedMemory, "Expected Memory")));
 		}

-		protected function makeMemoryPage(memory:Vector.<Value>):FlxGroup {
+		protected function makeMemoryPage(memory:Vector.<Value>, pageName:String):FlxGroup {
 			var BORDER:int = 10;
 			var COL_WIDTH:int = 225;
 			var COL_HEIGHT:int = bg.height - BORDER * 2;
@@ -98,6 +98,8 @@
 				}
 			}
 			//TODO: multiple pages of actual memory
+
+			memoryPage.add(U.BODY_FONT.configureFlxText(new FlxText(bg.x + bg.width / 2, bg.y + bg.height - 40, bg.width / 2, pageName), 0xffffff, 'center'));

 			return memoryPage;
 		}


Actually disabling anti aliasing on Picking Shader pass

--- src/aerys/minko/scene/controller/PickingController.as
+++ src/aerys/minko/scene/controller/PickingController.as
@@ -55,6 +55,8 @@
 		private static const EVENT_MIDDLE_DOWN		: uint 			= 1 << 14;
 		private static const EVENT_MIDDLE_UP		: uint 			= 1 << 15;

+		private static var _previousAntiAliasing	: int = 0;
+
         private var _technique          	: uint;
 		private var _pickingRate			: Number;

@@ -269,13 +271,7 @@
 			if (!_dispatchers[viewport])
 				bindDefaultInputs(viewport);

-			var antiAliasing : int = 0;
-
-			if (viewport.antiAliasing && _technique & PickingTechnique.PIXEL_PICKING)
-			{
-				antiAliasing = viewport.antiAliasing;
-				viewport.antiAliasing = 0;
-			}
+			_previousAntiAliasing = viewport.antiAliasing;

 			// toggle picking pass
 			if (time - _lastPickingTime > 1000. / _pickingRate && _toDispatch != EVENT_NONE)
@@ -322,7 +318,6 @@
                                 {
 									if (!(_technique & PickingTechnique.PIXEL_PICKING))
 									{
-										trace(_lastMouseOver ?_lastMouseOver.name : "null", _currentMouseOver ? _currentMouseOver.name : "null", hits[0] ? hits[0].name : "null");
 										_lastMouseOver = _currentMouseOver;
 										_currentMouseOver = hits[0] as Mesh;
 									}
@@ -377,17 +372,13 @@
                     executeSignals();
                 }
 			}
-
-			if (antiAliasing > 0)
-			{
-				viewport.antiAliasing = antiAliasing;
-			}
 		}

 		private static function cleanPickingMap(shader		: Shader,
 												context		: Context3DResource,
 												backBuffer	: RenderTarget) : void
 		{
+			context.configureBackBuffer(backBuffer.width, backBuffer.height, 0, true);
 			context.clear(0, 0, 0, 0);
 		}

@@ -405,6 +396,9 @@
 				(color & 0xff) / 255.
 			);

+			context.configureBackBuffer(backBuffer.width, backBuffer.height, _previousAntiAliasing, true);
+			context.clear(0, 0, 0, 0);
+
 			SHADER.enabled = false;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6220
Author:   smgilson@adobe.com
Date:     2009-04-23T19:19:23.764222Z

Log Message:
-----------
More ASDoc work on effects

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.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/effects/supportClasses/AnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/CallActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
@@ -66,7 +66,7 @@
     //----------------------------------

     /**
-     *  The name of the property being changed.
+     *  @copy spark.effects.SetAction#property
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -90,7 +90,7 @@
     private var _value:*;

     /**
-     *  The new value for the property.
+     *  @copy spark.effects.SetAction#value
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 7910
Author:   egeorgie@adobe.com
Date:     2009-06-17T01:41:55.138890Z

Log Message:
-----------
P-ARB changes:

* IGraphicElement sharedIndex -> DisplayObjectSharingMode
* ScrollUnit -> NavigationUnit
* LayoutBase.getDestinationIndex -> LayoutBase.getNavigationDestinationIndex, param order reversed!!!!
* mouseOpaque -> mouseEnabledWhereTransparent
* various other small renames and changes to non-public APIs

Doc Notes: None
Bugs: N/A
Reviewer: Deepa
tests: checkintests

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/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</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/components/supportClasses/InvalidatingSprite.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/core/IViewport.as</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="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/ScrollUnit.as</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/frameworks/projects/flex4/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.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/VScrollBar.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/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.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/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -16,7 +16,6 @@
 import flash.display.BlendMode;
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
-import flash.display.LineScaleMode;
 import flash.display.Shape;
 import flash.display.Sprite;
 import flash.events.Event;
@@ -45,12 +44,12 @@
 import mx.filters.IBitmapFilter;
 import mx.geom.Transform;
 import mx.geom.TransformOffsets;
-import mx.graphics.IStroke;
 import mx.managers.ILayoutManagerClient;
 import mx.utils.MatrixUtil;

 import spark.components.Group;
 import spark.components.supportClasses.InvalidatingSprite;
+import spark.core.DisplayObjectSharingMode;
 import spark.core.IGraphicElement;
 import spark.core.MaskType;

@@ -302,7 +301,7 @@
             layoutFeatures.updatePending = true;

         // If we are sharing a display object we need to redraw
-        if (sharedIndex >= 0)
+        if (displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             invalidateDisplayList();
         else
             invalidateProperties(); // We apply the transform in commitProperties
@@ -1805,7 +1804,7 @@
 			_colorTransform = new ColorTransform(value.redMultiplier, value.greenMultiplier, value.blueMultiplier, value.alphaMultiplier,
 												 value.redOffset, value.greenOffset, value.blueOffset, value.alphaOffset);

-			if (displayObject && sharedIndex == -1)
+			if (displayObject && displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             {
                 displayObject.transform.colorTransform = _colorTransform;
             }
@@ -2293,7 +2292,7 @@
         // clear it from the display object so that we can set it in the new
         // display object. A Matrix3D object can't be used simultaneously with
         // more than one display object.
-        if (oldValue && sharedIndex == -1)
+        if (oldValue && displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             oldValue.transform.matrix3D = null;

         _displayObject = value;
@@ -2326,7 +2325,7 @@
     {
         // If we don't share the display object, we will draw at 0,0
         // since the display object will be positioned at x,y
-        if (sharedIndex == -1)
+        if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             return 0;

         // Otherwise we draw at x,y since the display object will be
@@ -2353,7 +2352,7 @@
     {
         // If we don't share the display object, we will draw at 0,0
         // since the display object will be positioned at x,y
-        if (sharedIndex == -1)
+        if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             return 0;

         // Otherwise we draw at x,y since the display object will be
@@ -2424,6 +2423,45 @@
         _includeInLayout = value;
     }

+    //----------------------------------
+    //  displayObjectSharingMode
+    //----------------------------------
+
+    private var _displayObjectSharingMode:String;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function set displayObjectSharingMode(value:String):void
+    {
+        if (value == _displayObjectSharingMode)
+            return;
+
+        if (value != DisplayObjectSharingMode.USES_SHARED_OBJECT ||
+            _displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
+        {
+            // If the element was previously at the head of the shared sequence or
+            // it is assigned to be at the head, make sure to reapply the
+            // displayObject specific properties.
+            displayObjectChanged = true;
+            invalidateProperties();
+        }
+        _displayObjectSharingMode = value;
+    }
+
+    /**
+     *  @private
+     */
+    public function get displayObjectSharingMode():String
+    {
+        return _displayObjectSharingMode;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods
@@ -2583,37 +2621,6 @@
         return element is GraphicElement && !_alwaysCreateDisplayObject && !needsDisplayObject;
     }

-    private var _sharedIndex:int;
-
-    /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function set sharedIndex(value:int):void
-    {
-        if (value != _sharedIndex && (value <= 0 || _sharedIndex <= 0))
-        {
-            // If the element was previously at the head of the shared sequence or
-            // it is assigned to be at the head, make sure to reapply the
-            // displayObject specific properties.
-            displayObjectChanged = true;
-            invalidateProperties();
-        }
-        _sharedIndex = value;
-    }
-
-    /**
-     *  @private
-     */
-    public function get sharedIndex():int
-    {
-        return _sharedIndex;
-    }
-
     protected function get drawnDisplayObject():DisplayObject
     {
     	// _drawnDisplayObject is non-null if we needed to create a mask
@@ -2655,7 +2662,7 @@
             var restoreDisplayObject:Boolean = false;
             var oldDisplayObject:DisplayObject;

-            if (!displayObject || sharedIndex != -1)
+            if (!displayObject || displayObjectSharingMode != DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
             {
                 restoreDisplayObject = true;
                 oldDisplayObject = displayObject;
@@ -2822,7 +2829,7 @@
     protected function invalidateDisplayObjectSharing():void
     {
         if (parent)
-            Group(parent).graphicElementLayerChanged(this);
+            Group(parent).invalidateGraphicElementSharing(this);
     }

     /**
@@ -2845,7 +2852,7 @@
         invalidatePropertiesFlag = true;

         if (parent)
-            Group(parent).graphicElementPropertiesChanged(this);
+            Group(parent).invalidateGraphicElementProperties(this);
     }

     /**
@@ -2871,7 +2878,7 @@
         invalidateSizeFlag = true;

         if (parent)
-            Group(parent).graphicElementSizeChanged(this);
+            Group(parent).invalidateGraphicElementSize(this);
     }

     /**
@@ -2918,7 +2925,7 @@
         // The Group will take care of redrawing all graphic elements that
         // share the display object with this element.
         if (parent)
-            Group(parent).graphicElementChanged(this);
+            Group(parent).invalidateGraphicElementDisplayList(this);
     }

     /**
@@ -2993,7 +3000,7 @@
         var updateTransform:Boolean = false;

         // If we are the first in the sequence, setup the displayObject properties
-        if (sharedIndex <= 0 && displayObject)
+        if (displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT && displayObject)
         {
 			if (colorTransformChanged || displayObjectChanged)
 			{
@@ -3088,7 +3095,7 @@
             // If displayObject has changed and we're sharing, then ensure
             // the visible property is set to true.
             if (displayObjectChanged)
-                displayObject.visible = (sharedIndex == -1) ? _visible : true;
+                displayObject.visible = (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT) ? _visible : true;

             updateTransform = true;
             displayObjectChanged = false;
@@ -3100,7 +3107,7 @@

             // If we don't share the DisplayObject, set the property directly,
             // otherwise redraw.
-            if (sharedIndex == -1)
+            if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
                 displayObject.visible = _visible;
             else
                 invalidateDisplayList();
@@ -3281,7 +3288,7 @@

         // TODO EGeorgie: don't clear the graphics if the GraphicElement is invisible and explicitly owns the DO?
         // If we are the first in the sequence, clear the graphics:
-        if (sharedIndex <= 0)
+        if (displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
         {
             if (drawnDisplayObject is Sprite)
                 Sprite(drawnDisplayObject).graphics.clear();
@@ -3305,7 +3312,7 @@
      */
     mx_internal function doUpdateDisplayList():void
     {
-		if (visible || sharedIndex == -1)
+		if (visible || displayObjectSharingMode == DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT)
     		updateDisplayList(_width, _height);
     }

@@ -3848,7 +3855,7 @@
 	        layoutFeatures.updatePending = false;

         // Only the first elment in the sequence updates the transform
-        if (sharedIndex > 0 || !displayObject)
+        if (displayObjectSharingMode == DisplayObjectSharingMode.USES_SHARED_OBJECT || !displayObject)
             return;

         if (layoutFeatures != null)
@@ -3861,7 +3868,7 @@
 	        {
 	        	var m:Matrix = layoutFeatures.computedMatrix.clone();
 	        	// If the displayObject is shared, then put it at 0,0
-	        	if (sharedIndex == 0)
+	        	if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_SHARED_OBJECT)
 	        	{
 	        		m.tx = 0;
 	        		m.ty = 0;
@@ -3872,7 +3879,7 @@
         else
         {
         	// If the displayObject is shared, then put it at 0,0
-        	if (sharedIndex == 0)
+        	if (displayObjectSharingMode == DisplayObjectSharingMode.OWNS_SHARED_OBJECT)
         	{
                 displayObject.x = 0;
                 displayObject.y = 0;


Improved manual bitrate mode selection when preferred bitrate mode is active.

--- HLSPlugin/src/com/kaltura/hls/m2ts/M2TSNetLoader.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/M2TSNetLoader.as
@@ -3,6 +3,7 @@
 	import com.kaltura.hls.HLSDVRTimeTrait;
 	import com.kaltura.hls.HLSDVRTrait;
 	import com.kaltura.hls.HLSMetadataNamespaces;
+	import com.kaltura.hls.manifest.HLSManifestParser;

 	import flash.net.NetConnection;
 	import flash.net.NetStream;
@@ -19,12 +20,18 @@
 	import org.osmf.net.httpstreaming.HTTPStreamingFactory;
 	import org.osmf.net.httpstreaming.HTTPStreamingNetLoader;
 	import org.osmf.net.httpstreaming.dvr.DVRInfo;
+
 	import org.osmf.traits.LoadState;
+	import org.osmf.traits.MediaTraitType;
+	import org.osmf.traits.MediaTraitBase;
+	import org.osmf.net.NetStreamDynamicStreamTrait;
+	import org.osmf.net.NetStreamLoadTrait;

 	import org.osmf.net.NetStreamSwitchManagerBase
 	import org.osmf.net.metrics.BandwidthMetric;
 	import org.osmf.net.DynamicStreamingResource;
 	import org.osmf.net.httpstreaming.DefaultHTTPStreamingSwitchManager;
+	import org.osmf.traits.DynamicStreamTrait;

 	import org.osmf.net.metrics.MetricType;
 	import org.osmf.net.rules.BandwidthRule;
@@ -112,9 +119,36 @@
 			// Set up DVR state updating.
 			var resource:URLResource = loadTrait.resource as URLResource;

+			if (HLSManifestParser.PREF_BITRATE != -1)
+			{
+				//Tests to see if a preferred bitrate is set
+				trace("Preferred bitrate set - attempting to disable autoswitching");
+				var autoSwitchTrait:DynamicStreamTrait = loadTrait.getTrait(MediaTraitType.DYNAMIC_STREAM) as DynamicStreamTrait;
+
+				if (autoSwitchTrait != null)
+				{
+					//If the loadTrait already has a DYNAMIC_STREAM trait, it simply switches the autoSwitch bool to false
+					autoSwitchTrait.autoSwitch = false;
+					trace("loadTrait already possesses a DYNAMIC_STREAM trait, disabling autoswitching on existing trait");
+				}
+				else
+				{
+					//If the loadTrait does not have a DYNAMIC_STREAM trait, it creates one and switches the autoSwitch bool to false
+					autoSwitchTrait = new NetStreamDynamicStreamTrait(loadTrait.netStream,
+																	  loadTrait.switchManager,
+																	  loadTrait.resource as DynamicStreamingResource);
+
+					autoSwitchTrait.autoSwitch = false;
+
+					loadTrait.setTrait(autoSwitchTrait);
+					trace("loadTrait does not possess a DYNAMIC_STREAM trait, adding a new trait with autoswitching diabled");
+				}
+			}
+
 			if (!dvrMetadataPresent(resource))
 			{
 				updateLoadTrait(loadTrait, LoadState.READY);
+
 				return;
 			}