Transferred from the Adobe Open Source Subversion Repository

Revision: 7605
Author:   rfrishbe@adobe.com
Date:     2009-06-07T19:40:59.568950Z

Log Message:
-----------
VideoPlayer fixes:

-Going in to fullScreen mode, push the videoplayer on to the application directly as a child.  Otherwise there’s no way to guarentee the right coordinates to use when setting the fullScreenRect as I noticed they may change later on.
- Fix up fullScreen mode to deal with not having access to topLevelRoot()
- Hide the popup when the “3 second no user-interaction” occurs in fullscreen mode.
- Remove playheadTime setter from VideoElement...it wasn’t supposed to be on there.  They should use seek() instead.  VideoPlayer is correct here.
- When switching skins, we keep track of the video element’s state (where it was in the playback and whether it was playing)
- In VideoElement, sometimes the underlying object would send out a STOP state change handler after calling play() due to its asynchronous nature.  We call setPlaying() when someone calls play() or pause() or stop() so that the controls update to what the user is trying to do, but when a stop occurs because of end of video, we still need to setPlaying(false).  Also, in this case, when we get a Play stateChange, we should call setPlaying(true).
- Make sure we call videoPlayer.stop() when swapping video element’s or when swapping the underlyign video player object

QE Notes: -
Doc Notes: -
Bugs:SDK-21508, SDK-21616, SDK-21255
Reviewer: Alex
tests: checkintest

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -293,7 +293,6 @@
         if (_autoPlay == value)
             return;

-        _playing = value;
         _autoPlay = value;
     }

@@ -536,11 +535,6 @@
         return videoPlayer.playheadTime;
     }

-    public function set playheadTime(value:Number):void
-    {
-        videoPlayer.playheadTime = value;
-    }
-
     //----------------------------------
     //  playing
     //----------------------------------
@@ -799,6 +793,7 @@
             videoPlayerProperties = {autoRewind: videoPlayer.autoRewind,
                                      scaleMode: videoPlayer.scaleMode};

+            videoPlayer.stop();
             videoPlayer.close();
             videoPlayer.clear();

@@ -1196,6 +1191,9 @@
                 dispatchEvent(new Event("totalTimeChanged"));
                 setPlaying(false);
                 break;
+            case VideoState.PLAYING:
+                setPlaying(true);
+                break;
         }

         dispatchEvent(event);


Transferred from the Adobe Open Source Subversion Repository

Revision: 11163
Author:   dloverin@adobe.com
Date:     2009-10-26T20:35:33.260693Z

Log Message:
-----------
Changes to turn on the per-module style feature by default.

The feature can be turned off by compiling with -isolateStyles=false.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex, Paul
Tests run: checkintests, all mustella
Is noteworthy for integration: Yes.

Summary of changes:

frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
Propagate the module factory in setFlexContent.

frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
Implement IFlexModule

frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/Alert.as
Set moduleFactory to parent if parent is an IFlexModuleFactory.

frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/RadioButton.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/SWFLoader.as
Handle the “get parent module factory” request from an embedded swf.

frameworks/projects/framework/src/mx/core/Container.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/core/UIComponent.as
Defer setting styles until a module factory is set.

frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
Set the module factory of an added child.

frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
Set the module factory of the tooltip to be the same as the target.

frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
Rename parameter based on PARB feedback.

frameworks/projects/framework/src/mx/styles/IStyleModule.as
Add setStyleDeclarations per spec.

frameworks/projects/framework/src/mx/styles/StyleManager.as
Deprecate old static StyleManager API.

frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
Use IStyleModule.setStyleDeclarations.

frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/spark/components/Group.as
Propagate moduleFactory in elementAdded().

modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
Rename –create-style-manager option to –isloateStyles. The option has been changed from hidden to advanced.

modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
Fix bug to not add a default factory that is not needed.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
Initialize styles in a module factory setter override.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
Generate code to match ClassDef.vm and ClassDefLib.vm changes.

modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
Add IFlexModuleFactory to standard imports.

modules/compiler/src/java/flex2/configuration_en.properties
Rename –create-style-manager option to –isloateStyles.

modules/compiler/src/java/flex2/tools/PreLink.java
Rename –create-style-manager option to –isloateStyles.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.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/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.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/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</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/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -36,6 +36,8 @@
 import mx.core.IConstraintClient;
 import mx.core.IDeferredInstantiationUIComponent;
 import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModule;
+import mx.core.IFlexModuleFactory;
 import mx.core.IInvalidating;
 import mx.core.ILayoutElement;
 import mx.core.IStateClient;
@@ -594,7 +596,7 @@
 public dynamic class UIMovieClip extends MovieClip
     implements IDeferredInstantiationUIComponent, IToolTipManagerClient,
     IStateClient, IFocusManagerComponent, IConstraintClient, IAutomationObject,
-    IVisualElement, ILayoutElement
+    IVisualElement, ILayoutElement, IFlexModule
 {
     //--------------------------------------------------------------------------
     //
@@ -2013,6 +2015,54 @@
         explicitMinWidth = value;
     }

+    //----------------------------------
+    //  moduleFactory
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the moduleFactory property.
+     */
+    private var _moduleFactory:IFlexModuleFactory;
+
+    [Inspectable(environment="none")]
+
+    /**
+     *  A module factory is used as context for using embeded fonts and for
+     *  finding the style manager that controls the styles for this
+     *  component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function get moduleFactory():IFlexModuleFactory
+    {
+        return _moduleFactory;
+    }
+
+    /**
+     *  @private
+     */
+    public function set moduleFactory(factory:IFlexModuleFactory):void
+    {
+        var n:int = numChildren;
+        for (var i:int = 0; i < n; i++)
+        {
+            var child:IFlexModule = getChildAt(i) as IFlexModule;
+            if (!child)
+                continue;
+
+            if (child.moduleFactory == null || child.moduleFactory == _moduleFactory)
+            {
+                child.moduleFactory = factory;
+            }
+        }
+
+        _moduleFactory = factory;
+    }
+
     //----------------------------------
     //  owner
     //----------------------------------


FLEX-34454 don't assume first modal has the blur

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -34,6 +34,7 @@
 import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.system.Capabilities;
+import flash.utils.Dictionary;

 import mx.automation.IAutomationObject;
 import mx.core.FlexGlobals;
@@ -176,6 +177,14 @@
      *  An array of information about currently active popups
      */
     mx_internal var popupInfo:Array = [];
+
+    /**
+     *  @private
+     *  The first popup to use a blur per systemManager.
+     *  We need to track that in order to know when to remove the blur
+     *  if stacks of modal popups are created and then taken down.
+     */
+    private var blurOwners:Dictionary = new Dictionary(true);

     //--------------------------------------------------------------------------
     //
@@ -956,6 +965,9 @@

             if (blurAmount)
             {
+                if (blurOwners[sm] == null)
+                    blurOwners[sm] = o.owner;
+
                 // Ensure we blur the appropriate top level document.
                 if (DisplayObject(sm).parent is Stage)
                 {
@@ -1031,10 +1043,9 @@
             fade.play();

             var sm:ISystemManager = o.systemManager;
-            var awm:IActiveWindowManager =
-                IActiveWindowManager(sm.getImplementation("mx.managers::IActiveWindowManager"));
-            // don't remove blur unless this is the last modal window
-            if (awm.numModalWindows == 1)
+
+            // don't remove blur unless this is the first modal window to put up the blur
+            if (blurOwners[sm] != null && blurOwners[sm] == o.owner)
             {

                 // Blur effect on the application


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

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

 package mx.core
 {


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

--- frameworks/projects/framework/src/mx/effects/IEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/IEffectInstance.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.effects
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2957
Author:   aharui@adobe.com
Date:     2008-08-22T09:01:31.559126Z

Log Message:
-----------
Changes from API Review

Highlights:

MarshalEvent -> SandboxRootRequest
MarshalMouseEvent -> SandboxRootMouseEvent
MarshalDragEvet -> SandboxRootDragEvent
SandboxBridgeEvent -> SWFBridgeEvent
SandboxBridgeRequest -> SWFBridgeRequest

Checkintests passed.  Mustella for Marshall Plan will certainly fail until tests updated to new APIs
Probably ok to merge to trunk.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusDirection.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxBridgeEvent.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/FocusRequestDirection.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/MarshalEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/MarshalMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollThumb.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InvalidateRequestData.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>
<path kind="file" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/MarshalDragEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>

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

--- frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as
+++ frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as
@@ -0,0 +1,214 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.events
+{
+
+import flash.events.Event;
+import flash.events.IEventDispatcher;
+
+/**
+ *  This is an event sent between SWFs via the sharedEvents
+ *  dispatcher that exists between two SWFs
+ *  The event describes a request for the listener in the other SWF
+ *  to perform some action on objects in its SWF and potentially
+ *  return some data back to the dispatching SWF.
+ *  Unlike typical events, SWFBridgeRequests are an exception to the
+ *  event model because properties of the event are modified in order
+ *  to return data back to the dispatching SWF.
+ *
+ *  @see flash.display.LoaderInfo#sharedEvents
+ */
+public class SWFBridgeRequest extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+     *  Request sent from a child systemManager to the top-level systemManager
+	 *  via the bridge to request that a child application's pop up be activated.
+	 *  The data property contains an identifier for the pop up.  It is not
+	 *  always an actual reference to the pop up.  No data is
+	 *  returned.
+	 */
+    public static const ACTIVATE_POP_UP_REQUEST:String = "activatePopUpRequest";
+
+	/**
+	 *  Test if a given pop up can be activated.
+     *  If a pop up is not visible or is not enabled,
+     *  then it cannot be activated.
+     *  This message is always sent from the top-level system manager via the bridge to
+	 *  the systemManager that owns the pop up.  The data property
+	 *  is an identifier for the pop up.  It is not
+	 *  always an actual reference to the pop up.  The receiving
+	 *  systemManager sets the request's data property to true if
+	 *  the pop up can be activated.
+	 */
+	public static const CAN_ACTIVATE_POP_UP_REQUEST:String = "canActivateRequestPopUpRequest";
+
+    /**
+     *  Request sent from a child systemManager to the top-level systemManager
+	 *  via the bridge to request that a child application's pop up be deactivated.
+	 *  The data property contains an identifier for the pop up.  It is not
+	 *  always an actual reference to the pop up.  No data is
+	 *  returned.
+     */
+    public static const DEACTIVATE_POP_UP_REQUEST:String = "deactivatePopUpRequest";
+
+    /**
+     *  Request sent to a parent systemManager via the bridge
+	 *  to calculate the visible portion
+     *  of the requesting SWF based on any display objects that
+     *  may be clipping the requesting SWF. The results are returned
+     *  in the data property which is a Rectangle
+     *  in global coordinates.
+     *
+     */
+    public static const GET_VISIBLE_RECT_REQUEST:String = "getVisibleRectRequest";
+
+	/**
+	 *  Test if a given display object is a child of a SWF
+     *  or one of its child SWFs.  This request is sent from a systemManager
+	 *  to one or more of its children's systemManagers via their bridges.
+	 *  The data property
+	 *  is a reference to the display object.  The receiving
+	 *  systemManager sets the request's data property to true if
+	 *  the display object is a child of the SWF or one of its child SWFs.
+	 */
+	public static const IS_BRIDGE_CHILD_REQUEST:String = "isBridgeChildRequest";
+
+	/**
+	 *  Request the loader of the current application to invalidate its
+	 *  properties, size, or display list.  This request is sent from
+	 *  a systemManager to its parent systemManager.  The data property
+	 *  is a combination of InvalidationRequestData flags.  No data is
+	 *  returned.
+	 */
+	public static const INVALIDATE_REQUEST:String = "invalidateRequest";
+
+    /**
+     *  Request that the mouse cursor should be hidden
+	 *  when over this application.  Sent to the bridge shared with
+	 *  the parent application and propagated up to the top-level root.
+	 *  The data property is not used
+     */
+    public static const HIDE_MOUSE_CURSOR_REQUEST:String = "hideMouseCursorRequest";
+
+    /**
+     *  Ask the top-level root if the mouse cursor should be hidden given its
+	 *  current location.  Sent to the bridge shared with
+	 *  the parent application and propagated up to the top-level root.
+     *  The data is set to true if the mouse cursor should be shown at this location
+     */
+    public static const SHOW_MOUSE_CURSOR_REQUEST:String = "showMouseCursorRequest";
+
+    /**
+     *  Request that the show/hide mouse cursor logic be reset for a new mouse
+	 *  event so the various applications can request whether the mouse cursor
+	 *  should be shown or hidden. Sent to the bridge shared with
+	 *  the parent application and propagated up to the top-level root.
+	 *  The data property is not used
+     */
+    public static const RESET_MOUSE_CURSOR_REQUEST:String = "resetMouseCursorRequest";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Marshal a SWFBridgeRequest from a remote ApplicationDomain into the current
+     *  ApplicationDomain.
+     *
+     *  @param event A SWFBridgeRequest which may have been created in a different ApplicationDomain.
+     *
+     *  @return A SWFBridgeRequest created in the caller's ApplicationDomain.
+     */
+    public static function marshal(event:Event):SWFBridgeRequest
+    {
+        var eventObj:Object = event;
+        return new SWFBridgeRequest(eventObj.type,
+                                        eventObj.bubbles,
+                                        eventObj.cancelable,
+                                        eventObj.requestor,
+                                        eventObj.data);
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function SWFBridgeRequest(type:String, bubbles:Boolean = false,
+                                         cancelable:Boolean = false,
+										 requestor:IEventDispatcher = null,
+										 data:Object = null)
+	{
+		super(type, bubbles, cancelable);
+
+		this.requestor = requestor;
+		this.data = data;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  data
+	//----------------------------------
+
+	/**
+	 *  Related data.  See each event type documentation for how this property
+	 *  is used.
+	 */
+	public var data:Object;
+
+	//----------------------------------
+	//  requestor
+	//----------------------------------
+
+	/**
+	 *  Bridge that sent the message.
+     *  This in used by the receiving SWF to track which SWFLoader
+	 *  holds the requesting SWF
+	 */
+	public var requestor:IEventDispatcher;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+		return new SWFBridgeRequest(type, bubbles, cancelable,
+										requestor, data);
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as
+++ frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as
@@ -76,6 +76,11 @@
          *  @return Returns the cached record.
          *
          *  @see flash.utils#describeType()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function describeType(o:*):DescribeTypeCacheRecord
     {
@@ -117,6 +122,11 @@
      *
      *  @param valueName String that specifies the value for which the handler must be set.
          *  @param handler Function that should be called when user references valueName.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function registerCacheHandler(valueName:String, handler:Function):void
     {


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17634
Author:   egeorgie@adobe.com
Date:     2010-09-09T18:16:16.842150Z

Log Message:
-----------
Fix SDK-27326 Changing layout and item renderer at the same time causes RTE in LinearLayoutVector

In this change:
- instantiate the LLV on demand, release when layout is reset

QE notes:  None
Doc notes: None
Bugs: SDK-27326
Reviewer: Hans
Tests run: full cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<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/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -122,7 +122,7 @@
      *  useVirtualLayout=true.   See updateLLV(), resetCachedVirtualLayoutState(),
      *  etc.
      */
-    private var llv:LinearLayoutVector = new LinearLayoutVector(LinearLayoutVector.HORIZONTAL);
+    private var llv:LinearLayoutVector;

     //--------------------------------------------------------------------------
     //
@@ -185,12 +185,6 @@

         // Don't drag-scroll in the vertical direction
         dragScrollRegionSizeVertical = 0;
-
-        // Virtualization defaults for cases
-        // where there are no items and no typical item.
-        // The llv defaults are the width/height of a Spark Button skin.
-        llv.defaultMinorSize = 22;
-        llv.defaultMajorSize = 71;
     }

     //--------------------------------------------------------------------------
@@ -822,7 +816,7 @@
      */
     override public function clearVirtualLayoutCache():void
     {
-        llv.clear();
+        llv = null;
     }

     /**
@@ -834,7 +828,7 @@
             return super.getElementBounds(index);

         var g:GroupBase = GroupBase(target);
-        if (!g || (index < 0) || (index >= g.numElements))
+        if (!g || (index < 0) || (index >= g.numElements) || !llv)
             return null;

         return llv.getBounds(index);
@@ -893,6 +887,8 @@
         var eltWidth:Number;
         if (useVirtualLayout)
         {
+            if (!llv)
+                return 0.0;
             eltX = llv.start(index);
             eltWidth = llv.getMajorSize(index);
         }
@@ -1017,6 +1013,12 @@
             return;
         }

+        if (useVirtualLayout && !llv)
+        {
+            setIndexInView(-1, -1);
+            return;
+        }
+
         var i0:int;
         var i1:int;
         if (useVirtualLayout)
@@ -1264,8 +1266,18 @@
      *  for the possibility that the typicalLayoutElement has changed, or
      *  something that its preferred size depends on has changed.
      */
-     private function updateLLV(layoutTarget:GroupBase):void
-     {
+    private function updateLLV(layoutTarget:GroupBase):void
+    {
+        if (!llv)
+        {
+            llv = new LinearLayoutVector(LinearLayoutVector.HORIZONTAL)
+            // Virtualization defaults for cases
+            // where there are no items and no typical item.
+            // The llv defaults are the width/height of a Spark Button skin.
+            llv.defaultMinorSize = 22;
+            llv.defaultMajorSize = 71;
+        }
+
         var typicalElt:ILayoutElement = typicalLayoutElement;
         if (typicalElt)
         {
@@ -1278,14 +1290,14 @@
             llv.length = layoutTarget.numElements;
         llv.gap = gap;
         llv.majorAxisOffset = paddingLeft;
-     }
+    }

     /**
      *  @private
      */
      override public function elementAdded(index:int):void
      {
-         if ((index >= 0) && useVirtualLayout)
+         if ((index >= 0) && useVirtualLayout && llv)
             llv.insert(index);  // insert index parameter is uint
      }

@@ -1294,7 +1306,7 @@
      */
      override public function elementRemoved(index:int):void
      {
-        if ((index >= 0) && useVirtualLayout)
+        if ((index >= 0) && useVirtualLayout && llv)
             llv.remove(index);  // remove index parameter is uint
      }


Nothing but formatting and adding curly braces.

--- src/org/igniterealtime/xiff/collections/ArrayCollection.as
+++ src/org/igniterealtime/xiff/collections/ArrayCollection.as
@@ -1,10 +1,10 @@
 package org.igniterealtime.xiff.collections
 {
 	import flash.events.EventDispatcher;
-
+
 	import org.igniterealtime.xiff.collections.events.CollectionEvent;
 	import org.igniterealtime.xiff.collections.events.CollectionEventKind;
-
+
 	/**
 	 * The ArrayCollection class is a wrapper class that exposes an Array as a
 	 * collection that can be accessed and manipulated using collection methods.
@@ -12,19 +12,22 @@
 	public class ArrayCollection extends EventDispatcher
 	{
 		protected const OUT_OF_BOUNDS_MESSAGE:String = "The supplied index is out of bounds.";
-
-		protected var _source:Array;
-
+
+		protected var _source:Array = [];
+
 		/**
 		 * Constructor.
 		 */
-		public function ArrayCollection( source:Array=null )
+		public function ArrayCollection( source:Array = null )
 		{
 			super();
-
-			this.source = source ? source : [];
-		}
-
+
+			if (source)
+			{
+				this.source = source;
+			}
+		}
+
 		/**
 		 * The source of data in the ArrayCollection.
 		 */
@@ -32,7 +35,7 @@
 		{
 			return _source;
 		}
-
+
 		/**
 		 * @private
 		 */
@@ -41,7 +44,7 @@
 			_source = value ? value : [];
 			internalDispatchEvent( CollectionEventKind.RESET );
 		}
-
+
 		/**
 		 * The number of items in the ArrayCollection.
 		 */
@@ -49,20 +52,20 @@
 		{
 			return _source ? _source.length : 0;
 		}
-
+
 		/**
 		 * Get the item at the specified index.
 		 */
 		public function getItemAt( index:int ):*
 		{
-			if( index < 0 || index >= length )
-			{
-				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
-			}
-
+			if ( index < 0 || index >= length )
+			{
+				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
+			}
+
 			return _source[ index ];
 		}
-
+
 		/**
 		 * Places the item at the specified index.
 		 * If an item was already at that index the new item will replace it
@@ -70,16 +73,16 @@
 		 */
 		public function setItemAt( item:*, index:int ):*
 		{
-			if( index < 0 || index >= length )
-			{
-				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
-			}
-
+			if ( index < 0 || index >= length )
+			{
+				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
+			}
+
 			var replaced:* = _source.splice( index, 1, item )[ 0 ];
 			internalDispatchEvent( CollectionEventKind.REPLACE, item, index );
 			return replaced;
 		}
-
+
 		/**
 		 * Add the specified item to the end of the list.
 		 * Equivalent to addItemAt( item, length );
@@ -88,38 +91,38 @@
 		{
 			addItemAt( item, length );
 		}
-
+
 		/**
 		 * Add the specified item at the specified index.
 		 * Any item that was after this index is moved out by one.
 		 */
 		public function addItemAt( item:*, index:int ):void
 		{
-			if( index < 0 || index > length )
-			{
-				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
-			}
-
+			if ( index < 0 || index > length )
+			{
+				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
+			}
+
 			_source.splice( index, 0, item );
-
+
 			internalDispatchEvent( CollectionEventKind.ADD, item, index );
 		}
-
+
 		/**
 		 * Get the index of the item if it is in the ArrayCollection such that getItemAt( index ) == item.
 		 */
 		public function getItemIndex( item:* ):int
 		{
 			var n:int = _source.length;
-
-			for( var i:int = 0; i < n; i++ )
-			{
-				if( _source[ i ] === item ) return i;
-			}
-
+
+			for ( var i:int = 0; i < n; i++ )
+			{
+				if ( _source[ i ] === item ) return i;
+			}
+
 			return -1;
 		}
-
+
 		/**
 		 * Remove the specified item from this list, should it exist.
 		 */
@@ -127,41 +130,43 @@
 		{
 			var index:int = getItemIndex( item );
 			var result:Boolean = index >= 0;
-
-			if( result )
+
+			if ( result )
+			{
 				removeItemAt( index );
-
+			}
+
 			return result;
 		}
-
+
 		/**
 		 * Removes the item at the specified index and returns it.
 		 * Any items that were after this index are now one index earlier.
 		 */
 		public function removeItemAt( index:int ):*
 		{
-			if( index < 0 || index >= length )
-			{
-				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
-			}
-
+			if ( index < 0 || index >= length )
+			{
+				throw new RangeError( OUT_OF_BOUNDS_MESSAGE );
+			}
+
 			var removed:* = _source.splice( index, 1 )[ 0 ];
 			internalDispatchEvent( CollectionEventKind.REMOVE, removed, index );
 			return removed;
 		}
-
+
 		/**
 		 * Remove all items from the ArrayCollection.
 		 */
 		public function removeAll():void
 		{
-			if( length > 0 )
+			if ( length > 0 )
 			{
 				clearSource();
 				internalDispatchEvent( CollectionEventKind.RESET );
 			}
 		}
-
+
 		/**
 		 * Remove all items from the ArrayCollection without dispatching a RESET event.
 		 */
@@ -169,7 +174,7 @@
 		{
 			_source.splice( 0, length );
 		}
-
+
 		/**
 		 * Returns whether the ArrayCollection contains the specified item.
 		 */
@@ -177,7 +182,7 @@
 		{
 			return getItemIndex( item ) != -1;
 		}
-
+
 		/**
 		 * Notifies the view that an item has been updated.
 		 */
@@ -185,7 +190,7 @@
 		{
 			internalDispatchEvent( CollectionEventKind.UPDATE, item );
 		}
-
+
 		/**
 		 * Return an Array that is populated in the same order as the ArrayCollection.
 		 */
@@ -193,18 +198,22 @@
 		{
 			return _source.concat();
 		}
-
+
 		/**
 		 * Pretty prints the contents of the ArrayCollection to a string and returns it.
 		 */
 		override public function toString():String
 		{
-			if( _source )
+			if ( _source )
+			{
 				return _source.toString();
+			}
 			else
+			{
 				return super.toString();
-		}
-
+			}
+		}
+
 		/**
 		 * Dispatches a collection event with the specified information.
 		 */
@@ -216,6 +225,6 @@
 			event.location = location;
 			dispatchEvent( event );
 		}
-
+
 	}
-}+}


Fixed a warning.

Fixed a warning.

--- WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
+++ WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
@@ -803,7 +803,8 @@
 				{
 					var text:String = ProbeTextUtils.getProbeText(keySet.keys, additionalProbeColumns);
 					var colorLegend:SimpleVisTool
-					if(colorLegend = getParentTool(parent, ColorBinLegendTool) )
+					colorLegend = getParentTool(parent, ColorBinLegendTool)
+					if( colorLegend )
 						if( (colorLegend as ColorBinLegendTool).useUnobtrusiveToolTips.value == true )
 							ProbeTextUtils.showProbeToolTip(text, stage.mouseX, stage.mouseY, new Bounds2D( colorLegend.x, colorLegend.y, colorLegend.x + colorLegend.width, colorLegend.y + colorLegend.height), 5, (colorLegend as ColorBinLegendTool).toolTipLocation.value);
 						else


Removed Whitespace

Removed Whitespace

--- src/laml/display/IconButton.as
+++ src/laml/display/IconButton.as
@@ -140,7 +140,7 @@

 		protected function validateEmbedFonts(newValue:*, oldValue:*):void {
 			label.embedFonts = newValue;
-		}
+		}

 		protected function get configXml():XML {
 			var xml:XML = <HBox id={ICON_CONTAINER} width="100%" height="100%" padding="3" xmlns="laml.display">


men functions won't die on simulator

men functions won't die on simulator


update main file

update main file

git-svn-id: 44dac414ef660a76a1e627c7b7c0e36d248d62e4@18 c2cce57b-6cbb-4450-ba62-5fdab5196ef5

--- src/spitfire.as
+++ src/spitfire.as
@@ -3,17 +3,20 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

 include "corsaair/server/spitfire/SimpleSocketServer.as";
-include "corsaair/server/spitfire/SimpleSocketServer1.as";
+include "corsaair/server/spitfire/SimpleSocketServerSelect.as";
+include "corsaair/server/spitfire/SimpleSocketServerSelect2.as";

 import corsaair.server.spitfire.*;

 // example1
 /*
 var server = new SimpleSocketServer();
+    server.main();
 */

 // example2
-var server = new SimpleSocketServer1();
+/*
+var server = new SimpleSocketServerSelect();
 	server.showAddressInfo1();
 	server.showAddressInfo2();
 	server.showAddressInfo3();
@@ -31,4 +34,8 @@
 	server.showAddressInfo3( "www.cloudflare.com" );

 	server.main();
+*/

+// example2
+var server = new SimpleSocketServerSelect2();
+	server.main();


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.skins.halo
 {


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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -1,4 +1,15 @@
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// AdobePatentID="B998"

 package spark.effects
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<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/sliderClasses/Slider.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/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -46,10 +46,8 @@
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
-import mx.events.FocusRequest;
 import mx.events.InvalidateRequestData;
-import mx.events.SandboxRootRequest;
-import mx.events.SizeRequest;
+import mx.events.InterManagerRequest;
 import mx.events.SWFBridgeEvent;
 import mx.events.SWFBridgeRequest;
 import mx.managers.CursorManager;
@@ -623,9 +621,9 @@
                 	    var bridge:IEventDispatcher = swfBridge;
                 	    if (bridge)
                 	    {
-                	    	var request:SizeRequest = new SizeRequest(SizeRequest.GET_SIZE_REQUEST);
+                	    	var request:SWFBridgeRequest = new SWFBridgeRequest(SWFBridgeRequest.GET_SIZE_REQUEST);
                 	    	bridge.dispatchEvent(request);
-                	    	return request.height;
+                	    	return request.data.height;
                 	    }
                 	}

@@ -685,9 +683,9 @@
                 {
                 	if (swfBridge)
                 	{
-            	    	var request:SizeRequest = new SizeRequest(SizeRequest.GET_SIZE_REQUEST);
+            	    	var request:SWFBridgeRequest = new SWFBridgeRequest(SWFBridgeRequest.GET_SIZE_REQUEST);
             	    	swfBridge.dispatchEvent(request);
-            	    	return request.width;
+            	    	return request.data.width;
                 	}

                     var content:IFlexDisplayObject =
@@ -1290,7 +1288,7 @@
 					if (_swfBridge)
 					{
 						var request:SWFBridgeEvent = new SWFBridgeEvent(
-																	SWFBridgeEvent.NOTIFY_BEFORE_UNLOAD,
+																	SWFBridgeEvent.BRIDGE_APPLICATION_UNLOADING,
 																	false, false,
 																	_swfBridge);
 						 _swfBridge.dispatchEvent(request);
@@ -1706,35 +1704,26 @@
                     // don't resize contentHolder until after it is layed out
                     if (getContentSize().x > 0)
                     {
-                    	// VERSION_SKEW
+                    	var sizeSet:Boolean = false;
+
 	                    if (holder.contentLoaderInfo.contentType == "application/x-shockwave-flash")
     	                {
-							var bridge:IEventDispatcher;
-
 							if (childAllowsParent)
 							{
 								if (holder.content is IFlexDisplayObject)
+								{
 									IFlexDisplayObject(holder.content).setActualSize(w, h);
-								else
-								{
-									bridge = swfBridge;
-									if (bridge)
-									{
-										bridge.dispatchEvent(new SizeRequest(SizeRequest.SET_ACTUAL_SIZE_REQUEST, false, false, w, h));
-									}
-									else
-									{
-										contentHolder.width = w;
-										contentHolder.height = h;
-									}
+									sizeSet = true;
 								}
 							}
-							else
+
+							if (!sizeSet)
 							{
-								bridge = swfBridge;
-								if (bridge)
+								if (swfBridge)
 								{
-									bridge.dispatchEvent(new SizeRequest(SizeRequest.SET_ACTUAL_SIZE_REQUEST, false, false, w, h));
+									swfBridge.dispatchEvent(new SWFBridgeRequest(SWFBridgeRequest.SET_ACTUAL_SIZE_REQUEST, false, false, null,
+																						{ width: w, height: h}));
+									sizeSet = true;
 								}
 							}
             	        }
@@ -1754,12 +1743,15 @@
                             {
                                 contentHolder.scaleX = w / lInfo.width;
                                 contentHolder.scaleY = h / lInfo.height;
+                                sizeSet = true;
                             }
-                            else
-                            {
-                                contentHolder.width = w;
-                                contentHolder.height = h;
-                            }
+                        }
+
+                        // set the size of the loader now if we haven't set the content size yet.
+                        if (!sizeSet)
+                        {
+                            contentHolder.width = w;
+                            contentHolder.height = h;
                         }
                     }
                     else if (childAllowsParent &&
@@ -1926,7 +1918,7 @@
      */
     private function addedToStageHandler(event:Event):void
     {
-        systemManager.getSandboxRoot().addEventListener(SandboxRootRequest.DRAG_MANAGER_REQUEST,
+        systemManager.getSandboxRoot().addEventListener(InterManagerRequest.DRAG_MANAGER_REQUEST,
                 mouseShieldHandler, false, 0, true);
     }

@@ -1989,7 +1981,7 @@
    		if (loaderInfo.contentType == "application/x-shockwave-flash")
    		{
 			var bridge:EventDispatcher = loaderInfo.sharedEvents;
-			bridge.addEventListener(SWFBridgeEvent.NOTIFY_NEW_BRIDGED_APPLICATION,
+			bridge.addEventListener(SWFBridgeEvent.BRIDGE_NEW_APPLICATION,
 			 					  initSystemManagerCompleteEventHandler);
    		}
 	}
@@ -2002,7 +1994,7 @@
    		if (loaderInfo.contentType == "application/x-shockwave-flash")
    		{
 			var bridge:EventDispatcher = loaderInfo.sharedEvents;
-			bridge.removeEventListener(SWFBridgeEvent.NOTIFY_NEW_BRIDGED_APPLICATION,
+			bridge.removeEventListener(SWFBridgeEvent.BRIDGE_NEW_APPLICATION,
 				 					  initSystemManagerCompleteEventHandler);
    		}
 	}
@@ -2277,10 +2269,10 @@
 			var bridge:IEventDispatcher = swfBridge;
 			if (bridge)
 			{
-				var request:SizeRequest = new SizeRequest(SizeRequest.GET_SIZE_REQUEST);
+				var request:SWFBridgeRequest = new SWFBridgeRequest(SWFBridgeRequest.GET_SIZE_REQUEST);
 				bridge.dispatchEvent(request);
-				pt.x = request.width;
-				pt.y = request.height;
+				pt.x = request.data.width;
+				pt.y = request.data.height;
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

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/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/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/spark/src/spark/components/Group.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/framework/src/mx/events/FlexEvent.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="A">/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/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/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/skins/spark/DefaultItemRenderer.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/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/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/spark/src/spark/components/gridClasses/GridLayout.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@1258911 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -497,6 +497,11 @@
      */
     private var unloadAndStopGC:Boolean;

+    /**
+     *  @private
+     */
+    private var dispatchedSizePreliminary:Boolean;
+
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -1400,6 +1405,15 @@

             contentHolder.scaleX = oldScaleX;
             contentHolder.scaleY = oldScaleY;
+
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            {
+                if (dispatchedSizePreliminary)
+                {
+                    dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_FINAL, true, true));
+                    dispatchedSizePreliminary = false;
+                }
+            }
         }
         else
         {
@@ -1413,6 +1427,11 @@
                 measuredWidth = 0;
                 measuredHeight = 0;
             }
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            {
+                dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_PRELIMINARY, true, true));
+                dispatchedSizePreliminary = true;
+            }
         }
     }

@@ -1447,8 +1466,24 @@
                 doSmoothBitmapContent();
                 smoothBitmapContentChanged = false;
             }
-        }
-
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            {
+                if (dispatchedSizePreliminary)
+                {
+                    dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_FINAL, true, true));
+                    dispatchedSizePreliminary = false;
+                }
+            }
+        }
+        else
+        {
+            if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_5)
+            {
+                dispatchEvent(new FlexEvent(FlexEvent.MEASURED_SIZE_PRELIMINARY, true, true));
+                dispatchedSizePreliminary = true;
+            }
+        }
+
         if (brokenImage && !brokenImageBorder)
         {
             var skinClass:Class = getStyle("brokenImageBorderSkin");


Transferred from the Adobe Open Source Subversion Repository

Revision: 16904
Author:   smgilson@adobe.com
Date:     2010-07-13T17:25:46.841130Z

Log Message:
-----------
Add ASDoc comment about using the component as an item renderer

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/CheckBox.as
+++ frameworks/projects/spark/src/spark/components/CheckBox.as
@@ -59,6 +59,11 @@
  *  the CheckBox component sets its selected property
  *  to true for checked, and to false for unchecked.

  *
+ *
An item renderer lets you customize the display of a list-based component,
+ *  such as a List or DataGrid control.
+ *  For information about using this component in an item renderer, see
+ *
+ *  Custom Spark item renderers.

  *
  *
The CheckBox control has the following default characteristics:

  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 20746
Author:   smgilson@adobe.com
Date:     2011-03-09T22:21:18.183380Z

Log Message:
-----------
Merge 20745 - Fix event names in Spark DataGrid and add note to GridColumn.rendererIsEditor for SDK-29870

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -476,7 +476,7 @@
  *  When you sort the data provider's collection programmatically,
  *  the component does not dispatch the sortChanging event.

  *
- *  @eventType spark.events.GridSelectionEvent.SORT_CHANGING
+ *  @eventType spark.events.GridSortEvent.SORT_CHANGING
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -494,7 +494,7 @@
  *  When you sort the data provider's collection programmatically,
  *  the component does not dispatch the sortChanging event.

  *
- *  @eventType spark.events.GridSelectionEvent.SELECTION_CHANGE
+ *  @eventType spark.events.GridSortEvent.SORT_CHANGE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 19117
Author:   cframpto@adobe.com
Date:     2010-12-07T21:39:57.453177Z

Log Message:
-----------
Add protected createGridSelection() methods to DataGrid and Grid so GridSelection can be subclassed.  Fix metadata on Grid column.  Fix metadata and doc for miterLimit minValue for Stroke classes.

QE notes:
Doc notes:
Bugs: SDK-28734, SDK-28655
Reviewer: Hans (DG), Darrell
Tests run: cyclone which took 2 1/2 hours!
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.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/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/graphics/Stroke.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -1036,6 +1036,7 @@
     //----------------------------------

     [Bindable("columnsChanged")]
+    [Inspectable(category="General")]

     /**
      *  @copy spark.components.Grid#columns
@@ -1313,7 +1314,7 @@
     protected function get gridSelection():GridSelection
     {
         if (!_gridSelection)
-            _gridSelection = new GridSelection();  // TBD(hmuller):delegate to protected createGridSelection()
+            _gridSelection = createGridSelection();
         return _gridSelection;
     }

@@ -3225,6 +3226,22 @@
     {
         grid.caretRowIndex = newCaretRowIndex;
         grid.caretColumnIndex = newCaretColumnIndex;
+    }
+
+    /**
+     *  Creates a grid selection object to use to manage selection. Override this method if you have a custom grid
+     *  selection that you want to use in place of the default.
+     *
+     *  @see spark.components.Grid.createGridSelection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    protected function createGridSelection():GridSelection
+    {
+        return new GridSelection();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 13194
Author:   cframpto@adobe.com
Date:     2009-12-23T15:34:01.077207Z

Log Message:
-----------
RichText needs to recompose if the contentHeight isn't the same as the unscaledHeight since the content height could be an estimated height which doesn't all the text lines composed yet to back up that height.

baselinePosition should always return a non-0 value, even if there are no text lines so that components that use the baseline for positioning, such as ButtonBar, don't jump around when the width of the component is changed.

QE notes:
Doc notes:
Bugs: SDK-24750, SDK-24773
Reviewer: Gordon
Tests run: checkintests, cyclone on Label, RichText
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -1094,6 +1094,25 @@
 		invalidateDisplayList();
 	}

+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        // The factory will compose just enough lines to fill the
+        // compositionHeight.  If not all the text is composed, the reported
+        // contentHeight will be an estimate of what the height will be when
+        // it is all composed and there will not be textLines to back it up.
+        // There is no easy way to tell if the contentHeight is the actual
+        // value or an estimated value.
+        if (!isNaN(_composeHeight) && unscaledHeight != _composeHeight)
+        {
+            invalidateTextLines();
+        }
+
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+    }
 	//--------------------------------------------------------------------------
 	//
 	//  Overridden methods: TextBase
@@ -1252,6 +1271,38 @@

     /**
      *  @private
+     *  Uses StringTextLineFactory to compose an empty string so we can
+     *  determine the baseline from the text line.  The height is important
+     *  if the text is vertically aligned.
+     */
+    override mx_internal function createEmptyTextLine(height:Number=NaN):void
+
+    {
+        // Clear any previously generated TextLines from the textLines Array.
+        textLines.length = 0;
+
+        // Note:
+        // Use the StringTextLineFactory to compose an empty string.
+        // Since it appends the paragraph terminator "\u2029",
+        // it actually creates and measures one TextLine.
+        // Its width is 0 but its height is equal to the font's
+        // ascent plus descent.
+
+        bounds.width = width;
+        bounds.height = height;
+
+        staticStringFactory.compositionBounds = bounds;
+
+        // Set up the truncation options.
+        staticStringFactory.truncationOptions = null;
+
+        staticStringFactory.text = "";
+        staticStringFactory.textFlowFormat = hostFormat;
+        staticStringFactory.createTextLines(addTextLine);
+    }
+
+    /**
+     *  @private
      *  Callback passed to createTextLines().
      */
     private function addTextLine(textLine:DisplayObject):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 7065
Author:   smgilson@adobe.com
Date:     2009-05-19T12:27:36.799816Z

Log Message:
-----------
ASDoc updates for styles

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<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/CheckBox.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/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -36,7 +36,7 @@
 include "../styles/metadata/SelectionFormatTextStyles.as"

 /**
- *  @copy spark.components.supportClasses.GroupBase#alternatingItemColors
+ *  @copy spark.components.supportClasses.GroupBase#style:alternatingItemColors
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -46,7 +46,7 @@
 [Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes", theme="spark")]

 /**
- *  @copy spark.components.supportClasses.GroupBase#contentBackgroundColor
+ *  @copy spark.components.supportClasses.GroupBase#style:contentBackgroundColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -56,7 +56,7 @@
 [Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
- *  @copy spark.components.supportClasses.GroupBase#focusColor
+ *  @copy spark.components.supportClasses.GroupBase#style:focusColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -66,7 +66,7 @@
 [Style(name="focusColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
- * @copy spark.components.supportClasses.GroupBase#rollOverColor
+ * @copy spark.components.supportClasses.GroupBase#style:rollOverColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -76,7 +76,7 @@
 [Style(name="rollOverColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
- *  @copy spark.components.supportClasses.GroupBase#symbolColor
+ *  @copy spark.components.supportClasses.GroupBase#style:symbolColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -476,12 +476,12 @@

     private function viewport_propertyChangeHandler(event:PropertyChangeEvent):void
     {
-    	switch(event.property)
-    	{
-    		case "contentWidth":
-    		case "contentHeight":
+        switch(event.property)
+        {
+            case "contentWidth":
+            case "contentHeight":
                 invalidateSkin();
-    		    break;
+                break;
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5385
Author:   chaase@adobe.com
Date:     2009-03-18T14:59:34.749796Z

Log Message:
-----------
Fixes to deal with startDelay being incorporated correctly into the underlying keyframes of an animation.

QE Notes: None
Doc Notes: None
Bugs: SDK-19982
Reviewer: Corey
Testing: checkintests, Mustella Effects, ListDataEffects, mx/effects

Modified Paths:
--------------
<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/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AnimationProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/SimpleMotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/SimpleMotionPath.as
@@ -56,7 +56,7 @@
     {
         super();
         this.property = property;
-        keyframes = [new KeyFrame(0, valueFrom), new KeyFrame(1, valueTo, valueBy)];
+        keyframes = [new KeyFrame(0, valueFrom), new KeyFrame(NaN, valueTo, valueBy)];
         if (valueFrom is Array && valueTo is Array)
             interpolator = NumberArrayInterpolator.getInstance();
     }


sync up with container databinding

sync up with container databinding


Added initialise method to Drone Object Base class

--- DroneAnarchy/Resources/Scripts/GameObjects.as
+++ DroneAnarchy/Resources/Scripts/GameObjects.as
@@ -67,7 +67,10 @@
 	void DelayedStart()
 	{
 		SubscribeToEvent(node, "NodeCollision", "HandleNodeCollision");
-	}
+		Initialise();
+	}
+
+	void Initialise(){}

 	void HandleNodeCollision(StringHash eventType, VariantMap& eventData){}

@@ -110,7 +113,6 @@

 		DroneObjectBase::DelayedStart();
 		SetupNodeAnimation();
-		Initialise();
 	}

 	void SetupNodeAnimation()


now clearing locals object when script changes

Change-Id: I0cc17aeb53829c7fca5f133507b88ecc6687274c

--- WeaveUI/src/weave/visualization/tools/CustomGraphicsTool.as
+++ WeaveUI/src/weave/visualization/tools/CustomGraphicsTool.as
@@ -52,7 +52,10 @@

 		public const vars:LinkableHashMap = newLinkableChild(this,LinkableHashMap);
 		public const drawScript:LinkableFunction = registerLinkableChild(this, new LinkableFunction(defaultScript, false, true));
-		public const locals:Object = {}; // for use inside scripts
+
+		// for use inside scripts
+		private var _locals:Object = {};
+		public function get locals():Object { return _locals; }

 		public const dataBounds:Bounds2D = new Bounds2D();
 		public const screenBounds:Bounds2D = new Bounds2D();
@@ -126,6 +129,10 @@
 			// do nothing if nothing changed (script, vars, size)
 			if (!scriptChanged && !varsChanged && _prevSize.x == unscaledWidth && _prevSize.y == unscaledHeight)
 				return;
+
+			// reset local variables if script changes
+			if (scriptChanged)
+				_locals = {};

 			// remember current size for next time
 			_prevSize.x = 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@1249722 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/airframework/src/mx/controls/FileSystemTree.as
+++ frameworks/projects/airframework/src/mx/controls/FileSystemTree.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.controls
 {