Widened, added getPlaceController().

Widened, added getPlaceController().

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4616 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/crowd/client/LocationDirector.as
+++ src/as/com/threerings/crowd/client/LocationDirector.as
@@ -43,11 +43,10 @@
 import com.threerings.crowd.util.CrowdContext;

 /**
- * The location director provides a means by which entities on the client
- * can request to move from place to place and can be notified if other
- * entities have caused the client to move to a new place. It also
- * provides a mechanism for ratifying a request to move to a new place
- * before actually issuing the request.
+ * The location director provides a means by which entities on the client can request to move from
+ * place to place and can be notified if other entities have caused the client to move to a new
+ * place. It also provides a mechanism for ratifying a request to move to a new place before
+ * actually issuing the request.
  */
 public class LocationDirector extends BasicDirector
     implements Subscriber, LocationReceiver
@@ -55,8 +54,8 @@
     private static const log :Log = Log.getLog(LocationDirector);

     /**
-     * Constructs a location director which will configure itself for
-     * operation using the supplied context.
+     * Constructs a location director which will configure itself for operation using the supplied
+     * context.
      */
     public function LocationDirector (ctx :CrowdContext)
     {
@@ -71,9 +70,8 @@
     }

     /**
-     * Adds a location observer to the list. This observer will
-     * subsequently be notified of potential, effected and failed location
-     * changes.
+     * Adds a location observer to the list. This observer will subsequently be notified of
+     * potential, effected and failed location changes.
      */
     public function addLocationObserver (observer :LocationObserver) :void
     {
@@ -89,8 +87,8 @@
     }

     /**
-     * Returns the place object for the location we currently occupy or
-     * null if we're not currently occupying any location.
+     * Returns the place object for the location we currently occupy or null if we're not currently
+     * occupying any location.
      */
     public function getPlaceObject () :PlaceObject
     {
@@ -98,6 +96,15 @@
     }

     /**
+     * Returns the controller for the location we currently occupy or null if we're not currently
+     * occupying any location.
+     */
+    public function getPlaceController () :PlaceController
+    {
+        return _controller;
+    }
+
+    /**
      * Returns true if there is a pending move request.
      */
     public function movePending () :Boolean
@@ -106,13 +113,11 @@
     }

     /**
-     * Requests that this client be moved to the specified place. A
-     * request will be made and when the response is received, the
-     * location observers will be notified of success or failure.
-     *
-     * @return true if the move to request was issued, false if it was
-     * rejected by a location observer or because we have another request
-     * outstanding.
+     * Requests that this client be moved to the specified place. A request will be made and when
+     * the response is received, the location observers will be notified of success or failure.
+     *
+     * @return true if the move to request was issued, false if it was rejected by a location
+     * observer or because we have another request outstanding.
      */
     public function moveTo (placeId :int) :Boolean
     {
@@ -122,31 +127,26 @@
             return false;
         }

-        // first check to see if our observers are happy with this move
-        // request
+        // first check to see if our observers are happy with this move request
         if (!mayMoveTo(placeId, null)) {
             return false;
         }

-        // we need to call this both to mark that we're issuing a move
-        // request and to check to see if the last issued request should
-        // be considered stale
+        // we need to call this both to mark that we're issuing a move request and to check to see
+        // if the last issued request should be considered stale
         var refuse :Boolean = checkRepeatMove();

         // complain if we're over-writing a pending request
         if (_pendingPlaceId != -1) {
-            // if the pending request has been outstanding more than a
-            // minute, go ahead and let this new one through in an attempt
-            // to recover from dropped moveTo requests
+            // if the pending request has been outstanding more than a minute, go ahead and let
+            // this new one through in an attempt to recover from dropped moveTo requests
             if (refuse) {
                 log.warning("Refusing moveTo; We have a request outstanding " +
-                            "[ppid=" + _pendingPlaceId +
-                            ", npid=" + placeId + "].");
+                            "[ppid=" + _pendingPlaceId + ", npid=" + placeId + "].");
                 return false;

             } else {
-                log.warning("Overriding stale moveTo request " +
-                            "[ppid=" + _pendingPlaceId +
+                log.warning("Overriding stale moveTo request [ppid=" + _pendingPlaceId +
                             ", npid=" + placeId + "].");
             }
         }
@@ -169,8 +169,7 @@
             var placeId :int = _pendingPlaceId;
             _pendingPlaceId = -1;

-            log.info("moveTo failed [pid=" + placeId +
-                     ", reason=" + reason + "].");
+            log.info("moveTo failed [pid=" + placeId + ", reason=" + reason + "].");

             // let our observers know that something has gone horribly awry
             notifyFailure(placeId, reason);
@@ -178,17 +177,15 @@

         // issue a moveTo request
         log.info("Issuing moveTo(" + placeId + ").");
-        _lservice.moveTo(_cctx.getClient(), placeId,
-            new MoveAdapter(success, failure));
+        _lservice.moveTo(_cctx.getClient(), placeId, new MoveAdapter(success, failure));
         return true;
     }

     /**
-     * Requests to move to the room that we last occupied, if such a room
-     * exists.
-     *
-     * @return true if we had a previous room and we requested to move to
-     * it, false if we had no previous room.
+     * Requests to move to the room that we last occupied, if such a room exists.
+     *
+     * @return true if we had a previous room and we requested to move to it, false if we had no
+     * previous room.
      */
     public function moveBack () :Boolean
     {
@@ -204,8 +201,8 @@
     /**
      * Issues a request to leave our current location.
      *
-     * @return true if we were able to leave, false if we are in the
-     * middle of moving somewhere and can't yet leave.
+     * @return true if we were able to leave, false if we are in the middle of moving somewhere and
+     * can't yet leave.
      */
     public function leavePlace () :Boolean
     {
@@ -219,16 +216,15 @@
     }

     /**
-     * This can be called by cooperating directors that need to coopt the
-     * moving process to extend it in some way or other. In such
-     * situations, they should call this method before moving to a new
-     * location to check to be sure that all of the registered location
-     * observers are amenable to a location change.
+     * This can be called by cooperating directors that need to coopt the moving process to extend
+     * it in some way or other. In such situations, they should call this method before moving to a
+     * new location to check to be sure that all of the registered location observers are amenable
+     * to a location change.
      *
      * @param placeId the place oid of our tentative new location.
      *
-     * @return true if everyone is happy with the move, false if it was
-     * vetoed by one of the location observers.
+     * @return true if everyone is happy with the move, false if it was vetoed by one of the
+     * location observers.
      */
     public function mayMoveTo (placeId :int, rl :ResultListener) :Boolean
     {
@@ -238,12 +234,11 @@
             vetoed = vetoed || !lobs.locationMayChange(placeId);
         });

-        // if we're actually going somewhere, let the controller know that
-        // we might be leaving
+        // if we're actually going somewhere, let the controller know that we might be leaving
         mayLeavePlace();

-        // if we have a result listener, let it know if we failed
-        // or keep it for later if we're still going
+        // if we have a result listener, let it know if we failed or keep it for later if we're
+        // still going
         if (rl != null) {
             if (vetoed) {
                 rl.requestFailed(new MoveVetoedError());
@@ -256,8 +251,7 @@
     }

     /**
-     * Called to inform our controller that we may be leaving the current
-     * place.
+     * Called to inform our controller that we may be leaving the current place.
      */
     protected function mayLeavePlace () :void
     {
@@ -265,19 +259,17 @@
             try {
                 _controller.mayLeavePlace(_plobj);
             } catch (e :Error) {
-                log.warning("Place controller choked in " +
-                            "mayLeavePlace [plobj=" + _plobj + "].");
+                log.warning("Place controller choked in mayLeavePlace [plobj=" + _plobj + "].");
                 log.logStackTrace(e);
             }
         }
     }

     /**
-     * This can be called by cooperating directors that need to coopt the
-     * moving process to extend it in some way or other. In such
-     * situations, they will be responsible for receiving the successful
-     * move response and they should let the location director know that
-     * the move has been effected.
+     * This can be called by cooperating directors that need to coopt the moving process to extend
+     * it in some way or other. In such situations, they will be responsible for receiving the
+     * successful move response and they should let the location director know that the move has
+     * been effected.
      *
      * @param placeId the place oid of our new location.
      * @param config the configuration information for the new place.
@@ -304,8 +296,7 @@
         // check whether we should use a custom class loader
         _controller = config.createController();
         if (_controller == null) {
-            log.warning("Place config returned null controller " +
-                        "[config=" + config + "].");
+            log.warning("Place config returned null controller [config=" + config + "].");
             return;
         }
         _controller.init(_cctx, config);
@@ -315,9 +306,8 @@
     }

     /**
-     * Called when we're leaving our current location. Informs the
-     * location's controller that we're departing, unsubscribes from the
-     * location's place object, and clears out our internal place
+     * Called when we're leaving our current location. Informs the location's controller that we're
+     * departing, unsubscribes from the location's place object, and clears out our internal place
      * information.
      */
     public function didLeavePlace () :void
@@ -328,16 +318,14 @@
                 try {
                     _controller.didLeavePlace(_plobj);
                 } catch (e :Error) {
-                    log.warning("Place controller choked in " +
-                                "didLeavePlace [plobj=" + _plobj + "].");
+                    log.warning("Place controller choked in didLeavePlace [plobj=" + _plobj + "].");
                     log.logStackTrace(e);
                 }
                 _controller = null;
             }

             // unsubscribe from our old place object
-            _cctx.getDObjectManager().unsubscribeFromObject(
-                _plobj.getOid(), this);
+            _cctx.getDObjectManager().unsubscribeFromObject(_plobj.getOid(), this);
             _plobj = null;

             // and clear out the associated place id
@@ -346,10 +334,9 @@
     }

     /**
-     * This can be called by cooperating directors that need to coopt the
-     * moving process to extend it in some way or other. If the coopted
-     * move request fails, this failure can be propagated to the location
-     * observers if appropriate.
+     * This can be called by cooperating directors that need to coopt the moving process to extend
+     * it in some way or other. If the coopted move request fails, this failure can be propagated
+     * to the location observers if appropriate.
      *
      * @param placeId the place oid to which we failed to move.
      * @param reason the reason code given for failure.
@@ -369,8 +356,8 @@
     }

     /**
-     * Called to test and set a time stamp that we use to determine if a
-     * pending moveTo request is stale.
+     * Called to test and set a time stamp that we use to determine if a pending moveTo request is
+     * stale.
      */
     public function checkRepeatMove () :Boolean
     {
@@ -392,17 +379,14 @@
         var success :Function = function (object :DObject) :void {
             gotBodyObject(object as BodyObject);
         };
-        var failure :Function = function (
-                oid :int, cause :ObjectAccessError) :void {
-            log.warning("Location director unable to fetch body " +
-                        "object; all has gone horribly wrong" +
-                        "[cause=" + cause + "].");
+        var failure :Function = function (oid :int, cause :ObjectAccessError) :void {
+            log.warning("Location director unable to fetch body object; all has gone horribly " +
+                        "wrong [cause=" + cause + "].");
         };

         var client :Client = event.getClient();
-        var cloid :int = client.getClientOid();
-        client.getDObjectManager().subscribeToObject(cloid,
-            new SubscriberAdapter(success, failure));
+        client.getDObjectManager().subscribeToObject(
+            client.getClientOid(), new SubscriberAdapter(success, failure));
     }

     // documentation inherited
@@ -417,8 +401,8 @@
         // let our observers know that we're no longer in a location
         _observers.apply(didChangeOp);

-        // clear out everything else (it's possible that we were logged
-        // off in the middle of a change location request)
+        // clear out everything else (it's possible that we were logged off in the middle of a
+        // change location request)
         _pendingPlaceId = -1;
         _previousPlaceId = -1;
         _lastRequestTime = 0;
@@ -440,8 +424,8 @@

     protected function gotBodyObject (clobj :BodyObject) :void
     {
-        // check to see if we are already in a location, in which case
-        // we'll want to be going there straight away
+        // check to see if we are already in a location, in which case we'll want to be going there
+        // straight away
     }

     // documentation inherited from interface
@@ -470,8 +454,7 @@
             try {
                 _controller.willEnterPlace(_plobj);
             } catch (e :Error) {
-                log.warning("Controller choked in willEnterPlace " +
-                            "[place=" + _plobj + "].");
+                log.warning("Controller choked in willEnterPlace [place=" + _plobj + "].");
                 log.logStackTrace(e);
             }
         }
@@ -483,10 +466,9 @@
     // documentation inherited from interface Subscriber
     public function requestFailed (oid :int, cause :ObjectAccessError) :void
     {
-        // aiya! we were unable to fetch our new place object; something
-        // is badly wrong
-        log.warning("Aiya! Unable to fetch place object for new location " +
-                    "[plid=" + oid + ", reason=" + cause + "].");
+        // aiya! we were unable to fetch our new place object; something is badly wrong
+        log.warning("Aiya! Unable to fetch place object for new location [plid=" + oid +
+                    ", reason=" + cause + "].");

         // clear out our half initialized place info
         var placeId :int = _placeId;
@@ -495,9 +477,8 @@
         // let the kids know shit be fucked
         notifyFailure(placeId, "m.unable_to_fetch_place_object");

-        // we need to sort out what to do about the half-initialized place
-        // controller. presently we punt and hope that calling
-        // didLeavePlace() without ever having called willEnterPlace()
+        // we need to sort out what to do about the half-initialized place controller. presently we
+        // punt and hope that calling didLeavePlace() without ever having called willEnterPlace()
         // does whatever's necessary

         // try to return to our previous location
@@ -505,9 +486,8 @@
             _failureHandler.recoverFailedMove(placeId);

         } else {
-            // if we were previously somewhere (and that somewhere isn't
-            // where we just tried to go), try going back to that happy
-            // place
+            // if we were previously somewhere (and that somewhere isn't where we just tried to
+            // go), try going back to that happy place
             if (_previousPlaceId != -1 && _previousPlaceId != placeId) {
                 moveTo(_previousPlaceId);
             }
@@ -515,24 +495,20 @@
     }

     /**
-     * Sets the failure handler which will recover from place object
-     * fetching failures. In the event that we are unable to fetch our
-     * place object after making a successful moveTo request, we attempt
-     * to rectify the failure by moving back to the last known working
-     * location. Because entites that cooperate with the location director
-     * may need to become involved in this failure recovery, we provide
-     * this interface whereby they can interject themseves into the
+     * Sets the failure handler which will recover from place object fetching failures. In the
+     * event that we are unable to fetch our place object after making a successful moveTo request,
+     * we attempt to rectify the failure by moving back to the last known working location. Because
+     * entites that cooperate with the location director may need to become involved in this
+     * failure recovery, we provide this interface whereby they can interject themseves into the
      * failure recovery process and do their own failure recovery.
      */
-    public function setFailureHandler (
-            handler :LocationDirector_FailureHandler) :void
+    public function setFailureHandler (handler :LocationDirector_FailureHandler) :void
     {
         if (_failureHandler != null) {
-            log.warning("Requested to set failure handler, but we've " +
-                        "already got one. The conflicting entities will " +
-                        "likely need to perform more sophisticated " +
-                        "coordination to deal with failures. " +
-                        "[old=" + _failureHandler + ", new=" + handler + "].");
+            log.warning("Requested to set failure handler, but we've already got one. The " +
+                        "conflicting entities will likely need to perform more sophisticated " +
+                        "coordination to deal with failures. [old=" + _failureHandler +
+                        ", new=" + handler + "].");

         } else {
             _failureHandler = handler;
@@ -561,8 +537,7 @@
     protected var _lservice :LocationService;

     /** Our location observer list. */
-    protected var _observers :ObserverList =
-        new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);
+    protected var _observers :ObserverList = new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);

     /** The oid of the place we currently occupy. */
     protected var _placeId :int = -1;
@@ -573,10 +548,8 @@
     /** The place controller in effect for our current place. */
     protected var _controller :PlaceController;

-    /**
-     * The oid of the place for which we have an outstanding moveTo
-     * request, or -1 if we have no outstanding request.
-     */
+    /** The oid of the place for which we have an outstanding moveTo request, or -1 if we have no
+     * outstanding request. */
     protected var _pendingPlaceId :int = -1;

     /** The oid of the place we previously occupied. */
@@ -585,16 +558,14 @@
     /** The last time we requested a move to. */
     protected var _lastRequestTime :Number;

-    /** The entity that deals when we fail to subscribe to a place
-     * object. */
+    /** The entity that deals when we fail to subscribe to a place object. */
     protected var _failureHandler :LocationDirector_FailureHandler;

-    /** A listener that wants to know if we succeeded or
-     * how we failed to move.  */
+    /** A listener that wants to know if we succeeded or how we failed to move.  */
     protected var _moveListener :ResultListener;

-    /** We require that a moveTo request be outstanding for one minute
-     * before it is declared to be stale. */
+    /** We require that a moveTo request be outstanding for one minute before it is declared to be
+     * stale. */
     protected static const STALE_REQUEST_DURATION :int = 60 * 1000;
 }
 }


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

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


FLEX-27648 Stop RTE and correct as per IList interface

--- frameworks/projects/mx/src/mx/containers/ViewStack.as
+++ frameworks/projects/mx/src/mx/containers/ViewStack.as
@@ -1581,8 +1581,21 @@
      */
     public function getItemIndex(item:Object):int
     {
-        return getChildIndex(item as DisplayObject);
-    }
+		if (isValidChild(item as DisplayObject))
+        	return getChildIndex(item as DisplayObject);
+		else
+			return -1;
+    }
+
+	private function isValidChild(child:DisplayObject):Boolean {
+		for (var i:int = 0; i < numChildren; i++)
+		{
+			if (getChildAt(i) == child)
+				return true;
+		}
+
+		return false;
+	}

     /**
      *  @private


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

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

 package mx.rpc.xml
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5573
Author:   jimurphy@adobe.com
Date:     2009-03-26T15:11:59.159776Z

Log Message:
-----------
-more updated package and class names that were missed in the first pass
-remove the mx folder

qa: probably
doc: this updated more asdoc comments so you may want to make sure that this pass made the correct updates
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move3D.as
+++ frameworks/projects/spark/src/spark/effects/Move3D.as
@@ -35,7 +35,7 @@
  */
 public class AnimateTransformMove3D extends AnimateTransformMove
 {
-    include "../../mx/core/Version.as";
+    include "../../spark.core.Version.as";

     public function AnimateTransformMove3D(target:Object=null)
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</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/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</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="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/spark/src/spark/effects/Resize.as
+++ frameworks/projects/spark/src/spark/effects/Resize.as
@@ -10,9 +10,12 @@
 ////////////////////////////////////////////////////////////////////////////////
 package spark.effects
 {
+import mx.core.mx_internal;
+import mx.effects.IEffectInstance;
+
 import spark.effects.supportClasses.ResizeInstance;

-import mx.effects.IEffectInstance;
+use namespace mx_internal;

 /**
  *  The Resize effect changes the width, height, or both dimensions
@@ -250,5 +253,60 @@
         if (!isNaN(heightBy))
             resizeInstance.heightBy = heightBy;
     }
+
+    /**
+     * @private
+     * Tell the propertyChanges array to keep all values, unchanged or not.
+     * This enables us to check later, when the effect is finished, whether
+     * we need to restore explicit height/width values.
+     */
+    override mx_internal function captureValues(propChanges:Array,
+        setStartValues:Boolean):Array
+    {
+        var propertyChanges:Array = super.captureValues(propChanges, setStartValues);
+
+        if (setStartValues)
+        {
+            var n:int = propertyChanges.length;
+            for (var i:int = 0; i < n; i++)
+                propertyChanges[i].stripUnchangedValues = false;
+        }
+        return propertyChanges;
+    }
+
+    /**
+     * @private
+     * When we're done, check to see whether explicitWidth/Height values
+     * for the target were NaN in the start state. If so, we should restore
+     * them to that value. This ensures that the target will be sized by
+     * its layout manager instead of by the width/height that we set during
+     * the Resize.
+     */
+    override mx_internal function applyEndValues(propChanges:Array,
+        targets:Array):void
+    {
+        super.applyEndValues(propChanges, targets);
+        if (propChanges)
+        {
+            var n:int = propChanges.length;
+            for (var i:int = 0; i < n; i++)
+            {
+                var target:Object = propChanges[i].target;
+                if (propChanges[i].end["explicitWidth"] !== undefined)
+                {
+                    if (isNaN(propChanges[i].end["explicitWidth"]) &&
+                        "explicitWidth" in target)
+                    target.explicitWidth = NaN;
+                }
+                if (propChanges[i].end["explicitHeight"] !== undefined)
+                {
+                    if (isNaN(propChanges[i].end["explicitHeight"]) &&
+                        "explicitHeight" in target)
+                    target.explicitHeight = NaN;
+                }
+            }
+        }
+    }
+
 }
 }


made embedded image static

made embedded image static

--- WeaveUISpark/src/weave/visualization/plotters/SingleImagePlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/SingleImagePlotter.as
@@ -73,7 +73,7 @@
 		private var _tempPoint:Point = new Point();

 		[Embed(source='/weave/resources/images/red-circle.png')]
-		private var defaultImageSource:Class;
+		private static var defaultImageSource:Class;

 		/**
 		 * The URL of the image to download.


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

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

 package mx.rpc.xml
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4736
Author:   chaase@adobe.com
Date:     2009-01-29T19:31:04.898445Z

Log Message:
-----------
API improvements in some of the effects classes, such as:

- PropertyValuesHolder renamed to AnimationProperty
	- Also, values[] array changed to valueFrom and valueTo Objects
	- Also, 'delta' property changed to valueBy Object property
- FxAnimate.propertyValuesList renamed to FxAnimate.animationProperties
- Constant interpolator renamed Linear (old Linear interpolator went away)
- ColorInterpolator renamed RGBInterpolator
- HSBInterpolator now exists (not used by default: FxAnimateColor uses RGBInterpolator)
- HSBColor: new data structure in mx.utils for holding HSB colors and converting from/to RGB
- various changes to *Instance classes in effects (but these are not generally used externally)

QE Notes: Mustella tests will break due to class and property renames. QE is fixing these issues and a follow-up putback to Mustella is expected
Doc Notes: None
Bugs: -
Reviewer: Gordon
tests: checkintests, Mustella: tests/Effects tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Constant.as" copyfrom-rev="4610" action="R">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Linear.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/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/ColorInterpolator.as" copyfrom-rev="4610" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/HSBColor.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/ColorInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/ArrayInterpolator.as</path>
<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/mx/effects/effectClasses/FxAnimateColorInstance.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/flex4/src/mx/effects/effectClasses/FxAnimateShaderTransitionInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/Constant.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxRotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/EaseInOut.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AnimationProperty.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateFilter.as
+++ frameworks/projects/spark/src/spark/effects/AnimateFilter.as
@@ -26,7 +26,7 @@
 /**
  * This effect applies an IBitmapFilter instance and allows you to animate
  * an arbitrary set of properties of the filter between values, as specified
- * by the propertyValuesList.
+ * by the animationProperties.
  *
  * Example usage is as follows:
  * @example FxAnimateFilter example:
@@ -47,10 +47,10 @@
  *     var df:DropShadowFilter = new DropShadowFilter();
  *     var anim:FxAnimateFilter = new FxAnimateFilter(btn1, df);
  *
- *     anim.propertyValuesList = [
- *         new PropertyValuesHolder("color", [0,0x0000FF]),
- *         new PropertyValuesHolder("distance", [0,10]),
- *         new PropertyValuesHolder("angle", [270,360])
+ *     anim.animationProperties = [
+ *         new AnimationProperty("color", 0, 0x0000FF),
+ *         new AnimationProperty("distance", 0, 10),
+ *         new AnimationProperty("angle", 270, 360)
  *     ];
  *
  *     anim.repeatCount = 0;


[rest] Minor changes: adds todo comment

[rest] Minor changes: adds todo comment

--- skein-rest/src/skein/rest/client/impl/DefaultRestClient.as
+++ skein-rest/src/skein/rest/client/impl/DefaultRestClient.as
@@ -663,6 +663,7 @@
                         request.requestHeaders = request.requestHeaders.concat(response.headers);
                     }

+                    // TODO(dev) should it be "else" here?
                     Log.i("skein-rest", URLLoadersQueue.name(loader) + " " + request.method.toUpperCase() + " " + request.url + (request.data ? " -> " + request.data : ""));
                     loader.load(request);
                 });


Transferred from the Adobe Open Source Subversion Repository

Revision: 8873
Author:   smgilson@adobe.com
Date:     2009-07-28T20:35:23.907028Z

Log Message:
-----------
Add package name to event classes specified by the ASDoc @event tag

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as

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

--- frameworks/projects/framework/src/mx/core/IVisualElementContainer.as
+++ frameworks/projects/framework/src/mx/core/IVisualElementContainer.as
@@ -83,7 +83,7 @@
      *
      *  @return The element that was added.
      *
-     *  @event elementAdd ElementExistenceEvent Dispatched when
+     *  @event elementAdd spark.events.ElementExistenceEvent Dispatched when
      *  the element is added to the child list.
      *
      *  @throws ArgumentError If the element is the same as the visual container.
@@ -113,7 +113,7 @@
      *
      *  @return The element that was added.
      *
-     *  @event elementAdd ElementExistenceChangedEvent Dispatched when
+     *  @event elementAdd spark.events.ElementExistenceChangedEvent Dispatched when
      *  the element is added to the child list.
      *
      *  @throws ArgumentError If the element is the same as the container.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXResult.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXResult.as
@@ -0,0 +1,39 @@
+/*************************************************************************
+ *
+ * ADOBE CONFIDENTIAL
+ * __________________
+ *
+ *  [2002] - [2007] Adobe Systems Incorporated
+ *  All Rights Reserved.
+ *
+ * NOTICE:  All information contained herein is, and remains
+ * the property of Adobe Systems Incorporated and its suppliers,
+ * if any.  The intellectual and technical concepts contained
+ * herein are proprietary to Adobe Systems Incorporated
+ * and its suppliers and may be covered by U.S. and Foreign Patents,
+ * patents in process, and are protected by trade secret or copyright law.
+ * Dissemination of this information or reproduction of this material
+ * is strictly forbidden unless prior written permission is obtained
+ * from Adobe Systems Incorporated.
+ */
+package mx.messaging.channels.amfx
+{
+
+[ExcludeClass]
+/**
+ * A simple context to hold the result of an AMFX request.
+ * @private
+ */
+public class AMFXResult
+{
+    public var version:uint;
+    public var headers:Array;
+    public var result:Object;
+
+    public function AMFXResult()
+    {
+        super();
+    }
+}
+
+}


fix bug in startup

fix bug in startup

--- frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
+++ frameworks/as/projects/FlexJSJX/src/org/apache/flex/effects/Move.as
@@ -157,6 +157,9 @@

 		if (isNaN(xFrom))
 			xStart = actualTarget.x;
+        else
+            xStart = xFrom;
+
         if (isNaN(xBy))
         {
     		if (isNaN(xTo))
@@ -167,6 +170,8 @@

 		if (isNaN(yFrom))
 			yStart = actualTarget.y;
+        else
+            yStart = yFrom;
         if (isNaN(yBy))
         {
     		if (isNaN(yTo))


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/RenderData.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/RenderData.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/charts/src/mx/charts/events/LegendMouseEvent.as
+++ frameworks/projects/charts/src/mx/charts/events/LegendMouseEvent.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.charts.events
 {


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

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

 package mx.validators
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18385
Author:   jasonsj@adobe.com
Date:     2010-10-30T00:16:31.091793Z

Log Message:
-----------
Mobile Theme feature work. TextArea now supports borderVisible and promptDisplay. Refactored common TextInput and TextArea behavior to TextSkinBase.

QE notes: TextArea borderVisible style and prompt property.
Doc notes:
Bugs:
Reviewer: gruehle
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
@@ -12,14 +12,10 @@
 package spark.skins.mobile
 {

-import flash.display.DisplayObject;
 import flash.events.Event;
-import flash.text.TextLineMetrics;

 import spark.components.TextInput;
-import spark.components.supportClasses.StyleableTextField;
-import spark.skins.mobile.assets.TextInput_border;
-import spark.skins.mobile.supportClasses.MobileSkin;
+import spark.skins.mobile.supportClasses.TextSkinBase;

 /**
  *  Actionscript based skin for mobile text input.
@@ -29,21 +25,8 @@
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
-public class TextInputSkin extends MobileSkin
+public class TextInputSkin extends TextSkinBase
 {
-    //--------------------------------------------------------------------------
-    //
-    //  Class statics
-    //
-    //--------------------------------------------------------------------------
-
-    // StylableTextField padding
-    private static const TEXT_WIDTH_PADDING:int = 4;
-    private static const TEXT_HEIGHT_PADDING:int = 2;
-
-    // FXG measurements
-    private static const BORDER_SIZE:uint = 1;
-    private static const CORNER_ELLIPSE_SIZE:uint = 16;

     //--------------------------------------------------------------------------
     //
@@ -67,82 +50,13 @@
     public var hostComponent:TextInput;  // SkinnableComponent will populate

     /**
-     *  textDisplay skin part.
-     */
-    public var textDisplay:StyleableTextField;
-
-    /**
-     *  promptDisplay skin part.
-     */
-    public var promptDisplay:StyleableTextField;
-
-    /**
-     *  @private
-     *
-     *  Instance of the border graphics.
-     */
-    private var border:DisplayObject;
-
-    private var borderVisibleChanged:Boolean = false;
-
-    //--------------------------------------------------------------------------
-    //
-    //  Overridden methods
-    //
-    //--------------------------------------------------------------------------
-
-    /**
      *  @private
      */
     override protected function createChildren():void
     {
         super.createChildren();

-        border = new TextInput_border;
-        addChild(border);
-
-        textDisplay = StyleableTextField(createInFontContext(StyleableTextField));
-        textDisplay.styleProvider = this;
-        textDisplay.editable = true;
         textDisplay.addEventListener("editableChanged", editableChangedHandler);
-        addChild(textDisplay);
-
-        createPromptDisplay();
-    }
-
-    protected function createPromptDisplay():void
-    {
-        promptDisplay = StyleableTextField(createInFontContext(StyleableTextField));
-        promptDisplay.styleProvider = this;
-        promptDisplay.editable = false;
-        promptDisplay.mouseEnabled = false;
-        addChild(promptDisplay);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function commitProperties():void
-    {
-        super.commitProperties();
-
-        if (borderVisibleChanged)
-        {
-            borderVisibleChanged = false;
-
-            var borderVisible:Boolean = getStyle("borderVisible") == true;
-
-            if (borderVisible && !border)
-            {
-                border = new TextInput_border();
-                addChild(border);
-            }
-            else if (!borderVisible && border)
-            {
-                removeChild(border);
-                border = null;
-            }
-        }
     }

     /**
@@ -193,107 +107,6 @@
     /**
      *  @private
      */
-    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        super.updateDisplayList(unscaledWidth, unscaledHeight);
-
-        var borderSize:uint = (border) ? BORDER_SIZE : 0;
-        var borderWidth:uint = borderSize * 2;
-
-        // Draw the contentBackgroundColor
-        graphics.clear();
-        graphics.beginFill(getStyle("contentBackgroundColor"), getStyle("contentBackgroundAlpha"));
-        graphics.drawRoundRect(borderSize, borderSize, unscaledWidth - borderWidth, unscaledHeight - borderWidth, CORNER_ELLIPSE_SIZE, CORNER_ELLIPSE_SIZE);
-        graphics.endFill();
-
-        // position & size border
-        if (border)
-        {
-            resizePart(border, unscaledWidth, unscaledHeight);
-            positionPart(border, 0, 0);
-        }
-
-        // position & size the text
-        var paddingLeft:Number = getStyle("paddingLeft");
-        var paddingRight:Number = getStyle("paddingRight");
-        var paddingTop:Number = getStyle("paddingTop");
-        var paddingBottom:Number = getStyle("paddingBottom");
-
-        if (textDisplay)
-        {
-            textDisplay.commitStyles();
-
-            var textHeight:Number = textDisplay.textHeight;
-            var textTop:Number = Math.round((unscaledHeight - textHeight) / 2);
-
-            // verticalAlign=middle
-            textTop = Math.max(textTop, paddingTop);
-
-            resizePart(textDisplay, unscaledWidth - paddingLeft - paddingRight, unscaledHeight - paddingTop - paddingBottom);
-            positionPart(textDisplay, paddingLeft, textTop);
-        }
-
-        if (promptDisplay)
-        {
-            promptDisplay.commitStyles();
-            resizePart(promptDisplay, unscaledWidth - paddingLeft - paddingRight, unscaledHeight - paddingTop - paddingBottom);
-            positionPart(promptDisplay, paddingLeft, textTop);
-        }
-    }
-
-    /**
-     *  @private
-     */
-    override public function styleChanged(styleProp:String):void
-    {
-        var allStyles:Boolean = !styleProp || styleProp == "styleName";
-
-        if (allStyles || styleProp == "borderVisible")
-        {
-            borderVisibleChanged = true;
-            invalidateProperties();
-        }
-
-        if (allStyles || styleProp.indexOf("padding") == 0)
-        {
-            invalidateDisplayList();
-        }
-
-        if (textDisplay)
-            textDisplay.styleChanged(styleProp);
-
-        if (promptDisplay)
-            promptDisplay.styleChanged(styleProp);
-
-        super.styleChanged(styleProp);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function commitCurrentState():void
-    {
-        super.commitCurrentState();
-
-        alpha = currentState.indexOf("disabled") == -1 ? 1 : 0.5;
-
-        var showPrompt:Boolean = currentState.indexOf("WithPrompt") >= 0;
-
-        if (showPrompt && !promptDisplay)
-        {
-            createPromptDisplay();
-            invalidateDisplayList();
-        }
-        else if (!showPrompt && promptDisplay)
-        {
-            removeChild(promptDisplay);
-            promptDisplay = null;
-        }
-    }
-
-    /**
-     *  @private
-     */
     private function editableChangedHandler(event:Event):void
     {
         invalidateDisplayList();


Transferred from the Adobe Open Source Subversion Repository

Revision: 19724
Author:   jasonsj@adobe.com
Date:     2011-01-12T01:07:20.451197Z

Log Message:
-----------
Moved ActionBar font color style declaration to #titleDisplay part and subclasses of ButtonBase
Replaced MobileSkin usage of layoutMeasuredWidth/Height with minWidth/Height

QE notes: Some mustella baselines for ActionBar custom content will need to be regenerated. In particular, usage of TextInput with text content.
Doc notes:
Bugs:
SDK-28948 The default color for text in TextInput on ActionBar is white so it looks invisible
SDK-28953 Button width not adjusted as expected when changing percentWidth at runtime
Reviewer: rfrishbe, chiedozi
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorButtonBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionRoundedButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as
@@ -63,8 +63,8 @@
             {
                 borderClass = spark.skins.mobile320.assets.TextInput_border;
                 layoutCornerEllipseSize = 24;
-                layoutMeasuredWidth = 600;
-                layoutMeasuredHeight = 66;
+                minWidth = 600;
+                minHeight = 66;
                 layoutBorderSize = 2;

                 break;
@@ -73,8 +73,8 @@
             {
                 borderClass = spark.skins.mobile240.assets.TextInput_border;
                 layoutCornerEllipseSize = 12;
-                layoutMeasuredWidth = 440;
-                layoutMeasuredHeight = 50;
+                minWidth = 440;
+                minHeight = 50;
                 layoutBorderSize = 1;

                 break;
@@ -83,8 +83,8 @@
             {
                 borderClass = spark.skins.mobile160.assets.TextInput_border;
                 layoutCornerEllipseSize = 12;
-                layoutMeasuredWidth = 300;
-                layoutMeasuredHeight = 33;
+                minWidth = 300;
+                minHeight = 33;
                 layoutBorderSize = 1;

                 break;
@@ -149,12 +149,8 @@
             measuredWidth =  (characterWidth * hostComponent.maxChars) +
                 paddingLeft + paddingRight + StyleableTextField.TEXT_WIDTH_PADDING;
         }
-        else
-        {
-            measuredWidth = layoutMeasuredWidth;
-        }

-        measuredHeight = Math.max(paddingTop + textHeight + paddingBottom, layoutMeasuredHeight);
+        measuredHeight = paddingTop + textHeight + paddingBottom;
     }

     /**


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

--- frameworks/projects/mx/src/mx/skins/halo/DataGridColumnDropIndicator.as
+++ frameworks/projects/mx/src/mx/skins/halo/DataGridColumnDropIndicator.as
@@ -18,6 +18,11 @@

 /**
  *  The skin for the column drop indicator in a DataGrid.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class DataGridColumnDropIndicator extends ProgrammaticSkin
 {
@@ -31,6 +36,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function DataGridColumnDropIndicator()
 	{


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 14198
Author:   jszeto@adobe.com
Date:     2010-02-16T21:55:55.077058Z

Log Message:
-----------
Added metadata to GraphicElement.displayObjectSharingMode

http://bugs.adobe.com/jira/browse/SDK-25287 = GraphicElement displayObjectSharingMode doesnt code hint enums [missing metadata]

Added metadata

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2815,6 +2815,8 @@
     //----------------------------------

     private var _displayObjectSharingMode:String;
+
+    [Inspectable(category="General", enumeration="ownsUnsharedObject,ownsSharedObject,usesSharedObject")]

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 4645
Author:   egeorgie@adobe.com
Date:     2009-01-23T18:20:18.212166Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-18714 minWidth & minHeight not respected for GraphicElements (Ellipse, etc.)

The fix is to make sure measureWidth and measuredHeight for GraphicElement are restricted by the explicit min/max limits during the measure phase, the same way it works for UIComponent.  This also resulted in a small change to Path, since there we were assuming the measuredWidth and measuredHeight were the natural bounds of the Path.

QE Notes: None
Doc Notes: None
Bugs: SDK-18714
Reviewer: Ryan
tests: mustella(layout), checkintests

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

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2675,6 +2675,18 @@

         if (!skipMeasure())
             measure();
+
+        if (!isNaN(explicitMinWidth) && measuredWidth < explicitMinWidth)
+            measuredWidth = explicitMinWidth;
+
+        if (!isNaN(explicitMaxWidth) && measuredWidth > explicitMaxWidth)
+            measuredWidth = explicitMaxWidth;
+
+        if (!isNaN(explicitMinHeight) && measuredHeight < explicitMinHeight)
+            measuredHeight = explicitMinHeight;
+
+        if (!isNaN(explicitMaxHeight) && measuredHeight > explicitMaxHeight)
+            measuredHeight = explicitMaxHeight;

         // Did measure() have effect on preferred size?
         if (oldWidth != preferredWidthPreTransform() ||


Transferred from the Adobe Open Source Subversion Repository

Revision: 134
Author:   proberts@adobe.com
Date:     2008-01-09T17:46:02.145068Z

Log Message:
-----------
Severity: ignore
Description: Added docs for IWindow and updated its implementors. This is a partial fix for FLEXDOCS-262: Several classes missing class descriptions.

Modified Paths:
--------------
<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/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/IWindow.as
+++ frameworks/projects/airframework/src/mx/core/IWindow.as
@@ -15,7 +15,9 @@
 import flash.display.NativeWindow;

 /**
- *  Documentation is not currently available.
+ *  The IWindow interface defines the API for components that serve as top-level
+ *  containers in Flex-based AIR applications (containers that represent operating
+ *  system windows).
  */
 public interface IWindow
 {
@@ -30,7 +32,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies whether the window can be maximized.
 	 */
 	function get maximizable():Boolean;

@@ -39,7 +41,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies whether the window can be minimized.
 	 */
 	function get minimizable():Boolean;

@@ -48,7 +50,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  The underlying NativeWindow that the Window component uses.
 	 */
 	function get nativeWindow():NativeWindow

@@ -57,7 +59,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies whether the window can be resized.
 	 */
 	function get resizable():Boolean;

@@ -66,7 +68,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  The string that appears in the status bar, if it is visible.
 	 */
 	function get status():String;

@@ -80,7 +82,11 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies the type of system chrome (if any) the window has.
+	 *  The set of possible values is defined by the constants
+	 *  in the NativeWindowSystemChrome class.
+	 *
+     *  @see flash.display.NativeWindowSystemChrome
 	 */
 	function get systemChrome():String;

@@ -89,7 +95,8 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  The title text that appears in the window title bar and
+     *  the taskbar.
 	 */
 	function get title():String;

@@ -103,7 +110,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  The Class (usually an image) used to draw the title bar icon.
 	 */
 	function get titleIcon():Class;

@@ -117,7 +124,7 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies whether the window is transparent.
 	 */
 	function get transparent():Boolean;

@@ -126,7 +133,11 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Specifies the type of NativeWindow that this component
+	 *  represents. The set of possible values is defined by the constants
+	 *  in the NativeWindowType class.
+	 *
+	 *  @see flash.display.NativeWindowType
 	 */
 	function get type():String;

@@ -135,10 +146,10 @@
     //----------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Controls the window's visibility.
 	 */
 	function get visible():Boolean;
-
+
     //--------------------------------------------------------------------------
     //
     //  Methods
@@ -146,22 +157,23 @@
     //--------------------------------------------------------------------------

 	/**
-	 *  Documentation is not currently available.
+	 *  Closes the window.
 	 */
-	function close():void;
-
+	function close():void;
+
 	/**
-	 *  Documentation is not currently available.
+	 *  Maximizes the window, or does nothing if it's already maximized.
 	 */
 	function maximize():void

 	/**
-	 *  Documentation is not currently available.
+	 *  Minimizes the window.
 	 */
 	function minimize():void;

 	/**
-	 *  Documentation is not currently available.
+	 *  Restores the window (unmaximizes it if it's maximized, or
+     *  unminimizes it if it's minimized).
 	 */
 	function restore():void;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 147
Author:   gosmith@adobe.com
Date:     2008-01-09T22:35:43.119872Z

Log Message:
-----------
Updated the VERSION const for the classes in airframework.swc to "3.0.0.0". The only VERSION that will stay at "2.0.1.0" is the one for the classes in haloclassic.swc.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as

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

--- frameworks/projects/airframework/src/mx/core/Version.as
+++ frameworks/projects/airframework/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "2.0.1.0";
+mx_internal static const VERSION:String = "3.0.0.0";


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9309
Author:   jimurphy@adobe.com
Date:     2009-08-14T12:57:06.648526Z

Log Message:
-----------
Merged 3.x revisions 8758,8762-8763,8765,8844-8845,8906,8970,9030,9049,9055,9096-9097,9191,9208,9221,9228,9242,9278 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateBase.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/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/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="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.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/resources/LocaleSorter.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/xml/IXMLSchemaInstance.as</path>

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


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

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

 package mx.containers
 {