Correcting typo.

Correcting typo.

--- frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -953,7 +953,7 @@
             return true;
         }

-        // this happens if the renderer is removed asynchronously ususally with FDS
+        // this happens if the renderer is removed asynchronously usually with FDS
         if (!itemEditorInstance)
             return false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/RotateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/RotateInstance.as
@@ -43,6 +43,11 @@
  * you do not create one yourself.
  *
  * @see mx.effects.Rotate
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxRotateInstance extends FxAnimateInstance
 {
@@ -58,6 +63,11 @@
      * Constructor.
      *
      * @param target The Object to animate with this effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxRotateInstance(target:Object)
     {
@@ -124,6 +134,11 @@
      * The starting angle of rotation of the target object,
      * expressed in degrees.
      * Valid values range from 0 to 360.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var angleFrom:Number;

@@ -144,6 +159,11 @@
      * Otherwise, it rotates in clockwise direction.
      * If you want the target to rotate multiple times,
      * set this value to a large positive or small negative number.</p>
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var angleTo:Number;

@@ -156,6 +176,11 @@
     /**
      * Degrees by which to rotate the target object. Value
      * may be negative.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var angleBy:Number;

@@ -167,6 +192,11 @@
      * The x-position of the center point of rotation.
      * The target rotates around this point.
      * The valid values are between 0 and the width of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var originX:Number;

@@ -178,6 +208,11 @@
      * The y-position of the center point of rotation.
      * The target rotates around this point.
      * The valid values are between 0 and the height of the target.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var originY:Number;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11811
Author:   dsubrama@adobe.com
Date:     2009-11-14T20:14:54.284449Z

Log Message:
-----------
Fixes for FXG 2.0.

SDK-23790 - We now set the blendMode correctly when switching from an AIM blendMode to a native Flash one.

SDK-24039 - We hoisted the AIM blendMode support up to UIComponent as per Catalyst's request.

SDK-23715 - Positioning of radial gradient strokes is now correct.

As part of this change, the spark.primitives.supportClasses.shaders packaged move into the framework swc/project, specifically mx.graphics.shaderClasses.

QE notes: Regression and re-gening of so many bitmaps.
Doc notes: None
Bugs: SDK-23790, SDK-24039, SDK-23715
Reviewer: Jason/Evtim/Pete
Tests run: Checkintests - known failures with bitmaps
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/HueShader.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ExclusionShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/HueShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/supportClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLightShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SaturationShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SoftLightShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ks5792.jpg</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorBurnShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SaturationShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbj</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorDodgeShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityMaskShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ExclusionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbj</path>

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

--- frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as
+++ frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.graphics.shaderClasses
+{
+import flash.display.Shader;
+
+/**
+ *  The ColorBurnShader class creates a blend shader that is equivalent to
+ *  the 'Color Burn' blend mode for RGB premultiplied colors available
+ *  in Adobe Creative Suite tools. This blend mode is not native to Flash,
+ *  but is available in tools like Adobe Illustrator and Adobe Photoshop.
+ *
+ *  The 'colorburn' blend mode can be set on Flex groups and graphic
+ *  elements and the visual appearance in tools like Adobe Illustrator and
+ *  Adobe Photoshop will be mimicked through this blend shader.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ *
+ *  @includeExample examples/ColorBurnShaderExample.mxml
+ */
+public class ColorBurnShader extends flash.display.Shader
+{
+    [Embed(source="ColorBurn.pbj", mimeType="application/octet-stream")]
+    private static var ShaderClass:Class;
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
+	 */
+    public function ColorBurnShader()
+    {
+        super(new ShaderClass());
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20896
Author:   chiedozi@adobe.com
Date:     2011-03-17T07:26:58.123987Z

Log Message:
-----------
Merging hero_private revision 20889 into trunk for Ryan

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as
@@ -1632,7 +1632,7 @@
         if (oldDisplayObject)
         {
             // If the element created the display object
-            if (iconDisplay.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT &&
+            if (decoratorDisplay.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT &&
                 oldDisplayObject.parent == this)
             {
                 removeChild(oldDisplayObject);


Transferred from the Adobe Open Source Subversion Repository

Revision: 18641
Author:   chiedozi@adobe.com
Date:     2010-11-17T01:26:13.734827Z

Log Message:
-----------
Updated MobileApplication api names.

MobileApplicationBase
backKeyHandler renamed to backKeyUpHandler
menuKeyHandler renamed to menuKeyUpHandler
sessionCachingEnabled renamed to persistNavigatorState
persistApplicationState() renamed to saveNavigatorState
restoreApplicationSate() renamed to loadNavigatorState
registerPersistenceClassAliases removed
nativeApplication_invokeHandler() renamed to invokeHandler()
nativeApplication_deactivateHandler() renamed to deactivateHandler()

PersistenceManager
flush() renamed to save() and return success boolean
initialize() renamed to load() and return success boolean
The applicationVersion shared object property was renamed to versionNumber.

View
deserializePersistedData() renamed to deserializeData()

ViewNavigatorBase
restoreViewData() renamed loadViewData()

Events
APPLICATION_PERSIST and APPLICATION_RESTORE removed from the framework
APPLICATION_PERSISTING renamed to NAVIGATOR_STATE_SAVING
APPLICATION_RESTORING renamed to NAVIGATOR_STATE_LOADING

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/managers/PersistenceManager.as
+++ frameworks/projects/mobilecomponents/src/spark/managers/PersistenceManager.as
@@ -9,7 +9,6 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-// TODO (chiedozi): Should this be a singleton
 package spark.core.managers
 {
 import flash.net.SharedObject;
@@ -36,6 +35,14 @@
 {
     //--------------------------------------------------------------------------
     //
+    //  Constants
+    //
+    //--------------------------------------------------------------------------
+
+    private static const SHARED_OBJECT_NAME:String = "FXAppCache";
+
+    //--------------------------------------------------------------------------
+    //
     //  Constructor
     //
     //--------------------------------------------------------------------------
@@ -61,19 +68,7 @@

     /**
      *  @private
-     */
-    private var enabled:Boolean = false;
-
-    /**
-     *  @private
      *  Returns whether the persistence manager has been initialized.
-     *
-     *  @default false
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
      */
     private var initialized:Boolean = false;

@@ -88,31 +83,33 @@
     //  IPersistenceManager Methods
     //
     //--------------------------------------------------------------------------
-    /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public function initialize():void
-    {
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function load():Boolean
+    {
+        if (initialized)
+            return true;
+
         try
         {
-            so = SharedObject.getLocal("FXAppCache");
-            initialized = (so != null);
-			enabled = (so != null);
+            so = SharedObject.getLocal(SHARED_OBJECT_NAME);
+            initialized = true;
         }
         catch (e:Error)
         {
-            // TODO (chiedozi): Dispatch an error event for this.  Maybe a persistence_CREATE_FAIL
-            enabled = false;
-            initialized = false;
-        }
-    }
-
-    // TODO (chiedozi): Add a try/catch for all operations for custom RTE i throw
+            // Fail silently
+        }
+
+        return initialized;
+    }
+
     /**
      *  @inheritDoc
      *
@@ -123,15 +120,13 @@
      */
     public function setProperty(key:String, value:Object):void
     {
+        // If the persistence manager hasn't been initialized, do so now
         if (!initialized)
-            initialize();
-
-        // TODO (chiedozi): Don't call flush now
-        if (enabled)
-        {
+            load();
+
+        // Make sure the shared object is valid since initialization fails silently
+        if (so != null)
             so.data[key] = value;
-            so.flush();
-        }
     }

     /**
@@ -144,10 +139,12 @@
      */
     public function getProperty(key:String):Object
     {
+        // If the persistence manager hasn't been initialized, do so now
         if (!initialized)
-            initialize();
-
-        if (enabled)
+            load();
+
+        // Make sure the shared object is valid since initialization fails silently
+        if (so != null)
             return so.data[key];

         return null;
@@ -163,28 +160,41 @@
      */
     public function clear():void
     {
+        // If the persistence manager hasn't been initialized, do so now
         if (!initialized)
-            initialize();
-
-		if (enabled)
-		{
+            load();
+
+        // Make sure the shared object is valid since initialization fails silently
+        if (so != null)
             so.clear();
-            so.flush();
-		}
-    }
-
-    /**
-     *  @inheritDoc
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public function flush():void
-    {
-		if (enabled)
-        	so.flush();
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function save():Boolean
+    {
+        try
+        {
+            // We assume the flush suceeded
+            /*var flushStatus:String = */so.flush();
+
+            // FIXME (chiedozi): Flush can still fail.  Should validate use case below
+//            if (flushStatus == SharedObjectFlushStatus.PENDING)
+//                so.addEventListener(NetStatusEvent.NET_STATUS, sharedObject_netStatusHandler);
+        }
+        catch (e:Error)
+        {
+            // Fail silently
+            return false;
+        }
+
+        return true;
     }
 }
 }


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

--- actionscript/src/com/freshplanet/ane/AirNativeShare/AirNativeShare.as
+++ actionscript/src/com/freshplanet/ane/AirNativeShare/AirNativeShare.as
@@ -153,7 +153,7 @@
 		}

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


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

--- frameworks/projects/framework/src/mx/resources/IResourceBundle.as
+++ frameworks/projects/framework/src/mx/resources/IResourceBundle.as
@@ -0,0 +1,228 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.resources
+{
+
+/**
+ *  The IResourceBundle and IResourceManager interfaces work together
+ *  to provide localization support for Flex applications.
+ *
+ *
There are three main concepts involved in localization:
+ *  locales, resources, and resource bundles.

+ *
+ *
A locale specifies a language and a country
+ *  for which your application has been localized.
+ *  For example, the locale "en_US"
+ *  specifies English as spoken in the United States.
+ *  (See the mx.resources.Locale class for more information.)

+ *
+ *
A resource is a named value that is locale-dependent.
+ *  For example, your application might have a resource
+ *  whose name is "OPEN"
+ *  and whose value for an English locale is "Open"
+ *  but whose value for a French locale is "Ouvrir".

+ *
+ *
A resource bundle is a named group of resources
+ *  whose values have been localized for a particular locale.
+ *  A resource bundle is identified by the combination of its
+ *  bundleName and its locale,
+ *  and has a content Object that contains
+ *  the name-value pairs for the bundle's resources.

+ *
+ *
The IResourceBundle interface represents a specific resource bundle.
+ *  However, most applications will only need to use IResourceManager.
+ *  A single ResourceManager object implementing this interface
+ *  manages multiple resource bundles, possibly for multiple locales,
+ *  and provides access to the resources that they contain.
+ *  For example, you can retrieve a specific resource as a String by calling
+ *  resourceManager.getString(bundleName, resourceName).
+ *  By changing the localeChain property of the ResourceManager,
+ *  you can change which resource bundles are searched for resource values.

+ *
+ *
Generally, you do not create resource bundles yourself;
+ *  instead, they are usually compiled from ~~.properties files.
+ *  A properties file named MyResources.properties
+ *  produces a resource bundle with "MyResources"
+ *  for its bundleName.
+ *  You generally produce multiple versions of each properties file,
+ *  one for each locale that your application supports.

+ *
+ *
Flex properties files are similar to Java properties files,
+ *  except that they also support MXML's Embed()
+ *  and ClassReference() directives.
+ *  These directives work the same way in a properties file
+ *  as they do in a CSS file, producing class references.
+ *  Also, the encoding for Flex properties files
+ *  is always assumed to be UTF-8.

+ *
+ *
The Flex framework's resources have been localized
+ *  for U.S. English (the "en_US" locale) and
+ *  for Japanese (the "ja_JP" locale).
+ *  The framework resources are organized into multiple bundles
+ *  corresponding to framework packages; for example, the "formatters"
+ *  bundle is used by classes in the mx.formatters package.
+ *  (There is also a "SharedResources" bundle for resources used by
+ *  multiple packages.)

+ *
+ *
The properties files for the framework resources,
+ *  such as formatters.properties, can be found in the
+ *  frameworks/projects/framework/bundles/{locale}/src directories
+ *  of the Flex SDK.
+ *  Your applications normally link against the Flex framework
+ *  as a precompiled library, framework.swc,
+ *  in the frameworks/libs directory.
+ *  This library has no resources in it.
+ *  Instead, the framework resources have been compiled into separate
+ *  resource bundle libraries such as framework_rb.swc.
+ *  These are located in the frameworks/locales/{locale} directories
+ *  and your application must also link in one or more of these.

+ *
+ *
You are free to organize your application's own resources
+ *  into whatever bundles you find convenient.
+ *  If you localize your application for locales
+ *  other than "en_US" and "ja_JP",
+ *  you should localize the framework's properties files for those locales
+ *  as well and compile additional resource bundle libaries for them.

+ *
+ *
When your application starts, the ResourceManager is automatically
+ *  populated with whatever resource bundles were compiled
+ *  into the application.
+ *  If you create a code module, by default the resources that its classes
+ *  need are compiled into the module.
+ *  When the module is loaded into an application, any bundles that the
+ *  application does not already have are added to the ResourceManager.

+ *
+ *
You can compile "resource modules" that have only resources in them,
+ *  and load them with the loadResourceModule() method
+ *  of the ResourceManager.
+ *  With resource modules, you can support multiple locales by loading
+ *  the resources you need at run time rather than compiling them into
+ *  your application.

+ *
+ *
Although the ResourceManager is normally populated with resource bundles
+ *  that were compiled into your application or loaded from modules,
+ *  you can also programmatically create resource bundles and add them
+ *  to the ResourceManager yourself with the addResourceBundle()
+ *  method.

+ *
+ *  @see mx.resources.ResourceBundle
+ *  @see mx.resources.IResourceManager
+ *  @see mx.resources.ResourceManager
+ */
+public interface IResourceBundle
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  bundleName
+    //----------------------------------
+
+    /**
+     *  A name that identifies this resource bundle,
+     *  such as "MyResources".
+     *
+     *
This read-only property is set
+     *  when a resource bundle is constructed.

+     *
+     *
Resource bundles that are automatically created from compiled
+     *  properties files have bundle names based on the names of those files.
+     *  For example, a properties file named MyResources.properties
+     *  will produce a resource bundle whose bundleName
+     *  is "MyResources".

+     *
+     *
The ResourceManager can manage multiple bundles with the same
+     *  bundleName as long as they have different values
+     *  for their locale property.

+     */
+    function get bundleName():String;
+
+    //----------------------------------
+    //  content
+    //----------------------------------
+
+    /**
+     *  An object containing key-value pairs for the resources
+     *  in this resource bundle.
+     *
+     *
In general, you should access resources by using IResourceManager
+     *  methods such as getString(), rather than directly
+     *  accessing them in a resource bundle.
+     *  However, if you are programmatically creating your own
+     *  resource bundles, you can initialize them with resources,
+     *  as follows:

+     *
+     *

+     *  var rb:IResourceBundle = new ResourceBundle("fr_FR", "MyResources");
+     *  rb.content["LANGUAGE"] = "Francais";
+     *  rb.content["GREETING"] = "Bonjour";
+     *

+     *
+     *
When a resource bundle is produced by compiling a properties
+     *  file, its resource values are either of type String or Class.
+     *  For example, if the properties file contains

+     *
+     *

+     *  LANGUAGE=English
+     *  MINIMUM_AGE=18
+     *  ENABLED=true
+     *  LOGO=Embed("logo.png")
+     *

+     *
+     *
then the value of the LANGUAGE resource
+     *  is the String "English",
+     *  the value of the MINIMUM_AGE resource
+     *  is the String "18",
+     *  the value of the ENABLED resource
+     *  is the String "true",
+     *  and the value of the LOGO resource
+     *  is a Class that represents the embedded PNG file.

+     *
+     *
You can use IResourceManager methods such as getInt()
+     *  and getBoolean() to convert resource strings like
+     *  "18" and "true" into the type
+     *  that your code expects.

+     */
+    function get content():Object;
+
+    //----------------------------------
+    //  locale
+    //----------------------------------
+
+    /**
+     *  The locale for which this bundle's resources have been localized.
+     *  This is a String such as "en_US" for U.S. English.
+     *
+     *
This read-only property is set
+     *  when a resource bundle is constructed.

+     *
+     *
Resource bundles that are automatically created from compiled
+     *  properties files have locales based on the
+     *  -compiler.locale option of the mxmlc or compc compilers.
+     *  For example, suppose that you compile your application with the option
+     *  -compiler.locale=en_US,ja_JP and that you have specified
+     *  -compiler.source-path=resources/{locale} so that
+     *  your application's resources, located in
+     *  resources/en_US/MyResources.properties and
+     *  resources/ja_JP/MyResources.properties, are found.
+     *  Then your application will have two resource bundles
+     *  whose bundleName is "MyResources",
+     *  one whose locale is "en_US"
+     *  and one whose locale is "ja_JP".

+     */
+    function get locale():String;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 16545
Author:   chiedozi@adobe.com
Date:     2010-06-14T03:42:53.505665Z

Log Message:
-----------
Added MobileApplication, ViewNavigator, PersistenceManager and ViewTransition prototypes to mobile components swc.

mobilecomponents and mobiletheme eclipse projects now link to airglobal.swc instead of playerglobal.swc so that MobileApplication can respond to StageOrientation and NativeApplication events.

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/ViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/IViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorSection.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/View.as
+++ frameworks/projects/mobilecomponents/src/spark/components/View.as
@@ -0,0 +1,306 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.components
+{
+import mx.core.IDataRenderer;
+import mx.events.FlexEvent;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the current view has been activated.
+ *
+ *  @eventType mx.events.FlexEvent.ACTIVATE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="activate", type="mx.events.FlexEvent")]
+
+/**
+ *  Dispatched when the current view has been deactivated.
+ *
+ *  @eventType mx.events.FlexEvent.DEACTIVATE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="deactivate", type="mx.events.FlexEvent")]
+
+/**
+ *  Dispatched when the screen is about to be removed in response
+ *  to a screen change.  Calling preventDefault()
+ *  while handling this event will cancel the screen change.
+ *
+ *  @eventType mx.events.FlexEvent.REMOVING
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="removing", type="mx.events.FlexEvent")]
+
+
+/**
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class View extends Group implements IDataRenderer
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function View()
+    {
+        super();
+
+        // By default, a view should extend the entire bounds of its parent
+        percentWidth = 100;
+        percentHeight = 100;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  active
+    //----------------------------------
+
+    private var _active:Boolean = false;
+
+    /**
+     * Flag indicating whether the current screen is active.
+     */
+    public function get active() : Boolean
+    {
+        return _active;
+    }
+
+    /**
+     * @private
+     */
+    public function set active(value:Boolean) : void
+    {
+        if (_active != value)
+        {
+            _active = value;
+
+            var eventName:String = _active ? FlexEvent.ACTIVATE : FlexEvent.DEACTIVATE;
+            if (hasEventListener(eventName))
+                dispatchEvent(new FlexEvent(eventName));
+        }
+    }
+
+    //----------------------------------
+    //  canRemove
+    //----------------------------------
+
+    /**
+     *  Determines if the current view can be removed by
+     *  a navigator.  The default implementation dispatches
+     *  a FlexEvent.REMOVING event.  If
+     *  preventDefault() is called on the event, this property
+     *  will be set to false.
+     *
+     *  @return Returns true if the screen can be removed
+     */
+    public function get canRemove():Boolean
+    {
+        if (hasEventListener(FlexEvent.REMOVING))
+        {
+            var event:FlexEvent = new FlexEvent(FlexEvent.REMOVING, false, true);
+            return dispatchEvent(event);
+        }
+
+        return true;
+    }
+
+    //----------------------------------
+    //  desctructionPolicy
+    //----------------------------------
+
+    private var _destructionPolicy:String = "auto";
+
+    /**
+     *  Defines the destruction policy the view's navigator should use
+     *  when this view is removed. If set to "auto", the navigator will
+     *  destroy the view when it isn't active.  If set to "none", the
+     *  view will be cached in memory.
+     *
+     *  @default auto
+     */
+    public function get destructionPolicy():String
+    {
+        return _destructionPolicy;
+    }
+
+    /**
+     *  @private
+     */
+    public function set destructionPolicy(value:String):void
+    {
+        _destructionPolicy = value;
+    }
+
+    //----------------------------------
+    //  navigator
+    //----------------------------------
+
+    private var _navigator:ViewNavigator;
+
+    [Bindable]
+    /**
+     * The view's navigator.
+     */
+    public function get navigator():ViewNavigator
+    {
+        return _navigator;
+    }
+
+    public function set navigator(value:ViewNavigator):void
+    {
+        if (_navigator != value)
+            _navigator = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  UI Abstraction Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  title
+    //----------------------------------
+
+    private var _title:String;
+
+    [Bindable]
+    /**
+     *
+     */
+    public function get title():String
+    {
+        return _title;
+    }
+
+    /**
+     *  @private
+     */
+    public function set title(value:String):void
+    {
+        if (_title != value)
+            _title = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  IDataRenderer Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    private var _data:Object;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The data associated with the current view.
+     *
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        _data = value;
+
+        if (hasEventListener(FlexEvent.DATA_CHANGE))
+            dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *
+     *  @return A String specifying the name of the state to apply to the screen.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function getCurrentViewState(isLandscape:Boolean):String
+    {
+        if (!isLandscape && hasState("portrait"))
+            return "portrait";
+
+        if (isLandscape && hasState("landscape"))
+            return "landscape";
+
+        // If none of the above states are defined in the view will
+        // return the empty string.
+        return null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Persistence Methods
+    //
+    //--------------------------------------------------------------------------
+    public function getPersistenceData():Object
+    {
+        return data;
+    }
+
+    public function deserializePersistenceData(value:Object):Object
+    {
+        return value;
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12324
Author:   smgilson@adobe.com
Date:     2009-12-01T16:08:24.785393Z

Log Message:
-----------
ASDoc updates in preparation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/BorderContainer.as
+++ frameworks/projects/spark/src/spark/components/BorderContainer.as
@@ -171,6 +171,7 @@
  *
Default size	112 pixels by 112 pixels

  *
Minimum size	0 pixels

  *
Maximum size	No limit

+ *
Default skin class	spark.skins.spark.BorderContainerSkin

  *

  *
  *  @mxml


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

--- frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
+++ frameworks/projects/mx/src/mx/effects/effectClasses/ResizeInstance.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 13501
Author:   matamel@adobe.com
Date:     2010-01-14T14:01:23.617600Z

Log Message:
-----------
Bug: BLZ447 - AMF3 Deserialization: Wrongly counted reference ID of duplicated String when in the same message there are Strings with only wildcards
QA: Yes - please keep an eye on AMFX (HTTPChannel) tests.
Doc: No
Checkintests: Pass - except the usual 4-5 tests that time out on my machine.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as

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

--- frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as
@@ -88,6 +88,7 @@
         {
             var context:AMFXContext = new AMFXContext();
             context.log = Log.getLogger("mx.messaging.channels.amfx.AMFXDecoder");
+            XML.ignoreWhitespace = false;
             return decodePacket(xml, context);
         }
         else


Transferred from the Adobe Open Source Subversion Repository

Revision: 10006
Author:   gruehle@adobe.com
Date:     2009-09-03T22:04:47.081899Z

Log Message:
-----------
Initial checkin of the "More styles for Spark skins" feature. Details here:
http://opensource.adobe.com/wiki/display/flexsdk/More+Styles+for+Spark+Skins

There are some known issues:
* Panel bottom corners not rounded correctly when the panel has a control bar
* cornerRadius on Tab and DateChooser non functional
* cornerRadius values > 4 have drawing artifacts in the "down" state of Button and button-like components
* TextInput/TextArea incorrectly list lineBreak and verticalAlign as valid styles

This checkin also includes a couple minor unrelated bug fixes:
* Remove MiniDebugTarget. This is a logging target that used MiniDebug, which hasn't worked since Flex 1.5
* Fix RTEs when setting focusSkin to null
* Optimization: don't measure skins if the host component has explicit sizes

QE notes: Yes, many baseline images will need to be regenerated
Doc notes: New ASDoc comments should be scrubbed
Bugs: SDK-22931, SDK-22798, SDK-22217, SDK-19358
Reviewer: Jason
Tests run: checkintests, cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PopUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/targets/MiniDebugTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerDecrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/EditableComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SparkSkinForHalo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/TextInputBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerIncrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/halo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.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/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/BorderTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
@@ -16,7 +16,10 @@

 {

+import mx.core.UIComponent;
+
 import spark.components.Group;
+
 /**
  *  The Skin class defines the base class for all skins used by skinnable components.
  *  The SkinnableComponent class defines the base class for skinnable components.
@@ -80,6 +83,20 @@
 	 *  @productversion Flex 4
 	 */
 	public function get focusSkinExclusions():Array { return null;}
+
+    /**
+     *  @private
+     */
+    override protected function skipMeasure():Boolean
+    {
+        var uiOwner:UIComponent = owner as UIComponent;
+
+        // We can skip measure if our owning component has explicit sizes
+        if (uiOwner && !isNaN(uiOwner.explicitWidth) && !isNaN(uiOwner.explicitHeight))
+            return true;
+
+        return super.skipMeasure();
+    }
 }

 }


fixed asdoc error

fixed asdoc error

Change-Id: Idd467c0fb3e4a04e0b157947cd3791fe15ec89a8

--- WeaveData/src/weave/data/KeySets/SortedKeySet.as
+++ WeaveData/src/weave/data/KeySets/SortedKeySet.as
@@ -127,7 +127,7 @@
 		}

 		/**
-		 * Generates a function like function(keys:Array):Array that returns a sorted copy of an Array of keys.
+		 * Generates a function like function(keys:Array):Array that returns a sorted copy of an Array of keys.
 		 * Note that the resulting sort function depends on WeaveAPI.StatisticsManager, so the sort function should be called
 		 * again when statistics change for any of the columns you provide.
 		 * @param columns An Array of IAttributeColumns or Functions mapping IQualifiedKeys to Numbers.


updates to better support FlexBuilder 4 integration

git-svn-id: 9278a788294a4258aac04586390fc35fb4a5f335@6777 a9308255-753e-0410-a2e9-80b3fbc4fff6

--- FlexUnit4/src/org/flexunit/runner/notification/async/XMLListener.as
+++ FlexUnit4/src/org/flexunit/runner/notification/async/XMLListener.as
@@ -45,9 +45,9 @@
 	import flash.net.XMLSocket;

 	import mx.logging.ILogger;
+	import mx.logging.Log;

 	import org.flexunit.runner.Descriptor;
-	import org.flexunit.runner.FlexUnitCore;
 	import org.flexunit.runner.IDescription;
 	import org.flexunit.runner.Result;
 	import org.flexunit.runner.notification.Failure;
@@ -57,7 +57,7 @@
 	public class XMLListener extends EventDispatcher implements IAsyncStartupRunListener
 	{

-		private var logger:ILogger;
+		private var logger:ILogger = Log.getLogger( "XMLListener" );

 		private static const SUCCESS:String = "success";
@@ -72,10 +72,6 @@

 		private static const END_OF_TEST_RUN : String = "<endOfTestRun/>";

-		// yes, i know this is not the right solution
-		// but im making the socket public so i can attach a listener to it
-		// this can clearly be done better, but im tired, and this is what
-		// i have at the moment
 		private var socket:XMLSocket;
 		[Inspectable]
 		public var port : uint = 8765;
@@ -107,40 +103,50 @@
 		}

 		public function testRunStarted( description:IDescription ):void{
-
+			// XML Socket in flexbuilder is expecting a startTestRun node at the begining of the results.
+			// it seems to use this to reset hte current results, and prepopulate the total number of tests
+			// however, in flexunit4, we are unable to determine the total number of tests before hand, so
+			// we are sending through an empty startTestRun node, so the reset can still happen.
+			sendResults("<startTestRun totalTestCount='0'  projectName='' contextName='' />");
 		}

 		public function testRunFinished( result:Result ):void {
-			printHeader( result );
-			printResults(result);
+
+			// if we want to wait until all tests are finished before sending any results,
+			// in this method we should first call printHeader, then printResults, then printFooter
+			// however, as we are now sending through results as they happen, we use this method only to call printFooter
+			//printHeader( result );
+			//printResults(result);
 			printFooter( result );
 		}

 		public function testStarted( description:IDescription ):void {
-
+			// called before each test
 		}

 		public function testFinished( description:IDescription ):void {
-			//logger.info( description.displayName + " ." );
-			if(description.displayName != lastFailedTest.displayName){
+			// called after each test
+			if(!lastFailedTest || description.displayName != lastFailedTest.displayName){
 				var desc:Descriptor = getDescriptorFromDescription(description);
+				sendResults("<testCase name='"+desc.method+"' testSuite='"+desc.suite+"'  status='"+SUCCESS+"'/>");
 				msgQueue.push( "<testCase name='"+desc.method+"' testSuite='"+desc.suite+"'  status='"+SUCCESS+"'/>");
 			}
 		}

 		public function testAssumptionFailure( failure:Failure ):void {
-
+			// called on assumptionFail
 		}

 		public function testIgnored( description:IDescription ):void {
-
+			// called on ignored test
 			var desc:Descriptor = getDescriptorFromDescription(description);
+			sendResults("<testCase name='"+desc.method+"' testSuite='"+desc.suite+"'  status='"+IGNORE+"'/>");
 			msgQueue.push("<testCase name='"+desc.method+"' testSuite='"+desc.suite+"'  status='"+IGNORE+"'/>");
-			//logger.info( description.displayName + " I" );
 		}

 		public function testFailure( failure:Failure ):void {
+			// called on a test failure
 			lastFailedTest = failure.description;
 			var descriptor:Descriptor = getDescriptorFromDescription(failure.description);
 			var type : String = failure.description.displayName
@@ -155,7 +161,7 @@
 						"<stackTraceInfo>" + stackTrace+ "</stackTraceInfo>"+
 					 "</failure>"+
 				"</testCase>";
-
+			sendResults(xml);
 			msgQueue.push(xml);
 		}
 		/*
@@ -163,6 +169,7 @@
 		 */

 		private function getDescriptorFromDescription(description:IDescription ):Descriptor{
+			// reads relavent data from descriptor
 			var descriptor:Descriptor = new Descriptor();
 			var descriptionArray:Array = description.displayName.split("::");
 			descriptor.path = descriptionArray[0];
@@ -182,13 +189,15 @@
 		}

 		protected function printResults( result:Result ):void{
+			logger.info("printResults");
 			for(var i:int=0;i<msgQueue.length;i++){
 				sendResults(msgQueue[i]);
 			}
 		}

 		protected function printFooter( result:Result ):void {
-			logger.warn(END_OF_TEST_RUN);
+		//	logger.warn(END_OF_TEST_RUN);
+			sendResults(END_OF_TEST_RUN);
 		}

 		protected function sendResults(msg:String):void{
@@ -196,19 +205,17 @@
 				socket.send( msg );
 				trace(msg);
 			}
-			//
+
 		}

 		private function handleConnect(event:Event):void{
 			_ready = true;
 			dispatchEvent( new Event( AsyncListenerWatcher.LISTENER_READY ) );
-			//dispatchEvent( event );
+

 		}
 		private function errorHandler(event:Event):void{
 			dispatchEvent( new Event( AsyncListenerWatcher.LISTENER_FAILED ) );
-			//dispatchEvent( event ) ;
-			//throw new Error("unable to connect to flex builder to send results");
 		}


Initial working version with multiple CMs and pretty much everything that was part of the spec for GEC6

--- protogeni/demo/shared/com/mattism/http/xmlrpc/util/XMLRPCUtils.as
+++ protogeni/demo/shared/com/mattism/http/xmlrpc/util/XMLRPCUtils.as
@@ -1,37 +1,37 @@
-/**
-* @author	Matt Shaw <xmlrpc@mattism.com>
-* @url		http://sf.net/projects/xmlrpcflash
-* 			http://www.osflash.org/doku.php?id=xmlrpcflash
-*
-* @author   Daniel Mclaren (http://danielmclaren.net)
-* @note     Updated to Actionscript 3.0
-*/
-
-package com.mattism.http.xmlrpc.util
-{
-
-	public class XMLRPCUtils {
-
-		public static var SIMPLE_TYPES:Array = [ XMLRPCDataTypes.BASE64,
-											XMLRPCDataTypes.INT,
-											XMLRPCDataTypes.i4,
-											XMLRPCDataTypes.STRING,
-											XMLRPCDataTypes.CDATA,
-											XMLRPCDataTypes.DOUBLE,
-											XMLRPCDataTypes.DATETIME,
-											XMLRPCDataTypes.BOOLEAN
-										];
-
-		public static function isSimpleType( type:String ):Boolean {
-			var i:Number;
-			for ( i=0; i<SIMPLE_TYPES.length; i++ ){
-				if( type==SIMPLE_TYPES[i] ){
-					return true;
-				}
-			}
-
-			return false;
-		}
-
-	}
+/**
+* @author	Matt Shaw <xmlrpc@mattism.com>
+* @url		http://sf.net/projects/xmlrpcflash
+* 			http://www.osflash.org/doku.php?id=xmlrpcflash
+*
+* @author   Daniel Mclaren (http://danielmclaren.net)
+* @note     Updated to Actionscript 3.0
+*/
+
+package com.mattism.http.xmlrpc.util
+{
+
+	public class XMLRPCUtils {
+
+		public static var SIMPLE_TYPES:Array = [ XMLRPCDataTypes.BASE64,
+											XMLRPCDataTypes.INT,
+											XMLRPCDataTypes.i4,
+											XMLRPCDataTypes.STRING,
+											XMLRPCDataTypes.CDATA,
+											XMLRPCDataTypes.DOUBLE,
+											XMLRPCDataTypes.DATETIME,
+											XMLRPCDataTypes.BOOLEAN
+										];
+
+		public static function isSimpleType( type:String ):Boolean {
+			var i:Number;
+			for ( i=0; i<SIMPLE_TYPES.length; i++ ){
+				if( type==SIMPLE_TYPES[i] ){
+					return true;
+				}
+			}
+
+			return false;
+		}
+
+	}
 }


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

--- frameworks/projects/airframework/src/mx/controls/FileSystemTree.as
+++ frameworks/projects/airframework/src/mx/controls/FileSystemTree.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: 18347
Author:   cframpto@adobe.com
Date:     2010-10-28T16:52:11.855675Z

Log Message:
-----------
Bit more of TLF2 integration.  Enabled the TLF EditManager delayedUpdate flag which delays any screen updates when interactively editing until the next ENTER_FRAME event.  This should not make any difference to us since our damageHandler invalidates the display list which causes a screen update every time a character is typed.  If the RichEditableText component has a contentMenu the first time the TextContainerManager needs one it will be used (and cached so it can't be changed) rather than one created by the TCM. This is still not a complete solution for contextMenus.  Ideally the contentMenu on the TextArea/TextInput component could be customized and the clipboard menu used.

QE notes: create custom context menu on RET component and try to cut/copy/paste/selectAll if text is editable
Doc notes:
Bugs:
Reviewer:
Tests run: cyclone - worked with Bill
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -369,7 +369,7 @@
      *  and ends when it loses focus.

      *
      *
RichEditableText uses TLF's TextContainerManager class
-     *  to handle its text display, scrolling, selection, and editing.

+     *  to handle its text display, scrolling, selection, editing and context menu.

      *
      *
To use this component in a list-based component, such as a List or DataGrid,
      *  create an item renderer.


Transferred from the Adobe Open Source Subversion Repository

Revision: 17898
Author:   clucier@adobe.com
Date:     2010-09-28T18:42:23.767945Z

Log Message:
-----------
Effects with startDuration should now apply their end values when complete.
Added Window class to spark-manifest.

QE notes: None
Doc notes: None
Bugs: SDK-26189, SDK-27954
Reviewer: Jason, Darrell
Tests run: Full cyclone (Effects), Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/Animation.as
+++ frameworks/projects/spark/src/spark/effects/animation/Animation.as
@@ -936,6 +936,7 @@
         // TODO (chaase): call removal utility instead of this code
         // Make sure to remove any references on the delayed lists
         if (startDelay > 0 && delayedStartAnims.length > 0)
+        {
             for (var i:int = 0; i < delayedStartAnims.length; ++i)
             {
                 if (this == delayedStartAnims[i])
@@ -945,6 +946,7 @@
                     break;
                 }
             }
+        }

         // Note that we are potentially sending out this event to effects
         // whose Animation is not yet running (for example, if we're autoReversing
@@ -952,17 +954,14 @@
         // This could mean that the end value is not yet initialized, so
         // interpolators should be written to just send back the end value
         // instead of trying to calculate it for the end time.
-
-        else
-        {
-            if (!started)
-                sendAnimationEvent(EffectEvent.EFFECT_START);
-            if (repeatCount > 1 && repeatBehavior == "reverse" && (repeatCount % 2 == 0))
-                _invertValues = true;
-            calculateValue(duration);
-
-            sendUpdateEvent();
-        }
+        if (!started)
+            sendAnimationEvent(EffectEvent.EFFECT_START);
+        if (repeatCount > 1 && repeatBehavior == "reverse" && (repeatCount % 2 == 0))
+            _invertValues = true;
+        calculateValue(duration);
+
+        sendUpdateEvent();
+
         sendAnimationEvent(EffectEvent.EFFECT_END);

         // The rest of what we need to do is handled by stopAnimation()


Change 20081025-hqm-q by hqm@badtzmaru.home on 2008-10-25 23:48:41 EDT
    in /Users/hqm/openlaszlo/trunk4/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary: make swf9 treatment of newlines in inputtext match swf8

New Features:

Bugs Fixed: LPP-7221, LPP-5331

Technical Reviewer: hqm
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

Tests:
see test case in bug report

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@11581 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
@@ -154,7 +154,8 @@
      * @protected
      */
     override public function getText():String {
-            return textfield.text;
+        // We normalize swf's \r to \n
+        return this.textfield.text.split('\r').join('\n');
     }

     /**


- IndexedArray now makes use of built-in indexOf method

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

--- src/reprise/data/collection/IndexedArray.as
+++ src/reprise/data/collection/IndexedArray.as
@@ -10,10 +10,11 @@
 ////////////////////////////////////////////////////////////////////////////////

 package reprise.data.collection
-{
+{
+
+
 	public dynamic class IndexedArray extends Array
 	{
-

 		/***************************************************************************
 		*							public methods								   *
@@ -28,23 +29,19 @@
 			AS3::splice(0, this.length);
 		}

-		public function getIndex(o : Object) : Number
+		public function getIndex(o : Object) : int
 		{
-			var i : Number = this.length;
-			while (i--)
-				if (this[i] == o)
-					return i;
-			return -1;
+			return indexOf(o);
 		}

 		public function objectExists(o : Object) : Boolean
 		{
-			return getIndex(o) != -1;
+			return indexOf(o) != -1;
 		}

 		public function remove(o : Object) : Boolean
 		{
-			var i : Number = getIndex(o);
+			var i : int = indexOf(o);
 			if (i == -1)
 			{
 				return false;
@@ -53,7 +50,7 @@
 			return true;
 		}

-		public function removeObjectAtIndex(index : Number) : Boolean
+		public function removeObjectAtIndex(index : int) : Boolean
 		{
 			if (index < 0 || index > length - 1)
 			{
@@ -63,14 +60,14 @@
 			return true;
 		}

-		public function insertObjectAtIndex(o:Object, index:Number) : void
+		public function insertObjectAtIndex(o:Object, index:int) : void
 		{
 			AS3::splice(index, 0, o);
 		}

 		public function replaceObjectWithObject(objectToReplace:Object, objectToUse:Object) : Boolean
 		{
-			var index:Number = getIndex(objectToReplace);
+			var index:int = indexOf(objectToReplace);
 			if (index == -1)
 			{
 				return false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19401
Author:   mhorn@adobe.com
Date:     2010-12-15T20:50:38.178104Z

Log Message:
-----------
Temporary ASDoc updates for bug fix SDK-28907

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/Button.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -358,7 +358,8 @@

 /**
  *  The class to use as the skin for a column that is being resized.
- *  @default mx.skins.halo.DataGridColumnResizeSkin
+ *
+ *  @default mx.skins.halo.DataGridColumnResizeSkin (for both Halo and Spark themes)
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -487,7 +488,7 @@
  *  The class to use as the skin that indicates that
  *  a column can be dropped in the current location.
  *
- *  @default mx.skins.halo.DataGridColumnDropIndicator
+ *  @default mx.skins.halo.DataGridColumnDropIndicator (for both Halo and Spark themes)
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -4339,9 +4340,9 @@
         systemManager.addEventListener(Event.RESIZE, editorAncestorResizeHandler);
         addEventListener(Event.RESIZE, editorAncestorResizeHandler);

-	// Dispatch our item editor created event
+    // Dispatch our item editor created event
         var event:DataGridEvent =
-        		new DataGridEvent(DataGridEvent.ITEM_EDITOR_CREATE, false, true, colIndex, null, rowIndex);
+                new DataGridEvent(DataGridEvent.ITEM_EDITOR_CREATE, false, true, colIndex, null, rowIndex);
         dispatchEvent(event);
     }

@@ -5074,7 +5075,7 @@
     private function editorMouseDownHandler(event:Event):void
     {
         if (event is MouseEvent && owns(DisplayObject(event.target)))
-			return;
+            return;

         endEdit(DataGridEventReason.OTHER);
         // set focus back to the grid so grid logic will deal if focus doesn't
@@ -5233,8 +5234,8 @@
      */
     private function itemEditorItemEditBeginHandler(event:DataGridEvent):void
     {
-		if (root)
-	        systemManager.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
+        if (root)
+            systemManager.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);

         // if not prevented and if data is not null (might be from dataservices)
         if (!event.isDefaultPrevented() && actualContentHolder.listItems[actualRowIndex][actualColIndex].data != null)
@@ -5386,12 +5387,12 @@
         losingFocus = false;
     }

-	protected function isComplexColumn( property:String ):Boolean
+    protected function isComplexColumn( property:String ):Boolean
     {
         return ( property.indexOf( "." ) != -1 );
     }

-	//Gets the reference to the parent object where a property will be updated
+    //Gets the reference to the parent object where a property will be updated
     protected function deriveComplexFieldReference( data:Object, complexFieldNameComponents:Array ):Object
     {
         var currentRef:Object = data;
@@ -5401,7 +5402,7 @@
                 currentRef = currentRef[ complexFieldNameComponents[ i ] ];
         }

-        return currentRef;
+        return currentRef;
     }

     //default implementations of these two methods, intended for subclassing
@@ -5418,12 +5419,12 @@
         return String( obj );
     }

-	//Passing all of these parameters as it basically allows everything you would need to subclass for all sorts of fun implementations
+    //Passing all of these parameters as it basically allows everything you would need to subclass for all sorts of fun implementations
     protected function setNewValue( data:Object, property:String, value:Object, columnIndex:int ):Boolean
     {
         if ( !isComplexColumn( property ) )
         {
-        	data[ property ] = value;
+            data[ property ] = value;
         }
         else
         {


Export All button

Export All button

--- exporter/src/main/as/flump/export/ProjectController.as
+++ exporter/src/main/as/flump/export/ProjectController.as
@@ -70,15 +70,32 @@
             }
             curSelection = newSelection;
         });
+
+        // Reload
         _win.reload.addEventListener(MouseEvent.CLICK, F.callback(reloadNow));
+
+        // Export
         _win.export.addEventListener(MouseEvent.CLICK, function (..._) :void {
             for each (var status :DocStatus in _flashDocsGrid.selectedItems) {
                 exportFlashDocument(status);
             }
         });
+
+        // Preview
         _win.preview.addEventListener(MouseEvent.CLICK, function (..._) :void {
             FlumpApp.app.showPreviewWindow(_flashDocsGrid.selectedItem.lib);
         });
+
+        // Export All
+        _win.exportAll.addEventListener(MouseEvent.CLICK, function (..._) :void {
+            for each (var status :DocStatus in _flashDocsGrid.dataProvider.toArray()) {
+                if (status.isValid) {
+                    exportFlashDocument(status);
+                }
+            }
+        });
+
+        // Import/Export directories
         _importChooser = new DirChooser(null, _win.importRoot, _win.browseImport);
         _importChooser.changed.add(setImportDirectory);
         _exportChooser = new DirChooser(null, _win.exportRoot, _win.browseExport);
@@ -87,6 +104,7 @@
         _importChooser.changed.add(F.callback(updateWindowTitle, true));
         _exportChooser.changed.add(F.callback(updateWindowTitle, true));

+        // Edit Formats
         var editFormatsController :EditFormatsController = null;
         _win.editFormats.addEventListener(MouseEvent.CLICK, function (..._) :void {
             if (editFormatsController == null || editFormatsController.closed) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17964
Author:   tkraikit@adobe.com
Date:     2010-09-30T19:22:31.922182Z

Log Message:
-----------
minor ASDoc clarification: gotoFirstFrameAndStop() moves the playhead to the first frame of the first scene

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/MovieClipSWFLoader.as

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

--- frameworks/projects/framework/src/mx/controls/MovieClipSWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/MovieClipSWFLoader.as
@@ -170,7 +170,7 @@
     }

     /**
-     *  Resets the playhead to the first frame and stops the MovieClip.
+     *  Resets the playhead to the first frame of the first scene and stops the MovieClip.
      *  If the content is not a MovieClip, this results in a no-op.
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as
+++ frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as
@@ -0,0 +1,151 @@
+package flex.filters
+{
+import flash.events.IEventDispatcher;
+import flash.filters.BitmapFilterQuality;
+
+public class BaseDimensionFilter extends BaseFilter
+{
+	public function BaseDimensionFilter()
+	{
+		super();
+	}
+
+	//----------------------------------
+    //  blurX
+    //----------------------------------
+
+	private var _blurX:Number = 4.0;
+
+	/**
+	 *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
+	 *  or less means that the original image is copied as is. The default
+	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+	 *  are optimized to render more quickly than other values.
+	 */
+	public function get blurX():Number
+	{
+		return _blurX;
+	}
+
+	public function set blurX(value:Number):void
+	{
+		if (value != _blurX)
+		{
+			_blurX = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  blurY
+    //----------------------------------
+
+	private var _blurY:Number = 4.0;
+
+	/**
+	 *  The amount of vertical blur. Valid values are 0 to 255. A blur of 1
+	 *  or less means that the original image is copied as is. The default
+	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+	 *  are optimized to render more quickly than other values.
+	 */
+	public function get blurY():Number
+	{
+		return _blurY;
+	}
+
+	public function set blurY(value:Number):void
+	{
+		if (value != _blurY)
+		{
+			_blurY = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  knockout
+    //----------------------------------
+
+	private var _knockout:Boolean = false;
+
+	/**
+	 *  Specifies whether the object has a knockout effect. A knockout effect
+	 *  makes the object's fill transparent and reveals the background color
+	 *  of the document. The value true specifies a knockout effect; the
+	 *  default value is false (no knockout effect).
+	 */
+	public function get knockout():Boolean
+	{
+		return _knockout;
+	}
+
+	public function set knockout(value:Boolean):void
+	{
+		if (value != _knockout)
+		{
+			_knockout = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  quality
+    //----------------------------------
+
+	private var _quality:int = BitmapFilterQuality.LOW;
+
+	/**
+	 *  The number of times to apply the filter. The default value is
+	 *  BitmapFilterQuality.LOW, which is equivalent to applying the filter
+	 *  once. The value BitmapFilterQuality.MEDIUM  applies the filter twice;
+	 *  the value BitmapFilterQuality.HIGH applies it three times. Filters
+	 *  with lower values are rendered more quickly.
+	 *
+	 *  For most applications, a quality value of low, medium, or high is
+	 *  sufficient. Although you can use additional numeric values up to 15
+	 *  to achieve different effects, higher values are rendered more slowly.
+	 *  Instead of increasing the value of quality, you can often get a similar
+	 *  effect, and with faster rendering, by simply increasing the values of
+	 *  the blurX and blurY properties.
+	 */
+	public function get quality():int
+	{
+		return _quality;
+	}
+
+	public function set quality(value:int):void
+	{
+		if (value != _quality)
+		{
+			_quality = value;
+			notifyFilterChanged();
+		}
+	}
+
+	//----------------------------------
+    //  strength
+    //----------------------------------
+
+	private var _strength:Number = 1;
+
+	/**
+	 *  The strength of the imprint or spread. The higher the value, the more
+	 *  color is imprinted and the stronger the contrast between the glow and
+	 *  the background. Valid values are 0 to 255. A value of 0 means that the
+	 *  filter is not applied. The default value is 1.
+	 */
+	public function get strength():Number
+	{
+		return _strength;
+	}
+
+	public function set strength(value:Number):void
+	{
+		if (value != _strength)
+		{
+			_strength = value;
+			notifyFilterChanged();
+		}
+	}
+}
+}


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

--- frameworks/projects/mx/src/mx/containers/gridClasses/GridRowInfo.as
+++ frameworks/projects/mx/src/mx/containers/gridClasses/GridRowInfo.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.containers.gridClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10898
Author:   rfrishbe@adobe.com
Date:     2009-10-06T20:54:04.699354Z

Log Message:
-----------
Fix for a bug: After playing a hide effect, a window wouldn't be visible again.

The issue here is that all effects that occur because of HIDE end up calling setVisible() (see EffectManager.effectEndHandler).  Window/WindowedApplication was basically left with two concepts of setVisible...the displayObject one and the native application one, and they were out of synch.  So setting visible=true on the window wasn’t calling setVisible(true) which controls the display object visibility.  Now instead of doing our work in the visible setter, we override setVisible() and do it in there.

QE notes: -
Doc notes: -
Bugs: SDK-23263
Reviewer: Darrell
Tests run: checkintests, Rob ran mustella window/windowedapplication
Is noteworthy for integration: No

Modified Paths:
--------------
<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/airframework/src/spark/components/WindowedApplication.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/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -1109,6 +1109,18 @@
      */
     override public function set visible(value:Boolean):void
     {
+        setVisible(value);
+    }
+
+    /**
+     *  @private
+     *  We override setVisible because there's the flash display object concept
+     *  of visibility and also the nativeWindow concept of visibility.
+     */
+    override public function setVisible(value:Boolean,
+                                        noEvent:Boolean = false):void
+    {
+        // first handle the native window stuff
         if (!_nativeWindow)
         {
             _nativeWindowVisible = value;
@@ -1116,27 +1128,22 @@
         }
         else if (!_nativeWindow.closed)
         {
-            var e:FlexEvent;
             if (value)
             {
                 _nativeWindow.visible = value;
-                e = new FlexEvent(FlexEvent.SHOW);
-                dispatchEvent(e);
             }
             else
             {
-                e = new FlexEvent(FlexEvent.HIDE);
-                if (getStyle("hideEffect"))
-                {
+                // in the conditions below we will play an effect
+                if (getStyle("hideEffect") && initialized && $visible != value)
                     addEventListener(EffectEvent.EFFECT_END, hideEffectEndHandler);
-                }
                 else
-                {
                     _nativeWindow.visible = value;
-                }
-                dispatchEvent(e);
-            }
-        }
+            }
+        }
+
+        // now call super.setVisible
+        super.setVisible(value, noEvent);
     }

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