Transferred from the Adobe Open Source Subversion Repository

Revision: 3892
Author:   egeorgie@adobe.com
Date:     2008-10-24T23:33:52.238868Z

Log Message:
-----------
Add constraint properties and unify IVisualItem, UIComponent, GraphicElement, change percentSize to percentWidth, percentHeight in ILayoutItem. Remove IGraphicElementHost and GraphicElementHostImpl. Change GraphicElement constraint properties to take in Object instead of Number to enable advanced constraints later on.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Ryan
tests: checkintests, Mustella (canvas, gumbo layout)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElementHost.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemFDO.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/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@1286034 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as
@@ -106,7 +106,7 @@

     //--------------------------------------------------------------------------
     //
-    //  IGraphicElement Implementation
+	//  overriden methods from GraphicElement
     //
     //--------------------------------------------------------------------------


add method to download track analysis

add method to download track analysis

--- src/com/ryanberdeen/echonest/api/v4/track/TrackApi.as
+++ src/com/ryanberdeen/echonest/api/v4/track/TrackApi.as
@@ -5,6 +5,7 @@
  */

 package com.ryanberdeen.echonest.api.v4.track {
+  import com.adobe.serialization.json.JSON;
   import com.ryanberdeen.echonest.api.v4.ApiSupport;
   import com.ryanberdeen.echonest.api.v4.EchoNestError;

@@ -48,6 +49,11 @@
     * @param dispatcher The file reference to add the event listeners to.
     */
     public function addFileReferenceEventListeners(options:Object, fileReference:FileReference, responseProcessor:Function, ...responseProcessorArgs):void {
+      // TODO document
+      if (options.onOpen) {
+        fileReference.addEventListener(Event.OPEN, options.onOpen);
+      }
+
       if (options.onComplete) {
         fileReference.addEventListener(Event.COMPLETE, options.onComplete);
       }
@@ -69,6 +75,28 @@
       }

       addEventListeners(options, fileReference);
+    }
+
+    public function loadAnalysis(track:Object, loaderOptions:Object):URLLoader {
+      var loader:URLLoader = new URLLoader();
+
+      if (loaderOptions.onComplete) {
+        loader.addEventListener(Event.COMPLETE, loaderOptions.onComplete);
+      }
+
+      if (loaderOptions.onResponse) {
+        loader.addEventListener(Event.COMPLETE, function(e:Event):void {
+          var analysis:Object = JSON.decode(loader.data);
+          loaderOptions.onResponse(analysis);
+        });
+      }
+
+      addEventListeners(loaderOptions, loader);
+
+      var request:URLRequest = new URLRequest();
+      request.url = track.audio_summary.analysis_url;
+      loader.load(request);
+      return loader;
     }

     /**


MD5 hash too since the data exists

MD5 hash too since the data exists

--- src/org/igniterealtime/xiff/si/FileTransferManager.as
+++ src/org/igniterealtime/xiff/si/FileTransferManager.as
@@ -176,7 +176,10 @@
 			fileExt.name = fileName;
 			fileExt.size = fileSize;
 			fileExt.date = modificationDate;
-			//fileExt.hash = _md5.hash();
+
+			var hash:ByteArray = _md5.hash(_outGoingData);
+			hash.position = 0;
+			fileExt.hash = hash.readUTFBytes(hash.length);

 			var siExt:StreamInitiationExtension = new StreamInitiationExtension();
 			siExt.id = "letsdoit";


Cleaned up whitespace and imports

Cleaned up whitespace and imports

--- as3/test/asunit4/runners/TestRunnerTest.as
+++ as3/test/asunit4/runners/TestRunnerTest.as
@@ -1,10 +1,12 @@
 package asunit4.runners {
+
+	import asunit.framework.ITestFailure;
 	import asunit.framework.TestCase;
 	import asunit4.framework.Result;
+	import asunit4.framework.TestFailure;
+	import asunit4.support.MultiMethodTest;
+
 	import flash.events.Event;
-	import asunit4.support.MultiMethodTest;
-	import asunit.framework.ITestFailure;
-	import asunit4.framework.TestFailure;

 	public class TestRunnerTest extends TestCase {
 		private var runner:TestRunner;
@@ -32,8 +34,7 @@
 			assertTrue("TestRunner instantiated", runner is TestRunner);
 		}

-		public function test_free_test_does_not_extend_TestCase():void
-		{
+		public function test_free_test_does_not_extend_TestCase():void {
 			assertFalse(test is TestCase);
 		}

@@ -73,7 +74,7 @@

 			assertEquals('checked all methodsCalled', MultiMethodTest.methodsCalled.length, i);
 		}
-		//////
+
 		public function test_run_triggers_ResultEvent_with_wasSuccessful_false_and_failures():void {
 			runner.addEventListener(Event.COMPLETE, addAsync(check_Result_wasSuccessful_false, 500));

@@ -89,7 +90,7 @@
 			var failure0:ITestFailure = failures[0] as TestFailure;
 			assertSame(test, failure0.failedTest);
 		}
-		//////
+
 		public function test_run_test_method_by_name_executes_proper_method_sequence():void {
 			runner.addEventListener(Event.COMPLETE, addAsync(check_methodsCalled_after_running_test_method_by_name, 500));


Transferred from the Adobe Open Source Subversion Repository

Revision: 16262
Author:   dloverin@adobe.com
Date:     2010-05-20T18:44:39.210129Z

Log Message:
-----------
Move mx components out of framework.swc into mx.swc

The new mx.swc library lives in the libs/mx directory.

QE notes: Of the 5 failures I saw: 1 was intermittent and 4 are not a bug.
Managers/StyleManager/AdvancedCSS/descendantSelectors/AdvancedCSS_descendantSelectors_Style descendantSelector_combining_nested_style
    This failure was intermittent.

mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_By
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_By
    These failures are due to my code changes but I believe the old behavior was incorrect. When a control bar is the last child in a Panel it should appear at the bottom of the Panel. In the test case an ApplicationControlBar/ContorlBar is added to an empty Panel, making it the last child in the Panel. So it should appear at the bottom of the Panel instead of inside the Panel.

Doc notes: new library, mx.swc
Bugs:
Reviewer: Alex
Tests run:
Is noteworthy for integration: Yes

Modified Paths:
--------------
740 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/MaskEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/MaskEffectInstance.as
@@ -22,8 +22,8 @@
 import flash.geom.Rectangle;
 import flash.utils.getTimer;
 import mx.controls.SWFLoader;
-import mx.core.Container;
 import mx.core.FlexShape;
+import mx.core.IContainer;
 import mx.core.IInvalidating;
 import mx.core.IUIComponent;
 import mx.core.mx_internal;
@@ -756,7 +756,7 @@
 			// For Containers we need to add the mask
 			// to the "allChildren" collection so it doesn't get
 			// treated as a content child.
-			if (target is Container)
+			if (target is IContainer)
 				target.rawChildren.addChild(effectMask);
 			else
 				target.addChild(effectMask);
@@ -786,10 +786,11 @@
 			}
 		}

-		invalidateBorder = target is Container &&
-						   Container(target).border != null &&
-						   Container(target).border is IInvalidating &&
-						   DisplayObject(Container(target).border).filters != null;
+		invalidateBorder = target is IContainer &&
+                           "border" in target &&
+						   target["border"] != null &&
+                           target["border"] is IInvalidating &&
+						   DisplayObject(target["border"]).filters != null;
 	}

 	/**
@@ -928,7 +929,7 @@
 		}

 		if (invalidateBorder)
-			IInvalidating(Container(target).border).invalidateDisplayList();
+			IInvalidating(target["border"]).invalidateDisplayList();
 	}

 	/**
@@ -1068,7 +1069,7 @@
 				target.scrollRect = origScrollRect;
 			}

-			if (target is Container)
+			if (target is IContainer)
 				target.rawChildren.removeChild(effectMask);
 			else
 				target.removeChild(effectMask);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components.baseClasses
+package spark.components.supportClasses
 {

 import flash.display.DisplayObject;
@@ -38,7 +38,7 @@
 [Style(name="focusColor", type="uint", format="Color", inherit="yes")]

 /**
- *  The FxSlider class lets users select a value by moving a slider thumb between
+ *  The Slider class lets users select a value by moving a slider thumb between
  *  the end points of the slider track.
  *  The current value of the slider is determined by the relative location of
  *  the thumb between the end points of the slider,
@@ -49,7 +49,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxSlider extends FxTrackBase implements IFocusManagerComponent
+public class Slider extends TrackBase implements IFocusManagerComponent
 {
     include "../../core/Version.as";

@@ -67,7 +67,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxSlider():void
+    public function Slider():void
     {
         super();
     }
@@ -137,7 +137,7 @@
      *
      *
The following example prefixes the data tip text with a dollar sign and
      *  formats the text using the dataTipPrecision
-     *  of a FxSlider Control named 'slide':

+     *  of a Slider Control named 'slide':

      *
      *

      *  import mx.formatters.NumberBase;


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

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

 package mx.formatters
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.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/managers/dragClasses/DragProxy.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/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.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/events/SWFBridgeEvent.as</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/controls/DateField.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/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.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/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.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/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.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/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="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.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/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -30,8 +30,8 @@
 import mx.effects.Move;
 import mx.effects.Zoom;
 import mx.events.DragEvent;
-import mx.events.SandboxRootRequest;
-import mx.events.SandboxRootDragEvent;
+import mx.events.InterManagerRequest;
+import mx.events.InterDragManagerEvent;
 import mx.managers.ISystemManager;
 import mx.managers.dragClasses.DragProxy;
 import mx.managers.SystemManager;
@@ -107,7 +107,7 @@
 		if (!sm.isTopLevelRoot())
 		{
 			sandboxRoot = sm.getSandboxRoot();
-			sandboxRoot.addEventListener(SandboxRootDragEvent.DISPATCH_DRAG_EVENT, marshalDispatchEventHandler, false, 0, true);
+			sandboxRoot.addEventListener(InterDragManagerEvent.DISPATCH_DRAG_EVENT, marshalDispatchEventHandler, false, 0, true);
 		}
 		else
 		{
@@ -115,12 +115,12 @@
 			ed.addEventListener(MouseEvent.MOUSE_DOWN, sm_mouseDownHandler, false, 0, true);
 			ed.addEventListener(MouseEvent.MOUSE_UP, sm_mouseUpHandler, false, 0, true);
 			sandboxRoot = sm;
-			sandboxRoot.addEventListener(SandboxRootDragEvent.DISPATCH_DRAG_EVENT, marshalDispatchEventHandler, false, 0, true);
+			sandboxRoot.addEventListener(InterDragManagerEvent.DISPATCH_DRAG_EVENT, marshalDispatchEventHandler, false, 0, true);
 		}

 		// trace("creating DragManagerImpl", sm);
-		sandboxRoot.addEventListener(SandboxRootRequest.DRAG_MANAGER_REQUEST, marshalDragManagerHandler, false, 0, true);
-		var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+		sandboxRoot.addEventListener(InterManagerRequest.DRAG_MANAGER_REQUEST, marshalDragManagerHandler, false, 0, true);
+		var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 		me.name = "update";
 		// trace("--->update request for DragManagerImpl", sm);
 		sandboxRoot.dispatchEvent(me);
@@ -244,14 +244,14 @@
 		}

 		bDoingDrag = true;
-		var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+		var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 		me.name = "isDragging";
 		me.value = true;
 		// trace("-->dispatch isDragging for DragManagerImpl", sm, true);
 		sandboxRoot.dispatchEvent(me);
 		// trace("<--dispatch isDragging for DragManagerImpl", sm, true);

-		me = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+		me = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 		me.name = "mouseShield";
 		me.value = true;
 		// trace("-->dispatch add mouseShield.for DragManagerImpl", sm);
@@ -354,7 +354,7 @@
 			dragProxy.target = target as DisplayObject;
 		else if (isDragging)
 		{
-			var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+			var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 			me.name = "acceptDragDrop";
 			me.value = target;
 			// trace("-->dispatch acceptDragDrop for DragManagerImpl", sm, target);
@@ -383,7 +383,7 @@
 		}
 		else if (isDragging)
 		{
-			var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+			var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 			me.name = "showFeedback";
 			me.value = feedback;
 			// trace("-->dispatch showFeedback for DragManagerImpl", sm, feedback);
@@ -405,7 +405,7 @@
 		// trace("-->getFeedback for DragManagerImpl", sm);
 		if (!dragProxy && isDragging)
 		{
-			var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+			var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 			me.name = "getFeedback";
 			// trace("-->dispatch getFeedback for DragManagerImpl", sm);
 			sandboxRoot.dispatchEvent(me);
@@ -421,7 +421,7 @@
 	 */
 	public function endDrag():void
 	{
-		var me:SandboxRootRequest;
+		var me:InterManagerRequest;

 		// trace("-->endDrag for DragManagerImpl", sm);
 		if (dragProxy)
@@ -433,13 +433,13 @@
 		}
 		else if (isDragging)
 		{
-			me = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+			me = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 			me.name = "endDrag";
 			// trace("-->dispatch endDrag for DragManagerImpl", sm);
 			sandboxRoot.dispatchEvent(me);
 			// trace("<--dispatch endDrag for DragManagerImpl", sm);
 		}
-		me = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+		me = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 		me.name = "mouseShield";
 		me.value = false;
 		// trace("-->dispatch remove mouseShield.for DragManagerImpl", sm);
@@ -447,7 +447,7 @@

 		dragInitiator = null;
 		bDoingDrag = false;
-		me = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+		me = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 		me.name = "isDragging";
 		me.value = false;
 		// trace("-->dispatch isDragging for DragManagerImpl", sm, false);
@@ -483,16 +483,16 @@
 	 */
 	private function marshalDispatchEventHandler(event:Event):void
 	{
-		if (event is SandboxRootDragEvent)
+		if (event is InterDragManagerEvent)
 			return;

 		var marshalEvent:Object = event;

-		var swfRoot:DisplayObject = SystemManager.getSWFRoot(marshalEvent.dragTarget);
+		var swfRoot:DisplayObject = SystemManager.getSWFRoot(marshalEvent.dropTarget);
 		if (!swfRoot)
 			return;	// doesn't belong to this appdomain

-		var dragEvent:DragEvent = new DragEvent(marshalEvent.eventType, marshalEvent.bubbles, marshalEvent.cancelable);
+		var dragEvent:DragEvent = new DragEvent(marshalEvent.dragEventType, marshalEvent.bubbles, marshalEvent.cancelable);
 		dragEvent.localX = marshalEvent.localX;
 		dragEvent.localY = marshalEvent.localY;
 		dragEvent.action = marshalEvent.action;
@@ -508,7 +508,7 @@
 			// this will call handlers right away, so deferred clipboard will be costly
 			dragEvent.dragSource.addData(marshalEvent.dragSource.dataForFormat(formats[i]), formats[i]);
 		}
-		if (!marshalEvent.dragTarget.dispatchEvent(dragEvent))
+		if (!marshalEvent.dropTarget.dispatchEvent(dragEvent))
 		{
 			event.preventDefault();
 		}
@@ -519,7 +519,7 @@
 	 */
 	private function marshalDragManagerHandler(event:Event):void
 	{
-		if (event is SandboxRootRequest)
+		if (event is InterManagerRequest)
 			return;

 		var marshalEvent:Object = event;
@@ -559,7 +559,7 @@
 			if (dragProxy && isDragging)
 			{
 				// trace("-->marshaled update for DragManagerImpl", sm);
-				var me:SandboxRootRequest = new SandboxRootRequest(SandboxRootRequest.DRAG_MANAGER_REQUEST);
+				var me:InterManagerRequest = new InterManagerRequest(InterManagerRequest.DRAG_MANAGER_REQUEST);
 				me.name = "isDragging";
 				me.value = true;
 				// trace("-->dispatched isDragging for DragManagerImpl", sm, true);


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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -24,7 +24,7 @@
 include "../styles/metadata/SelectionFormatTextStyles.as"

 /**
- *  @copy mx.components.baseClasses.GroupBase#contentBackgroundColor
+ *  @copy spark.components.supportClasses.GroupBase#contentBackgroundColor
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 16937
Author:   smgilson@adobe.com
Date:     2010-07-15T16:35:17.543693Z

Log Message:
-----------
Add ASDoc comment about using component in an item renderer

QE notes:
Doc notes:
Bugs:
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/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButtonGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -119,6 +119,12 @@
  *  the user presses the Enter key, removes focus from the
  *  component, or steps the NumericStepper by pressing an arrow button
  *  or by calling the changeValueByStep() method.

+ *
+ *
To use this component in a list-based component, such as a List or DataGrid,
+ *  create an item renderer.
+ *  For information about creating an item renderer, see
+ *
+ *  Custom Spark item renderers.

  *
  *
The NumericStepper control has the following default characteristics:

  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<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/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.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/effects/AnimateTransform.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/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.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/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
+++ frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
@@ -41,7 +41,7 @@
 *  attributes of its superclass and adds the following tag attributes:

 *
 *

-*  <ConvolutionFilter
+*  <s:ConvolutionFilter
 *    Properties
 *    alpha="1"
 *    clamp="true"


Removes some dead code from LifecycleEventRelay

--- src/robotlegs/bender/extensions/eventDispatcher/impl/LifecycleEventRelay.as
+++ src/robotlegs/bender/extensions/eventDispatcher/impl/LifecycleEventRelay.as
@@ -28,10 +28,6 @@
 		/* Private Properties                                                         */
 		/*============================================================================*/

-		private var _source:IEventDispatcher;
-
-		private var _destination:IEventDispatcher;
-
 		private var _relay:EventRelay;

 		/*============================================================================*/
@@ -40,8 +36,6 @@

 		public function LifecycleEventRelay(source:IEventDispatcher, destination:IEventDispatcher)
 		{
-			_source = source;
-			_destination = destination;
 			_relay = new EventRelay(source, destination, TYPES).start();
 		}


Update OVVAsset.as

Update OVVAsset.as

Fix Formatting

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -273,32 +273,32 @@
             return isEIAvailable;
         }

-		/**
-		 * Register to the vpaidEventsDispatcher VPAID's events and allows 3rd parties to more easily provide video viewability measurement
-		 * by exposing the VPAID data as well as the viewability data via a JavaScript API.
-		 * @param	vpaidEventsDispatcher object that exposes VPAID events
-		 */
-		public function initEventsWiring(vpaidEventsDispatcher:IEventDispatcher): void {
-			if (vpaidEventsDispatcher == null)
-				throw "You must pass an EventDispatcher to init event wiring";
-			registerEventHandler(vpaidEventsDispatcher);
-			_vpaidEventsDispatcher = vpaidEventsDispatcher;
-
-			if ((Object)(vpaidEventsDispatcher).hasOwnProperty('getVPAID') && vpaidEventsDispatcher['getVPAID']  is Function) {
-                _ad = (Object)(_vpaidEventsDispatcher).getVPAID();
-            }
-		}
-
-		/**
-		 * Add a JavaScript resource upon reciveing a given vpaidEvent
-		 * @param	vpaidEvent The name of the VPAID event to add the JavaScript resource upon recived
-		 * @param	tagUrl The JavaScript tag url
-		 */
-		public function addJavaScriptResourceOnEvent(vpaidEvent:String, tagUrl:String): void {
-			if (_vpaidEventsDispatcher == null)
-				throw "initEventsWiring must be called first.";
-			_vpaidEventsDispatcher.addEventListener(vpaidEvent, onInjectJavaScriptResource(tagUrl));
-		}
+	/**
+	 * Register to the vpaidEventsDispatcher VPAID's events and allows 3rd parties to more easily provide video viewability measurement
+	 * by exposing the VPAID data as well as the viewability data via a JavaScript API.
+	 * @param	vpaidEventsDispatcher object that exposes VPAID events
+	 */
+	public function initEventsWiring(vpaidEventsDispatcher:IEventDispatcher): void {
+		if (vpaidEventsDispatcher == null)
+			throw "You must pass an EventDispatcher to init event wiring";
+		registerEventHandler(vpaidEventsDispatcher);
+		_vpaidEventsDispatcher = vpaidEventsDispatcher;
+
+		if ((Object)(vpaidEventsDispatcher).hasOwnProperty('getVPAID') && vpaidEventsDispatcher['getVPAID']  is Function) {
+        		_ad = (Object)(_vpaidEventsDispatcher).getVPAID();
+    		}
+	}
+
+	/**
+	 * Add a JavaScript resource upon reciveing a given vpaidEvent
+	 * @param	vpaidEvent The name of the VPAID event to add the JavaScript resource upon recived
+	 * @param	tagUrl The JavaScript tag url
+	 */
+	public function addJavaScriptResourceOnEvent(vpaidEvent:String, tagUrl:String): void {
+		if (_vpaidEventsDispatcher == null)
+			throw "initEventsWiring must be called first.";
+		_vpaidEventsDispatcher.addEventListener(vpaidEvent, onInjectJavaScriptResource(tagUrl));
+	}

         ////////////////////////////////////////////////////////////
         //   PUBLIC API
@@ -322,9 +322,9 @@

             var jsResults: Object = ExternalInterface.call("$ovv.getAssetById('" + _id + "')" + ".checkViewability");
             var results: OVVCheck = new OVVCheck(jsResults);
-
-			if (results && !!results.error)
-				raiseError(results);
+
+            if (results && !!results.error)
+		raiseError(results);

             if (_ad != null && _ad.hasOwnProperty('adVolume')) {
                 results.volume = _ad['adVolume'];
@@ -551,7 +551,7 @@
 					_intervalTimer.stop();
 					_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
 					_intervalTimer = null;
-                    break;
+                    			break;
 				default:
 					// do nothing
 			}
@@ -569,10 +569,10 @@
 		{
 			var publishedData:* = {"vpaidData":vpaidData, "ovvData":ovvData}
 			var jsOvvPublish:XML = <script><![CDATA[
-												function(event, id, args) {
-													setTimeout($ovv.publish(event,  id, args), 0);
-												}
-											]]></script>;
+								function(event, id, args) {
+									setTimeout($ovv.publish(event,  id, args), 0);
+								}
+							]]></script>;

 			ExternalInterface.call(jsOvvPublish, eventType ,_id, publishedData);
 		}


fix PickingController.updateMouseOverElement() in order to avoid read mesh properties when no mesh is under the mouse cursor

--- src/aerys/minko/scene/controller/PickingController.as
+++ src/aerys/minko/scene/controller/PickingController.as
@@ -410,7 +410,7 @@
 			{
 				var mesh	: Mesh	= _pickingIdToMesh[pixelColor & 0xFFFFFF];

-				_currentMouseOver	= mesh.tag & _tag ? mesh : null;
+				_currentMouseOver	= mesh && (mesh.tag & _tag) != 0 ? mesh : null;
 			}
 			else
 				_currentMouseOver = null; // wrong antialiasing color or nothing got picked


Transferred from the Adobe Open Source Subversion Repository

Revision: 18370
Author:   chiedozi@adobe.com
Date:     2010-10-29T18:23:55.796907Z

Log Message:
-----------
Fixed an issue where SlideViewTransition could RTE if the ActionBar's actionGroup or navigationGroup skinparts were at childIndex 0
Fixed an issue in SlideViewTransition where the actionContent and navigationContent would not animate in if the previous view didn't have any components in these groups

QE notes:
Doc notes:
Bugs: SDK-28267
Reviewer: Jason SJ
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
@@ -371,7 +371,7 @@
             // Determine if we are doing an internal actionbar transition
             // or sliding in a new one
             if (actionBar)
-                appendActionBarAnimations(Parallel(effect));
+                createActionBarAnimations(Parallel(effect));

             Parallel(effect).addChild(createViewAnimation(targets));
         }
@@ -500,16 +500,13 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    protected function appendActionBarAnimations(effect:Parallel):void
+    protected function createActionBarAnimations(effect:Parallel):void
     {
         var childIndex:Number;
         var slideDistance:Number;
         var animatedProperty:String;

         var actionBarSkin:UIComponent = actionBar.skin;
-        var titleGroup:UIComponent = (actionBar.titleGroup.visible)
-            ? actionBar.titleGroup : UIComponent(actionBar.titleDisplay);
-
         var fadeOutTargets:Array = new Array();
         var fadeInTargets:Array = new Array();

@@ -527,16 +524,28 @@
                 break;
         }

-        // Initialize titleGroup
-        titleGroup.cacheAsBitmap = true;
-		titleGroup.alpha = 0;
-        titleGroup[animatedProperty] += slideDistance;
-        fadeInTargets.push(titleGroup);
-
-        if (cachedTitleGroup)
-        {
-            childIndex = actionBarSkin.getChildIndex(titleGroup) - 1;
-            addComponentToContainerSkinAt(cachedTitleGroup, actionBarSkin, childIndex);
+        // Check if the skin has a titleGroup skin part
+        if (actionBar.titleGroup || actionBar.titleDisplay)
+        {
+            var titleComponent:UIComponent = actionBar.titleGroup;
+
+            if (!titleComponent || !titleComponent.visible)
+                titleComponent = actionBar.titleDisplay as UIComponent;
+
+            if (titleComponent)
+            {
+                // Initialize titleGroup
+                titleComponent.cacheAsBitmap = true;
+                titleComponent.alpha = 0;
+                titleComponent[animatedProperty] += slideDistance;
+                fadeInTargets.push(titleComponent);
+            }
+
+            if (cachedTitleGroup)
+            {
+                childIndex = actionBarSkin.getChildIndex(titleComponent);
+                addComponentToContainerSkinAt(cachedTitleGroup, actionBarSkin, childIndex);
+            }
         }

         // If a cache of the navigation group exists, that means the content
@@ -544,30 +553,41 @@
         // be added to an effect.
         if (cachedNavigationGroup)
         {
-            childIndex = actionBarSkin.getChildIndex(actionBar.navigationGroup) - 1;
+            childIndex = actionBarSkin.getChildIndex(actionBar.navigationGroup);
             addComponentToContainerSkinAt(cachedNavigationGroup, actionBarSkin, childIndex);

             fadeOutTargets.push(cachedNavigationGroup);
-
-            actionBar.navigationGroup[animatedProperty] += slideDistance;
-            actionBar.navigationGroup.cacheAsBitmap = true;
-            actionBar.navigationGroup.alpha = 0;
-
-            fadeInTargets.push(actionBar.navigationGroup);
         }

         if (cachedActionGroup)
         {
-            childIndex = actionBarSkin.getChildIndex(actionBar.actionGroup) - 1;
+            childIndex = actionBarSkin.getChildIndex(actionBar.actionGroup);
             addComponentToContainerSkinAt(cachedActionGroup, actionBarSkin, childIndex);

             fadeOutTargets.push(cachedActionGroup);
-
-            actionBar.actionGroup[animatedProperty] += slideDistance;
-            actionBar.actionGroup.cacheAsBitmap = true;
-            actionBar.actionGroup.alpha = 0;
-
-            fadeInTargets.push(actionBar.actionGroup);
+        }
+
+        // Create fade in animations for navigationContent and actionContent
+        // of the next view
+        if (nextView)
+        {
+            if (nextView.navigationContent)
+            {
+                actionBar.navigationGroup[animatedProperty] += slideDistance;
+                actionBar.navigationGroup.cacheAsBitmap = true;
+                actionBar.navigationGroup.alpha = 0;
+
+                fadeInTargets.push(actionBar.navigationGroup);
+            }
+
+            if (nextView.actionContent)
+            {
+                actionBar.actionGroup[animatedProperty] += slideDistance;
+                actionBar.actionGroup.cacheAsBitmap = true;
+                actionBar.actionGroup.alpha = 0;
+
+                fadeInTargets.push(actionBar.actionGroup);
+            }
         }

         // Fade out action and navigation content


Transferred from the Adobe Open Source Subversion Repository

Revision: 8385
Author:   smgilson@adobe.com
Date:     2009-07-06T19:38:43.090419Z

Log Message:
-----------
ASDoc updates for Spark layouts and core

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/MaskType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/NavigationUnit.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/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.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/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.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/layouts/ColumnAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as
+++ frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as
@@ -13,6 +13,7 @@
 {

 /**
+ *  @private
  *  Documentation is not currently available.
  *
  *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 6288
Author:   cframpto@adobe.com
Date:     2009-04-27T18:37:55.057029Z

Log Message:
-----------
imeMode support for TextInput, TextArea, RichEditableText and NumbericSteeper

QE Notes: needs testing
Doc Notes:
Bugs:
Reviewers: Gordon

Modified Paths:
--------------
<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/components/RichEditableText2.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/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -16,17 +16,19 @@
 import flash.events.Event;
 import flash.events.FocusEvent;

+import flashx.textLayout.events.SelectionEvent;
+import flashx.textLayout.formats.LineBreak;
+
+import mx.core.IIMESupport;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
+import mx.managers.IFocusManagerComponent;
+
 import spark.components.supportClasses.SkinnableComponent;
 import spark.components.TextSelectionVisibility;
 import spark.components.RichEditableText;
-import mx.core.mx_internal;
-import mx.events.FlexEvent;
 import spark.events.TextOperationEvent;
-import mx.managers.IFocusManagerComponent;
 import spark.utils.MouseShieldUtil;
-
-import flashx.textLayout.events.SelectionEvent;
-import flashx.textLayout.formats.LineBreak;

 //--------------------------------------
 //  Events
@@ -105,7 +107,8 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class TextBase extends SkinnableComponent implements IFocusManagerComponent
+public class TextBase extends SkinnableComponent
+    implements IFocusManagerComponent, IIMESupport
 {
     include "../../core/Version.as";


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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

 package spark.effects.supportClasses
 {


FLEX-33904 memory fix

FLEX-33904 memory fix

--- frameworks/projects/framework/src/mx/effects/EffectManager.as
+++ frameworks/projects/framework/src/mx/effects/EffectManager.as
@@ -551,10 +551,7 @@
             {
                 return eventsForEffectTriggers[effectTrigger];
             }
-            catch(e:Error)
-            {
-                return "";
-            }
+            catch(e:Error) {}
         }

         return "";


Transferred from the Adobe Open Source Subversion Repository

Revision: 5389
Author:   mhorn@adobe.com
Date:     2009-03-18T16:09:24.692896Z

Log Message:
-----------
various ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/CollectionEventKind.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/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/GradientBase.as
+++ frameworks/projects/framework/src/mx/graphics/GradientBase.as
@@ -351,7 +351,7 @@
      *  A value from the SpreadMethod class
      *  that specifies which spread method to use.
      *
-     *
Value values are SpreadMethod.PAD,
+     *
Valid values are SpreadMethod.PAD,
      *  SpreadMethod.REFLECT,
      *  and SpreadMethod.REPEAT.

      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 9469
Author:   aharui@adobe.com
Date:     2009-08-21T23:09:39.730378Z

Log Message:
-----------
PARB changes for Panel ControlBar.  No more anticpated changes to these APIs.

QE Notes: APIs are hopefully final
Doc Notes: APIs are hopefully final
Bugs: None
Reviewer: Gordon
API Change: Yes
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/containers/Panel

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/views/PanelControlBarTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -151,7 +151,7 @@
     /**
      *  @private
      */
-    private static const CONTROLS_PROPERTY_FLAG:uint = 1 << 0;
+    private static const CONTROLBAR_PROPERTY_FLAG:uint = 1 << 0;

     /**
      *  @private
@@ -328,25 +328,25 @@

     /**
      *  @private
-     *  Several properties are proxied to controlGroup.  However, when controlGroup
+     *  Several properties are proxied to controlBarGroup.  However, when controlBarGroup
      *  is not around, we need to store values set on SkinnableContainer.  This object
-     *  stores those values.  If controlGroup is around, the values are stored
-     *  on the controlGroup directly.  However, we need to know what values
+     *  stores those values.  If controlBarGroup is around, the values are stored
+     *  on the controlBarGroup directly.  However, we need to know what values
      *  have been set by the developer on the SkinnableContainer (versus set on
-     *  the controlGroup or defaults of the controlGroup) as those are values
-     *  we want to carry around if the controlGroup changes (via a new skin).
-     *  In order to store this info effeciently, controlGroupProperties becomes
+     *  the controlBarGroup or defaults of the controlBarGroup) as those are values
+     *  we want to carry around if the controlBarGroup changes (via a new skin).
+     *  In order to store this info effeciently, controlBarGroupProperties becomes
      *  a uint to store a series of BitFlags.  These bits represent whether a
      *  property has been explicitely set on this SkinnableContainer.  When the
-     *  controlGroup is not around, controlGroupProperties is a typeless
-     *  object to store these proxied properties.  When controlGroup is around,
-     *  controlGroupProperties stores booleans as to whether these properties
+     *  controlBarGroup is not around, controlBarGroupProperties is a typeless
+     *  object to store these proxied properties.  When controlBarGroup is around,
+     *  controlBarGroupProperties stores booleans as to whether these properties
      *  have been explicitely set or not.
      */
-    private var controlGroupProperties:Object = {};
-
-    //----------------------------------
-    //  controlGroup
+    private var controlBarGroupProperties:Object = {};
+
+    //----------------------------------
+    //  controlBarGroup
     //----------------------------------

     [SkinPart(required="false")]
@@ -362,37 +362,37 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var controlGroup:Group;
-
-    //----------------------------------
-    //  controls
+    public var controlBarGroup:Group;
+
+    //----------------------------------
+    //  controlBarContent
     //----------------------------------

     [ArrayElementType("mx.core.IVisualElement")]

     /**
      *  The set of items that become the content of
-     *  the controlGroup
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function set controls(value:Array):void
-    {
-        if (controlGroup)
-        {
-            controlGroup.mxmlContent = value;
-            controlGroupProperties = BitFlagUtil.update(controlGroupProperties as uint,
-                                                        CONTROLS_PROPERTY_FLAG, true);
+     *  the controlBarGroup
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function set controlBarContent(value:Array):void
+    {
+        if (controlBarGroup)
+        {
+            controlBarGroup.mxmlContent = value;
+            controlBarGroupProperties = BitFlagUtil.update(controlBarGroupProperties as uint,
+                                                        CONTROLBAR_PROPERTY_FLAG, true);
         }
         else
-            controlGroupProperties.controls = value;
-    }
-
-    //----------------------------------
-    //  controlLayout
+            controlBarGroupProperties.controlBarContent = value;
+    }
+
+    //----------------------------------
+    //  controlBarLayout
     //----------------------------------

     /**
@@ -403,23 +403,23 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get controlLayout():LayoutBase
-    {
-        return (controlGroup)
-            ? controlGroup.layout
-            : controlGroupProperties.layout;
-    }
-
-    public function set controlLayout(value:LayoutBase):void
-    {
-        if (controlGroup)
-        {
-            controlGroup.layout = value;
-            controlGroupProperties = BitFlagUtil.update(controlGroupProperties as uint,
+    public function get controlBarLayout():LayoutBase
+    {
+        return (controlBarGroup)
+            ? controlBarGroup.layout
+            : controlBarGroupProperties.layout;
+    }
+
+    public function set controlBarLayout(value:LayoutBase):void
+    {
+        if (controlBarGroup)
+        {
+            controlBarGroup.layout = value;
+            controlBarGroupProperties = BitFlagUtil.update(controlBarGroupProperties as uint,
                                                         LAYOUT_PROPERTY_FLAG, true);
         }
         else
-            controlGroupProperties.layout = value;
+            controlBarGroupProperties.layout = value;
     }

     //--------------------------------------------------------------------------
@@ -859,26 +859,26 @@
     {
         super.partAdded(partName, instance);

-        if (instance == controlGroup)
-        {
-            // copy proxied values from controlGroupProperties (if set) to contentGroup
-            var newControlGroupProperties:uint = 0;
+        if (instance == controlBarGroup)
+        {
+            // copy proxied values from controlBarGroupProperties (if set) to contentGroup
+            var newControlBarGroupProperties:uint = 0;

-            if (controlGroupProperties.controls !== undefined)
+            if (controlBarGroupProperties.controlBarContent !== undefined)
             {
-                controlGroup.mxmlContent = controlGroupProperties.controls;
-                newControlGroupProperties = BitFlagUtil.update(newControlGroupProperties,
-                                                               CONTROLS_PROPERTY_FLAG, true);
+                controlBarGroup.mxmlContent = controlBarGroupProperties.controlBarContent;
+                newControlBarGroupProperties = BitFlagUtil.update(newControlBarGroupProperties,
+                                                               CONTROLBAR_PROPERTY_FLAG, true);
             }

-            if (controlGroupProperties.layout !== undefined)
+            if (controlBarGroupProperties.layout !== undefined)
             {
-                controlGroup.layout = controlGroupProperties.layout;
-                newControlGroupProperties = BitFlagUtil.update(newControlGroupProperties,
+                controlBarGroup.layout = controlBarGroupProperties.layout;
+                newControlBarGroupProperties = BitFlagUtil.update(newControlBarGroupProperties,
                                                                LAYOUT_PROPERTY_FLAG, true);
             }

-            controlGroupProperties = newControlGroupProperties;
+            controlBarGroupProperties = newControlBarGroupProperties;
         }
     }

@@ -894,23 +894,48 @@
     {
         super.partRemoved(partName, instance);

-        if (instance == controlGroup)
+        if (instance == controlBarGroup)
         {
             // copy proxied values from contentGroup (if explicitely set) to contentGroupProperties

-            var newControlGroupProperties:Object = {};
+            var newControlBarGroupProperties:Object = {};

-            if (BitFlagUtil.isSet(controlGroupProperties as uint, CONTROLS_PROPERTY_FLAG))
-                newControlGroupProperties.controls = controlGroup.getMXMLContent();
+            if (BitFlagUtil.isSet(controlBarGroupProperties as uint, CONTROLBAR_PROPERTY_FLAG))
+                newControlBarGroupProperties.controlBarContent = controlBarGroup.getMXMLContent();

-            if (BitFlagUtil.isSet(controlGroupProperties as uint, LAYOUT_PROPERTY_FLAG))
-                newControlGroupProperties.layout = controlGroup.layout;
+            if (BitFlagUtil.isSet(controlBarGroupProperties as uint, LAYOUT_PROPERTY_FLAG))
+                newControlBarGroupProperties.layout = controlBarGroup.layout;

-            controlGroupProperties = newControlGroupProperties;
-
-            controlGroup.mxmlContent = null;
-            controlGroup.layout = null;
-        }
+            controlBarGroupProperties = newControlBarGroupProperties;
+
+            controlBarGroup.mxmlContent = null;
+            controlBarGroup.layout = null;
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override protected function getCurrentSkinState():String
+    {
+        var state:String = enabled ? "normal" : "disabled";
+        if (controlBarGroup)
+        {
+            if (BitFlagUtil.isSet(controlBarGroupProperties as uint, CONTROLBAR_PROPERTY_FLAG))
+                state += "WithControlBar";
+        }
+        else
+        {
+            if (controlBarGroupProperties.controlBarContent)
+                state += "WithControlBar";
+        }
+
+        return state;
     }

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


FIX - FLEX-25962 PopupAnchor needs modal functionality (patch by Lee Burrows)

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -336,6 +336,7 @@

     private var _isModal:Boolean = false;

+    [Inspectable(category="General", defaultValue="false")]
     /**
      *  Flag indicating whether the popup should be modal.
      *  A modal container takes all keyboard and mouse input until it is closed.


Transferred from the Adobe Open Source Subversion Repository

Revision: 6464
Author:   hmuller@adobe.com
Date:     2009-05-01T19:25:47.821633Z

Log Message:
-----------
Fixed LayoutBase::getScrollPositionDeltaToElement() for useVirtualLayout=true.  Added LayoutBase::getElementBounds() and added a "get" prefix to the four existing LayoutBase::elementBoundsBelowScrollRect() per the PARB.

QE Notes: The four protected LayoutBase method renames shouldn't break any tests ...
Doc Notes:
Bugs: sdk-20891
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -666,6 +666,21 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @private
+     */
+    override protected function getElementBounds(index:int):Rectangle
+    {
+        if (!useVirtualLayout)
+            return super.getElementBounds(index);
+
+        var g:GroupBase = GroupBase(target);
+        if (!g || (index < 0) || (index >= g.numElements))
+            return null;
+
+        return llv.getBounds(index);
+    }
+
 	/**
 	 *  An index is "in view" if the corresponding non-null layout element is
 	 *  within the vertical limits of the layout target's scrollRect
@@ -891,30 +906,6 @@

         setIndexInView(i0, i1);
     }
-
-    /**
-     *  @private
-     *
-     *  If the element at index i is non-null and includeInLayout,
-     *  then return it's actual bounds, otherwise return null.
-     */
-    private function layoutElementBounds(g:GroupBase, i:int):Rectangle
-    {
-        if (useVirtualLayout)
-            return llv.getBounds(i);
-        else
-        {
-            var element:ILayoutElement = g.getElementAt(i);
-            if (element && element.includeInLayout)
-            {
-                return new Rectangle(element.getLayoutBoundsX(),
-                                     element.getLayoutBoundsY(),
-                                     element.getLayoutBoundsWidth(),
-                                     element.getLayoutBoundsHeight());
-            }
-        }
-        return null;
-    }

     /**
      *  @private
@@ -940,12 +931,12 @@
             if (i < 0)
                 return new Rectangle(0, 0, 0, paddingTop);
             if (i >= n)
-                return new Rectangle(0, layoutElementBounds(g, n-1).bottom, 0, paddingBottom);
+                return new Rectangle(0, getElementBounds(n-1).bottom, 0, paddingBottom);
         }

         while((i >= 0) && (i < n))
         {
-           var elementR:Rectangle = layoutElementBounds(g, i);
+           var elementR:Rectangle = getElementBounds(i);
            // Special case: if the scrollRect r _only_ contains
            // elementR, then if we're searching up (dir == -1),
            // and elementR's top edge is visible, then try again
@@ -965,7 +956,7 @@
     /**
      *  @private
      */
-    override protected function elementBoundsAboveScrollRect(scrollRect:Rectangle):Rectangle
+    override protected function getElementBoundsAboveScrollRect(scrollRect:Rectangle):Rectangle
     {
         return findLayoutElementBounds(target, firstIndexInView, -1, scrollRect);
     }
@@ -973,7 +964,7 @@
     /**
      *  @private
      */
-    override protected function elementBoundsBelowScrollRect(scrollRect:Rectangle):Rectangle
+    override protected function getElementBoundsBelowScrollRect(scrollRect:Rectangle):Rectangle
     {
         return findLayoutElementBounds(target, lastIndexInView, +1, scrollRect);
     }


Added cloning of ManagedArray

Added cloning of ManagedArray

--- src/Modi/ManagedArray.as
+++ src/Modi/ManagedArray.as
@@ -677,5 +677,14 @@
                 closure(this.objectAt(i));
             }
         }
-	}
+
+        public function clone():ManagedArray
+        {
+            var array:ManagedArray = new ManagedArray();
+            array._childType = _childType;
+            array._data = _data.concat();
+
+            return array;
+        }
+    }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11289
Author:   egeorgie@adobe.com
Date:     2009-10-30T01:38:52.015427Z

Log Message:
-----------
GroupBase overlay - rename DisplayPlane to DisplayLayer, add a new method DisplayLayer:getDisplayObjectDepth()

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Glenn
Tests run: checkintests, mustella (ListDragDrop)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/components.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayPlane.as" copyfrom-rev="11280" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayPlane.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayPlaneObjectExistenceEvent.as" copyfrom-rev="11280" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayLayerObjectExistenceEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/DisplayPlaneObjectExistenceEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/OverlayDepth.as
@@ -13,7 +13,7 @@
 {
 /**
  *  The OverlayDepth class defines the default depth values for
- *  various overlay elements.
+ *  various overlay elements used by Flex.
  *
  *  @see spark.components.Group#overlay
  *  @see spark.components.DataGroup#overlay
@@ -25,7 +25,17 @@
  */
 public final class OverlayDepth
 {
-	/**
+    /**
+     *  The default depth value under all Flex overlay elements.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const BOTTOM:Number = 0;
+
+    /**
 	 *  The overlay depth for a drop indicator.
 	 *
 	 *  @langversion 3.0
@@ -33,36 +43,36 @@
 	 *  @playerversion AIR 1.5
 	 *  @productversion Flex 4
 	 */
-	public static const DROP_INDICATOR_DEPTH:Number = 100;
+	public static const DROP_INDICATOR:Number = 1000;

 	/**
-	 *  The overlay depth for a mask object.
+	 *  The overlay depth for a focus pane.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10
 	 *  @playerversion AIR 1.5
 	 *  @productversion Flex 4
 	 */
-	public static const MASK_DEPTH:Number = 200;
+	public static const FOCUS_PANE:Number = 2000;

+    /**
+     *  The overlay depth for a mask.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static const MASK:Number = 3000;
+
 	/**
-	 *  The overlay depth for a focus object.
+	 *  The default depth value above all Flex overlay elements.
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10
 	 *  @playerversion AIR 1.5
 	 *  @productversion Flex 4
 	 */
-	public static const FOCUS_DEPTH:Number = 300;
-
-	/**
-	 *  The default top most overlay depth.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public static const TOPMOST:Number = 10000;
+	public static const TOP:Number = 10000;
 }
 }


Fixed Viewport manual resize

Fixed Viewport manual resize

--- src/aerys/minko/render/Viewport.as
+++ src/aerys/minko/render/Viewport.as
@@ -246,7 +246,7 @@
 				updateStageListeners()
 			}

-			resize(width, height);
+			setSize(width, height);
 		}

 		private function setSize(width : Number, height : Number) : void


Viewport will dispatch Event.INIT when ready

--- src/aerys/minko/render/Viewport.as
+++ src/aerys/minko/render/Viewport.as
@@ -237,6 +237,7 @@
 		private function context3dCreatedHandler(event : Event) : void
 		{
 			_invalidBackBuffer = true;
+			dispatchEvent(new Event(Event.INIT));
 		}

 		private function updateBackBuffer() : void


fixed "hasMetaData" method

fixed "hasMetaData" method

--- src/as3reflect/MetaDataContainer.as
+++ src/as3reflect/MetaDataContainer.as
@@ -55,7 +55,7 @@
 		 * @inheritDoc
 		 */
 		public function hasMetaData(key:String):Boolean {
-			return (getMetaData(key) != null);
+			return (getMetaData(key).length > 0);
 		}

 		/**


more attempts to fix autosizing

more attempts to fix autosizing

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as
@@ -92,8 +92,6 @@
             _textModel.addEventListener("widthChanged", widthChangeHandler);
             _textModel.addEventListener("heightChanged", heightChangeHandler);
 			DisplayObjectContainer(value).addChild(_textField);
-            textField.width = DisplayObject(_strand).width;
-            textField.height = DisplayObject(_strand).height;
 			if (_textModel.text !== null)
 				text = _textModel.text;
 			if (_textModel.html !== null)
@@ -155,7 +153,6 @@
 		private function textChangeHandler(event:Event):void
 		{
 			text = _textModel.text;
-			sizeChangeHandler(event);
 		}

 		private function htmlChangeHandler(event:Event):void
@@ -172,7 +169,7 @@
             autoWidth = false;
 			textField.width = DisplayObject(_strand).width;
             if (autoHeight)
-    			textField.height = textField.textHeight + 4;
+    	        textField.height = textField.textHeight + 4;
             else
                 textField.height = DisplayObject(_strand).height;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 13129
Author:   smgilson@adobe.com
Date:     2009-12-21T21:50:37.238504Z

Log Message:
-----------
ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren="false" and focusEnabled="true"

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/VideoEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
+++ frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterpolator.as
@@ -89,14 +89,24 @@
     }

     /**
-     * @inheritDoc
-     *
-     * Interpolation for MultiValueInterpolator consists of running a separate
-     * interpolation on each element of the startValue and endValue
-     * arrays or vectors, returning a new Array or Vector that holds those
-     * interpolated values. The returned object will be an Array if startValue
-     * and endValue are of type Array, otherwise the returned object will be
-     * of type Vector.
+     *  Given an elapsed fraction of an animation, between 0.0 and 1.0,
+     *  and start and end values to interpolate, return the interpolated value.
+     *
+     *  Interpolation for MultiValueInterpolator consists of running a separate
+     *  interpolation on each element of the startValue and endValue
+     *  arrays or vectors, returning a new Array or Vector that holds those
+     *  interpolated values. The returned object will be an Array if startValue
+     *  and endValue are of type Array, otherwise the returned object will be
+     *  of type Vector.
+     *
+     *  @param fraction The fraction elapsed of the
+     *  animation, between 0.0 and 1.0.
+     *
+     *  @param startValue The start value of the interpolation.
+     *
+     *  @param endValue The end value of the interpolation.
+     *
+     *  @return The interpolated value.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


fixed error in typing

fixed error in typing

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -387,7 +387,7 @@
 		 * Dynamic items in the session state that extend this class will be replaced with
 		 * LinkablePlaceholder objects that can be replaced with actual instances later.
 		 */
-		public static function registerAsyncClass/*/<T>/*/(type:/*/new(..._:any[])=>T/*/Class, instanceHandler:Function/*/(instance:T)=>void/*/):void
+		public static function registerAsyncClass/*/<T>/*/(type:/*/new(..._:any[])=>T/*/Class, instanceHandler:/*/(instance:T)=>void/*/Function):void
 		{
 			var valueInMap:* = instanceHandler || true;
 			map_class_isAsync.set(type, valueInMap);


Transferred from the Adobe Open Source Subversion Repository

Revision: 12279
Author:   jimurphy@adobe.com
Date:     2009-11-30T17:39:03.660875Z

Log Message:
-----------
Merged 3.x revisions 12013,12019,12119,12195,12271,12273 -> trunk

........
  r12013 | aharui@adobe.com | 2009-11-19 17:12:58 -0500 (Thu, 19 Nov 2009) | 11 lines

  Fix clipping in Tree.

  Bugs: SDK-15055

........
  r12019 | pfarland@adobe.com | 2009-11-19 18:17:00 -0500 (Thu, 19 Nov 2009) | 10 lines

  Further fixes for SDK-23140. Filtering out internal namespace prefixed attributes from generic deserialization. We exclude the SOAP encoding namespace, SOAP envelope namespace, XML Schema namespace and the XML Schema Instance namespace.

  Bugs: SDK-23140
........
  r12119 | aharui@adobe.com | 2009-11-23 16:08:32 -0500 (Mon, 23 Nov 2009) | 10 lines

  Fix edit sessions in TextInputs yet again.

  Bugs: SDK-23397

........
  r12195 | pfarland@adobe.com | 2009-11-24 22:33:48 -0500 (Tue, 24 Nov 2009) | 11 lines

  Submitting Anshul's fix for SDK-24123 that resolves relative URLs to full URLs before calling a serialization filter (which may need the full context to decide if it needs to make any changes before allowing the request to proceed).

  Bugs:
  SDK-24123
........
  r12271 | preilly@adobe.com | 2009-11-30 10:53:27 -0500 (Mon, 30 Nov 2009) | 5 lines

  * Back ported revision 6756 to 3.x branch.

........
  r12273 | jimurphy@adobe.com | 2009-11-30 11:09:16 -0500 (Mon, 30 Nov 2009) | 6 lines

  merge 3.5.0 revs 12160,12161 -> 3.x

  Closing version.properties input stream.
  bug: SDK-23801

........

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>

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

--- frameworks/projects/mx/src/mx/controls/Tree.as
+++ frameworks/projects/mx/src/mx/controls/Tree.as
@@ -1285,10 +1285,10 @@
     {
         var vm:EdgeMetrics = viewMetrics;

-        if (horizontalScrollBar)
+        if (horizontalScrollBar && horizontalScrollBar.visible)
             vm.bottom -= horizontalScrollBar.minHeight;

-        if (verticalScrollBar)
+        if (verticalScrollBar && verticalScrollBar.visible)
             vm.right -= verticalScrollBar.minWidth;

         listContent.scrollRect = new Rectangle(


Transferred from the Adobe Open Source Subversion Repository

Revision: 19637
Author:   mcho@adobe.com
Date:     2011-01-07T02:07:50.084332Z

Log Message:
-----------
Move text positioning and sizing logic to:

setElementPosition
setElementSize
getElementPreferredWidth
getElementPreferredHeight

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
@@ -735,9 +735,9 @@

             // Text respects padding right, left, top, and bottom
 			labelDisplay.commitStyles();
-            measuredWidth = labelDisplay.measuredTextSize.x + horizontalPadding;
+            measuredWidth = getElementPreferredWidth(labelDisplay) + horizontalPadding;
 			// We only care about the "real" ascent
-            measuredHeight = labelDisplay.textTopToLastBaselineHeight + verticalPadding;
+            measuredHeight = getElementPreferredHeight(labelDisplay) + verticalPadding;
 		}

         // enforce minimum height
@@ -800,7 +800,7 @@
                                       unscaledHeight:Number):void
     {
         // figure out backgroundColor
-        var backgroundColor:uint;
+        var backgroundColor:uint = 0xFFFFFF;
         var drawBackground:Boolean = true;
         var downColor:* = getStyle("downColor");

@@ -839,7 +839,7 @@
 			{
 				// don't draw background if it is the contentBackgroundColor. The
 				// list skin handles the background drawing for us.
-				drawBackground = false;
+				//drawBackground = false;
 			}

         }
@@ -954,7 +954,7 @@
         if (!labelDisplay)
             return;

-        var paddingLeft:Number   = getStyle("paddingLeft") - StyleableTextField.TEXT_WIDTH_PADDING/2;
+        var paddingLeft:Number   = getStyle("paddingLeft");
         var paddingRight:Number  = getStyle("paddingRight");
         var paddingTop:Number    = getStyle("paddingTop");
         var paddingBottom:Number = getStyle("paddingBottom");
@@ -985,15 +985,13 @@
             if (labelDisplay.isTruncated)
                 labelDisplay.text = label;

-			labelHeight = labelDisplay.measuredTextSize.y;
+			labelHeight = getElementPreferredHeight(labelDisplay);
         }

 		setElementSize(labelDisplay, labelWidth, labelHeight);

 		// We want to center using the "real" ascent
 		var labelY:Number = Math.round(vAlign * (viewHeight - labelDisplay.textTopToLastBaselineHeight))  + paddingTop;
-		// Make sure to offset by the distance to the text field's top edge
-		labelY -= labelDisplay.textTopOffset;
 		setElementPosition(labelDisplay, paddingLeft, labelY);

         // attempt to truncate the text now that we have its official width
@@ -1019,7 +1017,12 @@
      */
     protected function setElementPosition(element:Object, x:Number, y:Number):void
     {
-        if (element is ILayoutElement)
+		if (element is StyleableTextField)
+		{
+			StyleableTextField(element).x = x - StyleableTextField.TEXT_HEIGHT_PADDING/2;
+			StyleableTextField(element).y = y - StyleableTextField(element).textTopOffset;
+		}
+		else if (element is ILayoutElement)
         {
             ILayoutElement(element).setLayoutBoundsPosition(x, y, false);
         }
@@ -1027,7 +1030,7 @@
         {
             IFlexDisplayObject(element).move(x, y);
         }
-        else
+		else
         {
             element.x = x;
             element.y = y;
@@ -1046,7 +1049,15 @@
      */
     protected function setElementSize(element:Object, width:Number, height:Number):void
     {
-        if (element is ILayoutElement)
+		if (element is StyleableTextField)
+		{
+			// take into account text gutters
+			element.width = width + StyleableTextField.TEXT_WIDTH_PADDING;
+
+			// take into account textTopOffset and baselineBottomOffset
+			element.height = height + StyleableTextField(element).textTopOffset + StyleableTextField(element).baselineBottomOffset;
+		}
+		else if (element is ILayoutElement)
         {
             ILayoutElement(element).setLayoutBoundsSize(width, height, false);
         }
@@ -1075,7 +1086,12 @@
      */
     protected function getElementPreferredWidth(element:Object):Number
     {
-        if (element is ILayoutElement)
+		if (element is StyleableTextField)
+		{
+			// take into account text gutters
+			return StyleableTextField(element).measuredTextSize.x - StyleableTextField.TEXT_WIDTH_PADDING;
+		}
+		else if (element is ILayoutElement)
         {
             return ILayoutElement(element).getPreferredBoundsWidth();
         }
@@ -1083,11 +1099,7 @@
         {
             return IFlexDisplayObject(element).measuredWidth;
         }
-        else if (element is StyleableTextField)
-        {
-            return StyleableTextField(element).measuredTextSize.x;
-        }
-        else
+		else
         {
             return element.width;
         }
@@ -1107,7 +1119,12 @@
      */
     protected function getElementPreferredHeight(element:Object):Number
     {
-        if (element is ILayoutElement)
+		if (element is StyleableTextField)
+		{
+			// We only care about the "real ascent"
+			return StyleableTextField(element).textTopToLastBaselineHeight;
+		}
+		else if (element is ILayoutElement)
         {
             return ILayoutElement(element).getPreferredBoundsHeight();
         }
@@ -1115,11 +1132,7 @@
         {
             return IFlexDisplayObject(element).measuredHeight;
         }
-        else if (element is StyleableTextField)
-        {
-            return StyleableTextField(element).measuredTextSize.y;
-        }
-        else
+		else
         {
             return element.height;
         }


removed unused var

removed unused var

--- WeaveJS/src/weavejs/data/hierarchy/EntityNodeSearch.as
+++ WeaveJS/src/weavejs/data/hierarchy/EntityNodeSearch.as
@@ -30,7 +30,6 @@
 		private var _searchRegExp:RegExp = null; // used for local comparisons

 		private var _entityCacheSearchResults:Object = new JS.WeakMap(); // EntityCache -> SearchResults
-		private var _xmlNodeLookup:Object = new JS.WeakMap(); // XMLEntityNode -> true

 		/**
 		 * Set this to true to include all descendants of matching nodes
@@ -63,7 +62,6 @@
 			if (_searchField != value)
 			{
 				_searchField = value;
-				_xmlNodeLookup = new JS.WeakMap();
 				Weave.getCallbacks(this).triggerCallbacks();
 			}
 		}
@@ -83,7 +81,6 @@
 			{
 				_searchString = value;
 				_searchRegExp = strToRegExp(value);
-				_xmlNodeLookup = new JS.WeakMap();
 				Weave.getCallbacks(this).triggerCallbacks();
 			}
 		}
@@ -114,10 +111,7 @@

 				// if cache updated, rebuild idLookup
 				if (Weave.detectChange(results, cache))
-				{
-					_xmlNodeLookup = new JS.WeakMap();
 					results.rebuildLookup(cache);
-				}

 				// The idLookup determines whether or not we want to include this EntityNode.
 				lookup = results.idLookup[en.id];


Check that goto fires labels

Check that goto fires labels

--- exporter/src/test/as/flump/test/RuntimePlaybackTest.as
+++ exporter/src/test/as/flump/test/RuntimePlaybackTest.as
@@ -39,8 +39,13 @@

     public function gotoFrameAndLabel () :void {
         _movie = _res.loadMovie("nesteddance");
+        _movie.labelPassed.add(_labelsPassed.push);
         _movie.goto("timepassed");
         assert(_movie.frame == 9);
+        passed("timepassed");
+        assert(_labelsPassed.length == 1);
+        _movie.goto("timepassed");
+        assert(_labelsPassed.length == 2);
         assert(_movie.isPlaying, "Playing changed in goto");

         _movie.stop();