Transferred from the Adobe Open Source Subversion Repository

Revision: 14483
Author:   smgilson@adobe.com
Date:     2010-03-01T19:01:18.459430Z

Log Message:
-----------
merge 14456: Adding ASDoc version tags classes

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPanelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkNavigatorContentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTrackBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/events/EventDetails.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableContainerBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkMuteButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSpinnerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkLabelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkBorderContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableComponentAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as
@@ -11,73 +11,83 @@

 package spark.automation.delegates.components
 {
-	import flash.display.DisplayObject;
-
-	import mx.automation.Automation;
-	import mx.core.mx_internal;
-
-	import spark.automation.delegates.components.supportClasses.SparkButtonBarBaseAutomationImpl;
-	import spark.components.TabBar;
-
-	use namespace mx_internal;
-
-	[Mixin]
-
-	/**
-	 *
-	 *  Defines the methods and properties required to perform instrumentation for the
-	 *  TabBar class.
-	 *
-	 *  @see spark.components.TabBar
-	 *
-	 */
-
-	public class SparkTabBarAutomationImpl extends SparkButtonBarBaseAutomationImpl
-	{
-
-		//--------------------------------------------------------------------------
-		//
-		//  Class methods
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  Registers the delegate class for a component class with automation manager.
-		 *
-		 *  @param root The SystemManger of the application.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 4
-		 */
-		public static function init(root:DisplayObject):void
-		{
-			Automation.registerDelegateClass(spark.components.TabBar, SparkTabBarAutomationImpl);
-		}
-
-		//--------------------------------------------------------------------------
-		//
-		//  Constructor
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  Constructor.
-		 * @param obj TabBar object to be automated.
-		 */
-		public function SparkTabBarAutomationImpl(obj:spark.components.TabBar)
-		{
-			super(obj);
-		}
-
-		/**
-		 *  @private
-		 *  storage for the owner component
-		 */
-		protected function get sparkTabBar():spark.components.TabBar
-		{
-			return uiComponent as spark.components.TabBar;
-		}
-	}
+    import flash.display.DisplayObject;
+
+    import mx.automation.Automation;
+    import mx.core.mx_internal;
+
+    import spark.automation.delegates.components.supportClasses.SparkButtonBarBaseAutomationImpl;
+    import spark.components.TabBar;
+
+    use namespace mx_internal;
+
+    [Mixin]
+
+    /**
+     *
+     *  Defines the methods and properties required to perform instrumentation for the
+     *  TabBar class.
+     *
+     *  @see spark.components.TabBar
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     *
+     */
+
+    public class SparkTabBarAutomationImpl extends SparkButtonBarBaseAutomationImpl
+    {
+
+        //--------------------------------------------------------------------------
+        //
+        //  Class methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Registers the delegate class for a component class with automation manager.
+         *
+         *  @param root The SystemManger of the application.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public static function init(root:DisplayObject):void
+        {
+            Automation.registerDelegateClass(spark.components.TabBar, SparkTabBarAutomationImpl);
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Constructor
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Constructor.
+         * @param obj TabBar object to be automated.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function SparkTabBarAutomationImpl(obj:spark.components.TabBar)
+        {
+            super(obj);
+        }
+
+        /**
+         *  @private
+         *  storage for the owner component
+         */
+        protected function get sparkTabBar():spark.components.TabBar
+        {
+            return uiComponent as spark.components.TabBar;
+        }
+    }
 }


XHR, Flash: wrap load/upload into try/catch.

--- src/flash/src/com/XMLHttpRequest.as
+++ src/flash/src/com/XMLHttpRequest.as
@@ -243,8 +243,8 @@
 		private function onStatus(e:HTTPStatusEvent) : void {
 			_status = e.status;
 		}
-
-		private function onIOError(e:IOErrorEvent) : void {
+
+		private function onIOError(e:*) : void {
 			if (_status == 0) { // httpStatus might have already set status to some failure code (according to livedocs)
 				_status = 404; // assume that request succeeded, but url was wrong
 			}
@@ -302,7 +302,14 @@
 			onOpen(); // trigger it manually

 			_readyState = XMLHttpRequest.LOADING;
-			_conn.upload(request, _blobFieldName, false);
+			try {
+				_conn.upload(request, _blobFieldName, false);
+			} catch (ex:*) {
+				onIOError({
+					type: IOErrorEvent.IO_ERROR,
+					target: _conn
+				});
+			}
 		}

@@ -390,7 +397,14 @@

 				progress.addEventListener(Event.OPEN, function() : void {
 					start = new Date;
+					try {
 					_conn.load(request);
+					} catch (ex:*) {
+						onIOError({
+							type: IOErrorEvent.IO_ERROR,
+							target: _conn
+						});
+					}
 				});

 				_conn.addEventListener(Event.COMPLETE, function(e:Event) : void {
@@ -410,7 +424,15 @@
 				_conn.addEventListener(Event.COMPLETE, onComplete);

 				onOpen(); // trigger it manually
+
+				try {
 				_conn.load(request);
+				} catch (ex:*) {
+					onIOError({
+						type: IOErrorEvent.IO_ERROR,
+						target: _conn
+					});
+				}
 			}

 			_readyState = XMLHttpRequest.LOADING;


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.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 spark.automation.delegates.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8309
Author:   aharui@adobe.com
Date:     2009-06-26T15:41:04.510261Z

Log Message:
-----------
Fix bugs in WindowedSystemManager related to drag-drop, off-screen mouse events, performance when lots of windows are up, and some cleanup

QE Notes: None
Doc Notes: None
Bugs: SDK-21507, SDK-20619, SDK-21453, SDK-21539
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<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/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/StageEventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as
@@ -51,6 +51,17 @@
             marshalSystemManager.dispatchEventFromSWFBridges(mme, null, true, true);
             // trace("<<marshalListener", systemManager);
         }
+        else if (event.type == Event.MOUSE_LEAVE)
+        {
+            mme = new SandboxMouseEvent(SandboxMouseEvent.MOUSE_UP_SOMEWHERE);
+            // trace(">>marshalListener", systemManager, mme.type);
+            if (!marshalSystemManager)
+                marshalSystemManager =
+			        IMarshalSystemManager(systemManager.getImplementation("mx.managers::IMarshalSystemManager"));
+            marshalSystemManager.dispatchEventFromSWFBridges(mme, null, true, true);
+            // must send to ourselves as well
+            systemManager.dispatchEvent(mme);
+        }
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3970
Author:   smgilson@adobe.com
Date:     2008-10-30T18:29:45.702912Z

Log Message:
-----------
Mark classes as @private that are also [ExcludeClass]

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/PlaceholderData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/RemotePopUp.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/StageEventProxy.as</path>

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as
@@ -23,29 +23,30 @@
 [ExcludeClass]

 /**
+ * @private
  * An object that marshals events to other sandboxes
  */
 public class EventProxy extends EventDispatcher
 {
-	private var systemManager:ISystemManager;
+    private var systemManager:ISystemManager;

-	public function EventProxy(systemManager:ISystemManager)
-	{
-		this.systemManager = systemManager;
-	}
+    public function EventProxy(systemManager:ISystemManager)
+    {
+        this.systemManager = systemManager;
+    }

-	public function marshalListener(event:Event):void
-	{
-		if (event is MouseEvent)
-		{
-			var me:MouseEvent = event as MouseEvent;;
-			var mme:SandboxMouseEvent= new SandboxMouseEvent(EventUtil.mouseEventMap[event.type],
-				false, false, me.ctrlKey, me.altKey, me.shiftKey, me.buttonDown);
-			// trace(">>marshalListener", systemManager, mme.type);
-			systemManager.dispatchEventFromSWFBridges(mme, null, true, true);
-			// trace("<<marshalListener", systemManager);
-		}
-	}
+    public function marshalListener(event:Event):void
+    {
+        if (event is MouseEvent)
+        {
+            var me:MouseEvent = event as MouseEvent;;
+            var mme:SandboxMouseEvent= new SandboxMouseEvent(EventUtil.mouseEventMap[event.type],
+                false, false, me.ctrlKey, me.altKey, me.shiftKey, me.buttonDown);
+            // trace(">>marshalListener", systemManager, mme.type);
+            systemManager.dispatchEventFromSWFBridges(mme, null, true, true);
+            // trace("<<marshalListener", systemManager);
+        }
+    }

 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


FLEX-33919: Corrected the range check to included everything below zero.

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -923,7 +923,7 @@
         if (allowCustomSelectedItem && selectedIndex == CUSTOM_SELECTED_ITEM)
             return _selectedItem;

-        if (selectedIndex == NO_SELECTION || dataProvider == null)
+        if (selectedIndex < 0 || dataProvider == null)
            return undefined;

         return dataProvider.length > selectedIndex ? dataProvider.getItemAt(selectedIndex) : undefined;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4699
Author:   gosmith@adobe.com
Date:     2009-01-27T23:57:02.795717Z

Log Message:
-----------
Changed clipping in TextBox and TextGraphic.as

TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.

TextBlockComposer now uses identical logic to do this.

TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.

NOTE: This change was previously committed as revision 4631 and then reverted as revision 4635.

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

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

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

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

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

+    /**
+	 *  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: 4631
Author:   gosmith@adobe.com
Date:     2009-01-23T01:00:39.828983Z

Log Message:
-----------
Changed clipping in TextBox and TextGraphic.as

TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.

TextBlockComposer now uses identical logic to do this.

TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17722
Author:   chiedozi@adobe.com
Date:     2010-09-15T22:24:44.760789Z

Log Message:
-----------
The default back behavior of MobileApplicationBase can now be canceled by calling preventDefault on the KeyboardEvent dispatched by pressing the back key.

QE notes:
Doc notes:
Bugs: SDK-27786
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration:

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorApplicationBase.as
@@ -74,6 +74,19 @@
     {
         super();
     }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  This flag indicates when a user has called preventDefault on the
+     *  KeyboardEvent dispatched when the back key is pressed.
+     */
+    private var backKeyEventPreventDefaulted:Boolean = false;

     //--------------------------------------------------------------------------
     //
@@ -321,8 +334,13 @@

         // We want to prevent the default down behavior for back key if
         // the navigator has a view to pop back to
-        if (key == Keyboard.BACK && canCancelBackKeyBehavior)
-            event.preventDefault();
+        if (key == Keyboard.BACK)
+        {
+            backKeyEventPreventDefaulted = event.isDefaultPrevented();
+
+            if (canCancelBackKeyBehavior)
+                event.preventDefault();
+        }
     }

     /**
@@ -331,8 +349,15 @@
     private function deviceKeyUpHandler(event:KeyboardEvent):void
     {
         var key:uint = event.keyCode;
-
-        if (key == Keyboard.BACK && canCancelBackKeyBehavior)
+
+        // If preventDefault() wasn't called on the initial keyDown event
+        // and the application thinks it can cancel the native back behavior,
+        // call the backKeyHandler() method.  Otherwise, the runtime will
+        // handle the back key function.
+
+        // The backKeyEventPreventDefaulted key is always set in the
+        // deviceKeyDownHandler method and so doesn't need to be reset.
+        if (key == Keyboard.BACK && !backKeyEventPreventDefaulted && canCancelBackKeyBehavior)
             backKeyHandler();
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17574
Author:   chiedozi@adobe.com
Date:     2010-09-03T19:58:44.875870Z

Log Message:
-----------
SlideViewTransition properly restores the visible and includeInLayout properties on a View after a transition completes.

QE notes:
Doc notes:
Bugs: SDK-27733
Reviewer: Evtim
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
@@ -263,12 +263,20 @@
                 }
             }
         }
+
+        // Temporarily hide the the next view so that it isn't included in the cached bitmap
+        // of the current navigator state
+        var oldVisibility:Boolean = nextView.visible;
+        nextView.visible = false;

         // Always generate a bitmap representation of the navigator because
         // we can't determine if it will be a full screen animation at this point.
         // The acitonBar's dimensions can change between now and play() since a
         // validation pass will run.
         cachedNavigator = generateBitmap(targetNavigator);
+
+        // Restore the visibility of the next view
+        nextView.visible = oldVisibility;
     }

     /**
@@ -382,6 +390,9 @@

         if (fullScreenAnimation)
         {
+            // Restore the visibility of the current view
+            currentView.visible = true;
+
             if (cachedNavigator)
                 removeComponentFromContainerSkin(cachedNavigator, targetNavigator.skin);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20349
Author:   chiedozi@adobe.com
Date:     2011-02-17T18:40:31.084295Z

Log Message:
-----------
Fixed an issue where the UNCOVER and COVER view transitions didn't properly animate with the tab bar.

QE notes:
Doc notes:
Bugs: SDK-29535
Reviewer: Corey
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
@@ -246,8 +246,7 @@
         {
             // Animate the tabBar if its overlayControls or visible property is toggled.
             animateTabBar = startView.overlayControls != endView.overlayControls ||
-                            startView.tabBarVisible != endView.tabBarVisible ||
-                            mode == SlideViewTransitionMode.COVER;
+                            startView.tabBarVisible != endView.tabBarVisible;
         }

         // Snapshot the entire navigator or actionBar depending on the mode.
@@ -437,7 +436,7 @@

         // Add the necessary views to the slide targets array.  When in PUSH mode,
         // both start and end views are added.
-        if (startView && mode != SlideViewTransitionMode.COVER)
+        if (startView && mode == SlideViewTransitionMode.PUSH)
             slideTargets.push(startView);

         if (mode != SlideViewTransitionMode.UNCOVER)
@@ -454,6 +453,17 @@
             addComponentToContainerAt(transitionGroup, targetNavigator.skin, 0);
             transitionGroup.addElement(cachedNavigator);
         }
+        else if (mode == SlideViewTransitionMode.UNCOVER)
+        {
+            // When doing an uncover transition, we want the real tabBar to be under the cached
+            // bitmap of the original navigator when the tabBar visibility or overlayControls
+            // mode changes.  When the tabBar isn't animating, we want the image to animate
+            // underneath the real tabBar.
+            if (animateTabBar)
+                addComponentToContainer(transitionGroup, targetNavigator.skin);
+            else
+                addComponentToContainer(transitionGroup, navigator.skin);
+        }
         else
         {
             // Add the transition group to the top of the skin
@@ -529,20 +539,24 @@

             if (animateTabBar)
             {
-                if (mode != SlideViewTransitionMode.UNCOVER)
-                    slideTargets.push(tabBar);
-
                 navigatorProps.tabBarIncludeInLayout = tabBar.includeInLayout;
                 tabBar.includeInLayout = false;

-                if (cachedTabBar)
+                if (mode != SlideViewTransitionMode.UNCOVER)
                 {
-                    // Need to removed the 4 pixel buffer
-                    cachedTabBar.x = tabBar.x - actionBarBitmapPadding;
-                    cachedTabBar.y = tabBar.y - actionBarBitmapPadding;
+                    slideTargets.push(tabBar);

-                    cachedTabBar.includeInLayout = false;
-                    transitionGroup.addElement(cachedTabBar);
+                    // When Uncovering, the cachedTabBar is not needed because the transition
+                    // animates a cachedBitamp
+                    if (cachedTabBar)
+                    {
+                        // Need to removed the 4 pixel buffer
+                        cachedTabBar.x = tabBar.x - actionBarBitmapPadding;
+                        cachedTabBar.y = tabBar.y - actionBarBitmapPadding;
+
+                        cachedTabBar.includeInLayout = false;
+                        transitionGroup.addElement(cachedTabBar);
+                    }
                 }
             }
         }
@@ -607,7 +621,7 @@
         if (cachedActionBar && mode != SlideViewTransitionMode.COVER)
             slideTargets.push(cachedActionBar.displayObject);

-        if (cachedTabBar && mode != SlideViewTransitionMode.COVER)
+        if (cachedTabBar && mode == SlideViewTransitionMode.PUSH)
             slideTargets.push(cachedTabBar.displayObject);

         if (cachedNavigator && mode == SlideViewTransitionMode.UNCOVER)
@@ -701,7 +715,20 @@
             navigator.contentGroup.includeInLayout = navigatorProps.navigatorContentGroupIncludeInLayout;

             if (transitionGroup)
-                removeComponentFromContainer(transitionGroup, targetNavigator.skin);
+            {
+                if (mode == SlideViewTransitionMode.UNCOVER)
+                {
+                    if (animateTabBar)
+                        removeComponentFromContainer(transitionGroup, targetNavigator.skin);
+                    else
+                        removeComponentFromContainer(transitionGroup, navigator.skin);
+
+                }
+                else
+                {
+                    removeComponentFromContainer(transitionGroup, targetNavigator.skin);
+                }
+            }
         }

         transitionGroup = null;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19065
Author:   rfrishbe@adobe.com
Date:     2010-12-06T18:37:28.339600Z

Log Message:
-----------
PARB changes: getting rid of minimumDownStateTime as a style.  Instead, we just base it off of touchDelay, while still offering a way to disable it for toggle buttons

I will checkin the changes to defaults.css, removing setting the minimumDownStateTime style, in another checkin.

QE notes:
Doc notes:
Bugs:
Reviewer: Jason SZ
Tests run: checkintests, mustella Button, CheckBox
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/InteractionStateDetector.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as
@@ -144,6 +144,11 @@
     public function ToggleButtonBase()
     {
         super();
+
+		// ToggleButtons don't use minimumDownStateTime.  If they are quick-tapped
+		// with a touchDelay, they don't fake it and go in to the down state for a bit.
+		// They go immediately to the selected state.
+		disableMinimumDownStateTime = true;
     }

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


Added updateText().

Added updateText().

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@540 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/TextFieldUtil.as
+++ src/as/com/threerings/flash/TextFieldUtil.as
@@ -67,11 +67,7 @@
         if (formatProps != null) {
             tf.defaultTextFormat = createFormat(formatProps);
         }
-        tf.text = text;
-        if (tf.autoSize != TextFieldAutoSize.NONE) {
-            tf.width = tf.textWidth + WIDTH_PAD;
-            tf.height = tf.textHeight + HEIGHT_PAD;
-        }
+        updateText(tf, text);

         return tf;
     }
@@ -97,7 +93,19 @@
         var f :TextFormat = field.defaultTextFormat; // this gets a clone of the default fmt
         Util.init(f, props); // update the clone
         field.defaultTextFormat = f; // set it as the new default
-        field.text = field.text; // jiggle the text to update it
+        updateText(field, field.text); // jiggle the text to update it
+    }
+
+    /**
+     * Update the text in the field, automatically resizing it if appropriate.
+     */
+    public static function updateText (field :TextField, text :String) :void
+    {
+        field.text = text;
+        if (field.autoSize != TextFieldAutoSize.NONE) {
+            field.width = field.textWidth + WIDTH_PAD;
+            field.height = field.textHeight + HEIGHT_PAD;
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4358
Author:   egreenfi@adobe.com
Date:     2008-12-19T00:13:07.095798Z

Log Message:
-----------
Cleaning up Ryan's Mess.  :)

Added missing import to UIMovieClip

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

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -34,6 +34,7 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.MoveEvent;
+import mx.events.PropertyChangeEvent;
 import mx.events.ResizeEvent;
 import mx.events.StateChangeEvent;
 import mx.managers.IFocusManagerComponent;


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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.messaging.management
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12387
Author:   rfrishbe@adobe.com
Date:     2009-12-02T20:38:05.199373Z

Log Message:
-----------
VideoDisplay/VideoPlayer changes.  The two big changes are making sure we don’t call any methods on the media player when the state is “loading” or “uninitialized”.  Before we were just checking for “playbackError”; however, at the time of these other states, it’s not valid to call methods on mediaPlayer either.  Also, I alphabetized and organized the methods and properties in VolumeBar and also fixed a bug where we were setting muted = false in setValue().  We did this so that when the user moves around the track or the thumb, muted gets unset, but we should only do this on changes due to a user-interaction.  So I’ve moved this code to a CHANGE handler instead.  All the other changes should be relatively minor.

QE notes: -
Doc notes: -
Bugs: SDK-24192, SDK-24486
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/MuteButton.as</path>

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/MuteButton.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/MuteButton.as
@@ -104,7 +104,7 @@
             return;

         _muted = value;
-        dispatchEvent(new Event("mutedChanged"));
+        dispatchEvent(new FlexEvent(FlexEvent.MUTED_CHANGE));
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8438
Author:   gosmith@adobe.com
Date:     2009-07-08T00:23:15.259930Z

Log Message:
-----------
Fixed a problem with a TextGraphicElement's TextLines drifting inside a shared DisplayObject during effects.

When drawX or drawY changed, TextGraphicElement used to adjust the x and y positions of the TextLines by the delta in drawX and drawY. But accumulated errors (from rounding-to-twips somewhere?) caused the lines to drift by a noticeable amount. So now when the TextLines are created, TextGraphicElement remembers their original x and y positions in two Vectors, and applies the full drawX/Y each time, avoiding any accumulation errors.

QE Notes: None
Doc Notes: None
Bugs: SDK-21350
Reviewer: Carol to review

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -17,6 +17,7 @@
 import flash.display.Graphics;
 import flash.display.Sprite;
 import flash.events.Event;
+import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.text.engine.TextLine;

@@ -159,6 +160,44 @@

     /**
      *  @private
+	 *  Keeps track of each TextLine's original x position when it was composed.
+	 *  Since multiple TextGraphicElements can share a single DisplayObject,
+	 *  the x position of the TextLine gets offset by drawX
+	 *  when it is added to the DisplayObject.
+	 *  We need to save the original position and offset it each time
+	 *  drawX changes; the alternative of accumulating deltas in drawX
+	 *  makes the TextLines drift within the DisplayObject.
+     */
+    mx_internal var textLinesX:Vector.<Number> = new Vector.<Number>;
+
+    /**
+     *  @private
+	 *  Keeps track of each TextLine's original y position when it was composed.
+	 *  Since multiple TextGraphicElements can share a single DisplayObject,
+	 *  the y position of the TextLine gets offset by drawY
+	 *  when it is added to the DisplayObject.
+	 *  We need to save the original position and offset it each time
+	 *  drawY changes; the alternative of accumulating deltas in drawY
+	 *  makes the TextLines drift within the DisplayObject.
+     */
+    mx_internal var textLinesY:Vector.<Number> = new Vector.<Number>;
+
+    /**
+     *  @private
+     *  The offset applied to each textLine.x so that it is positioned
+     *  correctly in the display object container.
+     */
+    private var lastDrawX:Number = 0;
+
+    /**
+     *  @private
+     *  The offset applied to each textLine.y so that it is positioned
+     *  correctly in the display object container.
+     */
+    private var lastDrawY:Number = 0;
+
+    /**
+     *  @private
      *  This flag is set to true if the text must be clipped.
      */
     mx_internal var isOverset:Boolean = false;
@@ -192,20 +231,6 @@

     /**
      *  @private
-     *  The offset applied to each textLine.x so that it is positioned
-     *  correctly in the display object container.
-     */
-    private var _lastDrawX:Number = 0;
-
-    /**
-     *  @private
-     *  The offset applied to each textLine.y so that it is positioned
-     *  correctly in the display object container.
-     */
-    private var _lastDrawY:Number = 0;
-
-    /**
-     *  @private
      *  Cache the width constraint as set by the layout in setLayoutBoundsSize()
      *  so that text reflow can be calculated during a subsequent measure pass.
      */
@@ -221,7 +246,7 @@
      *  @private
      */
     private var displayObjectChanged:Boolean;
-
+
     //--------------------------------------------------------------------------
     //
     //  Overridden properties: GraphicElement
@@ -1250,8 +1275,8 @@

             //trace(container.name, "addTextLines", textLine.x, textLine.y, drawX, drawY);

-            textLine.x += drawX;
-            textLine.y += drawY;
+            textLine.x = textLinesX[i] + drawX;
+            textLine.y = textLinesY[i] + drawY;
             textLine.visible = visible;

 			addChildAtMethod(textLine, index);
@@ -1259,9 +1284,10 @@

 		// If these lines went into a shared container these need to be saved
 		// so that the lines can be moved to another container without being
-		// recomposed.  If the container isn't shared they will be 0,0.
-		_lastDrawX = drawX;
-		_lastDrawY = drawY;
+		// recomposed.
+		// If the container isn't shared they will be relative to (0, 0).
+		lastDrawX = drawX;
+		lastDrawY = drawY;
 	}

 	/**
@@ -1292,13 +1318,14 @@

             removeChildMethod(textLine);

-            // Reset x and y to be relative to 0,0.
-            textLine.x -= _lastDrawX;
-            textLine.y -= _lastDrawY;
+            // Reset x and y to be relative to (0, 0).
+            textLine.x = textLinesX[i];
+            textLine.y = textLinesY[i];
+			textLine.visible = true;
 		}

-		_lastDrawX = 0;
-		_lastDrawY = 0;
+		lastDrawX = 0;
+		lastDrawY = 0;
 	}

     /**
@@ -1323,14 +1350,18 @@
         }

         textLinesVector.length = 0;
+        textLinesX.length = 0;
+        textLinesY.length = 0;
    }

     /**
      *  @private
      *  If the text lines are in a shared container then x and y have to be
-     *  adjusted if postLayoutTransformOffsets.x, postLayoutTransformOffsets.y, layoutX or layoutY changes.  When
-     *  these are changed, our updateDisplayList() is called but if we don't
-     *  recompose we may need to adjust the position of the text lines.
+     *  adjusted if postLayoutTransformOffsets.x, postLayoutTransformOffsets.y,
+	 *  layoutX or layoutY changes.
+	 *  When these are changed, our updateDisplayList() is called
+	 *  but if we don't recompose we may need to adjust the position
+	 *  of the text lines.
      */
     mx_internal function adjustTextLines():void
     {
@@ -1339,19 +1370,19 @@
             return;

         // Are there any adjustments to be made?
-        if (_lastDrawX == drawX && _lastDrawY == drawY)
+        if (lastDrawX == drawX && lastDrawY == drawY)
             return;

         for (var i:int = 0; i < n; i++)
         {
             var textLine:DisplayObject = textLines[i];

-            textLine.x +=  drawX - _lastDrawX;
-            textLine.y += drawY - _lastDrawY;
-        }
-
-        _lastDrawX = drawX;
-        _lastDrawY = drawY;
+            textLine.x = textLinesX[i] + drawX;
+            textLine.y = textLinesY[i] + drawY;
+        }
+
+        lastDrawX = drawX;
+        lastDrawY = drawY;
     }

     /**


Working on Carousel

Working on Carousel

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

--- src/laml/display/Carousel.as
+++ src/laml/display/Carousel.as
@@ -105,8 +105,6 @@
 		protected function configureChildren():void {
 			contentMask = getChildById(CONTENT_MASK);
 			contentContainer = getChildById(CONTENT_CONTAINER);
-			trace(">> CONFIGUR CHILDREN");
-			contentContainer.mask = contentMask;

 			leftButton.addEventListener(MouseEvent.CLICK, leftButtonClickHandler);
 			rightButton.addEventListener(MouseEvent.CLICK, rightButtonClickHandler);
@@ -171,8 +169,10 @@
 			contentContainer.invalidateDisplayList();
 			contentContainer.render();

-			contentContainer.mask = contentMask;
-			contentContainer.view.cacheAsBitmap = true;
+			if(!contentContainer.mask) {
+				contentContainer.mask = contentMask;
+				contentContainer.view.cacheAsBitmap = true;
+			}
 		}

 		private function getItemSize(w:Number):Number {
@@ -185,7 +185,7 @@
 			var xml:XML = <HBox width="100%" height="100%" horizontalGutter={horizontalGutter} padding={padding} xmlns="laml.display">
 							<Button id={LEFT_BUTTON} width="30" height="100" backgroundColor="#ff0000" />
 							<Component width="100%" height="100%">
-								<Row id={CONTENT_CONTAINER} excludeFromLayout="true" backgroundColor="#ff0000" horizontalGutter={horizontalGutter} padding={padding} />
+								<Row id={CONTENT_CONTAINER} excludeFromLayout="true" horizontalGutter={horizontalGutter} padding={padding} />
 								<Component id={CONTENT_MASK} backgroundColor="#0000ff" width="100%" height="100%" />
 							</Component>
 							<Button id={RIGHT_BUTTON} width="30" height="100" backgroundColor="#ff0000" />


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.delegates.advancedDataGrid
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridRendererProvider.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridRendererProvider.as
@@ -0,0 +1,287 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.advancedDataGridClasses
+{
+
+import mx.core.IFactory;
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  An AdvancedDataGridRendererProvider instance defines the characteristics for
+ *  a single item renderer used by the AdvancedDataGrid control.
+ *  Use properties of the AdvancedDataGridRendererProvider class to
+ *  configure where an item renderer is used in an AdvancedDataGrid control.
+ *
+ *
The following example uses the AdvancedDataGridRendererProvider class to
+ *  configure a custom item renderer named EstimateRenderer.mxml in the
+ *  myComponents subdirectory.

+ *
+ *

+ *  <mx:AdvancedDataGrid>
+ *      <mx:columns>
+ *          <mx:AdvancedDataGridColumn dataField="Region"/>
+ *          <mx:AdvancedDataGridColumn dataField="Territory_Rep"
+ *              headerText="Territory Rep"/>
+ *          <mx:AdvancedDataGridColumn dataField="Actual"/>
+ *          <mx:AdvancedDataGridColumn dataField="Estimate"/>
+ *      </mx:columns>
+ *
+ *      <mx:rendererProviders>
+ *          <mx:AdvancedDataGridRendererProvider
+ *              columnIndex="3"
+ *              columnSpan="1"
+ *              renderer="myComponents.EstimateRenderer"/>
+ *      </mx:rendererProviders>
+ *  </mx:AdvancedDataGrid>
+ *

+ *
+ *  @mxml
+ *
The <mx:AdvancedDataGridRendererProvider> tag
+ *  defines the following tag attributes:

+ *

+ *  <mx:AdvancedDataGridRendererProvider
+ *    Properties
+ *    column="Not defined"
+ *    columnIndex="-1"
+ *    columnSpan="1"
+ *    dataField="No default"
+ *    depth="All depths of the tree"
+ *    renderer="null"
+ *    rowSpan="1"
+ *  />
+ *
+ *  @see mx.controls.AdvancedDataGrid
+ *
+ *  @includeExample examples/AdvancedDataGridChartRendererExample.mxml
+ *  @includeExample examples/ChartRenderer.mxml -noswf
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class AdvancedDataGridRendererProvider implements IAdvancedDataGridRendererProvider
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+    *  Constructor.
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
+    */
+    public function AdvancedDataGridRendererProvider()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // column
+    //----------------------------------
+
+    /**
+     *  The id of the column for which the renderer is used.
+     *  If you omit this property,
+     *  you can use the columnIndex property to specify the column.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var column:AdvancedDataGridColumn;
+
+    //----------------------------------
+    // columnIndex
+    //----------------------------------
+
+    /**
+     *  The column index for which the renderer is used,
+     *  where the first column is at an index of 0.
+     *
+     *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var columnIndex:int = -1;
+
+    //----------------------------------
+    // columnSpan
+    //----------------------------------
+
+    /**
+     *  Specifies how many columns the renderer should span.
+     *  Set this property to 0 to span all columns.
+     *  The AdvancedDataGrid control uses this information to set the width
+     *  of the item renderer.
+     *
+     *  @default 1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var columnSpan:int = 1;
+
+    //----------------------------------
+    // dataField
+    //----------------------------------
+
+    /**
+     *  The data field in the data provider for the renderer.
+     *  This property is optional.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var dataField:String;
+
+    //----------------------------------
+    // depth
+    //----------------------------------
+
+    /**
+     *  Depth in the tree at which the renderer is used,
+     *  where the top-most node of the tree is at a depth of 1.
+     *  Use this property if the renderer should only be used when the tree
+     *  is expanded to a certain depth, but not for all nodes in the tree.
+     *  By default, the control uses the renderer for all levels of the tree.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var depth:int = -1;
+
+    //----------------------------------
+    // renderer
+    //----------------------------------
+
+    /**
+     * The ItemRenderer IFactory used to create an instance of the item renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var renderer:IFactory;
+
+    //----------------------------------
+    // rowSpan
+    //----------------------------------
+
+    /**
+     *  Specifies how many rows the renderer should span.
+     *  The AdvancedDataGrid control uses this information to set the height of the renderer.
+     *
+     *
Currently, this property is not implemented in the AdvancedDataGrid control.

+     *
+     *  @default 1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var rowSpan:int = 1;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Method which compares property values to given values to determine whether the
+     *  renderer should be used for the given data, depth and column.
+     */
+    protected function checkMatch(data:Object, dataDepth:int, column:AdvancedDataGridColumn):Boolean
+    {
+        var matching:Boolean = true;
+
+        // check if the data object has the specified dataField
+        if(dataField && (!data || !data.hasOwnProperty(dataField)))
+            matching = false;
+
+        // check if the column has the same columnIndex as specified in the rendererProvider
+        if(columnIndex != -1 && columnIndex != column.colNum)
+            matching = false;
+
+        // check if the data has the same depth as specified in the rendererProvider
+        if(depth != -1 && dataDepth != depth)
+            matching = false;
+
+        // check if this is the same column as specified in the rendererProvider
+        if(this.column && this.column != column)
+            matching = false;
+
+        return matching;
+    }
+
+    /**
+     *  Updates the AdvancedDataGridRendererDescription instance with information about
+     *  this AdvancedDataGridRendererProvider instance.
+     *
+     *  @param data The data item to display.
+     *
+     *  @param dataDepth The depth of the data item in the AdvancedDataGrid control.
+     *
+     *  @param column The column associated with the item.
+     *
+     *  @param description The AdvancedDataGridRendererDescription object populated
+     *  with the renderer and column span information.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function describeRendererForItem(data:Object,
+                                   dataDepth:int,
+                                   column:AdvancedDataGridColumn,
+                                   description:AdvancedDataGridRendererDescription):void
+    {
+        // check for matching properties
+        if(checkMatch(data,dataDepth,column))
+        {
+            description.columnSpan = this.columnSpan;
+            description.renderer = this.renderer;
+        }
+    }
+}
+
+}


OFC-537 Error when confirming errors on multiple code input field

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/ui/component/input/FormItemContextMenu.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/ui/component/input/FormItemContextMenu.as
@@ -105,13 +105,18 @@
 					nodeEvent.nodeName = nodeDefinition.name;
 					break;
 				case CONFIRM_ERROR:
-					nodeEvent = new NodeEvent(NodeEvent.CONFIRM_ERROR);
 					if(nodeDefinition is AttributeDefinitionProxy) {
-						if(nodeDefinition.multiple && ! (nodeDefinition is CodeAttributeDefinitionProxy)) {
+						if ( ! nodeDefinition.multiple || nodeDefinition is CodeAttributeDefinitionProxy) {
+							nodeEvent = new NodeEvent(NodeEvent.CONFIRM_ERROR);
 							nodeEvent.parentEntity = parentEntity;
 							nodeEvent.nodeName = nodeDefinition.name;
-						} else {
-							nodeEvent.nodeProxy = AttributeFormItem(formItem).attribute;
+
+							if ( ! nodeDefinition.multiple) {
+								nodeEvent.nodeProxy = AttributeFormItem(formItem).attribute;
+							} else {
+								nodeEvent.parentEntity = parentEntity;
+								nodeEvent.nodes = parentEntity.getChildren(nodeDefinition.name);
+							}
 						}
 					}
 					break;


Added ResultObserverTest to AllTests (renamed from CallbackBridgeTest).

--- asunit-4.0/test/AllTests.as
+++ asunit-4.0/test/AllTests.as
@@ -15,6 +15,7 @@
     import asunit.framework.AsyncTest;
     import asunit.framework.NestedSuiteIteratorTest;
     import asunit.framework.ProceedOnEventTest;
+    import asunit.framework.ResultObserverTest;
     import asunit.framework.ResultTest;
     import asunit.framework.RunnerFactoryTest;
     import asunit.framework.SuiteIteratorTest;
@@ -46,6 +47,7 @@
         public var asunit_framework_AsyncTest:asunit.framework.AsyncTest;
         public var asunit_framework_NestedSuiteIteratorTest:asunit.framework.NestedSuiteIteratorTest;
         public var asunit_framework_ProceedOnEventTest:asunit.framework.ProceedOnEventTest;
+        public var asunit_framework_ResultObserverTest:asunit.framework.ResultObserverTest;
         public var asunit_framework_ResultTest:asunit.framework.ResultTest;
         public var asunit_framework_RunnerFactoryTest:asunit.framework.RunnerFactoryTest;
         public var asunit_framework_SuiteIteratorTest:asunit.framework.SuiteIteratorTest;


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPAttributeLevel.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPAttributeLevel.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.olap


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

--- frameworks/projects/framework/src/mx/core/ContainerCreationPolicy.as
+++ frameworks/projects/framework/src/mx/core/ContainerCreationPolicy.as
@@ -0,0 +1,75 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 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
+{
+
+/**
+ *  The ContainerCreationPolicy class defines the constant values
+ *  for the creationPolicy property of the Container class.
+ *
+ *  @see mx.core.Container#creationPolicy
+ */
+public final class ContainerCreationPolicy
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Delay creating some or all descendants until they are needed.
+	 *
+	 *
For example, if a navigator container such as a TabNavigator
+	 *  has this creationPolicy, it will immediately create
+	 *  all of its children, plus the descendants of the initially
+	 *  selected child.
+	 *  However, it will wait to create the descendants of the other children
+	 *  until the user navigates to them.

+	 */
+	public static const AUTO:String = "auto";
+
+	/**
+	 *  Immediately create all descendants.
+	 *
+	 *
Avoid using this creationPolicy because
+	 *  it increases the startup time of your application.
+	 *  There is usually no good reason to create components at startup
+	 *  which the user cannot see.
+	 *  If you are using this policy so that you can "push" data into
+	 *  hidden components at startup, you should instead design your
+	 *  application so that the data is stored in data variables
+	 *  and components which are created later "pull" in this data,
+	 *  via databinding or an initialize handler.

+	 */
+	public static const ALL:String = "all";
+
+	/**
+	 *  Add the container to a creation queue.
+	 */
+	public static const QUEUED:String = "queued";
+
+	/**
+	 *  Do not create any children.
+	 *
+	 *
With this creationPolicy, it is the developer's
+	 *  responsibility to programmatically create the children
+	 *  from the UIComponentDescriptors by calling
+	 *  createComponentsFromDescriptors()
+	 *  on the parent container.

+	 */
+	public static const NONE:String = "none";
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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