Transferred from the Adobe Open Source Subversion Repository

Revision: 3418
Author:   shodgson@adobe.com
Date:     2008-09-30T17:24:48.986106Z

Log Message:
-----------
Remove obsolete poll-sync responders from PollingChannel and other impacted protocol-specific channels.

QA: No
Doc: No
Checkintests Pass: Yes

This stuff was originally used by a PollingChannel to directly monitor subscribe/unsubscribe commands issued by higher-level components in order to drive a count of active subscriptions, and from that, whether or not the channel needed to issue poll requests.

However, DataService, and then Consumer ended up managing this directly because they had better insight into when they considered themselves subscribed and they notify the PollingChannel of their state changes directly (mx_internally). When this was added, the underlying poll-sync responder machinery didn't go away, and it generally doesn't cause problems except in the case of a client disconnect without a preceding explicit unsubscribe. In this case the higher level component moves to an unsubscribed state when it disconnects (and lets the PollingChannel know) but because no unsubscribe command is sent by a poll-sync responder, the extra count it added never decrements and the channel continues to poll incorrectly.

Modified Paths:
--------------
<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/rpc/src/mx/messaging/channels/PollingChannel.as</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/HTTPChannel.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as
@@ -305,14 +305,6 @@
     /**
      *  @private
      */
-    override protected function getPollSyncMessageResponder(agent:MessageAgent, msg:CommandMessage):MessageResponder
-    {
-        return new PollSyncHTTPMessageResponder(agent, msg, this);
-    }
-
-    /**
-     *  @private
-     */
     override protected function getDefaultMessageResponder(agent:MessageAgent, msg:IMessage):MessageResponder
     {
         return new HTTPMessageResponder(agent, msg, this);
@@ -366,7 +358,7 @@
         {
             var msg:CommandMessage = new CommandMessage();
             msg.operation = CommandMessage.DISCONNECT_OPERATION;
-            internalSend(new HTTPFireAndForgetResponder(msg));
+            internalSend(new MessageResponder(null, msg, null));
         }
         // Shutdown locally.
         setConnected(false);
@@ -1194,79 +1186,4 @@
         callRequestProcessedCallback(event);
         callEventCallback(completeCallback, event);
     }
-}
-
-/**
- *  @private
- *  This class provides a way to synchronize polling with a subscribe or
- *  unsubscribe request.  It is constructed in response to a consumer sending
- *  either a subscribe or unsubscribe command message.  If a successfull
- *  subscribe/unsubscribe is made this responder will inform the channel
- *  appropriately.
- *
- *  See the PollSyncMessageResponder in NetConnectionChannel - the prototype.
- */
-class PollSyncHTTPMessageResponder extends HTTPMessageResponder
-{
-    //--------------------------------------------------------------------------
-    //
-    // Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Constructs a PollSyncHTTPMessageResponder.
-     *
-     *  @param agent The associated MessageAgent.
-     *
-     *  @param msg The subscribe or unsubscribe message.
-     *
-     *  @param channel The Channel used to send the message.
-     */
-    public function PollSyncHTTPMessageResponder
-        (agent:MessageAgent, msg:IMessage, channel:HTTPChannel)
-    {
-        super(agent, msg, channel);
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    // Overridden Protected Methods
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    override protected function resultHandler(response:IMessage):void
-    {
-        super.resultHandler(response);
-        if ((response is AsyncMessage) && (AsyncMessage(response).correlationId == message.messageId))
-        {
-            // notify the channel
-            var cmd:CommandMessage = CommandMessage(message);
-            switch (cmd.operation)
-            {
-                case CommandMessage.SUBSCRIBE_OPERATION:
-                    HTTPChannel(channel).enablePolling();
-                break;
-
-                case CommandMessage.UNSUBSCRIBE_OPERATION:
-                    HTTPChannel(channel).disablePolling();
-                break;
-            }
-        }
-    }
-}
-
-/**
- *  Helper class for sending a fire-and-forget disconnect message.
- */
-class HTTPFireAndForgetResponder extends MessageResponder
-{
-    public function HTTPFireAndForgetResponder(message:IMessage)
-    {
-        super(null, message, null);
-    }
-}
+}


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

--- frameworks/projects/rpc/src/mx/messaging/management/MBeanInfo.as
+++ frameworks/projects/rpc/src/mx/messaging/management/MBeanInfo.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 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@1273865 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/rpc/src/mx/messaging/management/MBeanInfo.as
+++ frameworks/projects/rpc/src/mx/messaging/management/MBeanInfo.as
@@ -18,11 +18,23 @@

 /**
  * Client representation of metadata for a MBean.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion BlazeDS 4
+ *  @productversion LCDS 3
  */
 public class MBeanInfo
 {
     /**
      *  Creates a new instance of an empty MBeanInfo.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
 	public function MBeanInfo()
 	{
@@ -31,26 +43,56 @@

 	/**
 	 * The class name for the MBean.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var className:String;

 	/**
 	 * The description for the MBean.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var description:String;

 	/**
 	 * The attributes exposed by the MBean.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var attributes:Array;

 	/**
 	 * The constructors exposed by the MBean.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var constructors:Array;

 	/**
 	 * The operations provided by the MBean.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion BlazeDS 4
+	 *  @productversion LCDS 3
 	 */
 	public var operations:Array;

@@ -58,6 +100,12 @@
      *  Returns a string representation of the MBean info.
      *
      *  @return String representation of the MBean info.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
 	public function toString():String
     {


Update KrewScenarioPlayer

Update KrewScenarioPlayer

--- krew-framework/krewfw/builtin_actor/system/KrewScenarioPlayer.as
+++ krew-framework/krewfw/builtin_actor/system/KrewScenarioPlayer.as
@@ -20,6 +20,9 @@

         private var _triggers:Object = {};
         private var _methods:Object  = {};
+
+        // internal event
+        public static const ACTIVATE:String = "ksp.activate";

         //------------------------------------------------------------
         public function KrewScenarioPlayer() {
@@ -126,6 +129,7 @@
             for (var triggerKey:String in _eventsByTrigger) {
                 _listenEvent(triggerKey);
             }
+            sendMessage(KrewScenarioPlayer.ACTIVATE);
         }

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


Kaygee attempt to solve index page not found error

--- client/node_modules/grunt-karma/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/rsa/RSAKey.as
+++ client/node_modules/grunt-karma/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/rsa/RSAKey.as
@@ -69,7 +69,7 @@

 		}
-
+
 		public static function parsePublicKey(N:String, E:String):RSAKey {
 			return new RSAKey(new BigInteger(N, 16, true), parseInt(E,16));
 		}
@@ -94,14 +94,14 @@
 			n = null;
 			Memory.gc();
 		}
-
+
 		public function encrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function=null):void {
 			_encrypt(doPublic, src, dst, length, pad, 0x02);
 		}
 		public function decrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function=null):void {
 			_decrypt(doPrivate2, src, dst, length, pad, 0x02);
 		}
-
+
 		public function sign(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void {
 			_encrypt(doPrivate2, src, dst, length, pad, 0x01);
 		}
@@ -109,7 +109,7 @@
 			_decrypt(doPublic, src, dst, length, pad, 0x01);
 		}

-
+
 		private function _encrypt(op:Function, src:ByteArray, dst:ByteArray, length:uint, pad:Function, padType:int):void {
 			// adjust pad if needed
 			if (pad==null) pad = pkcs1pad;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16545
Author:   chiedozi@adobe.com
Date:     2010-06-14T03:42:53.505665Z

Log Message:
-----------
Added MobileApplication, ViewNavigator, PersistenceManager and ViewTransition prototypes to mobile components swc.

mobilecomponents and mobiletheme eclipse projects now link to airglobal.swc instead of playerglobal.swc so that MobileApplication can respond to StageOrientation and NativeApplication events.

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/ViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/IViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorSection.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/managers/PersistenceManager.as
+++ frameworks/projects/mobilecomponents/src/spark/managers/PersistenceManager.as
@@ -0,0 +1,79 @@
+package spark.core.managers
+{
+    import flash.net.SharedObject;
+
+    public class PersistenceManager implements IPersistenceManager
+    {
+        private var so:SharedObject;
+        public var initialized:Boolean = false;
+
+        public function PersistenceManager()
+        {
+        }
+
+
+        private var _enabled:Boolean = true;
+
+        public function get enabled():Boolean
+        {
+            return _enabled;
+        }
+
+        public function set enabled(value:Boolean):void
+        {
+            _enabled = value;
+        }
+
+        public function initialize(id:String = null):void
+        {
+            try
+            {
+                so = SharedObject.getLocal("__FXAppCache");
+                initialized = true;
+            }
+            catch (e:Error)
+            {
+                trace(e.message);
+                enabled = false;
+            }
+        }
+
+        public function setProperty(key:String, value:Object):void
+        {
+            if (!initialized)
+                initialize();
+
+            if (enabled)
+            {
+                so.data[key] = value;
+//                so.flush();
+            }
+        }
+
+        public function getProperty(key:String):Object
+        {
+            if (!initialized)
+                initialize();
+
+            if (enabled)
+                return so.data[key];
+
+            return null;
+        }
+
+        public function clear():void
+        {
+            if (!initialized)
+                initialize();
+
+            so.clear();
+            so.flush();
+        }
+
+        public function flush():void
+        {
+            so.flush();
+        }
+
+    }
+}


added Weave.classInfo()

added Weave.classInfo()

--- WeaveASJS/src/Weave.as
+++ WeaveASJS/src/Weave.as
@@ -543,14 +543,53 @@
 		 */
 		public static function registerClass(definition:Class, qualifiedName:/*/string|string[]/*/Object, additionalInterfaces:Array/*/<new()=>any>/*/ = null, displayName:String = null):void
 		{
-			var names:Array = qualifiedName as Array || [qualifiedName];
-			for (var index:String in names)
-			{
-				if (index == '0')
-					WeaveAPI.ClassRegistry.registerClass(definition, names[index], [ILinkableObject].concat(additionalInterfaces || []), displayName);
-				else
-					WeaveAPI.ClassRegistry.registerClass(definition, names[index]);
-			}
+			var ids:Array = qualifiedName is String ? [qualifiedName] : qualifiedName as Array || [];
+			if (!ids.length)
+				throw new Error("registerClass() requires at least one name under which to register a class definition");
+
+			definition['WEAVE_INFO'] = classInfo(definition, {
+				"id": ids[0],
+				"label": displayName,
+				"interfaces": additionalInterfaces,
+				"deprecatedIds": ids.slice(1)
+			});
+		}
+
+		/**
+		 * Registers a class.
+		 * @param definition The class definition.
+		 * @param info An object containing the class info.
+		 * @return The same info object passed in as a parameter.
+		 */
+		public static function classInfo(definition:/*/new(..._:any[])=>any/*/Class, info:/*/{
+			id:string,
+			label?:string,
+			interfaces?:Array<new()=>any>,
+			deprecatedIds?:string[],
+			singleton?:boolean,
+			linkable?:boolean
+		}/*/Object):/*/typeof info/*/Object
+		{
+			var ID:String = 'id';
+			var DEPRECATED_IDS:String = 'deprecatedIds';
+			var INTERFACES:String = 'interfaces';
+			var LABEL:String = 'label';
+			var LINKABLE:String = 'linkable';
+			var SINGLETON:String = 'singleton';
+
+			var id:String = info[ID] as String;
+			var label:String = info[LABEL] as String;
+			var linkable:Boolean = info[LINKABLE] === undefined ? true : !!info[LINKABLE];
+			var singleton:Boolean = !!info[SINGLETON];
+			var allInterfaces:Array = linkable ? [ILinkableObject].concat(info[INTERFACES] || []) : info[INTERFACES] as Array;
+			var deprecatedIds:Array = info[DEPRECATED_IDS] is String ? [info[DEPRECATED_IDS]] : info[DEPRECATED_IDS] as Array || [];
+
+			WeaveAPI.ClassRegistry.registerClass(definition, id, allInterfaces, label);
+
+			for each (var deprecatedId:String in deprecatedIds)
+				WeaveAPI.ClassRegistry.registerClass(definition, deprecatedId);
+
+			return definition['WEAVE_INFO'] = info;
 		}

 		/**


added back commented ColumnUtils hack temporarily

--- WeaveJS/src/WeaveJS.as
+++ WeaveJS/src/WeaveJS.as
@@ -27,6 +27,7 @@
 	import weavejs.core.SessionManager;
 	import weavejs.data.AttributeColumnCache;
 	import weavejs.data.CSVParser;
+	import weavejs.data.ColumnUtils;
 	import weavejs.data.StatisticsCache;
 	import weavejs.data.key.QKeyManager;
 	import weavejs.net.URLRequestUtils;
@@ -72,6 +73,12 @@
 			Weave.registerClass("FlexibleLayout", LinkableVariable);
 			Weave.registerClass("ExternalTool", LinkableHashMap);

+			// TEMPORARY HACK - omit keySet filter
+//			var joinColumns:Function = ColumnUtils.joinColumns;
+//			ColumnUtils['joinColumns'] = function(columns:Array, dataType:Object = null, allowMissingData:Boolean = false):Array {
+//				return joinColumns.call(ColumnUtils, columns, dataType, allowMissingData);
+//			};
+
 			// TEMPORARY
 			//WeaveTest.test(weave);
 			WeaveTest;


qnd: remove redundant code

qnd: remove redundant code

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@86345 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
+++ plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
@@ -57,7 +57,7 @@
 						"closedCaptionsClicked",
 						"changedClosedCaptions",
 						"layoutReady",
-						"showHideClosedCaptions",
+						ClosedCaptionsNotifications.SHOW_HIDE_CLOSED_CAPTIONS,
 						"closedCaptionsSelected",
 						"closedCaptionsSwitched",
 						"newClosedCaptionsData",
@@ -91,9 +91,6 @@
 				case "mediaLoaded":
 					addTextHandler();

-					break;
-				case "showHideClosedCaptions":
-					(viewComponent as ClosedCaptions).visible = !(viewComponent as ClosedCaptions).visible;
 					break;
 				case "mediaReady":
 				case "changedClosedCaptions":


Transferred from the Adobe Open Source Subversion Repository

Revision: 18354
Author:   klin@adobe.com
Date:     2010-10-28T20:12:18.894784Z

Log Message:
-----------
Add support for sorting columns with complex datafields. If sortCompareFunction is not explicitly defined, we use a default compare function to compare the complex datafields using itemToLabel().

QE notes: No
Doc notes: No
Bugs: SDK-28276
Reviewer: Hans
Tests run: cyclone server
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as
@@ -64,6 +64,33 @@
             _defaultItemEditorFactory = new ClassFactory(DefaultGridItemEditor);
         return _defaultItemEditorFactory;
     }
+
+    /**
+     *  @private
+     *  A default compare function for sorting if the dataField is a complex path.
+     */
+    private static function dataFieldPathSortCompare(obj1:Object, obj2:Object, column:GridColumn):int
+    {
+        if (!obj1 && !obj2)
+            return 0;
+
+        if (!obj1)
+            return 1;
+
+        if (!obj2)
+            return -1;
+
+        var obj1String:String = column.itemToLabel(obj1);
+        var obj2String:String = column.itemToLabel(obj2);
+
+        if ( obj1String < obj2String )
+            return -1;
+
+        if ( obj1String > obj2String )
+            return 1;
+
+        return 0;
+    }

     //--------------------------------------------------------------------------
     //
@@ -201,7 +228,6 @@
         else if (value.indexOf( "." ) != -1)
         {
             dataFieldPath = value.split(".");
-            // TBD(hmuller): deal with the sortCompareFunction, as in DataGridColumn set dataField
         }
         else
         {
@@ -1068,25 +1094,37 @@
     public function get sortField():SortField
     {
         const column:GridColumn = this;
-        const sortField:SortField = new SortField(column.dataField);
+        const sortField:SortField = new SortField(dataField);
+        var cF:Function = null;

         if (_sortCompareFunction != null)
         {
-            sortField.compareFunction =
-                function (a:Object, b:Object):int
+            cF = function (a:Object, b:Object):int
+            {
+                return _sortCompareFunction(a, b, column);
+            };
+        }
+        else
+        {
+            if (dataFieldPath.length > 1)
+            {
+                // use custom compare function for a complex dataField if one isn't provided.
+                cF = function (a:Object, b:Object):int
                 {
-                    return _sortCompareFunction(a, b, column);
+                    return dataFieldPathSortCompare(a, b, column);
                 };
-        }
-        else if (column.dataField == null && _labelFunction != null)
-        {
-            sortField.compareFunction =
-                function (a:Object, b:Object):int
+            }
+            else if (dataField == null && _labelFunction != null)
+            {
+                // use basic string compare on the labelFunction results
+                cF = function (a:Object, b:Object):int
                 {
                     return ObjectUtil.stringCompare(_labelFunction(a, column), _labelFunction(b, column));
                 };
+            }
         }

+        sortField.compareFunction = cF;
         sortField.descending = column.sortDescending;
         return sortField;
     }


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

--- frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.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 spark.components.mediaClasses
 {


fix RenderingController.unbind() to avoid null pointer when the pass instance does not exist (ie shader previously failed to compiled)

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -821,26 +821,29 @@

 			drawCall.unsetBindings(meshBindings, sceneBindings);

-			// remove callback on binding changes
-			var signature		: Signature		= passInstance.signature;
-			var numKeys			: uint			= signature.numKeys;
-
-			for (var i : uint = 0; i < numKeys; ++i)
-			{
-				var key 	: String	= signature.getKey(i);
-				var flags	: uint		= signature.getFlags(i);
-
-				if (flags & Signature.SOURCE_MESH)
-					meshBindings.removeCallback(key, bindingsPropertyChangedHandler);
-				else
-					sceneBindings.removeCallback(key, bindingsPropertyChangedHandler);
-			}
-
-			// release the shader
-			passInstance.release();
-
-			// update indexes
-			delete _drawCallToPassInstance[drawCall];
+            if (passInstance)
+            {
+    			// remove callback on binding changes
+    			var signature		: Signature		= passInstance.signature;
+    			var numKeys			: uint			= signature.numKeys;
+
+    			for (var i : uint = 0; i < numKeys; ++i)
+    			{
+    				var key 	: String	= signature.getKey(i);
+    				var flags	: uint		= signature.getFlags(i);
+
+    				if (flags & Signature.SOURCE_MESH)
+    					meshBindings.removeCallback(key, bindingsPropertyChangedHandler);
+    				else
+    					sceneBindings.removeCallback(key, bindingsPropertyChangedHandler);
+    			}
+
+    			// release the shader
+    			passInstance.release();
+    			// update indexes
+    			delete _drawCallToPassInstance[drawCall];
+            }
+
 			delete _drawCallToMeshBindings[drawCall];

 			var drawCalls 		: Array	= _passInstanceToDrawCalls[passInstance];


Avoid context configuration if the pass is disabled

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -297,12 +297,14 @@
 					backBuffer,
 					previous ? previous.settings : null
 				);
-
+
 				if (!pass.settings.enabled || !pass.shader.enabled || !calls)
                 {
+
                     previous = pass;
 					continue;
                 }
+

 				++_numEnabledPasses;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5310
Author:   jszeto@adobe.com
Date:     2009-03-13T22:10:52.856444Z

Log Message:
-----------
Flex SDK Bug Fix

SDK-19845 Straight-line paths do not seem to render properly.

The Path was not protecting against zero value width or height when drawing the segments.

Fixed bug in FxSpinner where all keyboard events were not bubbling. Instead, what we want is for the UP/DOWN/HOME/END keyDown events to not bubble.

Updated function name in FxSlider to follow event handler function naming convention.

QE Notes: Add tests for vertical or horizontal line Paths
Doc Notes: n/a
Bugs: SDK-19845
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -291,7 +291,7 @@
         if (instance == thumb)
         {
             thumb.addEventListener(KeyboardEvent.KEY_DOWN,
-                                   thumb_keyboardHandler);
+                                   thumb_keyDownHandler);
         }
     }

@@ -305,7 +305,7 @@
         if (instance == thumb)
         {
             thumb.removeEventListener(KeyboardEvent.KEY_DOWN,
-                                      thumb_keyboardHandler);
+                                      thumb_keyDownHandler);
         }
     }

@@ -456,7 +456,7 @@
      *  Right/Up arrows. The Home and End keys set the value
      *  to the min and max respectively.
      */
-    protected function thumb_keyboardHandler(event:KeyboardEvent):void
+    protected function thumb_keyDownHandler(event:KeyboardEvent):void
     {
         // TODO: Provide a way to easily override the keyboard
         // behavior. This means having a callback in the subclasses


Transferred from the Adobe Open Source Subversion Repository

Revision: 18663
Author:   rfrishbe@adobe.com
Date:     2010-11-17T19:34:31.545200Z

Log Message:
-----------
Fixing a setStyle() bug in StyleableTextField.

Also, changing the default width of StyleableTextField to 400.

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -127,6 +127,14 @@
         // RichEditableText is double-clickable by default, so we will be too.
         doubleClickEnabled = true;

+        // make our width 400 by default.  this is just a heuristic, but it helps
+        // get the right measurement the first time for a multi-line TextField.
+        // The developer should still be setting the textField's width to
+        // the estimatedWidth to get a more accurate representation, but
+        // sometimes there is no estimated width, and this will be a good
+        // heuristic in cases where they forget to do that.
+        width = 400;
+
         // Add a high priority change handler so we can capture the event
         // and re-dispatch as a TextOperationEvent
         addEventListener(Event.CHANGE, changeHandler, false, 100);
@@ -766,9 +774,11 @@
     public function setStyle(styleProp:String, value:*):void
     {
         if (!_inlineStyleObject)
-            _inlineStyleObject = {styleProp: value};
-        else
-            _inlineStyleObject[styleProp] = value;
+            _inlineStyleObject = {};
+
+        _inlineStyleObject[styleProp] = value;
+
+		styleChanged(styleProp);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation/src/mx/automation/codec/DefaultPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/DefaultPropertyCodec.as
@@ -0,0 +1,210 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.codec
+{
+
+	import mx.automation.qtp.IQTPPropertyDescriptor;
+	import mx.automation.Automation;
+	import mx.automation.IAutomationManager;
+	import mx.automation.IAutomationObject;
+	import mx.resources.IResourceManager;
+	import mx.resources.ResourceManager;
+	import mx.styles.IStyleClient;
+
+	[ResourceBundle("automation_agent")]
+
+	/**
+	 * Base class for codecs, which translate between internal Flex properties
+	 * and automation-friendly ones.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class DefaultPropertyCodec implements IAutomationPropertyCodec
+	{
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		public function DefaultPropertyCodec()
+		{
+			super();
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		protected var resourceManager:IResourceManager =
+			ResourceManager.getInstance();
+
+		//--------------------------------------------------------------------------
+		//
+		//  Methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		public function encode(automationManager:IAutomationManager,
+							   obj:Object,
+							   pd:IQTPPropertyDescriptor,
+							   relativeParent:IAutomationObject):Object
+		{
+			var val:Object = getMemberFromObject(automationManager, obj, pd);
+
+			//QTP can't handle NaN although COM can
+			//If other testing tools want NaN, then we should extract this to a different codec
+			//specific to QTP
+			//if (val is Number && isNaN(Number(val)))
+			//	return null;
+
+			return getValue(automationManager, obj, val, pd);
+		}
+
+		/**
+		 *  @private
+		 */
+		public function decode(automationManager:IAutomationManager,
+							   obj:Object,
+							   value:Object,
+							   pd:IQTPPropertyDescriptor,
+							   relativeParent:IAutomationObject):void
+		{
+			obj[pd.name] = getValue(automationManager, obj, value, pd, true);
+		}
+
+		/**
+		 *  @private
+		 */
+		public function getMemberFromObject(automationManager:IAutomationManager,
+											obj:Object,
+											pd:IQTPPropertyDescriptor):Object
+		{
+			var part:Object;
+			var component:Object;
+
+			if (obj is IAutomationObject)
+			{
+				part = automationManager.createIDPart(obj as IAutomationObject);
+				component = obj;
+			}
+			else
+			{
+				component = obj;
+			}
+
+			var result:Object = null;
+
+			if (part  && pd.name in part)
+			{
+				result = part[pd.name];
+			}
+			else if (pd.name in obj)
+			{
+				result = obj[pd.name];
+			}
+			else if (component != null)
+			{
+				if (pd.name in component)
+					result = component[pd.name];
+				else if (component is IStyleClient)
+					result = IStyleClient(component).getStyle(pd.name);
+			}
+
+			return result;
+		}
+
+		/**
+		 *  @private
+		 */
+		private function getValue(automationManager:IAutomationManager,
+								  obj:Object,
+								  val:Object,
+								  pd:IQTPPropertyDescriptor,
+								  useASType:Boolean = false):Object
+		{
+			if (val == null)
+				return null;
+
+			var type:String = useASType && pd.asType ? pd.asType : pd.QTPtype;
+
+			switch (type)
+			{
+				case "Boolean":
+				case "boolean":
+				{
+					if (val is Boolean)
+						return val;
+					val = val ? val.toString().toLowerCase() : "false";
+					return val == "true";
+				}
+				case "String":
+				case "string":
+				{
+					if (val is String)
+						return val;
+					return val.toString();
+				}
+				case "int":
+				case "uint":
+				case "integer":
+				{
+
+					if (val is int || val is uint)
+						return val;
+					if (val is Date)
+						return val.time;
+					if (val is Number)
+					{
+						var message:String = resourceManager.getString(
+							"automation_agent", "precisionLoss", [pd.name]);
+						throw new Error(message);
+					}
+					return parseInt(val.toString());
+				}
+				case "Number":
+				case "decimal":
+				{
+					if (val is Number)
+						return val;
+					if (val is Date)
+						return val.time;
+					return parseFloat(val.toString());
+				}
+				case "Date":
+				case "date":
+				{
+					if (val is Date)
+						return val;
+					var num:Number = Date.parse(val.toString());
+					return new Date(num);
+				}
+				default:
+				{
+					return val;
+				}
+			}
+		}
+	}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22704
Author:   deeptika@adobe.com
Date:     2011-09-23T09:03:51.659610Z

Log Message:
-----------
asdoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>

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

--- frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as
+++ frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as
@@ -11,124 +11,131 @@

 package mx.automation.air
 {
-    import flash.display.DisplayObject;
-    import flash.geom.Point;
-
-    import mx.automation.Automation;
-    import mx.automation.IAutomationManager2;
-    import mx.core.FlexGlobals;
-    [Mixin]
-
-    /**
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2
-     *  @productversion Flex 4.1
-     */
-    public class AirFunctionsHelper
-    {
-        private var _stageStartCoordinates:Point;
-        //private var _stageWidth:int;
-        //private var _stageHeight:int;
-
-        //private var _applicationStartCoordinates:Point;
-        //private var _applicationWidth:int;
-        //private var _applicationHeight:int;
-
-
-        //private var _chromeHeight:int;
-        //private var _chromeWidth:int;
-
-        private var _appTitle:String;
-        private var _appWindow:DisplayObject;
-
-       /**
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10
-        *  @playerversion AIR 2
-        *  @productversion Flex 4.1
-        */
-        public function AirFunctionsHelper(windowId:String)
-        {
-            if (!windowId)
-                //_appWindow =   Application.application as DisplayObject;
-                _appWindow =   FlexGlobals.topLevelApplication as DisplayObject;
-            else
-            {
-                var automationManager:IAutomationManager2 = Automation.automationManager2;
-                if(automationManager)
-                    _appWindow = automationManager.getAIRWindow(windowId);
-            }
-        }
-
-       /**
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10
-        *  @playerversion AIR 2
-        *  @productversion Flex 4.1
-        */
-        public static function init(root:DisplayObject):void
-        {
-
-        }
-
-        // native window 's bound will give the totla and stage gives inner (statge width and stage heigjt
-
-       /**
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10
-        *  @playerversion AIR 2
-        *  @productversion Flex 4.1
-        */
-        public  function get stageStartCoordinates():Point
-        {
-            // every time when the user asks this, we need to recalcuate and send the same
-
-            var stageStartScreenCoordinates:Point;
-
-            var startPoint:Point = new Point(0,0);
-            if (_appWindow)
-            {
-                var startGloabalPoint:Point = _appWindow.localToGlobal(startPoint);
-                //stageStartScreenCoordinates = Application.application.stage.nativeWindow.globalToScreen(startGloabalPoint);
-                stageStartScreenCoordinates = _appWindow.stage.nativeWindow.globalToScreen(startGloabalPoint);
-            }
-
-            _stageStartCoordinates = stageStartScreenCoordinates;
-            return _stageStartCoordinates;
-
-        }
-
-       /**
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10
-        *  @playerversion AIR 2
-        *  @productversion Flex 4.1
-        */
-        public function get activeWindow():DisplayObject
-        {
-            if(_appWindow != null)
-                return _appWindow;
-            else
-                return FlexGlobals.topLevelApplication as DisplayObject;
-        }
-
-       /**
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10
-        *  @playerversion AIR 2
-        *  @productversion Flex 4.1
-        */
-        public  function get appTitle():String
-        {
-            _appTitle=   FlexGlobals.topLevelApplication.stage.nativeWindow.title;
-            return _appTitle;
-        }
-    }
+	import flash.display.DisplayObject;
+	import flash.geom.Point;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationManager2;
+	import mx.core.FlexGlobals;
+	[Mixin]
+
+	/**
+	 *  Helper class that provides methods required for automation of AIR applications
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 2
+	 *  @productversion Flex 4.1
+	 */
+	public class AirFunctionsHelper
+	{
+		private var _stageStartCoordinates:Point;
+		//private var _stageWidth:int;
+		//private var _stageHeight:int;
+
+		//private var _applicationStartCoordinates:Point;
+		//private var _applicationWidth:int;
+		//private var _applicationHeight:int;
+
+
+		//private var _chromeHeight:int;
+		//private var _chromeWidth:int;
+
+		private var _appTitle:String;
+		private var _appWindow:DisplayObject;
+
+		/**
+		 *  Constructor
+		 *  @param windowId
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2
+		 *  @productversion Flex 4.1
+		 */
+		public function AirFunctionsHelper(windowId:String)
+		{
+			if (!windowId)
+				//_appWindow =   Application.application as DisplayObject;
+				_appWindow =   FlexGlobals.topLevelApplication as DisplayObject;
+			else
+			{
+				var automationManager:IAutomationManager2 = Automation.automationManager2;
+				if(automationManager)
+					_appWindow = automationManager.getAIRWindow(windowId);
+			}
+		}
+
+		/**
+		 *  @private
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2
+		 *  @productversion Flex 4.1
+		 */
+		public static function init(root:DisplayObject):void
+		{
+
+		}
+
+		// native window 's bound will give the totla and stage gives inner (statge width and stage heigjt
+
+		/**
+		 *  Returns the start point of the stage in screen coordinates
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2
+		 *  @productversion Flex 4.1
+		 */
+		public  function get stageStartCoordinates():Point
+		{
+			// every time when the user asks this, we need to recalcuate and send the same
+
+			var stageStartScreenCoordinates:Point;
+
+			var startPoint:Point = new Point(0,0);
+			if (_appWindow)
+			{
+				var startGloabalPoint:Point = _appWindow.localToGlobal(startPoint);
+				//stageStartScreenCoordinates = Application.application.stage.nativeWindow.globalToScreen(startGloabalPoint);
+				stageStartScreenCoordinates = _appWindow.stage.nativeWindow.globalToScreen(startGloabalPoint);
+			}
+
+			_stageStartCoordinates = stageStartScreenCoordinates;
+			return _stageStartCoordinates;
+
+		}
+
+		/**
+		 *  Returns current window that is active
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2
+		 *  @productversion Flex 4.1
+		 */
+		public function get activeWindow():DisplayObject
+		{
+			if(_appWindow != null)
+				return _appWindow;
+			else
+				return FlexGlobals.topLevelApplication as DisplayObject;
+		}
+
+		/**
+		 *  Returns the title of window of top level application
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10
+		 *  @playerversion AIR 2
+		 *  @productversion Flex 4.1
+		 */
+		public  function get appTitle():String
+		{
+			_appTitle=   FlexGlobals.topLevelApplication.stage.nativeWindow.title;
+			return _appTitle;
+		}
+	}
 }


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

--- frameworks/projects/framework/src/mx/validators/CreditCardValidatorCardType.as
+++ frameworks/projects/framework/src/mx/validators/CreditCardValidatorCardType.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.validators
 {


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

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

 package spark.components.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -342,7 +342,7 @@
      */
     private var alphaChanged:Boolean = false;

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

     /**
      *  @inheritDoc


Transferred from the Adobe Open Source Subversion Repository

Revision: 8393
Author:   jszeto@adobe.com
Date:     2009-07-06T20:46:27.558863Z

Log Message:
-----------
Updated FIXME comments

Changed some to TODOs, removed some and filed bugs for the remainder

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.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/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -1748,7 +1748,7 @@
      */
     public function set transform(value:flash.geom.Transform):void
     {
-        // FIXME (jszeto): Add perspectiveProjection support
+        // TODO (jszeto): Add perspectiveProjection support

         var matrix:Matrix = value && value.matrix ? value.matrix.clone() : null;
         var matrix3D:Matrix3D = value && value.matrix3D ? value.matrix3D.clone() : null;
@@ -2530,8 +2530,7 @@

     private var _alwaysCreateDisplayObject:Boolean;

-    // FIXME (jszeto): Remove once we have a better solution for a design tool
-    // to captureBitmapData for hit testing.
+    // Used by the design tool to get bitmap captures
     mx_internal function set alwaysCreateDisplayObject(value:Boolean):void
     {
         if (value != _alwaysCreateDisplayObject)


Transferred from the Adobe Open Source Subversion Repository

Revision: 2743
Author:   jimurphy@adobe.com
Date:     2008-08-05T19:28:29.575474Z

Log Message:
-----------
Merged 3.0.x revisions [2649,2652,2670,2694,2699-2700,2713,2721-2723,2729,2731-2732] -> trunk

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLibrary.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nUtils.java</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/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/modules/compiler/src/java/flex2/tools/SwcChecksums.java" copyfrom-rev="2732" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/SwcChecksums.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.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/rpc/src/mx/rpc/xml/XMLEncoder.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/managers/PopUpManagerImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java</path>

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

--- frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
+++ frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
@@ -1507,6 +1507,41 @@
 		return lastParent != null ? lastParent : DisplayObject(sm);
 	}

+
+    /**
+     *  @inheritdoc
+     */
+    public function getVisibleApplicationRect(bounds:Rectangle = null):Rectangle
+    {
+        if (!bounds)
+        {
+            bounds = getBounds(DisplayObject(this));
+
+            var s:Rectangle = screen;
+            var pt:Point = new Point(bounds.x, bounds.y);
+            pt = localToGlobal(pt);
+            bounds.x = pt.x;
+            bounds.y = pt.y;
+            bounds.width = s.width;
+            bounds.height = s.height;
+        }
+
+        // send a message to parent for their visible rect.
+        if (useBridge())
+        {
+            var bridge:IEventDispatcher = sandboxBridgeGroup.parentBridge;
+            var request:SandboxBridgeRequest = new SandboxBridgeRequest(SandboxBridgeRequest.GET_VISIBLE_RECT,
+                                                                    false, false,
+                                                                    bridge,
+                                                                    bounds);
+            bridge.dispatchEvent(request);
+            bounds = Rectangle(request.data);
+        }
+
+        return bounds;
+    }
+
+
 	/**
 	 *  Returns true if the given DisplayObject is the
 	 *  top-level window.


Transferred from the Adobe Open Source Subversion Repository

Revision: 1451
Author:   jimurphy@adobe.com
Date:     2008-04-29T14:19:59.414928Z

Log Message:
-----------
Merge 3.0.x [1412,1415-1417,1444] -> 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/StreamingHTTPChannel.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/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
@@ -28,7 +28,6 @@
 import mx.messaging.events.ChannelEvent;
 import mx.messaging.events.ChannelFaultEvent;
 import mx.messaging.events.MessageEvent;
-import mx.messaging.messages.AbstractMessage;
 import mx.messaging.messages.AcknowledgeMessage;
 import mx.messaging.messages.AsyncMessage;
 import mx.messaging.messages.CommandMessage;
@@ -50,21 +49,21 @@
     //--------------------------------------------------------------------------
     //
     // Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Creates a new NetConnectionChannel instance.
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Creates a new NetConnectionChannel instance.
      *

      *  The underlying NetConnection's objectEncoding
-     *  is set to ObjectEncoding.AMF3 by default. It can be
+     *  is set to ObjectEncoding.AMF3 by default. It can be
      *  changed manually by accessing the channel's netConnection
-     *  property. The global NetConnection.defaultObjectEncoding
+     *  property. The global NetConnection.defaultObjectEncoding
      *  setting is not honored by this channel.
      *

      *
      *  @param id The id of this Channel.
-     *
+     *
      *  @param uri The uri for this Channel.
      */
     public function NetConnectionChannel(id:String = null, uri:String = null)
@@ -78,8 +77,19 @@

     //--------------------------------------------------------------------------
     //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    mx_internal var _appendToURL:String;
+
+    //--------------------------------------------------------------------------
+    //
     // Properties
-    //
+    //
     //--------------------------------------------------------------------------

     //----------------------------------
@@ -90,7 +100,7 @@
      *  @private
      */
     protected var _nc:NetConnection;
-
+
     /**
      *  Provides access to the associated NetConnection for this Channel.
      */
@@ -98,7 +108,7 @@
     {
         return _nc;
     }
-
+
     //----------------------------------
     //  useSmallmessages
     //----------------------------------
@@ -115,7 +125,7 @@
     //--------------------------------------------------------------------------
     //
     // Overridden Protected Methods
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -132,7 +142,7 @@
      */
     override protected function getPollSyncMessageResponder(agent:MessageAgent, msg:CommandMessage):MessageResponder
     {
-        return new PollSyncMessageResponder(agent, msg, this);
+        return new PollSyncMessageResponder(agent, msg, this);
     }

     /**
@@ -150,7 +160,7 @@
     {
         super.internalDisconnect(rejected);
         shutdownNetConnection();
-        disconnectSuccess(rejected); // make sure to notify everyone that we have disconnected.
+        disconnectSuccess(rejected); // make sure to notify everyone that we have disconnected.
     }

     /**
@@ -159,7 +169,11 @@
     override protected function internalConnect():void
     {
         super.internalConnect();
-
+        var url:String = endpoint;
+        if (_appendToURL != null)
+            url += _appendToURL;
+
+
         // If the NetConnection has a non-null uri the Player will close() it automatically
         // as part of its connect() processing below. Pre-emptively close the connection while suppressing
         // NetStatus event handling to avoid spurious events.
@@ -168,25 +182,25 @@
             _nc.removeEventListener(NetStatusEvent.NET_STATUS, statusHandler);
             _nc.close();
         }
-
-        _nc.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
+
+        _nc.addEventListener(NetStatusEvent.NET_STATUS, statusHandler);
         _nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
         _nc.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
         _nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

-        try
-        {
-            _nc.connect(endpoint);
-        }
-        catch(e:Error)
+        try
+        {
+            _nc.connect(url);
+        }
+        catch(e:Error)
         {
             // In some cases, this error does not have the URL in it (if it is a malformed
-            // URL for example) and in others it does (sandbox violation).  Usually this is
-            // a URL problem, so add it all of the time even though this means we'll see it
+            // URL for example) and in others it does (sandbox violation).  Usually this is
+            // a URL problem, so add it all of the time even though this means we'll see it
             // twice for the sandbox violation.
-            e.message += "  url: '" + endpoint + "'";
+            e.message += "  url: '" + url + "'";
             throw e;
-        }
+        }
     }

     /**
@@ -195,7 +209,7 @@
     override protected function internalSend(msgResp:MessageResponder):void
     {
         // Set the global FlexClient Id.
-        setFlexClientIdOnMessage(msgResp.message);
+        setFlexClientIdOnMessage(msgResp.message);

         // If MPI is enabled initialize MPI object and stamp it with client send time
         if (mpiEnabled)
@@ -203,7 +217,7 @@
             var mpii:MessagePerformanceInfo = new MessagePerformanceInfo();
             if (recordMessageTimes)
                 mpii.sendTime = new Date().getTime();
-            msgResp.message.headers[MessagePerformanceUtils.MPI_HEADER_IN] = mpii;
+            msgResp.message.headers[MessagePerformanceUtils.MPI_HEADER_IN] = mpii;
         }

         var message:IMessage = msgResp.message;
@@ -218,12 +232,12 @@
         }

         _nc.call(null, msgResp, message);
-    }
+    }

     //--------------------------------------------------------------------------
     //
     // Methods
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -239,18 +253,22 @@
      */
     public function AppendToGatewayUrl(value:String):void
     {
-        if (value != null && endpoint != null)
-        {
-            netConnection.connect(endpoint + value);
-        }
-    }
-
-    /**
-     *  @private
+        if (value != null && value != "" && value != _appendToURL)
+        {
+            if (Log.isDebug())
+                _log.debug("'{0}' channel will disconnect and reconnect with with its session identifier '{1}' appended to its endpoint url \n", id, value);
+            _appendToURL = value;
+            shutdownNetConnection();
+            internalConnect();
+        }
+    }
+
+    /**
+     *  @private
      *  Called by the player when the server pushes a message.
      *  Dispatches a MessageEvent to any MessageAgents that are listening.
      *  Any ...rest args passed via RTMP are ignored.
-     *
+     *
      *  @param msg The message pushed from the server.
      */
     public function receive(msg:IMessage, ...rest:Array):void
@@ -258,7 +276,7 @@
         if (Log.isDebug())
         {
             _log.debug("'{0}' channel got message\n{1}\n", id, msg.toString());
-
+
             // If MPI is enabled write a performance summary to log
             if (this.mpiEnabled)
             {
@@ -280,9 +298,9 @@
     //--------------------------------------------------------------------------
     //
     // Protected Methods
-    //
-    //--------------------------------------------------------------------------
-
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  @private
      *  Utility method to close a NetConnection; includes retry to deal with instances
@@ -291,7 +309,7 @@
     protected function closeNetConnection(nc:NetConnection):void
     {
         var closeHelper:CloseHelper = new CloseHelper(_nc);
-        closeHelper.close();
+        closeHelper.close();
     }
     */

@@ -300,13 +318,13 @@
      *  Shuts down the underlying NetConnection for the channel.
      */
     protected function shutdownNetConnection():void
-    {
+    {
         _nc.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
         _nc.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
         _nc.removeEventListener(NetStatusEvent.NET_STATUS, statusHandler);
         _nc.removeEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
         _nc.close();
-    }
+    }

     /**
      *  @private
@@ -352,7 +370,7 @@
     //--------------------------------------------------------------------------
     //
     // Private Methods
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -365,12 +383,12 @@
         var faultEvent:ChannelFaultEvent = ChannelFaultEvent.createEvent
             (this, false, code, "error", event.text + " url: '" + endpoint + "'");
         faultEvent.rootCause = event;
-
+
         if (_connecting)
             connectFailed(faultEvent);
         else
             dispatchEvent(faultEvent);
-    }
+    }

 }

@@ -379,7 +397,7 @@
 //------------------------------------------------------------------------------
 //
 // Private Classes
-//
+//
 //------------------------------------------------------------------------------

 import flash.utils.Timer;
@@ -420,7 +438,7 @@
     //--------------------------------------------------------------------------
     //
     // Constructor
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -429,12 +447,12 @@
      *
      *  @param agent MessageAgent that this responder should call back when a
      *            message is received.
-     *
+     *
      *  @param msg The outbound message.
-     *
+     *
      *  @param channel The channel this responder is using.
      */
-    public function NetConnectionMessageResponder(agent:MessageAgent,
+    public function NetConnectionMessageResponder(agent:MessageAgent,
                                     msg:IMessage, channel:NetConnectionChannel)
     {
         super(agent, msg, channel);
@@ -445,7 +463,7 @@
     //--------------------------------------------------------------------------
     //
     // Variables
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -457,7 +475,7 @@
     //--------------------------------------------------------------------------
     //
     // Overridden Methods
-    //
+    //
     //--------------------------------------------------------------------------

     /**
@@ -491,7 +509,7 @@
         }
         else
         {
-            var errorMsg:ErrorMessage;
+            var errorMsg:ErrorMessage;
             errorMsg = new ErrorMessage();
             errorMsg.faultCode = "Server.Acknowledge.Failed";
             errorMsg.faultString = resourceManager.getString(
@@ -515,8 +533,8 @@
     override protected function statusHandler(msg:IMessage):void
     {
         disconnect();
-
-        // even a fault is still an acknowledgement of a message sent so pass it on...
+
+        // even a fault is still an acknowledgement of a message sent so pass it on...
         if (msg is AsyncMessage)
         {
             if (AsyncMessage(msg).correlationId == message.messageId)
@@ -544,7 +562,7 @@
                 errorMsg.faultDetail = resourceManager.getString(
                     "messaging", "noErrorForMessage.details",
                     [ message.messageId, AsyncMessage(msg).correlationId ]);
-                errorMsg.correlationId = message.messageId;
+                errorMsg.correlationId = message.messageId;
                 agent.fault(errorMsg, message);
             }
         }
@@ -561,13 +579,13 @@
             agent.fault(errorMsg, message);
         }
     }
-
+
     //--------------------------------------------------------------------------
     //
     // Overridden Protected Methods
-    //
-    //--------------------------------------------------------------------------
-
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  @private
      *  Handle a request timeout by removing ourselves as a listener on the
@@ -577,23 +595,23 @@
     {
         disconnect();
         statusHandler(createRequestTimeoutErrorMessage());
-    }
+    }

     //--------------------------------------------------------------------------
     //
     // Protected Methods
-    //
-    //--------------------------------------------------------------------------
-
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  @private
      *  Handles a disconnect of the underlying Channel before a response is
-     *  returned to the responder.
+     *  returned to the responder.
      *  The sent message is faulted and flagged with the ErrorMessage.MESSAGE_DELIVERY_IN_DOUBT
      *  code.
-     *
+     *
      *  @param event The DISCONNECT event.
-     */
+     */
     protected function channelDisconnectHandler(event:ChannelEvent):void
     {
         disconnect();
@@ -606,14 +624,14 @@
         errorMsg.faultCode = ErrorMessage.MESSAGE_DELIVERY_IN_DOUBT;
         agent.fault(errorMsg, message);
     }
-
-    /**
-     *  @private
-     *  Handles a fault of the underlying Channel before a response is
-     *  returned to the responder.
+
+    /**
+     *  @private
+     *  Handles a fault of the underlying Channel before a response is
+     *  returned to the responder.
      *  The sent message is faulted and flagged with the ErrorMessage.MESSAGE_DELIVERY_IN_DOUBT
      *  code.
-     *
+     *
      *  @param event The ChannelFaultEvent.
      */
     protected function channelFaultHandler(event:ChannelFaultEvent):void
@@ -628,14 +646,14 @@
             errorMsg.faultCode = ErrorMessage.MESSAGE_DELIVERY_IN_DOUBT;
         }
         agent.fault(errorMsg, message);
-    }
+    }

     //--------------------------------------------------------------------------
     //
     // Private Methods
-    //
-    //--------------------------------------------------------------------------
-
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  @private
      *  Disconnects the responder from the underlying Channel.
@@ -644,7 +662,7 @@
     {
         channel.removeEventListener(ChannelEvent.DISCONNECT, channelDisconnectHandler);
         channel.removeEventListener(ChannelFaultEvent.FAULT, channelFaultHandler);
-    }
+    }
 }

 /**
@@ -655,24 +673,24 @@
  *  unsubscribe command message.
  *  If a successfull subscribe/unsubscribe is made this responder will inform the
  *  channel which will trigger it to start/stop polling if necessary.
- *
+ *
  */
 class PollSyncMessageResponder extends NetConnectionMessageResponder
 {
     //--------------------------------------------------------------------------
     //
     // Constructor
-    //
-    //--------------------------------------------------------------------------
+    //
+    //--------------------------------------------------------------------------

     /**
      *  @private
      *  Constructs a PollSyncMessageResponder.
-     *
+     *
      *  @param agent The agent to manage polling for.
-     *
+     *
      *  @param msg The subscribe or unsubscribe message for the agent.
-     *
+     *
      *  @param channel The underlying Channel for the responder.
      */
     public function PollSyncMessageResponder(agent:MessageAgent, msg:IMessage,
@@ -684,8 +702,8 @@
     //--------------------------------------------------------------------------
     //
     // Overridden Protected Methods
-    //
-    //--------------------------------------------------------------------------
+    //
+    //--------------------------------------------------------------------------

     /**
      *  @private
@@ -695,7 +713,7 @@
      *  @param msg The response to a subscribe or unsubscribe request.
      */
     override protected function resultHandler(msg:IMessage):void
-    {
+    {
         super.resultHandler(msg);
         if ((msg is AsyncMessage) && (AsyncMessage(msg).correlationId == message.messageId))
         {
@@ -713,28 +731,28 @@
             }
         }
     }
-
+
     //--------------------------------------------------------------------------
     //
     // Protected Methods
-    //
-    //--------------------------------------------------------------------------
-
+    //
+    //--------------------------------------------------------------------------
+
     /**
      *  @private
      *  Handles a disconnect of the underlying Channel before a response is
      *  returned to the responder and supresses resend attempts.
-     *
+     *
      *  @param event The Channel disconnect event.
-     */
+     */
     override protected function channelDisconnectHandler(event:ChannelEvent):void {}
-
-    /**
-     *  @private
-     *  Handles a fault of the underlying Channel before a response is
+
+    /**
+     *  @private
+     *  Handles a fault of the underlying Channel before a response is
      *  returned to the responder and supresses resend attempts.
-     *
+     *
      *  @param event The Channel fault event.
      */
-    override protected function channelFaultHandler(event:ChannelFaultEvent):void {}
+    override protected function channelFaultHandler(event:ChannelFaultEvent):void {}
 }


SoundBufferType 指定が null だった場合の処理を忘れてたのを修正

--- project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundConductor.as
+++ project/SoundConductor/src/jp/hiiragi/managers/soundConductor/SoundConductor.as
@@ -159,14 +159,15 @@
 		 *
 		 * @param bufferType	 SoundGenerator 機能で扱われるサウンドのバッファを保持する量を設定します。
 		 * useSharedSoundGenerator が false の場合、この値を設定する必要はありません。
-		 * 設定には SoundBufferType クラスの定数を使用してください。デフォルトは null です。
+		 * 設定には SoundBufferType クラスの定数を使用してください。null の場合は、SoundBufferType.BUFFER_SIZE_4096 が適用されます。
+		 * デフォルトは null です。
 		 */
 		public static function initialize(useSharedSoundGenerator:Boolean = false, bufferType:SoundBufferType = null):void
 		{
 			if (_isInitialized)
 				throw new SoundConductorError(SoundConductorErrorType.ERROR_10011);

-			_soundBufferSize = bufferType;
+			_soundBufferSize = bufferType || SoundBufferType.BUFFER_SIZE_4096;
 			_useSharedSoundGenerator = useSharedSoundGenerator;

 			if (!SoundUtil.checkPlayable())


Prevent mouse flickering for multiple players on the same page.

--- src/goplayer/SkinnedPlayerView.as
+++ src/goplayer/SkinnedPlayerView.as
@@ -17,6 +17,8 @@
     private var player : Player
     private var skin : Skin
     private var configuration : SkinnedPlayerViewConfiguration
+
+    private var _mousePointerVisible : Boolean = true

     public function SkinnedPlayerView
       (video : PlayerVideo,
@@ -58,12 +60,24 @@

     public function handlePlayerVideoUpdated() : void
     {
-      if (showMousePointer)
+      mousePointerVisible = showMousePointer
+      skin.update()
+    }
+
+    private function set mousePointerVisible(value : Boolean) : void
+    {
+      if (value != _mousePointerVisible)
+        $mousePointerVisible = value
+    }
+
+    private function set $mousePointerVisible(value : Boolean) : void
+    {
+      _mousePointerVisible = value
+
+      if (value)
         Mouse.show()
       else
         Mouse.hide()
-
-      skin.update()
     }

     public function get showMousePointer() : Boolean


fixed bugs with async behavior.

fixed bugs with async behavior.

Change-Id: I239656cb1a4758abf6e2eca406df8f7354957abc

--- WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
@@ -72,7 +72,7 @@

 			SecondaryKeyNumColumn.allKeysHack = true; // dimension slider hack

-			_keys = column ? column.keys : [];
+			_keys = column ? column.keys.concat() : []; // make a copy so we know length won't change during async task

 			SecondaryKeyNumColumn.allKeysHack = false; // dimension slider hack

@@ -143,6 +143,7 @@

 			_v = 0;
 			_count = 2;
+			_m = 0;

 			return 1;
 		}
@@ -163,11 +164,11 @@
 		{
 			for (; _count < _sortedValues.length + 1; _count++)
 			{
-				_s1= 0;
-				_s2= 0;
-				_w= 0;
 				if(_m==0)
 				{
+					_s1= 0;
+					_s2= 0;
+					_w= 0;
 					_m =1;
 				}
 				for(; _m < _count + 1; _m++)


Include the width of the image in the atlas in the xml

--- src/main/as/flump/export/Atlas.as
+++ src/main/as/flump/export/Atlas.as
@@ -70,7 +70,8 @@
         for each (var tex :PackedTexture in textures) {
             xml += "  <texture name='" + tex.tex.name + "' xOffset='" + tex.offset.x +
                 "' yOffset='" + tex.offset.y + "' md5='" + tex.tex.md5 +
-                "' xAtlas='" + tex.atlasX + "' yAtlas='" + tex.atlasY + "'/>\n";
+                "' xAtlas='" + tex.atlasX + "' yAtlas='" + tex.atlasY +
+                "' wAtlas='" + tex.w + "' hAtlas='" + tex.h + "'/>\n";
         }
         return xml + "</atlas>\n";
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21504
Author:   aaltman@adobe.com
Date:     2011-06-30T16:58:51.113669Z

Log Message:
-----------
Initial checkin of StageText-based skins for mobile TextInput and TextArea. New default skins have not been changed yet. Skins use native text controls on Android and iOS devices.

QE notes: Padding isn't correct yet. Skins do not yet work on iOS because of runtime bug 2906305.
Doc notes:
Bugs:
Reviewer: Carol Frampton, Jason Szeto, Alex Harui
Tests run: Checkin tests, focusManager tests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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.skins.mobile
+{
+import spark.components.TextInput;
+import spark.skins.mobile.supportClasses.StageTextSkinBase;
+
+/**
+ *  ActionScript-based skin for TextInput controls in mobile applications.
+ *
+ *  @see spark.components.TextInput
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 3.0
+ *  @productversion Flex 4.5.2
+ */
+public class StageTextInputSkin extends StageTextSkinBase
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 3.0
+     *  @productversion Flex 4.5.2
+     */
+    public function StageTextInputSkin()
+    {
+        super();
+        multiline = false;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @copy spark.skins.spark.ApplicationSkin#hostComponent
+     */
+    public var hostComponent:TextInput;  // SkinnableComponent will populate
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function layoutContents(unscaledWidth:Number,
+                                               unscaledHeight:Number):void
+    {
+        // base class handles border position & size
+        super.layoutContents(unscaledWidth, unscaledHeight);
+
+        // position & size the text
+        var paddingLeft:Number = getStyle("paddingLeft");
+        var paddingRight:Number = getStyle("paddingRight");
+        var paddingTop:Number = getStyle("paddingTop");
+        var paddingBottom:Number = getStyle("paddingBottom");
+
+        var unscaledTextWidth:Number = unscaledWidth - paddingLeft - paddingRight;
+        var unscaledTextHeight:Number = unscaledHeight - paddingTop - paddingBottom;
+
+        // default vertical positioning is centered
+        var textHeight:Number = getElementPreferredHeight(textDisplay);
+        var textY:Number = Math.round(0.5 * (unscaledTextHeight - textHeight)) + paddingTop;
+
+        var adjustedTextHeight:Number = textHeight + paddingBottom;
+
+        if (textDisplay)
+        {
+            textDisplay.commitStyles();
+            setElementSize(textDisplay, unscaledTextWidth, adjustedTextHeight);
+            setElementPosition(textDisplay, paddingLeft, textY);
+        }
+
+        if (promptDisplay)
+        {
+            promptDisplay.commitStyles();
+            setElementSize(promptDisplay, unscaledTextWidth, adjustedTextHeight);
+            setElementPosition(promptDisplay, paddingLeft, textY);
+        }
+    }
+
+    /**
+     *  @private
+     */
+    override protected function measure():void
+    {
+        super.measure();
+        measureTextComponent(hostComponent);
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18031
Author:   klin@adobe.com
Date:     2010-10-06T18:01:29.650399Z

Log Message:
-----------
Enable column visibility to change at runtime. When column.visible is changed, it will cause the columns IList to dispatch a CollectionEventKind.UPDATE event for the Grid to handle. The Grid then fixes up GridDimensions and clears the layout cache.

Grid.as - Added columns_visibleChangedHandler which is called when the Grid gets an UPDATE event from the columns IList. It clears the columns that are changing and sets their typical and actual width to the correct values in gridDimensions.

GridColumn.as - visible property now dispatches a CollectionEvent on the columns IList.

GridDimensions.as, GridLayout.as, GridSelection.as - various small fixes to make this all work.

QE notes: No
Doc notes: No
Bugs: SDK-26843
Reviewer: Hans
Tests run: cyclone server
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridSelection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
@@ -1267,7 +1267,8 @@

         rowList.clearColumns(startColumn, count);

-        clearTypicalCellWidthsAndHeights();
+        clearVector(typicalCellWidths, NaN, startColumn, count);
+        clearVector(typicalCellHeights, NaN, startColumn, count);
         clearVector(_columnWidths, NaN, startColumn, count);

         // cache is invalid because node values might have changed


Issue #32: Preserve parentheses used to denote config layer's server source.

--- src/com/esri/builder/model/ConfigLayer.as
+++ src/com/esri/builder/model/ConfigLayer.as
@@ -70,8 +70,8 @@
     public static const KML_LABEL:String = "kml layer";
     public static const WEB_TILED_LABEL:String = "web tiled layer";

-    private const MAP_SERVER_SOURCE:String = "(MS)";
-    private const FEATURE_SERVER_SOURCE:String = "(FS)";
+    private const MAP_SERVER_SOURCE:String = "\u202A(MS)\u202C";
+    private const FEATURE_SERVER_SOURCE:String = "\u202A(FS)\u202C";

     [Transient]
     public var layerXML:XML; // The original XML


Transferred from the Adobe Open Source Subversion Repository

Revision: 23284
Author:   cframpto@adobe.com
Date:     2012-01-10T15:28:39.900752Z

Log Message:
-----------
Replace Macromedia copyright headers with Apache copyright headers.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/advancedgrids/data_management.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/charts/charts-3.0.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/charts/src/mx/charts/chartClasses/StackedSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/charts/charts.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/framework/src/mx/events/InvalidateRequestData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/charts/MXCharts.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/charts/charts-4.X.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/advancedgrids/data_management-3.0.0.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/apache/frameworks/projects/framework/src/mx/states/AddItems.as</path>

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

--- frameworks/projects/framework/src/mx/events/InvalidateRequestData.as
+++ frameworks/projects/framework/src/mx/events/InvalidateRequestData.as
@@ -1,9 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
-//  All Rights Reserved. The following is Source Code and is subject to all
-//  restrictions on such code as contained in the End User License Agreement
-//  accompanying this product.
+//  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
+//
+//      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: 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@1278038 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.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 spark.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11987
Author:   smgilson@adobe.com
Date:     2009-11-19T16:38:37.133422Z

Log Message:
-----------
ASDoc edits from doc reviews

QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: - checkintests
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/IItemRendererOwner.as</path>

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

--- frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
+++ frameworks/projects/spark/src/spark/components/IItemRendererOwner.as
@@ -51,16 +51,17 @@
     function itemToLabel(item:Object):String;

     /**
-     *  Updates the renderer for re-use. This first prepares the item
-     *  renderer for re-use by cleaning out any stale properties
+     *  Updates the renderer for reuse.
+     *  This method first prepares the item
+     *  renderer for reuse by cleaning out any stale properties
      *  as well as updating it with new properties.
      *
-     *
The last thing this method should do is set the data property
-     *  on the renderer.

+     *
The last thing this method should do is set the data property
+     *  of the item renderer.

      *
      *  @param renderer The item renderer.
-     *  @param itemIndex The index of the data in the data provider
-     *  @param data The data object this item renderer is representing
+     *  @param itemIndex The index of the data in the data provider.
+     *  @param data The data object this item renderer is representing.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10