Flash: In effort to overcome random freeze in Chrome (as of FP11.2 r202)

--- src/flash/plupload/src/com/plupload/File.as
+++ src/flash/plupload/src/com/plupload/File.as
@@ -31,6 +31,7 @@
 	import flash.net.URLStream;
 	import flash.net.URLVariables;
 	import flash.utils.ByteArray;
+	import flash.utils.setTimeout;
 	import flash.external.ExternalInterface;
 	import com.mxi.image.events.ExifParserEvent;

@@ -314,8 +315,13 @@
 		 * Uploads the next chunk or terminates the upload loop if all chunks are done.
 		 */
 		public function uploadNextChunk():Boolean {
-			var req:URLRequest, fileData:ByteArray, chunkData:ByteArray;
-			var url:String, file:File = this;
+			var file:File = this, fileData:ByteArray, chunkData:ByteArray, req:URLRequest, url:String;
+			var onComplete:Function, onIOError:Function, onSecurityError:Function;
+			var removeAllEventListeners:Function = function() : void {
+				file._urlStream.removeEventListener(Event.COMPLETE, onComplete);
+				file._urlStream.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
+				file._urlStream.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
+			};

 			// All chunks uploaded?
 			if (this._chunk >= this._chunks) {
@@ -340,12 +346,13 @@
 			fileData.readBytes(chunkData, 0, fileData.position + this._chunkSize > fileData.length ? fileData.length - fileData.position : this._chunkSize);

 			// Setup URL stream
+			file._urlStream = null;
 			file._urlStream = new URLStream();

 			// Wait for response and dispatch it
-			file._urlStream.addEventListener(Event.COMPLETE, function(e:Event):void {
-				file._urlStream.removeEventListener(Event.COMPLETE, arguments.callee);
-
+			onComplete = function(e:Event):void {
+
+
 				var response:String = file._urlStream.readUTFBytes(file._urlStream.bytesAvailable);

 				// Fake UPLOAD_COMPLETE_DATA event
@@ -367,20 +374,24 @@

 				// Clean up memory
 				file._urlStream.close();
+				removeAllEventListeners();
 				chunkData.clear();
-			});
+			};
+			file._urlStream.addEventListener(Event.COMPLETE, onComplete);

 			// Delegate upload IO errors
-			file._urlStream.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
-				file._urlStream.removeEventListener(IOErrorEvent.IO_ERROR, arguments.callee);
-				dispatchEvent(e);
-			});
+			onIOError = function(e:IOErrorEvent):void {
+				removeAllEventListeners();
+				dispatchEvent(e);
+			};
+			file._urlStream.addEventListener(IOErrorEvent.IO_ERROR, onIOError);

 			// Delegate secuirty errors
-			file._urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(e:SecurityErrorEvent):void {
-				file._urlStream.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, arguments.callee);
-				dispatchEvent(e);
-			});
+			onSecurityError = function(e:SecurityErrorEvent):void {
+				removeAllEventListeners();
+				dispatchEvent(e);
+			};
+			file._urlStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);

 			// Setup URL
 			url = this._uploadUrl;
@@ -453,8 +464,9 @@
 			}

 			// Make request
-			file._urlStream.load(req);
-
+			setTimeout(function() : void { // otherwise URLStream eventually hangs for Chrome+Flash (as of FP11.2 r202)
+				file._urlStream.load(req);
+			}, 1);
 			return true;
 		}
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19060
Author:   harishs@adobe.com
Date:     2010-12-06T17:34:15.020965Z

Log Message:
-----------
QE notes: Did checkintests, performed full cyclone run. There were 19 failures in mustella report. QE Judy (Mingzhou Gao and Joann Chung Anderson) confirmed that they are known problems.
Doc notes: As part of Sort and Sortfield updates, the asdoc comments were updated to reflect globalization changes.
Bugs: Fixed sdk-28493, 28691,28494, 28345, 28320, 28387, 28314, 28145
Reviewer: Gordon Smith
Tests run: cyclone, checkintests, bugs testfiles
Is noteworthy for integration: Sort and Sortfield updated with globalization support using the new spark globalization sort classes.
Number and CurrencyValidators support national digits and unicode minus symbols.
groupingPattern property dropped for Number and Currency Validators.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ICollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/OLAPCube.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/bundles/en_US/validators.properties</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/olap/DefaultCubeImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/SortTestScript.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/views/SortTests.mxml</path>

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

--- frameworks/projects/advancedgrids/src/mx/olap/DefaultCubeImpl.as
+++ frameworks/projects/advancedgrids/src/mx/olap/DefaultCubeImpl.as
@@ -19,6 +19,8 @@
 import mx.collections.CursorBookmark;
 import mx.collections.IList;
 import mx.collections.IViewCursor;
+import mx.collections.ISort;
+import mx.collections.ISortField;
 import mx.collections.Sort;
 import mx.collections.SortField;
 import mx.core.mx_internal;
@@ -139,10 +141,10 @@
     private var iterator:IViewCursor = null;

 	//saved sort value
-    private var oldSort:Sort;
+    private var oldSort:ISort;

     //sort object used to gather members of dimensions
-    private var newSort:Sort;
+    private var newSort:ISort;

 	//Cube builder instance
     private var nodeBuilder:CubeNodeBuilder;
@@ -372,7 +374,7 @@
                 newSort = new Sort;
                 var fields:Array = [];

-                var field:SortField ;
+                var field:ISortField ;
                 for each (level in levels)
                 {
                 	if (level.attribute && level.attribute.userDataFunction)
@@ -1159,12 +1161,12 @@
         }

         // sort the data as it makes decision about completion of handling
-        var newSort:Sort = new Sort;
+        var newSort:ISort = new Sort;
         var fields:Array = [];

         for each (var level:OLAPLevel in levels)
         {
-            var field:SortField = new SortField(level.dataField);
+            var field:ISortField = new SortField(level.dataField);
             fields.push(field);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3049
Author:   aharui@adobe.com
Date:     2008-08-29T22:49:29.177346Z

Log Message:
-----------
SDK-16552, SDK-16391, SDK-16639

Final signoff bugfixes including API scrub changes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.as" copyfrom-rev="3039" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/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/SandboxRootRequest.as" copyfrom-rev="3039" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/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/SandboxRootMouseEvent.as" copyfrom-rev="3039" action="A">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="D">/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>

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

--- frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as
+++ frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as
@@ -19,9 +19,9 @@
  *  about mouse activity in another sandbox.
  *
  *  For security reasons, some fields of a MouseEvent are not sent
- *  in a SandboxRootMouseEvent.
+ *  in a SandboxMouseEvent.
  */
-public class SandboxRootMouseEvent extends Event
+public class SandboxMouseEvent extends Event
 {
 	include "../core/Version.as";

@@ -70,11 +70,11 @@
 	/**
      *  Documentation is not currently available.
      */
-    public static function marshal(event:Event):SandboxRootMouseEvent
+    public static function marshal(event:Event):SandboxMouseEvent
 	{
 		var eventObj:Object = event;

-		return new SandboxRootMouseEvent(eventObj.type, eventObj.bubbles,
+		return new SandboxMouseEvent(eventObj.type, eventObj.bubbles,
                                      eventObj.cancelable,
 							         eventObj.ctrlKey, eventObj.altKey,
 							         eventObj.shiftKey, eventObj.buttonDown);
@@ -89,7 +89,7 @@
 	/**
 	 *  Constructor.
 	 */
-	public function SandboxRootMouseEvent(type:String, bubbles:Boolean = false,
+	public function SandboxMouseEvent(type:String, bubbles:Boolean = false,
                                       cancelable:Boolean = false,
 									  ctrlKey:Boolean = false,
                                       altKey:Boolean = false,
@@ -157,7 +157,7 @@
      */
     override public function clone():Event
 	{
-		return new SandboxRootMouseEvent(type, bubbles, cancelable,
+		return new SandboxMouseEvent(type, bubbles, cancelable,
                                      ctrlKey, altKey, shiftKey, buttonDown);
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10331
Author:   egeorgie@adobe.com
Date:     2009-09-16T22:56:16.127503Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-22797 When using Graphics on Drag Drop an index out of bounds error is thrown.

QE notes: None
Doc notes: None
Bugs: SDK-22797
Reviewer: Gordon
Tests run: mustella tests/managers/DragManager
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -455,7 +455,8 @@
 			{
 				sm.popUpChildren.removeChild(dragProxy);

-				dragProxy.removeChildAt(0);	// The drag image is the only child
+                if (dragProxy.numChildren > 0)
+				    dragProxy.removeChildAt(0);	// The drag image is the only child
 				dragProxy = null;
 			}
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4492
Author:   gosmith@adobe.com
Date:     2009-01-12T22:47:10.154251Z

Log Message:
-----------
Simplified how an accessibility class gets hooked into its corresponding component class.

We now do the hooking in the static method enableAccessibility(), which is called by code that is autogenerated by the compiler. Previously this method did nothing and the hooking happened at static initialization time. This allows us to remove the static var accessibilityHooked and the static method hookAccessibility() in each accessibility class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa and Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccProps.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/LinkButtonAccImpl.as
@@ -19,44 +19,12 @@
 use namespace mx_internal;

 /**
- *  The LinkButtonAccImpl class is the accessibility class for Link.
- *
- *  @helpid 3002
- *  @tiptext This is the LinkButton Accessibility Class.
- *  @review
+ *  LinkButtonAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the LinkButton class.
  */
 public class LinkButtonAccImpl extends ButtonAccImpl
 {
     include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class initialization
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Static variable triggering the hookAccessibility() method.
-	 *  This is used for initializing LinkButtonAccImpl class to hook its
-	 *  createAccessibilityImplementation() method to LinkButton class
-	 *  before it gets called from UIComponent.
-	 */
-	private static var accessibilityHooked:Boolean = hookAccessibility();
-
-	/**
-	 *  @private
-	 *  Static Method for swapping the
-	 *  createAccessibilityImplementation method of LinkButton with
-	 *  the LinkButtonAccImpl class.
-	 */
-	private static function hookAccessibility():Boolean
-	{
-		LinkButton.createAccessibilityImplementation =
-			createAccessibilityImplementation;
-
-		return true;
-	}

 	//--------------------------------------------------------------------------
 	//
@@ -65,25 +33,31 @@
 	//--------------------------------------------------------------------------

 	/**
+	 *  Enables accessibility in the LinkButton class.
+	 *
+	 *
This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of LinkButton are initialized,
+	 *  their accessibilityImplementation property
+	 *  will be set to an instance of this class.

+	 */
+	public static function enableAccessibility():void
+	{
+		LinkButton.createAccessibilityImplementation =
+			createAccessibilityImplementation;
+	}
+
+	/**
 	 *  @private
-	 *  Method for creating the Accessibility class.
-	 *  This method is called from UIComponent.
-	 *  @review
+	 *  Creates a LinkButton's AccessibilityImplementation object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
 	 */
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void
 	{
 		component.accessibilityImplementation =
 			new LinkButtonAccImpl(component);
-	}
-
-	/**
-	 *  Method call for enabling accessibility for a component.
-	 *  This method is required for the compiler to activate
-	 *  the accessibility classes for a component.
-	 */
-	public static function enableAccessibility():void
-	{
 	}

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.messaging.messages
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6595
Author:   dsubrama@adobe.com
Date:     2009-05-04T20:00:36.061973Z

Log Message:
-----------
Support for caret state in ItemRenderers and List. Focus management puts renderers in the caret state and selectUponNavigation is partly implemented. This is the first step towards getting DropDownList selection/list keyboard navigation work working. Jason will do the integration/refactoring on the List end with a subsequent check-in.

QA: Hold off till Jason's refactoring work comes in
Checkintests: PASS
Mustella tests: List, ButtonBar - PASS

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</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/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBarButton.as
+++ frameworks/projects/spark/src/spark/components/ButtonBarButton.as
@@ -64,32 +64,32 @@
     }

     //----------------------------------
-    //  showFocusIndicator
+    //  caret
     //----------------------------------

     /**
      *  @private
-     *  Storage for the showFocusIndicator property
+     *  Storage for the caret property
      */
-    private var _showFocusIndicator:Boolean = false;
+    private var _caret:Boolean = false;

     /**
      *  @inheritDoc
      */
-    public function get showFocusIndicator():Boolean
+    public function get caret():Boolean
     {
-        return _showFocusIndicator;
+        return _caret;
     }

     /**
      *  @private
      */
-    public function set showFocusIndicator(value:Boolean):void
+    public function set caret(value:Boolean):void
     {
-        if (value == _showFocusIndicator)
+        if (value == _caret)
             return;

-        _showFocusIndicator = value;
+        _caret = value;
         mx_internal::drawFocusAnyway = true;
         drawFocus(value);
     }


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

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

 package mx.logging
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20764
Author:   smgilson@adobe.com
Date:     2011-03-10T17:16:24.059260Z

Log Message:
-----------
Merge 20761 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/URLUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LinkedListNode.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/XMLNotifier.as</path>

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

--- frameworks/projects/framework/src/mx/utils/LinkedList.as
+++ frameworks/projects/framework/src/mx/utils/LinkedList.as
@@ -74,7 +74,7 @@
      */
     public function get head():LinkedListNode
     {
-		return (_head.next == _tail) ? null : _head.next;
+        return (_head.next == _tail) ? null : _head.next;
     }

     //----------------------------------
@@ -93,23 +93,23 @@
     {
         return _length;
     }
-
-	//----------------------------------
-	//  tail
-	//----------------------------------
-
-	/**
-	 *  Node representing tail of the list.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4.5
-	 */
-	public function get tail():LinkedListNode
-	{
-		return (_tail.prev == _head) ? null : _tail.prev;
-	}
+
+    //----------------------------------
+    //  tail
+    //----------------------------------
+
+    /**
+     *  Node representing tail of the list.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get tail():LinkedListNode
+    {
+        return (_tail.prev == _head) ? null : _tail.prev;
+    }

     //--------------------------------------------------------------------------
     //
@@ -122,8 +122,11 @@
      *
      *  @param value Value to insert. If the value is not a LinkedListNode
      *  one will be created.
+     *
      *  @param prev The previous node to insert relative to.
      *
+     *  @return The new node.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -146,7 +149,10 @@
      *
      *  @param value Value to insert. If the value is not a LinkedListNode
      *  one will be created.
+     *
      *  @param prev The node to insert relative to.
+     *
+     *  @return The new node.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -170,7 +176,8 @@
      *  Searches through all nodes for the given value.
      *
      *  @param value The value to find.
-     *  @param prev The previous node to insert relative to.
+     *
+     *  @return The node location.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -204,7 +211,7 @@
         {
             node.prev.next = node.next;
             node.next.prev = node.prev;
-			node.next = node.prev = null;
+            node.next = node.prev = null;
             _length--;
         }
         return node;


hide unused variable

hide unused variable

Change-Id: I8f5219585e79a177734200d196167153c566b751

--- WeaveData/src/weave/data/BinningDefinitions/CategoryBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/CategoryBinningDefinition.as
@@ -21,8 +21,10 @@
 {
 	import mx.utils.ObjectUtil;

+	import weave.api.WeaveAPI;
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IQualifiedKey;
+	import weave.core.SessionManager;
 	import weave.data.BinClassifiers.SingleValueClassifier;
 	import weave.utils.AsyncSort;

@@ -35,7 +37,8 @@
 	{
 		public function CategoryBinningDefinition()
 		{
-			overrideBinNames.lock(); // no bin names allowed
+			overrideBinNames.lock(); // no bin names allowed
+			(WeaveAPI.SessionManager as SessionManager).unregisterLinkableChild(this, overrideBinNames);
 		}

 		/**


[feat] add UserInfoEntity

[feat] add UserInfoEntity

--- src/main/actionscript/com/dotfold/dotvimstat/model/UserInfoEntity.as
+++ src/main/actionscript/com/dotfold/dotvimstat/model/UserInfoEntity.as
@@ -1,5 +1,8 @@
 package com.dotfold.dotvimstat.model
 {
+	import com.dotfold.dotvimstat.model.image.EntityImage;
+	import com.dotfold.dotvimstat.model.image.EntityImageCollection;
+
 	/**
 	 *
 	 * @author jamesmcnamee
@@ -12,7 +15,7 @@
 			super();
 		}

-		public var displayName:String;
+		public var display_name:String;
 		public var created_on:String;
 		public var is_staff:Boolean;
 		public var is_plus:Boolean;
@@ -28,9 +31,71 @@
 		public var total_contacts:int;
 		public var total_albums:int;
 		public var total_channels:int;
-		public var portrait_small:String;
-		public var portrait_medium:String;
-		public var portrait_large:String;
-		public var portrait_huge:String;
+
+		private var _portrait_small:String
+		public function get portrait_small():String
+		{
+			return _portrait_small;
+		}
+
+		public function set portrait_small(value:String):void
+		{
+			_portrait_small = value;
+
+			var image:EntityImage = new EntityImage();
+			image.url = value;
+			image.size = 'small';
+			images.addItem(image);
+		}
+
+		private var _portrait_medium:String
+		public function get portrait_medium():String
+		{
+			return _portrait_medium;
+		}
+
+		public function set portrait_medium(value:String):void
+		{
+			_portrait_medium = value;
+
+			var image:EntityImage = new EntityImage();
+			image.url = value;
+			image.size = 'medium';
+			images.addItem(image);
+		}
+
+		private var _portrait_large:String
+		public function get portrait_large():String
+		{
+			return _portrait_large;
+		}
+
+		public function set portrait_large(value:String):void
+		{
+			_portrait_large = value;
+
+			var image:EntityImage = new EntityImage();
+			image.url = value;
+			image.size = 'large';
+			images.addItem(image);
+		}
+
+		private var _portrait_huge:String
+		public function get portrait_huge():String
+		{
+			return _portrait_huge;
+		}
+
+		public function set portrait_huge(value:String):void
+		{
+			_portrait_huge = value;
+
+			var image:EntityImage = new EntityImage();
+			image.url = value;
+			image.size = 'huge';
+			images.addItem(image);
+		}
+
+		public var images:EntityImageCollection = new EntityImageCollection();
 	}
 }


M DataProvider.getProperty now returns * to stop casting all the time

--- src/aerys/minko/type/data/DataProvider.as
+++ src/aerys/minko/type/data/DataProvider.as
@@ -55,7 +55,7 @@
 			return true;
 		}

-		public function getProperty(name : String) : Object
+		public function getProperty(name : String) : *
 		{
 			return _data[name];
 		}


Allow the creator to specify their own bounds if they don't want submenus to be constrained by the
stage.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@519 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flex/CommandMenu.as
+++ src/as/com/threerings/flex/CommandMenu.as
@@ -118,6 +118,17 @@
     }

     /**
+     * Sets a Rectangle (in stage coords) that the menu will attempt to keep submenus positioned
+     * within.  If a submenu is too large to fit, it will position it in the lower right corner
+     * of this Rectangle (or top if popping upwards, or left if popping leftwards).   This
+     * value defaults to the stage bounds.
+     */
+    public function setBounds (fitting :Rectangle) :void
+    {
+        _fitting = fitting;
+    }
+
+    /**
      * Actually pop up the menu. This can be used instead of show().
      */
     public function popUp (
@@ -244,7 +255,8 @@
         var submenu :Menu = IMenuItemRenderer(row).menu;
         var lefting :Boolean = _lefting;
         var upping :Boolean = _upping;
-        var fitting :Rectangle = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
+        var fitting :Rectangle = _fitting != null ? _fitting :
+            new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
         if (submenu.x + submenu.getExplicitOrMeasuredWidth() > fitting.right) {
             lefting = true;
         }
@@ -264,11 +276,11 @@
         // if we've poped out of the boundaries, just snap it to the lower right corner, or upper
         // if upping, left if lefting
         if (submenu.x < fitting.left) {
-            submenu.x = lefting ? 0 : Math.max(
+            submenu.x = lefting ? fitting.left : Math.max(
                     fitting.right - submenu.getExplicitOrMeasuredWidth(), fitting.left);
         }
         if (submenu.y < fitting.top) {
-            submenu.y = upping ? 0 : Math.max(
+            submenu.y = upping ? fitting.top : Math.max(
                     fitting.bottom - submenu.getExplicitOrMeasuredHeight(), fitting.top);
         }
     }
@@ -323,5 +335,6 @@
     protected var _dispatcher :IEventDispatcher;
     protected var _lefting :Boolean = false;
     protected var _upping :Boolean = false;
+    protected var _fitting :Rectangle = null;
 }
 }


Issue #195: better panel divider styling

--- src/com/esri/viewer/managers/UIManager.as
+++ src/com/esri/viewer/managers/UIManager.as
@@ -449,6 +449,13 @@
             topLevelStyleManager.setStyleDeclaration("mx.charts.chartClasses.DataTip", cssStyleDeclarationChartDataTips, false);
         }

+        // Style the divider used when using widgetcontainers
+        var cssStyleDeclarationMxDividedBox:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("mx.containers.DividedBox");
+        if (numberOfStyleColors > 4)
+        {
+            cssStyleDeclarationMxDividedBox.setStyle("_dividerFillColors", [titleColor,titleColor]);
+        }
+
         var cssStyleDeclarationModal:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("global")
         cssStyleDeclarationModal.setStyle("modalTransparencyColor", 0x777777);
         cssStyleDeclarationModal.setStyle("modalTransparencyBlur", 1);


Transferred from the Adobe Open Source Subversion Repository

Revision: 12975
Author:   klin@adobe.com
Date:     2009-12-16T00:22:26.935084Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-24546. Add Exclude metadata for scriptTimeLimit property in WindowedApplication because AIR doesn't implement it.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -309,6 +309,7 @@
 [Exclude(name="controlBarLayout", kind="property")]
 [Exclude(name="controlBarVisible", kind="property")]
 [Exclude(name="moveEffect", kind="effect")]
+[Exclude(name="scriptTimeLimit", kind="property")]

 //--------------------------------------
 //  SkinStates


This closes #37

This closes #37

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -690,7 +690,7 @@
      */
     override public function get maxHeight():Number
     {
-        if (nativeWindow && !maxHeightChanged)
+        if (nativeWindow && nativeWindow.maxSize && !maxHeightChanged)
             return nativeWindow.maxSize.y - chromeHeight();
         else
             return _maxHeight;
@@ -738,7 +738,7 @@
      */
     override public function get maxWidth():Number
     {
-        if (nativeWindow && !maxWidthChanged)
+        if (nativeWindow && nativeWindow.maxSize && !maxWidthChanged)
             return nativeWindow.maxSize.x - chromeWidth();
         else
             return _maxWidth;
@@ -792,7 +792,7 @@
      */
     override public function get minHeight():Number
     {
-        if (nativeWindow && !minHeightChanged)
+        if (nativeWindow && nativeWindow.minSize && !minHeightChanged)
             return nativeWindow.minSize.y - chromeHeight();
         else
             return _minHeight;
@@ -840,7 +840,7 @@
      */
     override public function get minWidth():Number
     {
-        if (nativeWindow && !minWidthChanged)
+        if (nativeWindow && nativeWindow.minSize && !minWidthChanged)
             return nativeWindow.minSize.x - chromeWidth();
         else
             return _minWidth;


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

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

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22269
Author:   tkraikit@adobe.com
Date:     2011-08-29T18:18:05.065690Z

Log Message:
-----------
SDK-31368: minor change to correct minuteStepSize setter for incorrect values prior to short-circuiting if there is no change

QE notes: n/a
Doc notes: n/a
Bugs: SDK-31368
Reviewer: chiedo
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -568,12 +568,14 @@
      */
     public function set minuteStepSize(value:int):void
     {
-        if (value == _minuteStepSize)
-            return;
-
+        // adjust for invalid values
         if (value <= 0 || 60 % value != 0)
             value = 1;

+        // short-circuit if no change
+        if (value == _minuteStepSize)
+            return;
+
         _minuteStepSize = value;
         minuteStepSizeChanged = true;
         populateMinuteDataProvider = true;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
@@ -28,6 +28,7 @@
 import mx.core.EdgeMetrics;
 import mx.core.FlexSprite;
 import mx.core.IFlexDisplayObject;
+import mx.core.IUIComponent;
 import mx.core.UIComponent;
 import mx.core.UIComponentGlobals;
 import mx.events.DataGridEvent;
@@ -284,7 +285,7 @@
             // expand all headers to be of maximum height
             for (var i:int = 0; i < headerItems.length; i++)
                 headerItems[i].setActualSize(headerItems[i].width, maxHeaderHeight);
-
+
             for (i = 0; i < oldHeaderItems.length; i++)
             {
                 item = oldHeaderItems[i];
@@ -532,18 +533,25 @@
                 continue;
             }

+            // Spark skins don't measure if the width is specified.
+            var skinWidth:Number;
+            if (sepSkin is IUIComponent)
+                skinWidth = IUIComponent(sepSkin).getExplicitOrMeasuredWidth();
+            else
+                skinWidth = sepSkin.measuredWidth;
+
             sep.visible = true;
             sep.x = headerItems[i].x +
-                    visibleColumns[i].width - Math.round(sepSkin.measuredWidth / 2);
+                    visibleColumns[i].width - Math.round(skinWidth / 2);
             if (i > 0)
             {
                 sep.x = Math.max(sep.x,
-                                 separators[i - 1].x + Math.round(sepSkin.measuredWidth / 2));
+                                 separators[i - 1].x + Math.round(skinWidth / 2));
             }
             sep.y = 0;
-            sepSkin.setActualSize(sepSkin.measuredWidth, Math.ceil(cachedHeaderHeight));
-
-            // Draw invisible background for separator affordance
+            sepSkin.setActualSize(skinWidth, Math.ceil(cachedHeaderHeight));
+
+                        // Draw invisible background for separator affordance
             sep.graphics.clear();
             sep.graphics.beginFill(0xFFFFFF, 0);
             sep.graphics.drawRect(-separatorAffordance, 0,
@@ -862,7 +870,7 @@
             // Initialise and return without actually moving anything.

             startX = event.stageX;
-
+
             // Set this to null so sort doesn't happen.
             lastItemDown = null;

@@ -888,7 +896,7 @@
             dgSelectionLayer.addChild(DisplayObject(proxy));

             proxy.data = c;
-            proxy.styleName = getStyle("headerDragProxyStyleName");
+            proxy.styleName = getStyle("headerDragProxyStyleName");
             UIComponentGlobals.layoutManager.validateClient(proxy, true);
             proxy.setActualSize(c.width, dataGrid._explicitHeaderHeight ?
                 dataGrid.headerHeight : proxy.getExplicitOrMeasuredHeight());
@@ -932,21 +940,29 @@
             return;
         }

+        // Global coordinates.
         var deltaX:Number = event.stageX - startX;
         dgSelectionLayer = Sprite(dataGrid.getChildByName("columnDragSelectionLayer"));

+        // If the mouse pointer over the right (layoutDirection=”ltr”) or
+        // left (layoutDirection=”rtl”) half of the column, the drop indicator
+        // should be shown before the next column.
+        var deltaXInLocalCoordinates:Number =
+            (layoutDirection == "ltr" ? +deltaX : -deltaX);
+
         // Move header selection.
         s = Sprite(dgSelectionLayer.getChildByName("headerSelection"));
         if (s)
-            s.x += deltaX;
-
-        // Move header proxy.
+            s.x += deltaXInLocalCoordinates;
+
+         // Move header proxy.
         item = IListItemRenderer(dgSelectionLayer.getChildByName("headerDragProxy"));
         if (item)
-            item.move(item.x + deltaX, item.y);
-
+            item.move(item.x + deltaXInLocalCoordinates, item.y);
+
+        // Global coordinates.
         startX += deltaX;
-
+
         var allVisibleColumns:Array = dataGrid.getAllVisibleColumns();
         var pt:Point = new Point(event.stageX, event.stageY);
         pt = dataGrid.globalToLocal(pt);
@@ -960,8 +976,9 @@

             if (pt.x < xx + ww)
             {
-                // If the mouse pointer over the right half of the column, the
-                // drop indicator should be shown before the next column.
+                // If the mouse pointer over the right (ltr) or left (rtl) half
+                // of the column, the drop indicator should be shown before
+                // the next column.
                 if (pt.x > xx + ww / 2)
                 {
                     i++;
@@ -1524,7 +1541,7 @@
     //
     //--------------------------------------------------------------------------

-    /**
+   /**
      *  @private
      */
     override public function invalidateSize():void


Transferred from the Adobe Open Source Subversion Repository

Revision: 1803
Author:   jimurphy@adobe.com
Date:     2008-05-21T15:12:36.332665Z

Log Message:
-----------
Merge 3.0.x revisions [1802 ] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as
@@ -210,32 +210,23 @@
             if (FlexClient.getInstance().id == null && msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER] != null)
                 FlexClient.getInstance().id = msg.headers[AbstractMessage.FLEX_CLIENT_ID_HEADER];
         }
-        // If the Channel is reconnecting with the session id in the url, don't
-        // report connectSuccess for the initial ping and allow the Channel to
-        // reconnect by removing the waitForFlexClientId lock.
-        if (_reconnectingWithSessionId)
-        {
-            // Allow the Channel to reconnect with the session id.
-            FlexClient.getInstance().waitForFlexClientId = false;
-            _reconnectingWithSessionId = false;
-        }
-        else
-        {
-            if (credentials != null && !(msg is ErrorMessage))
-                setAuthenticated(true);
-
-            if (streamingConnectionHandler == null)
-            {
-                streamingConnectionHandler = new StreamingAMFConnectionHandler(this, _log);
-                streamingConnectionHandler.addEventListener(Event.OPEN, streamOpenHandler);
-                streamingConnectionHandler.addEventListener(Event.COMPLETE, streamCompleteHandler);
-                streamingConnectionHandler.addEventListener(HTTPStatusEvent.HTTP_STATUS, streamHttpStatusHandler);
-                streamingConnectionHandler.addEventListener(IOErrorEvent.IO_ERROR, streamIoErrorHandler);
-                streamingConnectionHandler.addEventListener(SecurityErrorEvent.SECURITY_ERROR, streamSecurityErrorHandler);
-                streamingConnectionHandler.addEventListener(StatusEvent.STATUS, streamStatusHandler);
-            }
-            streamingConnectionHandler.openStreamingConnection(_appendToURL);
-        }
+
+        handleReconnectWithSessionId();
+
+        if (credentials != null && !(msg is ErrorMessage))
+            setAuthenticated(true);
+
+        if (streamingConnectionHandler == null)
+        {
+            streamingConnectionHandler = new StreamingAMFConnectionHandler(this, _log);
+            streamingConnectionHandler.addEventListener(Event.OPEN, streamOpenHandler);
+            streamingConnectionHandler.addEventListener(Event.COMPLETE, streamCompleteHandler);
+            streamingConnectionHandler.addEventListener(HTTPStatusEvent.HTTP_STATUS, streamHttpStatusHandler);
+            streamingConnectionHandler.addEventListener(IOErrorEvent.IO_ERROR, streamIoErrorHandler);
+            streamingConnectionHandler.addEventListener(SecurityErrorEvent.SECURITY_ERROR, streamSecurityErrorHandler);
+            streamingConnectionHandler.addEventListener(StatusEvent.STATUS, streamStatusHandler);
+        }
+        streamingConnectionHandler.openStreamingConnection(_appendToURL);
     }

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


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

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

 package spark.components.gridClasses
 {


• Removing documentation tag that got past the auto generation.

--- Support/data/completions/intrinsic/String.as
+++ Support/data/completions/intrinsic/String.as
@@ -5,18 +5,10 @@
 		public function charAt(index:Number = 0):String;
 		public function charCodeAt(index:Number = 0):Number;
 		public function concat(... args):String;
-		AS3 static function fromCharCode(... charCodes):String;
+		public static function fromCharCode(... charCodes):String;
 		public function indexOf(val:String, startIndex:Number = 0):int;
 		public function lastIndexOf(val:String, startIndex:Number = 0x7FFFFFFF):int;
 		public function localeCompare(other:String, ... values):int;
-		), the method adds that
-		 *                            empty string to the array of matches, and then continues searching at the next index position.
-		 *                            The lastIndex property of the regular expression is set to 0 after the
-		 *                            method completes.
-		 *                            If no match is found, the method returns null. If you pass
-		 *                            no value (or an undefined value) as the pattern parameter,
-		 *                            the method returns null.
-		 */
 		public function match(pattern:*):Array;
 		public function replace(pattern:*, repl:Object):String;
 		public function search(pattern:*):int;


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

--- frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as
+++ frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.binding
 {


fix Instruction.computeHash() to prefix the string hash with the instruction id and avoid instructions with the same arguments being mixed up

--- src/aerys/minko/render/shader/compiler/graph/nodes/vertex/Instruction.as
+++ src/aerys/minko/render/shader/compiler/graph/nodes/vertex/Instruction.as
@@ -182,11 +182,11 @@
 			// commutative operations invert the arguments when computing the hash if arg1.crc > arg2.crc
 			// that way, mul(a, b).hash == mul(b, a).hash

-			var hashLeft  : String = argument1.hash.toString(16) + '_' + component1.toString(16);
+			var hashLeft  : String = id.toFixed(16) + '_' + argument1.hash.toString(16)
+				+ '_' + component1.toString(16);

 			if ((FLAGS[_id] & InstructionFlag.SINGLE) != 0)
 				return CRC32.computeForString(hashLeft);
-
 			else
 			{
 				var hashRight : String = argument2.hash.toString(16) + '_' + component2.toString(16);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/containers/errors/ConstraintError.as
+++ frameworks/projects/framework/src/mx/containers/errors/ConstraintError.as
@@ -15,6 +15,11 @@
 /**
  *  This error is thrown when a constraint expression is not configured properly;
  *  for example, if the GridColumn reference is invalid.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ConstraintError extends Error
 {
@@ -30,6 +35,11 @@
      *  Constructor.
 	 *
 	 *  @param message A message providing information about the error cause.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function ConstraintError(message:String)
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7045
Author:   dsubrama@adobe.com
Date:     2009-05-18T20:55:10.752713Z

Log Message:
-----------
Single and multiple selection are now funneled through a single method, commitSelection(), to validate and commit selection. selectionChanged and selectionChanging events are now properly dispatched.

QA: Yes - please write tests for selectionChanged/selectionChanging
Doc: Now
Checkintests: Pass
Reviewer: Hans

Bugfixes:
https://bugs.adobe.com/jira/browse/SDK-21141
https://bugs.adobe.com/jira/browse/SDK-21157

Modified Paths:
--------------
<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/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -12,19 +12,23 @@
 package spark.components.supportClasses
 {
 import flash.events.Event;
-import mx.events.FlexEvent;
+
 import spark.events.RendererExistenceEvent;
-
-import mx.collections.IList;
 import spark.components.SkinnableDataContainer;
 import spark.components.IItemRendererOwner;
 import spark.components.IItemRenderer;
 import spark.layouts.supportClasses.LayoutBase;
+import spark.utils.LabelUtil;
+
+import mx.collections.IList;
 import mx.core.IVisualElement;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
 import mx.events.IndexChangedEvent;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
-import spark.utils.LabelUtil;
+
+use namespace mx_internal;  //ListBase and List share selection properties that are mx_internal

 /*
  TODO (jszeto)
@@ -135,7 +139,7 @@
     /**
      *  @private
      */
-    public var doingWholesaleChanges:Boolean = false;
+    mx_internal var doingWholesaleChanges:Boolean = false;

     //----------------------------------
     //  dataProvider
@@ -256,7 +260,7 @@
      *  The proposed selected index. This is a temporary variable that is
      *  used until the selected index is committed.
      */
-    public var _proposedSelectedIndex:int = NO_PROPOSED_SELECTION;
+    mx_internal var _proposedSelectedIndex:int = NO_PROPOSED_SELECTION;

     /**
      *  @private
@@ -265,13 +269,13 @@
      *  of the selectedIndex has changed, but the actual selected item
      *  is the same. This flag is cleared in commitProperties().
      */
-    private var selectedIndexAdjusted:Boolean = false;
+    mx_internal var selectedIndexAdjusted:Boolean = false;

     /**
      *  @private
      *  Internal storage for the selectedIndex property.
      */
-    public var _selectedIndex:int = NO_SELECTION;
+    mx_internal var _selectedIndex:int = NO_SELECTION;

     [Bindable("selectionChanged")]
     /**
@@ -627,7 +631,7 @@
                     dataProvider.length > 0)
             {
                 // Set the proposed selected index here to make sure
-                // commitSelectedIndex() is called below.
+                // commitSelection() is called below.
                 _proposedSelectedIndex = 0;
             }
         }
@@ -640,7 +644,7 @@
         }

         if (_proposedSelectedIndex != NO_PROPOSED_SELECTION)
-            changedSelection = commitSelectedIndex();
+            changedSelection = commitSelection();

         // If the selectedIndex has been adjusted to account for items that
         // have been added or removed, send out a "selectionChanged" event so
@@ -819,6 +823,7 @@

     /**
      *  @private
+     *  The selection validation and commitment workhorse method.
      *  Called to commit the pending selected index. This method dispatches
      *  the "selectionChanging" event, and if the event is not cancelled,
      *  commits the selection change and then dispatches the "selectionChanged"
@@ -827,7 +832,7 @@
      *  Returns true if the selection was committed, or false if the selection
      *  was cancelled.
      */
-    protected function commitSelectedIndex():Boolean
+    protected function commitSelection(dispatchSelectionChanged:Boolean = true):Boolean
     {
         // Step 1: make sure the proposed selected index is in range.
         var maxIndex:int = dataProvider ? dataProvider.length - 1 : -1;
@@ -856,7 +861,7 @@
             return false;
         }

-        // Step 3: commit the selection change
+        // Step 3: commit the selection change
         if (_selectedIndex != NO_SELECTION)
             itemSelected(_selectedIndex, false);
         if (_proposedSelectedIndex != NO_SELECTION)
@@ -864,11 +869,17 @@
         _selectedIndex = _proposedSelectedIndex;
         _proposedSelectedIndex = NO_PROPOSED_SELECTION;

-        // Step 4: dispatch the "selectionChanged" event
-        e = new IndexChangedEvent(IndexChangedEvent.SELECTION_CHANGED);
-        e.oldIndex = oldIndex;
-        e.newIndex = _selectedIndex;
-        dispatchEvent(e);
+        // Step 4: dispatch the "selectionChanged" event based on the
+        // dispatchSelectionChanged parameter. Overrides may chose to
+        // dispatch the selectionChanged event themselves, in which
+        // case we wouldn't want to dispatch the event here.
+        if (dispatchSelectionChanged)
+        {
+            e = new IndexChangedEvent(IndexChangedEvent.SELECTION_CHANGED);
+            e.oldIndex = oldIndex;
+            e.newIndex = _selectedIndex;
+            dispatchEvent(e);
+        }

         return true;
      }


fixed null pointer error

fixed null pointer error

--- WeaveUI/src/weave/visualization/plotters/CompoundRadVizPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/CompoundRadVizPlotter.as
@@ -65,16 +65,13 @@
 			setNewRandomJitterColumn();
 			iterations.value = 50;

-			init()
-		}
-
-		private function init():void
-		{
 			algorithms[RANDOM_LAYOUT] = RandomLayoutAlgorithm;
 			algorithms[GREEDY_LAYOUT] = GreedyLayoutAlgorithm;
 			algorithms[NEAREST_NEIGHBOR] = NearestNeighborLayoutAlgorithm;
 			algorithms[INCREMENTAL_LAYOUT] = IncrementalLayoutAlgorithm;
 			algorithms[BRUTE_FORCE] = BruteForceLayoutAlgorithm;
+
+			handleColumnsChange();
 		}

 		public const columns:LinkableHashMap = registerSpatialProperty(new LinkableHashMap(IAttributeColumn), handleColumnsChange);
@@ -130,18 +127,18 @@
 			_columns = columns.getObjects(IAttributeColumn);
 			var sum:Number = 0;

+			randomArrayIndexMap = 	new Dictionary(true);
+			keyMaxMap = 			new Dictionary(true);
+			keyMinMap = 			new Dictionary(true);
+			keyNormMap = 			new Dictionary(true);
+			keyGlobalNormMap = 		new Dictionary(true);
+			keyNumberMap = 			new Dictionary(true);
+			columnTitleMap = 		new Dictionary(true);
+
 			if (_columns.length > 0)
 			{
 				setKeySource(_columns[0]);

-				randomArrayIndexMap = 	new Dictionary(true);
-				keyMaxMap = 			new Dictionary(true);
-				keyMinMap = 			new Dictionary(true);
-				keyNormMap = 			new Dictionary(true);
-				keyGlobalNormMap = 		new Dictionary(true);
-				keyNumberMap = 			new Dictionary(true);
-				columnTitleMap = 		new Dictionary(true);
-
 				for each( var key:IQualifiedKey in keySet.keys)
 				{
 					randomArrayIndexMap[key] = i ;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -829,6 +829,68 @@
         {
             removeEventListener(Event.ENTER_FRAME, autoUpdateCurrentStateEnterFrameHandler);
         }
+    }
+
+    //----------------------------------
+    //  estimatedHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the estimatedHeight property.
+     */
+    private var _estimatedHeight:Number;
+
+    /**
+     *  The height a component is likely to be given at layout time.  It is
+     *  determined by examining the parent's estimatedHeight, and the
+     *  component's percentHeight, explicitHeight, top and bottom constraints.
+     *  It is NaN if there isn't enough information to compute the height.
+     *  The component can use this information in calculating its
+     *  measuredWidth if the measuredWidth is dependent on the layout
+     *  height.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get estimatedHeight():Number
+    {
+        return _estimatedHeight;
+    }
+
+    //----------------------------------
+    //  estimatedWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the estimatedWidth property.
+     */
+    private var _estimatedWidth:Number;
+
+    /**
+     *  The width a component is likely to be given at layout time.  It is
+     *  determined by examining the parent's estimatedWidth, and the
+     *  component's percentWidth, explicitWidth, left and right constraints.
+     *  It is NaN if there isn't enough information to compute the width.
+     *  The component can use this information in calculating its
+     *  measuredHeight if the measuredHeight is dependent on the layout
+     *  width.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get estimatedWidth():Number
+    {
+        return _estimatedWidth;
     }

     //----------------------------------
@@ -4537,6 +4599,22 @@
     //--------------------------------------------------------------------------

     /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+	public function setEstimatedSize(estimatedWidth:Number = NaN,
+                                     estimatedHeight:Number = NaN,
+								     invalidateSize:Boolean = true):void
+    {
+        _estimatedWidth = estimatedWidth;
+        _estimatedHeight = estimatedHeight;
+    }
+
+    /**
      *  Validate the measuredWidth and measuredHeight properties to match the
      *  current size of the content.
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 13201
Author:   dloverin@adobe.com
Date:     2009-12-23T20:16:41.460357Z

Log Message:
-----------
Fix RTE when calling PopUpManager.createPopUp() from a module or sub-application.

This fix adds a moduleFactory parameter to PopUpManager.createPopUp() to allow a module or sub-application to specify the style manager to be used. Modules and sub-applications should always pass a moduleFactory to PopUpManager.createPopUp() or PopUpManager.addPopUp() to ensure the correct style manager is used when looking up styles. Otherwise the parent of the pop up is used to determine the style manager.

QE notes: Please create a PerModuleStyles test that uses the new parameter to createPopUp().
Doc notes: None.
Bugs: SDK-24835.
Reviewer: Alex
Tests run: checkintests, Managers/PopUpManager
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IPopUpManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -214,6 +214,9 @@
      *  PopUpManagerChildList.POPUP,
      *  or PopUpManagerChildList.PARENT (default).
      *
+     *  @param moduleFactory The moduleFactory where this pop-up should look for
+     *  its embedded fonts and style manager.
+     *
      *  @return Reference to new top-level window.
      *
      *  @see PopUpManagerChildList
@@ -226,10 +229,11 @@
     public function createPopUp(parent:DisplayObject,
                                 className:Class,
                                 modal:Boolean = false,
-                                childList:String = null):IFlexDisplayObject
+                                childList:String = null,
+                                moduleFactory:IFlexModuleFactory = null):IFlexDisplayObject
     {
         const window:IUIComponent = new className();
-        addPopUp(window, parent, modal, childList);
+        addPopUp(window, parent, modal, childList, moduleFactory);
         return window;
     }


HLSNetStream : move commented block to a better place

--- src/org/mangui/hls/stream/HLSNetStream.as
+++ src/org/mangui/hls/stream/HLSNetStream.as
@@ -179,15 +179,12 @@
                 super.appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
                 // immediatly pause NetStream, it will be resumed when enough data will be buffered in the NetStream
                 super.pause();
-
-//                for each (var tag : FLVTag in tags) {
-//                    CONFIG::LOGGING {
-//                        Log.debug2('inject type/dts/pts:' + tag.typeString + '/' + tag.dts + '/' + tag.pts);
-//                    }
-//                }
             }
             // append all tags
             for each (var tagBuffer : FLVTag in tags) {
+                // CONFIG::LOGGING {
+                //     Log.debug2('inject type/dts/pts:' + tagBuffer.typeString + '/' + tagBuffer.dts + '/' + tagBuffer.pts);
+                // }
                 try {
                     if (tagBuffer.type == FLVTag.DISCONTINUITY) {
                         super.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN);


StreamBuffer: trace NetStream buffer length

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -427,7 +427,7 @@
              * this is to ensure that accurate seeking will work appropriately
              */
             CONFIG::LOGGING {
-                Log.debug2("position/audio/video bufferLength:" + position.toFixed(2) + "/" + audioBufferLength.toFixed(2) + "/" + videoBufferLength.toFixed(2));
+                Log.debug2("position/audio/video/NetStream bufferLength:" + position.toFixed(2) + "/" + audioBufferLength.toFixed(2) + "/" + videoBufferLength.toFixed(2) + "/" + (_hls.stream as HLSNetStream).netStreamBufferLength.toFixed(2));
             }

             var duration : Number = 0;


StreamBuffer : don't clip back buffer if clipping position is greater than current position fix playback stalling with long paused live playlists

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -659,6 +659,11 @@
             } else {
                 clipping_position = clipping_position0;
             }
+            // don't clip if clipping position is greater than current position ! this could happen on live stream with long pause
+            if(clipping_position >= position) {
+                return;
+            }
+
             // CONFIG::LOGGING {
             //     if (clipping_position != clipping_position0) {
             //         Log.info("clipping_position/clipping_position0 " + clipping_position + '/' + clipping_position0);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/xml/QualifiedResourceManager.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/QualifiedResourceManager.as
@@ -16,11 +16,21 @@
  * QualifiedResourceManager is a helper class that simply maintains
  * the order that resources were added and maps a target namespace to
  * one or more resources.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class QualifiedResourceManager
 {
     /**
      * Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function QualifiedResourceManager()
     {
@@ -34,6 +44,11 @@
      * @param ns The namespace for the Array of resources.
      *
      * @param resource The resource to add.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function addResource(ns:Namespace, resource:Object):void
     {
@@ -64,6 +79,11 @@
      * @param The namespace for the Array of resources.
      *
      * @return An Array of resources.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function getResourcesForNamespace(ns:Namespace):Array
     {
@@ -76,6 +96,11 @@
      * @param uri The URI for the Array of resources.
      *
      * @return An Array of resources.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function getResourcesForURI(uri:String):Array
     {
@@ -94,6 +119,11 @@
      * Gets an Array of all resources.
      *
      * @return An Array of resources.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function getResources():Array
     {
@@ -103,12 +133,22 @@
     /**
      * This Array is used to preserve order in which resources were
      * added so as to support the order in which they are searched.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var resources:Array;

     /**
      * Maps Namespace.uri to an Array of
      * resources.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var resourcesMap:Object;
 }


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

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

 package mx.olap.aggregators


Transferred from the Adobe Open Source Subversion Repository

Revision: 17201
Author:   cframpto@adobe.com
Date:     2010-08-05T14:56:08.412026Z

Log Message:
-----------
Add listStylePosition and listStyleType metadata for TLF's new list element.  Add them both to the list of size invalidating styles.  Add styles to list of styles in ASdoc.

QE notes:  listStylePosition=outside leaks outside our components - known issue which we're working with TLF on
Doc notes:
Bugs: SDK-27254
Reviewer: Corey
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<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/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -227,6 +227,8 @@
  *    ligatureLevel="common"
  *    lineHeight="120%"
  *    lineThrough="false"
+ *    listStylePosition="outside"
+ *    listStyleType="disc"
  *    locale="en"
  *    paragraphEndIndent="0"
  *    paragraphSpaceAfter="0"


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as
@@ -57,6 +57,11 @@
     /**
      *  Initial transparency level between 0.0 and 1.0,
      *  where 0.0 means transparent and 1.0 means fully opaque.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var alphaFrom:Number;

@@ -67,6 +72,11 @@
     /**
      *  Final transparency level between 0.0 and 1.0,
      *  where 0.0 means transparent and 1.0 means fully opaque.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var alphaTo:Number;


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

--- frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as
@@ -8,26 +8,26 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package mx.effects.effectClasses
+package spark.effects.supportClasses
 {
 import flash.events.Event;

-import mx.components.FxApplication;
+import spark.components.Application;
 import mx.core.Container;
 import mx.core.IUIComponent;
-import mx.effects.Animation;
-import mx.effects.AnimationProperty;
-import mx.events.AnimationEvent;
+import spark.effects.AnimationProperty;
+import spark.effects.animation.Animation;
+import spark.events.AnimationEvent;
 import mx.events.EffectEvent;
 import mx.events.TweenEvent;
-import mx.graphics.IGraphicElement;
+import spark.core.IGraphicElement;
 import mx.styles.IStyleClient;

-public class FxMoveInstance extends FxAnimateInstance
+public class MoveInstance extends AnimateInstance
 {
     include "../../core/Version.as";

-    public function FxMoveInstance(target:Object)
+    public function MoveInstance(target:Object)
     {
         super(target);
         affectsConstraints = true;


Added errors and states for play/pause etc

--- src/com/axis/rtmpclient/RTMPClient.as
+++ src/com/axis/rtmpclient/RTMPClient.as
@@ -1,5 +1,6 @@
 package com.axis.rtmpclient {
   import com.axis.ClientEvent;
+  import com.axis.ErrorManager;
   import com.axis.IClient;
   import com.axis.Logger;

@@ -17,6 +18,7 @@
     private var ns:NetStream;
     private var streamServer:String;
     private var streamId:String;
+    private var currentState:String = "stopped";

     public function RTMPClient(video:Video, urlParsed:Object) {
       this.video = video;
@@ -45,15 +47,25 @@
     public function stop():Boolean {
       ns.dispose();
       nc.close();
+      this.currentState = "stopped";
       return true;
     }

     public function pause():Boolean {
+      if (this.currentState !== 'playing') {
+        ErrorManager.dispatchError(800);
+        return false;
+      }
       ns.pause();
+      this.currentState = "paused";
       return true;
     }

     public function resume():Boolean {
+      if (this.currentState !== 'paused') {
+        ErrorManager.dispatchError(801);
+        return false;
+      }
       ns.resume();
       return true;
     }
@@ -71,6 +83,7 @@

       if ('NetConnection.Connect.Closed' === event.info.code) {
         dispatchEvent(new ClientEvent(ClientEvent.STOPPED));
+        this.currentState = "stopped";
       }
     }

@@ -95,27 +108,32 @@
       if (this.ns.bufferTime === 0 && 'NetStream.Play.Start' === event.info.code) {
         // Buffer is set to 0, dispatch start event immediately
         dispatchEvent(new ClientEvent(ClientEvent.START_PLAY));
+        this.currentState = "playing";
         return;
       }

       if (this.ns.bufferTime === 0 && 'NetStream.Unpause.Notify' === event.info.code) {
         // Buffer is set to 0, dispatch start event immediately
         dispatchEvent(new ClientEvent(ClientEvent.START_PLAY));
+        this.currentState = "playing";
         return;
       }

       if ('NetStream.Buffer.Full' === event.info.code) {
         dispatchEvent(new ClientEvent(ClientEvent.START_PLAY));
+        this.currentState = "playing";
         return;
       }

       if ('NetStream.Buffer.Empty' === event.info.code) {
         dispatchEvent(new ClientEvent(ClientEvent.PAUSED, { 'reason': 'buffering' }));
+        this.currentState = "paused";
         return;
       }

       if ('NetStream.Pause.Notify' === event.info.code) {
         dispatchEvent(new ClientEvent(ClientEvent.PAUSED, { 'reason': 'user' }));
+        this.currentState = "paused";
         return;
       }
     }