removed RendererState.dispose()

removed RendererState.dispose()

--- src/aerys/minko/render/renderer/state/RendererState.as
+++ src/aerys/minko/render/renderer/state/RendererState.as
@@ -109,7 +109,7 @@

 		private var _renderTarget		: RenderTarget				= null;
 		private var _blending			: uint						= 0;
-		private var _shader				: ShaderRessource					= null;
+		private var _shader				: ShaderRessource			= null;
 		private var _colorMask			: uint						= 0;
 		private var _triangleCulling	: uint						= 0;
 		private var _textures			: Vector.<TextureRessource>	= new Vector.<TextureRessource>(8, true);
@@ -187,12 +187,14 @@
 		{
 			_priority = value;
 			_setFlags |= PRIORITY;
+			++_version;
 		}

 		public function set rectangle(value : Rectangle) : void
 		{
 			_rectangle = value;
 			_setFlags |= SCISSOR_RECTANGLE;
+			++_version;
 		}

 		public function set renderTarget(value : RenderTarget) : void
@@ -241,12 +243,14 @@
 		{
 			_vertexStream = value;
 			_setFlags |= VERTEX_STREAM;
+			++_version;
 		}

 		public function set indexStream(value : IndexStream) : void
 		{
 			_indexStream = value;
 			_setFlags |= INDEX_STREAM;
+			++_version;
 		}

 		public function setTextureAt(index : int, texture : TextureRessource) : void
@@ -281,14 +285,6 @@

 			_setFlags |= VERTEX_CONSTS;
 			++_version;
-		}
-
-		public function clear() : void
-		{
-			_setFlags = 0;
-			_version = 0;
-			_offsets.length = 0;
-			_numTriangles.length = 0;
 		}

 		public function prepareContext(context : Context3D, current : RendererState = null) : void
@@ -625,14 +621,12 @@
 		{
 			var state : RendererState	= FACTORY.create(temporary) as RendererState;

-			state.clear();
+			state._setFlags = 0;
+			state._version = 0;
+			state._offsets.length = 0;
+			state._numTriangles.length = 0;

 			return state;
-		}
-
-		public function dispose() : void
-		{
-			FACTORY.free(this);
 		}
 	}
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package spark.automation.delegates.skins.spark
 {


Reverted change to AsUnitCore onRunCompleted as it affects other cores.

--- asunit-4.0/src/asunit/core/AsUnitCore.as
+++ asunit-4.0/src/asunit/core/AsUnitCore.as
@@ -108,19 +108,24 @@

 			var factory:IRunnerFactory = injector.getInstance(IRunnerFactory);
 			runner = factory.runnerFor(testOrSuite);
-			runner.addEventListener(Event.COMPLETE, onRunCompleted);
+			runner.addEventListener(Event.COMPLETE, onRunnerComplete);
 			result.onRunStarted();
 			runner.run(testOrSuite, testMethodName, this.visualContext);
 		}

+        protected function onRunnerComplete(event:Event):void {
+			runner.removeEventListener(Event.COMPLETE, onRunCompleted);
+			result.onRunCompleted(result);
+			onRunCompleted();
+            dispatchEvent(event);
+        }
+
          /**
          * Subclasses can override to perform some
          * operation when the run is complete.
          */
-       protected function onRunCompleted(event:Event):void {
-			runner.removeEventListener(Event.COMPLETE, onRunCompleted);
-			result.onRunCompleted(result);
-            dispatchEvent(event);
-        }
+		protected function onRunCompleted():void {
+
+		}
 	}
 }


FLEX-28883:  Corrected the requireSelection being ignored on dataProvider's being refreshed.  It's original default behavior was to remove any selection and leave it that way.

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -1497,10 +1497,17 @@
      */
     mx_internal function dataProviderRefreshed():void
     {
-        selectedItem = undefined;
-        setSelectedIndex(NO_SELECTION, false);
-        // TODO (rfrishbe): probably don't need the setCurrentCaretIndex below
-        setCurrentCaretIndex(NO_CARET);
+        if (requireSelection == true)
+        {
+            setSelectedIndex(0, false);
+        }
+        else
+        {
+            selectedItem = undefined;
+            setSelectedIndex(NO_SELECTION, false);
+            // TODO (rfrishbe): probably don't need the setCurrentCaretIndex below
+            setCurrentCaretIndex(NO_CARET);
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10000
Author:   rfrishbe@adobe.com
Date:     2009-09-03T19:58:06.612834Z

Log Message:
-----------
Fixing up RichText for use in the FXG compiler case.  This was a fallout from yesterday's checkin moving around spark text components and re-base-classing them.  UIComponents need a parent and a nestLevel for validateXXX() calls to work where as graphic element's don't.

QE notes:-
Doc notes:-
Bugs: SDK-22981
Reviewer: Glenn, Corey
Tests run: checkintests, test case with bug
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -238,11 +238,6 @@
      *  We can optimize for a single line text reflow, which is a lot of cases.
      */
     private var _measuredOneTextLine:Boolean = false;
-
-    /**
-     *  @private
-     */
-    private var displayObjectChanged:Boolean;

     //--------------------------------------------------------------------------
     //
@@ -593,7 +588,10 @@
             var n:int = textLines.length;
             for (var i:int = 0; i < n; i++)
             {
-                textLines[i].visible = visible && designLayer.effectiveVisibility;
+                if (designLayer)
+                    textLines[i].visible = visible && designLayer.effectiveVisibility;
+                else
+                    textLines[i].visible = visible;
             }
         }


Commented out "Show data for highlighted record" right-click option

--- WeaveUI/src/weave/application/KeySetContextMenuItems.as
+++ WeaveUI/src/weave/application/KeySetContextMenuItems.as
@@ -53,7 +53,7 @@
 		private static var _addToSubsetCMI:ContextMenuItem = null;
 		private static var _removeFromSubsetCMI:ContextMenuItem = null;
 		private static var _showAllRecordsCMI:ContextMenuItem = null;
-		private static var _viewRecordCMI:ContextMenuItem = null;
+//		private static var _viewRecordCMI:ContextMenuItem = null;
 /*
 // TODO: move this clustering code to the appropriate locations: DataMiningPlatter, DataStatisticsTool
 		private static var _runClusteringonSubsetCMI:ContextMenuItem = null;
@@ -125,12 +125,12 @@
 						// if there is not a selection and something is probed, then use it for the subset
 						else if(_localProbeKeySet.keys.length > 0)
 						{
-							_viewRecordCMI.enabled = true;
-							_viewRecordCMI.caption = lang("Show data for highlighted record" + ((_localProbeKeySet.keys.length > 1)? "s" : "" ));
+//							_viewRecordCMI.enabled = true;
+//							_viewRecordCMI.caption = lang("Show data for highlighted record" + ((_localProbeKeySet.keys.length > 1)? "s" : "" ));
 							_removeFromSubsetCMI.caption = SUBSET_REMOVE_PROBE_CAPTION;
 							_createSubsetCMI.caption     = SUBSET_CREATE_PROBE_CAPTION;
 						}
-						if(_localProbeKeySet.keys.length <= 0 ) _viewRecordCMI.enabled = false;
+//						if(_localProbeKeySet.keys.length <= 0 ) _viewRecordCMI.enabled = false;

 						// add to subset only if we have a subset already and we have something selected
 						//_addToSubsetCMI.enabled    		= usingSelection && usingSubset;
@@ -270,6 +270,7 @@
 					groupName
 				);

+			/*
 			// create and add the view record(s) context menu item
 			_viewRecordCMI = CustomContextMenuManager.createAndAddMenuItemToDestination(
 				lang("Show data for highlighted record"),
@@ -293,7 +294,7 @@
 				},
 				groupName
 				);
-
+			*/
         	return true;
         }


FIXED doc comment hyperlink

FIXED doc comment hyperlink

--- actionscript/src/com/marpies/ane/onesignal/OneSignal.as
+++ actionscript/src/com/marpies/ane/onesignal/OneSignal.as
@@ -266,7 +266,7 @@
          *
          *
Extension must be initialized using OneSignal.init() before calling this method.

          *
-         * @param parameters Notification options, see OneSignal create notification REST API
+         * @param parameters Notification options, see OneSignal create notification REST API
          * @param callback Function with the following signature:
          * <listing version="3.0">
          * function callback( successResponse:Object, errorResponse:Object ):void {


Change-Id: If1aeebabf6f87991f0919810b6b918723ef61343

--- WeaveCore/src/weave/core/weave_internal.as
+++ WeaveCore/src/weave/core/weave_internal.as
@@ -28,5 +28,5 @@
 	 *
 	 * @author adufilie
 	 */
-	public namespace weave_internal = "http://www.oicweave.org/as3/weave/internal";
+	public namespace weave_internal = "http://www.openindicators.org/as3/weave/internal";
 }


Also test fileShareResult()

Also test fileShareResult()

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -261,6 +261,7 @@
 				case SteamConstants.RESPONSE_OnFileShared:
 					log("RESPONSE_OnFileShared: " + e.response);
 					if(e.response != SteamResults.OK) return;
+					log("fileShareResult() == " + Steamworks.fileShareResult());
 					apiCall = Steamworks.publishWorkshopFile("test.txt", "", _appId,
 						"Test.txt", "Test.txt", WorkshopConstants.VISIBILITY_Private,
 						["TestTag"], WorkshopConstants.FILETYPE_Community);


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

--- frameworks/projects/framework/src/mx/binding/Watcher.as
+++ frameworks/projects/framework/src/mx/binding/Watcher.as
@@ -0,0 +1,305 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+import mx.collections.errors.ItemPendingError;
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public class Watcher
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+    public function Watcher(listeners:Array = null)
+    {
+		super();
+
+        this.listeners = listeners;
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  The binding objects that are listening to this Watcher.
+     *  The standard event mechanism isn't used because it's too heavyweight.
+     */
+    protected var listeners:Array;
+
+    /**
+     *  @private
+     *  Children of this watcher are watching sub values.
+     */
+    protected var children:Array;
+
+    /**
+     *  @private
+     *  The value itself.
+     */
+    public var value:Object;
+
+    /**
+     *  @private
+     *  Keep track of cloning when used in Repeaters.
+     */
+    protected var cloneIndex:int;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  This is an abstract method that subclasses implement.
+     */
+    public function updateParent(parent:Object):void
+	{
+	}
+
+    /**
+     *  @private
+     *  Add a child to this watcher, meaning that the child
+	 *  is watching a sub value of ours.
+     */
+    public function addChild(child:Watcher):void
+    {
+        if (!children)
+            children = [ child ];
+        else
+            children.push(child);
+
+        child.updateParent(this);
+    }
+
+    /**
+     *  @private
+     *  Remove all children beginning at a starting index.
+     *  If the index is not specified, it is assumed to be 0.
+     *  This capability is used by Repeater, which must remove
+     *  cloned RepeaterItemWatchers (and their descendant watchers).
+     */
+    public function removeChildren(startingIndex:int):void
+    {
+        children.splice(startingIndex);
+    }
+
+    /**
+     *  We have probably changed, so go through
+	 *  and make sure our children are updated.
+     */
+    public function updateChildren():void
+    {
+        if (children)
+        {
+            var n:int = children.length;
+			for (var i:int = 0; i < n; ++i)
+            {
+                children[i].updateParent(this);
+            }
+        }
+    }
+
+    /**
+     *  @private
+     */
+    private function valueChanged(oldval:Object):Boolean
+    {
+        if (oldval == null && value == null)
+            return false;
+
+        var valType:String = typeof(value);
+
+		// The first check is meant to catch the delayed instantiation case
+		// where a control comes into existence but its value is still
+		// the equivalent of not having been filled in.
+        // Otherwise we simply return whether the value has changed.
+
+		if (valType == "string")
+        {
+            if (oldval == null && value == "")
+                return false;
+            else
+                return oldval != value;
+        }
+
+		if (valType == "number")
+        {
+            if (oldval == null && value == 0)
+                return false;
+            else
+                return oldval != value;
+        }
+
+		if (valType == "boolean")
+        {
+            if (oldval == null && value == false)
+                return false;
+            else
+                return oldval != value;
+        }
+
+        return true;
+    }
+
+    /**
+	 *  @private
+     */
+    protected function wrapUpdate(wrappedFunction:Function):void
+    {
+        try
+        {
+            wrappedFunction.apply(this);
+        }
+        catch(itemPendingError:ItemPendingError)
+        {
+            // The parent's value is not yet available.  This is being ignored for now -
+            // updateParent() will be called when the parent has a value.
+            value = null;
+        }
+        catch(rangeError:RangeError)
+        {
+            // The parent's value is not yet available.  This is being ignored for now -
+            // updateParent() will be called when the parent has a value.
+            value = null;
+        }
+        catch(error:Error)
+        {
+            // Certain errors are normal when executing an update, so we swallow them:
+            //   Error #1006: Call attempted on an object that is not a function.
+            //   Error #1009: null has no properties.
+            //   Error #1010: undefined has no properties.
+            //   Error #1055: - has no properties.
+            //   Error #1069: Property - not found on - and there is no default value
+            // We allow any other errors to be thrown.
+            if ((error.errorID != 1006) &&
+                (error.errorID != 1009) &&
+                (error.errorID != 1010) &&
+                (error.errorID != 1055) &&
+                (error.errorID != 1069))
+            {
+                throw error;
+            }
+        }
+    }
+
+    /**
+	 *  @private
+     *  Clone this Watcher and all its descendants.
+     *  Each clone triggers the same Bindings as the original;
+     *  in other words, the Bindings do not get cloned.
+     *
+     *  This cloning capability is used by Repeater in order
+     *  to watch the subproperties of multiple dataProvider items.
+     *  For example, suppose a repeated LinkButton's label is
+     *    {r.currentItem.firstName} {r.currentItem.lastName}
+     *  where r is a Repeater whose dataProvider is
+     *    [ { firstName: "Matt",   lastName: "Chotin" },
+     *      { firstName: "Gordon", lastName: "Smith"  } ]
+     *  The MXML compiler emits a watcher tree (one item of _watchers[])
+     *  that looks like this:
+     *    PropertyWatcher for "r"
+     *      PropertyWatcher for "dataProvider"
+     *        RepeaterItemWatcher
+     *          PropertyWatcher for "firstName"
+     *          PropertyWatcher for "lastName"
+     *  At runtime the RepeaterItemWatcher serves as a template
+     *  which gets cloned for each dataProvider item:
+     *    PropertyWatcher for "r"
+     *      PropertyWatcher for "dataProvider"
+     *        RepeaterItemWatcher               (index: null)
+     *          PropertyWatcher for "firstName" (value: null)
+     *          PropertyWatcher for "lastName"  (value: null)
+     *        RepeaterItemWatcher               (index: 0)
+     *          PropertyWatcher for "firstName" (value: "Matt")
+     *          PropertyWatcher for "lastName"  (value: "Chotin")
+     *        RepeaterItemWatcher               (index: 1)
+     *          PropertyWatcher for "firstName" (value: "Gordon")
+     *          PropertyWatcher for "lastName"  (value: "Smith")
+     */
+    protected function deepClone(index:int):Watcher
+    {
+        // Clone this watcher object itself.
+        var w:Watcher = shallowClone();
+        w.cloneIndex = index;
+
+        // Clone its listener queue.
+        if (listeners)
+        {
+            w.listeners = listeners.concat();
+        }
+
+        // Recursively clone its children.
+        if (children)
+        {
+            var n:int = children.length;
+            for (var i:int = 0; i < n; i++)
+            {
+                var clonedChild:Watcher = children[i].deepClone(index);
+                w.addChild(clonedChild);
+            }
+        }
+
+        // Return the cloned tree of watchers.
+        return w;
+    }
+
+    /**
+	 *  @private
+     *  Clone this watcher object itself, without cloning its children.
+     *  The clone is not connec
+     *  Subclasses must override this method to copy their properties.
+     */
+    protected function shallowClone():Watcher
+    {
+        return new Watcher();
+    }
+
+    /**
+	 *  @private
+     */
+    public function notifyListeners(commitEvent:Boolean):void
+    {
+        if (listeners)
+        {
+            var n:int = listeners.length;
+
+            for (var i:int = 0; i < n; i++)
+            {
+                listeners[i].watcherFired(commitEvent, cloneIndex);
+            }
+        }
+    }
+}
+
+}


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

--- frameworks/projects/framework/src/mx/states/AddChild.as
+++ frameworks/projects/framework/src/mx/states/AddChild.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: 8741
Author:   jimurphy@adobe.com
Date:     2009-07-22T21:00:56.965677Z

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

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

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

--- frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/ISOAPDecoder.as
@@ -144,7 +144,11 @@
     //--------------------------------------------------------------------------

     /**
-     * Decodes a SOAP response into a result and headers.
+     *  Decodes a SOAP response into a result and headers.
+     *
+     *  @param response The SOAP response object.
+     *
+     *  @return A SOAPResult object containing the response.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 17618
Author:   klin@adobe.com
Date:     2010-09-08T22:29:22.593203Z

Log Message:
-----------
Check to see if the element already has the right index in setElementIndex in Group. This prevents unnecessary removing and adding of the element.

QE notes: No
Doc notes: No
Bugs: SDK-26223
Reviewer: Ryan
Tests run: checkintests, Group
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -1347,6 +1347,9 @@
         // but we want to do it before removing the element
         checkForRangeError(index);

+        if (getElementIndex(element) == index)
+            return;
+
         removeElement(element);
         addElementAt(element, index);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20013
Author:   harishs@adobe.com
Date:     2011-01-31T15:32:09.255609Z

Log Message:
-----------
QE notes: Globalization changes. Full cyclone run has been done. Default locale changes and sort bug fixes since Dec 14 2010
Doc notes: ASDOC comments for all classes have been updated.
Bugs: SDK-29132 SDK-29127 SDK-28163  SDK-29075 SDK-28600 SDK-28492 SDK-28856

Reviewer: Gordon Smith, Xie Fang, Zhigang Qi
Tests run: cyclone and checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -1185,20 +1185,18 @@
         }

         if (advanceStyleClientChildren != null)
-		{
-			var nAdvanceStyleClientChildern:int =
-                                           advanceStyleClientChildren.length;
-			for (var j:int = 0; j < nAdvanceStyleClientChildern; j++)
-			{
-				var iAdvanceStyleClientChild:IAdvancedStyleClient =
-                                               advanceStyleClientChildren[j];
-
-				if (iAdvanceStyleClientChild)
-				{
-					iAdvanceStyleClientChild.styleChanged(styleProp);
-				}
-			}
-		}
+        {
+            for (var styleClient:Object in advanceStyleClientChildren)
+            {
+                var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient
+                    as IAdvancedStyleClient;
+
+                if (iAdvanceStyleClientChild)
+                {
+                    iAdvanceStyleClientChild.styleChanged(styleProp);
+                }
+            }
+        }
     }

     /**
@@ -1240,13 +1238,16 @@
         // Call this method on each non-visual StyleClient
         if (advanceStyleClientChildren != null)
         {
-            var nAdvanceStyleChildern:int = advanceStyleClientChildren.length;
-            for (var j:int = 0; j < nAdvanceStyleChildern; j++)
-            {
-                if (advanceStyleClientChildren[j].inheritingStyles !=
+            for (var styleClient:Object in advanceStyleClientChildren)
+            {
+                var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient
+                    as IAdvancedStyleClient;
+
+                if (iAdvanceStyleClientChild &&
+                    iAdvanceStyleClientChild.inheritingStyles !=
                     StyleProtoChain.STYLE_UNINITIALIZED)
                 {
-                    advanceStyleClientChildren[j].regenerateStyleCache(recursive);
+                    iAdvanceStyleClientChild.regenerateStyleCache(recursive);
                 }
             }
         }


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

--- frameworks/projects/spark/src/spark/layouts/RowAlign.as
+++ frameworks/projects/spark/src/spark/layouts/RowAlign.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Fix! Copy FLV tag when saving it to buffer

--- src/com/axis/rtspclient/RTSPClient.as
+++ src/com/axis/rtspclient/RTSPClient.as
@@ -240,7 +240,7 @@

     private function onFlvTag(tag:FLVTag):void {
       if (this.frameByFrame) {
-        this.streamBuffer.push(tag);
+        this.streamBuffer.push(tag.copy());
         dispatchEvent(new ClientEvent(ClientEvent.FRAME, tag.timestamp));
       } else {
         this.ns.appendBytes(tag.data);


comments

comments

--- src/com/phylake/pooling/ObjectPool.as
+++ src/com/phylake/pooling/ObjectPool.as
@@ -5,11 +5,11 @@
     public class ObjectPool
     {
         /**
-         * The function used to instantiate a new object.
+         * Required function used to instantiate an object.
          *
          * We could have easily taken a reference to a Class instead but this
          * allows object construction to be colocated with object reclamation
-         * in a file. This method also makes the least assumptions.
+         * in a file. This approach also makes the least assumptions.
          */
         protected var _instantiateFunction:Function;
         public function set instantiateFunction(value:Function):void
@@ -30,13 +30,13 @@
         }

         /**
-         * The function used to reset/reclaim or otherwise prepare the
+         * Required function used to reset/reclaim or otherwise prepare the
          * instance of a Class to be reused
          */
         public var reclaimFunction:Function;

         /**
-         * The function used to destroy/dispose or otherwise prepare the
+         * Optional function used to destroy/dispose or otherwise prepare the
          * instance of a Class for garbage collection
          */
         public var destroyFunction:Function;


HLSNetStream: factorize access to getter using local vars

--- src/org/mangui/hls/stream/HLSNetStream.as
+++ src/org/mangui/hls/stream/HLSNetStream.as
@@ -128,19 +128,22 @@

         /** timer function, check/update NetStream state, and append tags if needed **/
         private function _checkBuffer(e : Event) : void {
-            var buffer : Number = this.bufferLength;
+            var buffer : Number = this.bufferLength,
+                minBufferLength : Number =_bufferThresholdController.minBufferLength,
+                reachedEnd : Boolean = _streamBuffer.reachedEnd,
+                liveLoadingStalled : Boolean = _streamBuffer.liveLoadingStalled;
             // Log.info("netstream/total:" + super.bufferLength + "/" + this.bufferLength);
             // Set playback state. no need to check buffer status if seeking
             if (_seekState != HLSSeekStates.SEEKING) {
                 // check low buffer condition
                 if (buffer <= 0.1) {
-                    if (_streamBuffer.reachedEnd || _streamBuffer.liveLoadingStalled) {
+                    if (reachedEnd || liveLoadingStalled) {
                         // Last tag done? Then append sequence end.
                         super.appendBytesAction(NetStreamAppendBytesAction.END_SEQUENCE);
                         super.appendBytes(new ByteArray());
                         // reach end of playlist + playback complete (as buffer is empty).
                         // stop timer, report event and switch to IDLE mode.
-                        if(_streamBuffer.reachedEnd) {
+                        if(reachedEnd) {
                             _timer.stop();
                             CONFIG::LOGGING {
                                 Log.debug("reached end of VOD playlist, notify playback complete");
@@ -165,7 +168,7 @@
                     }
                 }
                 // if buffer len is below lowBufferLength, get into buffering state
-                if (!_streamBuffer.reachedEnd && !_streamBuffer.liveLoadingStalled && buffer < _bufferThresholdController.lowBufferLength) {
+                if (!reachedEnd && !liveLoadingStalled && buffer < _bufferThresholdController.lowBufferLength) {
                     if (_playbackState == HLSPlayStates.PLAYING) {
                         // low buffer condition and play state. switch to play buffering state
                         _setPlaybackState(HLSPlayStates.PLAYING_BUFFERING);
@@ -175,10 +178,10 @@
                     }
                 }
                 // if buffer len is above minBufferLength, get out of buffering state
-                if (buffer >= _bufferThresholdController.minBufferLength || _streamBuffer.reachedEnd || _streamBuffer.liveLoadingStalled) {
+                if (buffer >= minBufferLength || reachedEnd || liveLoadingStalled) {
                     if (_playbackState == HLSPlayStates.PLAYING_BUFFERING) {
                         CONFIG::LOGGING {
-                            Log.debug("resume playback, minBufferLength/bufferLength:"+_bufferThresholdController.minBufferLength.toFixed(2) + "/" + buffer.toFixed(2));
+                            Log.debug("resume playback, minBufferLength/bufferLength:"+minBufferLength.toFixed(2) + "/" + buffer.toFixed(2));
                         }
                         // resume playback in case it was paused, this can happen if buffer was in really low condition (less than 0.1s)
                         super.resume();


StreamBuffer.as: optimize getbuflen()

StreamBuffer.as: optimize getbuflen()

--- src/org/mangui/hls/stream/StreamBuffer.as
+++ src/org/mangui/hls/stream/StreamBuffer.as
@@ -585,23 +585,13 @@
         }

         private function getbuflen(tags : Vector.<FLVData>, startIdx : uint) : Number {
-            var min_pts : Number = 0;
-            var max_pts : Number = 0;
-            var continuity : int = -1;
-            var len : Number = 0;
-
-            for (var i : uint = startIdx; i < tags.length; i++) {
-                var data : FLVData = tags[i];
-                if (data.continuity != continuity) {
-                    len += (max_pts - min_pts);
-                    min_pts = data.tag.pts;
-                    continuity = data.continuity;
-                } else {
-                    max_pts = data.tag.pts;
-                }
-            }
-            len += (max_pts - min_pts);
-            return len / 1000;
+            if (tags.length > startIdx) {
+                var start_pos : Number = tags[startIdx].position + tags[startIdx].sliding;
+                var end_pos : Number = tags[tags.length - 1].position + tags[tags.length - 1].sliding;
+                return (end_pos - start_pos);
+            } else {
+                return 0;
+            }
         }

         /** return total buffered duration since seek() call, needed to compute live playlist sliding  */


add get(), set(), duplicateVertex() and deleteVertex() to the IVertexStream interface

--- src/aerys/minko/render/geometry/stream/IVertexStream.as
+++ src/aerys/minko/render/geometry/stream/IVertexStream.as
@@ -1,8 +1,8 @@
 package aerys.minko.render.geometry.stream
 {
-	import aerys.minko.type.Signal;
 	import aerys.minko.render.geometry.stream.format.VertexComponent;
 	import aerys.minko.render.geometry.stream.format.VertexFormat;
+	import aerys.minko.type.Signal;

 	public interface IVertexStream
 	{
@@ -11,9 +11,20 @@

 		function get changed()			: Signal;
 		function get boundsChanged()	: Signal;
+
+		function get(index 		: uint,
+					 component 	: VertexComponent 	= null,
+					 offset 	: uint 				= 0) : Number;
+
+		function set(index 		: uint,
+					 value 		: Number,
+					 component 	: VertexComponent 	= null,
+					 offset 	: uint 				= 0) : void;

+		function deleteVertex(index : uint) : IVertexStream;
+		function duplicateVertex(index : uint) : IVertexStream;
+
 		function disposeLocalData(waitForUpload : Boolean = true) : void;
-		function deleteVertexByIndex(index : uint) : Boolean;
 		function getStreamByComponent(component : VertexComponent) : VertexStream;
 		function dispose() : void;
 	}


Prevented forceHttpIfMismatch defaulting to false on HTTPS domains

--- src/org/mangui/hls/HLS.as
+++ src/org/mangui/hls/HLS.as
@@ -375,11 +375,6 @@
         /* set stage */
         public function set stage(stage : Stage) : void {
             _stage = stage;
-
-			HLSSettings.forceHttpIfMismatch =
-				(Capabilities.playerType == 'ActiveX' || Capabilities.playerType == 'PlugIn')
-				&& /^http:\/\//.test(stage.loaderInfo.url);
-
             this.dispatchEvent(new HLSEvent(HLSEvent.STAGE_SET));
         }


Cut down on the verbosity, but leave these in for now, there's surely a few bugs left.

--- tamarin-central/thane/flash/net/Socket.as
+++ tamarin-central/thane/flash/net/Socket.as
@@ -51,7 +51,7 @@
         _port = port;

         _state = ST_WAITING;
-        trace("Socket:connect() switching to ST_WAITING...");
+//        trace("Socket:connect() switching to ST_WAITING...");
     }

     public function close () :void
@@ -80,7 +80,7 @@
                 wrote = nb_write(_oBuf);
             }
             if (read > 0 || wrote > 0) {
-                trace("Socket:heartbeat() read " + read + ", wrote " + wrote);
+//                trace("Socket:heartbeat() read " + read + ", wrote " + wrote);
             }

             _iBuf = massageBuffer(_iBuf);
@@ -102,10 +102,10 @@
                 _state = ST_VIRGIN;
                 break;
             case 0:
-                trace("Socket:heartbeat() trying to connect...");
+//                trace("Socket:heartbeat() trying to connect...");
                 break;
             case 1:
-                trace("Socket:heartbeat() connected!");
+//                trace("Socket:heartbeat() connected!");
                 _state = ST_CONNECTED;
                 dispatchEvent(new Event(Event.CONNECT));
                 break;


updated byteArrayToString() and fixed another stack overflow

--- WeaveJS/src/weavejs/net/URLRequestUtils.as
+++ WeaveJS/src/weavejs/net/URLRequestUtils.as
@@ -40,14 +40,14 @@

 		private function byteArrayToString(byteArray:Array):String
 		{
-			var MAX_ARGUMENTS_LENGTH:int = 4096;
+			var CHUNK_SIZE:int = 8192;
 			var n:int = byteArray.length;
-			if (n <= MAX_ARGUMENTS_LENGTH)
+			if (n <= CHUNK_SIZE)
 				return String.fromCharCode.apply(String, byteArray);
-			var str:String = "";
-			for (var i:int = 0; i < n;)
-				str += String.fromCharCode.apply(String, byteArray.slice(i, i += MAX_ARGUMENTS_LENGTH));
-			return str;
+			var strings:Array = [];
+			for (var i:int = 0; i < byteArray.length;)
+				strings.push(String.fromCharCode.apply(null, byteArray.slice(i, i += CHUNK_SIZE)));
+			return strings.join('');
 		}

 		public function request(relevantContext:Object, method:String, url:String, requestHeaders:Object, data:String, responseType:String):WeavePromise
@@ -63,7 +63,7 @@
 						switch (responseType) {
 							default:
 							case RESPONSE_TEXT:
-								return resolve(String.fromCharCode.apply(null, byteArray));
+								return resolve(byteArrayToString(byteArray));
 							case RESPONSE_JSON:
 								return resolve(JSON.parse(byteArrayToString(byteArray)));
 							case RESPONSE_BLOB:


added check to prevent infinite loop

added check to prevent infinite loop

--- WeaveUISpark/src/weave/utils/BitmapText.as
+++ WeaveUISpark/src/weave/utils/BitmapText.as
@@ -39,6 +39,7 @@
 	{
 		public function BitmapText()
 		{
+			//TODO - remove this and use bitmap rotation
 			_textField.embedFonts = true; // without this, rotated text is not possible.

 			textFormat.font = DEFAULT_FONT_FAMILY;
@@ -122,6 +123,7 @@
 			if (verticalAlign == "center")
 				verticalAlign = VERTICAL_ALIGN_MIDDLE;

+			//TODO - remove this and use bitmap rotation
 			// If the font isn't embedded, we won't see anything.
 			// Use the default font if the specified one isn't embedded.
 			var app:UIComponent = WeaveAPI.topLevelApplication as UIComponent;
@@ -265,12 +267,16 @@
 				{
 					// remember the original height we want to preserve
 					var originalHeight:Number = _textField.textHeight;
+					var prevWidth:Number = -1;
 					// resize text field to be the appropriate width.
 					// setting width equal to textWidth causes the words to wrap differently.
 					// this may cause the text to become more compact without changing textHeight.
 					// keep doing this as long as the textWidth changes and height is the same (text becomes more compact).
-					while (_textField.width > _textField.textWidth && _textField.textHeight == originalHeight)
+					while (_textField.width > _textField.textWidth && _textField.textHeight == originalHeight && _textField.width != prevWidth)
+					{
+						prevWidth = _textField.width;
 						_textField.width = _textField.textWidth;
+					}
 					// textHeight is now different.  increase the width until textHeight becomes originalHeight.
 					while (_textField.textHeight > originalHeight)
 					{


- bugfix: CSS cleanup wrongly removed spaces before colons, causing pseudo classes to always be collated with the preceding part of the declaration

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@594 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/css/CSS.as
+++ src/reprise/css/CSS.as
@@ -587,7 +587,6 @@
 				split("> ").join(">").						// remove spaces around child selector
 				split(" >").join(">").						// remove spaces around child selector
 				split(">").join("> ").						// bring child selector into defined state
-				split(" :").join(":").						// remove spaces before colons
 				split(" ,").join(",").						// remove spaces before commas
 				split(", ").join(",").						// remove spaces after commas
 				split(" ;").join(";").						// remove spaces before semicolons


Added workaround for HierarchicalViewCursor bug.

--- WeaveUI/src/weave/ui/CustomTree.as
+++ WeaveUI/src/weave/ui/CustomTree.as
@@ -78,6 +78,16 @@
 				horizontalScrollPolicy = hspolicy;
 		}

+		override protected function seekPositionSafely(index:int):Boolean
+		{
+			// "iterator" is a HierarchicalViewCursor, and its movePrevious()/moveNext()/seek() functions do not work if "current" is null.
+			// To work around the problem, we create a new cursor.
+			if (iterator && iterator.current == null)
+				iterator = collection.createCursor();
+
+			return super.seekPositionSafely(index);
+		}
+
 		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
 		{
 			updateHScrollLater();
@@ -86,14 +96,14 @@
 			// This workaround requires that the data descriptor reports that the root item is a branch and it has children, even if it doesn't.
 			if (!showRoot)
 			{
-				var rootItem:Object = dataProvider is IList ? (dataProvider as IList).getItemAt(0) : null;
+				var rootItem:Object = dataProvider is IList && (dataProvider as IList).length > 0 ? (dataProvider as IList).getItemAt(0) : null;
 				if (rootItem && itemToItemRenderer(rootItem))
 				{
 					mx_internal::showRootChanged = true;
 					commitProperties();
 				}
 			}
-
+
 			super.updateDisplayList(unscaledWidth, unscaledHeight);
 		}
 	}


Increase atlas padding to 2 pixels

Increase atlas padding to 2 pixels

I'm seeing edge artifacting at 1. Maybe this should be a configurable
setting?

--- exporter/src/main/as/flump/export/Atlas.as
+++ exporter/src/main/as/flump/export/Atlas.as
@@ -21,7 +21,7 @@
 public class Atlas
 {
     // The empty border size around the right and bottom edges of each texture, to prevent bleeding
-    public static const PADDING :int = 1;
+    public static const PADDING :int = 2;

     public var name :String;


update readme

update readme

--- src/com/kemsky/$.as
+++ src/com/kemsky/$.as
@@ -4,6 +4,11 @@

     import mx.collections.ArrayCollection;

+    /**
+     * Global function that creates Stream objects
+     * @param rest objects used as source for Stream
+     * @return created Stream object
+     */
     public function $(...rest):Stream
     {
         if(rest.length == 0)


minWidth=0

--- WeaveUI/src/weave/ui/CustomComboBox.as
+++ WeaveUI/src/weave/ui/CustomComboBox.as
@@ -33,6 +33,7 @@
 	{
 		public function CustomComboBox()
 		{
+			minWidth = 0;
 			addEventListener(MouseEvent.MOUSE_DOWN, function(..._):void { setFocus(); });
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20158
Author:   jszeto@adobe.com
Date:     2011-02-05T00:01:08.906657Z

Log Message:
-----------
ComboBox Validator bug fix

http://bugs.adobe.com/jira/browse/SDK-27333 - Tabbing out of Spark ComboBox does not trigger validator

Dispatch VALUE_COMMIT on focus out, just like we do in TextInput and TextArea

QE notes: none
Doc notes: none
Bugs: SDK-27333
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -7030,6 +7030,9 @@
      */
     public function set errorString(value:String):void
     {
+        if (value == _errorString)
+            return;
+
         oldErrorString = _errorString;
         _errorString = value;

@@ -8304,8 +8307,7 @@

         if (errorStringChanged)
         {
-            errorStringChanged = false;
-
+            errorStringChanged = false;
             if (getStyle("showErrorTip"))
                 ToolTipManager.registerErrorString(this, oldErrorString, errorString);


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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLOperation.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.rpc.wsdl
 {


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

--- frameworks/projects/spark/src/spark/components/VGroup.as
+++ frameworks/projects/spark/src/spark/components/VGroup.as
@@ -9,11 +9,11 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.components
+package spark.components
 {
 import flash.events.Event;
-import mx.components.Group;
-import mx.layout.VerticalLayout;
+import spark.components.Group;
+import spark.layout.VerticalLayout;

 [IconFile("VGroup.png")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 14354
Author:   jimurphy@adobe.com
Date:     2010-02-23T15:05:48.761194Z

Log Message:
-----------
resetting the build number in version.as
The build automated process checked it in as 4.5.0.13964 when it should have been 4.5.0.0

QE notes: no
Doc notes: no
Bugs: https://bugs.adobe.com/jira/browse/SDK-25489
Reviewer: no
Tests run: ran version test included in the bug
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9716
Author:   aharui@adobe.com
Date:     2009-08-27T21:21:41.305389Z

Log Message:
-----------
PARB changes for ViewStack.  No more anticpated changes to these APIs.

QE Notes: APIs are hopefully final
Doc Notes: APIs are hopefully final
Bugs: None
Reviewer: Ryan
API Change: Yes
Is noteworthy for integration: No
tests: checkintests mustella/containers/ViewStack

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as" copyfrom-rev="9577" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISelectableList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/AccordionTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/TabNavigatorTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as" copyfrom-rev="9577" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>

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

--- frameworks/projects/mx/src/mx/containers/ViewStack.as
+++ frameworks/projects/mx/src/mx/containers/ViewStack.as
@@ -20,8 +20,8 @@
 import mx.core.ContainerCreationPolicy;
 import mx.core.EdgeMetrics;
 import mx.core.IInvalidating;
-import mx.core.INavigatable;
 import mx.core.INavigatorContent;
+import mx.core.ISelectableList;
 import mx.core.IUIComponent;
 import mx.core.ScrollPolicy;
 import mx.core.UIComponent;
@@ -233,7 +233,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-public class ViewStack extends Container implements IHistoryManagerClient, INavigatable
+public class ViewStack extends Container implements IHistoryManagerClient, ISelectableList
 {
     include "../core/Version.as";

@@ -1265,7 +1265,6 @@
         event.newIndex = newIndex;
         event.relatedObject = getChildAt(newIndex);
         dispatchEvent(event);
-        dispatchEvent(new Event("navigationChange"));
     }

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


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5309
Author:   gruehle@adobe.com
Date:     2009-03-13T21:54:51.752954Z

Log Message:
-----------
Add Spark style metadata to Halo components.

baseColor - added to:
 UIComponent
 ScrollControlBase

symbolColor - added to:
 CheckBox
 ComboBase
 Container
 DateChooser
 ScrollBar
 NumericStepper
 PopUpButton
 RadioButton
 ScrollControlBase

contentBackgroundColor - added to:
 ComboBase
 Container
 DateChooser
 NumericStepper
 ScrollControlBase
 TextInput

focusColor - added to:
 Button
 ComboBase
 Container
 DateChooser
 NumericStepper
 ScrollControlBase
 Slider
 TextInput

The remaining Spark styles - alternatingItemColors, rollOverColor, and selectionColor are already defined for the Halo components.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/controls/RadioButton.as
+++ frameworks/projects/mx/src/mx/controls/RadioButton.as
@@ -31,6 +31,19 @@
 //--------------------------------------

 include "../styles/metadata/IconColorStyles.as"
+
+/**
+ *  Color of any symbol of a component. Examples include the check mark of a CheckBox or
+ *  the arrow of a ScrollBar button.
+ *
+ *  @default 0x000000
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

 //--------------------------------------
 //  Excluded APIs


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 1218
Author:   jimurphy@adobe.com
Date:     2008-04-15T16:09:32.174552Z

Log Message:
-----------
merge 3.0.x[1069:1202] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/PNGEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaTypeRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/codec/IImageEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPFault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloColors.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RoundedRectangle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLBinding.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/soap/WebService.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/WebService.as
@@ -64,7 +64,12 @@
      * Creates a new WebService.  The destination, if specified, should match
      * an entry in services-config.xml.  If unspecified, the WebService uses
      * the DefaultHTTP destination. The rootURL is required if you
-     * intend to use a relative URL find the WSDL document for this WebService.
+     * intend to use a relative URL to find the WSDL document for this WebService.
+     *
+     * @param destination The destination of the WebService, should match a destination
+     * name in the services-config.xml file.
+     *
+     * @param rootURL The root URL of the WebService.
      */
     public function WebService(destination:String = null, rootURL:String = null)
     {
@@ -120,8 +125,11 @@
     //-------------------------------------------------------------------------

     /**
-     * Returns a Boolean value that indicates whether the WebService ready to
+     * Returns a Boolean value that indicates whether the WebService is ready to
      * load a WSDL (does it have a valid destination or wsdl specified).
+     *
+     * @return Returns true if the WebService is ready to load a WSDL;
+     * otherwise, returns false.
      */
     public function canLoadWSDL():Boolean
     {
@@ -222,6 +230,8 @@
      * Represents an instance of WebService as a String, describing
      * important properties such as the destination id and the set of
      * channels assigned.
+     *
+     * @return Returns a String representation of the WebService.
      */
     public function toString():String
     {
@@ -321,6 +331,11 @@
         return httpService;
     }

+   /**
+    * Initializes a new Operation.
+    *
+    * @param operation The Operation to initialize.
+    */
     protected function initializeOperation(operation:Operation):void
     {
         if (_wsdl != null)


Transferred from the Adobe Open Source Subversion Repository

Revision: 9914
Author:   aharui@adobe.com
Date:     2009-09-02T06:40:28.776053Z

Log Message:
-----------
Revert 9892.  Panel is used in too many other tests.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/WireframeClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/wireframe/src/WireframeClasses.as
+++ frameworks/projects/wireframe/src/WireframeClasses.as
@@ -24,7 +24,6 @@
  */
 internal class WireframeClasses
 {
-	import spark.skins.wireframe.ApplicationSkin; ApplicationSkin;
 	import spark.skins.wireframe.ButtonBarFirstButtonSkin; ButtonBarFirstButtonSkin;
 	import spark.skins.wireframe.ButtonBarLastButtonSkin; ButtonBarLastButtonSkin;
 	import spark.skins.wireframe.ButtonBarMiddleButtonSkin; ButtonBarMiddleButtonSkin;


Delete fbApplication.as

Delete fbApplication.as

--- fbApplication.as
+++ fbApplication.as
@@ -1,75 +0,0 @@
-package touchAll.demos.tronFiducialsDemo
-{
-	import flash.display.*;
-	import flash.events.Event;
-	//import flash.events.TransformGestureEvent;
-
-	import org.tuio.fiducial.*;
-
-	import touchAll.*;
-
-	/**
-	 * @author Gonçalo Amador
-	 */
-	//[SWF(width = "1280", height = "720", frameRate = "60", backgroundColor = "#ffffff")]
-	[SWF(width = "1280", height = "720", frameRate = "60", backgroundColor = "#000000")]
-	public class TronFiducialsDemo extends MovieClip implements IDefault
-	{
-		/* global variables */
-		private var tAll:TouchAll = new TouchAll(stage, 1280, 720, 0x0055ff, false);
-		//private var fm:FiducialManager = new FiducialManager(stage, 0x000000, 0x000000, 0xffffff, 0x000000, 0x00BB00, 0x000000, 0xaaaaaa);
-		private var fm:FiducialManager = new FiducialManager(stage, 0x0055ff, 0x000000, 0x0055ff, 0x000000, 0x00BB00, 0x0055ff, 0x0055ff);
-
-		public function TronFiducialsDemo():void
-		{
-			if (stage) init();
-			else addEventListener(Event.ADDED_TO_STAGE, init);
-		}
-
-		private function init(e:Event = null):void
-		{
-			removeEventListener(Event.ADDED_TO_STAGE, init);
-
-			/* LOAD STAGE CONTENT */
-			tAll.backgroundLoader();
-			//backgroundEventListenersLoader();
-
-			/* stage set up */
-			tAll.stageLoader();
-			stageEventListenersLoader();
-
-			/* tuio set up */
-			tAll.tuioLoader();
-		}
-
-		public function stageEventListenersLoader():void {
-			tAll.stageEventListenersLoader();
-			fm.stageEventListenersLoader();
-		}
-
-		public function backgroundEventListenersLoader():void {
-			trace("backgroundEventListenersLoader.");
-		}
-
-		public function fiducialADD(e:FiducialEvent):void {
-			// debug mode console message if Fiducial event captured
-			//trace("Fiducial #" + e.fiducialId + " fiducial added.");
-
-			fm.fiducialADD(e);
-		}
-
-		public function fiducialREMOVE(e:FiducialEvent):void {
-			// debug mode console message if Fiducial event captured
-			//trace("Fiducial #" + e.fiducialId + " fiducial removed.");
-
-			fm.fiducialREMOVE(e);
-		}
-
-		public function fiducialUPDATE(e:FiducialEvent):void {
-			// debug mode console message if Fiducial event captured
-			//trace("Fiducial #" + e.fiducialId + " fiducial update.");
-
-			fm.fiducialUPDATE(e);
-		}
-	}
-}


Added pickRandom()

Added pickRandom()

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

--- src/as/com/threerings/util/RandomUtil.as
+++ src/as/com/threerings/util/RandomUtil.as
@@ -36,5 +36,21 @@
         // since we're dealing with floats, it's possible that a rounding error left us here
         return 0; // TODO: largest weighted? Re-pick?
     }
+
+    /**
+     * Picks a random object from the supplied array of values. Even weight is given to all
+     * elements of the array.
+     *
+     * @return a randomly selected item or null if the array is null or of length zero.
+     */
+    public static function pickRandom (values :Array, randomFn :Function = null) :Object
+    {
+        if (values == null || values.length == 0) {
+            return null;
+        } else {
+            var rand :Number = (randomFn == null) ? Math.random() : randomFn();
+            return values[Math.floor(rand * values.length)];
+        }
+    }
 }
 }


Fix #47

Fix #47

--- as3/com/netease/protobuf/TextFormat.as
+++ as3/com/netease/protobuf/TextFormat.as
@@ -1,4 +1,4 @@
-// vim: tabstop=4 shiftwidth=4
+ // vim: tabstop=4 shiftwidth=4

 // Copyright (c) 2011 , Yang Bo All rights reserved.
 //
@@ -345,9 +345,8 @@
 					continue
 				case 0x23:/* # */
 					for (;;) {
-						switch (source.read()) {
-						case 0x0a:/* \n */
-						case 0x0d:/* \r */
+            const eol:int = source.read()
+            if (eol == 0x0a /* \n */ || eol == 0x0d /* \r */) {
 							break
 						}
 					}


simplify dom bar

simplify dom bar

--- src/battlecode/client/viewer/render/DrawDominationBar.as
+++ src/battlecode/client/viewer/render/DrawDominationBar.as
@@ -9,15 +9,11 @@

     import mx.containers.Canvas;
     import mx.containers.HBox;
-    import mx.controls.Label;
     import mx.events.ResizeEvent;

     public class DrawDominationBar extends HBox {
         private var controller:MatchController;
         private var domBarCanvas:Canvas;
-        private var leftDomLabel:Label;
-        private var rightDomLabel:Label;
-        private var lastRound:uint = 0;

         public function DrawDominationBar(controller:MatchController) {
             super();
@@ -35,23 +31,7 @@
             domBarCanvas.verticalScrollPolicy = "off";
             domBarCanvas.addEventListener(ResizeEvent.RESIZE, onResize);

-            leftDomLabel = new Label();
-            leftDomLabel.setStyle("color", 0xFFFFFF);
-            leftDomLabel.setStyle("fontSize", 14);
-            leftDomLabel.setStyle("fontWeight", "bold");
-            leftDomLabel.setStyle("textAlign", "center");
-            leftDomLabel.setStyle("fontFamily", "Courier New");
-
-            rightDomLabel = new Label();
-            rightDomLabel.setStyle("color", 0xFFFFFF);
-            rightDomLabel.setStyle("fontSize", 14);
-            rightDomLabel.setStyle("fontWeight", "bold");
-            rightDomLabel.setStyle("textAlign", "center");
-            rightDomLabel.setStyle("fontFamily", "Courier New");
-
             addChild(domBarCanvas);
-            domBarCanvas.addChild(leftDomLabel);
-            domBarCanvas.addChild(rightDomLabel);
         }

         private function onResize(e:ResizeEvent):void {
@@ -87,25 +67,14 @@

             this.domBarCanvas.graphics.clear();

-            var minDomPts:int = 10000000;
-            var sideRatio:Number = minDomPts / 10000000;
-
-            leftDomLabel.text = "(+" + minDomPts.toString() + ")";
-            leftDomLabel.y = centerHeight - (leftDomLabel.height / 2) - 10;
-            leftDomLabel.x = centerWidth - barMaxWidth * sideRatio - leftDomLabel.width / 2;
-
-            rightDomLabel.text = "(+" + minDomPts.toString() + ")";
-            rightDomLabel.y = centerHeight - (rightDomLabel.height / 2) - 10;
-            rightDomLabel.x = centerWidth + barMaxWidth * sideRatio - rightDomLabel.width / 2;
-
             // side spikes
             this.domBarCanvas.graphics.lineStyle(2, 0xFF6666);
-            this.domBarCanvas.graphics.moveTo(centerWidth - barMaxWidth * sideRatio + 1, centerHeight + 10);
-            this.domBarCanvas.graphics.lineTo(centerWidth - barMaxWidth * sideRatio + 1, centerHeight + 2);
+            this.domBarCanvas.graphics.moveTo(centerWidth - barMaxWidth + 1, centerHeight + 10);
+            this.domBarCanvas.graphics.lineTo(centerWidth - barMaxWidth + 1, centerHeight + 2);

             this.domBarCanvas.graphics.lineStyle(2, 0x9999FF);
-            this.domBarCanvas.graphics.moveTo(centerWidth + barMaxWidth * sideRatio - 1, centerHeight + 10);
-            this.domBarCanvas.graphics.lineTo(centerWidth + barMaxWidth * sideRatio - 1, centerHeight + 2);
+            this.domBarCanvas.graphics.moveTo(centerWidth + barMaxWidth - 1, centerHeight + 10);
+            this.domBarCanvas.graphics.lineTo(centerWidth + barMaxWidth - 1, centerHeight + 2);

             // domination
             var topFill:uint = (aPoints > bPoints) ? 0xFFCCCC : 0xCCCCFF;