Add subscribed file test

Add subscribed file test

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -47,6 +47,7 @@
 			addButton("Publish file", publishFile);
 			addButton("Toggle fullscreen", toggleFullscreen);
 			addButton("Show Friends overlay", activateOverlay);
+			addButton("List subscribed files", enumerateSubscribedFiles);

 			Steamworks.addEventListener(SteamEvent.STEAM_RESPONSE, onSteamResponse);
 			NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExit);
@@ -166,6 +167,12 @@
 			log("activateGameOverlay('Friends') == " + Steamworks.activateGameOverlay("Friends"));
 		}

+		private function enumerateSubscribedFiles(e:Event = null):void {
+			if(!Steamworks.isReady) return;
+
+			log("enumerateUserSubscribedFiles(0) == " + Steamworks.enumerateUserSubscribedFiles(0));
+		}
+
 		private function onSteamResponse(e:SteamEvent):void{
 			switch(e.req_type){
 				case SteamConstants.RESPONSE_OnUserStatsStored:
@@ -179,7 +186,17 @@
 					break;
 				case SteamConstants.RESPONSE_OnPublishWorkshopFile:
 					log("RESPONSE_OnPublishWorkshopFile: " + e.response);
-					log("File published as " + Steamworks.publishWorkshopFileResult());
+					var file:String = Steamworks.publishWorkshopFileResult();
+					log("File published as " + file);
+					log("subscribePublishedFile(...) == " + Steamworks.subscribePublishedFile(file));
+					break;
+				case SteamConstants.RESPONSE_OnEnumerateUserSubscribedFiles:
+					log("RESPONSE_OnEnumerateUserSubscribedFiles: " + e.response);
+					var result:SubscribedFilesResult = Steamworks.enumerateUserSubscribedFilesResult();
+					log("User subscribed files: " + result.resultsReturned + "/" + result.totalResults);
+					for(var i:int = 0; i < result.resultsReturned; i++)
+						log(i + ": " + result.publishedFileId[i] + " (" + result.timeSubscribed[i] + ")");
+					break;
 				default:
 					log("STEAMresponse type:"+e.req_type+" response:"+e.response);
 			}


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/HLOCSeriesBaseAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/HLOCSeriesBaseAutomationImpl.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.automation.delegates.charts
 {


stopping grouped callback from waiting while busy

--- WeaveJS/src/weavejs/data/source/AbstractDataSource.as
+++ WeaveJS/src/weavejs/data/source/AbstractDataSource.as
@@ -40,7 +40,7 @@
 		{
 			var cc:ICallbackCollection = Weave.getCallbacks(this);
 			cc.addImmediateCallback(this, uninitialize);
-			cc.addGroupedCallback(this, initialize, true);
+			cc.addGroupedCallback(this, initialize, true, false);
 		}

 		/**


Breakpoint in Cart script

Breakpoint in Cart script

--- Game/Resources/Minecart/Cart.as
+++ Game/Resources/Minecart/Cart.as
@@ -43,7 +43,7 @@
         // Braking phase
         if (hasHitPlane && stopTime < endTime){
             stopTime += deltaTime;
-            float t = stopTime;
+            float t = stopTime; //Break
             float zPos = a * t * t * t / 3.0f + b * t * t / 2.0f + c * t;
             self.position.z = 450.0f - zPos;
         }


Fix two race conditions: event handlers were being added _after_ the loader was supplied a URL, and the error event handlers should not be removing the error handlers.  If an event handler is removed and there's an outstanding event, that results in an unhandled exception

--- HLSPlugin/src/org/denivip/osmf/elements/M3U8Loader.as
+++ HLSPlugin/src/org/denivip/osmf/elements/M3U8Loader.as
@@ -36,6 +36,7 @@
 		private var _parser:M3U8PlaylistParser = null;
 		private var _loadTime:int = 0;
 		private var _playlistLoader:URLLoader = null;
+        private var _errorHit:Boolean = false;  // So we only handle HTTP errors once; handling stuff twice dorks things.

 		public function M3U8Loader(){
 			super();
@@ -70,17 +71,19 @@

 		private function onError(e:ErrorEvent):void
 		{
+            if( !_errorHit) {
+                _errorHit = true;
+                updateLoadTrait(_loadTrait, LoadState.LOAD_ERROR);
+                _loadTrait.dispatchEvent(new MediaErrorEvent(MediaErrorEvent.MEDIA_ERROR, false, false, new MediaError(0, 'This video is not available.')));
+            }
+		}
+
+		private function onComplete(e:Event):void
+		{
 			removeListeners();

-			updateLoadTrait(_loadTrait, LoadState.LOAD_ERROR);
-			_loadTrait.dispatchEvent(new MediaErrorEvent(MediaErrorEvent.MEDIA_ERROR, false, false, new MediaError(0, 'This video is not available.')));
-		}
-
-		private function onComplete(e:Event):void
-		{
-			removeListeners();
-
-			try{
+			try
+            {
 				CONFIG::LOGGING
 				{
 					_loadTime = getTimer() - _loadTime;
@@ -102,14 +105,14 @@
 				updateLoadTrait(_loadTrait, LoadState.LOAD_ERROR);
 				dispatchEvent(new MediaErrorEvent(MediaErrorEvent.MEDIA_ERROR, false, false, new MediaError(err.errorID, err.message)));
 			}
-		}
+		}

 		private function onHTTPStatus(event:flash.events.HTTPStatusEvent):void
-		{
-			if( event.status >= 400 )
+		{
+			if( event.status >= 400 && !_errorHit )
 			{
 				// some 400-level fail, let's forward this out to jscript land
-				removeListeners();
+				_errorHit = true;
 				updateLoadTrait(_loadTrait, LoadState.LOAD_ERROR);
 				_loadTrait.dispatchEvent(new MediaErrorEvent(MediaErrorEvent.MEDIA_ERROR, false, false, new MediaError(event.status, "")));
 			}
@@ -134,8 +137,10 @@
 				this.removeListeners();
 				_playlistLoader.close();
 				_playlistLoader = null;
-
-			}
+			}
+
+            // Reset our error hit logic since we're trying again.
+            _errorHit = false;

 			if( _parser != null )
 			{
@@ -147,16 +152,17 @@
 			_loadTrait = loadTrait;
 			updateLoadTrait(loadTrait, LoadState.LOADING);

-			_playlistLoader = new URLLoader(new URLRequest(URLResource(loadTrait.resource).url));
+			_playlistLoader = new URLLoader();
 			_playlistLoader.addEventListener(Event.COMPLETE, onComplete);
 			_playlistLoader.addEventListener(IOErrorEvent.IO_ERROR, onError);
 			_playlistLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
 			_playlistLoader.addEventListener(flash.events.HTTPStatusEvent.HTTP_STATUS, onHTTPStatus);
+            _playlistLoader.load(new URLRequest(URLResource(loadTrait.resource).url));

 			CONFIG::LOGGING
-				{
-					_loadTime = getTimer();
-				}
+            {
+                _loadTime = getTimer();
+            }
 		}

 		override protected function executeUnload(loadTrait:LoadTrait):void


Truely center machine statuses

Truely center machine statuses

--- src/net/zdremann/esuds/ClothesMachineItemRenderer.as
+++ src/net/zdremann/esuds/ClothesMachineItemRenderer.as
@@ -179,37 +179,34 @@

 				return;
 			}
-			else
-			{
-				labelWidth = Math.floor(Math.max(viewWidth * labelPercent - paddingInner, 0));
-				statusDisplay.visible = true;
-				timeRemainingDisplay.visible = true;
-			}
+
+			var statusHeight:Number = 0;
+			if (status != -1)
+			{
+				statusDisplay.commitStyles();
+
+				if(statusDisplay.isTruncated)
+					statusDisplay.text = ClothesMachine.statusToString(status);
+
+				statusHeight = getElementPreferredHeight(statusDisplay);
+			}
+			var statusWidth:Number = getElementPreferredWidth(statusDisplay);
+
+			setElementSize(statusDisplay, statusWidth, statusHeight);
+			var statusY:Number = (viewHeight - statusHeight) + paddingTop;
+
+			setElementPosition(statusDisplay, unscaledWidth / 2 - statusWidth / 2, statusY);
+
+			labelWidth = Math.max(statusDisplay.x - paddingLeft, 0);
+			statusDisplay.visible = true;
+			timeRemainingDisplay.visible = true;

 			setElementSize(labelDisplay, labelWidth, labelHeight);

 			setElementPosition(labelDisplay, paddingLeft, labelY);
 			labelDisplay.truncateToFit();

-			var statusWidth:Number = Math.floor(Math.max(statusPercent * viewWidth-paddingInner, 0));
-			var statusHeight:Number = 0;
-			if (status != -1)
-			{
-				statusDisplay.commitStyles();
-
-				if (statusDisplay.isTruncated)
-					statusDisplay.text = ClothesMachine.statusToString(status);
-
-				statusHeight = getElementPreferredHeight(statusDisplay);
-			}
-
-			setElementSize(statusDisplay, statusWidth, statusHeight);
-
-			var statusY:Number = (viewHeight -statusHeight) + paddingTop;
-			setElementPosition(statusDisplay, paddingLeft + labelWidth + 2*paddingInner, statusY);
-			statusDisplay.truncateToFit();
-
-			var timeRemainingWidth:Number = Math.floor(Math.max(timeRemainingPercent * viewWidth-paddingInner, 0));
+			var timeRemainingWidth:Number = Math.floor(Math.max(viewWidth - statusWidth - labelWidth, 0));
 			var timeRemainingHeight:Number = 0;
 			if (timeRemaining != -1)
 			{
@@ -224,7 +221,7 @@
 			setElementSize(timeRemainingDisplay, timeRemainingWidth, timeRemainingHeight);

 			var timeRemainingY:Number = (viewHeight -timeRemainingHeight) + paddingTop;
-			setElementPosition(timeRemainingDisplay, paddingLeft + labelWidth + statusWidth + 4*paddingInner, timeRemainingY);
+			setElementPosition(timeRemainingDisplay, unscaledWidth - paddingRight - timeRemainingWidth, timeRemainingY);
 			timeRemainingDisplay.truncateToFit();

 		}


Move code preparing cloneable fields of type for cloning to method Cloner.prepareTypeForCloning().

--- dolly-framework/src/main/actionscript/dolly/Cloner.as
+++ dolly-framework/src/main/actionscript/dolly/Cloner.as
@@ -44,6 +44,14 @@
 		ClassUtil.registerAliasFor(type.clazz);

 		_isClassPreparedForCloningMap[type.clazz] = true;
+
+		const fieldsToClone:Vector.<Field> = findAllWritableFieldsForType(type);
+		for each(var field:Field in fieldsToClone) {
+			var fieldType:Type = field.type;
+			if (isTypeCloneable(fieldType)) {
+				prepareTypeForCloning(fieldType);
+			}
+		}
 	}

 	dolly_internal static function findAllWritableFieldsForType(type:Type):Vector.<Field> {
@@ -71,15 +79,6 @@

 		prepareTypeForCloning(type);

-		const fieldsToClone:Vector.<Field> = findAllWritableFieldsForType(type);
-
-		for each(var field:Field in fieldsToClone) {
-			var fieldType:Type = field.type;
-			if (isTypeCloneable(fieldType)) {
-				prepareTypeForCloning(fieldType);
-			}
-		}
-
 		const byteArray:ByteArray = new ByteArray();
 		byteArray.writeObject(source);
 		byteArray.position = 0;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

QE notes: None
Doc notes: None
Bugs: SDK-23184
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerDynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/FocusStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ColorPicker.as
+++ frameworks/projects/mx/src/mx/controls/ColorPicker.as
@@ -151,7 +151,9 @@

 /**
  *  Length of a close transition, in milliseconds.
- *  The default value is 250.
+ *
+ *  The default value for the Halo theme is 250.
+ *  The default value for the Spark theme is 50.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -207,7 +209,9 @@

 /**
  *  Length of an open transition, in milliseconds.
- *  The default value is 250.
+ *
+ *  The default value for the Halo theme is 250.
+ *  The default value for the Spark theme is 0.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


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

--- frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as
@@ -16,6 +16,11 @@
  * Decodes an XML document to an ActionScript object graph based on XML
  * Schema definitions.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IXMLDecoder
 {
@@ -30,6 +35,11 @@
      * are wrapped to make them bindable. Objects are wrapped with
      * mx.utils.ObjectProxy and Arrays are wrapped with
      * mx.collections.ArrayCollection.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get makeObjectsBindable():Boolean;

@@ -44,6 +54,11 @@
      * to post process the decoded objects and identify which concrete
      * implementation of a potentially abstract type was used.
      * The default is false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get recordXSIType():Boolean;

@@ -52,6 +67,11 @@
     /**
      * Maps XML Schema types by QName to ActionScript Classes in order to
      * create strongly typed objects when decoding content.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get typeRegistry():SchemaTypeRegistry;

@@ -83,6 +103,11 @@
      * can be provided.
      *
      * @return Returns an ActionScript object decoded from the given XML document.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function decode(xml:*, name:QName = null, type:QName = null, definition:XML = null):*;

@@ -90,6 +115,11 @@
      * Resets the decoder to its initial state, including resetting any
      * Schema scope to the top level and releases the current XML document by
      * setting it to null.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function reset():void;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5119
Author:   smgilson@adobe.com
Date:     2009-03-01T15:19:39.936226Z

Log Message:
-----------
Clean up some ASDoc tags from the addition of the @productversion/@playerversion tags

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/NCManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/StringValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/Schema.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/HexEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectContainerInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SoundEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISpriteInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/HaloRectBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/mx/src/mx/core/Application.as
+++ frameworks/projects/mx/src/mx/core/Application.as
@@ -294,11 +294,6 @@
      *  MyApplication(Application.application).myAppMethod().
      *  Therefore we decided to dispense with strict typing for
      *  'application'.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
      */
     public static function get application():Object
     {
@@ -1246,7 +1241,7 @@
         if (sm.isTopLevel())
         {
             focusManager = new FocusManager(this);
-           	sm.activate(this);
+            sm.activate(this);
         }
     }

@@ -1256,23 +1251,23 @@
      */
     private function initContextMenu():void
     {
-    	// context menu already set
-    	// nothing to init
-    	if (flexContextMenu != null)
-    	{
-    		// make sure we set it back on systemManager b/c it may have been overriden by now
-    		if (systemManager is InteractiveObject)
-        		InteractiveObject(systemManager).contextMenu = contextMenu;
-        	return;
-    	}
-
+        // context menu already set
+        // nothing to init
+        if (flexContextMenu != null)
+        {
+            // make sure we set it back on systemManager b/c it may have been overriden by now
+            if (systemManager is InteractiveObject)
+                InteractiveObject(systemManager).contextMenu = contextMenu;
+            return;
+        }
+
         var defaultMenu:ContextMenu = new ContextMenu();
         defaultMenu.hideBuiltInItems();
         defaultMenu.builtInItems.print = true;

         if (_viewSourceURL)
         {
-        	// don't worry! this gets updated in resourcesChanged()
+            // don't worry! this gets updated in resourcesChanged()
             const caption:String = resourceManager.getString("core", "viewSource");

             viewSourceCMI = new ContextMenuItem(caption, true);
@@ -1284,7 +1279,7 @@
         contextMenu = defaultMenu;

         if (systemManager is InteractiveObject)
-        	InteractiveObject(systemManager).contextMenu = defaultMenu;
+            InteractiveObject(systemManager).contextMenu = defaultMenu;
     }

     /**
@@ -1341,11 +1336,6 @@
             /*
             trace("addToCreationQueue queueItem",queueItemPointer.id,"queueItem.level",pointerLevel,"obj.level",queueObj.parent.nestLevel,
                     "queueItem.index",pointerIndex,"obj.index",queueObj.index);
-            *
-            *  @langversion 3.0
-            *  @playerversion Flash 9
-            *  @playerversion AIR 1.1
-            *  @productversion Flex 3
             */
             // If our new item has a preferredIndex
             if (queueObj.index != -1)


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPDimension.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPDimension.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12966
Author:   dloverin@adobe.com
Date:     2009-12-15T18:59:54.493877Z

Log Message:
-----------
Fix sub-applications loading RSLs into the wrong application domain.

projects/framework/src/mx/controls/SWFLoader.as
Fix loading sub-applications as well. Load sub-applications into a child application domain of their parent.

projects/framework/src/mx/core/CrossDomainRSLItem.as
projects/framework/src/mx/core/FlexModuleFactory.as
projects/framework/src/mx/core/RSLItem.as
projects/framework/src/mx/managers/SystemManager.as
    Pass a module factory from SystemManager and FlexModuleFactory to CrossDomainRSLItem/RSLItem. Use the moduleFactory to find the application domain of the app/modules loading the RSLs. Use this application domain to load RSLs into.

projects/framework/src/mx/modules/ModuleLoader.as
    “currentDomain” is never null so remove null check.

projects/airframework/src/mx/managers/WindowedSystemManager.as
    Added a info().currentDomain object to WindowedSystemManager.

QE notes: None.
Doc notes: None.
Bugs: SDK-24698
Reviewer: Alex
Tests run: checkintests, MarshallPlan, Modules
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/RSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/core/FlexModuleFactory.as
+++ frameworks/projects/framework/src/mx/core/FlexModuleFactory.as
@@ -477,6 +477,7 @@
         var i:int;
         if (cdRsls && cdRsls.length > 0)
         {
+            var normalizedURL:String = LoaderUtil.normalizeURL(this.loaderInfo);
             var crossDomainRSLItem:Class = Class(getDefinitionByName("mx.core::CrossDomainRSLItem"));
             n = cdRsls.length;
             for (i = 0; i < n; i++)
@@ -488,7 +489,8 @@
                     cdRsls[i]["digests"],
                     cdRsls[i]["types"],
                     cdRsls[i]["isSigned"],
-                    LoaderUtil.normalizeURL(this.loaderInfo));
+                    normalizedURL,
+                    this);

                 rslList.push(cdNode);
             }
@@ -498,10 +500,15 @@
         // Append RSL information in the RSL list.
         if (rsls != null && rsls.length > 0)
         {
+            if (normalizedURL == null)
+                normalizedURL = LoaderUtil.normalizeURL(this.loaderInfo);
+
             n = rsls.length;
             for (i = 0; i < n; i++)
             {
-                var node:RSLItem = new RSLItem(rsls[i].url, LoaderUtil.normalizeURL(this.loaderInfo));
+                var node:RSLItem = new RSLItem(rsls[i].url,
+                                               normalizedURL,
+                                               this);
                 rslList.push(node);
             }
         }
@@ -689,7 +696,6 @@
             detailedError = "";

         message = "RSL " + rsl.urlRequest.url + " failed to load. " + detailedError;
-        trace(message);
         displayError(message);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 7170
Author:   smgilson@adobe.com
Date:     2009-05-21T13:05:27.223044Z

Log Message:
-----------
ASDoc edits for DDList

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

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/skins/default/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DropDownListSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -51,13 +51,13 @@
 import spark.utils.LabelUtil;

 /**
- *  Dispatched when the dropDown is dismissed for any reason such when
+ *  Dispatched when the drop-down list closes for any reason, such when
  *  the user:
  *

- *
selects an item in the dropDown

- *
clicks outside of the dropDown

- *
clicks the dropDown button while the dropDown is
- *  displayed

+ *
Selects an item in the drop-down list.

+ *
Clicks outside of the drop-down list.

+ *
Clicks the anchor button while the drop-down list is
+ *  displayed.

  *

  *
  *  @eventType spark.events.DropDownEvent.CLOSE
@@ -70,9 +70,10 @@
 [Event(name="close", type="spark.events.DropDownEvent")]

 /**
- *  Dispatched when the user clicks the dropDown button
- *  to display the dropDown.  It is also dispatched if the user
- *  uses the keyboard and types Ctrl-Down to open the dropDown.
+ *  Dispatched when the user clicks the anchor button
+ *  to display the drop-down list.
+ *  It is also dispatched if the user
+ *  uses Control-Down to open the dropDown.
  *
  *  @eventType spark.events.DropDownEvent.OPEN
  *
@@ -84,7 +85,7 @@
 [Event(name="open", type="spark.events.DropDownEvent")]

 /**
- *  Open State of the DropDown component
+ *  Skin state for the open state of the DropDownList control.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -104,11 +105,45 @@

 /**
- *  DropDownList control contains a drop-down list
+ *  The DropDownList control contains a drop-down list
  *  from which the user can select a single value.
  *  Its functionality is very similar to that of the
  *  SELECT form element in HTML.
+ *
+ *
The DropDownList control consists of the anchor button,
+ *  prompt area, and drop-down-list,
+ *  Use the anchor button to open and close the drop-down-list.
+ *  The prompt area displays a prompt String, or the selected item
+ *  in the drop-down-list.

+ *
+ *
When the drop-down list is open:

+ *

+ *
Clicking the anchor button closes the drop-down list
+ *      and commits the currently selected data item.

+ *
Clicking outside of the drop-down list closes the drop-down list
+ *      and commits the currently selected data item.

+ *
Clicking on a data item selects that item and closes the drop-down list.

+ *
If the requiresSelection property is false,
+ *      clicking on a data item while pressing the Control key deselects
+ *      the item and closes the drop-down list.

+ *

+ *
+ *  @mxml
The <DropDownList> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <DropDownList
+ *    Properties
+ *    prompt=""
  *
+ *    Events
+ *    closed="No default"
+ *    open="No default"
+ *  />
+ *

+ *
+ *  @see spark.skins.default.DropDownListSkin
+ *  @see spark.components.supportClasses.DropDownController
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -122,9 +157,9 @@
     //
     //  Skin Parts
     //
-    //--------------------------------------------------------------------------
-    /**
-     *  An optional skin part that holds the prompt or the text of the selectedItem
+    //--------------------------------------------------------------------------
+    /**
+     *  An optional skin part that holds the prompt or the text of the selected item.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -133,11 +168,11 @@
      */
     [SkinPart(required="false")]
     public var labelElement:TextGraphicElement;
-
-	/**
-     *  A skin part that defines the dropDown area. When the DropDownList is open,
-     *  clicking anywhere outside of the dropDown skin part will close the
-     *  DropDownList.
+
+    /**
+     *  A skin part that defines the drop-down list area. When the DropDownList is open,
+     *  clicking anywhere outside of the dropDown skin part closes the
+     *  drop-down list.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -157,8 +192,8 @@
      */
     [SkinPart(required="true")]
     public var openButton:ButtonBase;
-
-	/**
+
+    /**
      *  Constructor.
      *
      *  @langversion 3.0
@@ -166,82 +201,83 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-	public function DropDownList()
-	{
-		super();
-		super.allowMultipleSelection = false;
-
-		dropDownController = new DropDownController();
-	}
-
-	//--------------------------------------------------------------------------
+    public function DropDownList()
+    {
+        super();
+        super.allowMultipleSelection = false;
+
+        dropDownController = new DropDownController();
+    }
+
+    //--------------------------------------------------------------------------
     //
     //  Variables
     //
     //--------------------------------------------------------------------------
-
+
     private var labelChanged:Boolean = false;
     // TODO (jszeto) Should this be protected?
     private var proposedSelectedIndex:Number = -1;
     mx_internal static var PAGE_SIZE:int = 5;
-
-	//--------------------------------------------------------------------------
+
+    //--------------------------------------------------------------------------
     //
     //  Properties
     //
     //--------------------------------------------------------------------------
-
-	//----------------------------------
+
+    //----------------------------------
     //  dropDownController
     //----------------------------------
-
-	private var _dropDownController:DropDownController;
-
-	/**
-     *  Instance of the helper class that handles all of the mouse, keyboard
-     *  and focus user interactions. The type of this class is determined by the
-     *  dropDownControllerClass property.
+
+    private var _dropDownController:DropDownController;
+
+    /**
+     *  Instance of the DropDownController class that handles all of the mouse, keyboard
+     *  and focus user interactions.
      *
-     *  The initializeDropDownController() function is called after
-     *  the dropDownController is created in the constructor.
+     *  Flex calls the initializeDropDownController() method after
+     *  the DropDownController instance is created in the constructor.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-	protected function get dropDownController():DropDownController
-	{
-		return _dropDownController;
-	}
-
-	protected function set dropDownController(value:DropDownController):void
-	{
-		if (_dropDownController == value)
-			return;
-
-		_dropDownController = value;
-
-		_dropDownController.addEventListener(DropDownEvent.OPEN, dropDownController_openHandler);
-		_dropDownController.addEventListener(DropDownEvent.CLOSE, dropDownController_closeHandler);
-
-		if (openButton)
-			_dropDownController.openButton = openButton;
-		if (dropDown)
-			_dropDownController.dropDown = dropDown;
-	}
-
-	//----------------------------------
+    protected function get dropDownController():DropDownController
+    {
+        return _dropDownController;
+    }
+
+    protected function set dropDownController(value:DropDownController):void
+    {
+        if (_dropDownController == value)
+            return;
+
+        _dropDownController = value;
+
+        _dropDownController.addEventListener(DropDownEvent.OPEN, dropDownController_openHandler);
+        _dropDownController.addEventListener(DropDownEvent.CLOSE, dropDownController_closeHandler);
+
+        if (openButton)
+            _dropDownController.openButton = openButton;
+        if (dropDown)
+            _dropDownController.dropDown = dropDown;
+    }
+
+    //----------------------------------
     //  prompt
     //----------------------------------

     private var _prompt:String = "";

     /**
-     *  The prompt for the DropDownList control. A prompt is
-     *  a String that is displayed in the TextInput portion of the
-     *  DropDownList when selectedIndex = -1.  It is usually
-     *  a String like "Select one...".
+     *  The prompt for the DropDownList control.
+     *  The prompt is a String that is displayed in the
+     *  DropDownList when selectedIndex = -1.
+     *  It is usually a String such as "Select one...".
+     *  Selecting an item in the drop-down list replaces the
+     *  prompt with the text from the selected item.
      *
      *  @default ""
      *
@@ -260,10 +296,10 @@
      */
     public function set prompt(value:String):void
     {
-    	if (_prompt == value)
-    		return;
-
-    	_prompt = value;
+        if (_prompt == value)
+            return;
+
+        _prompt = value;
         labelChanged = true;
         invalidateProperties();
     }
@@ -299,10 +335,10 @@
      */
     override public function get baselinePosition():Number
     {
-    	if (openButton)
-    		return openButton.baselinePosition;
-    	else
-    		return NaN;
+        if (openButton)
+            return openButton.baselinePosition;
+        else
+            return NaN;
     }

     //----------------------------------
@@ -314,13 +350,13 @@
      *  Update the label if the dataProvider has changed
      */
     override public function set dataProvider(value:IList):void
-    {
-    	if (dataProvider === value)
-    		return;
-
-    	super.dataProvider = value;
-    	labelChanged = true;
-    	invalidateProperties();
+    {
+        if (dataProvider === value)
+            return;
+
+        super.dataProvider = value;
+        labelChanged = true;
+        invalidateProperties();
     }

     //----------------------------------
@@ -332,12 +368,12 @@
      */
     override public function set labelField(value:String):void
     {
-    	if (labelField == value)
-    		return;
-
-    	super.labelField = value;
-    	labelChanged = true;
-    	invalidateProperties();
+        if (labelField == value)
+            return;
+
+        super.labelField = value;
+        labelChanged = true;
+        invalidateProperties();
     }

     //----------------------------------
@@ -349,12 +385,12 @@
      */
     override public function set labelFunction(value:Function):void
     {
-    	if (labelFunction == value)
-    		return;
-
-    	super.labelFunction = value;
-    	labelChanged = true;
-    	invalidateProperties();
+        if (labelFunction == value)
+            return;
+
+        super.labelFunction = value;
+        labelChanged = true;
+        invalidateProperties();
     }

     //--------------------------------------------------------------------------
@@ -363,8 +399,9 @@
     //
     //--------------------------------------------------------------------------

-	/**
-     *  Opens the dropDown.
+    /**
+     *  Open the drop-down list and dispatch
+     *  a DropdownEvent.OPEN event.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -373,14 +410,14 @@
      */
     public function openDropDown():void
     {
-    	dropDownController.openDropDown();
-    }
-
-	 /**
-     *  Closes the dropDown.
+        dropDownController.openDropDown();
+    }
+
+     /**
+     *  Close the drop-down list and dispatch a DropDownEvent.CLOSE event.
      *
-     *  @param commit Flag indicating if the component should commit the selected
-     *  data from the dropDown.
+     *  @param commit If true, commit the selected
+     *  data item.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -389,99 +426,99 @@
      */
     public function closeDropDown(commit:Boolean):void
     {
-    	dropDownController.closeDropDown(commit);
-    }
-
-	/**
+        dropDownController.closeDropDown(commit);
+    }
+
+    /**
      *  @private
      *  Called whenever we need to update the text passed to the labelElement skin part
      */
     // TODO (jszeto) Make this protected and make the name more generic (passing data to skin)
-	private function updateLabelElement():void
-	{
-		if (labelElement)
-    	{
-    		if (selectedItem)
-    			labelElement.text = LabelUtil.itemToLabel(selectedItem, labelField, labelFunction);
-	    	else
-	    		labelElement.text = prompt;
-    	}
-	}
+    private function updateLabelElement():void
+    {
+        if (labelElement)
+        {
+            if (selectedItem)
+                labelElement.text = LabelUtil.itemToLabel(selectedItem, labelField, labelFunction);
+            else
+                labelElement.text = prompt;
+        }
+    }

     //--------------------------------------------------------------------------
     //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	override protected function commitSelection(dispatchSelectionChanged:Boolean = true):Boolean
-    {
-    	var retVal:Boolean = super.commitSelection(dispatchSelectionChanged);
-       	updateLabelElement();
-       	return retVal;
-    }
-
-    /**
- 	 *  @private
- 	 */
-	override protected function commitProperties():void
+
+    /**
+     *  @private
+     */
+    override protected function commitSelection(dispatchSelectionChanged:Boolean = true):Boolean
+    {
+        var retVal:Boolean = super.commitSelection(dispatchSelectionChanged);
+        updateLabelElement();
+        return retVal;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
     {
         super.commitProperties();

         if (labelChanged)
-		{
-			labelChanged = false;
-        	updateLabelElement();
-  		}
-    }
-
-    /**
- 	 *  @private
- 	 */
+        {
+            labelChanged = false;
+            updateLabelElement();
+        }
+    }
+
+    /**
+     *  @private
+     */
     override protected function dataProvider_collectionChangeHandler(event:Event):void
-    {
-    	super.dataProvider_collectionChangeHandler(event);
-
-    	if (event is CollectionEvent)
-        {
-			labelChanged = true;
-			invalidateProperties();
+    {
+        super.dataProvider_collectionChangeHandler(event);
+
+        if (event is CollectionEvent)
+        {
+            labelChanged = true;
+            invalidateProperties();
         }
     }

     /**
- 	 *  @private
- 	 */
+     *  @private
+     */
     override protected function getCurrentSkinState():String
     {
-		return !enabled ? "disabled" : dropDownController.isOpen ? "open" : "normal";
+        return !enabled ? "disabled" : dropDownController.isOpen ? "open" : "normal";
     }

     /**
-	 *  @private
-	 */
+     *  @private
+     */
     override protected function partAdded(partName:String, instance:Object):void
     {
-    	super.partAdded(partName, instance);
+        super.partAdded(partName, instance);

- 		if (instance == openButton)
-    	{
-    		if (dropDownController)
-    			dropDownController.openButton = openButton;
-    		openButton.enabled = enabled;
-    	}
-
-    	if (instance == labelElement)
-    	{
-    		labelChanged = true;
-        	invalidateProperties();
-    	}
-
-    	if (instance == dropDown && dropDownController)
-    		dropDownController.dropDown = dropDown;
+        if (instance == openButton)
+        {
+            if (dropDownController)
+                dropDownController.openButton = openButton;
+            openButton.enabled = enabled;
+        }
+
+        if (instance == labelElement)
+        {
+            labelChanged = true;
+            invalidateProperties();
+        }
+
+        if (instance == dropDown && dropDownController)
+            dropDownController.dropDown = dropDown;
     }

     /**
@@ -489,15 +526,15 @@
      */
     override protected function partRemoved(partName:String, instance:Object):void
     {
-    	if (dropDownController)
-    	{
-    		if (instance == openButton)
-	    		dropDownController.openButton = null;
-
-    		if (instance == dropDown)
-    			dropDownController.dropDown = null;
-     	}
-
+        if (dropDownController)
+        {
+            if (instance == openButton)
+                dropDownController.openButton = null;
+
+            if (instance == dropDown)
+                dropDownController.dropDown = null;
+        }
+
         super.partRemoved(partName, instance);
     }

@@ -505,87 +542,87 @@
      *  @private
      */
     override protected function item_clickHandler(event:MouseEvent):void
-	{
-		super.item_clickHandler(event);
-		proposedSelectedIndex = selectedIndex;
-		closeDropDown(true);
-	}
-
-    /**
-	 *  @private
-	 */
-	override protected function keyDownHandler(event:KeyboardEvent) : void
-	{
-		if(!enabled)
+    {
+        super.item_clickHandler(event);
+        proposedSelectedIndex = selectedIndex;
+        closeDropDown(true);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function keyDownHandler(event:KeyboardEvent) : void
+    {
+        if(!enabled)
             return;

         if (!dropDownController.processKeyDown(event))
         {
-        	var navigationUnit:uint;
-        	var proposedNewIndex:int = -1;
-
-			if (dropDownController.isOpen)
-			{
-	        	navigationUnit = mapEventToNavigationUnit(event);
-	        	proposedNewIndex = layout.getDestinationIndex(navigationUnit, proposedSelectedIndex)
-
-	        	if (proposedNewIndex != -1)
-	        	{
-	        		itemSelected(proposedSelectedIndex, false);
-	        		proposedSelectedIndex = proposedNewIndex;
-	        		itemSelected(proposedSelectedIndex, true);
-	        		ensureItemIsVisible(proposedSelectedIndex);
-	        	}
-	   		}
-	   		else if (dataProvider)
-	   		{
-	   			navigationUnit = mapEventToNavigationUnit(event);
-
-	   			switch (navigationUnit)
-		        {
-		            case NavigationUnit.UP:
-		               proposedNewIndex = selectedIndex - 1;
-		               break;
-
-		            case NavigationUnit.DOWN:
-		               proposedNewIndex = selectedIndex + 1;
-		               break;
-
-		            case NavigationUnit.PAGE_UP:
-		               proposedNewIndex = selectedIndex == -1 ?
-		               						-1 : Math.max(selectedIndex - mx_internal::PAGE_SIZE, 0);
-		               break;
-
-			   		case NavigationUnit.PAGE_DOWN:
-		               proposedNewIndex = selectedIndex + mx_internal::PAGE_SIZE;
-		               break;
-
-            		case NavigationUnit.HOME:
-		               proposedNewIndex = 0;
-		               break;
-
-             		case NavigationUnit.END:
-		               proposedNewIndex = dataProvider.length - 1;
-		               break;
-
-
-		        }
-
-		        proposedNewIndex = Math.min(proposedNewIndex, dataProvider.length - 1);
-
-		        if (proposedNewIndex >= 0)
-		        	selectedIndex = proposedNewIndex;
-		    }
+            var navigationUnit:uint;
+            var proposedNewIndex:int = -1;
+
+            if (dropDownController.isOpen)
+            {
+                navigationUnit = mapEventToNavigationUnit(event);
+                proposedNewIndex = layout.getDestinationIndex(navigationUnit, proposedSelectedIndex)
+
+                if (proposedNewIndex != -1)
+                {
+                    itemSelected(proposedSelectedIndex, false);
+                    proposedSelectedIndex = proposedNewIndex;
+                    itemSelected(proposedSelectedIndex, true);
+                    ensureItemIsVisible(proposedSelectedIndex);
+                }
+            }
+            else if (dataProvider)
+            {
+                navigationUnit = mapEventToNavigationUnit(event);
+
+                switch (navigationUnit)
+                {
+                    case NavigationUnit.UP:
+                       proposedNewIndex = selectedIndex - 1;
+                       break;
+
+                    case NavigationUnit.DOWN:
+                       proposedNewIndex = selectedIndex + 1;
+                       break;
+
+                    case NavigationUnit.PAGE_UP:
+                       proposedNewIndex = selectedIndex == -1 ?
+                                            -1 : Math.max(selectedIndex - mx_internal::PAGE_SIZE, 0);
+                       break;
+
+                    case NavigationUnit.PAGE_DOWN:
+                       proposedNewIndex = selectedIndex + mx_internal::PAGE_SIZE;
+                       break;
+
+                    case NavigationUnit.HOME:
+                       proposedNewIndex = 0;
+                       break;
+
+                    case NavigationUnit.END:
+                       proposedNewIndex = dataProvider.length - 1;
+                       break;
+
+
+                }
+
+                proposedNewIndex = Math.min(proposedNewIndex, dataProvider.length - 1);
+
+                if (proposedNewIndex >= 0)
+                    selectedIndex = proposedNewIndex;
+            }
         }

-	}
-
-	/**
+    }
+
+    /**
      *  @private
      */
     override protected function focusOutHandler(event:FocusEvent):void
     {
-		dropDownController.processFocusOut(event);
+        dropDownController.processFocusOut(event);

         super.focusOutHandler(event);
     }
@@ -597,6 +634,7 @@
     //--------------------------------------------------------------------------

     /**
+     *  @private
      *  Event handler for the dropDownController
      *  DropDownEvent.OPEN event. Updates the skin's state and
      *  ensures that the selectedItem is visible.
@@ -608,25 +646,26 @@
      */
     protected function dropDownController_openHandler(event:DropDownEvent):void
     {
-    	addEventListener(FlexEvent.UPDATE_COMPLETE, open_updateCompleteHandler);
-    	proposedSelectedIndex = selectedIndex;
-    	invalidateSkinState();
+        addEventListener(FlexEvent.UPDATE_COMPLETE, open_updateCompleteHandler);
+        proposedSelectedIndex = selectedIndex;
+        invalidateSkinState();
     }

     /**
      *  @private
      */
     private function open_updateCompleteHandler(event:FlexEvent):void
-	{
-		removeEventListener(FlexEvent.UPDATE_COMPLETE, open_updateCompleteHandler);
-    	ensureItemIsVisible(selectedIndex);
-
-		dispatchEvent(new DropDownEvent(DropDownEvent.OPEN));
-	}
-
-    /**
+    {
+        removeEventListener(FlexEvent.UPDATE_COMPLETE, open_updateCompleteHandler);
+        ensureItemIsVisible(selectedIndex);
+
+        dispatchEvent(new DropDownEvent(DropDownEvent.OPEN));
+    }
+
+    /**
+     *  @private
      *  Event handler for the dropDownController
-     *  DropDownEvent.CLOSE event. Updates thbe skin's state.
+     *  DropDownEvent.CLOSE event. Updates the skin's state.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -635,24 +674,24 @@
      */
     protected function dropDownController_closeHandler(event:DropDownEvent):void
     {
-    	addEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
-    	invalidateSkinState();
-
-    	if (!event.isDefaultPrevented())
-    	{
-    		selectedIndex = proposedSelectedIndex;
-    	}
-    }
-
-	/**
+        addEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
+        invalidateSkinState();
+
+        if (!event.isDefaultPrevented())
+        {
+            selectedIndex = proposedSelectedIndex;
+        }
+    }
+
+    /**
      *  @private
      */
     private function close_updateCompleteHandler(event:FlexEvent):void
-	{
-		removeEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
-
-		dispatchEvent(new DropDownEvent(DropDownEvent.CLOSE));
-	}
-
+    {
+        removeEventListener(FlexEvent.UPDATE_COMPLETE, close_updateCompleteHandler);
+
+        dispatchEvent(new DropDownEvent(DropDownEvent.CLOSE));
+    }
+
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13082
Author:   jszeto@adobe.com
Date:     2009-12-18T00:02:56.908450Z

Log Message:
-----------
BaselinePosition bug fixes

SDK-23462 - When using embedded fonts with some components (DropDownList, HSlider, Border, DataGroup), the baselinePosition is a bad value

Added override of baselinePosition to Combobox. Removed override from DropDownListBase. Updated a few overrides to use getBaselinePositionForPart.

QE notes: none
Doc notes: none
Bugs: SDK-23462
Reviewer: Evtim
Tests run: checkintests, DropDownList, ComboBox
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -162,10 +162,7 @@
      */
     override public function get baselinePosition():Number
     {
-        if (labelDisplay)
-            return getBaselinePositionForPart(labelDisplay);
-
-        return super.baselinePosition;
+        return getBaselinePositionForPart(labelDisplay);
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12387
Author:   rfrishbe@adobe.com
Date:     2009-12-02T20:38:05.199373Z

Log Message:
-----------
VideoDisplay/VideoPlayer changes.  The two big changes are making sure we don’t call any methods on the media player when the state is “loading” or “uninitialized”.  Before we were just checking for “playbackError”; however, at the time of these other states, it’s not valid to call methods on mediaPlayer either.  Also, I alphabetized and organized the methods and properties in VolumeBar and also fixed a bug where we were setting muted = false in setValue().  We did this so that when the user moves around the track or the thumb, muted gets unset, but we should only do this on changes due to a user-interaction.  So I’ve moved this code to a CHANGE handler instead.  All the other changes should be relatively minor.

QE notes: -
Doc notes: -
Bugs: SDK-24192, SDK-24486
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/MuteButton.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -69,8 +69,6 @@

 /**
  *  Dispatched when the currentTime property of the MediaPlayer has changed.
- *  This value is updated at the interval set by
- *  the MediaPlayer's currentTimeUpdateInterval property.
  *
  *  @eventType org.osmf.events.TimeEvent.CURRENT_TIME_CHANGE
  *
@@ -1170,8 +1168,12 @@
             return false;

         // if the video player's in a bad state, we can't do anything
-        if (videoPlayer.state == MediaPlayerState.PLAYBACK_ERROR)
+        if (videoPlayer.state == MediaPlayerState.PLAYBACK_ERROR ||
+            videoPlayer.state == MediaPlayerState.UNINITIALIZED ||
+            videoPlayer.state == MediaPlayerState.LOADING)
+        {
             return false;
+        }

         // if no source, return false as well
         if (!source)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as
@@ -13,8 +13,8 @@
 {

 /**
- *  Enumerated type for the VerticalLayout's horizontalAlign
- *  property.
+ *  The HorizontalAlign class defines the possible values for the
+ *  horizontalAlign property of the VerticalLayout class.
  *
  * @see VerticalLayout#horizontalAlign
  *
@@ -56,8 +56,8 @@
     public static const RIGHT:String = "right";

     /**
-     *  Justify the children with respect to the container.  This
-     *  uniformly sizes all children to be the same width as the
+     *  Justify the children with respect to the container.
+     *  This uniformly sizes all children to be the same width as the
      *  container.
      *
      *  @langversion 3.0
@@ -68,8 +68,8 @@
     public static const JUSTIFY:String = "justify";

     /**
-     *  Content justify the children with respect to the container.  This
-     *  uniformly sizes all children to be the content width of the container.
+     *  Content justify the children with respect to the container.
+     *  This uniformly sizes all children to be the content width of the container.
      *  The content width of the container is the size of the largest child.
      *  If all children are smaller than the width of the container, then
      *  all the children will be sized to the width of the container.


Fix sprite shader

Fix sprite shader

--- src/aerys/minko/render/shader/sprite/SpriteShader.as
+++ src/aerys/minko/render/shader/sprite/SpriteShader.as
@@ -77,7 +77,7 @@

 		override protected function getPixelColor() : SFloat
 		{
-			return _diffuse.getDiffuseColor(true, _uv);
+			return _diffuse.getDiffuseColor(true, interpolate(_uv));
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3411
Author:   egeorgie@adobe.com
Date:     2008-09-29T23:44:01.337941Z

Log Message:
-----------
* Change layout-related width/height, explicit width/height, measured width/height properties from post-scale to pre-transform. yay!
* Flex3 containers are updated to support the new behavior.
* Repeatedly scaling a component can differ from before, since we no longer accumulate rounding errors.
* The change is gated by a version flag, in compatibility mode these properties don't change.

Reviewed by Glenn, Ely

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/BoxLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/PostScaleAdapter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/containers/FormItem.as
+++ frameworks/projects/mx/src/mx/containers/FormItem.as
@@ -603,7 +603,7 @@
         {
             for (i = 0; i < numChildren; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);

                 if (!child.includeInLayout)
                     continue;
@@ -620,7 +620,7 @@
         // minWidth/height and the preferredWidth/Height
         for (i = 0; i < numChildren; i++)
         {
-            child = IUIComponent(getChildAt(i));
+            child = getLayoutChildAt(i);

             if (!child.includeInLayout)
                 continue;
@@ -742,7 +742,7 @@
         {
             for (i = 0; i < n; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);
                 maxPreferredWidth = Math.max(
                     maxPreferredWidth, child.getExplicitOrMeasuredWidth());
             }
@@ -750,7 +750,7 @@

         for (i = 0; i < n; i++)
         {
-            child = IUIComponent(getChildAt(i));
+            child = getLayoutChildAt(i);

             if (col < numColumns)
             {
@@ -909,7 +909,7 @@
         if (numChildren > 0)
         {
             // Center label with first child
-            child = IUIComponent(getChildAt(0));
+            child = getLayoutChildAt(0);
             childBaseline = child.baselinePosition;
             if (!isNaN(childBaseline))
                 y += childBaseline - labelObj.baselinePosition;
@@ -952,7 +952,7 @@

         for (var i:Number = 0; i < n; i++)
         {
-            child = IUIComponent(getChildAt(i));
+            child = getLayoutChildAt(i);

             child.move(child.x + extraWidth, child.y);
         }
@@ -1061,7 +1061,7 @@

             for (i = 0; i < numChildren; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);

                 if (!child.includeInLayout)
                     continue;
@@ -1078,7 +1078,7 @@
             // don't know what controlWidth will be)
             for (i = 0; i < numChildren; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);

                 if (!child.includeInLayout)
                     continue;
@@ -1119,7 +1119,7 @@
             // the fixed height and the percentage height for each row
             for (i = 0; i < numChildren; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);

                 if (!child.includeInLayout)
                 {
@@ -1230,7 +1230,7 @@
                 // and we run the whole space to distribute calculation again.
                 for (i = 0; i < numChildren; i++)
                 {
-                    child = IUIComponent(getChildAt(i));
+                    child = getLayoutChildAt(i);

                     if (!child.includeInLayout)
                         continue;
@@ -1354,7 +1354,7 @@
         if (n > 0)
         {
             // Center label with first child
-            child = IUIComponent(getChildAt(0));
+            child = getLayoutChildAt(0);
             childBaseline = child.baselinePosition;
             if (!isNaN(childBaseline))
                 y += childBaseline - labelObj.baselinePosition;
@@ -1417,7 +1417,7 @@

                 for (i = 0; i < n; i++)
                 {
-                    child = IUIComponent(getChildAt(i));
+                    child = getLayoutChildAt(i);
                     child.move(Math.floor(left), top);
                     left += child.width + horizontalGap;
                 }
@@ -1427,7 +1427,7 @@
                 // Determine the widest child.
                 for (i = 0; i < n; i++)
                 {
-                    child = IUIComponent(getChildAt(i));
+                    child = getLayoutChildAt(i);
                     maxWidth = Math.max(maxWidth,
                                         child.getExplicitOrMeasuredWidth());
                 }
@@ -1444,7 +1444,7 @@
                 // Place the children in columns
                 for (i = 0; i < n; i++)
                 {
-                    child = IUIComponent(getChildAt(i));
+                    child = getLayoutChildAt(i);

                     childWidth = Math.min(maxWidth,
                                           child.getExplicitOrMeasuredWidth());
@@ -1472,7 +1472,7 @@

             for (i = 0; i < n; i++)
             {
-                child = IUIComponent(getChildAt(i));
+                child = getLayoutChildAt(i);

                 // Round up to nearest 1/4 of controlWidth
                 if (!isNaN(child.percentWidth))
@@ -1515,7 +1515,7 @@
         if (n > 0)
         {
             // Center label with first child
-            child = IUIComponent(getChildAt(0));
+            child = getLayoutChildAt(0);
             childBaseline = child.baselinePosition;
             if (!isNaN(childBaseline))
                 y += childBaseline - labelObj.baselinePosition;
@@ -1614,7 +1614,7 @@

         for (var i:int = 0; i < numChildren; i++)
         {
-            var child:IUIComponent = IUIComponent(getChildAt(i));
+            var child:IUIComponent = getLayoutChildAt(i);

             if (!child.includeInLayout)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3308
Author:   jvroom@adobe.com
Date:     2008-09-23T03:19:51.589238Z

Log Message:
-----------
QE: yes - method on HTTPMultiService fixed
          HTTPMultiService.rootURL -> baseURL - it is interpreted as a directory name, not a file name like rootURL
          endpoint now works on mx.rpc.remoting.RemoteObject (not just the mxml variant)
          also promoted concurrency and showBusyCursor to RemoteObject
          removed RTE from getOperation for HTTPMultiService as it messes with data binding expressions eval'd before the operation is added
Docs:     properties above moved from mxml.RemoteObject to RemoteObject, ASdoc changes for HTTPMultiService
Blazeds checkintests pass
Reviewer: Pete

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/Operation.as
@@ -81,6 +81,22 @@
         _makeObjectsBindableSet = true;
     }

+    private var _methodSet:Boolean = false;
+    private var _method:String;
+
+    override public function get method():String
+    {
+        if (_methodSet)
+            return _method;
+
+        return _multiService.method;
+    }
+    override public function set method(m:String):void
+    {
+        _method = m;
+        _methodSet = m != null;
+    }
+
     override mx_internal function setService(s:AbstractService):void
     {
         super.setService(s);
@@ -96,7 +112,16 @@
     override public function get rootURL():String
     {
         if (_rootURL == null)
-            return _multiService.rootURL;
+        {
+            if (_multiService.baseURL != null)
+            {
+                if (_multiService.baseURL.charAt(_multiService.baseURL.length - 1) != '/')
+                    return _multiService.baseURL + "/";
+                return _multiService.baseURL;
+            }
+            else
+                return super.rootURL; // defaults to SWF's URL
+        }
         return _rootURL;
     }


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

--- frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Issue #66: Fix token helper functions not working with non-alphanumeric characters.

--- src/com/esri/builder/supportClasses/URLUtil.as
+++ src/com/esri/builder/supportClasses/URLUtil.as
@@ -54,7 +54,7 @@

     public static function removeToken(url:String):String
     {
-        const tokenKeyValue:RegExp = / &? token = [a-zA-Z0-9]* /igx;
+        const tokenKeyValue:RegExp = / &? token = [^&]* /igx;
         var cleanURL:String = url ? url.replace(tokenKeyValue, "") : "";

         const invalidQueryStringCharSequence:RegExp = / (\?) & /x;
@@ -70,7 +70,7 @@

         if (url)
         {
-            const tokenKeyValue:RegExp = / &? token = ([a-zA-Z0-9]*) /ix;
+            const tokenKeyValue:RegExp = / &? token = ([^&]*) /ix;
             var matches:Array = tokenKeyValue.exec(url);
             if (matches && matches.length > 1) //want the first captured group (the token value)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4726
Author:   gosmith@adobe.com
Date:     2009-01-29T02:47:59.868818Z

Log Message:
-----------
Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.

In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.

In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.

Removed an artificial limit of 100000 items in List and Menu.

A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.

Removed the getName() method of ComboBase, which isn't used.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<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/ColorPickerAccImpl.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/TreeAccImpl.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/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/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/TreeAccImpl.as
@@ -390,23 +390,18 @@
 		if (childID == 0)
 			return "";

+		var tree:Tree = Tree(master);
+
+		var item:Object = getItemAt(childID - 1);
+
 		var name:String = "";

-		var tree:Tree = Tree(master);
-
-		// Assuming childID is always ItemID + 1
-		// because getChildIDArray is not always invoked.
-		var index:int = childID - 1;
-
-		var item:Object = getItemAt(childID - 1);
 		if (!item)
 			return name;

 		if (tree.itemToLabel(item))
 			name = tree.itemToLabel(item);

-		name += getMOfN(item);
-
 		return name;
 	}

@@ -416,65 +411,14 @@
 	//
 	//--------------------------------------------------------------------------

+	/**
+	 *  @private
+	 */
 	private function getItemAt(index:int):Object
 	{
 		var iterator:IViewCursor = Tree(master).collectionIterator;
 		iterator.seek(CursorBookmark.FIRST, index);
 		return iterator.current;
-	}
-
-	/**
-	 *  @private
-	 *  Local method to return m of n String.
-	 *
-	 *  @param item Object
-	 *
-	 *  @return string.
-	 */
-	private function getMOfN(item:Object):String
-	{
-		var tree:Tree = Tree(master);
-		var i:int = 0;
-		var n:int = 0;
-
-		var view:HierarchicalCollectionView = HierarchicalCollectionView(tree.wrappedCollection);
-
-		var parent:Object = view.getParentItem(item);
-		if (parent)
-		{
-			var childNodes:ICollectionView =
-				tree.dataDescriptor.getChildren(parent, tree.collectionIterator.view);
-
-			if (childNodes)
-			{
-				n = childNodes.length;
-				for (i = 0; i < n; i++)
-				{
-					if (item == childNodes[i])
-						break;
-				}
-			}
-		}
-		else
-		{
-			var cursor:IViewCursor = ICollectionView(tree.collectionIterator.view).createCursor();
-			while (!cursor.afterLast)
-			{
-				if (item == cursor.current)
-					i = n;
-				n++;
-				cursor.moveNext();
-			}
-		}
-
-		if (i == n)
-			i = 0;
-
-		// Make it 1-based.
-		if (n > 0)
-			i++;
-
-		return ", " + i + " of " + n;
 	}

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