Transferred from the Adobe Open Source Subversion Repository

Revision: 19136
Author:   dloverin@adobe.com
Date:     2010-12-08T12:58:56.600870Z

Log Message:
-----------
Fix RSL loading bug with application-domain set to parent.

A module loading an RSL with an application domain target of “parent” was being loaded into the module’s application domain because the parent module factory was not resolved before the resolveApplicationDomainTarget() call. Code was added to resolve the parent module factory if it is really needed before the call.

QE notes: None.
Doc notes: None.
Bugs: SDK-28805
Reviewer: Alex
Tests run: cyclone server
Is noteworthy for integration: No.

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/LoaderUtil.as

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

--- frameworks/projects/framework/src/mx/utils/LoaderUtil.as
+++ frameworks/projects/framework/src/mx/utils/LoaderUtil.as
@@ -276,23 +276,28 @@
                     }
                 }

-                // Resolve the application domain target.
-                // If the curent module factory is the rsl owning module
-                // factory, then don't try to resolve the app domain
-                // target because the only choice left is "current"
-                // since this the last module factory we are checking
-                // and "current" is the default if no module factory
-                // is specified.
-                if (!loaded[rsl] && resolved[rsl] == null &&
-                    (currentModuleFactory == moduleFactory ||
-                    resolveApplicationDomainTarget(rsl,
-                                                   moduleFactory,
-                                                   currentModuleFactory,
-                                                   parentModuleFactory,
-                                                   topLevelModuleFactory)))
+                // If the rsl is already loaded or already resolved then
+                // skip resolving it.
+                if (!loaded[rsl] && resolved[rsl] == null)
                 {
-                    resolved[rsl] = 1;
-                    resolvedLength++;
+                    // Get the parent module factory if we are going to need to
+                    // resolve the application domain target.
+                    if (!parentModuleFactory &&
+                        RSLData(rsl[0]).applicationDomainTarget == ApplicationDomainTarget.PARENT)
+                    {
+                        parentModuleFactory = getParentModuleFactory(moduleFactory);
+                    }
+
+                    // Resolve the application domain target.
+                    if (resolveApplicationDomainTarget(rsl,
+                            moduleFactory,
+                            currentModuleFactory,
+                            parentModuleFactory,
+                            topLevelModuleFactory))
+                    {
+                        resolved[rsl] = 1;
+                        resolvedLength++;
+                    }
                 }
             }

@@ -309,9 +314,8 @@
                 currentModuleFactory = moduleFactory;
                 while (currentModuleFactory != topLevelModuleFactory)
                 {
-                    var request:Request = new Request(Request.GET_PARENT_FLEX_MODULE_FACTORY_REQUEST);
-                    DisplayObject(currentModuleFactory).dispatchEvent(request);
-                    currentModuleFactory = request.value as IFlexModuleFactory;
+
+                    currentModuleFactory = getParentModuleFactory(currentModuleFactory);

                     // If we couldn't get the parent module factory, then we
                     // will have to load into the highest application domain
@@ -337,6 +341,21 @@

     /**
      *  @private
+     *  Get the parent module factory.
+     *
+     *  @param moduleFactory The module factory to get the parent of.
+     *
+     *  @return the parent module factory if available, null otherwise.
+     */
+    private static function getParentModuleFactory(moduleFactory:IFlexModuleFactory):IFlexModuleFactory
+    {
+        var request:Request = new Request(Request.GET_PARENT_FLEX_MODULE_FACTORY_REQUEST);
+        DisplayObject(moduleFactory).dispatchEvent(request);
+        return request.value as IFlexModuleFactory;
+    }
+
+    /**
+     *  @private
      *  Resolve the application domain target.
      *
      *  @param rsl to resolve.


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

--- frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
+++ frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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: 4849
Author:   jimurphy@adobe.com
Date:     2009-02-05T15:00:22.254099Z

Log Message:
-----------
Merged 3.x revisions 4842,4847 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as" copyfrom-rev="4847" action="A">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/MessageAgent.as
+++ frameworks/projects/rpc/src/mx/messaging/MessageAgent.as
@@ -677,8 +677,8 @@
                 flushClientIdWaitQueue();
         }

-        dispatchEvent(MessageAckEvent.createEvent(ackMsg, msg));
-        monitorRpcMessage(ackMsg,msg);
+        dispatchEvent(MessageAckEvent.createEvent(ackMsg, msg));
+        monitorRpcMessage(ackMsg,msg);
     }

     /**
@@ -697,12 +697,12 @@
             // connecting and the client fails to connect to the server, no faults will be
             // dispatched).
             if (connected)
-                _disconnectBarrier = true;
-
+            _disconnectBarrier = true;
+
             if (_channelSetMode == AUTO_CONFIGURED_CHANNELSET)
                 internalSetChannelSet(null);
             else if (_channelSet != null)
-                _channelSet.disconnect(this);
+                _channelSet.disconnect(this);
         }
     }

@@ -736,9 +736,9 @@
                 flushClientIdWaitQueue();
         }

-        dispatchEvent(MessageFaultEvent.createEvent(errMsg));
-        monitorRpcMessage(errMsg,msg);
-
+        dispatchEvent(MessageFaultEvent.createEvent(errMsg));
+        monitorRpcMessage(errMsg,msg);
+
         // If we get an authentication fault on the server and our authenticated
         // flag is true then the authentication fault must have been caused by a
         // session expiration on the server.  Set our authentication state to false.
@@ -1014,27 +1014,27 @@

             if (clientId == null)
             {
-                // If we still don't have a clientId, remove the first queued message and send it.
-                // Leave the queue intact to buffer subsequent sends until we get a response/fault
-                // back for this one.
-                if (_clientIdWaitQueue.length > 0)
-                {
+            // If we still don't have a clientId, remove the first queued message and send it.
+            // Leave the queue intact to buffer subsequent sends until we get a response/fault
+            // back for this one.
+            if (_clientIdWaitQueue.length > 0)
+            {
                     var saveQueue:Array = _clientIdWaitQueue;
                     // Make sure we don't just put it back into the queue - we let the first
                     // one through if this is null.
                     _clientIdWaitQueue = null;
                     internalSend(saveQueue.shift() as IMessage);
                     _clientIdWaitQueue = saveQueue;
-                }
-                else
-                {
-                    // Regardless of whether the clientId is defined or not, if the wait queue
-                    // is empty set it to null to allow the next message to be processed by the
-                    // send code path rather than being routed to the queue.
-                    _clientIdWaitQueue = null;
-                }
-            }
-        }
+            }
+            else
+            {
+                // Regardless of whether the clientId is defined or not, if the wait queue
+                // is empty set it to null to allow the next message to be processed by the
+                // send code path rather than being routed to the queue.
+                _clientIdWaitQueue = null;
+            }
+        }
+    }
     }

     /**
@@ -1103,14 +1103,15 @@
             }

             channelSet.send(this, message);
-            monitorRpcMessage(message,message);
+            monitorRpcMessage(message,message);
         }
         else if (destination.length > 0)
         {
             initChannelSet(message);
-            if (channelSet != null){
+            if (channelSet != null)
+            {
                 channelSet.send(this, message);
-                monitorRpcMessage(message,message);
+                monitorRpcMessage(message,message);
             }
         }
         else
@@ -1120,39 +1121,7 @@
             throw new InvalidDestinationError(msg);
         }
     }
-
-    /**
-     * Monitor a rpc message that is being send
-    */
-
-    private function monitorRpcMessage(message:IMessage,actualMessage:IMessage):void
-    {
-        if (NetworkMonitor.isMonitoring())
-        {
-        	if (message is ErrorMessage)
-	        {
-	        		NetworkMonitor.monitorFault(actualMessage, MessageFaultEvent.createEvent(ErrorMessage(message)));
-	        }
-	        else if (message is AcknowledgeMessage)
-	        {
-	       	    	NetworkMonitor.monitorResult(message, MessageEvent.createEvent(MessageEvent.RESULT, actualMessage));
-	        }
-	        else{
-	        		NetworkMonitor.monitorInvocation(getNetmonId(), message);
-	        }
-
-        }
-    }
-
-	/**
-     * Return the id for the NetworkMonitor.
-     * @private
-     */
-    mx_internal function getNetmonId():String
-    {
-        return null;
-    }
-
+
     /**
      *  Used to automatically initialize the channelSet property for the
      *  MessageAgent before it connects for the first time.
@@ -1178,7 +1147,40 @@

         if (_credentials != null)
             channelSet.setCredentials(_credentials, this, _credentialsCharset);
-    }
+    }
+
+     /**
+    * Monitor a rpc message that is being send
+   */
+   private function monitorRpcMessage(message:IMessage,actualMessage:IMessage):void
+   {
+       if (NetworkMonitor.isMonitoring())
+       {
+	        if (message is ErrorMessage)
+	        {
+                NetworkMonitor.monitorFault(actualMessage, MessageFaultEvent.createEvent(ErrorMessage(message)));
+	        }
+	        else if (message is AcknowledgeMessage)
+	        {
+	       	    	NetworkMonitor.monitorResult(message, MessageEvent.createEvent(MessageEvent.RESULT, actualMessage));
+        	}
+
+            else
+            {
+	        		NetworkMonitor.monitorInvocation(getNetmonId(), message);
+	        }
+      }
+   }
+
+	/**
+     * Return the id for the NetworkMonitor.
+    * @private
+    */
+   mx_internal function getNetmonId():String
+   {
+       return null;
+   }
+
 }

 }


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

--- frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
@@ -23,6 +23,11 @@

 /**
  * The event that indicates an RPC operation has successfully returned a result.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ResultEvent extends AbstractEvent
 {
@@ -57,6 +62,11 @@
     *  </table>
     *
     *  @eventType result
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const RESULT:String = "result";

@@ -75,6 +85,11 @@
      * @param result Object that holds the actual result of the call.
      * @param token Token that represents the call to the method. Used in the asynchronous completion token pattern.
      * @param message Source Message of the result.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function ResultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true,
                                 result:Object = null, token:AsyncToken = null, message:IMessage = null)
@@ -97,6 +112,11 @@
     /**
      * In certain circumstances, headers may also be returned with a result to
      * provide further context.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get headers():Object
     {
@@ -113,6 +133,11 @@

     /**
      * Result that the RPC call returns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get result():Object
     {
@@ -123,6 +148,11 @@
      * If the source message was sent via HTTP, this property provides access
      * to the HTTP response status code (if available), otherwise the value is
      * 0.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get statusCode():int
     {
@@ -157,6 +187,11 @@
      * Returns a string representation of the ResultEvent.
      *
      * @return String representation of the ResultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function toString():String
     {
@@ -165,6 +200,11 @@

     /*
      * Have the token apply the result.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override mx_internal function callTokenResponders():void
     {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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: 8741
Author:   jimurphy@adobe.com
Date:     2009-07-22T21:00:56.965677Z

Log Message:
-----------
Merged 3.x revisions 8623,8685,8740 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/MessagePerformanceUtils.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
@@ -49,9 +49,13 @@
     //---------------------------------

     /**
-     * Creates a new Operation. This is usually done directly automatically by the RemoteObject
-     * when an unknown operation has been accessed. It is not recommended that a developer use this constructor
-     * directly.
+     *  Creates a new Operation. This is usually done directly automatically by the RemoteObject
+     *  when an unknown operation has been accessed. It is not recommended that a developer use this constructor
+     *  directly.
+     *
+     *  @param service The ReoteObject object defining the service.
+     *
+     *  @param name The name of the service.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/events/IndexChangedEvent.as
+++ frameworks/projects/framework/src/mx/events/IndexChangedEvent.as
@@ -24,6 +24,11 @@
  *  control changed.
  *
  *  @see mx.core.Container
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class IndexChangedEvent extends Event
 {
@@ -68,6 +73,11 @@
      *

      *
      *  @eventType change
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const CHANGE:String = "change";

@@ -103,6 +113,11 @@
      *

      *
      *  @eventType childIndexChange
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const CHILD_INDEX_CHANGE:String = "childIndexChange";

@@ -138,6 +153,11 @@
      *

      *
      *  @eventType headerShift
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const HEADER_SHIFT:String = "headerShift";

@@ -172,6 +192,11 @@
      *

      *
      *  @eventType selectionChanged
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const SELECTION_CHANGED:String = "selectionChanged";

@@ -206,6 +231,11 @@
      *

      *
       *  @eventType selectionChanging
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const SELECTION_CHANGING:String = "selectionChanging";

@@ -234,6 +264,11 @@
      *  @param newIndex The zero-based index after the change.
      *
      *  @param triggerEvent The event that triggered this event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function IndexChangedEvent(type:String, bubbles:Boolean = false,
                                       cancelable:Boolean = false,
@@ -265,6 +300,11 @@
      *  it is the index of the current child. For childIndexChange
      *  events, it is the new index of the child. For headerShift
      *  events, it is the new index of the header.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var newIndex:Number;

@@ -279,6 +319,11 @@
      *  of the child.
      *  For headerShift events, it is the previous index of
      *  the header.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var oldIndex:Number;

@@ -289,6 +334,11 @@
     /**
      *  The child object whose index changed, or the object associated with
      *  the new index. This property is not set for header changes.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var relatedObject:DisplayObject;

@@ -301,6 +351,11 @@
      *  Indicates whether this event was caused by a mouse or keyboard interaction.
      *  The value is null when a container dispatches a
      *  childIndexChanged event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var triggerEvent:Event;


Transferred from the Adobe Open Source Subversion Repository

Revision: 50
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-20T16:53:21.187241Z

Log Message:
-----------
Perforce Change 191620 by pfarland@PFARLAND-T60P on 2007/12/20 11:52:05

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as
+++ frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as
@@ -60,10 +60,15 @@
  */
 [Event(name="fault", type="mx.rpc.events.FaultEvent")]

+// Commenting out to avoid warnings while building rpc.swc dependencies.
+//[Deprecated(since="3.0.0")]
+
 [ExcludeClass]
 /**
  * @private
  *  The base class for message queue implementations.
+ *
+ * NOTE: This class was deprecated in Flex 3.0 and should no longer be used.
  */
 public class AbstractMessageStore extends ArrayCollection
 {
@@ -73,6 +78,7 @@
     //
     //--------------------------------------------------------------------------

+    [Deprecated(since="3.0.0")]
     /**
      *  Constructs an AbstractMessageStore.
      */
@@ -351,8 +357,9 @@
      */
     public function release():AsyncToken
     {
-        if (producer != null)
-            producer.messageStore = null;
+        // Commenting out as AbstractProducer no longer has a message store.
+        //if (producer != null)
+        //    producer.messageStore = null;

         setLoaded(false);


changes 3.3 menu groupings reg

changes 3.3 menu groupings reg

--- Arguments/src/Controller/ArgumentController.as
+++ Arguments/src/Controller/ArgumentController.as
@@ -1076,15 +1076,18 @@
 				{
 					addMenuData= <root><menuitem label={agoraParameters.ARGUMENT_FOR_CLAIM} type="TopLevel" contentBackgroundColor="#999999"/></root>;
 					addMenuData.appendChild(<menuitem label={agoraParameters.SUPPORTING_STATEMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem type="separator"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.OBJECTION} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.DEFEAT_STATEMENT_BY_COUNTER_EXAMPLE} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem type="separator"/>);
 					//addMenuData.appendChild(<menuitem label={agoraParameters.EQUIVALENT_REFORMULATION} type="TopLevel"/>);
-					addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.REFERENCE} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem type="separator"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.DEFINITION} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.COMMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.QUESTION} type="TopLevel" contentBackgroundColor="#999999"/>);
-					addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
 				}
 				else
 				{
@@ -1092,26 +1095,32 @@
 					addMenuData.appendChild(<menuitem label={agoraParameters.SUPPORTING_STATEMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 					//addMenuData.appendChild(<menuitem label={agoraParameters.EQUIVALENT_REFORMULATION} type="TopLevel"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem type="separator"/>);
+					addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.REFERENCE} type="TopLevel" contentBackgroundColor="#999999"/>);
+					addMenuData.appendChild(<menuitem type="separator"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.DEFINITION} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.COMMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 					addMenuData.appendChild(<menuitem label={agoraParameters.QUESTION} type="TopLevel" contentBackgroundColor="#999999"/>);
-					addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
+
 				}
 			}
 			else if (argumentPanel.panelType == StatementModel.OBJECTION || argumentPanel.panelType == StatementModel.COUNTER_EXAMPLE)
 			{
 			addMenuData= <root><menuitem label={agoraParameters.ARGUMENT_FOR_CLAIM} type="TopLevel" contentBackgroundColor="#999999"/></root>;
 			addMenuData.appendChild(<menuitem label={agoraParameters.SUPPORTING_STATEMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+			addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+			addMenuData.appendChild(<menuitem type="separator"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.OBJECTION} type="TopLevel" contentBackgroundColor="#999999"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.DEFEAT_STATEMENT_BY_COUNTER_EXAMPLE} type="TopLevel" contentBackgroundColor="#999999"/>);
+			addMenuData.appendChild(<menuitem type="separator"/>);
+			addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
 			//addMenuData.appendChild(<menuitem label={agoraParameters.EQUIVALENT_REFORMULATION} type="TopLevel"/>);
-			addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.REFERENCE} type="TopLevel" contentBackgroundColor="#999999"/>);
+			addMenuData.appendChild(<menuitem type="separator"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.DEFINITION} type="TopLevel" contentBackgroundColor="#999999"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.COMMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 			addMenuData.appendChild(<menuitem label={agoraParameters.QUESTION} type="TopLevel" contentBackgroundColor="#999999"/>);
-			addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);

 			}
 			else
@@ -1119,11 +1128,14 @@
 				addMenuData= <root><menuitem label={agoraParameters.SUPPORTING_STATEMENT} type="TopLevel" contentBackgroundColor="#999999"/></root>;
 				//addMenuData.appendChild(<menuitem label={agoraParameters.EQUIVALENT_REFORMULATION} type="TopLevel"/>);
 				addMenuData.appendChild(<menuitem label={agoraParameters.FRIENDLY_AMENDMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
+				addMenuData.appendChild(<menuitem type="separator"/>);
+				addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
 				addMenuData.appendChild(<menuitem label={agoraParameters.REFERENCE} type="TopLevel" contentBackgroundColor="#999999"/>);
+				addMenuData.appendChild(<menuitem type="separator"/>);
 				addMenuData.appendChild(<menuitem label={agoraParameters.DEFINITION} type="TopLevel" contentBackgroundColor="#999999"/>);
 				addMenuData.appendChild(<menuitem label={agoraParameters.COMMENT} type="TopLevel" contentBackgroundColor="#999999"/>);
 				addMenuData.appendChild(<menuitem label={agoraParameters.QUESTION} type="TopLevel" contentBackgroundColor="#999999"/>);
-				addMenuData.appendChild(<menuitem label={agoraParameters.LINK_TO_RESOURCES} type="TopLevel" contentBackgroundColor="#999999"/>);
+
 			}
 			var addMenu:Menu = Menu.createMenu(argumentPanel.parent, addMenuData, false);
 			var addMenu1:Menu = Menu.createMenu(argumentPanel.parent, addMenuData, false);


rewrite for loop

rewrite for loop

--- WeaveCore/src/weave/core/LinkableFunction.as
+++ WeaveCore/src/weave/core/LinkableFunction.as
@@ -295,18 +295,17 @@
 			var line:String = lines[0];
 			while (line.charAt(indent) == '\t')
 				indent++;
-			lines.forEach(
-				function(line:String, index:int, lines:Array):void
-				{
-					var i:int = 0;
-					var spaces:String = '';
-					while (line.charAt(i) == '\t')
-						if (i++ >= indent)
-							spaces += '    ';
-
-					lines[index] = spaces + line.substr(i);
-				}
-			);
+			for (var i:int = 0; i < lines.length; i++)
+			{
+				var line:String = lines[i];
+				var t:int = 0;
+				var spaces:String = '';
+				while (line.charAt(t) == '\t')
+					if (t++ >= indent)
+						spaces += '    ';
+
+				lines[i] = spaces + line.substr(t);
+			}
 			return lines.join('\n') + '\n';
 		}
 	}


Removing that pesky author blurb.

Removing that pesky author blurb.

--- driver/src/main/flex/org/postgresql/codec/encode/AbstractIntIn.as
+++ driver/src/main/flex/org/postgresql/codec/encode/AbstractIntIn.as
@@ -4,9 +4,6 @@
     import org.postgresql.codec.IPGTypeEncoder;
     import org.postgresql.io.ICDataOutput;

-    /**
-     * @author maciek
-     */
     public class AbstractIntIn implements IPGTypeEncoder {
         public function encode(bytes:ICDataOutput, value:Object, format:int, serverParams:Object):void {
             switch (format) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8487
Author:   smgilson@adobe.com
Date:     2009-07-09T18:57:21.985536Z

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as
@@ -54,7 +54,7 @@
  *
  *  @mxml
  *
- *
The <mx:AnimateTransform> tag
+ *
The <s:AnimateTransform> tag
  *  inherits all of the tag attributes of its superclass,
  *  and adds the following tag attributes:

  *


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

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


FLEX-34880 Omitted to change a unit test.

--- frameworks/projects/framework/tests/ListCollectionView_FLEX_34837_Tests.as
+++ frameworks/projects/framework/tests/ListCollectionView_FLEX_34837_Tests.as
@@ -25,7 +25,7 @@
     import mx.collections.Sort;
     import mx.collections.SortField;
     import mx.utils.ObjectUtil;
-
+    import mx.core.mx_internal;
     import org.flexunit.asserts.assertEquals;

     public class ListCollectionView_FLEX_34837_Tests {
@@ -87,7 +87,7 @@

             const sortByStreetAscending:Sort = new Sort();
             var sortField:SortField = new ComplexSortField("address.street", false, false, false);
-            sortField.compareFunction = compareByStreet;
+            sortField.mx_internal::compareFunction_ = compareByStreet;
             sortByStreetAscending.fields = [sortField];
             _sut.sort = sortByStreetAscending;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</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/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</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/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.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/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
@@ -594,23 +594,12 @@
         // Calculate global position of label.
         var sm:ISystemManager = systemManager.topLevelSystemManager;
         var sbRoot:DisplayObject = sm.getSandboxRoot();
-        var screen:Rectangle;
+        var screen:Rectangle = sm.getVisibleApplicationRect();
         var pt:Point = new Point(0, 0);
         pt = label.localToGlobal(pt);
         pt = sbRoot.globalToLocal(pt);

         toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
-
-        if (sm != sbRoot)
-        {
-            var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
-                                    false, false,
-                                    "getVisibleApplicationRect");
-            sbRoot.dispatchEvent(request);
-            screen = Rectangle(request.value);
-        }
-        else
-            screen = sm.getVisibleApplicationRect();

         var screenRight:Number = screen.x + screen.width;
         pt.x = toolTip.x;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3478
Author:   gruehle@adobe.com
Date:     2008-10-03T20:34:49.967693Z

Log Message:
-----------
Remove prototype Gumbo Panel component. This will be reinstated in a future build.

Remove the "selected" property from SkinnableComponent. "selected" is only on ToggleButton (including CheckBox/RadioButton), and ItemRenderer.

Bugs: SDK-16349 SkinnableComponent shouldn't define "selected"
      SDK-16799 Gumbo Panel needs to be removed from build
QA: Tests using Panel need to be updated
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/MXMLComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ComplexPanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as
@@ -12,7 +12,6 @@
 {
 import flash.events.Event;

-import flex.component.Panel;
 import flex.effects.PropertyValuesHolder;
 import flex.graphics.IGraphicElement;


Transferred from the Adobe Open Source Subversion Repository

Revision: 14571
Author:   deeptika@adobe.com
Date:     2010-03-04T07:17:40.283901Z

Log Message:
-----------
Merging revision 14570 from 4.x branch
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/automation/src/mx/automation/delegates/core/UIComponentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/delegates/controls/FlexNativeMenuAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/controls/SWFLoaderAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkListBaseTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFTETextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UITextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/RendererPropertyCodec.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutomationHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPropertyCodec.as</path>

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

--- frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutomationHelper.as
+++ frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutomationHelper.as
@@ -219,7 +219,7 @@
 			{
 				//We are here in cases where selectionBeginIndex, selectionEndIndex or caretIndex is not implemented.
 				//Ex: FTETextField. It does not support selection.
-				trace(e.message);
+				Automation.automationDebugTracer.traceMessage("TextFieldAutomationHelper","captureSelection()",e.message);
 				currentSelection = [0, 0];
 			}


converted ArrayMethods to reference the individual array functions

--- src/asx/ArrayMethods.as
+++ src/asx/ArrayMethods.as
@@ -1,274 +1,85 @@
 package asx {
+
+  import asx.array.*;
+
+  /**
+   * Static util class of asx.array functions.
+   */
   public class ArrayMethods {

+    /**
+     * @see asx.array.compact
+     */
+    public static const compact:Function = asx.array.compact;
+
+    /**
+     * @see asx.array.contains
+     */
+    public static const contains:Function = asx.array.contains;
+
+    /**
+     * @see asx.array.detect
+     */
+    public static const detect:Function = asx.array.detect;
+
+    /**
+     * @see asx.array.detect
+     */
+    public static const find:Function = asx.array.detect;
+
+    /**
+     * @see asx.array.empty
+     */
+    public static const empty:Function = asx.array.empty;
+
+    /**
+     * @see asx.array.flatten
+     */
+    public static const flatten:Function = asx.array.flatten;
+
+    /**
+     * @see asx.array.head
+     */
+    public static const head:Function = asx.array.head;
+
+    /**
+     * @see asx.array.inject
+     */
+    public static const inject:Function = asx.array.invoke;
+
+    /**
+     * @see asx.array.partition
+     */
+    public static const partition:Function = asx.array.partition;
+
+    /**
+     * @see asx.array.partitionBy
+     */
+    public static const partitionBy:Function = asx.array.partitionBy;
+
+    /**
+     * @see asx.array.pluck
+     */
     public static const pluck:Function = asx.array.pluck;

     /**
-     * @private
+     * @see asx.array.tail
      */
-    static protected function pluckProperty(field:String):Function
-    {
-      return function(value:Object, i:int, a:Array):Object { return value[field]; };
-    }
+    public static const tail:Function = asx.array.tail;

     /**
-     * Injects the memo value into an iterator function that is applied to every item in the array.
-     *
-     * @param memo Initial value to pass to the iterator
-     * @param array Array of values to apply the iterator to
-     * @param iterator Function to be applied to each value. Function signatute must match: function(memo:Object, value:Object):Object;
-     * @return result of applying the memo and value of each array item to the iterator
+     * @see asx.array.unfold
      */
-    static public function inject(memo:Object, array:Array, iterator:Function):Object
-    {
-      array.forEach(function(value:Object, i:int, a:Array):void {
-        // send only enough parameters as the iterator function can handle
-        // bah, except when its a ...rest function *sigh*
-        memo = iterator.apply(null, [memo, value, i, a].slice(0, iterator.length));
-      });
-      return memo;
-    }
+    public static const unfold:Function = asx.array.unfold;

     /**
-     * Unfolds a value using a predicate, transformer, and incrementor functions.
-     *
-     * @param initial Seed value for the unfold
-     * @param predicate Determines whether to continue processing the unfold. Must match: function(state:Object):Boolean;
-     * @param transformer Transforms the state to the next result. Must match: function(state:Object):Object;
-     * @param incrementor Increments the state to a next state. Must match: function(state:Object):Object;
-     * @return result Array of the unfold transformations
+     * @see asx.array.unique
      */
-    static public function unfold(initial:Object, predicate:Function, transformer:Function, incrementor:Function):Array {
-
-      var result:Array = [];
-      var state:Object = initial;
-
-      do {
-        result.push(transformer(state));
-        state = incrementor(state);
-      } while (predicate(state))
-
-      return result;
-    }
-
-    /**
-     * Iterator function used by #flatten.
-     *
-     * @private
-     */
-    static private function flattenInternal(memo:Array, value:Object):Array
-    {
-      return memo.concat(value is Array ? flatten(value as Array) : [value]);
-    }
-
-    /**
-     * Flattens nested Arrays to 1-dimensional Array.
-     *
-     * @param Arrays of Arrays
-     * @return Array
-     */
-    static public function flatten(array:Array):Array
-    {
-      return inject([], array, flattenInternal) as Array;
-    }
+    public static const unqiue:Function = asx.array.unique;

     /**
-     * Iterator function used by #zip. Determines if the value is an Array.
-     *
-     * @private
+     * @see asx.array.zip
      */
-    static private function isArray(value:Object, i:int=0, a:Array=null):Boolean
-    {
-      return value is Array;
-    }
-
-    /**
-     * Zips multiple arrays together.
-     *
-     * The first element of each source array goes into result[0], second element of each source array into result[1], ...
-     *
-     * @param ...arrays
-     * @return zipped Array of Arrays
-     */
-    static public function zip(...arrays):Array
-    {
-      var arrayCount:int = arrays.length
-
-      if (arrayCount == 0)
-      {
-        return [];
-      }
-
-      /*if (!arrays.every(isArray))
-      {
-        throw new ArgumentError('ArrayMethods.zip expects all arguments to be Array');
-      }*/
-
-      // find the maximum length of the arrays
-      var maxLength:Number = Math.max.apply(null, pluck(arrays, 'length'));
-
-      var zipped:Array = [];
-      for (var i:int = 0, n:int = maxLength; i < n; i++)
-      {
-        var zipper:Array = zipped[i] = [];
-        for (var j:int = 0, m:int = arrayCount; j < m; j++)
-        {
-          zipper.push(arrays[j][i]);
-        }
-      }
-      return zipped;
-    }
-
-    /**
-     * Removes null items from an Array.
-     *
-     * @param array Array possibly containing null values
-     * @return Array without items that are == null
-     */
-    static public function compact(array:Array):Array
-    {
-      return array.filter(notNull);
-    }
-
-    /**
-     * Iterator function used by #compact to determine if item is null
-     *
-     * @private
-     */
-    static private function notNull(v:Object, i:int=0, a:Array=null):Boolean
-    {
-      return v !== null;
-    }
-
-    /**
-     * Determines if an Array contains a value
-     *
-     * @param array Array to search for the given value
-     * @return true if the Array contains the value, false otherwise.
-     */
-    static public function contains(array:Array, value:Object):Boolean
-    {
-      return array.indexOf(value) !== -1;
-    }
-
-    /**
-     * Iterator function to determine if a value is unique in an Array.
-     *
-     * @private
-     */
-    static private function uniqueInternal(memo:Array, value:Object):Array
-    {
-      if (!contains(memo, value))
-      {
-        memo.push(value);
-      }
-      return memo;
-    }
-
-    /**
-     * Preserves unique values in an Array, removes any duplicate values.
-     *
-     * @param array Array from which to remove duplicates
-     * @return Array of unique items
-     */
-    static public function unique(array:Array):Array
-    {
-      return inject([], array, uniqueInternal) as Array;
-    }
-
-    /**
-     * Partition an Array into many divisions.
-     *
-     * @param array Array of items to partition
-     * @param iterator Function matching function(value:Object):int; indicating which bucket the item should be placed into.
-     * @return Array of Arrays, containing value as determined by iterator function.
-     */
-    static public function partitionBy(array:Array, iterator:Function):Array
-    {
-      var partitions:Array = [];
-      array.forEach(function(value:Object, i:int, a:Array):void {
-        var index:int = iterator(value);
-        var partition:Array = partitions[index];
-        if (!partition) {
-          partition = partitions[index] = [];
-        }
-        partition.push(value);
-      });
-      return partitions;
-    }
-
-    /**
-     * Partition an Array into two divisions.
-     *
-     * @param array Array of items to partition
-     * @param iterator Function matching function(value:Object):Boolean; indicating which partition the item should be placed into.
-     * @return Array of [[...trues], [...falses]]
-     */
-    static public function partition(array:Array, iterator:Function):Array
-    {
-      var trues:Array = []
-        , falses:Array = [];
-      array.forEach(function(value:Object, i:int, a:Array):void {
-        (iterator(value) ? trues : falses).push(value);
-      });
-      return [trues, falses];
-    }
-
-    /**
-     * Search for an item in an Array. Shortcuts on the first matching item.
-     *
-     * Useful as none of the AS3 Array methods provide this functionality, nor do they shortcut.
-     *
-     * @param array Array of items to search in
-     * @param iterator function matching: function(item:Object, i:int, a:Array):Boolean; indicating if the item matches.
-     * @return Object
-     */
-    static public function detect(array:Array, iterator:Function):Object
-    {
-      var result:Object = null;
-      var item:Object = null;
-
-      // for each (var o in array) { ... }
-
-      // FIXME do we really want to iterate over every element in sparse arrays?
-      for (var i:int = 0, n:int = array.length; i < n; i++)
-      {
-        item = array[i];
-        if (iterator(item, i, array)) {
-          result = item;
-          break;
-        }
-      }
-
-      return result;
-    }
-
-    /**
-     * Invokes a method on each item the array.
-     */
-    static public function invoke(array:Array, method:String, ...args):Array
-    {
-      return array.map(function(item:Object, i:int, a:Array):Object {
-        return item[method].apply(item, args);
-      });
-    }
-
-    /**
-     *
-     */
-    static public function head(array:Array):Object {
-      return array[0];
-    }
-
-    /**
-     *
-     */
-    static public function tail(array:Array):Array {
-      return array.slice(1);
-    }
-
-    static public function empty(array:Array):Boolean {
-      return array.length == 0;
-    }
+    public static const zip:Function = asx.array.zip;
   }
 }


Added "call" function

Added "call" function

--- common/actionscript/org/concord/sparks/JavaScript.as
+++ common/actionscript/org/concord/sparks/JavaScript.as
@@ -15,14 +15,20 @@
             this.setupCallbacks();
         }

-        public function setupCallbacks():void {
-            ExternalInterface.addCallback("sendMessageToFlash",
-                    getMessageFromJavaScript);
+        public function call(func:String, ... values) {
+            var args = values;
+            args.unshift(func);
+            ExternalInterface.call.apply(null, args);
         }

         public function sendEvent(name:String, ... values) {
             var time = String(new Date().valueOf());
             ExternalInterface.call('receiveEvent', name, values.join('|'), time);
+        }
+
+        private function setupCallbacks():void {
+            ExternalInterface.addCallback("sendMessageToFlash",
+                    getMessageFromJavaScript);
         }

         private function parseParameter(parm) {


Use try catch to handle case where we do not control the stage, and querying stage's properties will cause a run time error.

--- snowplow-as3-tracker/src/com/snowplowanalytics/snowplow/tracker/Tracker.as
+++ snowplow-as3-tracker/src/com/snowplowanalytics/snowplow/tracker/Tracker.as
@@ -307,7 +307,15 @@
 				flashData.add(Parameter.FLASH_HAS_LOCAL_STORAGE, hasLocalStorage);
 				flashData.add(Parameter.FLASH_HAS_SCRIPT_ACCESS, hasScriptAccess);
 				if (stage != null) {
-					flashData.add(Parameter.FLASH_STAGE_SIZE, { "width": stage.stageWidth, "height": stage.stageHeight});
+					try
+					{
+						flashData.add(Parameter.FLASH_STAGE_SIZE, { "width": stage.stageWidth, "height": stage.stageHeight});
+					}
+					catch (e:Error)
+					{
+						flashData.add(Parameter.FLASH_STAGE_SIZE, { "width": -1, "height": -1});
+						trace("Snowplow Tracker: We do not control the stage, so tracking stage size -1, -1");
+					}
 				}

 				var flashPayload:SchemaPayload = new SchemaPayload();


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

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

 package mx.automation.delegates.controls
 {


Fixed Input.pressed(Key.ANY) and Input.released(Key.ANY) not working. Again. :/

--- net/flashpunk/utils/Input.as
+++ net/flashpunk/utils/Input.as
@@ -140,11 +140,11 @@
 					i:int = v.length;
 				while (i --)
 				{
-					if ((v[i] < 0 && _press.length) || _press.indexOf(v[i]) >= 0) return true;
+					if ((v[i] < 0) ? _pressNum : _press.indexOf(v[i]) >= 0) return true;
 				}
 				return false;
 			}
-			return (input < 0 && _press.length) || _press.indexOf(input) >= 0;
+			return (input < 0) ? _pressNum : _press.indexOf(input) >= 0;
 		}

 		/**
@@ -160,11 +160,11 @@
 					i:int = v.length;
 				while (i --)
 				{
-					if ((v[i] < 0 && _release.length) || _release.indexOf(v[i]) >= 0) return true;
+					if ((v[i] < 0) ? _releaseNum : _release.indexOf(v[i]) >= 0) return true;
 				}
 				return false;
 			}
-			return (input < 0 && _release.length) || _release.indexOf(input) >= 0;
+			return (input < 0) ? _releaseNum : _release.indexOf(input) >= 0;
 		}

 		/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4111
Author:   chaase@adobe.com
Date:     2008-11-14T16:39:46.711628Z

Log Message:
-----------
Makes auto-reversal of transitions work more completely and correctly, fixing some API issues and other related animation/effect issues along the way. Seeking behavior in effects is improved (although still far from perfect, especially for non-playing effects), and dynamic behavior of effects (picking up values dynamically from the environment) is improved.

QE Notes: better seek() behavior, can just call it on non-playing effects and it will automatically play/pause the effect if necessary
Doc Notes: None
Bugs: sdk-17294, sdk-16595, sdk-18104, sdk-18105, sdk-18106, sdk-18107
Reviewer: Jason
tests: checkintests, Mustella: tests/Effects, tests/gumbo/effects tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.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/framework/src/mx/effects/Parallel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Sequence.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>

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

--- frameworks/projects/framework/src/mx/effects/IEffect.as
+++ frameworks/projects/framework/src/mx/effects/IEffect.as
@@ -31,87 +31,6 @@
     //
     //--------------------------------------------------------------------------

-    //----------------------------------
-    //  autoReverse
-    //----------------------------------
-
-    // TODO (chaase): Should this live in Transition instead?
-    /**
-     *  Whether the effect should automatically reverse itself
-     *  when played in a transition and the opposite state
-     *  transition begins playing.
-     *
-     *
Flex does not play multiple transitions simultaneously.
-     *  This means that when a new state transition occurs, if there
-     *  is already one playing it is stopped by calling end()
-     *  on it, which snaps it to its end values. The new transition
-     *  then starts playing from that state.

-     *
-     *
The autoReverse flag allows the developer to
-     *  control whether the default snap-to-end behavior occurs, or whether,
-     *  instead, the previous effect is stopped in place and the new
-     *  effect is played from that intermediate state instead. Internally,
-     *  the transition code calculates how much of the previous effect
-     *  has been played and then plays the next effect for the inverse of that
-     *  time.

-     *
-     *
This flag is only checked when the new transition is going in the
-     *  exact opposite direction of the currently playing one. That is, if
-     *  a transition is playing between states A and B and then a transition
-     *  to return to A is started, this flag will be checked. But if the
-     *  application is going from state A to B and a transition to state C is
-     *  started, then the default behavior of snapping to the end of the A->B
-     *  transition, then playing the B->C transition will occur.

-     *
-     *  @default false
-     */
-    function get autoReverse():Boolean;
-
-    /**
-     *  @private
-     */
-    function set autoReverse(value:Boolean):void;
-
-    //----------------------------------
-    //  fromState
-    //----------------------------------
-
-    // TODO (chaase): Might be cleaner to pass handle to transition itself
-    // to the Effect, then can query from/toState from the transition
-    /**
-     *  The state that the effect is animating from, when played as a
-     *  state transition effect. This information will be set by the component
-     *  setting the state that causes the transition. It is not intended for
-     *  use outside of the Flex framework classes internally.
-     *
-     *  @default null
-     */
-    function get fromState():String;
-
-    /**
-     *  @private
-     */
-    function set fromState(value:String):void;
-
-    //----------------------------------
-    //  toState
-    //----------------------------------
-
-    /**
-     *  The state that the effect is animating to, when played as a
-     *  state transition effect. This information will be set by the component
-     *  setting the state that causes the transition. It is not intended for
-     *  use outside of the Flex framework classes internally.
-     *
-     *  @default null
-     */
-    function get toState():String;
-
-    /**
-     *  @private
-     */
-    function set toState(value:String):void;
-
     //----------------------------------
     //  className
     //----------------------------------
@@ -318,18 +237,6 @@
     function set perElementOffset(value:Number):void;

     //----------------------------------
-    //  playheadTime
-    //----------------------------------
-
-    /**
-     *  Current position in time of the effect.
-     *  This property has a value between 0 and the actual duration
-     *  (which includes the value of the startDelay,
-     *  repeatCount, and repeatDelay properties).
-     */
-    function get playheadTime():Number;
-
-    //----------------------------------
     //  relevantProperties
     //----------------------------------

@@ -565,18 +472,6 @@
      *  @see mx.effects.EffectInstance#end()
      */
     function end(effectInstance:IEffectInstance = null):void;
-
-    /**
-     * Sets the current time of an effect. Seek may be used to
-     * fast-forward or reverse to a particular point in time in an effect.
-     *
-     * @param seekTime Number of milliseconds that the effect should
-     * play at. This number should be between 0 and the duration of the
-     * effect.
-     *
-     * @see #duration
-     */
-    function seek(seekTime:Number):void;

     /**
      *  Captures the current values of the relevant properties


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

--- frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
@@ -26,6 +26,11 @@

 /**
  * This event is dispatched when an RPC call has a fault.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class FaultEvent extends AbstractEvent
 {
@@ -60,6 +65,11 @@
     *     to the method. Used in the asynchronous completion token pattern.

     *

     *  @eventType fault
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
     */
     public static const FAULT:String = "fault";

@@ -79,6 +89,11 @@
      * @param fault Object that holds details of the fault, including a faultCode and faultString.
      * @param token Token representing the call to the method. Used in the asynchronous completion token pattern.
      * @param message Source Message of the fault.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function FaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true,
                                 fault:Fault = null, token:AsyncToken = null, message:IMessage = null)
@@ -100,6 +115,11 @@

     /**
      * The Fault object that contains the details of what caused this event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get fault():Fault
     {
@@ -109,6 +129,11 @@
     /**
      * In certain circumstances, headers may also be returned with a fault to
      * provide further context to the failure.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get headers():Object
     {
@@ -127,6 +152,11 @@
      * If the source message was sent via HTTP, this property provides access
      * to the HTTP response status code (if available), otherwise the value is
      * 0.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get statusCode():int
     {
@@ -154,6 +184,11 @@
       * Returns a string representation of the FaultEvent.
       *
       * @return String representation of the FaultEvent.
+      *
+      *  @langversion 3.0
+      *  @playerversion Flash 9
+      *  @playerversion AIR 1.1
+      *  @productversion Flex 3
       */
     override public function toString():String
     {
@@ -162,6 +197,11 @@

     /*
      * Have the token apply the fault.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override mx_internal function callTokenResponders():void
     {
@@ -177,6 +217,11 @@
      *  fault information from.
      *  @param token AsyncToken [optional] associated with this fault.
      *  @return Returns a FaultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function createEventFromMessageFault(value:MessageFaultEvent, token:AsyncToken = null):FaultEvent
     {
@@ -193,6 +238,11 @@
      *  @param token AsyncToken [optional] associated with this fault.
      *  @param msg Message [optional] associated with this fault.
      *  @return Returns a FaultEvent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function createEvent(fault:Fault, token:AsyncToken = null, msg:IMessage = null):FaultEvent
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2497
Author:   gruehle@adobe.com
Date:     2008-07-15T21:33:03.137272Z

Log Message:
-----------
Fixed problem with removing or swapping Group/List items that had item renderers. When an item has a renderer, make sure renderer.data is cleared before removing it from the display list.

Bugs: SDK-16109, SDK-16084
QA: This should unblock List testing
Doc: No
Reviewer: Jason

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -710,6 +710,8 @@
     protected function itemRemoved(index:int):void
     {
         var item:* = getItemAt(index);
+        var skin:* = getItemSkin(item);
+
         /* if (item is IGraphicElement)
         {
             removeElement(IGraphicElement(item));
@@ -718,6 +720,13 @@
                       ItemExistenceChangedEvent.ITEM_REMOVE, false, false, item));
         if (item && (item is IGraphicElement))
             item.elementHost = null;
+
+        // If the item and skin are different objects, set the skin data to
+        // null here to clear it out. Otherwise, the skin keeps a reference to the item,
+        // which can cause problems later.
+        if (item && skin && item != skin)
+            skin.data = null;
+
         super.removeChildAt(index);

         invalidateSize();


Transferred from the Adobe Open Source Subversion Repository

Revision: 10216
Author:   aharui@adobe.com
Date:     2009-09-13T15:20:06.218879Z

Log Message:
-----------
Change Label verticalAlign to use "top" if there is too much text.  RichText already works this way.

QE Notes: None
Doc Notes: None
Bugs: SDK-20589
Reviewer: Gordon
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/GraphicsTags

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -1029,6 +1029,8 @@
         var minY:Number = innerHeight;
         var maxX:Number = 0;

+        var clipping:Boolean = (n) ? (textLines[n - 1].y + TextLine(textLines[n - 1]).descent > innerHeight) : false;
+
 		// Reposition each line if necessary.
 		// based on the horizontal and vertical alignment.
 		for (var i:int = 0; i < n; i++)
@@ -1059,7 +1061,7 @@
 			else if (rightAligned)
 				textLine.x = rightOffset - textLine.textWidth;

-			if (verticalAlign == "top")
+			if (verticalAlign == "top" || !createdAllLines || clipping)
 			{
 				textLine.y += topOffset;
 			}


fixed null pointer error

fixed null pointer error

Change-Id: I9626cb793139353154ecd8f30b9d5c9dd3121095

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -468,7 +468,7 @@
 			// if the code references "this", we need to use Function.apply() to make the symbol work as expected
 			var appliedCode:String = '(function(){\n' + code.join('\n') + '\n}).apply(' + JS_this + ')';

-			var result:*;
+			var result:* = undefined;
 			var prevMarshallExceptions:Boolean = ExternalInterface.marshallExceptions;
 			ExternalInterface.marshallExceptions = !!marshallExceptions;
 			try
@@ -486,10 +486,11 @@
 					var evalFunc:String = 'window.eval';
 					if (!marshallExceptions)
 						evalFunc = 'function(code){ try { return window.eval(code); } catch (e) { e.message += "\\n" + code; console.error(e); } }';
-					var resultJson:String = ExternalInterface.call(evalFunc, appliedCode);
+					var resultJson:String = ExternalInterface.call(evalFunc, appliedCode) as String;

 					// parse stringified results
-					result = json.parse(resultJson, _jsonReviver);
+					if (resultJson)
+						result = json.parse(resultJson, _jsonReviver);
 				}
 				else
 				{


Uint64.as 应该是 UInt64.as

Uint64.as 应该是 UInt64.as

--- as3/com/netease/protobuf/Uint64.as
+++ as3/com/netease/protobuf/Uint64.as
@@ -1,19 +0,0 @@
-// vim: tabstop=4 shiftwidth=4
-
-// Copyright (c) 2010 , NetEase.com,Inc. All rights reserved.
-//
-// Author: Yang Bo (pop.atry@gmail.com)
-//
-// Use, modification and distribution are subject to the "New BSD License"
-// as listed at <url: http://www.opensource.org/licenses/bsd-license.php >.
-
-package com.netease.protobuf {
-	public final class UInt64 {
-		public var low:uint;
-		public var high:uint;
-		public function UInt64(low:uint = 0, high:uint = 0) {
-			this.low = low
-			this.high = high
-		}
-	}
-}


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

--- frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as
+++ frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.components.calendarClasses
 {
 /**


fixed bug related to overlays - duplicate function definition

--- flexEditor/src/org/arisgames/editor/util/AppUtils.as
+++ flexEditor/src/org/arisgames/editor/util/AppUtils.as
@@ -268,28 +268,7 @@
 		return go;
     }

-	public static function findParentObjectPaletteItem(child:ObjectPaletteItemBO):ObjectPaletteItemBO
-	{
-		if(child.parentContentFolderId == 0) return null;
-		var go:ArrayCollection = GameModel.getInstance().game.gameObjects;
-		return findOPIinListOfChildren(child.parentContentFolderId, go);
-	}
-
-	public static function findOPIinListOfChildren(id:int, list:ArrayCollection):ObjectPaletteItemBO
-	{
-		for(var i:int = 0; i < list.length; i++)
-		{
-			if((list[i] as ObjectPaletteItemBO).id == id)
-			{
-				return list[i] as ObjectPaletteItemBO;
-			}
-			else if((list[i] as ObjectPaletteItemBO).isFolder())
-			{
-				return findOPIinListOfChildren(id, (list[i] as ObjectPaletteItemBO).children);
-			}
-		}
-		return null;
-	}
+

 	private static function repairPalleteObjectAssociation(o:ObjectPaletteItemBO, lc:Number, pId:Number):void {
 		if (o.isFolder())