Transferred from the Adobe Open Source Subversion Repository

Revision: 18550
Author:   egeorgie@adobe.com
Date:     2010-11-12T00:59:06.859716Z

Log Message:
-----------
Add SkinnablePopUpContainer

- Add SkinnablePopUpContainer
- Add two new events on UIComponent - state transition complete & interrupted
- Switch ViewMenut to extend SkinnablePopUpContainer

QE notes: Testing can begin, do a pass on ViewMenu as well
Doc notes:
Bugs:
Reviewer: Corey, Jason
Tests run: manual
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/PopUpCloseEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.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/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as
@@ -0,0 +1,323 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+import flash.display.DisplayObjectContainer;
+import flash.events.Event;
+
+import mx.events.FlexEvent;
+import mx.managers.PopUpManager;
+
+import spark.events.PopUpCloseEvent;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched by the container when it's opened and ready for user interaction.
+ *
+ *  This event is dispatched when the container switches from "closed" to "normal"
+ *  state and the transition to that state completes.
+ *
+ *  @eventType mx.events.FlexEvent.OPEN
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="open", type="mx.events.FlexEvent")]
+
+/**
+ *  Dispatched by the container when it's closed.
+ *
+ *  This event is dispatched when the container switches from "normal" to "closed"
+ *  state and the transition to that state completes.
+ *
+ *
The event provides a mechanism to pass commit information from the container to
+ *  a listener.  One typical usage scenario is building a multiple-choice dialog with a
+ *  cancel button.  When a valid option is selected, the developer closes the dialog
+ *  with a call to the SkinnablePopUpContainer.close() method, passing
+ *  true to the commit parameter and optionally passing in
+ *  any relevant data.  When the SkinnablePopUpContainer has completed closing,
+ *  it will dispatch this event.  Then, in the listener, the developer can check
+ *  the commit parameter and perform the appropriate action.
+ *
+ *  @eventType mx.events.PopUpCloseEvent.CLOSE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[Event(name="close", type="spark.events.PopUpCloseEvent")]
+
+//--------------------------------------
+//  States
+//--------------------------------------
+
+/**
+ *  Closed State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("closed")]
+
+/**
+ *  Disabled and Closed State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("disabledAndClosed")]
+
+// FIXME (egeorgie): ASDoc comment
+/**
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class SkinnablePopUpContainer extends SkinnableContainer
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function SkinnablePopUpContainer()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Storage for the close event while waiting for the close transition to
+     *  complete before dispatching it.
+     *
+     *  @private
+     */
+    private var closeEvent:PopUpCloseEvent;
+
+    /**
+     *  Track whether the container is added to the PopUpManager.
+     *
+     *  @private
+     */
+    private var addedToPopUpManager:Boolean = false;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  opened
+    //----------------------------------
+
+    /**
+     *  Storage for the opened property.
+     *
+     *  @private
+     */
+    private var _opened:Boolean = false;
+
+    [Inspectable(category="General", defaultValue="false")]
+
+    /**
+     *  True when the container is currently showing as a pop-up.
+     *
+     *  @see #open
+     *  @see #close
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function get opened():Boolean
+    {
+        return _opened;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Brings up the container as a pop-up and switches the state from "closed" to "normal",
+     *  waits till any state transitions are finished playing and dispatches FlexEvent.OPEN event.
+     *
+     *  @param owner The owner of the container.
+     *  @param modal Whether the container should be modal.
+     *
+     *  @see #close
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function open(owner:DisplayObjectContainer, modal:Boolean = true):void
+    {
+        if (_opened)
+            return;
+
+        closeEvent = null; // Clear any pending close event
+        this.owner = owner;
+
+        // We track whether we've been added to the PopUpManager to handle the
+        // scenario of state transition interrupton. For example we may be playing
+        // a close transition and be interrupted with a call to open() in which
+        // case we wouldn't have removed the container from the PopUpManager since
+        // the close transition never reached its end.
+        if (!addedToPopUpManager)
+        {
+            addedToPopUpManager = true;
+
+            // This will create the skin and attach it
+            PopUpManager.addPopUp(this, owner, modal);
+        }
+
+        // Change state *after* we pop up, as the skin needs to go be in the initial "closed"
+        // state while being created above in order for transitions to detect state change and play.
+        _opened = true;
+        invalidateSkinState();
+        if (skin)
+            skin.addEventListener(FlexEvent.STATE_TRANSITION_COMPLETE, stateTransitionComplete_handler);
+        else
+            stateTransitionComplete_handler(null); // Call directly
+    }
+
+    /**
+     *  Changes the current state to "closed", waits till any state transitions are finished playing,
+     *  dispatches a PopUpClose.CLOSE event and removes the container from the PopUpManager.
+     *
+     *
The PopUpCloseEvent provides a mechanism to pass commit information from the container to
+     *  a listener.  One typical usage scenario is building a multiple-choice dialog with a
+     *  cancel button.  When a valid option is selected, the developer closes the dialog
+     *  with a call to the SkinnablePopUpContainer.close() method, passing
+     *  true to the commit parameter and optionally passing in
+     *  any relevant data.  When the SkinnablePopUpContainer has completed closing,
+     *  it will dispatch this event.  Then, in the listener, the developer can check
+     *  the commit parameter and perform the appropriate actions.
+     *
+     *  @param commit The value for the commit property of the PopUpClose event.
+     *  @param data The value for the data property for the PopUpClose event.
+     *
+     *  @see #open
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function close(commit:Boolean = false, data:* = undefined):void
+    {
+        if (!_opened)
+            return;
+
+        // We will dispatch the event later, when the close transition is complete.
+        closeEvent = new PopUpCloseEvent(commit, data);
+
+        // Change state
+        _opened = false;
+        invalidateSkinState();
+
+        if (skin)
+            skin.addEventListener(FlexEvent.STATE_TRANSITION_COMPLETE, stateTransitionComplete_handler);
+        else
+            stateTransitionComplete_handler(null); // Call directly
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function getCurrentSkinState():String
+    {
+        // The states are:
+        // "normal"
+        // "disabled"
+        // "closed"
+        // "disabledAndClosed"
+
+        var state:String = super.getCurrentSkinState();
+        if (!opened)
+            return state == "normal" ? "closed" : state + "AndClosed";
+        return state;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *
+     *  Called when we have completed transitioning to opened/closed state.
+     */
+    private function stateTransitionComplete_handler(event:Event):void
+    {
+        // We get called directly with null if there's no skin to listen to.
+        if (event)
+            event.target.removeEventListener(FlexEvent.STATE_TRANSITION_COMPLETE, stateTransitionComplete_handler);
+
+        if (opened)
+        {
+            dispatchEvent(new FlexEvent(FlexEvent.OPEN));
+        }
+        else
+        {
+            // Dispatch the close event before removing from the PopUpManager.
+            dispatchEvent(closeEvent);
+            closeEvent = null;
+
+            // We just finished closing, remove from the PopUpManager.
+            PopUpManager.removePopUp(this);
+            addedToPopUpManager = false;
+            owner = null;
+        }
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11602
Author:   klin@adobe.com
Date:     2009-11-10T06:35:11.564043Z

Log Message:
-----------
Fix for Button tooltips. TextBase dispatches an event when _isTruncated is set through the setIsTruncated() function. This allows ButtonBase to listen for the event and set the tooltip as necessary. If an explicit tooltip is set, then ButtonBase will not set a tooltip.

QE notes: No
Doc notes: No
Bugs: SDK-22260, SDK-23474, SDK-23657
Reviewer: Evtim
Tests run: checkintests
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>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -289,7 +289,7 @@
      *  @private
 	 *  Storage for the isTruncated property.
      */
-	mx_internal var _isTruncated:Boolean = false;
+    private var _isTruncated:Boolean = false;

     /**
 	 *  A read-only property reporting whether the text has been truncated.
@@ -328,6 +328,19 @@
 		// For some reason, the compiler needs an explicit cast to Boolean
 		// to avoid a warning even though at runtime "is Boolean" is true.
 		return Boolean(_isTruncated);
+    }
+
+    /**
+     *  @private
+     *  Dispatch an "isTruncatedChanged" event when the property is set.
+     */
+    mx_internal function setIsTruncated(value:Boolean):void
+    {
+        if (_isTruncated != value)
+        {
+            _isTruncated = value;
+            dispatchEvent(new Event("isTruncatedChanged"));
+        }
     }

     //----------------------------------
@@ -776,7 +789,7 @@
 	    _composeWidth = width;
 	    _composeHeight = height;

-	    _isTruncated = false;
+	    setIsTruncated(false);

 	    return false;
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4635
Author:   gosmith@adobe.com
Date:     2009-01-23T07:14:13.280801Z

Log Message:
-----------
Temporarily reverting revision 4631 to fix Mustella failures. New baseline bitmaps need to be generated to reflect the latest clipping logic for TextBox and TextGraphic.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -14,7 +14,6 @@

 import flash.display.Graphics;
 import flash.display.Sprite;
-import flash.geom.Rectangle;

 import mx.core.mx_internal;
 import mx.styles.CSSStyleDeclaration;
@@ -440,39 +439,6 @@
     {
     }

-    /**
-	 *  Use scrollRect to clip overset lines.
-	 *  But don't read or write scrollRect if you can avoid it,
-	 *  because this causes Player 10.0 to allocate memory.
-	 *  And if scrollRect is already set to a Rectangle instance,
-	 *  reuse it rather than creating a new one.
-     */
-    mx_internal function clip(overset:Boolean, w:Number, h:Number):void
-	{
-        if (overset)
-        {
-            var r:Rectangle = displayObject.scrollRect;
-            if (r)
-            {
-            	r.x = 0;
-            	r.y = 0;
-            	r.width = w;
-            	r.height = h;
-            }
-            else
-            {
-            	r = new Rectangle(0, 0, w, h);
-            }
-            displayObject.scrollRect = r;
-            mx_internal::hasScrollRect = true;
-        }
-        else if (mx_internal::hasScrollRect)
-        {
-            displayObject.scrollRect = null;
-            mx_internal::hasScrollRect = false;
-        }
-    }
-
     /**
      * @private
      * Used to ensure baselinePosition will reflect something


Transferred from the Adobe Open Source Subversion Repository

Revision: 5368
Author:   gruehle@adobe.com
Date:     2009-03-17T22:43:05.861149Z

Log Message:
-----------
Revision 5653 broke measurement for comboboxes. This checkin fixes it.

The compatibility version check for ComboBase border is slightly different now:
 old behavior: ComboBase always created and showed the border object, even though it was obscured by other items
 new behavior: ComboBase creates the border, but hides it

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as

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

--- frameworks/projects/mx/src/mx/controls/ComboBase.as
+++ frameworks/projects/mx/src/mx/controls/ComboBase.as
@@ -1065,25 +1065,25 @@
         super.createChildren();

         // Create the border first, in the back.
-        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
-        {
-	        if (!border)
-	        {
-	            var borderClass:Class = getStyle("borderSkin");
-
-	            if (borderClass)
-	            {
-	                border = new borderClass();
-
-	                if (border is IFocusManagerComponent)
-	                    IFocusManagerComponent(border).focusEnabled = false;
-
-	                if (border is ISimpleStyleClient)
-	                    ISimpleStyleClient(border).styleName = this;
-
-	                addChild(DisplayObject(border));
-	            }
-	        }
+        if (!border)
+        {
+            var borderClass:Class = getStyle("borderSkin");
+
+            if (borderClass)
+            {
+                border = new borderClass();
+
+                if (border is IFocusManagerComponent)
+                    IFocusManagerComponent(border).focusEnabled = false;
+
+                if (border is ISimpleStyleClient)
+                    ISimpleStyleClient(border).styleName = this;
+
+                addChild(DisplayObject(border));
+
+                if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+                	border.visible = false;
+            }
         }

         // Next, create the downArrowButton before creating the textInput,


Transferred from the Adobe Open Source Subversion Repository

Revision: 3257
Author:   jimurphy@adobe.com
Date:     2008-09-18T18:16:26.838722Z

Log Message:
-----------
-Merged 3.0.X revisions 3232,3236,3238,3244 -> trunk
-integrated:
 Player build d604
 flex-messaging-common.jar 4.0.0.3256

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 ActiveX.exe</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/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc</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/defaults-2.0.0.css</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults-2.0.1.css</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/in/player/10/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/install_flash_player_10_linux.tar.gz</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/core/FlexModuleFactory.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/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/FlashPlayer.exe</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/in/player/10/mac/Flash Player.app.zip</path>

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

--- frameworks/projects/mx/src/mx/controls/TextInput.as
+++ frameworks/projects/mx/src/mx/controls/TextInput.as
@@ -327,7 +327,7 @@
      *  @private
      *  Previous imeMode.
      */
-    private var prevMode:String = null;
+    private var prevMode:String = IMEConversionMode.UNKNOWN;

     /**
      *  @private


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

--- frameworks/projects/spark/src/spark/effects/Fade.as
+++ frameworks/projects/spark/src/spark/effects/Fade.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.effects
 {


Come on jenkins... again

Come on jenkins... again

--- src/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as
+++ src/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as
@@ -68,7 +68,8 @@
 				throw new ArgumentError(DISABLE_NOT_SUPPORTED_ERROR);
 		}

-		public function mapView(viewClassOrName:*, mediatorClass:Class, injectViewAs:* = null, autoCreate:Boolean = true, autoRemove:Boolean = true):void
+		public function mapView(viewClassOrName:*, mediatorClass:Class, injectViewAs:* = null,
+										autoCreate:Boolean = true, autoRemove:Boolean = true):void
 		{
 			if(!(autoCreate && autoRemove))
 				throw new ArgumentError(AUTO_CREATE_AUTO_REMOVE_FALSE_NOT_SUPPORTED_ERROR);


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

--- frameworks/projects/framework/src/mx/core/ContextualClassFactory.as
+++ frameworks/projects/framework/src/mx/core/ContextualClassFactory.as
@@ -0,0 +1,111 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.utils.getQualifiedClassName;
+
+/**
+ *  A class factory that provides a system manager
+ *  as a context of where the class should be created.
+ */
+public class ContextualClassFactory extends ClassFactory
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param generator The Class that the newInstance() method
+	 *  uses to generate objects from this factory object.
+	 *
+	 *  @param systemManager The system manager context in which the object
+	 *  should be created.
+	 */
+	public function ContextualClassFactory(
+							generator:Class = null,
+							moduleFactory:IFlexModuleFactory = null)
+	{
+		super(generator);
+
+		this.moduleFactory = moduleFactory;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The context in which an object should be created.
+	 *
+	 *
This is used to solve using the embedded fonts in an application SWF
+	 *  when the framework is loaded as an RSL
+	 *  (the RSL has its own SWF context).
+	 *  Embedded fonts may only be accessed from the SWF file context
+	 *  in which they were created.
+	 *  By using the systemManager of the application SWF,
+	 *  the RSL can create objects in the application SWF context
+	 *  that will have access to the application's embedded fonts.
+	 *  moduleFactory will call create() to create
+	 *  an object in the context of the moduleFactory.

+	 *
+	 *  @default null
+	 */
+	public var moduleFactory:IFlexModuleFactory;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Creates a new instance of the generator class,
+	 *  with the properties specified by properties.
+	 *
+	 *
This method implements the newInstance() method
+	 *  of the IFactory interface.

+	 *
+	 *  @return The new instance that was created.
+	 */
+	override public function newInstance():*
+	{
+		var instance:Object = null;
+
+		if (moduleFactory)
+			instance = moduleFactory.create(getQualifiedClassName(generator));
+
+		if (!instance)
+			instance = super.newInstance();
+
+		if (properties)
+		{
+			for (var p:String in properties)
+			{
+        		instance[p] = properties[p];
+			}
+		}
+
+		return instance;
+	}
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 2743
Author:   jimurphy@adobe.com
Date:     2008-08-05T19:28:29.575474Z

Log Message:
-----------
Merged 3.0.x revisions [2649,2652,2670,2694,2699-2700,2713,2721-2723,2729,2731-2732] -> trunk

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLibrary.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nUtils.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</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/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/modules/compiler/src/java/flex2/tools/SwcChecksums.java" copyfrom-rev="2732" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/SwcChecksums.java</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/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java</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/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemChildrenList.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/modules/compiler/src/java/flex2/tools/Mxmlc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.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/tools/oem/Application.java</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -197,7 +197,17 @@
 			bridge.dispatchEvent(bridgeEvent);
 		}
 	}
-
+
+    /**
+     *  @inheritdoc
+     *
+     *  proxy to real system manager.
+     */
+    override public function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle
+    {
+        return _systemManager.getVisibleApplicationRect(bounds);
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods
@@ -239,8 +249,11 @@
      */
     private function proxyMouseDownHandler(event:MouseEvent):void
     {
-        // Tell our parent system manager we are active.
-        SystemManager(_systemManager).fireActivatedWindowEvent(this);
+        // Tell our parent system manager we are active if our child
+        // is a focus container. If our child is not a focus manager
+        // container we will not be able to activate pop up in this proxy.
+        if (findFocusManagerContainer(this))
+            SystemManager(_systemManager).fireActivatedWindowEvent(this);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 22072
Author:   jasonsj@adobe.com
Date:     2011-08-18T18:14:51.387719Z

Log Message:
-----------
PARB rename CalloutContentBackgroundAppearance to ContentBackgroundAppearance.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutContentBackgroundAppearance.as" copyfrom-rev="22006" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as
+++ frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as
@@ -27,6 +27,6 @@
     import spark.components.supportClasses.StyleableStageText; StyleableStageText;
     import spark.components.supportClasses.StyleableTextField; StyleableTextField;
     import spark.components.ActionBarDefaultButtonAppearance; ActionBarDefaultButtonAppearance;
-    import spark.components.CalloutContentBackgroundAppearance; CalloutContentBackgroundAppearance;
+    import spark.components.ContentBackgroundAppearance; ContentBackgroundAppearance;
 }
 }


Fixed compilation error

Fixed compilation error

--- asunit-4.0/src/asunit/runners/SuiteRunner.as
+++ asunit-4.0/src/asunit/runners/SuiteRunner.as
@@ -2,7 +2,7 @@

 	import asunit.framework.IResult;
 	import asunit.framework.IRunner;
-    import asunit.utils.Iterator;
+    import asunit.util.Iterator;
 	import asunit.framework.SuiteIterator;

     import flash.display.DisplayObjectContainer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12060
Author:   aharui@adobe.com
Date:     2009-11-20T20:12:21.522473Z

Log Message:
-----------
Fix dependency issues

QE Notes: None
Doc Notes: None
Bugs: SDK-24353, SDK-24354
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/DropDownList

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/FTETextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -31,7 +31,7 @@
 import spark.events.DisplayLayerObjectExistenceEvent;
 import spark.layouts.BasicLayout;
 import spark.layouts.supportClasses.LayoutBase;
-import spark.utils.TextUtil;
+import spark.utils.FTETextUtil;

 use namespace mx_internal;

@@ -266,7 +266,7 @@
         // At the crossover height, these two calculations
         // produce the same result.

-        return TextUtil.calculateFontBaseline(this, height, moduleFactory);
+        return FTETextUtil.calculateFontBaseline(this, height, moduleFactory);
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4144
Author:   gosmith@adobe.com
Date:     2008-11-19T23:31:16.564278Z

Log Message:
-----------
FxComponent, GroupBase, and TextView now override the 'baselinePosition' getter to avoid calling the code in UIComponent that is suitable only for Halo components based on TextField. (It RTEs if it encounters certain Gumbo styles such as a textAlign of "start" rather than "left".)

For now, the baselinePosition of Gumbo components is simply reported as 0, so they won't lay out nicely in FormItems. We will need to properly implement baselinePosition across all Gumbo components, using FTE/TLF.

QE Notes: None
Doc Notes: None
Bugs: SDK-18060
Reviewer: Glenn

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3626
Author:   smgilson@adobe.com
Date:     2008-10-14T17:00:31.950167Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -406,11 +406,13 @@

     /**
      *  Returns the size of the thumb button
-     *  given the current range, pageSize, and trackSize settings.
+     *  given the current setting of the range,
+     *  trackSize, or other settings.
      *  Subclasses should override this to calculate the correct size in
      *  the units of position.
      *
-     *  @default 0
+     *  @return The size of the thumb button.
+     *  The default size is 0.
      */
     protected function calculateThumbSize():Number
     {
@@ -418,11 +420,21 @@
     }

     /**
-     *  From a MouseEvent object that contains the position where the thumb was dragged to, and
-     *  the previous value of the thumb position, return a new
-     *  value based on the difference calculated in the MouseDown event
-     *  and the new position. The value is also restricted to the allowed
-     *  values here. This method usually should not be overridden.
+     *  From a MouseEvent object that contains the
+     *  position where the thumb button was dragged to, and
+     *  the previous position of the thumb button,
+     *  return the value corresponding to the new position.
+     *  The value is restricted to the range defined by the
+     *  minimum and maximum values.
+     *
+     *
This method usually should not be overridden.

+     *
+     *  @param prevValue The previous position of the thumb button.
+     *
+     *  @param event A MouseEvent object.
+     *
+     *  @return The value that corresponds to the new track position
+     *  as calculated by the nearestValidValue() method.
      */
     protected function calculateNewValue(prevValue:Number, event:MouseEvent):Number
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
@@ -9,23 +9,23 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.effects.effectClasses
+package mx.effects.effectClasses
 {
 import flash.events.Event;

-import flex.core.Group;
-import flex.effects.Animation;
-import flex.effects.PropertyValuesHolder;
-import flex.events.AnimationEvent;
-import flex.graphics.graphicsClasses.GraphicElement;
+import mx.components.Group;
+import mx.effects.Animation;
+import mx.effects.PropertyValuesHolder;
+import mx.events.AnimationEvent;
+import mx.graphics.graphicsClasses.GraphicElement;

 import mx.effects.effectClasses.PropertyChanges;
-import mx.events.FlexEvent;
+import mx.events.AnimationEvent;
 import mx.managers.LayoutManager;

-public class FadeInstance extends AnimateInstance
+public class FxFadeInstance extends FxAnimateInstance
 {
-    public function FadeInstance(target:Object)
+    public function FxFadeInstance(target:Object)
     {
         super(target);


Transferred from the Adobe Open Source Subversion Repository

Revision: 19922
Author:   hmuller@adobe.com
Date:     2011-01-25T00:18:22.191168Z

Log Message:
-----------
Moved the tooltip initialization code in TextFieldGridItemRendererInclude/validateDisplayList() updatePreferredSize() (same file) and factored it into an mx_internal static utility method in GridItemRenderer.

QE notes: 24 failures: 21 new bitmaps needed, 3 others also need to move the mouse (Jacob)
Doc notes:
Bugs: SDK-28616
Reviewer: Carol
Tests run: checkin, mustella
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -118,8 +118,7 @@
         inheritingStyles = StyleProtoChain.STYLE_UNINITIALIZED;
         nonInheritingStyles = StyleProtoChain.STYLE_UNINITIALIZED;

-        addEventListener(ToolTipEvent.TOOL_TIP_SHOW,
-						 GridItemRenderer.toolTipShowHandler);
+        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, GridItemRenderer.toolTipShowHandler);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -131,6 +131,33 @@
     }

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


Fixed HTTPStatusEvent type

Fixed HTTPStatusEvent type

--- frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
+++ frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
@@ -32,7 +32,6 @@
         import flash.events.IOErrorEvent;
 		import flash.events.ProgressEvent;
 		import flash.events.SecurityErrorEvent;
-		import flash.events.StatusEvent;
 		import flash.net.URLRequest;
 		import flash.net.URLRequestHeader;
 		import flash.net.URLStream;
@@ -120,9 +119,9 @@
             }
         }
         COMPILE::SWF
-		private function flash_status(ev:StatusEvent):void
-		{
-			setStatus(parseInt(ev.code,10));
+		private function flash_status(ev:HTTPStatusEvent):void
+		{
+			setStatus(ev.status);
 		}

         COMPILE::SWF


Transferred from the Adobe Open Source Subversion Repository

Revision: 11171
Author:   egeorgie@adobe.com
Date:     2009-10-26T23:24:13.720443Z

Log Message:
-----------
Add overlay property to GroupBase. Note, names of class and APIs will change, since it's still in review.

QE notes: Ready testing, names will change after the APIs review.
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests, mustella (all gumbo tests)
Is noteworthy for integration: No

Modified Paths:
--------------
<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/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayPlane.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayPlaneObjectExistenceEvent.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/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -27,6 +27,7 @@
 import spark.components.ResizeMode;
 import spark.core.IViewport;
 import spark.core.MaskType;
+import spark.events.DisplayPlaneObjectExistenceEvent;
 import spark.layouts.BasicLayout;
 import spark.layouts.supportClasses.LayoutBase;
 import spark.primitives.shaders.LuminosityMaskShader;
@@ -628,7 +629,79 @@
         }
     }

-    //----------------------------------
+	//----------------------------------
+	//  overlay
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the overlay property
+	 */
+	mx_internal var _overlay:DisplayPlane;
+
+	[Inspectable(category="General")]
+
+	/**
+	 *  The overlay plane for this Group.
+	 *  All objects of the overlay plane render on top of the Group elements.
+	 *  Don't hold on to this object, as Group destroys and creates it on demand.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+	public function get overlay():DisplayPlane
+	{
+		if (!_overlay)
+		{
+			_overlay = new DisplayPlane();
+			_overlay.addEventListener(DisplayPlaneObjectExistenceEvent.OBJECT_ADD, overlay_objectAdd);
+			_overlay.addEventListener(DisplayPlaneObjectExistenceEvent.OBJECT_REMOVE, overlay_objectRemove);
+
+			// Invalidate properties, so that if nothing was actually added to the
+			// overlay object, we'll clean it up:
+			invalidateProperties();
+		}
+		return _overlay;
+	}
+
+	/**
+	 *  @private
+	 *  Event listener to add overlay objects when added to the overlay DisplayPlane property.
+	 */
+	private function overlay_objectAdd(event:DisplayPlaneObjectExistenceEvent):void
+	{
+		super.addChildAt(event.object, event.index + numChildren - _overlay.numDisplayObjects + 1);
+	}
+
+	/**
+	 *  @private
+	 *  Event listener to remove overlay objects when removed from the overlay
+	 *  DisplayPlane property.
+	 */
+	private function overlay_objectRemove(event:DisplayPlaneObjectExistenceEvent):void
+	{
+		// Remove the object from the display list
+		super.removeChild(event.object);
+
+		// Is this the last display object?
+		if (_overlay.numDisplayObjects == 1)
+			invalidateProperties();
+	}
+
+	/**
+	 *  Destroys the overlay object. This method gets called on commitProperties
+	 *  when the overlay doesn't contain any objects.
+	 */
+	private function destroyOverlay():void
+	{
+		_overlay.removeEventListener(DisplayPlaneObjectExistenceEvent.OBJECT_ADD, overlay_objectAdd);
+		_overlay.removeEventListener(DisplayPlaneObjectExistenceEvent.OBJECT_REMOVE, overlay_objectRemove);
+		_overlay = null;
+	}
+
+	//----------------------------------
     //  resizeMode
     //----------------------------------

@@ -867,7 +940,19 @@
         if (!layout)
             layout = new BasicLayout();
     }
-
+
+	/**
+	 *  @private
+	 */
+	override protected function commitProperties():void
+	{
+		super.commitProperties();
+
+		// Cleanup the _overlay object when there are no more overlay objects
+		if (_overlay && _overlay.numDisplayObjects == 0)
+			destroyOverlay();
+	}
+
     /**
      *  @private
      */
@@ -942,7 +1027,7 @@
                 if (!_mask.parent)
                 {
                     // TODO (jszeto): Does this need to be attached to a sibling?
-                    super.addChild(_mask);
+					overlay.addDisplayObject(_mask, OverlayDepth.MASK_DEPTH);
                     var maskComp:UIComponent = _mask as UIComponent;
                     if (maskComp)
                     {
@@ -1285,7 +1370,7 @@
     {
         if (value)
         {
-            super.addChild(value);
+			overlay.addDisplayObject(value, OverlayDepth.FOCUS_DEPTH);

             value.x = 0;
             value.y = 0;
@@ -1295,9 +1380,9 @@
         }
         else
         {
-             super.removeChild(_focusPane);
+			overlay.removeDisplayObject(_focusPane);

-             // TODO (jszeto): remove mask?  SDK-15310
+            // TODO (jszeto): remove mask?  SDK-15310
             _focusPane = null;
         }
     }
@@ -1419,8 +1504,8 @@
         if (_mask !== value)
         {
             if (_mask && _mask.parent === this)
-            {
-                super.removeChild(_mask);
+            {
+				overlay.removeDisplayObject(_mask);
             }

             _mask = value;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4332
Author:   hmuller@adobe.com
Date:     2008-12-16T23:47:06.628431Z

Log Message:
-----------
Added prototype virtualization support for VerticalLayout and DataGroup.

More information here: https://zerowing.corp.adobe.com/display/flex/Virtualization

QE Notes: Should not effect existing tests
Doc Notes: None
Bugs:
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -567,6 +567,74 @@
             }
         }
     }
+
+    /**
+     *  If virtualLayout is true and the layout supports
+     *  virtualization, then the layout calls this method before
+     *  changing the actual sizes and positions of the layout elements
+     *  beginning at the specified index.
+     *
+     *  The layout is responsible for computing the startIndex based on
+     *  the current vertical and horizontal scroll positions.
+     *
+     *  After calling this method, the layout will size and position
+     *  layout elements until the available space has been exhausted,
+     *  and then it will finish by calling endVirtualLayout().
+     *
+     *  The origin of the "available space" is defined by
+     *  horizontalScrollPosition and verticalScrollPosition, and the
+     *  width,height is this DataGroup's with and height.
+     *
+     *  This method is intended to be overriden by subclasses that
+     *  need to handle virtualzed getLayoutElement requests specially.
+     *
+     *  This method is called at updateDisplayList time and when
+     *  the scroll position changes.
+     *
+     *  This method should not be called explicitly, it's called
+     *  as needed by the layout.
+     *
+     *  @param startIndex The first layout element that will be moved into view.
+     *  @see #endVirtualLayout
+     *  @see virtualLayout
+     *  @see verticalScrollPosition
+     *  @see horizontalScrollPosition
+     *  @see clipContent
+     *  @see layout
+     */
+    public function beginVirtualLayout(startIndex:int):void
+    {
+    }
+
+    /**
+     *  If virtualLayout is true and the layout supports
+     *  virtualization, then the layout calls this method after
+     *  updating the sizes and positions of the layout elements
+     *  in the specified range.
+     *
+     *  This method is called at updateDisplayList time and when
+     *  the scroll position changes.
+     *
+     *  This method is intended to be overriden by subclasses that
+     *  want to discard or recycle layout elements that fall
+     *  outside the startIndex, endIndex range.
+     *
+     *  This method should not be called explicitly, it's called
+     *  as needed by the layout.
+     *
+     *  @param startIndex The first layout element that was moved into view.
+     *  @param endIndex The last layout element that was moved into view.
+     *
+     *  @see #beginVirtualLayout
+     *  @see virtualLayout
+     *  @see verticalScrollPosition
+     *  @see horizontalScrollPosition
+     *  @see clipContent
+     *  @see layout
+     */
+    public function endVirtualLayout(startIndex:int, endIndex:int):void
+    {
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.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/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.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/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.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/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.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/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.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/framework/src/mx/controls/DataGrid.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/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.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/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.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/skins/spark/FocusSkin.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/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.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/flex4/src/spark/primitives/pathSegments/LineSegment.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/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</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/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.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/components/supportClasses/ListBase.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/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.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/flex4/src/spark/components/VSlider.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/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
@@ -139,7 +139,7 @@
                 if (alphaFrom == 0)
                 {
                     target.alpha = 0;
-                    // TODO: is Group or is UIComponent?
+                    // FIXME (chaase): is Group or is UIComponent?
                     if (target.parent is Group)
                         target.parent.validateNow();
                 }
@@ -180,7 +180,7 @@
         }
         // And logic to make the object invisible at the end if we're
         // fading it out
-        // TODO (chaase): simplify logic of which variables we are
+        // FIXME (chaase): simplify logic of which variables we are
         // side-effecting and what we should reset at the end
         if ("visible" in target && target.visible &&
             alphaFrom != 0 && alphaTo == 0 &&


Transferred from the Adobe Open Source Subversion Repository

Revision: 20590
Author:   cframpto@adobe.com
Date:     2011-03-03T22:21:09.601403Z

Log Message:
-----------
Add some clarifications to the ASdoc for Grid item renderers.

QE notes:
Doc notes:
Bugs: SDK-29789, SDK-29643
Reviewer: Hans
Tests run:
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultGridItemRenderer.as
@@ -71,12 +71,18 @@
 /**
  *  The DefaultGridItemRenderer class defines simple and efficient
  *  item renderer that displays a single text label.
- *  This class is the default value for the DataGrid itemRenderer property.
- *  This class displays the cell data in a text label using the UIFTETextField control.
- *  It is based on FTE, the FlashTextEngine,  which supports
+ *  This class is the default value for the DataGrid itemRenderer property.
+ *  This class extends UIFTETextField and displays the cell data in a text label using the text
+ *  field.
+ *  The UIFTETextField control is based on FTE, the FlashTextEngine,  which supports
  *  high-quality international typography and font embedding in the same way as other
  *  Spark controls.
- *
+ *  Since the UIFTETextField control implements the TextField API, you must use MX text syles
+ *  rather than Spark text styles to configure the renderer.
+ *  Please see the documentation for this class for the list of supported styles.
+ *  These styles can be inherited from the renderer's parent even though the parent is a Spark
+ *  control.
+ *
  *
You can control the label text wrapping by using the lineBreak style.
  *  For example, setting  lineBreak="explicit" and variableRowHeight="false"
  *  creates fixed height cells whose labels do not wrap.


Fix error in TurnAwayFromMouse action.

Fix error in TurnAwayFromMouse action.

--- src/org/flintparticles/twoD/actions/TurnAwayFromMouse.as
+++ src/org/flintparticles/twoD/actions/TurnAwayFromMouse.as
@@ -30,15 +30,23 @@

 package org.flintparticles.twoD.actions
 {
-	import flash.display.DisplayObject;
+	import org.flintparticles.common.actions.ActionBase;
+	import org.flintparticles.common.emitters.Emitter;
+	import org.flintparticles.common.particles.Particle;
+	import org.flintparticles.twoD.particles.Particle2D;
+
+	import flash.display.DisplayObject;

 	/**
-	 * The TurnAwayFromMouse action causes the particle to constantly adjust its
-	 * direction so that it travels away from the mouse pointer.
+	 * The TurnAwayFromMouse action causes the particle to constantly adjust its direction
+	 * so that it travels away from the mouse pointer.
 	 */

-	public class TurnAwayFromMouse extends TurnTowardsMouse
+	public class TurnAwayFromMouse extends ActionBase
 	{
+		private var _power:Number;
+		private var _renderer:DisplayObject;
+
 		/**
 		 * The constructor creates a TurnAwayFromMouse action for use by an emitter.
 		 * To add a TurnAwayFromMouse to all particles created by an emitter, use the
@@ -52,19 +60,74 @@
 		 */
 		public function TurnAwayFromMouse( power:Number = 0, renderer:DisplayObject = null )
 		{
-			super( -power, renderer );
+			this.power = power;
+			this.renderer = renderer;
 		}

 		/**
 		 * The strength of the turn action. Higher values produce a sharper turn.
 		 */
-		override public function get power():Number
+		public function get power():Number
 		{
-			return -super.power;
+			return _power;
 		}
-		override public function set power( value:Number ):void
+		public function set power( value:Number ):void
 		{
-			super.power = -value;
+			_power = value;
+		}
+
+		/**
+		 * The display object whose coordinate system the mouse position is converted to. This
+		 * is usually the renderer for the particle system created by the emitter.
+		 */
+		public function get renderer():DisplayObject
+		{
+			return _renderer;
+		}
+		public function set renderer( value:DisplayObject ):void
+		{
+			_renderer = value;
+		}
+
+		/**
+		 * Calculates the direction to the mouse and turns the particle towards
+		 * this direction.
+		 *
+		 *
This method is called by the emitter and need not be called by the
+		 * user.

+		 *
+		 * @param emitter The Emitter that created the particle.
+		 * @param particle The particle to be updated.
+		 * @param time The duration of the frame - used for time based updates.
+		 *
+		 * @see org.flintparticles.common.actions.Action#update()
+		 */
+		override public function update( emitter:Emitter, particle:Particle, time:Number ):void
+		{
+			var p:Particle2D = Particle2D( particle );
+			var turnLeft:Boolean = ( ( p.y - _renderer.mouseY ) * p.velX + ( _renderer.mouseX - p.x ) * p.velY < 0 );
+			var newAngle:Number;
+			if ( turnLeft )
+			{
+				newAngle = Math.atan2( p.velY, p.velX ) - _power * time;
+
+			}
+			else
+			{
+				newAngle = Math.atan2( p.velY, p.velX ) + _power * time;
+			}
+			var len:Number = Math.sqrt( p.velX * p.velX + p.velY * p.velY );
+			p.velX = len * Math.cos( newAngle );
+			p.velY = len * Math.sin( newAngle );
+			var overturned:Boolean = ( ( p.y - _renderer.mouseY ) * p.velX + ( _renderer.mouseX - p.x ) * p.velY < 0 ) != turnLeft;
+			if( overturned )
+			{
+				var dx:Number = p.x - _renderer.mouseX;
+				var dy:Number = p.y - _renderer.mouseY;
+				var factor:Number = len / Math.sqrt( dx * dx + dy * dy );
+				p.velX = dx * factor;
+				p.velY = dy * factor;
+			}
 		}
 	}
 }


Updated by Michael IV

Updated by Michael IV

--- src/org/flintparticles/threeD/away3d/initializers/A3DDisplayObjectClass.as
+++ src/org/flintparticles/threeD/away3d/initializers/A3DDisplayObjectClass.as
@@ -32,10 +32,12 @@
 {
 	import away3d.sprites.MovieClipSprite;

+	import flash.display.DisplayObject;
+
 	import org.flintparticles.common.emitters.Emitter;
 	import org.flintparticles.common.initializers.InitializerBase;
 	import org.flintparticles.common.particles.Particle;
-	import org.flintparticles.common.utils.construct;
+	import org.flintparticles.common.utils.construct;

 	/**
 	 * The A3DDisplayObjectClass initializer sets the DisplayObject to use to
@@ -101,7 +103,10 @@
 		 */
 		override public function initialize( emitter:Emitter, particle:Particle ):void
 		{
-			particle.image = new MovieClipSprite( construct( _imageClass, _parameters ), { rescale:true, align:"none", ownCanvas:true } );
+			///particle.image = new MovieClipSprite( construct( _imageClass, _parameters ) , { rescale:true, align:"none", ownCanvas:true } );
+			///Updated by Michael IV to Away3D 3.6
+			particle.image = new MovieClipSprite( construct( _imageClass, _parameters ) ,"none", 1,true );
+
 		}
 	}
 }


teach generic binding to handle deferred instances

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
@@ -23,7 +23,8 @@
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IDocument;
 	import org.apache.flex.core.IStrand;
-
+	import org.apache.flex.events.ValueChangeEvent;
+
     /**
      *  The GenericBinding class is the data-binding class that applies
      *  changes to properties of source objects to a property of the
@@ -173,7 +174,11 @@
                 var n:int = arr.length;
                 var obj:Object = document[arr[0]];
                 if (obj == null)
+                {
+                    document.addEventListener(ValueChangeEvent.VALUE_CHANGE,
+                        destinationChangeHandler);
                     return;
+                }
                 for (var i:int = 1; i < n - 1; i++)
                 {
                     obj = obj[arr[i]];
@@ -219,5 +224,11 @@
             {
             }
 		}
+
+        private function destinationChangeHandler(event:ValueChangeEvent):void
+        {
+            if (event.propertyName == destinationData[0])
+                valueChanged(null);
+        }
 	}
 }


fix constant binding in release mode

fix constant binding in release mode

--- frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
+++ frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
@@ -154,6 +154,28 @@
                 {
                 }
             }
+            else
+            {
+                COMPILE::JS
+                {
+                    // GCC optimizer only puts exported class constants on
+                    // Window and not on the class itself (which got renamed)
+                    var cname:Object = source.FLEXJS_CLASS_INFO;
+                    if (cname)
+                    {
+                        cname = cname.names[0].qName;
+                        var parts:Array = cname.split('.');
+                        var n:int = parts.length;
+                        var o:Object = window;
+                        for (var i:int = 0; i < n; i++) {
+                            o = o[parts[i]];
+                        }
+                        val = o[sourcePropertyName];
+                        destination[destinationPropertyName] = val;
+                    }
+                }
+            }
+
 		}

         /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.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/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.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/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.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/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.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/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.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/framework/src/mx/controls/DataGrid.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/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.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/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.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/skins/spark/FocusSkin.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/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.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/flex4/src/spark/primitives/pathSegments/LineSegment.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/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</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/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.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/components/supportClasses/ListBase.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/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.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/flex4/src/spark/components/VSlider.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/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
@@ -434,7 +434,7 @@

         isStyleMap = new Array(motionPaths.length);

-        // TODO (chaase): avoid setting up animations on properties whose
+        // FIXME (chaase): avoid setting up animations on properties whose
         // from/to values are the same. Not worth the cycles, but also want
         // to avoid triggering any side effects when we're not actually changing
         // values
@@ -443,7 +443,7 @@
         for (i = 0; i < motionPaths.length; ++i)
         {
             var mp:MotionPath = MotionPath(motionPaths[i]);
-            // TODO (chaase): should we push this keyframe-init logic
+            // FIXME (chaase): should we push this keyframe-init logic
             // into the MotionPath class instead?

             var keyframes:Vector.<Keyframe> = motionPaths[i].keyframes;
@@ -452,7 +452,7 @@
             if (interpolator)
                 mp.interpolator = interpolator;
             // adjust effect duration to be the max of all MotionPath keyframe times
-            // TODO (chaase): Currently we do not adjust *down* for smaller duration
+            // FIXME (chaase): Currently we do not adjust *down* for smaller duration
             // MotionPaths. This is because we do not distinguish between
             // SimpleMotionPath objects (which are created with fake durations of 1,
             // knowing that they will derive their duration from their effects) and
@@ -480,7 +480,7 @@

         animation.play();

-        // TODO (chaase): there may be a better way to organize the
+        // FIXME (chaase): there may be a better way to organize the
         // animations for each property. For example, we could use
         // an animation of a single value from 0 to 1 and then update each
         // property based on that elapsed fraction.
@@ -506,7 +506,7 @@
         }
     }

-    // TODO (chaase): This function appears in multiple places. Maybe
+    // FIXME (chaase): This function appears in multiple places. Maybe
     // put it in some util class instead?
     /**
      * @private
@@ -648,7 +648,7 @@

         finalizeValues();

-        // TODO (chaase): Consider putting AnimateInstance (and subclass's)
+        // FIXME (chaase): Consider putting AnimateInstance (and subclass's)
         // play() functionality (the setup and playing of the Animation object)
         // into startEffect(), calling play() from here, and not overriding
         // play() at all.
@@ -814,7 +814,7 @@
                         parentStart.addChild(target);
                     // GraphicElements may delay parenting their underlying displayObject until
                     // a layout pass, so let's force it to make sure we're ready to go
-                    // TODO (chaase): this should probably happen as a part of applyStartValues()
+                    // FIXME (chaase): this should probably happen as a part of applyStartValues()
                     // instead, then we already force the layout to happen
                     if (target is GraphicElement)
                         GraphicElement(target).validateNow();
@@ -861,7 +861,7 @@

     private var constraintsHolder:Object;

-    // TODO (chaase): Use IConstraintClient for this
+    // FIXME (chaase): Use IConstraintClient for this
     private function reenableConstraint(name:String):void
     {
         var value:* = constraintsHolder[name];
@@ -881,7 +881,7 @@
         // there must have been no constraints to worry about
         if (constraintsHolder)
         {
-            // TODO EGeorgie: add support for 'baseline' constraint, when the new layouts support it.
+            // FIXME (egeorgie): add support for 'baseline' constraint, when the new layouts support it.
             var left:* = reenableConstraint("left");
             var right:* = reenableConstraint("right");
             var top:* = reenableConstraint("top");
@@ -897,7 +897,7 @@
         }
     }

-    // TODO (chaase): Use IConstraintClient for this
+    // FIXME (chaase): Use IConstraintClient for this
     private function cacheConstraint(name:String):*
     {
         var isProperty:Boolean = (name in target);
@@ -957,7 +957,7 @@
      */
     protected function setupStyleMapEntry(property:String):void
     {
-        // TODO (chaase): Find a better way to set this up just once
+        // FIXME (chaase): Find a better way to set this up just once
         if (isStyleMap[property] == undefined)
         {
             if (property in target)
@@ -975,7 +975,7 @@
                     throw new Error(resourceManager.getString("sparkEffects",
                         "propNotPropOrStyle", [property, target, err]));
                 }
-                // TODO: check to make sure that the throw above won't
+                // FIXME (chaase): check to make sure that the throw above won't
                 // let the code flow get to here
             }
         }
@@ -989,7 +989,7 @@
      */
     protected function setValue(property:String, value:Object):void
     {
-        // TODO (chaase): Find a better way to set this up just once
+        // FIXME (chaase): Find a better way to set this up just once
         setupStyleMapEntry(property);
         if (!isStyleMap[property])
             target[property] = value;
@@ -1005,7 +1005,7 @@
      */
     protected function getCurrentValue(property:String):*
     {
-        // TODO (chaase): Find a better way to set this up just once
+        // FIXME (chaase): Find a better way to set this up just once
         setupStyleMapEntry(property);
         if (!isStyleMap[property])
             return target[property];


Added a note for Future Ray.

Added a note for Future Ray.

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

--- src/as/com/threerings/util/CommandEvent.as
+++ src/as/com/threerings/util/CommandEvent.as
@@ -56,6 +56,9 @@

             // now trying calling it
             try {
+                // TODO: Tim Conkling has determined that fn.length will tell you the required
+                // number of args to a function. We may be able to do something smarter here
+                // with that, but I'll wait until it's a problem.
                 fn.apply(null, args);
             } catch (err :Error) {
                 Log.getLog(CommandEvent).warning("Unable to call callback.", err);


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

--- frameworks/projects/advancedgrids/src/mx/collections/SummaryField.as
+++ frameworks/projects/advancedgrids/src/mx/collections/SummaryField.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
 {