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

--- frameworks/projects/framework/src/mx/effects/IEffect.as
+++ frameworks/projects/framework/src/mx/effects/IEffect.as
@@ -0,0 +1,525 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects
+{
+
+import flash.events.Event;
+import flash.events.IEventDispatcher;
+
+/**
+ *  The IEffect interface defines the base
+ *  interface of all Flex effects.
+ *  The IEffectInstance interface defines the base interface for all effect
+ *  instance subclasses.
+ *
+ *  @see mx.effects.IEffectInstance
+ */
+public interface IEffect extends IAbstractEffect
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  className
+    //----------------------------------
+
+    /**
+     *  The name of the effect class, such as "Fade".
+     *
+     *
This is a short, or unqualified, class name
+     *  that does not include the package name.
+     *  If you need the qualified name, use the
+     *  getQualifiedClassName() method
+     *  in the flash.utils package.

+     */
+    function get className():String;
+
+    //----------------------------------
+    //  customFilter
+    //----------------------------------
+
+    /**
+     *  Specifies a custom filter object, of type EffectTargetFilter,
+     *  used by the effect to determine the targets
+     *  on which to play the effect.
+     *
+     *
Target filtering is only performed if you call the
+     *  captureStartValues() method before playing the effect.
+     *  Flex automatically calls the captureStartValues() method
+     *  when the effect is part of a transition.

+     *
+     *
Use the filter property for simple filtering.
+     *  If the customFilter property is non-null,
+     *  the filter property is ignored.

+     *
+     *  @default null
+     *
+     *  @see mx.effects.EffectTargetFilter
+     */
+    function get customFilter():EffectTargetFilter;
+
+    /**
+     *  @private
+     */
+    function set customFilter(value:EffectTargetFilter):void;
+
+    //----------------------------------
+    //  duration
+    //----------------------------------
+
+    /**
+     *  Duration of the effect in milliseconds.
+     *
+     *
In a Parallel or Sequence effect, the duration
+     *  property sets the duration of each effect.
+     *  For example, if a Sequence effect has its duration
+     *  property set to 3000, each effect in the Sequence takes 3000 ms
+     *  to play.

+     *
+     *
For a repeated effect, the duration property
+     *  specifies  the duration of a single instance of the effect.
+     *  Therefore, if an effect has a duration property
+     *  set to 2000, and a repeatCount property set to 3,
+     *  the effect takes a total of 6000 ms (6 seconds) to play.

+     *
+     *  @default 500
+     */
+    function get duration():Number;
+
+    /**
+     *  @private
+     */
+    function set duration(value:Number):void;
+
+    //----------------------------------
+    //  effectTargetHost
+    //----------------------------------
+
+    /**
+     *  A property that lets you access the target list-based control
+     *  of a data effect.
+     *  This property enables an instance of an effect class to communicate
+     *  with the list-based control on which the effect is playing.
+     */
+    function get effectTargetHost():IEffectTargetHost;
+
+    /**
+     *  @private
+     */
+    function set effectTargetHost(value:IEffectTargetHost):void;
+
+    //----------------------------------
+    //  filter
+    //----------------------------------
+
+    /**
+     *  Specifies an algorithm for filtering targets for an effect.
+     *  A value of null specifies no filtering.
+     *
+     *
Target filtering is only performed if you call the
+     *  captureStartValues() method before playing the effect.
+     *  Flex automatically calls the captureStartValues() method
+     *  when the effect is part of a transition, or part of a data effect
+     *  for a list-based control.

+     *
+     *
Use this property for simple filtering.
+     *  Use the customFilter property for more complex filtering.
+     *  If the customFilter property has a non-null value,
+     *  this property is ignored.

+     *
+     *
You can use the following values for the filter
+     *  property:

+     *
+     *

+     *
A value of "add" plays the effect on any targets
+     *      that are added as a child to a container.

+     *
A value of "addItem" plays the effect
+     *      on the item renderer for any list items added to a List
+     *      or TileList control.

+     *
A value of "hide" plays the effect on any targets
+     *      whose visible property changed from true to
+     *      false.

+     *
A value of "move" plays the effect on any targets
+     *      that changed their x or y
+     *      properties.

+     *
A value of "remove" plays the effect on any targets
+     *      that are removed as a child of a container.

+     *
A value of "removeItem" plays the effect
+     *      on the item renderer for any list items removed from a List
+     *      or TileList control.

+     *
A value of "replacedItem" plays the effect
+     *      on the item renderer for any list items replaced in a List
+     *      or TileList control by a new item.

+     *
A value of "replacementItem" plays the effect
+     *      on the item renderer for any list items added to a List
+     *      or TileList control that replaces an existing item.

+     *
A value of "resize" plays the effect
+     *      on any targets that changed their width
+     *      or height properties.

+     *
A value of "show" plays the effect
+     *      on any targets whose visible property changed
+     *      from false to true.

+     *
A value of "" specifies no filtering.

+     *

+     *
+     *  @default null
+     */
+    function get filter():String;
+
+    /**
+     *  @private
+     */
+    function set filter(value:String):void;
+
+    //----------------------------------
+    //  hideFocusRing
+    //----------------------------------
+
+    /**
+     *  Determines whether the effect should hide the focus ring
+     *  when starting the effect.
+     *  The effect target is responsible for the hiding the focus ring.
+     *  Subclasses of the UIComponent class hide the focus ring automatically.
+     *  If the effect target is not a subclass of the UIComponent class,
+     *  you must add functionality to it to hide the focus ring.
+     *
+     *
Set this property to true
+     *  to hide the focus ring during the effect.

+     *
+     *
For subclasses of Effect, the default value is false.
+     *  For subclasses of MaskEffect, the default value is true.
+     *

+     */
+    function get hideFocusRing():Boolean;
+
+    /**
+     *  @private
+     */
+    function set hideFocusRing(value:Boolean):void;
+
+    //----------------------------------
+    //  isPlaying
+    //----------------------------------
+
+    /**
+     *  A read-only flag which is true if any instances of the effect
+     *  are currently playing, and false if none are.
+     */
+    function get isPlaying():Boolean;
+
+    //----------------------------------
+    //  perElementOffset
+    //----------------------------------
+
+    /**
+     *  Additional delay, in milliseconds, for effect targets
+     *  after the first target of the effect.
+     *  This value is added to the value
+     *  of the startDelay property.
+     */
+    function get perElementOffset():Number;
+
+    /**
+     *  @private
+     */
+    function set perElementOffset(value:Number):void;
+
+    //----------------------------------
+    //  relevantProperties
+    //----------------------------------
+
+    /**
+     *  An Array of property names to use when performing filtering.
+     *  This property is used internally and should not be set by
+     *  effect users.
+     *
+     *
The default value is equal to the Array returned by
+     *  the getAffectedProperties() method.

+     */
+    function get relevantProperties():Array /* of String */;
+
+    /**
+     *  @private
+     */
+    function set relevantProperties(values:Array /* of String */):void;
+
+    //----------------------------------
+    //  relevantStyles
+    //----------------------------------
+
+    /**
+     *  An Array of style names to use when performing filtering.
+     *  This property is used internally and should not be set by
+     *  effect users.
+     *
+     *
The default value is equal to the Array returned by
+     *  the getAffectedProperties() method.

+     */
+    function get relevantStyles():Array /* of String */;
+
+    /**
+     *  @private
+     */
+    function set relevantStyles(values:Array /* of String */):void;
+
+
+    //----------------------------------
+    //  target
+    //----------------------------------
+
+    /**
+     *  The UIComponent object to which this effect is applied.
+     *  When an effect is triggered by an effect trigger,
+     *  the target property is automatically set to be
+     *  the object that triggers the effect.
+     */
+    function get target():Object;
+
+    /**
+     *  @private
+     */
+    function set target(value:Object):void;
+
+    //----------------------------------
+    //  targets
+    //----------------------------------
+
+    /**
+     *  An Array of UIComponent objects that are targets for the effect.
+     *  When the effect is playing, it performs the effect on each target
+     *  in parallel.
+     *  Setting the target property replaces all objects
+     *  in this Array.
+     *  When the targets property is set, the target
+     *  property returns the first item in this Array.
+     */
+    function get targets():Array;
+
+    /**
+     *  @private
+     */
+    function set targets(value:Array):void;
+
+    //----------------------------------
+    //  triggerEvent
+    //----------------------------------
+
+    /**
+     *  The Event object passed to this Effect
+     *  by the EffectManager when an effect is triggered,
+     *  or null if the effect is not being
+     *  played by the EffectManager.
+     */
+    function get triggerEvent():Event;
+
+    /**
+     *  @private
+     */
+    function set triggerEvent(value:Event):void;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns an Array of Strings, where each String is the name
+     *  of a property that is changed by this effect.
+     *  For example, the Move effect returns an Array that contains
+     *  "x" and "y".
+     *
+     *
Every subclass of Effect must implement this method.
+     *  The method is used by the EffectManager
+     *  to ensure that no two effects are trying to animate
+     *  the same property of the same object at the same time.

+     *
+     *  @return An Array of Strings specifying the names of the
+     *  properties modified by this effect.
+     */
+    function getAffectedProperties():Array /* of String */;
+
+    /**
+     *  Takes an Array of target objects and invokes the
+     *  createInstance() method on each target.
+     *
+     *  @param targets Array of objects to animate with this effect.
+     *
+     *  @return Array of effect instance objects, one per target,
+     *  for the effect.
+     */
+    function createInstances(targets:Array = null):Array /* of EffectInstance */;
+
+    /**
+     *  Creates a single effect instance and initializes it.
+     *  Use this method instead of the play() method
+     *  to manipulate the effect instance properties
+     *  before the effect instance plays.
+     *
+     *
The effect instance is created with the type
+     *  specified in the instanceClass property.
+     *  It is then initialized using the initInstance() method.
+     *  If the instance was created by the EffectManager
+     *  (when the effect is triggered by an effect trigger),
+     *  the effect is further initialized by a call to the
+     *  EffectInstance.initEffect() method.

+     *
+     *
Calling the createInstance() method
+     *  does not play the effect.
+     *  You must call the startEffect() method
+     *  on the returned effect instance.

+     *
+     *
This function is automatically called by the
+     *  Effect.play() method.

+     *
+     *  @param target Object to animate with this effect.
+     *
+     *  @return The effect instance object for the effect.
+     */
+    function createInstance(target:Object = null):IEffectInstance;
+
+    /**
+     *  Removes event listeners from an instance
+     *  and removes it from the list of instances.
+     */
+    function deleteInstance(instance:IEffectInstance):void;
+
+    /**
+     *  Begins playing the effect.
+     *  You typically call the end() method
+     *  before you call the play() method
+     *  to ensure that any previous instance of the effect
+     *  has ended before you start a new one.
+     *
+     *
All subclasses must implement this method.

+     *
+     *  @param targets Array of target objects on which to play this effect.
+     *  If this parameter is specified, then the effect's targets
+     *  property is not used.
+     *
+     *  @param playReversedFromEnd If true,
+     *  play the effect backwards.
+     *
+     *  @return Array of EffectInstance objects, one per target,
+     *  for the effect.
+     */
+    function play(targets:Array = null,
+                  playReversedFromEnd:Boolean = false):
+                  Array /* of EffectInstance */;
+
+    /**
+     *  Pauses the effect until you call the resume() method.
+     */
+    function pause():void;
+
+    /**
+     *  Stops the effect, leaving the effect targets in their current state.
+     *  Unlike a call to the pause() method,
+     *  you cannot call the resume() method after calling
+     *  the stop() method.
+     *  However, you can call the play() method to restart the effect.
+     *
+     *
The effect instance dispatches an effectEnd event
+     *  when you call this method as part of ending the effect.

+     *
+     *
For mask effects, the mask is not removed automatically
+     *  when the effect is stopped.
+     *  Running further mask effects on the same target(s)
+     *  without first removing the mask may produce unexpected results.

+     */
+    function stop():void;
+
+    /**
+     *  Resumes the effect after it has been paused
+     *  by a call to the pause() method.
+     */
+    function resume():void;
+
+    /**
+     *  Plays the effect in reverse, if the effect is currently playing,
+     *  starting from the current position of the effect.
+     */
+    function reverse():void;
+
+    /**
+     *  Interrupts an effect that is currently playing,
+     *  and jumps immediately to the end of the effect.
+     *  Calling this method invokes the EffectInstance.end()
+     *  method.
+     *
+     *
The effect instance dispatches an effectEnd event
+     *  when you call this method as part of ending the effect.

+     *
+     *
If you pass an effect instance as an argument,
+     *  just that instance is interrupted.
+     *  If no argument is passed in, all effect instances currently
+     *  spawned from the effect are interrupted.

+     *
+     *  @param effectInstance EffectInstance to terminate.
+     *
+     *  @see mx.effects.EffectInstance#end()
+     */
+    function end(effectInstance:IEffectInstance = null):void;
+
+    /**
+     *  Captures the current values of the relevant properties
+     *  on the effect's targets.
+     *  Flex automatically calls the captureStartValues()
+     *  method when the effect is part of a transition.
+     *
+     *
Use this function when you want the effect to figure out the start
+     *  and end values of the effect.
+     *  The proper usage of this function is to use it
+     *  in the following steps:

+     *
+     *

+     *
Call the captureStartValues() method.
+     *      The effect captures the starting effect values.

+     *
Make changes to your effect targets, such as
+     *      adding/removing children, altering properties,
+     *      changing location, or changing dimensions.

+     *
Call the play() method.
+     *      The effect captures the end values.
+     *      This function populates the
+     *      EffectInstance.propertyChanges property
+     *      for each effect instance created by this effect.
+     *      Effect developers can use the propertyChanges property
+     *      to retrieve the start and end values for their effect.

+     *

+     */
+    function captureStartValues():void;
+
+    /**
+     *  Captures the current values of the relevant properties
+     *  of an additional set of targets
+     *
+     *
This function is used by Flex when a data change
+     *  effect is run.

+     *
+     *  @param targets Array of targets for which values will be captured
+     */
+    function captureMoreStartValues(targets:Array):void;
+
+    /**
+     *  Captures the current values of the relevant properties
+     *  on the effect's targets and saves them as end values.
+     *
+     *
Flex automatically calls the captureEndValues() method
+     *  when the effect is part of a data change effect.

+     */
+    function captureEndValues():void;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11244
Author:   clucier@adobe.com
Date:     2009-10-28T21:04:28.291918Z

Log Message:
-----------
Removing control bar specific logic from AddItems as it is no longer needed and was causing some issues.

QE notes: None
Doc notes: None
Bugs: SDK-23889
Reviewer: Alex
Tests run: Checkin, TitleWindow
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/AddItems.as

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -542,10 +542,6 @@
         {
             addItemsToContentHolder(dest as IVisualElementContainer, localItems);
         }
-        else if (propertyName == "controlBarContent" && (dest is IVisualElementContainer))
-        {
-            addItemsToControlBar(dest as IVisualElementContainer, localItems);
-        }
         else if (propertyName == null && dest is IChildList)
         {
             addItemsToContainer(dest as IChildList, localItems);
@@ -602,11 +598,6 @@
         {
             for (i = 0; i < numAdded; i++)
                 IVisualElementContainer(dest).removeElementAt(startIndex);
-        }
-        else if (propertyName == "controlBarContent" && (dest is IVisualElementContainer))
-        {
-            for (i = 0; i < numAdded; i++)
-                IVisualElementContainer(dest)["controlBarGroup"].removeElementAt(startIndex);
         }
         else if (propertyName == null && dest is IChildList)
         {
@@ -667,9 +658,6 @@
             if ((propertyName == null || propertyName == "mxmlContent") && (dest is IVisualElementContainer))
                 return IVisualElementContainer(dest).getElementIndex(object as IVisualElement);

-            if ((propertyName == null || propertyName == "controlBarContent") && (dest is IVisualElementContainer))
-                return IVisualElementContainer(dest)["controlBarGroup"].getElementIndex(object as IVisualElement);
-
             if (propertyName == null && dest is IChildList)
                 return IChildList(dest).getChildIndex(DisplayObject(object));

@@ -722,21 +710,7 @@
         for (var i:int = 0; i < items.length; i++)
             dest.addElementAt(items[i], startIndex + i);
     }
-
-    /**
-     *  @private
-     */
-    protected function addItemsToControlBar(dest:IVisualElementContainer, items:Array):void
-    {
-        dest = dest["controlBarGroup"];
-
-        if (startIndex == -1)
-            startIndex = dest.numElements;
-
-        for (var i:int = 0; i < items.length; i++)
-            dest.addElementAt(items[i], startIndex + i);
-    }
-
+
     /**
      *  @private
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 18351
Author:   cframpto@adobe.com
Date:     2010-10-28T19:40:47.134160Z

Log Message:
-----------
Many DataGrid fixes.

DescribeTypeCache.as/describeType
	a string which wasn't a definition would RTE (SDK-28237)

UIFTETestField.as
	explicitWidth/Height always pushed down to FTETextField even if setLayoutBounds set width/height after explcitWidth/Height was set (SDK-27844, SDK-28130)
	alphabetized the properties

GridItemRenderer.as
	should not show dataTip on header (SDK-28212)
	prepare and discard arg names were swapped

DataGrid.as
	if mouse down on a part of the grid where there isn't a row/cell it should be a no-op (SDK-28013)

DefaultGridHeaderRenderer.as
	should show truncation tip if header is truncated (SDK-27259)

TextFieldGridItemRenderInclude.as
	should not show dataTip on header (SDK-28212)

QE notes: setting explicitWidth/Height on the grid IR now does what it should and height/width for text will be reduced by the padding
Doc notes:
Bugs: SDK-28212, SDK-27259, SDK-28237, SDK-27844, SDK-28130
Reviewer: Hans
Tests run: a few cyclones
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/bin</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -393,6 +393,20 @@

     /**
      *  @private
+     *  TextField only has a width.  Need to remember if explicitWidth should
+     *  be used or width should be used.
+     */
+    private var useExplicitWidth:Boolean = false;
+
+    /**
+     *  @private
+     *  TextField only has a height.  Need to remember if explicitHeight should
+     *  be used or height should be used.
+     */
+    private var useExplicitHeight:Boolean = false;
+
+    /**
+     *  @private
      *  True if we've inherited layoutDirection="rtl".
      */
     private var mirror:Boolean = false;
@@ -404,47 +418,18 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  x
-    //----------------------------------
-
-    private var _x:Number = 0;
-
-    /**
-     *  @private
-     */
-    override public function set x(value:Number):void
-    {
-        _x = value;
-        super.x = value;
-        if (mirror)
-            validateTransformMatrix();
-    }
-
-    /**
-     *  @private
-     */
-    override public function get x():Number
-    {
-        // TODO(hmuller): by default get x returns transform.matrix.tx rounded to the nearest 20th.
-        // should do the same here, if we're returning _x.
-        return (mirror) ? _x : super.x;
-    }
-
-    //----------------------------------
-    //  width
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function set width(value:Number):void
-    {
-        super.width = value;
-        if (mirror)
-            validateTransformMatrix();
-    }
-
-
+    //  height
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set height(value:Number):void
+    {
+        super.height = value;
+        useExplicitHeight = false;
+    }
+
     //----------------------------------
     //  htmlText
     //----------------------------------
@@ -552,6 +537,49 @@
 		setColor(value);
 	}

+    //----------------------------------
+    //  width
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set width(value:Number):void
+    {
+        super.width = value;
+        if (mirror)
+            validateTransformMatrix();
+
+        useExplicitWidth = false;
+    }
+
+    //----------------------------------
+    //  x
+    //----------------------------------
+
+    private var _x:Number = 0;
+
+    /**
+     *  @private
+     */
+    override public function set x(value:Number):void
+    {
+        _x = value;
+        super.x = value;
+        if (mirror)
+            validateTransformMatrix();
+    }
+
+    /**
+     *  @private
+     */
+    override public function get x():Number
+    {
+        // TODO(hmuller): by default get x returns transform.matrix.tx rounded to the nearest 20th.
+        // should do the same here, if we're returning _x.
+        return (mirror) ? _x : super.x;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -902,6 +930,7 @@
     public function set explicitHeight(value:Number):void
     {
         _explicitHeight = value;
+        useExplicitHeight = true;
     }

     //----------------------------------
@@ -1017,6 +1046,7 @@
     public function set explicitWidth(value:Number):void
     {
         _explicitWidth = value;
+        useExplicitWidth = true;
     }

     //----------------------------------
@@ -2150,11 +2180,19 @@
         if (!parent)
             return;

-        // If mirroring, setting width can change the transform matrix.
-        if (!isNaN(explicitWidth) && super.width != explicitWidth)
-            width = (explicitWidth > 4) ? explicitWidth : 4;
-
-        if (!isNaN(explicitHeight) && super.height != explicitHeight)
+        // If the explicitWidth was set, and the width wasn't set after that,
+        // for example by setLayoutBoundsSize(), push the explicit width
+        // down to the TextField to use as its width.
+        if (useExplicitWidth && !isNaN(explicitWidth) && width != explicitWidth)
+        {
+            super.width = (explicitWidth > 4) ? explicitWidth : 4;
+            // Update the transform matrix with the new width.
+            if (mirror)
+                validateTransformMatrix();
+        }
+
+        // Same as for width above.
+        if (useExplicitHeight && !isNaN(explicitHeight) && height != explicitHeight)
             super.height = explicitHeight;

         // If ancestor is mirroring, need to flip this so it is not


Transferred from the Adobe Open Source Subversion Repository

Revision: 7584
Author:   gosmith@adobe.com
Date:     2009-06-05T18:47:53.314746Z

Log Message:
-----------
This should have been part of 7573. When I changed the code for "kerning" and "textAlign" styles in UITextField, I forgot to make the corresponding change to UITLFTextField.

QE Notes: None
Doc Notes: None
Bugs: Breakage in performance tests
Reviewer: Corey to review

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -18,6 +18,7 @@
 import flash.events.Event;
 import flash.text.TextField;
 import flash.text.TextFormat;
+import flash.text.TextFormatAlign;
 import flash.text.TextLineMetrics;
 import flashx.textLayout.controls.TLFTextField;
 import flashx.textLayout.compose.ITextLineCreator;
@@ -2096,7 +2097,14 @@
     {
         var textFormat:TextFormat = new TextFormat();

-        textFormat.align = getStyle("textAlign");
+        var textAlign:String = getStyle("textAlign");
+        // Map new Spark values that might be set in a selector
+		// affecting both Halo and Spark components.
+        if (textAlign == "start")
+            textAlign = TextFormatAlign.LEFT;
+        else if (textAlign == "end")
+            textAlign = TextFormatAlign.RIGHT;
+        textFormat.align = textAlign;
         textFormat.bold = getStyle("fontWeight") == "bold";
         if (enabled)
         {
@@ -2112,7 +2120,14 @@
         textFormat.font = StringUtil.trimArrayElements(getStyle("fontFamily"),",");
         textFormat.indent = getStyle("textIndent");
         textFormat.italic = getStyle("fontStyle") == "italic";
-        textFormat.kerning = getStyle("kerning");
+		var kerning:* = getStyle("kerning");
+        // Map new Spark values that might be set in a selector
+		// affecting both Halo and Spark components.
+		if (kerning == "auto" || kerning == "on")
+			kerning = true;
+		else if (kerning == "off")
+			kerning = false;
+        textFormat.kerning = kerning;
         textFormat.leading = getStyle("leading");
         textFormat.leftMargin = ignorePadding ? 0 : getStyle("paddingLeft");
         textFormat.letterSpacing = getStyle("letterSpacing");


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -2024,12 +2024,10 @@
             var textFormat:TextFormat = getTextStyles();
             if (textFormat.font)
             {
-                var embeddedFont:EmbeddedFont = getEmbeddedFont(
-                    textFormat.font, textFormat.bold, textFormat.italic);
-
                 var fontModuleFactory:IFlexModuleFactory =
                     embeddedFontRegistry.getAssociatedModuleFactory(
-                        embeddedFont, moduleFactory);
+                    textFormat.font, textFormat.bold, textFormat.italic,
+                        this, moduleFactory);

                 // if we found the font, then it is embedded.
                 // Some fonts are not listed in info(), so are not in the above registry.
@@ -2365,7 +2363,7 @@
         if (cachedEmbeddedFont)
         {
             if (cachedEmbeddedFont.fontName == fontName &&
-                cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(bold, italic))
+                cachedEmbeddedFont.fontStyle == embeddedFontRegistry.getFontStyle(bold, italic))
             {
                 return cachedEmbeddedFont;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20043
Author:   hmuller@adobe.com
Date:     2011-02-01T23:48:15.622100Z

Log Message:
-----------
Revise TextFieldGridItemRendererInclude.as/discard() - clear wordWrap and multiline only if they were set automatically.

QE notes:
Doc notes:
Bugs: SDK-29261
Reviewer: Carol
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as

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

--- frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
+++ frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as
@@ -507,15 +507,6 @@
         multilineSet = true;
     }

-    /**
-     *  @private
-     *  See updatePreferredSize().
-     */
-    private function setMultiline(value:Boolean):void
-    {
-        super.multiline = value;
-    }
-
     //----------------------------------
     //  text
     //----------------------------------
@@ -538,6 +529,8 @@
     //  wordWrap
     //----------------------------------

+    private var wordWrapSet:Boolean = false;  // true if explicitly set
+
     /**
      *  @private
      *  If set, then set the wordWrapSet flag.  This is used to enable the updatePreferredSize()
@@ -549,8 +542,6 @@
         super.wordWrap = value;
         wordWrapSet = true;
     }
-
-    private var wordWrapSet:Boolean = false;

     //--------------------------------------------------------------------------
     //
@@ -626,7 +617,7 @@
         // text actually contains a newline, since doing so is expensive.

         if (!multilineSet && (getStyle("lineBreak") == "explicit"))
-            setMultiline(_label.indexOf("\n") != -1);
+            super.multiline = _label.indexOf("\n") != -1;

         text = _label;
         super.validateNow();
@@ -703,8 +694,10 @@
      */
     public function discard(hasBeenRecycled:Boolean):void
     {
-        setMultiline(false);
-        multilineSet = false;
+        if (!multilineSet)
+            super.multiline = false;
+        if (!wordWrapSet)
+            super.wordWrap = false;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20202
Author:   cframpto@adobe.com
Date:     2011-02-08T19:51:01.258332Z

Log Message:
-----------
Add missing periods in ASdoc.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
@@ -13,7 +13,7 @@
  *  Specifies a vertical or horizontal progression of line placement.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.blockProgression

+ *  flashx.textLayout.formats.ITextLayoutFormat.blockProgression.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -31,7 +31,7 @@
  *  lines.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.breakOpportunity

+ *  flashx.textLayout.formats.ITextLayoutFormat.breakOpportunity.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -48,7 +48,7 @@
  *  Controls how text wraps around a float.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.clearFloats

+ *  flashx.textLayout.formats.ITextLayoutFormat.clearFloats.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -65,7 +65,7 @@
  *  Specifies the baseline position of the first line in the container.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.firstBaselineOffset

+ *  flashx.textLayout.formats.ITextLayoutFormat.firstBaselineOffset.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -83,7 +83,7 @@
  *  direction.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.leadingModel

+ *  flashx.textLayout.formats.ITextLayoutFormat.leadingModel.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -101,7 +101,7 @@
  *  the list on that side is auto.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.listAutoPadding

+ *  flashx.textLayout.formats.ITextLayoutFormat.listAutoPadding.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -118,7 +118,7 @@
  *  This controls the placement of a list item marker relative to the list item.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.listStylePosition

+ *  flashx.textLayout.formats.ITextLayoutFormat.listStylePosition.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -135,7 +135,7 @@
  *  This controls the appearance of items in a list.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.listStyleType

+ *  flashx.textLayout.formats.ITextLayoutFormat.listStyleType.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -152,7 +152,7 @@
  *  The amount to indent the paragraph's end edge.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.paragraphEndIndent

+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphEndIndent.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -169,7 +169,7 @@
  *  The amount of space to leave after the paragraph.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceAfter

+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceAfter.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -186,7 +186,7 @@
  *  The amount of space to leave before the paragraph.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceBefore

+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceBefore.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -203,7 +203,7 @@
  *  The amount to indent the paragraph's start edge.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.paragraphStartIndent

+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphStartIndent.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -220,7 +220,7 @@
  *  Specifies the tab stops associated with the paragraph.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.tabStops

+ *  flashx.textLayout.formats.ITextLayoutFormat.tabStops.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -237,10 +237,10 @@
  *  Offset of first line of text from the left side of the container.
  * .
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.textIndent

+ *  flashx.textLayout.formats.ITextLayoutFormat.textIndent.

  *
  *
For the Mobile theme, see
- *  spark.components.supportClasses.StyleableTextField Style textIndent

+ *  spark.components.supportClasses.StyleableTextField Style textIndent.

  *
  *  @see flashx.textLayout.formats.ITextLayoutFormat#textIndent
  *  @see spark.components.supportClasses.StyleableTextField#style:textIndent
@@ -256,7 +256,7 @@
  *  Determines the number of degrees to rotate this text.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.textRotation

+ *  flashx.textLayout.formats.ITextLayoutFormat.textRotation.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -273,7 +273,7 @@
  *  Collapses or preserves whitespace when importing text into a TextFlow.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.whiteSpaceCollapse

+ *  flashx.textLayout.formats.ITextLayoutFormat.whiteSpaceCollapse.

  *
  *
For the Mobile theme, this is not supported.

  *
@@ -290,7 +290,7 @@
  *  Specifies the spacing between words to use during justification.
  *
  *
For the Spark theme, see
- *  flashx.textLayout.formats.ITextLayoutFormat.wordSpacing

+ *  flashx.textLayout.formats.ITextLayoutFormat.wordSpacing.

  *
  *
For the Mobile theme, this is not supported.

  *


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

--- frameworks/projects/framework/src/mx/core/IFlexDisplayObject.as
+++ frameworks/projects/framework/src/mx/core/IFlexDisplayObject.as
@@ -0,0 +1,117 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+import flash.accessibility.AccessibilityProperties;
+import flash.display.DisplayObject;
+import flash.display.DisplayObjectContainer;
+import flash.display.IBitmapDrawable;
+import flash.display.LoaderInfo;
+import flash.display.Stage;
+import flash.events.IEventDispatcher;
+import flash.geom.Rectangle;
+import flash.geom.Point;
+import flash.geom.Transform;
+
+/**
+ *  The IFlexDisplayObject interface defines the interface for skin elements.
+ *  At a minimum, a skin must be a DisplayObject and implement this interface.
+ */
+public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher
+{
+
+include "IDisplayObjectInterface.as"
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+
+	//----------------------------------
+	//  measuredHeight
+	//----------------------------------
+
+	/**
+	 *  The measured height of this object.
+	 *
+	 *
This is typically hard-coded for graphical skins
+	 *  because this number is simply the number of pixels in the graphic.
+	 *  For code skins, it can also be hard-coded
+	 *  if you expect to be drawn at a certain size.
+	 *  If your size can change based on properties, you may want
+	 *  to also be an ILayoutManagerClient so a measure()
+	 *  method will be called at an appropriate time,
+	 *  giving you an opportunity to compute a measuredHeight.

+	 */
+	function get measuredHeight():Number;
+
+	//----------------------------------
+	//  measuredWidth
+	//----------------------------------
+
+	/**
+	 *  The measured width of this object.
+	 *
+	 *
This is typically hard-coded for graphical skins
+	 *  because this number is simply the number of pixels in the graphic.
+	 *  For code skins, it can also be hard-coded
+	 *  if you expect to be drawn at a certain size.
+	 *  If your size can change based on properties, you may want
+	 *  to also be an ILayoutManagerClient so a measure()
+	 *  method will be called at an appropriate time,
+	 *  giving you an opportunity to compute a measuredHeight.

+	 */
+	function get measuredWidth():Number;
+
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Moves this object to the specified x and y coordinates.
+	 *
+	 *  @param x The new x-position for this object.
+	 *
+	 *  @param y The new y-position for this object.
+	 */
+	function move(x:Number, y:Number):void;
+
+	/**
+	 *  Sets the actual size of this object.
+	 *
+	 *
This method is mainly for use in implementing the
+	 *  updateDisplayList() method, which is where
+	 *  you compute this object's actual size based on
+	 *  its explicit size, parent-relative (percent) size,
+	 *  and measured size.
+	 *  You then apply this actual size to the object
+	 *  by calling setActualSize().

+	 *
+	 *
In other situations, you should be setting properties
+	 *  such as width, height,
+	 *  percentWidth, or percentHeight
+	 *  rather than calling this method.

+	 *
+	 *  @param newWidth The new width for this object.
+	 *
+	 *  @param newHeight The new height for this object.
+	 */
+	function setActualSize(newWidth:Number, newHeight:Number):void;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12469
Author:   jimurphy@adobe.com
Date:     2009-12-03T22:04:16.560316Z

Log Message:
-----------
fix offsets for FB.  Convert line ending from lf to crlf in svn for the proects directory only.  When checking project files in, be sure to save you files this way.  Another update to make sure happens is set the svn properties svn:eol-style = native and svn:mime-type = text/plain (these have been updated on theses files as well)

QE notes: make sure the proper class is selected
Doc notes: no
Bugs: http://bugs.adobe.com/jira/browse/SDK-24498
Reviewer:
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
133 paths were modified

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

--- frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
+++ frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
@@ -54,4 +54,4 @@
     public static const SCALE:String = "scale";
 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12785
Author:   mhorn@adobe.com
Date:     2009-12-10T15:33:19.460787Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/ImageSnapshot.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/GradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/GradientStroke.as
@@ -133,8 +133,7 @@
     [Inspectable(category="General", enumeration="round,square,none", defaultValue="round")]

     /**
-     *  A value from the CapsStyle class
-     *  that specifies the type of caps at the end of lines.
+     *  Specifies the appearance of the ends of lines.
      *
      *
Valid values are CapsStyle.NONE,
      *  CapsStyle.ROUND, and CapsStyle.SQUARE.
@@ -142,6 +141,8 @@
      *  CapsStyle.ROUND.

      *
      *  @default CapsStyle.ROUND
+     *
+     *  @see flash.display.CapStyle
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -190,6 +191,8 @@
      *  JointStyle.ROUND.

      *
      *  @default JointStyle.ROUND
+     *
+     *  @see flash.display.JointStyle
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -234,10 +237,10 @@
      *
Valid values range from 0 to 255
      *  (and values outside of that range are rounded to 0 or 255).

      *
-     *
This value is only used if the jointStyle
+     *
This value is only used if the jointStyle property
      *  is set to JointStyle.MITER.

      *
-     *
The miterLimit value represents the length that a miter
+     *
The value of the miterLimit property represents the length that a miter
      *  can extend beyond the point at which the lines meet to form a joint.
      *  The value expresses a factor of the line thickness.
      *  For example, with a miterLimit factor of 2.5
@@ -334,9 +337,7 @@
     [Inspectable(category="General", enumeration="normal,vertical,horizontal,none", defaultValue="normal")]

     /**
-     *  A value from the LineScaleMode class
-     *  that  specifies which scale mode to use.
-     *  Value valids are:
+     *  Specifies which scale mode to use. Value valids are:
      *
      *

      *

@@ -360,6 +361,8 @@
      *

      *
      *  @default LineScaleMode.NORMAL
+     *
+     *  @see flash.display.LineScaleMode
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 4815
Author:   matamel@adobe.com
Date:     2009-02-03T18:47:12.905037Z

Log Message:
-----------
Feature: Client side load balancing.
QA: Yes
Doc: Yes
Checkintests: Pass
Reviewer: Seth

Details: Added client side code for client side load balancing as described in 2 tier messaging spec.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as
+++ frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as
@@ -23,11 +23,8 @@
 import mx.messaging.config.LoaderConfig;
 import mx.messaging.errors.InvalidChannelError;
 import mx.messaging.errors.InvalidDestinationError;
-import mx.messaging.errors.MessagingError;
-import mx.messaging.messages.IMessage;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
-import mx.utils.StringUtil;
 import mx.utils.ObjectUtil;

 use namespace mx_internal;
@@ -326,11 +323,17 @@
             var dsUris:Array = [];
             var dsChannels:XMLList;
             var channelConfig:XML;
+            var endpoint:XML;
+            var dsUri:String;
             for (var j:uint = 0; j<ids.length; j++)
             {
                 dsChannels = xml.channels.channel.(@id == ids[j]);
                 channelConfig = dsChannels[0];
-                dsUris.push(channelConfig.endpoint[0].attribute(URI_ATTR).toString());
+                endpoint = channelConfig.endpoint;
+                // uri might be undefined when client-load-balancing urls are specified.
+                dsUri = endpoint.length() > 0? endpoint[0].attribute(URI_ATTR).toString() : null;
+                if (dsUri != null)
+                    dsUris.push(dsUri);
             }

             return ObjectUtil.compare(csUris, dsUris) == 0;
@@ -448,7 +451,7 @@
             var newChannels:XMLList = newServices.channels;
             if (newChannels.length() > 0)
             {
-                   var oldChannels:XML = xml.channels[0];
+                var oldChannels:XML = xml.channels[0];
                 if (oldChannels == null || oldChannels.length() == 0)
                 {
                     xml.appendChild(newChannels);
@@ -505,7 +508,9 @@

         var channelConfig:XML = channels[0];
         var className:String = channelConfig.attribute(CLASS_ATTR).toString();
-        var uri:String = channelConfig.endpoint[0].attribute(URI_ATTR).toString();
+        var endpoint:XMLList = channelConfig.endpoint;
+        /// uri might be undefined when client-load-balancing urls are specified.
+        var uri:String = endpoint.length() > 0? endpoint[0].attribute(URI_ATTR).toString() : null;
         var channel:Channel = null;
         try
         {
@@ -541,9 +546,7 @@
                 if (propertyKey == "")
                 {
                     // Add as a value
-                    var name:Object = configXML.localName();
-                    var parent:XML = configXML.parent();
-                    parent[name] = propertyValue;
+                    configXML.appendChild(propertyValue);
                 }
                 else
                 {
@@ -561,14 +564,14 @@

                 for (var i:int = 0; i < propertyValueList.length; i++)
                 {
-                       var propertyXML1:XML = <{propertyKey}></{propertyKey}>
+                    var propertyXML1:XML = <{propertyKey}></{propertyKey}>
                     configXML.appendChild(propertyXML1);
                     convertToXML(propertyValueList[i] as ConfigMap, propertyXML1);
                 }
             }
             else // assuming that it is ConfigMap
             {
-                   var propertyXML2:XML = <{propertyKey}></{propertyKey}>
+                var propertyXML2:XML = <{propertyKey}></{propertyKey}>
                 configXML.appendChild(propertyXML2);
                 convertToXML(propertyValue as ConfigMap, propertyXML2);
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10061
Author:   clucier@adobe.com
Date:     2009-09-08T18:42:54.203356Z

Log Message:
-----------
Removing accidental inclusion of test code.

;)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -1451,11 +1451,6 @@
 		return super.transform;
 	}

-    public function get coreyWidth():Number
-    {
-        return super.x;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Overridden methods
@@ -1535,7 +1530,7 @@
         invalidateTransform();
     }

-    public function get preferredWidth():Number
+    private function get preferredWidth():Number
     {
         if (!isNaN(_explicitWidth))
             return _explicitWidth;
@@ -1544,7 +1539,7 @@
         return naturalWidth;
     }

-    public function get preferredHeight():Number
+    private function get preferredHeight():Number
     {
         if (!isNaN(_explicitHeight))
             return _explicitHeight;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11675
Author:   hmuller@adobe.com
Date:     2009-11-12T00:25:39.300334Z

Log Message:
-----------
Added minValue,maxValue,etc Style/Inspectable metadata tags for tools.

QE notes:
Doc notes:
Bugs: sdk-24100
Reviewer: Glenn
Tests run:
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.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/spark/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientEntry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -274,7 +274,7 @@

     private var _paddingLeft:Number = 0;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  Number of pixels between the container's left edge
@@ -310,7 +310,7 @@

     private var _paddingRight:Number = 0;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  Number of pixels between the container's right edge
@@ -346,7 +346,7 @@

     private var _paddingTop:Number = 0;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  The minimum number of pixels between the container's top edge and
@@ -382,7 +382,7 @@

     private var _paddingBottom:Number = 0;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  The minimum number of pixels between the container's bottom edge and
@@ -418,7 +418,7 @@

     private var _requestedColumnCount:int = -1;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="-1")]

     /**
      *  The measured size of this layout is wide enough to display
@@ -459,7 +459,7 @@

     private var _columnWidth:Number;

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  If the variableColumnWidth property is false,


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 2796
Author:   jimurphy@adobe.com
Date:     2008-08-11T14:31:56.866734Z

Log Message:
-----------
Merged 3.0.x revisions [2767,2780,2784] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ColorPicker.as
+++ frameworks/projects/mx/src/mx/controls/ColorPicker.as
@@ -31,6 +31,7 @@
 import mx.events.DropdownEvent;
 import mx.events.FlexEvent;
 import mx.events.FlexMouseEvent;
+import mx.events.MarshalMouseEvent;
 import mx.managers.IFocusManager;
 import mx.managers.ISystemManager;
 import mx.managers.PopUpManager;
@@ -1156,6 +1157,10 @@
                                             dropdownSwatch_mouseDownOutsideHandler);
             dropdownSwatch.addEventListener(FlexMouseEvent.MOUSE_WHEEL_OUTSIDE,
                                             dropdownSwatch_mouseDownOutsideHandler);
+            dropdownSwatch.addEventListener(MarshalMouseEvent.MOUSE_DOWN,
+                                            dropdownSwatch_mouseDownOutsideHandler);
+            dropdownSwatch.addEventListener(MarshalMouseEvent.MOUSE_WHEEL,
+                                            dropdownSwatch_mouseDownOutsideHandler);

             dropdownSwatch.isOpening = true;
             dropdownSwatch.showTextField = showTextField;
@@ -1217,6 +1222,10 @@
                                                dropdownSwatch_mouseDownOutsideHandler);
             dropdownSwatch.removeEventListener(FlexMouseEvent.MOUSE_WHEEL_OUTSIDE,
                                                dropdownSwatch_mouseDownOutsideHandler);
+            dropdownSwatch.removeEventListener(MarshalMouseEvent.MOUSE_DOWN,
+                                            dropdownSwatch_mouseDownOutsideHandler);
+            dropdownSwatch.removeEventListener(MarshalMouseEvent.MOUSE_WHEEL,
+                                            dropdownSwatch_mouseDownOutsideHandler);

             PopUpManager.removePopUp(dropdownSwatch);
         }
@@ -1492,9 +1501,15 @@
     /**
      *  @private
      */
-    private function dropdownSwatch_mouseDownOutsideHandler(event:MouseEvent):void
-    {
-        if (!hitTestPoint(event.stageX, event.stageY, true))
+    private function dropdownSwatch_mouseDownOutsideHandler(event:Event):void
+    {
+        if (event is MouseEvent)
+        {
+            var mouseEvent:MouseEvent = MouseEvent(event);
+            if (!hitTestPoint(mouseEvent.stageX, mouseEvent.stageY, true))
+                close(event);
+        }
+        else if (event is MarshalMouseEvent)
             close(event);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21839
Author:   jszeto@adobe.com
Date:     2011-08-04T22:35:00.199381Z

Log Message:
-----------
SpinnerList Bug Fixes

SDK-30904 - SpinnerList dispatches "change" event on programmatic selectedIndex changes

Call setSelectedIndex after a user interaction change

SDK-30961 - SpinnerList should use a less common property name when deciding if an item is disabled

Changed from using "enabled" to "_enabled_". Added static constant to SpinnerList.

SDK-30998 - SpinnerListContainerSkin.layoutContents calls setElementPosition() before setElementSize()

QE notes: none
Doc notes: none
Bugs: SDK-30904, SDK-30961, SDK-30998
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as
@@ -12,7 +12,10 @@
 {

 import mx.core.DPIClassification;
+import mx.core.mx_internal;

+use namespace mx_internal;
+
 /**
  *  The SpinnerListItemRenderer class defines the default item renderer
  *  for a spinner list control in the mobile theme.
@@ -69,7 +72,7 @@
 		// If data is a String or other primitive, this call will fail
 		try
 		{
-			result = data["enabled"] == undefined || data["enabled"];
+			result = data[SpinnerList.ENABLED_PROPERTY_NAME] == undefined || data[SpinnerList.ENABLED_PROPERTY_NAME];
 		}
 		catch (e:Error)
 		{


PlayingData の isMute を public 化

PlayingData の isMute を public 化

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/AbstractPlayingData.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/AbstractPlayingData.as
@@ -425,7 +425,7 @@
 		 * ミュート中かを取得します.
 		 * @return
 		 */
-		protected function get isMute():Boolean  { return _isMute; }
+		public function get isMute():Boolean  { return _isMute; }

 		//----------------------------------
 		//  currentPosition


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation_air/src/mx/automation/events/AutomationFlexNativeMenuEvent.as
+++ frameworks/projects/automation_air/src/mx/automation/events/AutomationFlexNativeMenuEvent.as
@@ -0,0 +1,147 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.events
+{
+
+	import flash.events.Event;
+
+	/**
+	 *  The AutomationFlexNativeEvent class represents event objects that are
+	 *  dispatched as part of a flexnativemenu selection operation.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 4
+	 */
+	public class AutomationFlexNativeMenuEvent extends Event
+	{
+		include "../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class constants
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Defines the value of the
+		 *  type property of the event object for a menuShow event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
bubbles	false

+		 *
cancelable	true

+		 *
args	Array of arguments to the method.

+		 *

+		 *
+		 *  @eventType menuShow
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const MENU_SHOW:String = "menuShow";
+
+		/**
+		 *  Defines the value of the
+		 *  type property of the event object for a itemClick event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
bubbles	false

+		 *
cancelable	true

+		 *
args	Array of arguments to the method.

+		 *

+		 *
+		 *  @eventType itemClick
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const ITEM_CLICK:String = "itemClick";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *  Normally called by the Flex control and not used in application code.
+		 *
+		 *  @param type The event type; indicates the action that caused the event.
+		 *
+		 *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+		 *
+		 *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function AutomationFlexNativeMenuEvent(type:String, bubbles:Boolean = false,
+													  cancelable:Boolean = true,
+													  args:String = null)
+		{
+			super(type, bubbles, cancelable);
+
+			this.args = args;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  action
+		//----------------------------------
+
+		/**
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 4
+		 */
+		public var args:String;
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods: Event
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function clone():Event
+		{
+			var cloneEvent:AutomationFlexNativeMenuEvent = new AutomationFlexNativeMenuEvent(type, bubbles, cancelable);
+
+			cloneEvent.args = this.args;
+
+			return cloneEvent;
+		}
+	}
+
+}


Modify bug of sound player

Modify bug of sound player

--- krew-framework/krewfw/utils/as3/KrewSoundPlayer.as
+++ krew-framework/krewfw/utils/as3/KrewSoundPlayer.as
@@ -95,6 +95,7 @@
         public function resumeBgm():void {
             if (!_bgmChannel) { return; }

+            stopBgm();
             playBgm(_currentBgm, _currentBgmId, NaN, _pausePosition);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21937
Author:   jasonsj@adobe.com
Date:     2011-08-11T16:00:02.732242Z

Log Message:
-----------
SDK-30852 Relocate removedFromStage handling from Callout to CalloutButton
SDK-30926 Enable transition interruption in CalloutSkin

QE notes:
Doc notes:
Bugs:
SDK-30852 android : callout stays visible when the view changes via device's back button
SDK-30926 multiple execution of openDropDown() set to click event puts the button into a strange state
Reviewer: cheidozi
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -528,9 +528,6 @@
         // Add to PopUpManager, calls positionPopUp(), and change state
         super.open(owner, modal);

-        // Close the callout when the owner is removed
-        owner.addEventListener(Event.REMOVED_FROM_STAGE, owner_removedFromStage);
-
         // Reposition the callout when the screen changes
         var systemManagerParent:SystemManager = this.parent as SystemManager;

@@ -545,8 +542,6 @@
     {
         if (!isOpen)
             return;
-
-        owner.removeEventListener(Event.REMOVED_FROM_STAGE, owner_removedFromStage);

         var systemManagerParent:SystemManager = this.parent as SystemManager;

@@ -1251,21 +1246,6 @@
     /**
      *  @private
      */
-    private function owner_removedFromStage(event:Event):void
-    {
-        if (!isOpen)
-            return;
-
-        // Hide the callout immediately instead of waiting for the skin
-        // state to transition to "closed"
-        visible = false;
-
-        close();
-    }
-
-    /**
-     *  @private
-     */
     private function systemManager_resizeHandler(event:Event):void
     {
         // Screen resize might require a new arrow direction and callout position


Transferred from the Adobe Open Source Subversion Repository

Revision: 4724
Author:   rfrishbe@adobe.com
Date:     2009-01-29T02:13:02.210369Z

Log Message:
-----------
Bunch of small changes:

build scripts..just minor fixes and making it player 10

FxComponent - required parts must be present--not just defined

FxContainer - removing some dead code around IUIComponent since everything should be an IVisualElement now

Group - move around logic for removing a previously parented object.  This helps deal with graphic elements with shared display objects

GraphicElement - need to handle display object getting changed as well

ArrayList/ListCollectionView - add addAll() and addAllAt()

AdvancedLayoutFeatures - remove Vector import (now that build scripts are fixed, it works fine)

QE Notes: Write tests for addAll() and allAllAt(), check that required parts are required in the first state
Doc Notes: None
Bugs: SDK-18536, SDK-18745, SDK-18709, SDK-18189, SDK-18537
Reviewer: Evtim
tests: checkintests, mustella DataGroup, List, Group, FxContainer, FxDataContainer

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -792,12 +792,9 @@

     private function contentGroup_itemAddedHandler(event:ItemExistenceChangedEvent):void
     {
-        // TODO (rfrishbe): need to check for IUIComponent
-        // as well if checking for IVisualElement?
-        if (event.relatedObject is IVisualElement ||
-            event.relatedObject is IUIComponent)
-        {
-            event.relatedObject.owner = this;
+        if (event.relatedObject is IVisualElement)
+        {
+            IVisualElement(event.relatedObject).owner = this;
         }

         // Re-dispatch the event
@@ -806,12 +803,9 @@

     private function contentGroup_itemRemovedHandler(event:ItemExistenceChangedEvent):void
     {
-        // TODO (rfrishbe): need to check for IUIComponent
-        // as well if checking for IVisualElement?
-        if (event.relatedObject is IVisualElement ||
-            event.relatedObject is IUIComponent)
-        {
-            event.relatedObject.owner = null;
+        if (event.relatedObject is IVisualElement)
+        {
+            IVisualElement(event.relatedObject).owner = null;
         }

         // Re-dispatch the event