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

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

 package mx.modules
 {


Small Subtitle Parsing Fix Preemtively fixed an error in the subtitle parser that would cause the time to be slightly off.

--- HLSPlugin/src/com/kaltura/hls/subtitles/TextTrackCue.as
+++ HLSPlugin/src/com/kaltura/hls/subtitles/TextTrackCue.as
@@ -50,6 +50,8 @@
 						break;

 					case STATE_TIMESTAMP:
+						if (char != " ")
+							accum += char;
 						if ( char == " " || position == input.length - 1 )
 						{
 							var timeStamp:Number = SubTitleParser.parseTimeStamp( accum );
@@ -61,7 +63,6 @@
 							state = STATE_WHITESPACE;
 							break;
 						}
-						accum += char;
 						position++;
 						break;


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

--- frameworks/projects/framework/src/mx/core/IContainer.as
+++ frameworks/projects/framework/src/mx/core/IContainer.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import mx.managers.IFocusManager;
+
+/**
+ *  IContainer is a interface that indicates a component
+ *  extends or mimics mx.core.Container
+ *
+ *  @see mx.core.Container
+ */
+public interface IContainer extends IUIComponent
+{
+
+include "ISpriteInterface.as"
+include "IDisplayObjectContainerInterface.as"
+include "IInteractiveObjectInterface.as"
+
+    /**
+     *  @copy mx.core.Container#defaultButton
+     */
+    function get defaultButton():IFlexDisplayObject;
+    function set defaultButton(value:IFlexDisplayObject):void;
+
+    /**
+     *  @copy mx.core.Container#creatingContentPane
+     */
+    function get creatingContentPane():Boolean;
+    function set creatingContentPane(value:Boolean):void;
+
+    /**
+     *  @copy mx.core.Container#viewMetrics
+     */
+    function get viewMetrics():EdgeMetrics;
+
+    /**
+     *  @copy mx.core.Container#horizontalScrollPosition
+     */
+    function get horizontalScrollPosition():Number;
+    function set horizontalScrollPosition(value:Number):void;
+
+    /**
+     *  @copy mx.core.Container#verticalScrollPosition
+     */
+    function get verticalScrollPosition():Number;
+    function set verticalScrollPosition(value:Number):void;
+
+    /**
+     *  @copy mx.core.UIComponent#focusManager
+     */
+    function get focusManager():IFocusManager;
+}
+
+}


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

--- frameworks/projects/framework/src/mx/states/SetStyle.as
+++ frameworks/projects/framework/src/mx/states/SetStyle.as
@@ -0,0 +1,273 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.states
+{
+
+import mx.core.UIComponent;
+import mx.styles.IStyleClient;
+import mx.styles.StyleManager;
+
+/**
+ *  The SetStyle class specifies a style that is in effect only during the parent view state.
+ *  You use this class in the overrides property of the State class.
+ *
+ *  @mxml
+ *
+ *
The <mx:SetStyle> tag
+ *  has the following attributes:

+ *
+ *

+ *  <mx:SetStyle
+ *   Properties
+ *   name="null"
+ *   target="null"
+ *   value"null"
+ *  />
+ *

+ *
+ *  @see mx.states.State
+ *  @see mx.states.SetEventHandler
+ *  @see mx.states.SetProperty
+ *  @see mx.effects.SetStyleAction
+ *
+ *  @includeExample examples/StatesExample.mxml
+ */
+public class SetStyle implements IOverride
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  This is a table of related properties.
+     *  Whenever the property being overridden is found in this table,
+     *  the related property is also saved and restored.
+     */
+    private static const RELATED_PROPERTIES:Object =
+    {
+        left: [ "x" ],
+        top: [ "y" ],
+        right: [ "x" ],
+        bottom: [ "y" ]
+    };
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param target The object whose style is being set.
+     *  By default, Flex uses the immediate parent of the State object.
+     *
+     *  @param name The style to set.
+     *
+     *  @param value The value of the style in the view state.
+     */
+    public function SetStyle(
+            target:IStyleClient = null,
+            name:String = null,
+            value:Object = null)
+    {
+        super();
+
+        this.target = target;
+        this.name = name;
+        this.value = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Storage for the old style value.
+     */
+    private var oldValue:Object;
+
+    /**
+     *  @private
+     *  Storage for the old related property values, if used.
+     */
+    private var oldRelatedValues:Array;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  name
+    //----------------------------------
+
+    [Inspectable(category="General")]
+
+    /**
+     *
+     *  The name of the style to change.
+     *  You must set this property, either in
+     *  the SetStyle constructor or by setting
+     *  the property value directly.
+     */
+    public var name:String;
+
+    //----------------------------------
+    //  target
+    //----------------------------------
+
+    [Inspectable(category="General")]
+
+    /**
+     *
+     *  The object whose style is being changed.
+     *  If the property value is null, Flex uses the
+     *  immediate parent of the State object.
+     *
+     *  @default null
+     */
+    public var target:IStyleClient;
+
+    //----------------------------------
+    //  value
+    //----------------------------------
+
+    [Inspectable(category="General")]
+
+    /**
+     *
+     *  The new value for the style.
+     *
+     *  @default null
+     */
+    public var value:Object;
+
+    //--------------------------------------------------------------------------
+    //
+    //  IOverride methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  IOverride interface method; this class implements it as an empty method.
+     *
+     *  @copy IOverride#initialize()
+     */
+    public function initialize():void
+    {
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function apply(parent:UIComponent):void
+    {
+        var obj:IStyleClient = target ? target : parent;
+        var relatedProps:Array = RELATED_PROPERTIES[name] ?
+                                 RELATED_PROPERTIES[name] :
+                                 null;
+
+        // Remember the current value so it can be restored
+        oldValue = obj.getStyle(name);
+
+        if (relatedProps)
+        {
+            oldRelatedValues = [];
+
+            for (var i:int = 0; i < relatedProps.length; i++)
+                oldRelatedValues[i] = obj[relatedProps[i]];
+        }
+
+        // Set new value
+        if (value === null)
+        {
+            obj.clearStyle(name);
+        }
+        else if (oldValue is Number)
+        {
+            // The "value" for colors can be several different formats:
+            // 0xNNNNNN, #NNNNNN or "red". We can't use
+            // StyleManager.isColorStyle() because that only returns true
+            // for inheriting color styles and misses non-inheriting styles like
+            // backgroundColor.
+            if (name.toLowerCase().indexOf("color") != -1)
+                obj.setStyle(name, StyleManager.getColorName(value));
+            else
+                obj.setStyle(name, Number(value));
+        }
+        else if (oldValue is Boolean)
+        {
+            obj.setStyle(name, toBoolean(value));
+        }
+        else
+        {
+            obj.setStyle(name, value);
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function remove(parent:UIComponent):void
+    {
+        var obj:IStyleClient = target ? target : parent;
+
+        // Restore the old value
+        if (oldValue is Number)
+            obj.setStyle(name, Number(oldValue));
+        else if (oldValue is Boolean)
+            obj.setStyle(name, toBoolean(oldValue));
+        else if (oldValue === null)
+            obj.clearStyle(name);
+        else
+            obj.setStyle(name, oldValue);
+
+
+        var relatedProps:Array = RELATED_PROPERTIES[name] ?
+                                 RELATED_PROPERTIES[name] :
+                                 null;
+
+        // Restore related property values, if needed
+        if (relatedProps)
+        {
+            for (var i:int = 0; i < relatedProps.length; i++)
+            {
+                obj[relatedProps[i]] = oldRelatedValues[i];
+            }
+        }
+    }
+
+    /**
+     *  @private
+     *  Converts a value to a Boolean true/false.
+     */
+    private function toBoolean(value:Object):Boolean
+    {
+        if (value is String)
+            return value.toLowerCase() == "true";
+
+        return value != false;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11468
Author:   smgilson@adobe.com
Date:     2009-11-05T16:54:31.738281Z

Log Message:
-----------
Part 1 of ASDoc localization bug fixes

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-934, FLEXDOCS-909, FLEXDOCS-908, FLEXDOCS-906, FLEXDOCS-882, FLEXDOCS-883, FLEXDOCS-881
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Pause.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ArrayUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/framework/src/mx/utils/ArrayUtil.as
+++ frameworks/projects/framework/src/mx/utils/ArrayUtil.as
@@ -26,27 +26,27 @@
  */
 public class ArrayUtil
 {
-	include "../core/Version.as";
+    include "../core/Version.as";

-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------

     /**
      *  Ensures that an Object can be used as an Array.
-	 *
+     *
      *
If the Object is already an Array, it returns the object.
      *  If the object is not an Array, it returns an Array
-	 *  in which the only element is the Object.
-	 *  As a special case, if the Object is null,
-	 *  it returns an empty Array.

-	 *
+     *  in which the only element is the Object.
+     *  As a special case, if the Object is null,
+     *  it returns an empty Array.

+     *
      *  @param obj Object that you want to ensure is an array.
-	 *
+     *
      *  @return An Array. If the original Object is already an Array,
-     * 	the original Array is returned. Otherwise, a new Array whose
+     *  the original Array is returned. Otherwise, a new Array whose
      *  only element is the Object is returned or an empty Array if
      *  the Object was null.
      *
@@ -57,21 +57,18 @@
      */
     public static function toArray(obj:Object):Array
     {
-		if (!obj)
-			return [];
-
-		else if (obj is Array)
-			return obj as Array;
-
-		else
-		 	return [ obj ];
+        if (!obj)
+            return [];
+
+        else if (obj is Array)
+            return obj as Array;
+
+        else
+            return [ obj ];
     }

     /**
      *  Returns the index of the item in the Array.
-     *
-     *  Note that in this implementation the search is linear and is therefore
-     *  O(n).
      *
      *  @param item The item to find in the Array.
      *


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

--- frameworks/projects/mx/src/mx/containers/HDividedBox.as
+++ frameworks/projects/mx/src/mx/containers/HDividedBox.as
@@ -0,0 +1,122 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.containers
+{
+
+import mx.core.mx_internal;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="direction", kind="property")]
+
+[Exclude(name="focusIn", kind="event")]
+[Exclude(name="focusOut", kind="event")]
+
+[Exclude(name="focusBlendMode", kind="style")]
+[Exclude(name="focusSkin", kind="style")]
+[Exclude(name="focusThickness", kind="style")]
+
+[Exclude(name="focusInEffect", kind="effect")]
+[Exclude(name="focusOutEffect", kind="effect")]
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[IconFile("HDividedBox.png")]
+
+/**
+ *  The HDividedBox container lays out its children horizontally
+ *  in the same way as HBox container, but it inserts
+ *  a draggable divider in the gap between each child.
+ *  A user can drag the divider to resize the area allotted to each child.
+ *  The <mx:HDividedBox/> tag is the same as
+ *  <mx:DividedBox direction="horizontal"/>.
+ *
+ *
An HDividedBox container has the following default sizing characteristics:

+ *

+ *

+ *           Characteristic
+ *           Description
+ *

+ *

+ *           Default size
+ *           Width is large enough to hold all of its children at the
+ *               default or explicit widths of the children, plus any horizontal gap between the children, plus the left and
+ *               right padding of the container. Height is the default or explicit height of the tallest child
+ *               plus the top and bottom padding of the container.
+ *

+ *

+ *           Default padding
+ *           0 pixels for the top, bottom, left, and right values.
+ *

+ *

+ *           Default gap
+ *           10 pixels for the horizontal and vertical gaps.
+ *

+ *

+ *
+ *  @mxml
+ *
+ *
The <mx:HDividedBox> tag inherits all of the tag
+ *  attributes of its superclass except direction and adds
+ *  no new tag attributes.

+ *
+ *  @includeExample examples/HDividedBoxExample.mxml
+ *
+ *  @see mx.containers.DividedBox
+ *  @see mx.containers.VDividedBox
+ */
+public class HDividedBox extends DividedBox
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function HDividedBox()
+	{
+		super();
+
+		mx_internal::layoutObject.direction = BoxDirection.HORIZONTAL;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  direction
+	//----------------------------------
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  @private
+	 *  Don't allow user to change the direction
+	 */
+	override public function set direction(value:String):void
+	{
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14435
Author:   cframpto@adobe.com
Date:     2010-02-25T22:01:59.361644Z

Log Message:
-----------
Merge DataGrid changes for mirroring from 4.x to trunk. Rev 14289 and 14355.

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

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridHeaderSeparatorSkin.mxml</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -2080,7 +2080,7 @@
      *  @productversion Flex 4
      */
     public function parentChanged(p:DisplayObjectContainer):void
-    {
+    {
         if (!p)
         {
             _parent = null;
@@ -2136,8 +2136,9 @@
         if (!parent)
             return;

+        // If mirroring, setting width can change the transform matrix.
         if (!isNaN(explicitWidth) && super.width != explicitWidth)
-            super.width = (explicitWidth > 4) ? explicitWidth : 4;
+            width = (explicitWidth > 4) ? explicitWidth : 4;

         if (!isNaN(explicitHeight) && super.height != explicitHeight)
             super.height = explicitHeight;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10919
Author:   gosmith@adobe.com
Date:     2009-10-07T22:15:33.759089Z

Log Message:
-----------
Integrated TLF Build 517.

This isn't the latest TLF build, but it is the one that introduced a significant API change, so I want to take it before taking other TLF changes. The ITextLineCreator interface, with its createTextLine() and recreateTextLine() methods, has been replaced with an ISWFContext interface with a callInContext() method. This required changes in 11 framework classes and in the MXML compiler's autogenerated code for the module factory classes.

The purpose of both the old and the new interface is to support cross-SWF font embedding, by allowing certain FTE calls such as textBlock.createTextLine() to execute in the SWF where the font you're using is embedded.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Alex should review
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/TextFlowLine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/IFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_edit/src/flashx/textLayout/container/TextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TextFieldFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/CoreClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/BuildInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/ComposeState.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/ReleaseNotes.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/FlowComposerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/factory/StringTextLineFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/SimpleCompose.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/elements/FlowLeafElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.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/textLayout/textLayout_core/src/flashx/textLayout/factory/TextLineFactoryBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/tlf.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/factory/TextFlowTextLineFactory.as</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -21,7 +21,7 @@
 import flash.text.TextFormat;
 import flash.text.TextFormatAlign;
 import flash.text.TextLineMetrics;
-import flashx.textLayout.compose.ITextLineCreator;
+import flashx.textLayout.compose.ISWFContext;
 import mx.automation.IAutomationObject;
 import mx.core.FTETextField;
 import mx.managers.ISystemManager;
@@ -2080,7 +2080,7 @@
                 // Call isFontFaceEmbedded() which get the list of embedded fonts from the player.
                 if (fontModuleFactory != null)
                 {
-                    textLineCreator = ITextLineCreator(fontModuleFactory);
+                    fontContext = ISWFContext(fontModuleFactory);
                     embedFonts = true;
                 }
                 else
@@ -2088,18 +2088,18 @@
                     var sm:ISystemManager = creatingSystemManager();
                     embedFonts = sm != null && sm.isFontFaceEmbedded(textFormat);
                     if (embedFonts)
-                        textLineCreator = ITextLineCreator(sm);
+                        fontContext = ISWFContext(sm);
                     else
-                        textLineCreator = null;
+                        fontContext = null;
                 }
             }
             else
             {
                 embedFonts = getStyle("embedFonts");
                 if (embedFonts)
-                    textLineCreator = ITextLineCreator(moduleFactory);
+                    fontContext = ISWFContext(moduleFactory);
                 else
-                    textLineCreator = null;
+                    fontContext = null;
             }

             if (getStyle("fontAntiAliasType") != undefined)


Transferred from the Adobe Open Source Subversion Repository

Revision: 18173
Author:   jasonsj@adobe.com
Date:     2010-10-15T17:03:20.801634Z

Log Message:
-----------
Mobile Theme Initial check-in

* New light-look visuals from XD
* Changed airmobile-config.xml to use standalone Mobile theme instead of Spark overlay
* Added theme="spark, mobile" where spark was already white-listed and support is implemented and/or planned for Mobile/spark.css (see https://zerowing.corp.adobe.com/display/flexmobile/Mobile+Theme+Styles+Spec)
* MobileSkin has symbolColor and chromeColor support. Override beginChromeColorFill and drawChromeColor when defining custom chromeColor visuals.
* CheckBox and RadioButton now have chromeColor and symbolColor support
* Added textShadowColor and textShadowAlpha support to Button and ActionBar
* Added chromeColor support to HScrollBar and VScrollBar

QE notes: All mobile skins have been updaetd.
Doc notes: Update mobile skinning documentation for new APIs
Bugs:
SDK-28043 Investigate usage of "viewWidth", "viewHeight" for the Flex Mobile Skin Assets
SDK-27609 Mobile scroll bar skins should use chromeColor
SDK-27646 cornerradius has no effect on button in mobile application
Reviewer: gruehle
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/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/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_symbol.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/metadata/ContainerBackgroundStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/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/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_downSelected.fxg</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/themes/Mobile/spark.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/airmobile-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -76,6 +76,34 @@
  *  @productversion Flex 4
  */
 [Event(name="elementRemove", type="spark.events.ElementExistenceEvent")]
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  Color of text shadows.
+ *
+ *  @default #FFFFFF
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="textShadowColor", type="uint", format="Color", inherit="yes", theme="mobile")]
+
+/**
+ *  Alpha of text shadows.
+ *
+ *  @default 0.55
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="textShadowAlpha", type="Number",inherit="yes", minValue="0.0", maxValue="1.0", theme="mobile")]

 //--------------------------------------
 //  Excluded APIs


Transferred from the Adobe Open Source Subversion Repository

Revision: 7500
Author:   jszeto@adobe.com
Date:     2009-06-03T00:30:49.221321Z

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

http://bugs.adobe.com/jira/browse/SDK-21265 - [ASDoc] Group/DataGroup/SkinnableDataContainer ASDoc Updates
http://bugs.adobe.com/jira/browse/SDK-17665 - Transform convenience props and matrix should not legal at the same time

Updated ASDoc comments

QE Notes: None
Doc Notes: Added comments
Bugs: SDK-21265, SDK-17665
Reviewer: Glenn

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

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -101,6 +101,29 @@
  *  the Group container cannot be skinned.
  *  If you want to apply a skin, use the SkinnableContainer instead.

  *
+ *
Note: scale grid may not function correctly when there
+ *  are DisplayObject children inside of the Group, such as a component
+ *  or another Group.  If the children are GraphicElements and
+ *  they all share the Group's DisplayObject, then scale grid will work
+ *  properly.

+ *
+ *
Setting any of the following properties on a GraphicElement child
+ *  will require that GraphicElement to create its own DisplayObject,
+ *  thus negating the scale grid properties on the Group.

+ *
+ *

+ *  alpha
+ *  blendMode other than BlendMode.NORMAL
+ *  colorTransform
+ *  filters
+ *  mask
+ *  matrix
+ *  rotation
+ *  scaling
+ *  3D properties
+ *  bounds outside the extent of the Group
+ *

+ *
  *  @mxml
  *
  *
The <Group> tag inherits all of the tag
@@ -853,7 +876,7 @@
 	        							   scaleGridTop,
 	        							   scaleGridRight - scaleGridLeft,
 	        							   scaleGridBottom - scaleGridTop);
-	        }
+	        }
 	        else
 	        {
 	        	super.scale9Grid = null;


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5270
Author:   hmuller@adobe.com
Date:     2009-03-12T19:10:16.600232Z

Log Message:
-----------

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

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -285,9 +285,9 @@
         else
         {
             mxmlContentChanged = true;
-        _mxmlContent = value;
+            _mxmlContent = value;
             // we will validate this in createChildren();
-    }
+        }
     }

@@ -315,7 +315,7 @@
             }
         }

-        _mxmlContent = value;
+        _mxmlContent = value.concat();  // defensive copy

         if (_mxmlContent != null)
         {
@@ -804,6 +804,9 @@
     mx_internal function elementAdded(element:IVisualElement, index:int):void
     {
         var child:DisplayObject;
+
+        if (layout)
+            layout.elementAdded(index);

         if (element.layer != 0)
             invalidateLayering();
@@ -853,8 +856,8 @@
      */
     mx_internal function elementRemoved(element:IVisualElement, index:int):void
     {
-        var childDO:DisplayObject = element as DisplayObject;
-
+        var childDO:DisplayObject = element as DisplayObject;
+
         dispatchEvent(new ElementExistenceEvent(
                       ElementExistenceEvent.ELEMENT_REMOVE, false, false, element, index));

@@ -871,6 +874,9 @@
         invalidateDisplayObjectOrdering();
         invalidateSize();
         invalidateDisplayList();
+
+        if (layout)
+            layout.elementRemoved(index);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 16390
Author:   clucier@adobe.com
Date:     2010-06-02T00:31:33.544783Z

Log Message:
-----------
PARB changes and bug fixes for Image and BitmapImage.

QE notes:  None
Doc notes:  None
Bugs: SDK-26596, SDK-26594, SDK-26561, SDK-26562, SDK-26567, SDK-26568, SDK-26571, SDK-26572, SDK-26575, SDK-26583, SDK-26584
Reviewer:  Ryan
Tests run:  Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/LoaderInvalidationEvent.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/IContentLoader.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IContentLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentCache.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentRequest.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>

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

--- frameworks/projects/spark/src/spark/components/Image.as
+++ frameworks/projects/spark/src/spark/components/Image.as
@@ -13,18 +13,18 @@
 {

 import flash.events.Event;
+import flash.events.HTTPStatusEvent;
 import flash.events.IOErrorEvent;
 import flash.events.ProgressEvent;
-import flash.events.HTTPStatusEvent;
 import flash.events.SecurityErrorEvent;
-
+
 import mx.core.mx_internal;
 import mx.graphics.BitmapScaleMode;
 import mx.utils.BitFlagUtil;

 import spark.components.supportClasses.Range;
 import spark.components.supportClasses.SkinnableComponent;
-import spark.core.contentLoader.IContentLoader;
+import spark.core.IContentLoader;
 import spark.primitives.BitmapImage;

 use namespace mx_internal;
@@ -160,6 +160,37 @@
  *  @productversion Flex 4.5
  */
 [Event(name="securityError", type="flash.events.SecurityErrorEvent")]
+
+//-----------------------------------
+//  Styles
+//-----------------------------------
+
+/**
+ *  When true, enables the 'loading' skin state.
+ *  @default false
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 4.5
+ */
+[Style(name="enableLoadingState", type="Boolean", inherit="no")]
+
+/**
+ *  Style equivalent to BitmapImage's smoothingQuality property.When set to
+ *  BitmapSmoothingQuality.BEST, the image is resampled (if data
+ *  is from a trusted source) to achieve a higher quality result.
+ *  If set to BitmapSmoothingQuality.DEFAULT, the default stage
+ *  quality for scaled bitmap fills is used.
+ *
+ *  @default BitmapSmoothingQuality.DEFAULT
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 4.5
+ */
+[Style(name="smoothingQuality", type="String", inherit="no", enumeration="default,high")]

 //--------------------------------------
 //  Other metadata
@@ -213,15 +244,19 @@
     //
     //--------------------------------------------------------------------------
     mx_internal static const CONTENT_LOADER_PROPERTY_FLAG:uint = 1 << 0;
-    mx_internal static const FILL_MODE_PROPERTY_FLAG:uint = 1 << 1;
-    mx_internal static const PRELIMINARY_WIDTH_PROPERTY_FLAG:uint = 1 << 2;
-    mx_internal static const PRELIMINARY_HEIGHT_PROPERTY_FLAG:uint = 1 << 3;
-    mx_internal static const HORIZONTAL_ALIGN_PROPERTY_FLAG:uint = 1 << 4;
-    mx_internal static const SCALE_MODE_PROPERTY_FLAG:uint = 1 << 5;
-    mx_internal static const SMOOTH_PROPERTY_FLAG:uint = 1 << 6;
-    mx_internal static const SMOOTHING_QUALITY_PROPERTY_FLAG:uint = 1 << 7;
-    mx_internal static const SOURCE_PROPERTY_FLAG:uint = 1 << 8;
-    mx_internal static const VERTICAL_ALIGN_PROPERTY_FLAG:uint = 1 << 9;
+    mx_internal static const CONTENT_LOADER_GROUPING_PROPERTY_FLAG:uint = 1 << 1;
+    mx_internal static const FILL_MODE_PROPERTY_FLAG:uint = 1 << 2;
+    mx_internal static const PRELIMINARY_WIDTH_PROPERTY_FLAG:uint = 1 << 3;
+    mx_internal static const PRELIMINARY_HEIGHT_PROPERTY_FLAG:uint = 1 << 4;
+    mx_internal static const HORIZONTAL_ALIGN_PROPERTY_FLAG:uint = 1 << 5;
+    mx_internal static const SCALE_MODE_PROPERTY_FLAG:uint = 1 << 6;
+    mx_internal static const SMOOTH_PROPERTY_FLAG:uint = 1 << 7;
+    mx_internal static const SMOOTHING_QUALITY_PROPERTY_FLAG:uint = 1 << 8;
+    mx_internal static const SOURCE_PROPERTY_FLAG:uint = 1 << 9;
+    mx_internal static const SOURCE_WIDTH_PROPERTY_FLAG:uint = 1 << 10;
+    mx_internal static const SOURCE_HEIGHT_PROPERTY_FLAG:uint = 1 << 11;
+    mx_internal static const TRUSTED_SOURCE_PROPERTY_FLAG:uint = 1 << 12;
+    mx_internal static const VERTICAL_ALIGN_PROPERTY_FLAG:uint = 1 << 13;

     //--------------------------------------------------------------------------
     //
@@ -261,7 +296,8 @@
     /**
      *  @private
      */
-    mx_internal var imageDisplayProperties:Object = {visible: true, scaleMode: BitmapScaleMode.LETTERBOX};
+    mx_internal var imageDisplayProperties:Object =
+        {visible: true, scaleMode: BitmapScaleMode.LETTERBOX, trustedSource: true};

     //--------------------------------------------------------------------------
     //
@@ -315,7 +351,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#bytesLoaded
-     *
      *  @default NaN
      */
     public function get bytesLoaded():Number
@@ -329,7 +364,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#bytesTotal
-     *
      *  @default NaN
      */
     public function get bytesTotal():Number
@@ -343,7 +377,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#contentLoader
-     *
      *  @default null
      */
     public function get contentLoader():IContentLoader
@@ -368,34 +401,36 @@
         else
             imageDisplayProperties.contentLoader = value;
     }
-
-    //----------------------------------
-    //  enablePreload
-    //----------------------------------
-    private var _enablePreload:Boolean = false;
-
-    /**
-     *  When true, enables the 'loading' skin state.
-     *
-     *  @default false
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4.5
-     */
-    public function set enablePreload(value:Boolean):void
-    {
-        _enablePreload = value;
-        invalidateSkinState();
-    }
-
-    /**
-     *  @private
-     */
-    public function get enablePreload():Boolean
-    {
-        return _enablePreload;
+
+    //----------------------------------
+    //  contentLoaderGrouping
+    //----------------------------------
+
+    /**
+     *  @copy mx.primitives.BitmapImage#contentLoaderGrouping
+     *  @default null
+     */
+    public function get contentLoaderGrouping():String
+    {
+        if (imageDisplay)
+            return imageDisplay.contentLoaderGrouping;
+        else
+            return imageDisplayProperties.contentLoaderGrouping;
+    }
+
+    /**
+     *  @private
+     */
+    public function set contentLoaderGrouping(value:String):void
+    {
+        if (imageDisplay)
+        {
+            imageDisplay.contentLoaderGrouping = value;
+            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
+                CONTENT_LOADER_GROUPING_PROPERTY_FLAG, true);
+        }
+        else
+            imageDisplayProperties.contentLoaderGrouping = value;
     }

     //----------------------------------
@@ -406,7 +441,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#fillMode
-     *
      *  @default BitmapFillMode.SCALE
      */
     public function get fillMode():String
@@ -440,7 +474,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#horizontalAlign
-     *
      *  @default HorizontalAlign.CENTER
      */
     public function get horizontalAlign():String
@@ -472,7 +505,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#preliminaryHeight
-     *
      *  @default NaN
      */
     public function get preliminaryHeight():Number
@@ -504,7 +536,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#preliminaryWidth
-     *
      *  @default NaN
      */
     public function get preliminaryWidth():Number
@@ -538,7 +569,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#scaleMode
-     *
      *  @default BitmapScaleMode.LETTERBOX
      */
     public function get scaleMode():String
@@ -563,7 +593,37 @@
         else
             imageDisplayProperties.scaleMode = value;
     }
-
+
+    //----------------------------------
+    //  smooth
+    //----------------------------------
+
+    /**
+     *  @copy mx.primitives.BitmapImage#smooth
+     */
+    public function set smooth(value:Boolean):void
+    {
+        if (imageDisplay)
+        {
+            imageDisplay.smooth = value;
+            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
+                SMOOTH_PROPERTY_FLAG, true);
+        }
+        else
+            imageDisplayProperties.smooth = value;
+    }
+
+    /**
+     *  @private
+     */
+    public function get smooth():Boolean
+    {
+        if (imageDisplay)
+            return imageDisplay.smooth;
+        else
+            return imageDisplayProperties.smooth;
+    }
+
     //----------------------------------
     //  source
     //----------------------------------
@@ -600,65 +660,19 @@
     }

     //----------------------------------
-    //  smooth
-    //----------------------------------
-
-    /**
-     *  @copy mx.primitives.BitmapImage#smooth
-     */
-    public function set smooth(value:Boolean):void
-    {
-        if (imageDisplay)
-        {
-            imageDisplay.smooth = value;
-            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
-                SMOOTH_PROPERTY_FLAG, true);
-        }
-        else
-            imageDisplayProperties.smooth = value;
-    }
-
-    /**
-     *  @private
-     */
-    public function get smooth():Boolean
-    {
-        if (imageDisplay)
-            return imageDisplay.smooth;
-        else
-            return imageDisplayProperties.smooth;
-    }
-
-    //----------------------------------
-    //  smoothingQuality
-    //----------------------------------
-
-    [Inspectable(category="General", enumeration="default,high", defaultValue="default")]
-
-    /**
-     *  @copy mx.primitives.BitmapImage#smoothingQuality
-     */
-    public function get smoothingQuality():String
-    {
-        if (imageDisplay)
-            return imageDisplay.smoothingQuality;
-        else
-            return imageDisplayProperties.smoothingQuality;
-    }
-
-    /**
-     *  @private
-     */
-    public function set smoothingQuality(value:String):void
-    {
-        if (imageDisplay)
-        {
-            imageDisplay.smoothingQuality = value;
-            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
-                SMOOTHING_QUALITY_PROPERTY_FLAG, value != null);
-        }
-        else
-            imageDisplayProperties.smoothingQuality = value;
+    //  trustedSource
+    //----------------------------------
+
+    /**
+     *  @copy mx.primitives.BitmapImage#trustedSource
+     *  @default true
+     */
+    public function get trustedSource():Boolean
+    {
+        if (imageDisplay)
+            return imageDisplay.trustedSource;
+        else
+            return imageDisplayProperties.trustedSource;
     }

     //----------------------------------
@@ -669,7 +683,6 @@

     /**
      *  @copy mx.primitives.BitmapImage#verticalAlign
-     *
      *  @default HorizontalAlign.MIDDLE
      */
     public function get verticalAlign():String
@@ -725,6 +738,13 @@
                     CONTENT_LOADER_PROPERTY_FLAG, true);
             }

+            if (imageDisplayProperties.contentLoaderGrouping !== undefined)
+            {
+                imageDisplay.contentLoaderGrouping = imageDisplayProperties.contentLoaderGrouping;
+                newImageDisplayProperties = BitFlagUtil.update(newImageDisplayProperties,
+                    CONTENT_LOADER_GROUPING_PROPERTY_FLAG, true);
+            }
+
             if (imageDisplayProperties.fillMode !== undefined)
             {
                 imageDisplay.fillMode = imageDisplayProperties.fillMode;
@@ -760,7 +780,7 @@
                     SOURCE_PROPERTY_FLAG, true);
             }

-            if (imageDisplayProperties.smoothQuality !== undefined)
+            if (imageDisplayProperties.smoothingQuality !== undefined)
             {
                 imageDisplay.smoothingQuality = imageDisplayProperties.smoothingQuality;
                 newImageDisplayProperties = BitFlagUtil.update(newImageDisplayProperties,
@@ -773,7 +793,7 @@
                 newImageDisplayProperties = BitFlagUtil.update(newImageDisplayProperties,
                     SCALE_MODE_PROPERTY_FLAG, true);
             }
-
+
             if (imageDisplayProperties.verticalAlign !== undefined)
             {
                 imageDisplay.verticalAlign = imageDisplayProperties.verticalAlign;
@@ -793,8 +813,7 @@
         else if (instance == progressIndicator)
         {
             if (_loading && progressIndicator)
-                progressIndicator.value =
-                    Math.ceil((imageDisplay.bytesLoaded / imageDisplay.bytesTotal) * 100.0);
+                progressIndicator.value = percentComplete(imageDisplay.bytesLoaded, imageDisplay.bytesTotal);
         }
     }

@@ -817,6 +836,9 @@

             if (BitFlagUtil.isSet(imageDisplayProperties as uint, CONTENT_LOADER_PROPERTY_FLAG))
                 newImageDisplayProperties.contentLoader = imageDisplay.contentLoader;
+
+            if (BitFlagUtil.isSet(imageDisplayProperties as uint, CONTENT_LOADER_GROUPING_PROPERTY_FLAG))
+                newImageDisplayProperties.contentLoaderGrouping = imageDisplay.contentLoaderGrouping;

             if (BitFlagUtil.isSet(imageDisplayProperties as uint, FILL_MODE_PROPERTY_FLAG))
                 newImageDisplayProperties.fillMode = imageDisplay.fillMode;
@@ -834,11 +856,14 @@
                 newImageDisplayProperties.smooth = imageDisplay.smooth;

             if (BitFlagUtil.isSet(imageDisplayProperties as uint, SMOOTHING_QUALITY_PROPERTY_FLAG))
-                newImageDisplayProperties.smoothQuality = imageDisplay.smoothingQuality;
+                newImageDisplayProperties.smoothingQuality = imageDisplay.smoothingQuality;

             if (BitFlagUtil.isSet(imageDisplayProperties as uint, SCALE_MODE_PROPERTY_FLAG))
                 newImageDisplayProperties.scaleMode = imageDisplay.scaleMode;

+            if (BitFlagUtil.isSet(imageDisplayProperties as uint, TRUSTED_SOURCE_PROPERTY_FLAG))
+                newImageDisplayProperties.trustedSource = imageDisplay.trustedSource;
+
             if (BitFlagUtil.isSet(imageDisplayProperties as uint, VERTICAL_ALIGN_PROPERTY_FLAG))
                 newImageDisplayProperties.verticalAlign = imageDisplay.verticalAlign;

@@ -854,11 +879,13 @@
      */
     override protected function getCurrentSkinState():String
     {
+        var enableLoadingState:Boolean = getStyle("enableLoadingState");
+
         if (_invalid)
             return "invalid";
         else if (!enabled)
             return "disabled";
-        else if (_loading && _enablePreload)
+        else if (_loading && enableLoadingState)
             return "loading";
         else if (imageDisplay && imageDisplay.source)
             return "ready";
@@ -866,6 +893,57 @@
             return "uninitialized";
     }

+    /**
+     *  @private
+     */
+    override public function styleChanged(styleProp:String):void
+    {
+        var allStyles:Boolean = (styleProp == null || styleProp == "styleName");
+        super.styleChanged(styleProp);
+
+        if (allStyles || styleProp == "enableLoadingState")
+        {
+            invalidateSkinState();
+        }
+
+        if (allStyles || styleProp == "smoothingQuality")
+        {
+            smoothQuality = getStyle("smoothingQuality");
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Private smoothing quality setter used to push our smoothingQuality
+     *  style value to our image display instance.
+     */
+    private function set smoothQuality(value:String):void
+    {
+        if (imageDisplay)
+        {
+            imageDisplay.smoothingQuality = value;
+            imageDisplayProperties = BitFlagUtil.update(imageDisplayProperties as uint,
+                SMOOTHING_QUALITY_PROPERTY_FLAG, value != null);
+        }
+        else
+            imageDisplayProperties.smoothingQuality = value;
+    }
+
+    /**
+     *  @private
+     */
+    private function percentComplete(bytesLoaded:Number, bytesTotal:Number):Number
+    {
+        var value:Number = Math.ceil((bytesLoaded / bytesTotal) * 100.0);
+        return isNaN(value) ? 0 : value;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers
@@ -894,7 +972,7 @@
             invalidateSkinState();

         if (progressIndicator)
-            progressIndicator.value = Math.ceil((event.bytesLoaded / event.bytesTotal) * 100.0);
+            progressIndicator.value = percentComplete(event.bytesLoaded, event.bytesTotal);

         _loading = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17978
Author:   hmuller@adobe.com
Date:     2010-09-30T23:20:34.653070Z

Log Message:
-----------
Restored support for ColumnHeaderBar event dispatching and added support for interactive column resizing.

Fixed support for DataGrid,Grid requestedColumnCount.

Renamed protected grid event handler methods, added an underscore: grid_RollOverHandler, grid_RollOutHandler, grid_MouseUpHandler, grid_MouseDownHandler.

Added SEPARATOR_DOUBLE_CLICK GridEvent type.

Remove unused private Grid/isEventTargetExcludeded() method.

QE notes:
Doc notes:
Bugs: SDK-28005, SDK-26364
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridEvent.as
+++ frameworks/projects/spark/src/spark/events/GridEvent.as
@@ -142,13 +142,92 @@
      */
     public static const GRID_ROLL_OUT:String = "gridRollOut";

-    // TBD: do these belong here or somewhere else?
-    // TBD: once home is found they need to be documented
+    /**
+     *  The value of the type property for a separatorMouseDrag GridEvent.
+     *
+     *  @eventType separatorMouseDrag
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_MOUSE_DRAG:String = "separatorMouseDrag";
+
+    /**
+     *  The value of the type property for a separatorClick GridEvent.
+     *
+     *  @eventType separatorClick
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_CLICK:String = "separatorClick";
+
+    /**
+     *  The value of the type property for a separatorDoubleClick GridEvent.
+     *
+     *  @eventType separatorDoubleClick
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public static const SEPARATOR_DOUBLE_CLICK:String = "separatorDoubleClick";
+
+    /**
+     *  The value of the type property for a separatorMouseDown GridEvent.
+     *
+     *  @eventType separatorMouseDown
+     *
+     *  @see flash.display.InteractiveObject.rollOut
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_MOUSE_DOWN:String = "separatorMouseDown";
+
+    /**
+     *  The value of the type property for a separatorMouseUp GridEvent.
+     *
+     *  @eventType separatorMouseUp
+     *
+     *  @see flash.display.InteractiveObject.rollOut
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_MOUSE_UP:String = "separatorMouseUp";
+
+    /**
+     *  The value of the type property for a separatorRollOut GridEvent.
+     *
+     *  @eventType separatorRollOut
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_ROLL_OUT:String = "separatorRollOut";
+
+    /**
+     *  The value of the type property for a separatorRollOver GridEvent.
+     *
+     *  @eventType separatorRollOver
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
     public static const SEPARATOR_ROLL_OVER:String = "separatorRollOver";

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


Try to detect APIWrapper startup failures

--- lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
@@ -84,8 +84,28 @@

 		public function init():Boolean {
 			if(!_file.exists) return false;
-			startProcess();
+
+			try {
+				startProcess();
+			} catch(e:Error) {
+				return false;
+			}
+
+			// try to start the process a second time, but this time ignoring any
+			// potential errors. this seems to give the runtime enough time to check
+			// for any stderr output of the initial call to startProcess(), so that we
+			// now can check if it actually started. process.running is unreliable,
+			// in that it's always set to true, even if the process didn't start at all
+			// in case it couldn't load one of the libraries it depends on, it prints
+			// something like "error while loading shared libraries" to stderr,
+			// which we're trying to detect here
+			try {
+				startProcess();
+			} catch(e:Error) {
+				// no-op
+			}
 			if(!_process.running) return false;
+			if(_process.standardError.bytesAvailable > 0) return false;

 			if(!callWrapper(AIRSteam_Init)) return false;
 			isReady = readBoolResponse();


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

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

 package mx.charts.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/AnchorStyles.as
@@ -21,6 +21,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="baseline", type="String", inherit="no")]

@@ -36,6 +41,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="bottom", type="String", inherit="no")]

@@ -51,6 +61,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="horizontalCenter", type="String", inherit="no")]

@@ -66,6 +81,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="left", type="String", inherit="no")]

@@ -81,6 +101,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="right", type="String", inherit="no")]

@@ -96,6 +121,11 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="top", type="String", inherit="no")]

@@ -111,5 +141,10 @@
  *  layout property set to absolute.

  *
  *
The default value is undefined, which means it is not set.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="verticalCenter", type="String", inherit="no")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

+/**
+ *  Additional vertical space between lines of text.
+ *
+ *
The default value is 2.

+ *
The default value for the ComboBox control is 0.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="leading", type="Number", format="Length", inherit="yes")]


implemented addition of player score when drone is destroyed

--- DroneAnarchy/Resources/Scripts/DroneAnarchy.as
+++ DroneAnarchy/Resources/Scripts/DroneAnarchy.as
@@ -630,6 +630,9 @@

 void HandleDroneDestroyed(StringHash eventType, VariantMap& eventData)
 {
+	playerScore_ += eventData["KillPoint"].GetInt();
+	UpdateScoreDisplay();
+
 	Vector3 dronePosition = eventData["DronePosition"].GetVector3();
 	SpawnExplosion(dronePosition);
 }


Player: :lipstick: Indent error switch-case.

--- src/Player.as
+++ src/Player.as
@@ -467,30 +467,30 @@
       if (event.info.status === 'error') {
         var errorCode:int = 0;
         switch (event.info.code) {
-        case 'NetConnection.Call.BadVersion': errorCode = 700; break;
-        case 'NetConnection.Call.Failed': errorCode = 701; break;
-        case 'NetConnection.Call.Prohibited': errorCode = 702; break;
-        case 'NetConnection.Connect.AppShutdown': errorCode = 703; break;
-        case 'NetConnection.Connect.Failed': errorCode = 704; break;
-        case 'NetConnection.Connect.InvalidApp': errorCode = 705; break;
-        case 'NetConnection.Connect.Rejected': errorCode = 706; break;
-        case 'NetGroup.Connect.Failed': errorCode = 707; break;
-        case 'NetGroup.Connect.Rejected': errorCode = 708; break;
-        case 'NetStream.Connect.Failed': errorCode = 709; break;
-        case 'NetStream.Connect.Rejected': errorCode = 710; break;
-        case 'NetStream.Failed': errorCode = 711; break;
-        case 'NetStream.Play.Failed': errorCode = 712; break;
+        case 'NetConnection.Call.BadVersion':       errorCode = 700; break;
+        case 'NetConnection.Call.Failed':           errorCode = 701; break;
+        case 'NetConnection.Call.Prohibited':       errorCode = 702; break;
+        case 'NetConnection.Connect.AppShutdown':   errorCode = 703; break;
+        case 'NetConnection.Connect.Failed':        errorCode = 704; break;
+        case 'NetConnection.Connect.InvalidApp':    errorCode = 705; break;
+        case 'NetConnection.Connect.Rejected':      errorCode = 706; break;
+        case 'NetGroup.Connect.Failed':             errorCode = 707; break;
+        case 'NetGroup.Connect.Rejected':           errorCode = 708; break;
+        case 'NetStream.Connect.Failed':            errorCode = 709; break;
+        case 'NetStream.Connect.Rejected':          errorCode = 710; break;
+        case 'NetStream.Failed':                    errorCode = 711; break;
+        case 'NetStream.Play.Failed':               errorCode = 712; break;
         case 'NetStream.Play.FileStructureInvalid': errorCode = 713; break;
-        case 'NetStream.Play.InsufficientBW': errorCode = 714; break;
-        case 'NetStream.Play.StreamNotFound': errorCode = 715; break;
-        case 'NetStream.Publish.BadName': errorCode = 716; break;
-        case 'NetStream.Record.Failed': errorCode = 717; break;
-        case 'NetStream.Record.NoAccess': errorCode = 718; break;
-        case 'NetStream.Seek.Failed': errorCode = 719; break;
-        case 'NetStream.Seek.InvalidTime': errorCode = 720; break;
-        case 'SharedObject.BadPersistence': errorCode = 721; break;
-        case 'SharedObject.Flush.Failed': errorCode = 722; break;
-        case 'SharedObject.UriMismatch': errorCode = 723; break;
+        case 'NetStream.Play.InsufficientBW':       errorCode = 714; break;
+        case 'NetStream.Play.StreamNotFound':       errorCode = 715; break;
+        case 'NetStream.Publish.BadName':           errorCode = 716; break;
+        case 'NetStream.Record.Failed':             errorCode = 717; break;
+        case 'NetStream.Record.NoAccess':           errorCode = 718; break;
+        case 'NetStream.Seek.Failed':               errorCode = 719; break;
+        case 'NetStream.Seek.InvalidTime':          errorCode = 720; break;
+        case 'SharedObject.BadPersistence':         errorCode = 721; break;
+        case 'SharedObject.Flush.Failed':           errorCode = 722; break;
+        case 'SharedObject.UriMismatch':            errorCode = 723; break;

         default:
           ErrorManager.dispatchError(724, [event.info.code]);


Added note about the new Memory class behaviour.

--- apparat-ersatz/src/main/as3/apparat/memory/Memory.as
+++ apparat-ersatz/src/main/as3/apparat/memory/Memory.as
@@ -40,6 +40,15 @@
 	 * @author Joa Ebert
 	 */
 	public final class Memory {
+		//
+		// NOTE: This class works now only if the library has been processed
+		// with TurboDieselSportInjection and alchemyExpansion turned on.
+		//
+		// The code might look completely wrong, but note that TDSI will replace
+		// the calls like Memory.writeByte(address, value) with an Alchemy operation.
+		// Therefore all methods are not recursive after processing the SWC with TDSI.
+		//
+
 		/**
 		 * The current application domain.
 		 * @private


make hq's and encampments more visible (larger)

--- src/battlecode/client/viewer/render/DrawRobot.as
+++ src/battlecode/client/viewer/render/DrawRobot.as
@@ -328,11 +328,11 @@
         private function getUnitScale(type:String):Number {
             switch (type) {
                 case RobotType.HQ:
-                    return 1.4;
+                    return 2.0;
                 case RobotType.SOLDIER:
                     return 1.0;
                 default:
-                    return 1.0;
+                    return 1.6;
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20845
Author:   mhorn@adobe.com
Date:     2011-03-14T15:29:23.391952Z

Log Message:
-----------
merge 20756,20790,20712,20805

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/PlotSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/StringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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

--- frameworks/projects/framework/src/mx/collections/ISortField.as
+++ frameworks/projects/framework/src/mx/collections/ISortField.as
@@ -30,14 +30,11 @@
     //--------------------------------------------------------------------------

     /**
-     *  This helper property is used internally the Array.sortOn method by
-     *  the Sort class. Other uses of this property are not
+     *  This helper property is used internally the findItem() and sort() methods. Other uses of this property are not
      *  supported.
-     *  Return -1 if this ISortField shouldn't be used by the Sort
-     *  class to sort the field.
+     *  Returns -1 if this ISortField shouldn't be used by the Sort
+     *  class to sort the field (there is no compareFunction or no name). Otherwise, returns a bitmask of sort options..
      *
-     *
-     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
@@ -55,7 +52,7 @@
      *
      *
function myCompare(a:Object, b:Object):int

      *
-     *
This function must return the following values:

+     *
This function returns the following values:

      *
      *

      *
-1, if a should appear before b in
@@ -77,7 +74,7 @@
      *  Specifies whether this field should be sorted in descending
      *  order.
      *
-     *
 The default value is false (ascending).

+     *
The default value is false (ascending).

      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -176,7 +173,7 @@
      *  If the field was sorted in descending order, for example, sort it
      *  in ascending order.
      *
-     *
Note: an ICollectionView does not automatically
+     *
NOTE: An ICollectionView does not automatically
      *  update when the ISortFields are modified; call its
      *  refresh() method to update the view.

      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 16973
Author:   aharui@adobe.com
Date:     2010-07-19T18:32:42.783536Z

Log Message:
-----------
Revert 16970 until we're allowed to check in again

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/LayoutManager.as
+++ frameworks/projects/framework/src/mx/managers/LayoutManager.as
@@ -294,13 +294,6 @@
      */
     private var systemManager:ISystemManager;

-	/**
-	 *  @private
-	 *  the current object being validated
-	 *  it could be wrong if the validating object calls validateNow on something.
-	 */
-	private var currentObject:ILayoutManagerClient;
-
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -590,16 +583,13 @@
                 var token:int = perfUtil.markStart();
             }

-			if (obj.nestLevel)
-			{
-				currentObject = obj;
-	            obj.validateProperties();
-	            if (!obj.updateCompletePendingFlag)
-	            {
-	                updateCompleteQueue.addObject(obj, obj.nestLevel);
-	                obj.updateCompletePendingFlag = true;
-	            }
-			}
+            obj.validateProperties();
+            if (!obj.updateCompletePendingFlag)
+            {
+                updateCompleteQueue.addObject(obj, obj.nestLevel);
+                obj.updateCompletePendingFlag = true;
+            }
+
             CONFIG::performanceInstrumentation
             {
                 perfUtil.markEnd(".validateProperties()", token, 2 /*tolerance*/, obj);
@@ -652,17 +642,13 @@
         {
             // trace("LayoutManager calling validateSize() on " + Object(obj));

-			if (obj.nestLevel)
-			{
-				currentObject = obj;
-		        obj.validateSize();
-		        if (!obj.updateCompletePendingFlag)
-		        {
-		            updateCompleteQueue.addObject(obj, obj.nestLevel);
-		            obj.updateCompletePendingFlag = true;
-		        }
-			}
-
+            obj.validateSize();
+            if (!obj.updateCompletePendingFlag)
+            {
+                updateCompleteQueue.addObject(obj, obj.nestLevel);
+                obj.updateCompletePendingFlag = true;
+            }
+
             // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight);

             obj = ILayoutManagerClient(invalidateSizeQueue.removeLargest());
@@ -712,16 +698,13 @@
         {
             // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-			if (obj.nestLevel)
-			{
-				currentObject = obj;
-	            obj.validateDisplayList();
-	            if (!obj.updateCompletePendingFlag)
-	            {
-	                updateCompleteQueue.addObject(obj, obj.nestLevel);
-	                obj.updateCompletePendingFlag = true;
-	            }
-			}
+            obj.validateDisplayList();
+            if (!obj.updateCompletePendingFlag)
+            {
+                updateCompleteQueue.addObject(obj, obj.nestLevel);
+                obj.updateCompletePendingFlag = true;
+            }
+
             // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

             // Once we start, don't stop.
@@ -809,9 +792,9 @@
         {
             usePhasedInstantiation = false;

-			listenersAttached = false;
-
-			var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest());
+            listenersAttached = false;
+
+            var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest());
             while (obj)
             {
                 if (!obj.initialized && obj.processedDescriptors)
@@ -892,8 +875,6 @@
             var token:int = perfUtil.markStart();
         }

-		var lastCurrentObject:ILayoutManagerClient = currentObject;
-
         var obj:ILayoutManagerClient;
         var i:int = 0;
         var done:Boolean = false;
@@ -927,17 +908,13 @@
             {
                 // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-				if (obj.nestLevel)
-				{
-					currentObject = obj;
-	                obj.validateProperties();
-	                if (!obj.updateCompletePendingFlag)
-	                {
-	                    updateCompleteQueue.addObject(obj, obj.nestLevel);
-	                    obj.updateCompletePendingFlag = true;
-	                }
-				}
-
+                obj.validateProperties();
+                if (!obj.updateCompletePendingFlag)
+                {
+                    updateCompleteQueue.addObject(obj, obj.nestLevel);
+                    obj.updateCompletePendingFlag = true;
+                }
+
                 // Once we start, don't stop.
                 obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target));
             }
@@ -957,16 +934,13 @@
             {
                 // trace("LayoutManager calling validateSize() on " + Object(obj));

-				if (obj.nestLevel)
-				{
-					currentObject = obj;
-	                obj.validateSize();
-	                if (!obj.updateCompletePendingFlag)
-	                {
-	                    updateCompleteQueue.addObject(obj, obj.nestLevel);
-	                    obj.updateCompletePendingFlag = true;
-	                }
-				}
+                obj.validateSize();
+                if (!obj.updateCompletePendingFlag)
+                {
+                    updateCompleteQueue.addObject(obj, obj.nestLevel);
+                    obj.updateCompletePendingFlag = true;
+                }
+

                 // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight);

@@ -1003,16 +977,13 @@
                 {
                     // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-					if (obj.nestLevel)
-					{
-						currentObject = obj;
-	                    obj.validateDisplayList();
-	                    if (!obj.updateCompletePendingFlag)
-	                    {
-	                        updateCompleteQueue.addObject(obj, obj.nestLevel);
-	                        obj.updateCompletePendingFlag = true;
-	                    }
-					}
+                    obj.validateDisplayList();
+                    if (!obj.updateCompletePendingFlag)
+                    {
+                        updateCompleteQueue.addObject(obj, obj.nestLevel);
+                        obj.updateCompletePendingFlag = true;
+                    }
+
                     // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

                     if (invalidateClientPropertiesFlag)
@@ -1073,13 +1044,10 @@
             }
         }

-		currentObject = lastCurrentObject;
-
         CONFIG::performanceInstrumentation
         {
             perfUtil.markEnd(" validateClient()", token, 2 /*tolerance*/, target);
         }
-
         // trace("<--- LayoutManager: validateClient --- target = " + target);
     }

@@ -1118,7 +1086,7 @@
         // trace("<<LayoutManager:WaitAFrame");
     }

-    public function attachListeners(systemManager:ISystemManager):void
+    private function attachListeners(systemManager:ISystemManager):void
     {
         if (!waitedAFrame)
         {
@@ -1149,7 +1117,7 @@
             return;

         systemManager.removeEventListener(Event.ENTER_FRAME, doPhasedInstantiationCallback);
-        systemManager.removeEventListener(Event.RENDER, doPhasedInstantiationCallback);
+        systemManager.removeEventListener(Event.RENDER, doPhasedInstantiationCallback);

         if (!UIComponentGlobals.catchCallLaterExceptions)
         {
@@ -1168,11 +1136,9 @@
                 var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
                 callLaterErrorEvent.error = e;
                 callLaterErrorEvent.source = this;
-				callLaterErrorEvent.object = currentObject;
                 systemManager.dispatchEvent(callLaterErrorEvent);
             }
         }
-		currentObject = null;
     }

     private var _usingBridge:int = -1;