Transferred from the Adobe Open Source Subversion Repository

Revision: 5573
Author:   jimurphy@adobe.com
Date:     2009-03-26T15:11:59.159776Z

Log Message:
-----------
-more updated package and class names that were missed in the first pass
-remove the mx folder

qa: probably
doc: this updated more asdoc comments so you may want to make sure that this pass made the correct updates
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -28,7 +28,7 @@
  *  Dispatched when a renderer is added to the content holder.
  * event.renderer is the renderer that was added.
  *
- *  @eventType mx.events.RendererExistenceEvent.RENDERER_ADD
+ *  @eventType spark.events.RendererExistenceEvent.RENDERER_ADD
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -41,7 +41,7 @@
  *  Dispatched when a renderer is removed from the content holder.
  * event.renderer is the renderer that was removed.
  *
- *  @eventType mx.events.RendererExistenceEvent.ITEM_REMOVE
+ *  @eventType spark.events.RendererExistenceEvent.ITEM_REMOVE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -53,7 +53,7 @@
 include "../styles/metadata/BasicTextLayoutFormatStyles.as"

 /**
- *  @copy mx.components.baseClasses.GroupBase#focusColor
+ *  @copy spark.components.supportClasses.GroupBase#focusColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -210,7 +210,7 @@
     [Inspectable(defaultValue="true")]

     /**
-     *  @copy mx.components.baseClasses.GroupBase#autoLayout
+     *  @copy spark.components.supportClasses.GroupBase#autoLayout
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -323,7 +323,7 @@
     //----------------------------------

     /**
-     *  @copy mx.components.DataGroup#dataProvider
+     *  @copy spark.components.DataGroup#dataProvider
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -391,7 +391,7 @@
     //----------------------------------

     /**
-     *  @copy mx.components.DataGroup#itemRenderer
+     *  @copy spark.components.DataGroup#itemRenderer
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -425,7 +425,7 @@
     //----------------------------------

     /**
-     *  @copy mx.components.DataGroup#itemRendererFunction
+     *  @copy spark.components.DataGroup#itemRendererFunction
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -461,7 +461,7 @@
     private var _layout:LayoutBase;

     /**
-     *  @copy mx.components.baseClasses.GroupBase#layout
+     *  @copy spark.components.supportClasses.GroupBase#layout
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -495,7 +495,7 @@
     //----------------------------------

     /**
-     *  @copy mx.components.DataGroup#typicalItem
+     *  @copy spark.components.DataGroup#typicalItem
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Don't fill the array with zeroes when we reinitialize the Throttle with the same number of operations as we already had, as that allows a potentially dangerous burst of operations.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@5505 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/Throttle.as
+++ src/as/com/threerings/util/Throttle.as
@@ -68,7 +68,7 @@

     /**
      * Updates the number of operations for this throttle to a new maximum, retaining the current
-     * history of operations if the limit is being increased and truncating the oldest operations
+     * history of operations if the limit is being increased and truncating the newest operations
      * if the limit is decreased.
      *
      * @param operations the new maximum number of operations.
@@ -76,24 +76,25 @@
      */
     public function reinit (operations :int, period :int) :void
     {
-        var ops :Array = ArrayUtil.create(operations, 0);
-        var ii :int;
-        var oldestOp :int;
-        if (operations > _ops.length) {
-            // copy to a larger buffer, leaving zeroes at the beginning
-            oldestOp = _oldestOp + operations - _ops.length;
-            ArrayUtil.copy(_ops, 0, ops, 0, _oldestOp);
-            ArrayUtil.copy(_ops, _oldestOp, ops, oldestOp, _ops.length - _oldestOp);
+        _period = period;
+        if (operations != _ops.length) {
+            var ops :Array = ArrayUtil.create(operations, 0);

-        } else if (operations < _ops.length) {
-            // if we're truncating, copy the first (oldest) stamps into ops[0..]
-            var endCount :int = Math.min(_ops.length - _oldestOp, operations);
-            ArrayUtil.copy(_ops, _oldestOp, ops, 0, endCount);
-            ArrayUtil.copy(_ops, 0, ops, endCount, operations - endCount);
-            _oldestOp = 0;
+            if (operations > _ops.length) {
+                // copy to a larger buffer, leaving zeroes at the beginning
+                var oldestOp :int = _oldestOp + operations - _ops.length;
+                ArrayUtil.copy(_ops, 0, ops, 0, _oldestOp);
+                ArrayUtil.copy(_ops, _oldestOp, ops, oldestOp, _ops.length - _oldestOp);
+
+            } else {
+                // if we're truncating, copy the first (oldest) stamps into ops[0..]
+                var endCount :int = Math.min(_ops.length - _oldestOp, operations);
+                ArrayUtil.copy(_ops, _oldestOp, ops, 0, endCount);
+                ArrayUtil.copy(_ops, 0, ops, endCount, operations - endCount);
+                _oldestOp = 0;
+            }
+            _ops = ops;
         }
-        _ops = ops;
-        _period = period;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 18731
Author:   clucier@adobe.com
Date:     2010-11-19T15:50:29.937447Z

Log Message:
-----------
Initial drop of mobile SlideViewTransition inclusive of push/cover/pop modes, and up/down/left/right directions. Refactored and renamed classes per PARB review and current view transitions specification.

e.g. ViewTransition -> ViewTransitionBase , SlideViewTransition constructor signature changed.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Chiedo
Tests run: Checkin, TransitionTests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="dir" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as" copyfrom-rev="18652" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransitionMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -257,7 +257,7 @@
         layoutFeatures = new AdvancedLayoutFeatures();
         layoutFeatures.layoutX = _x;
         layoutFeatures.layoutY = _y;
-		layoutFeatures.layoutWidth = _width;  // for the mirror transform
+        layoutFeatures.layoutWidth = _width;  // for the mirror transform
     }

     /**
@@ -367,6 +367,42 @@
         invalidateProperties();
     }

+    //----------------------------------
+    //  alwaysCreateDisplayObject
+    //----------------------------------
+
+    private var _alwaysCreateDisplayObject:Boolean;
+
+    /**
+     *  Specifies that this GraphicElement is to be associated with and be rendered
+     *  to its own DisplayObject.
+     *
+     *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get alwaysCreateDisplayObject():Boolean
+    {
+        return _alwaysCreateDisplayObject;
+    }
+
+	/**
+	 *  @private
+	 */
+	public function set alwaysCreateDisplayObject(value:Boolean):void
+	{
+		if (value != _alwaysCreateDisplayObject)
+		{
+			var previous:Boolean = needsDisplayObject;
+			_alwaysCreateDisplayObject = value;
+			if (previous != needsDisplayObject)
+				invalidateDisplayObjectSharing();
+		}
+	}
+
     //----------------------------------
     //  baseline
     //----------------------------------
@@ -1081,36 +1117,36 @@
         invalidateParentSizeAndDisplayList();
     }

-	//----------------------------------
-	//  id
-	//----------------------------------
-
-	/**
-	 *  @private
-	 *  Storage for the id property.
-	 */
-	private var _id:String;
-
-	/**
-	 *  The identity of the component.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get id():String
-	{
-		return _id;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set id(value:String):void
-	{
-		_id = value;
-	}
+    //----------------------------------
+    //  id
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the id property.
+     */
+    private var _id:String;
+
+    /**
+     *  The identity of the component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get id():String
+    {
+        return _id;
+    }
+
+    /**
+     *  @private
+     */
+    public function set id(value:String):void
+    {
+        _id = value;
+    }

     //----------------------------------
     //  left
@@ -2502,14 +2538,14 @@
         var oldValue:Number = _width;
         _width = value;

-		// The width is needed for the mirroring transform.
-		if (layoutFeatures)
-		{
-			layoutFeatures.layoutWidth = value;
-			invalidateTransform();
-		}
-
-		dispatchPropertyChangeEvent("width", oldValue, value);
+        // The width is needed for the mirroring transform.
+        if (layoutFeatures)
+        {
+            layoutFeatures.layoutWidth = value;
+            invalidateTransform();
+        }
+
+        dispatchPropertyChangeEvent("width", oldValue, value);

         // Invalidate the display list, since we're changing the actual width
         // and we're not going to correctly detect whether the layout sets
@@ -2934,36 +2970,36 @@
     {
         return _displayObjectSharingMode;
     }
-
-	//----------------------------------
-	//  layoutDirection
-	//----------------------------------
-
-	private var _layoutDirection:String = null;
-
+
+    //----------------------------------
+    //  layoutDirection
+    //----------------------------------
+
+    private var _layoutDirection:String = null;
+
     [Inspectable(category="General", enumeration="ltr,rtl")]

     /**
      *  @inheritDoc
      */
     public function get layoutDirection():String
-	{
+    {
         if (_layoutDirection != null)
             return _layoutDirection;

         const parentElt:ILayoutDirectionElement = parent as ILayoutDirectionElement;
         return (parentElt) ? parentElt.layoutDirection : LayoutDirection.LTR;
     }
-
-	/**
-	 *  @private
-	 */
-	public function set layoutDirection(value:String):void
-	{
-		if (_layoutDirection == value)
-			return;
-
-		_layoutDirection = value;
+
+    /**
+     *  @private
+     */
+    public function set layoutDirection(value:String):void
+    {
+        if (_layoutDirection == value)
+            return;
+
+        _layoutDirection = value;
         invalidateLayoutDirection();
     }

@@ -2999,24 +3035,24 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  Called automatically by the MXML compiler when the GraphicElement
-	 *  is created using an MXML tag.
-	 *  If you create the GraphicElement through ActionScript you must set the
-	 * id property manually.
-	 *
-	 *  @param document The MXML document containing this GraphicElement (not used).
-	 *  @param id The MXML id for this GraphicElement.
-	 *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-	 */
-	public function initialized(document:Object, id:String):void
-	{
-		this.id = id;
-	}
+    /**
+     *  Called automatically by the MXML compiler when the GraphicElement
+     *  is created using an MXML tag.
+     *  If you create the GraphicElement through ActionScript you must set the
+     * id property manually.
+     *
+     *  @param document The MXML document containing this GraphicElement (not used).
+     *  @param id The MXML id for this GraphicElement.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function initialized(document:Object, id:String):void
+    {
+        this.id = id;
+    }

     /**
      * Converts the point object from the object's (local) coordinates
@@ -3081,25 +3117,6 @@
         return displayObject;
     }

-    private var _alwaysCreateDisplayObject:Boolean;
-
-    // Used by the design tool to get bitmap captures
-    mx_internal function set alwaysCreateDisplayObject(value:Boolean):void
-    {
-        if (value != _alwaysCreateDisplayObject)
-        {
-            var previous:Boolean = needsDisplayObject;
-            _alwaysCreateDisplayObject = value;
-            if (previous != needsDisplayObject)
-                invalidateDisplayObjectSharing();
-        }
-    }
-
-    mx_internal function get alwaysCreateDisplayObject():Boolean
-    {
-        return _alwaysCreateDisplayObject;
-    }
-
     /**
      *  True if the element requires an exclusive DisplayObject.
      *
@@ -4395,9 +4412,9 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-	public function setEstimatedSize(estimatedWidth:Number = NaN,
+    public function setEstimatedSize(estimatedWidth:Number = NaN,
                                      estimatedHeight:Number = NaN,
-									 invalidateSize:Boolean = true):void
+                                     invalidateSize:Boolean = true):void
     {
         _estimatedWidth = estimatedWidth;
         _estimatedHeight = estimatedHeight;


Fixed a call

Fixed a call

--- protogeni/demo/src/ComponentManager.as
+++ protogeni/demo/src/ComponentManager.as
@@ -320,7 +320,7 @@
           }

           setSubNodes(subNodeOf);
-          parseLinks(rspec, uuidToNode);
+          parseLinks(rspec);
           parseBgpPrefixes(rspec);
         }
         setState(NORMAL)


SoundConductor の finalize を修正

SoundConductor の finalize を修正

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundConductor.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundConductor.as
@@ -171,7 +171,7 @@
 			if (_isInitialized)
 				throw new SoundConductorError(SoundConductorErrorType.ERROR_10011);

-			// 一回ここで OggManager を生成することによって OggManager 全体の初期化が走る
+			// 一回ここで OggManager を生成することによって OggManager 全体の初期化が走る（実際には使用しない
 			var oggManager:OggManager = new OggManager();

 			_soundBufferSize = bufferType || SoundBufferType.BUFFER_SIZE_4096;
@@ -210,6 +210,9 @@
 				_sharedSoundGeneratorEngine.dispose();
 				_sharedSoundGeneratorEngine = null;
 			}
+
+			_masterVolumeController.dispose();
+			_masterVolumeController = null;

 			_isInitialized = false;
 		}
@@ -644,6 +647,13 @@

 			stopAll(0);
 			_registeredSoundList.length = 0;
+			_groupList.length = 0;
+
+			for each (var fadeController:SoundParameterController in _applyingFadeSoundChannelList)
+			{
+				fadeController.removeEventListener(Event.COMPLETE, fadeCompleteHandler);
+			}
+			_applyingFadeSoundChannelList.length = 0;
 		}

 //--------------------------------------------------------------------------
@@ -694,7 +704,7 @@
 		 * @param stopWhenCompleted	フェードが完了したときにサウンドを停止するかを指定します。主にフェードアウトの際に利用します。
 		 * デフォルトは false です。
 		 */
-		public static function applyFadeToSoundObject(soundChannel:SoundChannel, fadeTo:Number, timeByMS:Number, easing:Function = null, callback:Function = null, stopWhenCompleted:Boolean = false):void
+		public static function applyFadeToSoundChannel(soundChannel:SoundChannel, fadeTo:Number, timeByMS:Number, easing:Function = null, callback:Function = null, stopWhenCompleted:Boolean = false):void
 		{
 			if (fadeTo < 0)
 				fadeTo = 0;


clicking folder hides/unhides all of its contents

--- flexEditor/src/org/arisgames/editor/components/PaletteTree.as
+++ flexEditor/src/org/arisgames/editor/components/PaletteTree.as
@@ -120,11 +120,38 @@
 		}
 		if(evt.stageX > ((level*16)+36) && evt.stageX < ((level*16)+58)) //Reeally awful code to detect whether the icon was clicked or not.
 		{
-			de = new DynamicEvent(AppConstants.DYNAMICEVENT_HIDEOBJECTPALETTEITEM);
-			this.selectedItem.isHidden = !this.selectedItem.isHidden;
-			de.objectPaletteItem = this.selectedItem;
-			AppDynamicEventManager.getInstance().dispatchEvent(de);
-
+			if(this.selectedItem.isFolder())
+			{
+				for(var i:int = 0; i < this.selectedItem.children.length; i++)
+				{
+					if(selectedItem.children[i].isFolder())
+					{
+						this.selectedItem.children[i].isHidden = !this.selectedItem.isHidden;
+						for(var j:int = 0; j < selectedItem.children[i].children.length; j++)
+						{
+							de = new DynamicEvent(AppConstants.DYNAMICEVENT_HIDEOBJECTPALETTEITEM);
+							this.selectedItem.children[i].children[j].isHidden = !this.selectedItem.isHidden;
+							de.objectPaletteItem = this.selectedItem.children[i].children[j];
+							AppDynamicEventManager.getInstance().dispatchEvent(de);
+						}
+					}
+					else
+					{
+						de = new DynamicEvent(AppConstants.DYNAMICEVENT_HIDEOBJECTPALETTEITEM);
+						this.selectedItem.children[i].isHidden = !this.selectedItem.isHidden;
+						de.objectPaletteItem = this.selectedItem.children[i];
+						AppDynamicEventManager.getInstance().dispatchEvent(de);
+					}
+				}
+				this.selectedItem.isHidden = !this.selectedItem.isHidden;
+			}
+			else
+			{
+				de = new DynamicEvent(AppConstants.DYNAMICEVENT_HIDEOBJECTPALETTEITEM);
+				this.selectedItem.isHidden = !this.selectedItem.isHidden;
+				de.objectPaletteItem = this.selectedItem;
+				AppDynamicEventManager.getInstance().dispatchEvent(de);
+			}
 		}
 		else
 		{


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

--- frameworks/projects/framework/src/mx/core/TextFieldFactory.as
+++ frameworks/projects/framework/src/mx/core/TextFieldFactory.as
@@ -0,0 +1,117 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+import flash.text.TextField;
+import flash.utils.Dictionary;
+
+use namespace mx_internal;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  Singleton to create TextFields in the context of various ModuleFactories.
+ *  One module factory will have at most one TextField created for it.
+ *  The text fields are only used for measurement;
+ *  they are not on the display list.
+ */
+public class TextFieldFactory implements ITextFieldFactory
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *
+	 *  This classes singleton.
+	 */
+	private static var instance:ITextFieldFactory;
+
+	/**
+	 *  @private
+	 *
+	 *  Cache of textFields. Limit of one per module factory.
+	 */
+	private var textFields:Dictionary = new Dictionary(true);
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	public static function getInstance():ITextFieldFactory
+	{
+		if (!instance)
+			instance = new TextFieldFactory();
+
+		return instance;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Creates a TextField in the context of the specified IFlexModuleFactory.
+	 *
+	 *  @param moduleFactory The moduleFactory requesting the TextField.
+	 *
+	 *	@return A text field for a given moduleFactory.
+	 */
+	public function createTextField(moduleFactory:IFlexModuleFactory):TextField
+	{
+		// Check to see if we already have a text field for this module factory.
+		var textField:TextField = null;
+		var textFieldDictionary:Dictionary = textFields[moduleFactory];
+
+		if (textFieldDictionary)
+		{
+			for (var iter:Object in textFieldDictionary)
+			{
+				textField = TextField(iter);
+				break;
+			}
+		}
+		if (!textField)
+		{
+			if (moduleFactory)
+				textField = TextField(moduleFactory.create("flash.text.TextField"));
+			else
+				textField = new TextField();
+
+			// The dictionary could be empty, but not null because entries in the dictionary
+			// could be garbage collected.
+			if (!textFieldDictionary)
+				textFieldDictionary = new Dictionary(true);
+			textFieldDictionary[textField] = 1;
+			textFields[moduleFactory] = textFieldDictionary;
+		}
+
+		return textField;
+	}
+}
+
+}


Fix FLEX-24623 Remove private declarations in PopUpAnchor

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -499,14 +499,14 @@

     //--------------------------------------------------------------------------
     //
-    //  Private Methods
+    //  Private and protected methods
     //
     //--------------------------------------------------------------------------

     /**
-     *  @private
-     */
-    private function addOrRemovePopUp():void
+     *  @private
+     */
+    protected function addOrRemovePopUp():void
     {
         if (!addedToStage)
             return;
@@ -544,11 +544,11 @@
         PopUpManager.removePopUp(popUp);
         popUpIsDisplayed = false;
     }
-
-    /**
-     *  @private
-     */
-    mx_internal function determinePosition(placement:String, popUpWidth:Number, popUpHeight:Number,
+
+    /**
+     *  @private
+     */
+    protected function determinePosition(placement:String, popUpWidth:Number, popUpHeight:Number,
                                            matrix:Matrix, registrationPoint:Point, bounds:Rectangle):void
     {
         switch(placement)
@@ -587,11 +587,11 @@
         bounds.width = size.x;
         bounds.height = size.y;
     }
-
-    /**
-     *  @private
-     */
-    private function applyPopUpTransform(unscaledWidth:Number, unscaledHeight:Number):void
+
+    /**
+     *  @private
+     */
+    protected function applyPopUpTransform(unscaledWidth:Number, unscaledHeight:Number):void
     {
         if (!popUpIsDisplayed)
             return;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12478
Author:   gosmith@adobe.com
Date:     2009-12-04T01:03:50.724937Z

Log Message:
-----------
The partAdded() and partRemoved() methods of Spark components now dispatch new events named "partAdded" and "partRemoved", of type SkinPartEvent. The accessibility implementation classes will soon use these events to know when skin parts are added and removed so that they can attach and remove event handlers appropriately. This mechanism may change in a future release, so developers should not depend on these undocumented events.

I've made sure that all overrides of partAdded() and partRemoved() call the supermethod so that they dispatch these events.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/SkinPartEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.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/components/supportClasses/ListBase.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/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/TitleWindow.as
+++ frameworks/projects/spark/src/spark/components/TitleWindow.as
@@ -376,6 +376,7 @@

         if (instance == moveArea)
             moveArea.removeEventListener(MouseEvent.MOUSE_DOWN, moveArea_mouseDownHandler);
+
         else if (instance == closeButton)
             closeButton.removeEventListener(MouseEvent.CLICK, closeButton_clickHandler);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13283
Author:   egeorgie@adobe.com
Date:     2010-01-05T19:54:47.152032Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-24416 Support major axis alignment in VerticalLayout/HorizontalLayout

Added horizontalAlign to HGroup, HorizontalLayout and verticalAlign to VGroup, VerticalLayout

QE notes: New tests needed for the new properties.
Doc notes: New properterties added to HGroup, HorizontalLayout, VGroup, VerticalLayout.
Bugs: SDK-24416
Reviewer: Hans
Tests run: checkintests, mustella cyclone
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -136,10 +136,13 @@
         return percentWidth < width ? percentWidth : width;
     }

-    private static function sizeLayoutElement(layoutElement:ILayoutElement, width:Number,
-                                           horizontalAlign:String, restrictedWidth:Number,
-                                           height:Number, variableRowHeight:Boolean,
-                                           rowHeight:Number):void
+    private static function sizeLayoutElement(layoutElement:ILayoutElement,
+                                              width:Number,
+                                              horizontalAlign:String,
+                                              restrictedWidth:Number,
+                                              height:Number,
+                                              variableRowHeight:Boolean,
+                                              rowHeight:Number):void
     {
         var newWidth:Number = NaN;

@@ -324,6 +327,52 @@

         _horizontalAlign = value;

+        var layoutTarget:GroupBase = target;
+        if (layoutTarget)
+            layoutTarget.invalidateDisplayList();
+    }
+
+    //----------------------------------
+    //  verticalAlign
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _verticalAlign:String = VerticalAlign.TOP;
+
+    [Inspectable(category="General", enumeration="top,bottom,middle", defaultValue="top")]
+
+    /**
+     *  The vertical alignment of the content relative to the container's height.
+     *
+     *
This property has no effect when clipAndEnableScrolling is true
+     *  and the contentHeight is greater than the container's height.

+     *
+     *
This property does not affect the layout's measured size.

+     *
+     *  @default "top"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get verticalAlign():String
+    {
+        return _verticalAlign;
+    }
+
+    /**
+     *  @private
+     */
+    public function set verticalAlign(value:String):void
+    {
+        if (value == _verticalAlign)
+            return;
+
+        _verticalAlign = value;
+
         var layoutTarget:GroupBase = target;
         if (layoutTarget)
             layoutTarget.invalidateDisplayList();
@@ -750,6 +799,21 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
+    override public function set clipAndEnableScrolling(value:Boolean):void
+    {
+        super.clipAndEnableScrolling = value;
+        var vAlign:String = verticalAlign;
+        if (vAlign == VerticalAlign.MIDDLE || vAlign == VerticalAlign.BOTTOM)
+        {
+            var g:GroupBase = target;
+            if (g)
+                g.invalidateDisplayList();
+        }
+    }
+
     /**
      * @private
      */
@@ -1638,6 +1702,33 @@
                 }
             }
         }
+
+        // Third pass: if neccessary, fix up y based on updated contentHeight
+        var contentHeight:Number = llv.end(llv.length - 1) - paddingTop;
+        var targetHeight:Number = Math.max(0, layoutTarget.height - paddingTop - paddingBottom);
+        if (contentHeight < targetHeight)
+        {
+            var excessHeight:Number = targetHeight - contentHeight;
+            var dy:Number = 0;
+            var vAlign:String = verticalAlign;
+            if (vAlign == VerticalAlign.MIDDLE)
+            {
+                dy = Math.floor(excessHeight / 2);
+            }
+            else if (vAlign == VerticalAlign.BOTTOM)
+            {
+                dy = excessHeight;
+            }
+            if (dy > 0)
+            {
+                for (index = startIndex; index <= endIndex; index++)
+                {
+                    elt = layoutTarget.getVirtualElementAt(index, NaN, NaN);
+                    elt.setLayoutBoundsPosition(elt.getLayoutBoundsX(), dy + elt.getLayoutBoundsY());
+                }
+                contentHeight += dy;
+            }
+        }

         setRowCount(index - startIndex);
         setIndexInView(startIndex, endIndex);
@@ -1645,7 +1736,7 @@
         // Make sure that if the content spans partially over a pixel to the right/bottom,
         // the content size includes the whole pixel.
         var paddedContentWidth:Number = Math.ceil(contentWidth + paddingLeft + paddingRight);
-        var paddedContentHeight:Number = Math.ceil(llv.end(llv.length - 1) + paddingBottom);
+        var paddedContentHeight:Number = Math.ceil(contentHeight + paddingTop + paddingBottom);
         layoutTarget.setContentSize(paddedContentWidth, paddedContentHeight);
     }

@@ -1686,7 +1777,7 @@
             }
         }

-        distributeHeight(targetWidth, targetHeight, containerWidth);
+        var excessHeight:Number = distributeHeight(targetWidth, targetHeight, containerWidth);

         // default to left (0)
         var hAlign:Number = 0;
@@ -1711,6 +1802,20 @@
         var firstRowInView:int = -1;
         var lastRowInView:int = -1;

+        // Take verticalAlign into account
+        if (excessHeight > 0 || !clipAndEnableScrolling)
+        {
+            var vAlign:String = verticalAlign;
+            if (vAlign == VerticalAlign.MIDDLE)
+            {
+                y = paddingTop + Math.floor(excessHeight / 2);
+            }
+            else if (vAlign == VerticalAlign.BOTTOM)
+            {
+                y = paddingTop + excessHeight;
+            }
+        }
+
         for (var index:int = 0; index < count; index++)
         {
             layoutElement = layoutTarget.getElementAt(index);
@@ -1820,10 +1925,10 @@
         // Distribute the extra space among the flexible children
         if (totalPercentHeight)
         {
-            spaceToDistribute = Flex.flexChildrenProportionally(height,
-                                                                spaceToDistribute,
-                                                                totalPercentHeight,
-                                                                childInfoArray);
+            Flex.flexChildrenProportionally(height,
+                                            spaceToDistribute,
+                                            totalPercentHeight,
+                                            childInfoArray);

             var roundOff:Number = 0;
             for each (childInfo in childInfoArray)
@@ -1835,6 +1940,7 @@
                 sizeLayoutElement(childInfo.layoutElement, width, horizontalAlign,
                                restrictedWidth, childSize,
                                variableRowHeight, rh);
+                spaceToDistribute -= childSize;
             }
         }
         return spaceToDistribute;


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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 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.primitives
 {


Change 20080109-ptw-G by ptw@dueling-banjos.local on 2008-01-09 12:11:23 EST
    in /Users/ptw/OpenLaszlo/ringding-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fixing a hole where the rain gets in

Bugs Fixed:
LPP-5337 'Multiframe resource assigned via $style within a view that is init stage late runs a bit and gets orphaned in onidle'

Technical Reviewer: max (message://<47844FEA.3000208@openlaszlo.org>)
QA Reviewer: mdemmon (pending)

Details:
    Consider the case where tracking is stopped before checkPlayStatus
    gets to run: Instead of using callOnIdle, which cannot be
    cancelled, register on onidle, so you can be cancelled.

Tests:
    Test case from bug no longer leaves delegates on idle queue

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

--- WEB-INF/lps/lfc/kernel/swf/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf/LzSprite.as
@@ -1,7 +1,7 @@
 /**
   * LzSprite.as
   *
-  * @copyright Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @topic Kernel
@@ -1309,6 +1309,7 @@
     this.updatePlayStatus();
     this.__LZtracking = false;
     this.updatePlayDel.unregisterAll();
+    this.checkPlayStatusDel.unregisterAll();
 }

@@ -1364,7 +1365,7 @@
      if (('isaudio' in this.getMCRef()) && (this.getMCRef().isaudio == true)) this.__lzskipplaychecklimit = LzSprite.prototype.__lzskipplaychecklimitmax;

     //Debug.warn('checkPlayStatus %w %w %w %w', this.__lzcheckframe, this.frame, this.totalframes, this.__lzskipplaychecklimit);
-    LzIdle.callOnIdle( this.checkPlayStatusDel );
+    this.checkPlayStatusDel.register( LzIdle, "onidle" );
 }

 /**
@@ -1377,10 +1378,9 @@
     this.updatePlayStatus();
     this.__lzskipplaycheck++;
     if (this.__lzskipplaycheck < this.__lzskipplaychecklimit) {
-        LzIdle.callOnIdle( this.checkPlayStatusDel );
         return;
     }
-
+    this.checkPlayStatusDel.unregisterAll();

     if ( this.frame != this.__lzcheckframe || this.totalframes != this.__lzchecktotalframes){
         //Debug.write('checkPlayStatus2 tracking', this.frame, this.__lzcheckframe);


Transferred from the Adobe Open Source Subversion Repository

Revision: 21787
Author:   betravis@adobe.com
Date:     2011-08-02T23:46:01.859648Z

Log Message:
-----------
Update to ToggleSwitchSkin labels. CSS selectors #selectedLabelDisplay, #unselectedLabelDisplay now work and should support the color, textShadowColor, and textShadowAlpha styles, among other StyleableTextField styles.

QE notes:
Doc notes:
Bugs:
SDK-30943 - Change event fired even when selection isn't actually changed
Reviewer: klin
Tests run: checkintests, mustella
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as
@@ -232,8 +232,6 @@
         var newValue:Number = selectedToPosition(value);
         slideToPosition = newValue;
         setThumbPosition(newValue);
-        // ToggleButtonBase issues this on buttonRelease, which we override
-        dispatchEvent(new Event(Event.CHANGE));
     }

     //----------------------------------------------------------------------------------------------
@@ -376,7 +374,7 @@
         {
             // we are either at the destination position,
             // or we should update immediately
-            selected = positionToSelected(newPosition);
+            setSelected(positionToSelected(newPosition));
         }
     }

@@ -395,6 +393,18 @@

             animateToPosition(animator, thumbPosition, newPosition, MouseDragUtil.MAX_UPDATE_RATE);
         }
+    }
+
+    /**
+     *  When the selection is changed by user interactions, fire a change event
+     *  when appropriate.
+     */
+    private function setSelected(value:Boolean):void
+    {
+        var valueChanged:Boolean = value != selected;
+        selected = value;
+        if (valueChanged)
+            dispatchEvent(new Event(Event.CHANGE));
     }

     /**
@@ -635,7 +645,7 @@
      */
     private function animationEndHandler(animation:Animation):void
     {
-        selected = positionToSelected(slideToPosition);
+        setSelected(positionToSelected(slideToPosition));
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20182
Author:   chiedozi@adobe.com
Date:     2011-02-07T23:51:31.661530Z

Log Message:
-----------
Fixed an issue where TabbedViewNavigator didn't properly update its navigators when the active view's overlayControls property was true.
Removed the overlayControls property from ViewNavigatorBase.

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -641,7 +641,7 @@
      */
     override protected function commitProperties():void
     {
-        super.commitProperties();
+        var changeEvent:IndexChangeEvent;

         if (selectedIndexChanged || dataProviderChanged)
         {
@@ -684,6 +684,11 @@
                 navigator.setActive(true);
                 navigator.visible = true;
                 navigator.includeInLayout = true;
+
+                // Update the states of the controls on the newly activated view navigator.
+                // The updateControlsForView() method will automatically bubble up to all
+                // parents of the navigator.
+                navigator.updateControlsForView(navigator.activeView);

                 // Force a validation of the new navigator to prevent a flicker from
                 // occurring in cases where multiple validation passes are required
@@ -692,15 +697,15 @@

                 if (navigator.activeView)
                 {
-                    updateControlsForView(navigator.activeView);
                     navigator.activeView.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
                                                             view_propertyChangeHandler);

                     // Force the stage focus to be the activated view
                     systemManager.stage.focus = activeView;
                 }
+
             }
-
+
             selectedIndexAdjusted = false;
             dataProviderChanged = false;
             selectedIndexChanged = false;
@@ -708,14 +713,12 @@
             // Dispatch selection change event
             if (hasEventListener(IndexChangeEvent.CHANGE))
             {
-                var e:IndexChangeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGE, false, false);
-                e.oldIndex = oldIndex;
-                e.newIndex = _selectedIndex;
-
-                dispatchEvent(e);
+                changeEvent = new IndexChangeEvent(IndexChangeEvent.CHANGE, false, false);
+                changeEvent.oldIndex = oldIndex;
+                changeEvent.newIndex = _selectedIndex;
             }
         }
-
+
         if (tabBarVisibilityChanged)
             commitVisibilityChanges();

@@ -725,6 +728,17 @@
         // so that animations run again.
         if (disableNextControlAnimation)
             disableNextControlAnimation = false;
+
+        // Call base class' commitProperties after the above so that state changes
+        // as a result of overlayControls are caught.  This should be okay because
+        // TabbedViewNavigator doesn't need any properties in its base class being
+        // validated to complete the above code
+        super.commitProperties();
+
+        // Dispatch the index change event after super.commitProperties() has changed
+        // so the callbacks can deal with state changes performed by commitProperties.
+        if (changeEvent)
+            dispatchEvent(changeEvent);
     }

     /**


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Avoid NPE

Avoid NPE

--- collect-client/src/main/flex/org/openforis/collect/ui/component/ProgressBarItemRenderer.as
+++ collect-client/src/main/flex/org/openforis/collect/ui/component/ProgressBarItemRenderer.as
@@ -37,13 +37,21 @@

 		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 			super.updateDisplayList(unscaledWidth, unscaledHeight);
-			var value:Number = ObjectUtil.getValue(data, _valuePropertyName);
-			setProgress(value);
-			if (_toolTipFunction != null) {
-				progressBar.toolTip = _toolTipFunction(data);
+			var progress:Number;
+			var toolTip:String;
+			if (data == null) {
+				progress = 0;
+				toolTip = null;
 			} else {
-				progressBar.toolTip = progressBar.value + "%";
+				progress = ObjectUtil.getValue(data, _valuePropertyName);
+				if (_toolTipFunction != null) {
+					toolTip = _toolTipFunction(data);
+				} else {
+					toolTip = progressBar.value + "%";
+				}
 			}
+			setProgress(progress);
+			progressBar.toolTip = toolTip;
 		}

 		protected function setProgress(value:Number):void {