Transferred from the Adobe Open Source Subversion Repository

Revision: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</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/preloaders/Preloader.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/core/ResourceModuleRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.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/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.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/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.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/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/core/UITextField.as
+++ frameworks/projects/framework/src/mx/core/UITextField.as
@@ -218,6 +218,8 @@
     //  embeddedFontRegistry
     //----------------------------------

+	private static var noEmbeddedFonts:Boolean;
+
     /**
      *  @private
      *  Storage for the _embeddedFontRegistry property.
@@ -235,10 +237,17 @@
      */
     private static function get embeddedFontRegistry():IEmbeddedFontRegistry
     {
-        if (!_embeddedFontRegistry)
+        if (!_embeddedFontRegistry && !noEmbeddedFonts)
         {
-            _embeddedFontRegistry = IEmbeddedFontRegistry(
-                Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+			try
+			{
+				_embeddedFontRegistry = IEmbeddedFontRegistry(
+					Singleton.getInstance("mx.core::IEmbeddedFontRegistry"));
+			}
+			catch (e:Error)
+			{
+				noEmbeddedFonts = true;
+			}
         }

         return _embeddedFontRegistry;
@@ -301,13 +310,6 @@
      */
     private var cachedTextFormat:TextFormat;

-    /**
-     * @private
-     *
-     * Cache last value of embedded font.
-     */
-    private var cachedEmbeddedFont:EmbeddedFont = null;
-
     /**
      *  @private
      */
@@ -2021,12 +2023,11 @@
             var textFormat:TextFormat = getTextStyles();
             if (textFormat.font)
             {
-                var embeddedFont:EmbeddedFont = getEmbeddedFont(
-                    textFormat.font, textFormat.bold, textFormat.italic);
-
-                var fontModuleFactory:IFlexModuleFactory =
+                var fontModuleFactory:IFlexModuleFactory = (noEmbeddedFonts || !embeddedFontRegistry) ?
+					null :
                     embeddedFontRegistry.getAssociatedModuleFactory(
-                        embeddedFont, moduleFactory);
+                        textFormat.font, textFormat.bold, textFormat.italic,
+						this, moduleFactory);

                 // if we found the font, then it is embedded.
                 // Some fonts are not listed in info(), so are not in the above registry.
@@ -2348,28 +2349,6 @@
                 : systemManager;
     }

-    /**
-     * @private
-     *
-     * Get the embedded font for a set of font attributes.
-     */
-    private function getEmbeddedFont(fontName:String, bold:Boolean, italic:Boolean):EmbeddedFont
-    {
-        // Check if we can reuse a cached value.
-        if (cachedEmbeddedFont)
-        {
-            if (cachedEmbeddedFont.fontName == fontName &&
-                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
-            {
-                return cachedEmbeddedFont;
-            }
-        }
-
-        cachedEmbeddedFont = new EmbeddedFont(fontName, bold, italic);
-
-        return cachedEmbeddedFont;
-    }
-
     //----------------------------------
     //  IAutomationObject interface
     //----------------------------------


add width and height to level object

add width and height to level object

--- src/org/mangui/hls/HLSJS.as
+++ src/org/mangui/hls/HLSJS.as
@@ -270,7 +270,8 @@
                 var l: Level = _hls.levels[i];
                 // no fragments returned, use get_segment_info for fragm.info
                 levels[i] = Object({url: l.url, bitrate: l.bitrate,
-                    index: l.index, fragments: []});
+                    index: l.index, fragments: [], width: l.width,
+                    height: l.height});
             }
             return levels;
         }


fixed error in typings

fixed error in typings

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -62,7 +62,7 @@
 		 * @return A WeavePath object.
 		 * @see WeavePath
 		 */
-		public function path(...basePath/*/[(string|number)[]] | (string|number)[]/*/):WeavePath
+		public function path(...basePath/*/(string|number|(string|number)[])[]/*/):WeavePath
 		{
 			if (basePath.length == 1 && basePath[0] is Array)
 				basePath = basePath[0];
@@ -77,7 +77,7 @@
 		 * @param path An Array (or multiple parameters) specifying the path to an object in the session state.
 		 *             A child index number may be used in place of a name in the path when its parent object is a LinkableHashMap.
 		 */
-		public function getObject(...path/*/[(string|number)[]] | (string|number)[]/*/):ILinkableObject
+		public function getObject(...path/*/(string|number|(string|number)[])[]/*/):ILinkableObject
 		{
 			if (path.length == 1)
 			{


Updated by Michael IV

Updated by Michael IV

--- src/org/flintparticles/threeD/away3d/utils/Convert.as
+++ src/org/flintparticles/threeD/away3d/utils/Convert.as
@@ -30,9 +30,10 @@

 package org.flintparticles.threeD.away3d.utils
 {
-	import away3d.core.math.MatrixAway3D;
-	import away3d.core.math.Number3D;
 	import away3d.core.math.Quaternion;
+
+	import flash.geom.Matrix3D;
+	import flash.geom.Vector3D;

 	import org.flintparticles.threeD.geom.Matrix3D;
 	import org.flintparticles.threeD.geom.Point3D;
@@ -48,31 +49,35 @@
 		/**
 		 * Convert a Flint Vector3D object to an Away3D Number3D object.
 		 */
-		public static function Vector3DToA3D( v:Vector3D ):Number3D
+		public static function Vector3DToA3D( v:org.flintparticles.threeD.geom.Vector3D ):flash.geom.Vector3D
 		{
-			return new Number3D( v.x, v.y, v.z );
+			///return new Number3D( v.x, v.y, v.z );Updated by Michael IV to Away3D 3.6
+			return new flash.geom.Vector3D(v.x,v.y,v.z);
 		}

 		/**
 		 * Convert an Away3D Number3D object to a Flint Vector3D object.
 		 */
-		public static function Vector3DFromA3D( v:Number3D ):Vector3D
+		public static function Vector3DFromA3D( v:flash.geom.Vector3D ):org.flintparticles.threeD.geom.Vector3D
 		{
-			return new Vector3D( v.x, v.y, v.z );
+			//return new Vector3D( v.x, v.y, v.z );Updated by Michael IV to Away3D 3.6
+			return new org.flintparticles.threeD.geom.Vector3D(v.x, v.y, v.z );
 		}

 		/**
 		 * Convert a Flint Point3D object to an Away3D Number3D object.
 		 */
-		public static function Point3DToA3D( v:Point3D ):Number3D
+		public static function Point3DToA3D( v:Point3D ):flash.geom.Vector3D
 		{
-			return new Number3D( v.x, v.y, v.z );
+			///return new Number3D( v.x, v.y, v.z );Updated by Michael IV to Away3D 3.6
+			return new flash.geom.Vector3D
 		}

 		/**
 		 * Convert an Away3D Number3D object to a Flint Point3D object.
 		 */
-		public static function Point3DFromA3D( v:Number3D ):Point3D
+		////Updated by Michael IV to Away3D 3.6
+		public static function Point3DFromA3D( v:flash.geom.Vector3D ):Point3D
 		{
 			return new Point3D( v.x, v.y, v.z );
 		}
@@ -80,20 +85,28 @@
 		/**
 		 * Convert a Flint Matrix3D object to an Away3D Matrix3D object.
 		 */
-		public static function Matrix3DToA3D( m:Matrix3D ):MatrixAway3D
+		public static function Matrix3DToA3D( m:org.flintparticles.threeD.geom.Matrix3D ):flash.geom.Matrix3D
 		{
-			var n:MatrixAway3D = new MatrixAway3D();
-			n.array2matrix( m.rawData, false, 1 );
+		///	var n:MatrixAway3D = new MatrixAway3D();Updated by Michael IV to Away3D 3.6
+		///	n.array2matrix( m.rawData, false, 1 );Updated by Michael IV to Away3D 3.6
+			var n:flash.geom.Matrix3D=new flash.geom.Matrix3D();
+			//this one needs a check that columns and raws match between the matrices(Michael IV)
+			var rData:Vector.<Number>=new Vector.<Number>(m.rawData[0],m.rawData[1],m.rawData[2],m.rawData[3],m.rawData[4],m.rawData[5],m.rawData[6],m.rawData[7],m.rawData[8],m.rawData[9],m.rawData[10],m.rawData[11],m.rawData[12],m.rawData[13],m.rawData[14],m.rawData[15]);
+			n.rawData=rData;
 			return n;
 		}

 		/**
 		 * Convert an Away3D Matrix3D object to a Flint Matrix3D object.
 		 */
-		public static function Matrix3DFromA3D( m:MatrixAway3D ):Matrix3D
+		public static function Matrix3DFromA3D( m:flash.geom.Matrix3D ):org.flintparticles.threeD.geom.Matrix3D
 		{
-			return new Matrix3D(
-				[ m.sxx, m.sxy, m.sxz, m.tx, m.syx, m.syy, m.syz, m.ty, m.szx, m.szy, m.szz, m.tz, m.swx, m.swy, m.swz, m.tw ]
+			//return new Matrix3D(
+			//	[ m.sxx, m.sxy, m.sxz, m.tx, m.syx, m.syy, m.syz, m.ty, m.szx, m.szy, m.szz, m.tz, m.swx, m.swy, m.swz, m.tw ]
+			//);
+			///Updated by Michael IV to Away3D 3.6
+			return new org.flintparticles.threeD.geom.Matrix3D(
+				[m.rawData[0],m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0],m.rawData[0], m.rawData[0], m.rawData[0], m.rawData[0] ]
 			);
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5367
Author:   rfrishbe@adobe.com
Date:     2009-03-17T22:26:35.014500Z

Log Message:
-----------
The changes here are mostly fixing some sizing issues.

For the FlashContainerPlaceholder, the first child is now MyFlexContentHolder, which extends mx.flash.FlexContentHolder but meets the invariant that it has 1 child and that child is  FlexContentHolderThumbnail, which I’ve added as a swc to the project.  I changed this by accident last time to refer to mx.flash.FlexContentHolder, when it should've referred to a concrete instance created by Flash from a swc.  I also added a chrome of 151x151 to match the FlexContentHolderThumbnail since otherwise the container itself would have no chrome at all, and this let’s it size correctly.

Also, for sizing, in a container, rather than sizing to the size of the chrome, I now size to the size of the FlexContentHolder thumbnail that all FlexContentHolder’s have.  This means in ContainerMovieClip, I don’t need to override bounds anymore.

ContainerMovieClip now implements IVisualElementContainer.

Also, I fixed a resizing event bug in UIMovieClip where the resize event was getting dispatched more than once.

QE Notes: -
Doc Notes: -
Bugs: SDK-19271, SDK-19788, SDK-19789
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashComponentPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs/FlexContentHolderThumbnail.swc</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/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/utilities/src/MyFlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/utilities/libs</path>

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

--- frameworks/projects/authoringsupport/src/FlashComponentPlaceholder.as
+++ frameworks/projects/authoringsupport/src/FlashComponentPlaceholder.as
@@ -27,7 +27,7 @@
 	       	image1.source = _embed_mxml_flash_component_icon_png;
 	       	image1.scaleContent = false;
 	       	image1.percentHeight = 100;
-	       	image1.percentWidth = 100;
+            image1.percentWidth = 100;
 	       	image1.setStyle('horizontalAlign' , 'center');
 	       	image1.setStyle('verticalAlign' , 'middle');
 	       	return image1;


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8169
Author:   jimurphy@adobe.com
Date:     2009-06-24T15:12:39.471115Z

Log Message:
-----------
Merged 3.x revisions 7748,7852,7966,8019,8033 -> trunk

Modified Paths:
--------------
<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/rpc/src/mx/rpc/xml/DecodingContext.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>

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

--- frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as
+++ frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as
@@ -99,6 +99,21 @@
     }

     //----------------------------------
+    //  swfVersion
+    //----------------------------------
+
+    mx_internal static var _swfVersion:uint;
+
+    /**
+     *  If the LoaderConfig has been initialized, this should represent the
+     *  top-level MovieClip's swfVersion.
+     */
+    public static function get swfVersion():uint
+    {
+        return _swfVersion;
+    }
+
+	//----------------------------------
     //  url
     //----------------------------------


IInjector Asdocs

IInjector Asdocs

--- src/org/robotlegs/core/IInjector.as
+++ src/org/robotlegs/core/IInjector.as
@@ -35,7 +35,7 @@
 		 * This is used to register an existing instance with the injector
 		 * and treat it like a Singleton.
 		 *
-		 * @param whenAskedFor A class
+		 * @param whenAskedFor A class or interface
 		 * @param useValue An instance
 		 * @param named An optional name (id)
 		 */
@@ -45,22 +45,56 @@
 		 * When asked for an instance of the class whenAskedFor
 		 * inject a new instance of instantiateClass.
 		 *
-		 * @param whenAskedFor A class
+		 * This will create a new instance for each injection.
+		 *
+		 * @param whenAskedFor A class or interface
 		 * @param instantiateClass A class to instantiate
 		 * @param named An optional name (id)
 		 */
 		function bindClass(whenAskedFor:Class, instantiateClass:Class, named:String = null):void;

+		/**
+		 * When asked for an instance of the class whenAskedFor
+		 * inject an instance of code>whenAskedFor.
+		 *
+		 * This will create an instance on the first injection, but
+		 * will re-use that instance for subsequent injections.
+		 *
+		 * @param whenAskedFor A class or interface
+		 * @param named An optional name (id)
+		 */
 		function bindSingleton(whenAskedFor:Class, named:String = null):void;

+
+		/**
+		 * When asked for an instance of the class whenAskedFor
+		 * inject an instance of code>useSingletonOf.
+		 *
+		 * This will create an instance on the first injection, but
+		 * will re-use that instance for subsequent injections.
+		 *
+		 * @param whenAskedFor A class or interface
+		 * @param useSingletonOf A class to instantiate
+		 * @param named An optional name (id)
+		 */
 		function bindSingletonOf(whenAskedFor:Class, useSingletonOf:Class, named:String = null):void;

 		/**
 		 * Perform an injection into an object, satisfying all it's dependencies
-		 * @param target The object to inject into
+		 *
+		 * The IInjector should throw an Error
+		 * if it can't satisfy all dependencies of the injectee.
+		 *
+		 * @param target The object to inject into - the Injectee
 		 */
 		function injectInto(target:Object):void;

+		/**
+		 * Remove a rule from the injector
+		 *
+		 * @param clazz A class or interface
+		 * @param named An optional name (id)
+		 */
 		function unbind(clazz:Class, named:String = null):void;
 	}
 }


Fixed vertex color shader (shader compilation error: float5 instead of float4).

--- src/aerys/minko/render/shader/vertex/VertexRGBAShader.as
+++ src/aerys/minko/render/shader/vertex/VertexRGBAShader.as
@@ -14,7 +14,8 @@

 		override protected function getPixelColor() : SFloat
 		{
-			return float4(interpolate(vertexRGBAColor), 1);
+			return float4(interpolate(vertexRGBAColor));
+			//return float4(interpolate(vertexRGBAColor), 1);
 		}
 	}
 }


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5319
Author:   jimurphy@adobe.com
Date:     2009-03-16T15:07:19.469668Z

Log Message:
-----------
Merge 3.x revisions 5186-5187,5210,5229,5298 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/RectangularBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/skins/RectangularBorder.as
+++ frameworks/projects/framework/src/mx/skins/RectangularBorder.as
@@ -50,11 +50,6 @@
  *
  *
This class implements support for the backgroundImage,
  *  backgroundSize, and backgroundAttachment styles.

- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
  */
 public class RectangularBorder extends Border implements IRectangularBorder
 {
@@ -68,11 +63,6 @@

     /**
      *  Constructor.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public function RectangularBorder()
     {
@@ -127,22 +117,12 @@
     /**
      *  The DisplayObject instance that contains the background image, if any.
      *  This object is a sibling of the RectangularBorder instance.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     private var backgroundImage:DisplayObject;

     /**
      *  Contains true if the RectangularBorder instance
      *  contains a background image.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public function get hasBackgroundImage():Boolean
     {
@@ -166,11 +146,6 @@
      *  if the parent container has scrollable content.
      *  If this property is null, the border can use
      *  the parent's size and viewMetrics property to determine its value.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public function get backgroundImageBounds():Rectangle
     {
@@ -184,7 +159,7 @@
     {
         if (_backgroundImageBounds && value && _backgroundImageBounds.equals(value))
             return;
-
+
         _backgroundImageBounds = value;

         invalidateDisplayList();
@@ -323,11 +298,6 @@

     /**
      *  Layout the background image.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public function layoutBackgroundImage():void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10759
Author:   chaase@adobe.com
Date:     2009-09-30T20:29:28.049407Z

Log Message:
-----------
Fixes bug in transform effects on nested group structures. We would calculate the transform center based on outdated width/height information for a group (because we took those values prior to running layout on the group, so it was not sized correctly).

The fix is to add width/height to the list of properties that transform effects care about (‘affectedProperties’). Then at those times when we calculate the transform center, we will use these cached values (which are correct at start/end time) rather than going out to the object to grab a potentially wrong value.

QE notes:  Handful of Mustella tests fail due to the new values of relevantProperties/affectedProperties for transform effects. We now care about width/height properties, too.
Doc notes: None
Bugs: SDK-23346
Reviewer: Jason
Tests run: checkintests, Mustella spark/effects, mx/effects/Parallel, mx/effects/Sequence
Is noteworthy for integration: Yes, downstream teams care about this bug

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -16,6 +16,7 @@
 import flash.geom.Vector3D;
 import flash.utils.Dictionary;

+import mx.core.ILayoutElement;
 import mx.core.IUIComponent;
 import mx.core.mx_internal;
 import mx.effects.CompositeEffect;
@@ -33,7 +34,6 @@
 import spark.effects.easing.IEaser;
 import spark.effects.easing.Linear;
 import spark.effects.supportClasses.AnimateTransformInstance;
-import mx.core.ILayoutElement;

 use namespace mx_internal;

@@ -132,7 +132,8 @@
          "postLayoutRotationX","postLayoutRotationY","postLayoutRotationZ",
          "postLayoutScaleX","postLayoutScaleY","postLayoutScaleZ",
          "left", "right", "top", "bottom",
-         "horizontalCenter", "verticalCenter"];
+         "horizontalCenter", "verticalCenter",
+         "width", "height"];

     // FIXME (chaase): We probably need to advertise percentWidth/Height
     // in the affected properties/styles arrays; we don't pick these up
@@ -835,8 +836,10 @@
     override protected function applyValueToTarget(target:Object, property:String,
                                           value:*, props:Object):void
     {
-        // We've already set these properties in applyStartValues() or
-        // applyEndValues() override; don't set them again here
+        // We've already set most of these properties in applyStartValues() or
+        // applyEndValues() override; don't set them again here. Skip width/height
+        // because they are only used to track the size for autoCenterTransform;
+        // we should not apply those values as a side effect of this transform effect
         if (property == "translationX" || property == "translationY" ||
             property == "translationZ" || property == "rotationX" ||
             property == "rotationY" || property == "rotationZ" ||
@@ -846,7 +849,8 @@
             property == "postLayoutTranslationZ" || property == "postLayoutRotationX" ||
             property == "postLayoutRotationY" || property == "postLayoutRotationZ" ||
             property == "postLayoutScaleX" || property == "postLayoutScaleY" ||
-            property == "postLayoutScaleZ"
+            property == "postLayoutScaleZ" ||
+            property == "width" || property == "height"
             )
         {
             return;


GeoJSONDataSource.initializationComplete now works similarly to that of similar data sources.

--- WeaveData/src/weave/data/DataSources/GeoJSONDataSource.as
+++ WeaveData/src/weave/data/DataSources/GeoJSONDataSource.as
@@ -35,6 +35,7 @@
 	import weave.api.data.IQualifiedKey;
 	import weave.api.data.IWeaveTreeNode;
 	import weave.api.detectLinkableObjectChange;
+	import weave.api.linkableObjectIsBusy;
 	import weave.api.newLinkableChild;
 	import weave.api.reportError;
 	import weave.compiler.StandardLib;
@@ -96,7 +97,9 @@

 		override protected function get initializationComplete():Boolean
 		{
-			return super.initializationComplete;
+			return super.initializationComplete
+				&& !linkableObjectIsBusy(this)
+				&& jsonData;
 		}

 		/**


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

--- frameworks/projects/advancedgrids/src/mx/collections/LeafNodeCursor.as
+++ frameworks/projects/advancedgrids/src/mx/collections/LeafNodeCursor.as
@@ -0,0 +1,565 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+
+import flash.events.EventDispatcher;
+import flash.utils.Dictionary;
+
+import mx.events.CollectionEvent;
+import mx.events.CollectionEventKind;
+import mx.utils.UIDUtil;
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+/**
+ *  @private
+ *  This class provides a heirarchical view (a tree-like) view of a standard collection.
+ *  The collection that this Cursor walks across need not be heirarchical but may be flat.
+ *  This class delegates to the IHierarchicalData for information regarding the tree
+ *  structure of the data it walks across.
+ *  This class assumes that all the nodes are open and then traverse through them.
+ *
+ *  Only methods moveNext() and movePrevious() are implemented.
+ *
+ *  @see HierarchicalCollectionView
+ */
+public class LeafNodeCursor extends EventDispatcher
+									implements IHierarchicalCollectionViewCursor
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function LeafNodeCursor(
+							collection:HierarchicalCollectionView,
+							model:ICollectionView,
+							hierarchicalData:IHierarchicalData)
+    {
+		super();
+
+		//fields
+        this.collection = collection;
+        this.hierarchicalData = hierarchicalData;
+		this.model = model;
+
+		//init
+		modelCursor = model.createCursor();
+
+		//check to see if the model has more than one top level items
+		if (model.length > 1)
+			more = true;
+		else
+			more = false;
+
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var hierarchicalData:IHierarchicalData;
+
+    /**
+     *  @private
+	 *  Its effective offset into the "array".
+     */
+    private var currentIndex:int = 0;
+
+    /**
+     *  @private
+	 *  The current index into the childNodes array
+     */
+    private var currentChildIndex:int = 0;
+
+    /**
+     *  @private
+     *  The depth of the current node.
+     */
+    private var _currentDepth:int = 1;
+
+    /**
+     *  @private
+	 *  The current set of childNodes we are walking.
+     */
+	private var childNodes:Object = [];
+
+	/**
+	 *  @private
+	 *  The current set of parentNodes that we have walked from
+	 */
+	private var parentNodes:Array = [];
+
+    /**
+     *  @private
+	 *  A stack of the currentChildIndex in all parents of the currentNode.
+     */
+	private var childIndexStack:Array = [];
+
+    /**
+     *  @private
+     *  The collection that stores the user data
+     */
+    private var model:ICollectionView;
+
+    /**
+     *  @private
+     *  The collection wrapper of the model
+     */
+	private var collection:HierarchicalCollectionView;
+
+	/**
+	 *  @private
+	 *  Flag indicating model has more data
+	 */
+	private var more:Boolean;
+
+	/**
+	 *  @private
+	 *  Cursor from the model
+	 */
+	private var modelCursor:IViewCursor;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+	//----------------------------------
+	// index
+ 	//----------------------------------
+	/**
+	 * @private
+	 */
+	public function get index():int
+	{
+		return currentIndex;
+	}
+
+    //----------------------------------
+	//  bookmark
+    //----------------------------------
+    /**
+     *  @private
+     */
+    public function get bookmark():CursorBookmark
+    {
+        return null;
+    }
+
+    //----------------------------------
+	//  current
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    public function get current():Object
+    {
+        try
+        {
+        	if (childIndexStack.length == 0)
+        	{
+        		if (hierarchicalData.canHaveChildren(modelCursor.current) ||
+        			 modelCursor.current is SummaryObject)
+				{
+					moveNext();
+				}
+				else
+				{
+        			return modelCursor.current;
+    			}
+        	}
+        	return childNodes[currentChildIndex];
+ 		}
+        catch (e:RangeError)
+		{
+		}
+		return null;
+    }
+
+
+	//---------------------------------
+	// currentDepth
+	//---------------------------------
+	/**
+	 *  @private
+	 */
+	public function get currentDepth():int
+	{
+		return _currentDepth;
+	}
+
+
+	//----------------------------------
+	//  beforeFirst
+	//----------------------------------
+	/**
+	 *  @private
+	 */
+    public function get beforeFirst():Boolean
+    {
+    	return (currentIndex <= collection.length && current == null);
+    }
+
+	//----------------------------------
+	//  afterLast
+	//----------------------------------
+	/**
+	 *  @private
+	 */
+    public function get afterLast():Boolean
+    {
+        return (currentIndex >= collection.length && current == null);
+    }
+
+	//----------------------------------
+	//  view
+	//----------------------------------
+	/**
+	 *  @private
+	 */
+    public function get view():ICollectionView
+    {
+        return model;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    public function findAny(values:Object):Boolean
+    {
+        return false;
+    }
+
+    /**
+     *  @private
+     */
+    public function findFirst(values:Object):Boolean
+    {
+        return false;
+    }
+
+    /**
+     *  @private
+     */
+    public function findLast(values:Object):Boolean
+    {
+        return false;
+    }
+
+    /**
+     *  @private
+     *  Move one node forward from current.
+     *  This may include moving up or down one or more levels.
+     */
+    public function moveNext():Boolean
+    {
+    	var currentNode:Object = childIndexStack.length == 0 ? modelCursor.current : current;
+        //if there is no currentNode then we cant move forward and must be off the ends
+    	if (currentNode == null)
+    		return false;
+
+		var uid:String = UIDUtil.getUID(currentNode);
+		if (!collection.parentMap.hasOwnProperty(uid))
+			collection.parentMap[uid] = parentNodes[parentNodes.length - 1];
+
+		var flag:Boolean = true;
+		// If current node is a branch and is open, the first child is our next item so return it
+		if (hierarchicalData.canHaveChildren(currentNode) &&
+			hierarchicalData.hasChildren(currentNode))
+	    {
+	        	var previousChildNodes:Object = childNodes;
+	            childNodes = collection.getChildren(currentNode);
+				if (childNodes.length > 0)
+				{
+					childIndexStack.push(currentChildIndex);
+					parentNodes.push(currentNode);
+					currentChildIndex = 0;
+					currentNode = childNodes[0];
+					currentIndex++;
+					_currentDepth++;
+
+					// check for children and currentNode to be SummaryObject and find the next item if required.
+					if (hierarchicalData.canHaveChildren(currentNode) ||
+						currentNode is SummaryObject)
+					{
+						flag = moveNext();
+					}
+					return flag;
+				}
+				else
+				{
+					childNodes = previousChildNodes;
+				}
+	    }
+
+        // Otherwise until we find the next child (could be on any level)
+        while (true)
+        {
+            // If we hit the end of this list, pop up a level.
+            if (childNodes != null &&
+            	childNodes.length > 0 &&
+            	currentChildIndex >= Math.max(childNodes.length - 1, 0))
+            {
+            	//check for the end of the tree here.
+                if (childIndexStack.length < 1 && !more)
+                {
+                	currentNode = null;
+                    currentIndex++;
+                    _currentDepth = 1;
+                    return false;
+                }
+                else
+                {
+                	//pop up to parent
+                	currentNode = parentNodes.pop();
+                	//get parents siblings
+                	var grandParent:Object = parentNodes[parentNodes.length-1];
+                	//we could probably assume that a non-null grandparent has descendants
+                	//but the analogy only goes so far...
+                	if (grandParent != null &&
+                		hierarchicalData.canHaveChildren(grandParent) &&
+                		hierarchicalData.hasChildren(grandParent))
+                	{
+	                	childNodes = collection.getChildren(grandParent);
+               		}
+               		else
+               		{
+               			childNodes = [];
+               		}
+                	//get new current nodes index
+                	currentChildIndex = childIndexStack.pop();
+                	//pop the level up one
+                	_currentDepth--;
+                }
+            }
+            else
+            {
+            	//if no childnodes then we're probably at the top level
+            	if (childIndexStack.length == 0)
+				{
+					//check for more top level siblings
+					//and if we're here the depth should be 1
+					_currentDepth = 1;
+					more = modelCursor.moveNext();
+					if (more)
+					{
+						currentNode = modelCursor.current;
+						break;
+					}
+					else
+					{
+						//at the end of the tree
+						_currentDepth = 1;
+	                    currentIndex++;  //this should push us to afterLast
+	                    currentNode = null;
+	                    return false;
+					}
+				}
+				else
+				{
+					//get the next child node
+					try
+					{
+						currentNode = childNodes[++currentChildIndex];
+						break;
+					}
+					catch (e:RangeError)
+					{
+						//lets try to recover
+						return false;
+					}
+    			}
+            }
+        }
+        currentIndex++;
+
+       // check for children and currentNode to be SummaryObject and find the next item if required.
+        if (hierarchicalData.canHaveChildren(currentNode) ||
+        	 currentNode is SummaryObject)
+		{
+			flag = moveNext();
+		}
+        return flag;
+    }
+
+    /**
+     *  @private
+	 *  Performs a backward tree walk.
+     */
+    public function movePrevious():Boolean
+    {
+    	var currentNode:Object = current;
+    	// If there are no items, there's no current node, so return false.
+        if (currentNode == null)
+			return false;
+
+    	var flag:Boolean = true;
+    	//if not at top level
+		if (parentNodes && parentNodes.length > 0)
+		{
+			if (currentChildIndex == 0)
+        	{
+        		//at the first node in this branch so move to parent
+        		currentNode = parentNodes.pop();
+        		currentChildIndex = childIndexStack.pop();
+        		var grandParent:Object = parentNodes[parentNodes.length-1];
+                //we could probably assume that a non-null grandparent has descendants
+                //but the analogy only goes so far...
+                if (grandParent != null &&
+                	hierarchicalData.canHaveChildren(grandParent) &&
+                	hierarchicalData.hasChildren(grandParent))
+                {
+        			childNodes = collection.getChildren(grandParent);
+                }
+               	else
+                {
+                	//null is valid, but error prone so we'll make it empty
+                	childNodes = [];
+                }
+        		_currentDepth--;
+        		currentIndex--;
+
+				// check for children and currentNode to be SummaryObject and find the previous item if required.
+				if (!beforeFirst && (hierarchicalData.canHaveChildren(currentNode) ||
+					currentNode is SummaryObject))
+				{
+					flag = movePrevious();
+				}
+        		return flag;
+        	}
+        	else
+        	{
+        		// get previous child sibling
+        		try
+        		{
+        			currentNode = childNodes[--currentChildIndex];
+        		}
+        		catch(e:RangeError)
+        		{
+        			//lets try to recover
+					return false;
+        		}
+        	}
+		}
+		//handle top level siblings
+		else
+		{
+			more = modelCursor.movePrevious();
+			if (more)
+			{
+				//move back one node and then loop through children
+				currentNode = modelCursor.current;
+			}
+			//if past the begining of the tree return false
+			else
+			{
+				//currentIndex--;  //should be before first
+				currentIndex = -1;
+				currentNode = null;
+				return false;
+			}
+		}
+		while (true)
+        {
+            // If there are children, walk backwards on the children
+            // and consider youself after your children.
+			if (hierarchicalData.canHaveChildren(currentNode) &&
+			    hierarchicalData.hasChildren(currentNode))
+            {
+				var previousChildNodes:Object = childNodes;
+            	childNodes = collection.getChildren(currentNode);
+				if (childNodes.length > 0)
+				{
+            		childIndexStack.push(currentChildIndex);
+            		parentNodes.push(currentNode);
+            		currentChildIndex = childNodes.length - 1;
+            		currentNode = childNodes[currentChildIndex];
+           			_currentDepth++;
+				}
+				else
+				{
+					childNodes = previousChildNodes;
+					break;
+				}
+            }
+			else
+            {
+            	//No more open branches so we'll bail
+                break;
+            }
+        }
+        currentIndex--;
+
+		// check for children and currentNode to be SummaryObject and find the previous item if required.
+		if (hierarchicalData.canHaveChildren(currentNode) ||
+			currentNode is SummaryObject)
+		{
+			flag = movePrevious();
+		}
+        return flag;
+    }
+
+    /**
+     *  @private
+     */
+    public function seek(bookmark:CursorBookmark, offset:int=0,
+						 prefetch:int = 0):void
+    {
+    	//No impl
+    }
+
+    /**
+     *  @private
+     */
+    public function insert(item:Object):void
+    {
+        //No impl
+    }
+
+    /**
+     *  @private
+     */
+    public function remove():Object
+    {
+        return null;
+    }
+}
+
+}


Improved addAll and fixed issue with addItem when list is filtered

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -570,7 +570,10 @@
      */
     public function addItem(item:Object):void
     {
-        addItemAt(item, length);
+		if (localIndex)
+        	addItemAt(item, localIndex.length);
+		else
+			addItemAt(item, length);
     }

     /**
@@ -622,7 +625,10 @@
      */
     public function addAll(addList:IList):void
     {
-        addAllAt(addList, length);
+		if (localIndex)
+			addAllAt(addList, localIndex.length);
+		else
+			addAllAt(addList, length);
     }

     /**
@@ -649,16 +655,17 @@
         }

         var length:int = addList.length;
+		var maxLength:int = length
+
+		// incremental index may be out of bounds because of filtering,
+		// so add this item to the end.
+		if (index > maxLength)
+			index = maxLength;
+
         for (var i:int=0; i < length; i++)
         {
             var insertIndex:int = i + index;
-
-            // incremental index may be out of bounds because of filtering,
-            // so add this item to the end.
-            var currentLength:int = this.length;
-            if (insertIndex > currentLength)
-                insertIndex = currentLength;
-
+
             this.addItemAt(addList.getItemAt(i), insertIndex);
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5643
Author:   pfarland@adobe.com
Date:     2009-03-27T12:49:36.287811Z

Log Message:
-----------
Fixing drag and drop by qualifying the lookup of "DragManager" as "mx.managers.DragManager" in StyleManager.getStyleDeclaration().

QE: Yes, please test drag and drop in gumbo and -compatibility-version=3.0.0 MXML 2006 apps.
Doc: No
Checkintests: Pass

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as

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

--- frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
+++ frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
@@ -216,7 +216,7 @@
     {
         var newCursorClass:Class = cursorClass;
 		var styleSheet:CSSStyleDeclaration =
-						StyleManager.getStyleDeclaration("DragManager");
+						StyleManager.getStyleDeclaration("mx.managers.DragManager");

         if (action == DragManager.COPY)
             newCursorClass = styleSheet.getStyle("copyCursor");


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

--- frameworks/projects/framework/src/mx/printing/FlexPrintJobScaleType.as
+++ frameworks/projects/framework/src/mx/printing/FlexPrintJobScaleType.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.printing
 {


Fix TypeError #1009 happening in dataProviderRefreshed() of List.as after refreshing the dataProvider of Combobox.

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -1458,7 +1458,7 @@
         // its x,y "offset" relative to the dataGroup's position and then scroll
         // so that the new caret item renderer appears at the same offset.

-        if ((caretItem !== undefined) && dataGroup && dataGroup.dataProvider)
+        if ((caretItem !== undefined) && (dataGroup != null) && dataGroup.dataProvider)
         {
             const newCaretIndex:int = dataGroup.dataProvider.getItemIndex(caretItem);
             const caretItemRenderer:IVisualElement = dataGroup.getElementAt(caretIndex);
@@ -1476,9 +1476,17 @@
                 // their responses to the refresh event.

                 const updateCompleteListenerA:Function = function():void {
-                    dataGroup.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerA);
-                    ensureCaretVisibility(newCaretIndex);
-                    dataGroup.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerB);
+					if(dataGroup != null)
+					{
+                    	dataGroup.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerA, false);
+					}
+
+					ensureCaretVisibility(newCaretIndex);
+
+					if(dataGroup != null)
+					{
+						dataGroup.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerB, false, 0, true);
+					}

                 };

@@ -1486,11 +1494,14 @@
                 // so that layout bounds for the caret item renderer will have been computed.

                 const updateCompleteListenerB:Function = function():void {
-                    dataGroup.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerB);
+					if(dataGroup != null)
+					{
+						dataGroup.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerB, false);
+					}
                     restoreCaretScrollPosition(newCaretIndex, caretOffsetX, caretOffsetY);
                 };

-                dataGroup.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerA);
+                dataGroup.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteListenerA, false, 0, true);

                 return;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5924
Author:   chaase@adobe.com
Date:     2009-04-03T23:23:45.166425Z

Log Message:
-----------
This fixes the use of constraints in effects. Basically, it removes the 'adjustConstraints' property that was added in Flex4 and adds a new 'disableConstraints' flag which disables constraints during the effect (default false).

QE Notes: Issues in spark/effects/AnimateTransform* directories, rename-related, Matt chasing down
Doc Notes: none
Bugs:
Reviewer: Glenn
tests: checkintests, mustella spark/effects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Rotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Animate.as
+++ frameworks/projects/spark/src/spark/effects/Animate.as
@@ -11,23 +11,16 @@
 package spark.effects
 {

-import flash.sampler.getInvocationCount;
-
 import mx.core.mx_internal;
-import spark.effects.supportClasses.AnimateInstance;
-import spark.effects.easing.IEaser;
-import spark.effects.interpolation.IInterpolator;
-import spark.effects.interpolation.NumberInterpolator;
-import spark.effects.easing.Sine;
-import spark.events.AnimationEvent;
 import mx.effects.Effect;
 import mx.effects.IEffectInstance;
-import mx.events.EffectEvent;
+
 import spark.effects.animation.Animation;
-
-import mx.styles.IStyleClient;
-
-import spark.effects.MotionPath;
+import spark.effects.easing.IEaser;
+import spark.effects.easing.Sine;
+import spark.effects.interpolation.IInterpolator;
+import spark.effects.supportClasses.AnimateInstance;
+import spark.events.AnimationEvent;

 use namespace mx_internal;

@@ -261,6 +254,21 @@
      *  @productversion Flex 4
      */
     public var adjustConstraints:Boolean = false;
+
+    /**
+     * This property indicates whether the effect should disable constraints on its
+     * targets while the effect is running. If set to true, the effect
+     * will disable any constraints that are set for the duration of the effect
+     * and then re-enable those same constraints when the effect finishes.
+     *
+     * @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var disableConstraints:Boolean = false;

     /**
      * This property indicates whether the effect should disable layout on its
@@ -340,8 +348,8 @@
             animateInstance.repeatCount = repeatCount;

         animateInstance.repeatBehavior = repeatBehavior;
-        animateInstance.adjustConstraints = adjustConstraints;
         animateInstance.disableLayout = disableLayout;
+        animateInstance.disableConstraints = disableConstraints;

         if (animationProperties)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3925
Author:   jimurphy@adobe.com
Date:     2008-10-28T15:28:25.006190Z

Log Message:
-----------
Merged gumbo_alpha revisions 3857-3860,3870,3872,3874-3876,3881,3884,3886,3889,3891,3893,3895,3908,3912 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxRotateEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxFadeEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/CubicBezierSegment.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/skins/spark/FxFocusSkin.as" copyfrom-rev="3895" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxFocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxVSliderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/LineSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</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/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxListExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxMoveEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.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/libs/textLayout_conversion.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxAnimateColorEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/textLayout_core.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxAnimateEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxCheckBoxExample.mxml</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml" copyfrom-rev="3895" action="A">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flash/css/StyleDeclaration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/GroupExample.mxml" copyfrom-rev="3895" action="A">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/GroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/QuadraticBezierSegment.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/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxNumericStepperExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/effects/examples/FxResizeEffectExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<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/asdoc/en_US/mx/components/examples/FxButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxResize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxSpinnerExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/PropertyValuesHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/libs/textLayout_edit.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/TextViewExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxHSliderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Path.as
+++ frameworks/projects/spark/src/spark/primitives/Path.as
@@ -482,8 +482,77 @@
         measuredX = bounds.left;
         measuredY = bounds.top;
     }
+
+    /**
+     *  @private
+     *  @return Returns the axis aligned bounding box of the path resized to width, height and then
+     *  transformed with transformation matrix m.
+     */
+    private function getBoundingBox(width:Number, height:Number, m:Matrix):Rectangle
+    {
+        var sx:Number = measuredWidth == 0 ? 1 : width / measuredWidth;
+        var sy:Number = measuredHeight == 0 ? 1 : height / measuredHeight;
+
+        var currentSubPathStartIndex:int = 0;
+        var prevSegment:PathSegment;
+        var pathBBox:Rectangle;
+
+        for (var i:int = 0; i < segments.length; i++)
+        {
+            var segment:PathSegment = segments[i];
+
+            if (segment is CloseSegment)
+            {
+                if (segments[currentSubPathStartIndex] is MoveSegment)
+                    segment = new LineSegment(segments[currentSubPathStartIndex].x, segments[currentSubPathStartIndex].y);
+                else
+                    segment = new LineSegment();
+
+                currentSubPathStartIndex = i+1;
+            }
+
+            pathBBox = segment.getBoundingBox(prevSegment, sx, sy, m, pathBBox);
+            prevSegment = segment;
+        }
+        // If path is empty, it's untransformed bounding box is (0,0), so we return transformed point (0,0)
+        if (!pathBBox)
+            pathBBox = new Rectangle(m.tx, m.ty);
+        return pathBBox;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    override protected function transformSizeForLayout(width:Number, height:Number,
+                                                       actualMatrix:Boolean):Point
+    {
+        var size:Point = new Point(width, height);
+        var m:Matrix = computeMatrix(actualMatrix);
+        if (m)
+        {
+            var bbox:Rectangle = getBoundingBox(width, height, m);
+            size.x = bbox.width;
+            size.y = bbox.height;
+        }
+
+        // Take stroke into account
+        var strokeExtents:Point = getStrokeExtents();
+        size.x += strokeExtents.x;
+        size.y += strokeExtents.y;
+        return size;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    override protected function computeTopLeft(topLeft:Point, width:Number, height:Number, m:Matrix):Point
+    {
+        var bbox:Rectangle = getBoundingBox(width, height, m);
+        topLeft.x = bbox.x;
+        topLeft.y = bbox.y;
+        return topLeft;
+    }

-
     //TODO: these are a short term fix for MAX to work around the fact
     //that graphic elements can't differentiate between owning a display object
     //and sharing one.  The problem is, a previous graphic element might be


Removed constraint on delete key functionality by mode

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -547,6 +547,11 @@
 					checkRemoveControls();
 					break;
 			}
+
+			if (ControlSet.DELETE_KEY.pressed() && !currentWire && !currentModule) {
+				destroyModules();
+				destroyWires();
+			}
 		}

 		protected function checkConnectControls():void {
@@ -563,15 +568,9 @@
 			}

-			if (currentWire) {
-				if (ControlSet.CANCEL_KEY.justPressed()) {
-					currentWire.exists = false;
-					currentWire = null;
-				}
-
-			} else {
-				if (ControlSet.DELETE_KEY.justPressed())
-					destroyWires();
+			if (currentWire && ControlSet.CANCEL_KEY.justPressed()) {
+				currentWire.exists = false;
+				currentWire = null;
 			}
 		}

@@ -595,9 +594,6 @@
 					else
 						pickUpModule();
 				}
-
-				if (ControlSet.DELETE_KEY.justPressed())
-					destroyModules();
 			}
 		}

@@ -663,7 +659,7 @@
 		}

 		protected function checkRemoveControls():void {
-			if (FlxG.mouse.pressed() || ControlSet.DELETE_KEY.pressed()) {
+			if (FlxG.mouse.pressed()) {
 				destroyModules();
 				destroyWires();
 			}


Correct minor bug with spawning system

Correct minor bug with spawning system

--- bin/Data/Scripts/Spawn.as
+++ bin/Data/Scripts/Spawn.as
@@ -18,13 +18,14 @@
 		{
 			Node@ newNode = parent.CreateChild(SpawnName);
 			log.Debug("Create new node");
+			XMLFile@ xmlFile = cache.GetResource("XMLFile", SpawnItem);
+			newNode.LoadXML(xmlFile.root);
+
 			newNode.position = node.position;
 			newNode.scale = node.scale;
 			newNode.rotation = node.rotation;
 			log.Debug("loc=" + newNode.position.ToString() + ", rot=" + newNode.rotation.ToString() + ", scale=" + newNode.scale.ToString());
 			log.Debug("loc=" + node.position.ToString() + ", rot=" + node.rotation.ToString() + ", scale=" + node.scale.ToString());
-			XMLFile@ xmlFile = cache.GetResource("XMLFile", SpawnItem);
-			newNode.LoadXML(xmlFile.root);

 			node.Remove();
 			log.Debug("Remove self");


Show published file ID

Show published file ID

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -177,6 +177,9 @@
 				case SteamConstants.RESPONSE_OnAchievementStored:
 					log("RESPONSE_OnAchievementStored: "+e.response);
 					break;
+				case SteamConstants.RESPONSE_OnPublishWorkshopFile:
+					log("RESPONSE_OnPublishWorkshopFile: " + e.response);
+					log("File published as " + Steamworks.publishWorkshopFileResult());
 				default:
 					log("STEAMresponse type:"+e.req_type+" response:"+e.response);
 			}


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

--- frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2006-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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 12928
Author:   jszeto@adobe.com
Date:     2009-12-14T23:38:21.443908Z

Log Message:
-----------
Remove old "FIXME" comments

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

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

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

--- frameworks/projects/spark/src/spark/components/VSlider.as
+++ frameworks/projects/spark/src/spark/components/VSlider.as
@@ -150,7 +150,6 @@

     /**
      *  @private
-     *  FIXME (jszeto): Update this to also use the ILayoutElement API SDK-22045
      */
     override protected function updateDataTip(dataTipInstance:IDataRenderer, initialPosition:Point):void
     {
@@ -168,12 +167,12 @@
             // Get the tips bounds. We only care about the dimensions.
             var tipBounds:Rectangle = tipAsDisplayObject.getBounds(tipAsDisplayObject.parent);

-            // Make sure the tip doesn't exceed the bounds of the screen
-            r.x = Math.floor( Math.max(screenBounds.left,
-                                Math.min(screenBounds.right - tipBounds.width, r.x)));
-            r.y = Math.floor( Math.max(screenBounds.top,
-                                Math.min(screenBounds.bottom - tipBounds.height, r.y)));
-
+                // Make sure the tip doesn't exceed the bounds of the screen
+                r.x = Math.floor( Math.max(screenBounds.left,
+                                    Math.min(screenBounds.right - tipBounds.width, r.x)));
+                r.y = Math.floor( Math.max(screenBounds.top,
+                                    Math.min(screenBounds.bottom - tipBounds.height, r.y)));
+
             r = tipAsDisplayObject.parent.globalToLocal(r);
             tipAsDisplayObject.x = r.x;
             tipAsDisplayObject.y = r.y;


Transferred from the Adobe Open Source Subversion Repository

Revision: 6591
Author:   egeorgie@adobe.com
Date:     2009-05-04T18:28:39.172034Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-20869 List throws RTE when you tab away from it

Fix: add checks for null target in the layouts.

QE Notes: None
Doc Notes: None
Bugs: SDK-20869
Reviewer: Deepa
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.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/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1409,6 +1409,8 @@
      */
     override public function getDestinationIndex(navigationUnit:uint, currentIndex:int):int
     {
+        if (!target)
+            return -1;
         // Make sure currentIndex is within range
         var maxIndex:int = target.numElements - 1;
         currentIndex = Math.max(0, Math.min(maxIndex, currentIndex));


fixed "invoke" method so that proxied methods are invoked correctly

--- src/as3reflect/MethodInvoker.as
+++ src/as3reflect/MethodInvoker.as
@@ -20,6 +20,9 @@
  * THE SOFTWARE.
  */
 package as3reflect {
+
+	import flash.utils.Proxy;
+	import flash.utils.flash_proxy;

 	/**
 	 * A MethodInvoker is a representation of a method call or invocation. Use this to dynamically invoke methods
@@ -94,12 +97,21 @@
 		 * Executes this MethodInvoker.
 		 */
 		public function invoke():* {
-			var type:Type = (target is Class) ? Type.forClass(target) : Type.forInstance(target) ;
-			var method:Method = type.getMethod(this.method);
-
-			if (method) {
-				return method.invoke(target, this.arguments);
+			var result:*;
+			var f:Function = target[method];
+
+			if (f != null) {
+				result = f.apply(target, this.arguments);
 			}
+			else {
+				// we don't have a valid function, this might be a proxied method call
+				if (target is Proxy) {
+					var args:Array = [method].concat(this.arguments);
+					result = Proxy(target).flash_proxy::callProperty.apply(target, args);
+				}
+			}
+
+			return result;
 		}
 	}
 }


modified for use in iOS simulator (no longer supported in simulator)

--- actionscript/src/com/freshplanet/ane/AirKeyboardSize/MeasureKeyboard.as
+++ actionscript/src/com/freshplanet/ane/AirKeyboardSize/MeasureKeyboard.as
@@ -41,7 +41,7 @@
 		private var extContext:ExtensionContext = null;

 		public static function get isSupported():Boolean {
-			return Capabilities.manufacturer.indexOf("iOS") > -1 || Capabilities.manufacturer.indexOf("Android") > -1;
+			return (Capabilities.manufacturer.indexOf("iOS") > -1 && Capabilities.os.indexOf("x86_64") < 0 && Capabilities.os.indexOf("i386") < 0) || Capabilities.manufacturer.indexOf("Android") > -1;
 		}

 		public static function get instance():MeasureKeyboard {


update comment

update comment

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@250 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/client/EZGameConfigurator.as
+++ src/as/com/threerings/ezgame/client/EZGameConfigurator.as
@@ -41,8 +41,7 @@
 public class EZGameConfigurator extends FlexGameConfigurator
 {
     /**
-     * Set a String of configData, which is hopefully XML formatted with
-     * some game configuration options.
+     * Set XML game configuration options.
      */
     public function setXMLConfig (config :XML) :void
     {


Add MIPS C compiler flags and target to Makefile

--- Makefile.as
+++ Makefile.as
@@ -12,11 +12,13 @@
 ##################### Compiler Options #######################
 CROSS = mips64-elf-
 AS = $(CROSS)as
+CC = $(CROSS)gcc
 LD = $(CROSS)ld
 OBJDUMP = $(CROSS)objdump
 OBJCOPY = $(CROSS)objcopy

 ASFLAGS = -mtune=vr4300 -march=vr4300
+CFLAGS  = -Wall -O2 -mtune=vr4300 -march=vr4300 -G 0 -c
 LDFLAGS = -T $(LD_SCRIPT) -Map $(BUILD_DIR)/sm64.map

 ####################### Other Tools #########################
@@ -53,6 +55,9 @@
 $(BUILD_DIR)/$(TARGET).o: gen/$(TARGET).s Makefile.as $(MAKEFILE_GEN) $(MIO0_FILES) $(LEVEL_FILES) | $(BUILD_DIR)
 	$(AS) $(ASFLAGS) -o $@ $<

+$(BUILD_DIR)/%.o: gen/%.c Makefile.as | $(BUILD_DIR)
+	$(CC) $(CFLAGS) -o $@ $<
+
 $(BUILD_DIR)/$(TARGET).elf: $(BUILD_DIR)/$(TARGET).o $(LD_SCRIPT)
 	$(LD) $(LDFLAGS) -o $@ $< $(LIBS)


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

--- frameworks/projects/framework/src/mx/managers/IHistoryManager.as
+++ frameworks/projects/framework/src/mx/managers/IHistoryManager.as
@@ -0,0 +1,38 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import mx.managers.IHistoryManagerClient;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public interface IHistoryManager
+{
+	function register(obj:IHistoryManagerClient):void;
+	function unregister(obj:IHistoryManagerClient):void;
+	function save():void;
+	[Deprecated(since="3.0.0")]
+	function registered():void;
+	[Deprecated(since="3.0.0")]
+	function registerHandshake():void;
+	[Deprecated(since="3.0.0")]
+	function load(stateVars:Object):void;
+	[Deprecated(since="3.0.0")]
+	function loadInitialState():void;
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/skins/halo/NumericStepperUpSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/NumericStepperUpSkin.as
@@ -20,6 +20,11 @@

 /**
  *  The skin for all the states of the up button in a NumericStepper.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class NumericStepperUpSkin extends Border
 {
@@ -80,6 +85,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function NumericStepperUpSkin()
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 3789
Author:   gosmith@adobe.com
Date:     2008-10-21T19:55:26.771480Z

Log Message:
-----------
Integrated Build 192 of what used to be called TCAL (and, before that, Vellum).

The Text Component ActionScript Library (TCAL) has been renamed to the Text Layout Framework. Its classes are now in the package flashx.textLayout rather than in flashx.tcal, and they are packaged into SWCs named textLayout_xxx.swc rather than tcal_xxx.swc. The XML namespace for importable markup is now "http://ns.adobe.com/textLayout/2008" rather than "http://ns.adobe.com/tcal/2008".

QE Notes: Please update package names (and XML namespaces, if necessary) in all test files.
Doc Notes: Please eliminate all references to "Text Component ActionScript Library" or "TCAL" and use "Text Layout Framework" instead.
Bugs: -
Reviewer: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/TextOperationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/TextUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_conversion.swc</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_edit.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_conversion.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_edit.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/libs/textLayout_core.swc</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/libs/tcal_core.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/fxg-manifest.xml</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/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/events/TextOperationEvent.as
+++ frameworks/projects/spark/src/spark/events/TextOperationEvent.as
@@ -14,7 +14,7 @@

 import flash.events.Event;

-import flashx.tcal.operations.FlowOperation;
+import flashx.textLayout.operations.FlowOperation;

 /**
  *  Represents events that are dispatched when text content


Transferred from the Adobe Open Source Subversion Repository

Revision: 12625
Author:   mhorn@adobe.com
Date:     2009-12-07T21:50:25.279856Z

Log Message:
-----------
asdoc updates for l10n; add examples

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
+++ frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as
@@ -37,6 +37,8 @@
  *
  *  @see flash.filters.ColorMatrixFilter
  *
+ *  @includeExample examples/ColorMatrixFilterExample.mxml
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


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

--- frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
+++ frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Added 'clearOneSignalNotifications' API (ref #28)

--- actionscript/src/com/marpies/ane/onesignal/OneSignal.as
+++ actionscript/src/com/marpies/ane/onesignal/OneSignal.as
@@ -112,6 +112,16 @@
             validateExtensionContext();

             mContext.call( "register" );
+        }
+
+        /**
+         * Removes all OneSignal notifications from the Notification Shade.
+         */
+        public static function clearOneSignalNotifications():void {
+            if( !isSupported ) return;
+            validateExtensionContext();
+
+            mContext.call( "clearNotifications" );
         }

         /**


Added clearing house call to find component managers

--- protogeni/demo/shared/Geni.as
+++ protogeni/demo/shared/Geni.as
@@ -1,44 +1,47 @@
-/* GENIPUBLIC-COPYRIGHT
- * Copyright (c) 2008, 2009 University of Utah and the Flux Group.
- * All rights reserved.
- *
- * Permission to use, copy, modify and distribute this software is hereby
- * granted provided that (1) source code retains these copyright, permission,
- * and disclaimer notices, and (2) redistributions including binaries
- * reproduce the notices in supporting documentation.
- *
- * THE UNIVERSITY OF UTAH ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION.  THE UNIVERSITY OF UTAH DISCLAIMS ANY LIABILITY OF ANY KIND
- * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- */
-
-package
-{
-  public class Geni
-  {
-    private static var sa : String = "sa";
-    private static var cm : String = "cm";
-    private static var ses : String = "ses";
-
-    public static var sesUrl : String = "https://myboss.emulab.geni.emulab.net/protogeni/xmlrpc/";
-//"https://boss.emulab.net:443/protogeni/xmlrpc/";
-
-    public static var getCredential : Array = new Array(sa, "GetCredential");
-    public static var getKeys : Array = new Array(sa, "GetKeys");
-    public static var resolve : Array = new Array(sa, "Resolve");
-    public static var remove : Array = new Array(sa, "Remove");
-    public static var register : Array = new Array(sa, "Register");
-
-    public static var discoverResources : Array = new Array(cm, "DiscoverResources");
-    public static var getTicket : Array = new Array(cm, "GetTicket");
-    public static var updateTicket : Array = new Array(cm, "UpdateTicket");
-    public static var redeemTicket : Array = new Array(cm, "RedeemTicket");
-    public static var releaseTicket : Array = new Array(cm, "ReleaseTicket");
-    public static var deleteSliver : Array = new Array(cm, "DeleteSliver");
-    public static var startSliver : Array = new Array(cm, "StartSliver");
-    public static var updateSliver : Array = new Array(cm, "UpdateSliver");
-    public static var resolveNode : Array = new Array(cm, "Resolve");
-
-    public static var map : Array = new Array(ses, "Map");
-  }
-}
+/* GENIPUBLIC-COPYRIGHT
+ * Copyright (c) 2008, 2009 University of Utah and the Flux Group.
+ * All rights reserved.
+ *
+ * Permission to use, copy, modify and distribute this software is hereby
+ * granted provided that (1) source code retains these copyright, permission,
+ * and disclaimer notices, and (2) redistributions including binaries
+ * reproduce the notices in supporting documentation.
+ *
+ * THE UNIVERSITY OF UTAH ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION.  THE UNIVERSITY OF UTAH DISCLAIMS ANY LIABILITY OF ANY KIND
+ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ */
+
+package
+{
+  public class Geni
+  {
+    private static var sa : String = "sa";
+    private static var cm : String = "cm";
+    private static var ses : String = "ses";
+    private static var ch : String = "ch";
+
+    public static var sesUrl : String = "https://myboss.emulab.geni.emulab.net/protogeni/xmlrpc/";
+//"https://boss.emulab.net:443/protogeni/xmlrpc/";
+
+    public static var getCredential : Array = new Array(sa, "GetCredential");
+    public static var getKeys : Array = new Array(sa, "GetKeys");
+    public static var resolve : Array = new Array(sa, "Resolve");
+    public static var remove : Array = new Array(sa, "Remove");
+    public static var register : Array = new Array(sa, "Register");
+
+    public static var discoverResources : Array = new Array(cm, "DiscoverResources");
+    public static var getTicket : Array = new Array(cm, "GetTicket");
+    public static var updateTicket : Array = new Array(cm, "UpdateTicket");
+    public static var redeemTicket : Array = new Array(cm, "RedeemTicket");
+    public static var releaseTicket : Array = new Array(cm, "ReleaseTicket");
+    public static var deleteSliver : Array = new Array(cm, "DeleteSliver");
+    public static var startSliver : Array = new Array(cm, "StartSliver");
+    public static var updateSliver : Array = new Array(cm, "UpdateSliver");
+    public static var resolveNode : Array = new Array(cm, "Resolve");
+
+    public static var map : Array = new Array(ses, "Map");
+
+    public static var listComponents : Array = new Array(ch, "ListComponents");
+  }
+}