Add back button

Add back button

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -57,6 +57,7 @@
 			addButton("Enumerate workshop", toggleEnumerateButtons, _buttonContainer);

 			_enumerateContainer = new Sprite();
+			addButton("Back", toggleEnumerateButtons, _enumerateContainer);
 			addButton("User subscribed files", enumerateSubscribedFiles, _enumerateContainer);
 			addButton("User published files", enumerateUserPublishedFiles, _enumerateContainer);
 			addButton("User shared files", enumerateSharedFiles, _enumerateContainer);


fixed bug detecting inline objects when running inside a SWFLoader.

--- WeaveAPI/src/JavaScript.as
+++ WeaveAPI/src/JavaScript.as
@@ -19,6 +19,7 @@
 	import flash.system.Capabilities;
 	import flash.utils.Dictionary;
 	import flash.utils.getDefinitionByName;
+	import flash.utils.getQualifiedClassName;

 	/**
 	 * An alternative to flash.external.ExternalInterface with workarounds for its limitations.
@@ -514,7 +515,7 @@
 			// separate function parameters from code
 			for each (var item:Object in paramsAndCode)
 			{
-				if (item.constructor == Object)
+				if (getQualifiedClassName(item) == 'Object')
 				{
 					// We assume that all the keys in the Object are valid JavaScript identifiers,
 					// since they are to be used in the code as variables.
@@ -609,6 +610,11 @@
 				if (backslashNeedsEscaping && appliedCode.indexOf('\\') >= 0)
 					appliedCode = appliedCode.split('\\').join('\\\\');

+				trace('---');
+				trace(evalFunc);
+				trace(appliedCode);
+				trace(pValues);
+
 				result = ExternalInterface.call(evalFunc, appliedCode, pValues);

 				// parse stringified results


replace utils Version class by uri.version class

--- src/com/google/analytics/API.as
+++ src/com/google/analytics/API.as
@@ -19,7 +19,7 @@

 package com.google.analytics
 {
-    import com.google.analytics.utils.Version;
+    import core.version;

     public class API
     {
@@ -30,7 +30,7 @@
         * note:
         * each components share the same code base and so the same version
         */
-        public static var version:Version = new Version();
+        public static var version:core.version = new core.version();
         include "version.properties"
         version.revision = "$Rev$ ".split( " " )[1];


fixed bug in getAsyncInstanceHandler()

fixed bug in getAsyncInstanceHandler()

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -506,7 +506,7 @@
 		 */
 		public static function getAsyncInstanceHandler(type:Class):Function
 		{
-			return map_class_isAsync.get(type) as Function;
+			return isAsyncClass(type) ? map_class_isAsync.get(type) as Function : null;
 		}

 		/**


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

--- frameworks/projects/authoringsupport/src/AuthoringSupportClasses.as
+++ frameworks/projects/authoringsupport/src/AuthoringSupportClasses.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-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
+{
+
+/**
+ *  @private
+ *  In some projects, this class is used to link additional classes
+ *  into the SWC beyond those that are found by dependency analysis
+ *  starting from the classes specified in manifest.xml.
+ *  This project has no manifest file (because there are no MXML tags
+ *  corresponding to any classes in it) so all the classes linked into
+ *  the SWC are found by a dependency analysis starting from the classes
+ *  listed here.
+ */
+internal class UtilitiesClasses
+{
+	import com.adobe.viewsource.ViewSource; ViewSource;
+	// Maintain alphabetical order
+}
+
+}
+
+com.adobe.viewsource.ViewSource


Transferred from the Adobe Open Source Subversion Repository

Revision: 4957
Author:   jimurphy@adobe.com
Date:     2009-02-13T19:44:53.991275Z

Log Message:
-----------
Merge 3.x revisions 4848,4856,4886,4888,4898,4905,4912,4914-4916,4953 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.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/BrowserManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
@@ -16,9 +16,10 @@
 import flash.events.Event;
 import flash.events.EventDispatcher;
 import flash.external.ExternalInterface;
+import flash.net.navigateToURL;
+import flash.net.URLRequest;
+import mx.core.ApplicationGlobals;
 import mx.events.BrowserChangeEvent;
-import mx.core.ApplicationGlobals;
-import mx.managers.SystemManagerGlobals;

 /**
  *  Dispatched when the fragment property is changed either
@@ -81,6 +82,12 @@
     private static var instance:IBrowserManager;

     private var _defaultFragment:String = "";
+
+    private var _browserUserAgent:String;
+
+    private var _browserPlatform:String;
+
+    private var _isFirefoxMac:Boolean;

     //--------------------------------------------------------------------------
     //
@@ -283,7 +290,7 @@

         _defaultFragment = defaultFragment;
         _url = ExternalInterface.call("BrowserHistory.getURL");
-
+
 		// probably no support in html wrapper
 		if (!_url)
 		{
@@ -291,6 +298,15 @@
 			return;
 		}

+        _browserUserAgent = ExternalInterface.call("BrowserHistory.getUserAgent");
+        _browserPlatform = ExternalInterface.call("BrowserHistory.getPlatform");
+
+        // Unlike browser.js we specifically test for the Firefox browser (vs. other
+        // Gecko or Mozilla derivatives), as the bug fix included in this file that
+        // leverages this flag is very specific to Firefox/Mac.
+        _isFirefoxMac = (_browserUserAgent && _browserPlatform &&
+            _browserUserAgent.indexOf("Firefox") > -1 && _browserPlatform.indexOf("Mac") > -1);
+
         var pos:int = _url.indexOf('#');
         if (pos == -1 || pos == _url.length - 1)
         {
@@ -345,7 +361,19 @@

         if (dispatchEvent(new BrowserChangeEvent(BrowserChangeEvent.APPLICATION_URL_CHANGE, false, true, _url, lastURL)))
         {
-            ExternalInterface.call("BrowserHistory.setBrowserURL", value, ExternalInterface.objectID);
+            if (!_isFirefoxMac)
+            {
+                ExternalInterface.call("BrowserHistory.setBrowserURL", value, ExternalInterface.objectID);
+            }
+            else
+            {
+                // We need to avoid updating our browser URL with ExternalInterface, when we are
+                // running within Firefox/Mac.  Player rendering bug logged 2276859.
+                var urlReq:URLRequest = new URLRequest("javascript:BrowserHistory.setBrowserURL('" +
+                    value + "','" + ExternalInterface.objectID + "');");
+                navigateToURL( urlReq , "_self" );
+            }
+
             dispatchEvent(new BrowserChangeEvent(BrowserChangeEvent.URL_CHANGE, false, false, _url, lastURL));
         }
         else


Transferred from the Adobe Open Source Subversion Repository

Revision: 22083
Author:   aharui@adobe.com
Date:     2011-08-18T22:58:59.545709Z

Log Message:
-----------
Fix a Marshall Plan bug.  Popups were disturbing focus handling in the main app after they went way.

QE notes: none
Doc notes: none
Bugs: SDK-31246
Reviewer: Darrell
Tests run: Mustella Cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -352,6 +352,7 @@
 import mx.managers.IFocusManagerContainer;
 import mx.managers.IMarshalSystemManager;
 import mx.managers.ISystemManager;
+import mx.managers.SystemManagerProxy;
 import mx.utils.NameUtil;
 import mx.utils.SecurityUtil;

@@ -451,6 +452,7 @@
 	 */
 	public function removeFocusManager(f:IFocusManagerContainer):void
 	{
+        deactivate(f);
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2364
Author:   dloverin@adobe.com
Date:     2008-07-03T19:28:33.960263Z

Log Message:
-----------
Fixed SDK-15983.

Bugs: SDK-15983
QA: Yes
Reviewer: Alex

SystemManagerProxy.as
    Removed overrides for addEventListener, removeEventListener. The proxy was seeing mouse downs in the application and activating itself.

Modified Paths:
--------------
/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -163,25 +163,6 @@
 		}
 	}

-    /**
-     *  @inheritDoc
-     */
-	override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false,
-											priority:int=0, useWeakReference:Boolean=false):void
-	{
-		super.addEventListener(type, listener, useCapture, priority, useWeakReference);
-		_systemManager.addEventListener(type, listener, useCapture, priority, useWeakReference);
-	}
-
-    /**
-     *  @inheritDoc
-     */
-	override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
-	{
-		super.removeEventListener(type, listener, useCapture);
-		_systemManager.removeEventListener(type, listener, useCapture);
-	}
-
 	/**
 	 *  @inheritDoc
 	 */


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

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

 package mx.validators
 {


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10355
Author:   dsubrama@adobe.com
Date:     2009-09-17T20:50:21.870117Z

Log Message:
-----------
Coordinated check-in of SDK and FXGUtils integration for the bitmap-related changes for FXG 2.0 compliancy. This includes several API changes documented below:

1. BitmapGraphic is now BitmapImage in FXG. All this requires is changing the mapping in fxg-manifest.xml
2. BitmapGraphic and BitmapFill's resizeMode property is renamed to fillMode
3. BitmapResizeMode const class is now named BitmapFillMode
4. BitmapFillMode's noScale enum is now called clip
5. Border's backgroundImageResizeMode style is now called backgroundImageFillMode

QE notes: Joan's updated tests
Doc notes: Yes - the API renames needs to be reflected in the documentation
Bugs: N/A
Reviewer: Evtim for SDK, Corey for FXGUtils stuff
Tests run: FXG static and runtime
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/fills/BitmapFillNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/text/AbstractTextNode.java</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/FirstBaselineOffset.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRichTextLeafNode.java</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/ResizeMode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/examples/BitmapImageExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/text/AbstractCharacterTextNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/GripperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v1_0_Handler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/RestoreButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/halo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/strokes/AbstractStrokeNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacCloseButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/FillMode.java</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapResizeMode.as" copyfrom-rev="10282" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ImageHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RectNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGException_en.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/LinkTarget.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacMinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacMaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/CloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/AbstractFXGNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/GraphicContentNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRichTextNode.java</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/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/BitmapGraphicNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v2_0_Handler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGConstants.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/VerticalAlign.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/LinkNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
+++ frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as
@@ -21,7 +21,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public final class BitmapResizeMode
+public final class BitmapFillMode
 {
     /**
      *  The bitmap ends at the edge of the region.
@@ -31,7 +31,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public static const NOSCALE:String = "noScale";
+    public static const CLIP:String = "clip";

     /**
      *  The bitmap is repeated to fill the region.


Transferred from the Adobe Open Source Subversion Repository

Revision: 11706
Author:   egeorgie@adobe.com
Date:     2009-11-12T18:51:24.777959Z

Log Message:
-----------
Fix http://bugs.adobe.com/jira/browse/SDK-23379 SpriteVisualElement uses AdvancedLayoutFeatures too eagerly

Fix: don't allocate layoutFeatures when default scale is 1.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Jason, Corey
Tests run: checkintests, mustella
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -216,6 +216,7 @@
 			{
 				_layoutFeatures.stretchX = 1;
 				_layoutFeatures.stretchY = 1;
+                invalidateTransform();
 			}
 		}
 		else
@@ -227,14 +228,16 @@
 			var sx:Number = measuredWidth != 0 ? _width / measuredWidth : 1;
 			var sy:Number = measuredHeight != 0 ? _height / measuredHeight : 1;

-			if (_layoutFeatures == null)
-				initAdvancedLayoutFeatures();
-
-			_layoutFeatures.stretchX = sx;
-			_layoutFeatures.stretchY = sy;
+            if (sx != 1 || sy != 1 || _layoutFeatures)
+            {
+    			if (_layoutFeatures == null)
+    				initAdvancedLayoutFeatures();
+
+    			_layoutFeatures.stretchX = sx;
+    			_layoutFeatures.stretchY = sy;
+                invalidateTransform();
+            }
 		}
-
-		invalidateTransform();
 	}

 	/**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6889
Author:   jimurphy@adobe.com
Date:     2009-05-13T17:26:30.489086Z

Log Message:
-----------
Merged beta1 revisions 6855,6865,6868,6870,6873,6888 -> trunk

checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/kick-build.txt</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/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -1058,6 +1058,21 @@
             // then go ahead and capture values for it
             if (!(target is IUIComponent) && !(target is IGraphicElement))
                 continue;
+
+            // cache transform center at captureStartValues time; this will
+            // force captureEndValues to use the transform center
+            var computedTransformCenter:Vector3D;
+            if (!setStartValues && transformCenterPerTarget[target] !== undefined)
+            {
+                computedTransformCenter = transformCenterPerTarget[target];
+            }
+            else
+            {
+                computedTransformCenter = computeTransformCenterForTarget(target);
+                if (setStartValues)
+                    transformCenterPerTarget[target] = computedTransformCenter;
+            }
+
             valueMap = setStartValues ? propChanges[i].start : propChanges[i].end;
             if (valueMap.translationX === undefined ||
                 valueMap.translationY === undefined ||
@@ -1066,19 +1081,6 @@
                 // TODO (chaase): do we really need this?
                 propChanges[i].stripUnchangedValues = false;

-                var computedTransformCenter:Vector3D;
-                // cache transform center at captureStartValues time; this will
-                // force captureEndValues to use the transform center
-                if (!setStartValues && transformCenterPerTarget[target] !== undefined)
-                {
-                    computedTransformCenter = transformCenterPerTarget[target];
-                }
-                else
-                {
-                    computedTransformCenter = computeTransformCenterForTarget(target);
-                    if (setStartValues)
-                        transformCenterPerTarget[target] = computedTransformCenter;
-                }
                 target.transformPointToParent(computedTransformCenter, xformPosition,
                     null);
                 valueMap.translationX = xformPosition.x;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7053
Author:   egeorgie@adobe.com
Date:     2009-05-19T04:01:43.055157Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-21194 [ASDoc] VerticalLayout documentation issues, http://bugs.adobe.com/jira/browse/SDK-21189 [ASDoc] HorizontalLayout documentation issues, http://bugs.adobe.com/jira/browse/SDK-21179 [ASDoc] spark.components.Button Button ASDoc issues, http://bugs.adobe.com/jira/browse/SDK-21192 [ASDoc] for BasicLayout need some clarification, add extra information, http://bugs.adobe.com/jira/browse/SDK-19538 UIComponent's includeInLayout property needs documentation.

Fix: update asdoc comments.

QE Notes: None
Doc Notes: None
Bugs: SDK-21194, SDK-21189, SDK-21179, SDK-21192, SDK-19538
Reviewer:
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.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/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -240,7 +240,7 @@
     [Inspectable(category="General")]

     /**
-     *  Number of pixels between the container's left border
+     *  Number of pixels between the container's left edge
      *  and the left edge of the first layout element.
      *
      *  @default 0
@@ -276,7 +276,7 @@
     [Inspectable(category="General")]

     /**
-     *  Number of pixels between the container's right border
+     *  Number of pixels between the container's right edge
      *  and the right edge of the last layout element.
      *
      *  @default 0
@@ -312,8 +312,8 @@
     [Inspectable(category="General")]

     /**
-     *  All layout elements will have at least this much space
-     *  above them.
+     *  The minimum number of pixels between the container's top edge and
+     *  the top of all the container's layout elements.
      *
      *  @default 0
      *
@@ -348,8 +348,8 @@
     [Inspectable(category="General")]

     /**
-     *  All layout elements will have at least this much space
-     *  below them.
+     *  The minimum number of pixels between the container's bottom edge and
+     *  the bottom of all the container's layout elements.
      *
      *  @default 0
      *
@@ -384,7 +384,7 @@
     [Inspectable(category="General")]

     /**
-     *  The measured size of this layout will be big enough to display
+     *  The measured size of this layout will be wide enough to display
      *  the first requestedColumnCount layout elements.
      *
      *  If requestedColumnCount is -1, then the measured
@@ -477,13 +477,13 @@
     [Inspectable(category="General")]

     /**
-     *  Specifies that layout elements are to be allocated their
+     *  Specifies whether or not layout elements are to be allocated their
      *  preferred width.
      *
      *  Setting this property to false specifies fixed width columns.
      *
      *  If false, the actual width of each layout element will be
-     *  the value value of columnWidth.
+     *  the value of columnWidth.
      *
      *  Setting this property to false causes the layout to ignore
      *  layout elements' percentWidth.
@@ -671,14 +671,14 @@
     }

     /**
+     *  Returns 1.0 if the specified index is completely in view, 0.0 if
+     *  it's not, and a value in between if the index is partially
+     *  within the view.
+     *
      *  An index is "in view" if the corresponding non-null layout element is
      *  within the horizontal limits of the layout target's scrollRect
      *  and included in the layout.
      *
-     *  Returns 1.0 if the specified index is completely in view, 0.0 if
-     *  it's not, and a value in between if the index is partially
-     *  within the view.
-     *
      *  If the specified index is partially within the view, the
      *  returned value is the percentage of the corresponding
      *  layout element that's visible.


Widened DMemory columns

Widened DMemory columns

--- src/Displays/DMemory.as
+++ src/Displays/DMemory.as
@@ -43,7 +43,7 @@

 		protected function makePages():void {
 			var BORDER:int = 10;
-			var COL_WIDTH:int = 175;
+			var COL_WIDTH:int = 225;
 			var COL_HEIGHT:int = bg.height - BORDER * 2;
 			var ROW_HEIGHT:int = 20;
 			var ROWS:int = COL_HEIGHT / (ROW_HEIGHT + BORDER / 2);


Add wss:// (SSL/TLS) support using as3crypto_patched.

Warning: RFC2817 proxy support interferes with the SSL Socket
(hurlant) so I've disabled RFC2817 proxy support.

--- flash-src/WebSocket.as
+++ flash-src/WebSocket.as
@@ -16,6 +16,10 @@
 import mx.events.*;
 import mx.utils.*;
 import com.adobe.net.proxies.RFC2817Socket;
+import com.hurlant.crypto.tls.TLSSocket;
+import com.hurlant.crypto.tls.TLSConfig;
+import com.hurlant.crypto.tls.TLSEngine;
+import com.hurlant.crypto.tls.TLSSecurityParameters;
 import com.gsolo.encryption.MD5;

 [Event(name="message", type="WebSocketMessageEvent")]
@@ -30,7 +34,11 @@
   private static var CLOSING:int = 2;
   private static var CLOSED:int = 3;

-  private var socket:RFC2817Socket;
+  //private var rawSocket:RFC2817Socket;
+  private var rawSocket:Socket;
+  private var tlsSocket:TLSSocket;
+  private var tlsConfig:TLSConfig;
+  private var socket:Socket;
   private var main:WebSocketMain;
   private var url:String;
   private var scheme:String;
@@ -67,6 +75,7 @@
     // "Header1: xxx\r\nHeader2: yyyy\r\n"
     this.headers = headers;

+    /*
     socket = new RFC2817Socket();

     // if no proxy information is supplied, it acts like a normal Socket
@@ -74,13 +83,30 @@
     if (proxyHost != null && proxyPort != 0){
       socket.setProxyInfo(proxyHost, proxyPort);
     }
-
-    socket.addEventListener(Event.CLOSE, onSocketClose);
-    socket.addEventListener(Event.CONNECT, onSocketConnect);
-    socket.addEventListener(IOErrorEvent.IO_ERROR, onSocketIoError);
-    socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSocketSecurityError);
-    socket.addEventListener(ProgressEvent.SOCKET_DATA, onSocketData);
-    socket.connect(host, port);
+    */
+
+    ExternalInterface.call("console.log", "[WebSocket] scheme: " + scheme);
+    rawSocket = new Socket();
+
+    rawSocket.addEventListener(Event.CLOSE, onSocketClose);
+    rawSocket.addEventListener(Event.CONNECT, onSocketConnect);
+    rawSocket.addEventListener(IOErrorEvent.IO_ERROR, onSocketIoError);
+    rawSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSocketSecurityError);
+    if (scheme == "wss") {
+        tlsConfig= new TLSConfig(TLSEngine.CLIENT,
+            null, null, null, null, null,
+            TLSSecurityParameters.PROTOCOL_VERSION);
+        tlsConfig.trustSelfSignedCertificates = true;
+        tlsConfig.ignoreCommonNameMismatch = true;
+
+        tlsSocket = new TLSSocket();
+        tlsSocket.addEventListener(ProgressEvent.SOCKET_DATA, onSocketData);
+        socket = (tlsSocket as Socket);
+    } else {
+        rawSocket.addEventListener(ProgressEvent.SOCKET_DATA, onSocketData);
+        socket = (rawSocket as Socket);
+    }
+    rawSocket.connect(host, port);
   }

   public function send(data:String):int {
@@ -126,6 +152,12 @@

   private function onSocketConnect(event:Event):void {
     main.log("connected");
+
+    if (scheme == "wss") {
+        ExternalInterface.call("console.log", "[WebSocket] starting SSL/TLS");
+        tlsSocket.startTLS(rawSocket, host, tlsConfig);
+    }
+
     var hostValue:String = host + (port == 80 ? "" : ":" + port);
     var cookie:String = "";
     if (main.getCallerHost() == host) {


缓存describeType的结果，大大提高性能

缓存describeType的结果，大大提高性能

--- as3/com/netease/protobuf/TextFormat.as
+++ as3/com/netease/protobuf/TextFormat.as
@@ -12,6 +12,7 @@
 	import flash.errors.IllegalOperationError;
 	import flash.errors.IOError;
 	import flash.utils.describeType
+	import flash.utils.Dictionary;
 	import flash.utils.getDefinitionByName;
 	import flash.utils.IDataInput
 	import flash.utils.IDataOutput
@@ -22,19 +23,29 @@
 			output.writeUTFBytes("00000000".substring(0, 8 - hexString.length))
 			output.writeUTFBytes(hexString)
 		}
+		private static const allEnumValues:Dictionary = new Dictionary
 		private static function printEnum(output:IDataOutput,
 				value:int, enumType:Class):void {
-			const enumTypeDescription:XML = describeType(enumType)
-			// Not enumTypeDescription.*.@name,
-			// because haXe will replace constant to variable, WTF!
-			for each(var name:String in enumTypeDescription.*.@name) {
-				if (enumType[name] === value) {
-					output.writeUTFBytes(name)
-					return
-				}
-			}
-			throw new IOError(value + " is invalid for " +
-					enumTypeDescription.@name)
+			var enumValues:Array
+			if (enumType in allEnumValues) {
+				enumValues = allEnumValues[enumType]
+			} else {
+				const enumTypeDescription:XML = describeType(enumType)
+				// Not enumTypeDescription.*.@name,
+				// because haXe will replace all constants to variables, WTF!
+				const xmlNames:XMLList = enumTypeDescription.*.@name
+				enumValues = []
+				for each(var name:String in xmlNames) {
+					enumValues[enumType[name]] = name
+				}
+				allEnumValues[enumType] = enumValues
+			}
+			if (value in enumValues) {
+				output.writeUTFBytes(enumValues[value])
+			} else {
+				throw new IOError(value + " is invalid for " +
+						enumTypeDescription.@name)
+			}
 		}
 		private static function printBytes(output:IDataOutput,
 				value:ByteArray):void {
@@ -118,26 +129,33 @@
 				break
 			}
 		}
+		private static const allMessageFields:Dictionary = new Dictionary
 		private static function printMessageFields(output:IDataOutput,
 				message:Message,
 				printSetting:PrintSetting,
 				currentIndent:String = ""):void {
 			var isFirst:Boolean = true
 			const type:Class = Object(message).constructor
-			const description:XML = describeType(type)
+			var messageFields:XMLList
+			if (type in allMessageFields) {
+				messageFields = allMessageFields[type]
+			} else {
+				// TODO
+				const description:XML = describeType(type)
+				messageFields = description.*.
+					(0 == String(@type).search(
+						/^com.netease.protobuf.fieldDescriptors::(Repeated)?FieldDescriptor\$/) &&
+						BaseFieldDescriptor(type[@name]).name.
+								search(/^\./) == -1// Not extension
+					).@name
+				allMessageFields[type] = messageFields
+			}
+
 			// Not description.constant,
 			// because haXe will replace constant to variable, WTF!
-			for each (var fieldDescriptorName:String in description.*.
-					(0 == String(@type).search(
-					/^com.netease.protobuf.fieldDescriptors::(Repeated)?FieldDescriptor\$/)
-					).@name) {
+			for each (var fieldDescriptorName:String in messageFields) {
 				const fieldDescriptor:BaseFieldDescriptor =
 						type[fieldDescriptorName]
-				if (fieldDescriptor.name.search(/\/\./) != -1) {
-					// extend on other message
-					continue
-				}
-
 				const shortName:String = fieldDescriptor.fullName.substring(
 						fieldDescriptor.fullName.lastIndexOf('.') + 1)
 				if (fieldDescriptor.type == Array) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2878
Author:   gosmith@adobe.com
Date:     2008-08-19T01:47:49.628691Z

Log Message:
-----------
Added an ObjectUtil.getUnqualifiedClassName() utility method for use in the className getter in four classes, which previously had copy-and-paste code.

Moved the STYLE_UNINITIALIZED constant from StyleManager to StyleProtoChain, since it indicates an uninitialized style proto chain.

Reviewer: Jono
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<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/controls/NavBar.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/styles/StyleManager.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/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/mx/src/mx/controls/NavBar.as
+++ frameworks/projects/mx/src/mx/controls/NavBar.as
@@ -37,7 +37,7 @@
 import mx.events.ItemClickEvent;
 import mx.managers.ISystemManager;
 import mx.managers.SystemManager;
-import mx.styles.StyleManager;
+import mx.styles.StyleProtoChain;

 use namespace mx_internal;

@@ -426,7 +426,7 @@

         // Styles might not have been set yet, so short circuit and let
         // createChildren() handle the rest.
-        if (inheritingStyles == StyleManager.STYLE_UNINITIALIZED)
+        if (inheritingStyles == StyleProtoChain.STYLE_UNINITIALIZED)
             return;

         dispatchEvent(new Event("collectionChange"));


cleaner error handling in SValue.setProperty

--- src/aerys/minko/render/shader/SValue.as
+++ src/aerys/minko/render/shader/SValue.as
@@ -166,31 +166,16 @@
 					comps |= i + 1;
 				else if (char == "y" || char == "g")
 					comps |= (i + 1) << 4;
-				else if (char == "z" || char == "b")
+				else if (size >= 3 && (char == "z" || char == "b"))
+					comps |= (i + 1) << 8;
+				else if (size == 4 && (char == "w" || char == "a"))
+					comps |= (i + 1) << 12;
+				else
 				{
-					if (size < 3)
-					{
-						throw new Error("Unable to set the '"
-										+ char
-										+ "' component of a value of size "
-										+ size);
-
-					}
-
-					comps |= (i + 1) << 8;
-				}
-				else if (char == "w" || char == "a")
-				{
-					if (size < 4)
-					{
-						throw new Error("Unable to set the '"
-										+ char
-										+ "' component of a value of size "
-										+ size);
-
-					}
-
-					comps |= (i + 1) << 12;
+					throw new Error("Unable to set the '"
+									+ char
+									+ "' component of a value of size "
+									+ size);
 				}
 			}

@@ -230,21 +215,13 @@
 					var c : String = componentsString.charAt(i);

 					if (c == "x" || c == "r")
-					{
 						components |= 0 << (i << 2);
-					}
 					else if (size >= 2 && (c == "y" || c == "g"))
-					{
 						components |= 1 << (i << 2);
-					}
 					else if (size >= 3 && (c == "z" || c == "b"))
-					{
 						components |= 2 << (i << 2);
-					}
 					else if (size == 4 && (c == "w" || c == "a"))
-					{
 						components |= 3 << (i << 2);
-					}
 					else
 					{
 						throw new Error("Unkown component '"


fixed Mesh.properties reset twice in Mesh.copyFrom()

--- src/aerys/minko/scene/node/mesh/Mesh.as
+++ src/aerys/minko/scene/node/mesh/Mesh.as
@@ -278,7 +278,6 @@

 			name = source.name;
 			_geometry = source._geometry;
-			properties = source._properties.clone();

 			var numProviders : uint = source._bindings.numProviders;


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

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


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

--- frameworks/projects/mx/src/mx/controls/LinkButton.as
+++ frameworks/projects/mx/src/mx/controls/LinkButton.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-2007 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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: 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@1274055 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as
+++ frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as
@@ -29,6 +29,11 @@
  *

  *
  * Any other signature will result in a runtime error.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class AsyncResponder implements IResponder
 {
@@ -57,6 +62,11 @@
      *

      *  @param  token Object [optional] additional information to associate with
      *          this request.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function AsyncResponder(result:Function, fault:Function, token:Object = null)
     {
@@ -78,6 +88,11 @@
      *  received.
      *
      *  @param  data Object containing the information returned from the request.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function result(data:Object):void
     {
@@ -89,6 +104,11 @@
      *
      *  @param  info Object containing the information about the error that
      *          occured.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function fault(info:Object):void
     {


78 Fleshing out RichTextComposer

78 Fleshing out RichTextComposer

--- raw/src/org/yellcorp/debug/console/richtext/RichTextComposer.as
+++ raw/src/org/yellcorp/debug/console/richtext/RichTextComposer.as
@@ -1,7 +1,6 @@
 package org.yellcorp.debug.console.richtext
 {
 import org.yellcorp.text.TextEventUtil;
-import org.yellcorp.text.TextUtil;

 import flash.events.Event;
 import flash.events.TextEvent;
@@ -29,6 +28,13 @@
         store = new BlockStateIndex();
     }

+    public function clear():void
+    {
+        _targetField.text = "";
+        list.clear();
+        store.clear();
+    }
+
     public function appendBlock(block:TextBlock):void
     {
         var state:TextBlockState = createState(block);
@@ -63,7 +69,7 @@
         lowestInvalidBlock = null;
     }

-    public function compose():void
+    public function composeInvalid():void
     {
         var state:TextBlockState = lowestInvalidBlock;

@@ -141,7 +147,7 @@
     private function onBlockChange(event:Event):void
     {
         invalidateBlock(store.getByBlock(TextBlock(event.target)));
-        compose();
+        composeInvalid();
     }

     private function createState(block:TextBlock):TextBlockState
@@ -180,18 +186,40 @@
             head = tail = state;
         }
     }
+
+    // break the entire linked list as flash's gc isn't the
+    // most reliable with connected but unreachable objects
+    public function clear():void
+    {
+        var node:TextBlockState = head;
+        var next:TextBlockState;
+
+        while (node)
+        {
+            next = node.next;
+            node.next = null;
+            node.prev = null;
+            node = next;
+        }
+    }
 }

 internal class BlockStateIndex
 {
     private var byBlock:Dictionary;
     private var byID:Object;
-    private var nextid:uint = 0;
+    private var nextid:uint;

     public function BlockStateIndex()
+    {
+        clear();
+    }
+
+    public function clear():void
     {
         byBlock = new Dictionary();
         byID = { };
+        nextid = 0;
     }

     public function add(newState:TextBlockState):void
@@ -199,19 +227,23 @@
         byBlock[newState.textBlock] = newState;
         byID[newState.id] = newState;
     }
+
     public function remove(oldState:TextBlockState):void
     {
         delete byBlock[oldState.textBlock];
         delete byID[oldState.id];
     }
+
     public function getByBlock(block:TextBlock):TextBlockState
     {
         return byBlock[block];
     }
+
     public function getByID(id:String):TextBlockState
     {
         return byID[id];
     }
+
     public function getNewID():String
     {
         var id:String = nextid.toString(36);


add copyright notice

add copyright notice

--- src/flash/geom/Rectangle.as
+++ src/flash/geom/Rectangle.as
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2014 Mozilla Foundation
+ *
+ * Licensed 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.
+ */
+
 package flash.geom
 {
   import flash.geom.Point;


fix TriangleReference to use IndexStream.pushVector() instead of TriangleReference.push()

--- src/aerys/minko/render/geometry/stream/iterator/TriangleReference.as
+++ src/aerys/minko/render/geometry/stream/iterator/TriangleReference.as
@@ -102,7 +102,7 @@

 			// create a new triangle if it does not exist
 			if (ii >= _indexStream.length)
-				_indexStream.push(DUMMY_INDICES);
+				_indexStream.pushVector(DUMMY_INDICES);

 			_v0 = new VertexReference(vertexStream, _indexStream.get(ii));
 			_v1 = new VertexReference(vertexStream, _indexStream.get(ii + 1));


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

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

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/controls/ButtonLabelPlacement.as
+++ frameworks/projects/framework/src/mx/controls/ButtonLabelPlacement.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.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.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/primitives/supportClasses/GraphicElement.as</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/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.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/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
@@ -12,14 +12,14 @@
 package mx.graphics
 {

+import flash.display.GradientType;
 import flash.display.Graphics;
-import flash.display.GraphicsGradientFill;
+import flash.display.GraphicsGradientFill;
 import flash.display.GraphicsStroke;
-import flash.display.GradientType;
 import flash.geom.Matrix;
 import flash.geom.Rectangle;

-import mx.core.mx_internal;
+import mx.core.mx_internal;

 use namespace mx_internal;

@@ -120,7 +120,60 @@
     {
         super(weight, pixelHinting, scaleMode, caps, joints, miterLimit);
     }
-
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+	//  matrix
+	//----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set matrix(value:Matrix):void
+    {
+    	scaleX = NaN;
+    	super.matrix = value;
+    }
+
+	//----------------------------------
+    //  scaleX
+    //----------------------------------
+
+    private var _scaleX:Number;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get scaleX():Number
+    {
+        return _scaleX;
+    }
+
+    /**
+     *  @private
+     */
+    public function set scaleX(value:Number):void
+    {
+        var oldValue:Number = _scaleX;
+        if (value != oldValue && !compoundTransform)
+        {
+            _scaleX = value;
+            dispatchGradientChangedEvent("scaleX", oldValue, value);
+        }
+    }

     //--------------------------------------------------------------------------
     //
@@ -138,39 +191,20 @@
      */
     private static var commonMatrix:Matrix = new Matrix();

-    [Deprecated(replacement="LinearGradientStroke.draw()")]
-    /**
-     *  Applies the properties to the specified Graphics object.
-     *
-     *  @param g The Graphics object to which the LinearGradientStroke styles
-     *  are applied.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    override public function apply(g:Graphics):void
-    {
-        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
+    /**
+     *  @inheritdoc
+     */
+    override public function apply(graphics:Graphics, bounds:Rectangle = null):void
+	{
+		commonMatrix.identity();
+
+        graphics.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                     caps, joints, miterLimit);
-
-        g.lineGradientStyle(GradientType.LINEAR, colors,
-                            alphas, ratios, null /* matrix */,
-                            spreadMethod, interpolationMethod);
-    }
-
-    /**
-     *  @private
-     */
-    override public function draw(g:Graphics, rc:Rectangle):void
-    {
-        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
-                    caps, joints, miterLimit);
-
-        calculateTransformationMatrix(rc, commonMatrix);
-
-        g.lineGradientStyle(GradientType.LINEAR, colors,
+
+        if (bounds)
+        	calculateTransformationMatrix(bounds, commonMatrix);
+
+        graphics.lineGradientStyle(GradientType.LINEAR, colors,
                             alphas, ratios,
                             commonMatrix, spreadMethod,
                             interpolationMethod);
@@ -179,17 +213,17 @@
     /**
      *  @private
      */
-    override public function generateGraphicsStroke(rect:Rectangle):GraphicsStroke
+    override public function createGraphicsStroke(bounds:Rectangle):GraphicsStroke
     {
         // The parent class sets the gradient stroke properties common to
         // LinearGradientStroke and RadialGradientStroke
-        var graphicsStroke:GraphicsStroke = super.generateGraphicsStroke(rect);
+        var graphicsStroke:GraphicsStroke = super.createGraphicsStroke(bounds);

         if (graphicsStroke)
         {
             // Set other properties specific to this LinearGradientStroke
             GraphicsGradientFill(graphicsStroke.fill).type = GradientType.LINEAR;
-            calculateTransformationMatrix(rect, commonMatrix);
+            calculateTransformationMatrix(bounds, commonMatrix);
             GraphicsGradientFill(graphicsStroke.fill).matrix = commonMatrix;
         }


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

--- frameworks/projects/advancedgrids/src/mx/olap/CubeNodeBuilder.as
+++ frameworks/projects/advancedgrids/src/mx/olap/CubeNodeBuilder.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: 2586
Author:   jimurphy@adobe.com
Date:     2008-07-23T15:42:56.370538Z

Log Message:
-----------
Merged 3.0.x rev. [2567,2582,2584] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.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/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</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/managers/dragClasses/DragProxy.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/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/DragManagerImpl.as
@@ -537,8 +537,11 @@
 			}
 			break;
 		case "showFeedback":
-			// trace("--marshaled showFeedback for DragManagerImpl", sm, marshalEvent.value);
-			showFeedback(marshalEvent.value);
+			if (dragProxy)	// it is our drag
+			{
+				// trace("--marshaled showFeedback for DragManagerImpl", sm, marshalEvent.value);
+				showFeedback(marshalEvent.value);
+			}
 			break;
 		case "getFeedback":
 			if (dragProxy)	// it is our drag


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

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

 package spark.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
+++ frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
@@ -1,4 +1,4 @@
-package mx.filters
+package spark.filters
 {
 import flash.filters.BitmapFilter;
 import flash.filters.ConvolutionFilter;


Fix issue where sometimes "mediaPlayFrom" didn't work

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -1074,6 +1074,10 @@
 								setTimeout(startClip, 1);
 								break;
 							}
+							else //wait for seek trait
+							{
+								player.addEventListener(MediaPlayerCapabilityChangeEvent.CAN_SEEK_CHANGE, onCanSeekChange);
+							}
 						}
 					}

@@ -1191,11 +1195,7 @@
 			//player.removeEventListener (MediaPlayerCapabilityChangeEvent.CAN_SEEK_CHANGE, onCanSeekChange);
 			if (player.media != null && _mediaProxy.vo.mediaPlayFrom!=-1 && player.canSeek)
 			{
-				if (isAkamaiHD())
-				{
-
-					setTimeout(startClip, 100 );
-				}
+				setTimeout(startClip, 100 );
 			}

 		}
@@ -1209,7 +1209,7 @@
 			}
 		}

-		private function startClip () : void
+		private function startClip (event:Event = null) : void
 		{
 			if (_mediaProxy.vo.mediaPlayFrom != -1)
 			{


fixed MouseManager bind/unbind methods to check the availability of middle/right mouse button events in order to be fp11.0 compliant

--- src/aerys/minko/type/MouseManager.as
+++ src/aerys/minko/type/MouseManager.as
@@ -67,10 +67,18 @@
 			dispatcher.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
 			dispatcher.addEventListener(MouseEvent.MOUSE_DOWN, mouseLeftDownHandler);
 			dispatcher.addEventListener(MouseEvent.MOUSE_UP, mouseLeftUpHandler);
-			dispatcher.addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, mouseRightDownHandler);
-			dispatcher.addEventListener(MouseEvent.RIGHT_MOUSE_UP, mouseRightUpHandler);
-			dispatcher.addEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, mouseMiddleDownHandler);
-			dispatcher.addEventListener(MouseEvent.MIDDLE_MOUSE_UP, mouseMiddleUpHandler);
+
+			if (MouseEvent.RIGHT_CLICK != null)
+			{
+				dispatcher.addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, mouseRightDownHandler);
+				dispatcher.addEventListener(MouseEvent.RIGHT_MOUSE_UP, mouseRightUpHandler);
+			}
+
+			if (MouseEvent.MIDDLE_CLICK != null)
+			{
+				dispatcher.addEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, mouseMiddleDownHandler);
+				dispatcher.addEventListener(MouseEvent.MIDDLE_MOUSE_UP, mouseMiddleUpHandler);
+			}
 		}

 		public function unbind(dispatcher : IEventDispatcher) : void
@@ -78,10 +86,18 @@
 			dispatcher.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
 			dispatcher.removeEventListener(MouseEvent.MOUSE_DOWN, mouseLeftDownHandler);
 			dispatcher.removeEventListener(MouseEvent.MOUSE_UP, mouseLeftUpHandler);
-			dispatcher.removeEventListener(MouseEvent.RIGHT_MOUSE_DOWN, mouseRightDownHandler);
-			dispatcher.removeEventListener(MouseEvent.RIGHT_MOUSE_UP, mouseRightUpHandler);
-			dispatcher.removeEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, mouseMiddleDownHandler);
-			dispatcher.removeEventListener(MouseEvent.MIDDLE_MOUSE_UP, mouseMiddleUpHandler);
+
+			if (MouseEvent.RIGHT_CLICK != null)
+			{
+				dispatcher.removeEventListener(MouseEvent.RIGHT_MOUSE_DOWN, mouseRightDownHandler);
+				dispatcher.removeEventListener(MouseEvent.RIGHT_MOUSE_UP, mouseRightUpHandler);
+			}
+
+			if (MouseEvent.MIDDLE_CLICK != null)
+			{
+				dispatcher.removeEventListener(MouseEvent.MIDDLE_MOUSE_DOWN, mouseMiddleDownHandler);
+				dispatcher.removeEventListener(MouseEvent.MIDDLE_MOUSE_UP, mouseMiddleUpHandler);
+			}
 		}

 		private function mouseMoveHandler(event : MouseEvent) : void


Change status

Change status

--- src/ageofai/unit/utils/VillagerAI.as
+++ src/ageofai/unit/utils/VillagerAI.as
@@ -55,6 +55,7 @@
                 }

                 // Check surroundings
+                var nextToObject:Boolean;
                 for (i = 0, count = surroundings.length; i < count; i++)
                 {
                     newX = villager.position.x + surroundings[i][0];
@@ -70,6 +71,7 @@
                     var objectType:int = mapModel.map[newY][newX].objectType;
                     if (objectType != CMapNodeType.OBJECT_NULL && objectType != CMapNodeType.OBJECT_HOME)
                     {
+                        nextToObject = true;
                         nodeVO = new MapNodeVO();
                         nodeVO.pos = newPoint;
                         nodeVO.node = mapModel.map[newY][newX];
@@ -96,6 +98,11 @@
                     } while (newPoint.x < 0 || newPoint.y < 0 || newPoint.x >= mapModel.map[0].length || newPoint.y >= mapModel.map.length ||
                         !mapModel.map[newPoint.y][newPoint.x].walkable);
                 }
+                else if (nextToObject)
+                {
+                    villager.status = CVillagerStatus.HARVEST;
+                    newPoint = null;
+                }
                 else
                 {
                     // Go to object


fixed bug in logic determining when to use integer values in SimpleBinningDefinition.

--- WeaveData/src/weave/data/BinningDefinitions/SimpleBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/SimpleBinningDefinition.as
@@ -57,8 +57,14 @@
 			// clear any existing bin classifiers
 			output.removeAllObjects();

-			var nonWrapperColumn:IAttributeColumn = ColumnUtils.hack_findNonWrapperColumn(column);
-			var integerValuesOnly:Boolean = nonWrapperColumn && nonWrapperColumn.getMetadata(ColumnMetadata.DATA_TYPE) != DataType.NUMBER;
+			var integerValuesOnly:Boolean = false;
+			var nonWrapperColumn:IAttributeColumn = ColumnUtils.hack_findNonWrapperColumn(column);
+			if (nonWrapperColumn)
+			{
+				var dataType:String = nonWrapperColumn.getMetadata(ColumnMetadata.DATA_TYPE);
+				if (dataType && dataType != DataType.NUMBER)
+					integerValuesOnly = true;
+			}
 			var stats:IColumnStatistics = WeaveAPI.StatisticsCache.getColumnStatistics(column);
 			var dataMin:Number = stats.getMin();
 			var dataMax:Number = stats.getMax();


fix a bug

fix a bug

--- DragonBonesDesignPanelLib/src/core/utils/DataUtils.as
+++ DragonBonesDesignPanelLib/src/core/utils/DataUtils.as
@@ -2,6 +2,7 @@
 {
 	import dragonBones.animation.TimelineState;
 	import dragonBones.objects.DBTransform;
+	import dragonBones.utils.ConstValues;
 	import dragonBones.utils.TransformUtil;

 	import flash.geom.Matrix;
@@ -11,9 +12,6 @@

 	public class DataUtils
 	{
-		private static const HALF_PI:Number = Math.PI * 0.5;
-		private static const DOUBLE_PI:Number = Math.PI * 2;
-
 		private static const _helpMatrix:Matrix = new Matrix();

 		public static function xmlToObject(xml:XML, listNames:Vector.<String> = null):Object
@@ -245,6 +243,7 @@
 			}
 		}

+		// 计算相对父节点的相对Transform
 		private static function calculateFrameTransform(animationData:Object, armatureData:Object, boneData:Object, frameData:Object):void
 		{
 			var parentBoneData:Object = findBoneData(armatureData, boneData.parent);
@@ -458,19 +457,19 @@
 		{
 			if(keepScale)
 			{
-				matrix.a = transform.scX * Math.cos(transform.skY)
-				matrix.b = transform.scX * Math.sin(transform.skY)
-				matrix.c = -transform.scY * Math.sin(transform.skX);
-				matrix.d = transform.scY * Math.cos(transform.skX);
+				matrix.a = transform.scX * Math.cos(transform.skY*ConstValues.ANGLE_TO_RADIAN)
+				matrix.b = transform.scX * Math.sin(transform.skY*ConstValues.ANGLE_TO_RADIAN)
+				matrix.c = -transform.scY * Math.sin(transform.skX*ConstValues.ANGLE_TO_RADIAN);
+				matrix.d = transform.scY * Math.cos(transform.skX*ConstValues.ANGLE_TO_RADIAN);
 				matrix.tx = transform.x;
 				matrix.ty = transform.y;
 			}
 			else
 			{
-				matrix.a = Math.cos(transform.skY)
-				matrix.b = Math.sin(transform.skY)
-				matrix.c = -Math.sin(transform.skX);
-				matrix.d = Math.cos(transform.skX);
+				matrix.a = Math.cos(transform.skY*ConstValues.ANGLE_TO_RADIAN)
+				matrix.b = Math.sin(transform.skY*ConstValues.ANGLE_TO_RADIAN)
+				matrix.c = -Math.sin(transform.skX*ConstValues.ANGLE_TO_RADIAN);
+				matrix.d = Math.cos(transform.skX*ConstValues.ANGLE_TO_RADIAN);
 				matrix.tx = transform.x;
 				matrix.ty = transform.y;
 			}


Remove unused file SkinPlugin.as.

Remove unused file SkinPlugin.as.

--- src/goplayer/SkinPlugin.as
+++ src/goplayer/SkinPlugin.as
@@ -1,36 +0,0 @@
-package goplayer
-{
-  import flash.display.LoaderInfo
-
-  public class SkinPlugin
-  {
-    private var info : LoaderInfo
-
-    public function SkinPlugin(info : LoaderInfo)
-    {
-      this.info = info
-
-      if (!(info.content is SkinSWF))
-        debug("Error: Skin SWF must implement " + interfaceName)
-    }
-
-    private function get interfaceName() : String
-    { return getQualifiedClassName(SkinSWF) }
-
-    public function getSkin() : WrappedSkin
-    {
-      try
-        { return $getSkin() }
-      catch (error : Error)
-        { debug("Error: " + error.message)}
-
-      return null
-    }
-
-    private function $getSkin() : WrappedSkin
-    {
-      else
-        return new WrappedSkin(SkinSWF(info.content).getSkin())
-    }
-  }
-}


Add type generics to AS3 test file.

Add type generics to AS3 test file.


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

--- frameworks/projects/framework/src/mx/managers/HistoryManagerGlobals.as
+++ frameworks/projects/framework/src/mx/managers/HistoryManagerGlobals.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: 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@1273602 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.messaging.channels
 {


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

--- frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as
@@ -0,0 +1,61 @@
+/*************************************************************************
+ *
+ * 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
+{
+
+/**
+ *  The SecureHTTPChannel class is identical to the HTTPChannel class except that it uses a
+ *  secure protocol, HTTPS, to send messages to an HTTP endpoint.
+ */
+public class SecureHTTPChannel extends HTTPChannel
+{
+    //--------------------------------------------------------------------------
+    //
+    // Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Creates an new SecureHTTPChannel instance.
+     *
+	 *  @param id The id of this Channel.
+	 *
+	 *  @param uri The uri for this Channel.
+     */
+    public function SecureHTTPChannel(id:String = null, uri:String = null)
+    {
+        super(id, uri);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns the protocol for this channel (https).
+     */
+    override public function get protocol():String
+    {
+        return "https";
+    }
+}
+
+}


rename Blending.NORMAL to Blending.OPAQUE

--- src/aerys/minko/type/enum/Blending.as
+++ src/aerys/minko/type/enum/Blending.as
@@ -18,14 +18,17 @@
 	 */
 	public final class Blending
 	{
-		public static const NORMAL		: uint		= BlendingSource.ONE
+		public static const OPAQUE		: uint		= BlendingSource.ONE
 													  | BlendingDestination.ZERO;

 		public static const ALPHA		: uint		= BlendingSource.SOURCE_ALPHA
 													  | BlendingDestination.ONE_MINUS_SOURCE_ALPHA;

-		public static const ADDITIVE	: uint		= BlendingSource.SOURCE_ALPHA
-													  | BlendingDestination.ONE;
+//		public static const ADDITIVE	: uint		= BlendingSource.SOURCE_ALPHA
+//													  | BlendingDestination.ONE;
+
+        public static const ADDITIVE	: uint		= BlendingSource.DESTINATION_ALPHA
+            | BlendingDestination.ONE;

 		public static const LIGHT		: uint		= BlendingSource.ZERO
 													  | BlendingDestination.SOURCE_COLOR;


bounded check for setObject

bounded check for setObject

--- src/com/phylake/pooling/ObjectPool.as
+++ src/com/phylake/pooling/ObjectPool.as
@@ -128,7 +128,17 @@
                 _available.push(instance);

                 var f:Function;
-                while (f = _callbacks.shift()) f(getObject());
+                if (_bounded)
+                {
+                    while (_inUse.length < _maxSize && (f = _callbacks.shift()))
+                    {
+                        f(getObject());
+                    }
+                }
+                else
+                {
+                    while (f = _callbacks.shift()) f(getObject());
+                }
             }
         }


Increase version - 1.2.4

Increase version - 1.2.4

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -102,7 +102,7 @@
          * Hold OVV version. Will past to JavaScript as well $ovv.version
          */

-        public static const RELEASE_VERSION: String = "1.2.2";
+        public static const RELEASE_VERSION: String = "1.2.4";

         ////////////////////////////////////////////////////////////


updated as3 sprite naming

updated as3 sprite naming

--- helper_scripts/as3/pg/FrameExporter.as
+++ helper_scripts/as3/pg/FrameExporter.as
@@ -110,7 +110,7 @@
 			for (var fc = 0, len=frameCaches.length; fc < len; fc++){
 				startTime = getTimer();
 				frameCache = frameCaches[fc];
-				scaleText = _sizes[fc] + "x";
+				scaleText = "_"_sizes[fc] + "x_";
 				for (i=0, len=frameCache.length; i < len; i++){
 					byteArray = PNGEncoder.encode(frameCache[i]);
 					file = fileFolder.resolvePath("exports/" + this.fileName + scaleText + matchLength(i,frameCache.length) + ".png");
@@ -119,7 +119,7 @@
 					stream.writeBytes(byteArray);
 					stream.close();
 					totalSize += file.size;
-					trace(' -> Exporting Frame ' + i + 'of ' + frameCache.length + ' @' + _sizes[fc] + "x " + (file.size / 1024) + 'kb');
+					trace(' -> Exporting Frame ' + i + 'of ' + frameCache.length + ' @' + _sizes[fc] + " " + (file.size / 1024) + 'kb');
 				}
 				trace(
 					"Export Complete \n",
@@ -151,7 +151,7 @@
 			for (var fc = 0, lenfc=frameCaches.length; fc < lenfc; fc++){
 				startTime = getTimer();
 				frameCache = frameCaches[fc];
-				scaleText = _sizes[fc] + "x";
+				scaleText = _sizes[fc] + "x_";

 				frameWidth = frameCache[0].width;
 				frameHeight = frameCache[0].height;
@@ -170,7 +170,7 @@
 					bmd.copyPixels(frameCache[i], sourceRect, destPoint);
 				}
 				byteArray = PNGEncoder.encode(bmd);
-				file = fileFolder.resolvePath("exports/" + this.fileName + "_spritesheet_" + frameCache.length + "f" + scaleText + layout + ".png");
+				file = fileFolder.resolvePath("exports/" + this.fileName + "_spritesheet_" + scaleText + frameCache.length + "f_" + layout + ".png");
 				stream = new FileStream();
 				stream.open(file, FileMode.WRITE);
 				stream.writeBytes(byteArray);


不在 for 中使用 const 以便兼容旧版本的 mxmlc

不在 for 中使用 const 以便兼容旧版本的 mxmlc

--- as3/com/netease/protobuf/VarintWriter.as
+++ as3/com/netease/protobuf/VarintWriter.as
@@ -16,8 +16,8 @@
 				this[0] &= 0x7F
 			} else {
 				for (var i:uint = length; i > 0;) {
-					const l:uint = i - 1
-					const byte:uint = this[l]
+					var l:uint = i - 1
+					var byte:uint = this[l]
 					if (byte != 0x80) {
 						this[l] = byte & 0x7F
 						length = i


Transferred from the Adobe Open Source Subversion Repository

Revision: 9114
Author:   rfrishbe@adobe.com
Date:     2009-08-05T20:10:46.654656Z

Log Message:
-----------
Clarify ASDoc in ContainerMovieClip to be explicit about what type of child it can contain (an IUIComponent).  Also, make $transform in UIMovieClip mx_internal rather than public, which was just a mistake.

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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -3029,7 +3029,7 @@
     /**
      * Documentation is not currently available
      */
-    public function get $transform():flash.geom.Transform
+    mx_internal function get $transform():flash.geom.Transform
     {
         return super.transform;
     }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/core/IFactory.as
+++ frameworks/projects/framework/src/mx/core/IFactory.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.core
 {