Transferred from the Adobe Open Source Subversion Repository

Revision: 17247
Author:   cframpto@adobe.com
Date:     2010-08-10T00:41:37.491061Z

Log Message:
-----------
Worked on keyDownHandler for selection - a caret is required, fixed page-up/down, and dispatch unhandled keys to the scroller.  Fix column collection change event for REPLACE, and update the caret and hover index for all colum collection change events.

QE notes: This submit does not include the code to initialize the caret to 0,0.  That change will follow.
Doc notes:
Bugs: SDK-27322, SDK-27239, SDK-27238, SDK-27237
Reviewer: Hans
Tests run: checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -3067,6 +3067,7 @@
             const location:int = event.location;
             var itemsLength:int;

+            // this should stay in sync with updateCaretForColumnsChange
             switch (event.kind)
             {
                 case CollectionEventKind.ADD:
@@ -3111,6 +3112,59 @@

         /**
          *  @private
+         *  Update caretColumnIndex if necessary.  This method should only be
+         *  called when caretColumnIndex is valid, i.e. != -1.
+         */
+        private function updateCaretForColumnsChange(event:CollectionEvent):void
+        {
+            const oldCaretColumnIndex:int = caretColumnIndex;
+            const location:int = event.location;
+            var itemsLength:int;
+
+            // this should stay in sync with updateCaretForDataProviderChange
+
+            switch (event.kind)
+            {
+                case CollectionEventKind.ADD:
+                    if (oldCaretColumnIndex >= location)
+                        caretColumnIndex += event.items.length;
+                    break;
+
+                case CollectionEventKind.REMOVE:
+                    if (oldCaretColumnIndex >= location)
+                    {
+                        itemsLength = event.items.length;
+                        if (oldCaretColumnIndex < (location + itemsLength))
+                            caretColumnIndex = -1;
+                        else
+                            caretColumnIndex -= itemsLength;
+                    }
+                    break;
+
+                case CollectionEventKind.MOVE:
+                    const oldLocation:int = event.oldLocation;
+                    itemsLength = event.items.length;
+                    if ((oldCaretColumnIndex >= oldLocation) && (oldCaretColumnIndex < (oldLocation + itemsLength)))
+                        caretColumnIndex += location - oldLocation;
+                    break;
+
+                case CollectionEventKind.REPLACE:
+                case CollectionEventKind.UPDATE:
+                    break;
+
+                case CollectionEventKind.REFRESH:
+                case CollectionEventKind.RESET:
+                    caretRowIndex = -1;
+                    caretColumnIndex = -1;
+                    horizontalScrollPosition = 0;
+                    verticalScrollPosition = 0;
+                    break;
+            }
+        }
+
+
+        /**
+         *  @private
          *  Update hoverRowIndex if necessary.  This method should only be called when
          *  hoverRowIndex is valid, i.e. != -1.
          */
@@ -3129,16 +3183,39 @@
                     if (oldHoverRowIndex >= location)
                         hoverRowIndex = gridDimensions.getRowIndexAt(mouseX, mouseY);
                     break;
-
-
+
                 case CollectionEventKind.REFRESH:
                 case CollectionEventKind.RESET:
                     hoverRowIndex = gridDimensions.getRowIndexAt(mouseX, mouseY);
                     break;
-            }
-
-        }
-
+            }
+        }
+
+        /**
+         *  @private
+         *  Update hoverColumnIndex if necessary.  This method should only be called when
+         *  hoverColumnIndex is valid, i.e. != -1.
+         */
+        private function updateHoverForColumnsChange(event:CollectionEvent):void
+        {
+            switch (event.kind)
+            {
+                case CollectionEventKind.ADD:
+                case CollectionEventKind.REMOVE:
+                case CollectionEventKind.REPLACE:
+                case CollectionEventKind.UPDATE:
+                case CollectionEventKind.MOVE:
+                    if (hoverColumnIndex >= event.location)
+                        hoverColumnIndex = gridDimensions.getColumnIndexAt(mouseX, mouseY);
+                    break;
+
+                case CollectionEventKind.REFRESH:
+                case CollectionEventKind.RESET:
+                    hoverColumnIndex = gridDimensions.getColumnIndexAt(mouseX, mouseY);
+                    break;
+            }
+        }
+
         /**
          *  @private
          */
@@ -3174,19 +3251,20 @@
             // TBD - need to double-check all of these and perhaps move it elsewhere

             var column:GridColumn;
-            var index:int = event.location;
+            var columnIndex:int = event.location;
+            var i:int;

             switch (event.kind)
             {
                 case CollectionEventKind.ADD:
                 {
                     // Note: multiple columns may be added.
-                    while (index < columns.length)
+                    while (columnIndex < columns.length)
                     {
-                        column = GridColumn(columns.getItemAt(index));
+                        column = GridColumn(columns.getItemAt(columnIndex));
                         column.setGrid(this);
-                        column.setColumnIndex(index);
-                        index++;
+                        column.setColumnIndex(columnIndex);
+                        columnIndex++;
                     }
                     break;
                 }
@@ -3195,32 +3273,50 @@
                 {
                     // All columns between the old and new locations need to
                     // have their index updated.
-                    index = Math.min(event.oldLocation, event.location);
+                    columnIndex = Math.min(event.oldLocation, event.location);
                     var maxIndex:int = Math.max(event.oldLocation, event.location);
-                    while (index <= maxIndex)
+                    while (columnIndex <= maxIndex)
                     {
-                        column = GridColumn(columns.getItemAt(index));
-                        column.setColumnIndex(index);
-                        index++;
+                        column = GridColumn(columns.getItemAt(columnIndex));
+                        column.setColumnIndex(columnIndex);
+                        columnIndex++;
                     }
                     break;
                 }

                 case CollectionEventKind.REPLACE:
+                {
+                    var items:Array = event.items;
+                    var length:int = items.length;
+                    for (i = 0; i < length; i++)
+                    {
+                        if (items[i].oldValue is GridColumn)
+                        {
+                            column = GridColumn(items[i].oldValue);
+                            column.setGrid(null);
+                            column.setColumnIndex(-1);
+                        }
+                        if (items[i].newValue is GridColumn)
+                        {
+                            column = GridColumn(items[i].newValue);
+                            column.setGrid(this);
+                            column.setColumnIndex(columnIndex);
+                        }
+                    }
+                    break;
+                }
+
                 case CollectionEventKind.UPDATE:
                 {
-                    column = GridColumn(columns.getItemAt(index));
-                    column.setGrid(this);
-                    column.setColumnIndex(index);
                     break;
                 }

                 case CollectionEventKind.REFRESH:
                 {
-                    for (index = 0; index < columns.length; index++)
+                    for (columnIndex = 0; columnIndex < columns.length; columnIndex++)
                     {
-                        column = GridColumn(columns.getItemAt(index));
-                        column.setColumnIndex(index);
+                        column = GridColumn(columns.getItemAt(columnIndex));
+                        column.setColumnIndex(columnIndex);
                     }
                     break;
                 }
@@ -3230,7 +3326,7 @@
                     // Note: multiple columns may be removed.
                     var count:int = event.items.length;

-                    for (var i:int = 0; i < count; i++)
+                    for (i = 0; i < count; i++)
                     {
                         column = GridColumn(event.items[i]);
                         column.setGrid(null);
@@ -3238,11 +3334,11 @@
                     }

                     // Renumber the columns which follow the removed columns.
-                    while (index < columns.length)
+                    while (columnIndex < columns.length)
                     {
-                        column = GridColumn(columns.getItemAt(index));
-                        column.setColumnIndex(index);
-                        index++;
+                        column = GridColumn(columns.getItemAt(columnIndex));
+                        column.setColumnIndex(columnIndex);
+                        columnIndex++;
                     }

                     break;
@@ -3250,11 +3346,11 @@

                 case CollectionEventKind.RESET:
                 {
-                    for (index = 0; index < columns.length; index++)
+                    for (columnIndex = 0; columnIndex < columns.length; columnIndex++)
                     {
-                        column = GridColumn(columns.getItemAt(index));
+                        column = GridColumn(columns.getItemAt(columnIndex));
                         column.setGrid(this);
-                        column.setColumnIndex(index);
+                        column.setColumnIndex(columnIndex);
                     }
                     break;
                 }
@@ -3265,8 +3361,12 @@
             if (gridSelection)
                 gridSelection.columnsCollectionChanged(event);

-            // TBD: hover and caretIndex
-
+            if (caretColumnIndex != -1)
+                updateCaretForColumnsChange(event);
+
+            if (gridDimensions && hoverColumnIndex != -1)
+                updateHoverForColumnsChange(event);
+
             invalidateSize();
             invalidateDisplayList();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3601
Author:   chaase@adobe.com
Date:     2008-10-13T21:25:23.673885Z

Log Message:
-----------
Fix for sdk-17172. Extends to all effects the behavior in Flex4 effects of setting the end-state values when an effect is done, rather than the previous behavior in Flex 3 of letting an effect override these values and just animate to whatever values they set. Now this behavior is default for all effects, including Action effects, with a backward-compatible opt-out or a protected variable that subclasses of Effect can choose to override.

reviewed by Ryan
tets: checkintests

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/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Animate.as
+++ frameworks/projects/spark/src/spark/effects/Animate.as
@@ -108,8 +108,6 @@
         super(target);

         instanceClass = FxAnimateInstance;
-
-        mx_internal::applyTransitionEndProperties = true;
     }

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


moved arrow key hints

moved arrow key hints

--- src/Helpers/ArrowHelper.as
+++ src/Helpers/ArrowHelper.as
@@ -24,12 +24,11 @@
 				add(helper);
 			}

-			keys[0].x = BUFFER;
-			keys[2].x = FlxG.width - keys[2].width - BUFFER;
-			keys[0].y = keys[2].y = FlxG.height / 2 - keys[0].height / 2;
-			keys[1].y = BUFFER;
-			keys[3].y = FlxG.height - keys[3].height - BUFFER;
 			keys[1].x = keys[3].x = FlxG.width / 2 - keys[1].width / 2;
+			keys[0].y = keys[2].y = keys[3].y = FlxG.height - keys[3].height - BUFFER;
+			keys[1].y = keys[3].y - keys[1].height - BUFFER;
+			keys[0].x = keys[1].x - keys[0].width - BUFFER;
+			keys[2].x = keys[1].x + keys[1].width + BUFFER;

 			context = Context ? "SCROLLER-"+Context : null;
 			if (context && U.save.data[context])


corrected multiple guards on transition

corrected multiple guards on transition

--- src/com/phylake/fsm/impl/Fsm.as
+++ src/com/phylake/fsm/impl/Fsm.as
@@ -167,8 +167,7 @@
             var transition:ITransition;
             var foundTransition:ITransition;
             var guard:IGuard;
-            var trueGuard:IGuard;//the guard allowing a state transition
-            var submachine:IFsm;
+            var trueGuards:Boolean;

             while (event = _events.shift())
             {
@@ -183,7 +182,6 @@
                     continue;
                 }

-                trueGuard = null;
                 foundTransition = null;

                 outer: for each (transition in _eventMap[event.name])
@@ -192,21 +190,22 @@

                     if (transition.guards)
                     {
+                        trueGuards = true;
                         for each (guard in transition.guards)
                         {
-                            if (guard.evaluate(_guardFsm || this, event))
+                            trueGuards &&= guard.evaluate(_guardFsm || this, event);
+                        }
+                        if (trueGuards)
+                        {
+                            if (foundTransition)
                             {
-                                if (trueGuard)
-                                {
-                                    nTransitions(event);
-                                    // while this is an exception we have a valid
-                                    // transition from which to continue
-                                    break outer;
-                                }
-
-                                trueGuard = guard;
-                                foundTransition = transition;
+                                nTransitions(event);
+                                // while this is an exception we have a valid
+                                // transition from which to continue
+                                break outer;
                             }
+
+                            foundTransition = transition;
                         }
                     }
                     else


Resource Browser particle editor support

--- Bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ Bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -409,6 +409,10 @@
     {
         actions.Push(CreateBrowserFileActionMenu("Execute Script", "HandleBrowserRunScript", file));
     }
+    else if (file.resourceType == RESOURCE_TYPE_PARTICLEEFFECT)
+    {
+        actions.Push(CreateBrowserFileActionMenu("Edit", "HandleBrowserEditResource", file));
+    }

     actions.Push(CreateBrowserFileActionMenu("Open", "HandleBrowserOpenResource", file));

@@ -841,6 +845,14 @@
         Material@ material = cache.GetResource("Material", file.resourceKey);
         if (material !is null)
             EditMaterial(material);
+    }
+
+    if (file.resourceType == RESOURCE_TYPE_PARTICLEEFFECT)
+    {
+        Print("Resource Browser Particle Effect");
+        ParticleEffect@ particleEffect = cache.GetResource("ParticleEffect", file.resourceKey);
+        if (particleEffect !is null)
+            EditParticleEffect(particleEffect);
     }
 }


Image, Flash: Take dimensions from the loader.

For the cases when width and height cannot be extracted from the byte
array. Address #91.

--- src/flash/src/com/Image.as
+++ src/flash/src/com/Image.as
@@ -146,13 +146,20 @@
 		public function loadFromBitmapData(bd:BitmapData) : void
 		{
 			_bd = bd;
+
+			// in case we were not able to extract the width/height directly from byte array
+			if (!width || !height) {
+				width = bd.width;
+				height = bd.height;
+			}
+
 			dispatchEvent(new ODataEvent(ODataEvent.DATA));
 		}

 		public function loadFromByteArray(ba:ByteArray) : void
 		{
-			var callback:Function, info:Object;
+			var callback:Function, info:Object, loader:Loader;

 			if (JPEG.test(ba)) {
 				_img = new JPEG(ba);
@@ -167,34 +174,36 @@

 			Utils.extend(this, _img.info());
 			size = ba.length;
-
-			// Flash Players prior to version 11 didn't support high resolution images, this is a workaround
-			_prepareBitmapData(width, height, function(bd:BitmapData) : void {
-				var loader:Loader = new Loader;
-				loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event) : void {
-
-					loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, arguments.callee);
-					_img.purge(); // free some resources
-
-					// draw preloaded data onto the prepared BitmapData
-					bd.draw(e.target.content as IBitmapDrawable, null, null, null, null, true);
+
+			loader = new Loader;
+
+			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event) : void
+			{
+				loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, arguments.callee);
+
+				_prepareBitmapData(loader.width, loader.height, function(bd:BitmapData) : void {
+					if (bd) {
+						bd.draw(loader.content as IBitmapDrawable, null, null, null, null, true);
+						loadFromBitmapData(bd);
+					} else {
+						dispatchEvent(new OErrorEvent(OErrorEvent.ERROR, RuntimeError.OUT_OF_MEMORY));
+					}
+
 					loader.unload();
-					loadFromBitmapData(bd);
 					ba.clear();
 				});
-
-				loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e:*) : void {
-					ba.clear();
-					Moxie.log(e);
-				});
-
-				try {
-					loader.loadBytes(ba);
-				} catch (ex:*) {
-					Moxie.log(ex);
-
-				}
-			});
+			});
+
+			loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e:*) : void {
+				ba.clear();
+				//Moxie.log(e);
+			});
+
+			try {
+				loader.loadBytes(ba);
+			} catch (ex:*) {
+				//Moxie.log(ex);
+			}
 		}

@@ -413,7 +422,7 @@
 			});

 			bc.addEventListener(BitmapDataUnlimitedEvent.ERROR, function(e:BitmapDataUnlimitedEvent) : void {
-				dispatchEvent(new OErrorEvent(OErrorEvent.ERROR, RuntimeError.OUT_OF_MEMORY));
+				callback(null);
 			});

 			bc.create(width, height, true);


Added a doLater function in UIControl that can execute a function after a given number of frames

--- src/org/openPyro/core/UIControl.as
+++ src/org/openPyro/core/UIControl.as
@@ -515,5 +515,20 @@
 			return this;
 		}

+		/**
+		 * Calls a function after a given number of frames (defaults to 1 frame).
+		 * This a good way to break processing of large data between frames to
+		 * keep ActionScript responsive.
+		 */
+		public function doLater(callback:Function, numFrames:int=1):void{
+			var count:int=0;
+			this.addEventListener(Event.ENTER_FRAME, function(event:Event):void{
+				count++;
+				if(count==numFrames){
+					removeEventListener(Event.ENTER_FRAME, arguments.callee);
+					callback();
+				}
+			});
+		}
 	}
 }


removed unnecessary error message

removed unnecessary error message

--- WeaveData/src/weave/data/AttributeColumns/DateColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/DateColumn.as
@@ -154,11 +154,11 @@
 			_uniqueKeys.length = 0;
 			_reportedError = false;

-			if (!_dateFormat && _keys.length)
+			/*if (!_dateFormat && _keys.length)
 			{
 				_reportedError = true;
 				reportError(lang('No common date format could be determined from the column values. Attribute Column: {0}', Compiler.stringify(_metadata)));
-			}
+			}*/

 			// high priority because not much can be done without data
 			WeaveAPI.StageUtils.startTask(this, _asyncIterate, WeaveAPI.TASK_PRIORITY_HIGH, _asyncComplete);


Random whitespace was annoying me

Random whitespace was annoying me

git-svn-id: c197267f952b24206666de142881703007ca05d5@9745 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/jivesoftware/xiff/im/Roster.as
+++ src/org/jivesoftware/xiff/im/Roster.as
@@ -381,8 +381,6 @@
 			myConnection.send( tempPresence );
 		}

-
-
 		public function fetchRoster_result( resultIQ:IQ ):void
 		{
 			// Clear out the old roster
@@ -412,7 +410,6 @@
 				trace(e.getStackTrace());
 			}
 		}
-

 		public function addContact_result( resultIQ:IQ ):void
 		{
@@ -546,13 +543,10 @@
 						if(!availableItem) return;
 						updateRosterItemPresence( availableItem, aPresence );

-
 						break;
 				}
 			}
 		}
-
-

 		private function addRosterItem( jid:String, displayName:String, show:String, status:String, groups:Array, type:String, askType:String="none" ):Boolean
 		{


expanded descriptions of options

expanded descriptions of options

--- source/ASConfigC.as
+++ source/ASConfigC.as
@@ -110,7 +110,7 @@
 			console.info(" -h, --help                          Print this help message.");
 			console.info(" -v, --version                       Print the version.");
 			console.info(" -p DIRECTORY, --project DIRECTORY   Compile the asconfig.json project in the given directory. If omitted, will look for asconfig.json in current directory.");
-			console.info(" --flexHome DIRECTORY                Specify the directory where Apache FlexJS is located. Defaults to checking FLEX_HOME and PATH environment variables.");
+			console.info(" --flexHome DIRECTORY                Specify the directory where Apache FlexJS, or another supported SDK, is located. If omitted, defaults to checking FLEX_HOME and PATH environment variables.");
 		}

 		private function parseArguments():void


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/framework/src/mx/modules/IModule.as
+++ frameworks/projects/framework/src/mx/modules/IModule.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: 6322
Author:   clucier@adobe.com
Date:     2009-04-28T14:34:56.297137Z

Log Message:
-----------
Adding ITransientDeferredInstance which supports a reset() method, allowing deferred instances to be optionally cleaned up.  Compiler support added to generate an associated destruction method which conveniently nulls out any related document slots upon reset.

Added support for a new compile time attribute (itemDestructionPolicy)  for states, taking advantage of the new resettable factory.

Bugs: SDK-19828.
Reviewers: Paul Reilly, Glenn Reuhle
QE Notes: Will need new test written against the itemDestructionPolicy feature, spec has been updated.
Doc Notes: Will require new user guide writeup on itemDestructionPolicy.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/PrimitiveNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITransientDeferredInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/ArrayNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DeferredInstanceFromClass.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/StatesModel.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/StatesGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/VectorNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/DeferredInstanceFromFunction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4/.project</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/java/flex-fxgutils/.project</path>

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -16,7 +16,7 @@
 import mx.collections.IList;
 import mx.core.ContainerCreationPolicy;
 import mx.core.IChildList;
-import mx.core.IDeferredInstance;
+import mx.core.ITransientDeferredInstance;
 import mx.core.IVisualElement;
 import mx.core.IVisualElementContainer;
 import mx.core.UIComponent;
@@ -188,6 +188,55 @@
     }

     //------------------------------------
+    //  destructionPolicy
+    //------------------------------------
+
+    /**
+     *  @private
+     *  Storage for the destructionPolicy property.
+     */
+    private var _destructionPolicy:String = "never";
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The destruction policy for the items.
+     *  This property determines when the itemsFactory will destroy
+     *  the deferred instances it manages.  By default once instantiated, all
+     *  instances are cached (destruction policy of 'never').
+     *  Flex uses this property only if you specify an itemsFactory property.
+     *  The following values are valid:
+     *
+     *

+     *

+     *
Value	Meaning

+     *
never	(default)Once created never destroy
+     *        the instance.

+     *
auto	Destroy the instance when the override
+     *         no longer applies.

+     *

+     *
+     *  @default "never"
+     *
+     *  @langversion 4.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get destructionPolicy():String
+    {
+        return _destructionPolicy;
+    }
+
+    /**
+     *  @private
+     */
+    public function set destructionPolicy(value:String):void
+    {
+        _destructionPolicy = value;
+    }
+
+    //------------------------------------
     //  destination
     //------------------------------------

@@ -258,7 +307,7 @@
      *  @private
      *  Storage for the itemsFactory property.
      */
-    private var _itemsFactory:IDeferredInstance;
+    private var _itemsFactory:ITransientDeferredInstance;

     [Inspectable(category="General")]

@@ -280,7 +329,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get itemsFactory():IDeferredInstance
+    public function get itemsFactory():ITransientDeferredInstance
     {
         return _itemsFactory;
     }
@@ -288,7 +337,7 @@
     /**
      *  @private
      */
-    public function set itemsFactory(value:IDeferredInstance):void
+    public function set itemsFactory(value:ITransientDeferredInstance):void
     {
         _itemsFactory = value;

@@ -418,7 +467,7 @@
             items = itemsFactory.getInstance();
         }
     }
-
+
     /**
      *  @inheritDoc
      *
@@ -545,7 +594,24 @@
                 assignArray(dest, propertyName, new Array());
             }
         }
+
+        if (destructionPolicy == "auto")
+            destroyInstance();
+
         added = false;
+    }
+
+    /**
+     *  @private
+     */
+    private function destroyInstance():void
+    {
+        if (_itemsFactory)
+        {
+            instanceCreated = false;
+            items = null;
+            _itemsFactory.reset();
+        }
     }

     /**


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

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


Removed debugging.

Removed debugging.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@133 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/util/EZObjectMarshaller.as
+++ src/as/com/threerings/ezgame/util/EZObjectMarshaller.as
@@ -47,8 +47,6 @@
         bytes.endian = Endian.BIG_ENDIAN;
         bytes.objectEncoding = ObjectEncoding.AMF3;
         bytes.writeObject(obj);
-        Log.getLog(EZObjectMarshaller).info(
-            "The encoded bytes are: " + StringUtil.hexlate(bytes));
         return bytes;
     }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation/src/mx/automation/tabularData/AdvancedListBaseTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/AdvancedListBaseTabularData.as
@@ -0,0 +1,199 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.tabularData
+{
+
+	import mx.automation.AutomationManager;
+	import mx.automation.IAutomationTabularData;
+	import mx.collections.CursorBookmark;
+	import mx.collections.errors.ItemPendingError;
+	import mx.controls.listClasses.AdvancedListBase;
+	import mx.controls.listClasses.IListItemRenderer;
+	import mx.controls.List;
+	import mx.core.mx_internal;
+	use namespace mx_internal;
+
+	/**
+	 *  @private
+	 */
+	public class AdvancedListBaseTabularData
+		implements IAutomationTabularData
+	{
+
+		private var list:AdvancedListBase;
+
+		/**
+		 *  Constructor
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function AdvancedListBaseTabularData(l:AdvancedListBase)
+		{
+			super();
+
+			list = l;
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function get firstVisibleRow():int
+		{
+			var listItems:Array = list.rendererArray;
+
+			if (listItems && listItems.length && listItems[0].length)
+				return list.itemRendererToIndex(listItems[0][0])
+			return 0;
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function get lastVisibleRow():int
+		{
+			var listItems:Array = list.rendererArray;
+
+			if (listItems && listItems.length && listItems[0].length)
+			{
+				var row:int = listItems.length - 1;
+				var col:int = listItems[0].length - 1;
+				while (!listItems[row][col] && row >= 0 && col >= 0)
+				{
+					if (col != 0)
+						col --;
+					else if (row != 0)
+					{
+						row--;
+						col = listItems[0].length - 1;
+					}
+				}
+
+				return (row >= 0 && col >= 0
+					? list.itemRendererToIndex(listItems[row][col])
+					: numRows);
+			}
+
+			return 0;
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function get numRows():int
+		{
+			return (list.collectionIterator ? list.collectionIterator.view.length : 0);
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function get numColumns():int
+		{
+			return 1;
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function get columnNames():Array
+		{
+			return [ "" ];
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function getValues(start:uint = 0, end:uint = 0):Array
+		{
+			//empty list of column names for list, dg overrides
+			var values:Array = [ ];
+			if (list.collectionIterator)
+			{
+				var bookmark:CursorBookmark = list.collectionIterator.bookmark;
+				var i:int = start;
+				var more:Boolean = true;
+				list.collectionIterator.seek(CursorBookmark.FIRST, start);
+
+				while (more && !list.collectionIterator.afterLast &&
+					(i <= end))
+				{
+					var data:Object = list.collectionIterator.current;
+					var curRowValues:Array = getAutomationValueForData(data);
+
+					values.push(curRowValues);
+
+					try
+					{
+						more = list.collectionIterator.moveNext();
+					}
+					catch (e:ItemPendingError)
+					{
+						more = false;
+					}
+
+					++i;
+				}
+
+				// reset to previous iterator position
+				list.collectionIterator.seek(bookmark, 0);
+			}
+
+			return values;
+		}
+
+		/**
+		 *  @inheritDoc
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function getAutomationValueForData(data:Object):Array
+		{
+			return [];
+		}
+	}
+}


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

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

 package mx.charts.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19983
Author:   krsindac@adobe.com
Date:     2011-01-27T20:10:19.035178Z

Log Message:
-----------
added asdoc example for TabbedViewNavigatorApplication and ViewNavigatorApplication

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

Modified Paths:
--------------
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/ViewNavigatorApplicationExample.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigatorApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/TabbedViewNavigatorApplicationExample.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/views/ViewNavigatorApplicationHomeView.mxml</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/views</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/asdoc/en_US/spark/components/examples/views/ViewNavigatorApplicationView2.mxml</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -87,7 +87,8 @@
  *  @see spark.components.TabbedViewNavigator
  *  @see spark.components.TabBar
  *  @see spark.skins.mobile.TabbedViewNavigatorApplicationSkin
- *
+ *  @includeExample examples/TabbedViewNavigatorApplicationExample.mxml -noswf
+ *
  *  @langversion 3.0
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5


set width/height if not specified

set width/height if not specified

--- frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/layouts/VerticalColumnLayout.as
+++ frameworks/projects/HTML/asjs/src/org/apache/flex/html/beads/layouts/VerticalColumnLayout.as
@@ -24,7 +24,7 @@
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.IUIBase;
 	import org.apache.flex.core.UIBase;
-    import org.apache.flex.core.ValuesManager;
+	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.IEventDispatcher;
 	import org.apache.flex.utils.CSSUtils;
@@ -88,6 +88,9 @@
 			_numColumns = value;
 		}

+        private var lastWidth:Number = 0;
+        private var lastHeight:Number = 0;
+
         /**
          * @copy org.apache.flex.core.IBeadLayout#layout
          */
@@ -96,7 +99,11 @@
             var host:UIBase = UIBase(_strand);
 			var sw:Number = host.width;
 			var sh:Number = host.height;
-
+
+            var hostWidth:* = ValuesManager.valuesImpl.getValue(host, "width");
+            var hasWidth:Boolean = (hostWidth !== undefined) && hostWidth != lastWidth;
+            var hostHeight:* = ValuesManager.valuesImpl.getValue(host, "height");
+            var hasHeight:Boolean = (hostHeight !== undefined) && hostHeight != lastHeight;
 			var e:IUIBase;
 			var i:int;
 			var col:int = 0;
@@ -159,6 +166,7 @@
 			var curx:int = 0;
 			var cury:int = 0;
 			var maxHeight:int = 0;
+            var maxWidth:int = 0;
 			col = 0;
 			for (i = 0; i < n; i++)
             {
@@ -167,6 +175,7 @@
 				e.y = cury + data[i].mt;
 				curx += columns[col++];
                 maxHeight = Math.max(maxHeight, e.y + e.height + data[i].mb);
+                maxWidth = Math.max(maxWidth, e.x + e.width + data[i].mr);
 				if (col == numColumns)
 				{
 					cury += rows[0].rowHeight;
@@ -175,7 +184,20 @@
 					curx = 0;
 				}
 			}
-
+			if (!hasWidth && n > 0 && !isNaN(maxWidth) &&
+                (!(ValuesManager.valuesImpl.getValue(host, "left") !== undefined) &&
+                  (ValuesManager.valuesImpl.getValue(host, "right") !== undefined)))
+            {
+                lastWidth = maxWidth;
+                host.setWidth(maxWidth, true);
+            }
+            if (!hasHeight && n > 0 && !isNaN(maxHeight) &&
+                (!(ValuesManager.valuesImpl.getValue(host, "top") !== undefined) &&
+                    (ValuesManager.valuesImpl.getValue(host, "bottom") !== undefined)))
+            {
+                lastHeight = maxHeight;
+                host.setHeight(maxHeight, true);
+            }
 			return true;
 		}
 	}


tests

tests

--- src/com/kemsky/$.as
+++ src/com/kemsky/$.as
@@ -3,6 +3,7 @@
     import com.kemsky.impl.Stream;

     import mx.collections.ArrayCollection;
+    import mx.collections.IList;

     /**
      * Global function that creates Stream objects
@@ -28,6 +29,11 @@
                 //$ from array
                 return new Stream(rest[0]);
             }
+            else if(rest[0] is IList)
+            {
+                //$ from list
+                return new Stream(IList(rest[0]).toArray());
+            }
             else if(rest[0] == null || rest[0] === undefined)
             {
                 //$ empty


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

--- frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as
+++ frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.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: 19081
Author:   chiedozi@adobe.com
Date:     2010-12-06T23:15:36.296927Z

Log Message:
-----------
Prevent ActionBar and TabBar hide and show animations from occurring when the device's orientation changes
Fixed an RTE that occurred when reseting the navigators property on TabbedViewNavigator

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -63,7 +63,25 @@

         _navigationStack = new NavigationStack();
     }
-
+
+	//--------------------------------------------------------------------------
+	//
+	// Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  This private variable is used to indicate that the navigator shouldn't play
+	 *  the pending visibility animation for the chrome components that it controls
+	 *  (e.g, ActionBar and TabBar).  This flag is set to true when the stage changes
+	 *  orientation.  This allows the framework to prevent the hide/show animation
+	 *  from playing when the controls are hidden in either landscape or portrait.
+	 *
+	 *  See SDK-28541 for more information.
+	 */
+	mx_internal var disableNextControlAnimation:Boolean = false;
+
     //--------------------------------------------------------------------------
     //
     // Properties
@@ -569,9 +587,10 @@

     /**
      *  @private
-     */
+     */
     mx_internal function stage_orientationChangeHandler(event:StageOrientationEvent):void
     {
+		disableNextControlAnimation = true;
         invalidateSkinState();
     }


Point ‘View Source’ at GitHub

Point ‘View Source’ at GitHub


Add an example to the docs.

Add an example to the docs.

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

--- src/as/com/threerings/io/ObjectInputStream.as
+++ src/as/com/threerings/io/ObjectInputStream.as
@@ -70,6 +70,19 @@
      * @param checkType optional type to check the read object against
      * @return the Object read, or null.
      * @throws TypeError if the object is read successfully but is the wrong type
+     *
+     * @example
+     * <listing version="3.0">
+     *
+     * public function readObject (ins :ObjectInputStream) :void
+     * {
+     *     _scoops = ins.readObject(Array);
+     *     _coneType = ins.readObject(Cone);
+     * }
+     *
+     * protected var _scoops :Array;
+     * protected var _coneType :Cone;
+     * </listing>
      */
     public function readObject (checkType :Class = null) :*
         //throws IOError


Don't do it twice. Yes, I'm embracing making things more "actionscripty",
including some implicit coercian to a Boolean, which can actually
be quite dangerous... but only with Strings and Numbers and whatnot.

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

--- src/as/com/threerings/io/ObjectInputStream.as
+++ src/as/com/threerings/io/ObjectInputStream.as
@@ -40,9 +40,6 @@

     public function ObjectInputStream (source :IDataInput = null, clientProps :Object = null)
     {
-        if (source == null) {
-            source = new ByteArray();
-        }
         _source = source || new ByteArray();
         _cliProps = clientProps || {};
     }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 14704
Author:   deeptika@adobe.com
Date:     2010-03-11T14:45:16.496446Z

Log Message:
-----------
Merging revision 14699 from 4.x branch

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/containers/ApplicationAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkApplicationAutomationImpl.as</path>

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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/ApplicationAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/ApplicationAutomationImpl.as
@@ -237,9 +237,37 @@
 		override public function getAutomationChildren():Array
 		{
 			var am:IAutomationManager2 = Automation.automationManager2;
+			var childList:Array = new Array();
+			// get the 	 DockedApplicationBarControl details
+			var tempChildren:Array  = getDockedControlBarChildren();
+			if(tempChildren)
+			{
+				n = tempChildren.length;
+				for ( i = 0; i < n ; i++)
+				{
+					childList.push(tempChildren[i]);
+				}
+			}
+
+
+			n = application.numChildren;
+			for (i = 0; i < n ; i++)
+			{
+				childList.push(application.getChildAt(i));
+			}
+
+			tempChildren  =   application.childRepeaters;
+			if (tempChildren)
+			{
+				n = tempChildren.length;
+				for (i = 0; i < n ; i++)
+				{
+					childList.push(tempChildren[i]);
+				}
+			}

 			// we need to add popup children
-			var childList:Array = new Array();
+
 			var tempChildren1:Array  = am.getPopUpChildren();
 			var n:int = 0;
 			var i:int = 0;
@@ -249,35 +277,6 @@
 				n = tempChildren1.length;
 				for (i = 0; i < n ; i++)
 					childList.push(tempChildren1[i]);
-			}
-
-
-			// get the 	 DockedApplicationBarControl details
-			var tempChildren:Array  = getDockedControlBarChildren();
-			if(tempChildren)
-			{
-				n = tempChildren.length;
-				for ( i = 0; i < n ; i++)
-				{
-					childList.push(tempChildren[i]);
-				}
-			}
-
-
-			n = application.numChildren;
-			for (i = 0; i < n ; i++)
-			{
-				childList.push(application.getChildAt(i));
-			}
-
-			tempChildren  =   application.childRepeaters;
-			if (tempChildren)
-			{
-				n = tempChildren.length;
-				for (i = 0; i < n ; i++)
-				{
-					childList.push(tempChildren[i]);
-				}
 			}

 			return childList;


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/AxisRendererAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/AxisRendererAutomationImpl.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: 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@1251873 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.automation.delegates.charts
 {


Remove scrollrect when scrollbar goes away

--- frameworks/as/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalScrollingLayout.as
+++ frameworks/as/src/org/apache/flex/html/staticControls/beads/layouts/NonVirtualVerticalScrollingLayout.as
@@ -96,7 +96,10 @@
                 vScrollBar.addEventListener("scroll", scrollHandler);
 			}
 			else if (vScrollBar)
+			{
+				dataGroup.scrollRect = null;
 				vScrollBar.visible = false;
+			}
 		}

         private function scrollHandler(event:Event):void


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation_spark/src/spark/automation/codec/SparkDropDownListBaseSelectedItemCodec.as
+++ frameworks/projects/automation_spark/src/spark/automation/codec/SparkDropDownListBaseSelectedItemCodec.as
@@ -0,0 +1,98 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.codec
+{
+
+	import mx.automation.AutomationError;
+	import mx.automation.IAutomationManager;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationTabularData;
+	import mx.automation.codec.DefaultPropertyCodec;
+	import mx.automation.qtp.IQTPPropertyDescriptor;
+	import mx.core.mx_internal;
+
+	import spark.components.DropDownList;
+	import spark.components.supportClasses.DropDownListBase;
+	import spark.utils.LabelUtil;
+
+	use namespace mx_internal;
+
+	[ResourceBundle("automation_agent")]
+
+	/**
+	 * Translates between internal Flex List item and automation-friendly version
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 4
+	 */
+	public class SparkDropDownListBaseSelectedItemCodec extends DefaultPropertyCodec
+	{
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		public function SparkDropDownListBaseSelectedItemCodec()
+		{
+			super();
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function encode(automationManager:IAutomationManager,
+										obj:Object,
+										propertyDescriptor:IQTPPropertyDescriptor,
+										relativeParent:IAutomationObject):Object
+		{
+			// get the selected item
+			var val:Object = getMemberFromObject(automationManager, obj, propertyDescriptor);
+
+			// we need the dropDownListBase
+			var ddlst:spark.components.supportClasses.DropDownListBase = obj as spark.components.supportClasses.DropDownListBase;
+			if(val && ddlst)
+				val = LabelUtil.itemToLabel(val, ddlst.labelField, ddlst.labelFunction);
+
+			//Returning null corrupts memory sometimes
+			// Ref: http://bugs.adobe.com/jira/browse/FLEXENT-1155
+			if(!val)
+				val = "";
+			return val;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function decode(automationManager:IAutomationManager,
+										obj:Object,
+										value:Object,
+										propertyDescriptor:IQTPPropertyDescriptor,
+										relativeParent:IAutomationObject):void
+		{
+			// we expect this codec to be used for getting the property details.
+			// hence decoding is not expected to be used and not supported.
+			var message:String = resourceManager.getString(
+				"automation_agent", "notSupported");
+			throw new AutomationError(message, AutomationError.ILLEGAL_OPERATION);
+		}
+	}
+
+}


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

--- frameworks/projects/rpc/src/mx/rpc/IResponder.as
+++ frameworks/projects/rpc/src/mx/rpc/IResponder.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.rpc
 {


We do need to draw the background of ActionBarSkin

--- frameworks/projects/mobiletheme/src/spark/skins/android4/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/android4/ActionBarSkin.as
@@ -559,7 +559,7 @@
     /**
      *  @private
      */
-/*    override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
+    override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.drawBackground(unscaledWidth, unscaledHeight);

@@ -579,7 +579,7 @@
         graphics.beginGradientFill(GradientType.LINEAR, colors, backgroundAlphas, ACTIONBAR_CHROME_COLOR_RATIOS, colorMatrix);
         graphics.drawRect(0, borderSize, unscaledWidth, unscaledHeight - (borderSize * 2));
         graphics.endFill();
-    }*/
+    }

 }
 }


Removed unused line of code.

Removed unused line of code.

--- WeaveUISpark/src/weave/Weave.as
+++ WeaveUISpark/src/weave/Weave.as
@@ -40,7 +40,6 @@
 	import weave.api.core.ILinkableObject;
 	import weave.api.getCallbackCollection;
 	import weave.api.reportError;
-	import weave.api.ui.IVisTool;
 	import weave.compiler.StandardLib;
 	import weave.core.ClassUtils;
 	import weave.core.LibraryUtils;
@@ -236,7 +235,6 @@
 				// load missing plugins
 				var remaining:int = _pluginList.length;
 				var ILinkableObject_classQName:String = getQualifiedClassName(ILinkableObject);
-				var IVisTool_classQName:String = getQualifiedClassName(IVisTool);

 				function handlePlugin(event:Event, plugin:String):void
 				{


Add test for getDLCCount

Add test for getDLCCount

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -63,9 +63,10 @@
 				_appId = Steamworks.getAppID();
 				log("App ID: " + _appId);
 				log("Persona name: " + Steamworks.getPersonaName());
-				log("isCloudEnabledForApp() == "+Steamworks.isCloudEnabledForApp() );
-				log("getFileCount() == "+Steamworks.getFileCount() );
-				log("fileExists('test.txt') == "+Steamworks.fileExists('test.txt') );
+				log("isCloudEnabledForApp() == "+Steamworks.isCloudEnabledForApp());
+				log("getFileCount() == "+Steamworks.getFileCount());
+				log("fileExists('test.txt') == "+Steamworks.fileExists('test.txt'));
+				log("getDLCCount() == " + Steamworks.getDLCCount());

 				Steamworks.resetAllStats(true);
 			} catch(e:Error) {


fix the empty cookie bug

fix the empty cookie bug


If asconfig.json not found in CWD, and no alternative directory is specified, print an error message and use exit code

--- src/ASConfigC.as
+++ src/ASConfigC.as
@@ -74,8 +74,9 @@
 				else
 				{
 					//asconfig.json not found
+					console.error("asconfig.json not found in directory: " + process.cwd());
 					this.printUsage();
-					process.exit(0);
+					process.exit(1);
 				}
 			}
 			process.chdir(path.dirname(this._configFilePath));


the fileName was mistyped to fieldName

the fileName was mistyped to fieldName

--- src/flash/File.as
+++ src/flash/File.as
@@ -1,157 +1,157 @@
-package {
-	import flash.events.*;
-	import flash.utils.Timer;
-
-	import flash.net.FileReference;
-	import flash.net.URLRequest;
-
-	class File {
-		static var idCounter = 1;
-
-		static const STATUS_QUEUED:uint		= 0;
-		static const STATUS_RUNNING:uint	= 1;
-		static const STATUS_ERROR:uint		= 2;
-		static const STATUS_COMPLETE:uint	= 3;
-		static const STATUS_STOPPED:uint	= 4;
-
-		public var reference:FileReference;
-
-		private var timeout:Timer;
-
-		private var status:uint;
-
-		private var parent:FilesQueue;
-
-		public var id:uint;
-
-		public function File(queue:FilesQueue, file:FileReference):void {
-			parent		= queue;
-			reference	= file;
-			id			= idCounter++;
-			status		= STATUS_QUEUED
-
-			reference.addEventListener(ProgressEvent.PROGRESS,				parent.progress);
-			reference.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,		handleComplete);
-			reference.addEventListener(IOErrorEvent.IO_ERROR,				handleError);
-			reference.addEventListener(SecurityErrorEvent.SECURITY_ERROR,	handleError);
-
-			if (parent.options.timeLimit){
-				timeout = new Timer(parent.options.timeLimit * 1000, 1);
-				timeout.addEventListener('timer', handleTimeout);
-
-				reference.addEventListener(Event.OPEN, 				resetTimer);
-				reference.addEventListener(ProgressEvent.PROGRESS,	resetTimer);
-			}
-		}
-
-		public function destroy():void {
-			reference.removeEventListener(ProgressEvent.PROGRESS,				parent.progress);
-			reference.removeEventListener(DataEvent.UPLOAD_COMPLETE_DATA,		handleComplete);
-			reference.removeEventListener(IOErrorEvent.IO_ERROR,				handleError);
-			reference.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,	handleError);
-
-			if (timeout){
-				timeout.removeEventListener('timer', handleTimeout);
-				timeout = null;
-
-				reference.removeEventListener(Event.OPEN, 				resetTimer);
-				reference.removeEventListener(ProgressEvent.PROGRESS,	resetTimer);
-			}
-
-			reference = null;
-		}
-
-		private function resetTimer(e:Event = null):void {
-			timeout.reset();
-			timeout.start();
-		}
-
-		private function handleComplete(e:DataEvent):void {
-			complete(e.data);
-		}
-
-		private function handleError(e:ErrorEvent):void {
-			complete(e.text, e.type);
-		}
-
-		private function handleTimeout(e:TimerEvent):void {
-			if (stop()) complete('Timeout reached', 'timeout');
-		}
-
-		private function complete(text:String = null, error:String = null){
-			if (!isRunning) return;
-
-			if (timeout) timeout.stop();
-
-			if (error){
-				parent.error(error, text);
-				status = File.STATUS_ERROR;
-			} else {
-				parent.uploaded(text);
-				status = File.STATUS_COMPLETE;
-			}
-		}
-
-		public function start():Boolean {
-			if (isRunning) return false;
-
-			try {
-				status = File.STATUS_RUNNING;
-
-				reference.upload(Utils.request(parent.options), parent.options.fieldName || 'file');
-			} catch (e:Error) {
-				status = File.STATUS_ERROR;
-				stop();
-				return false;
-			}
-
-			return true;
-		}
-
-		public function stop():Boolean {
-			if (isRunning) return false;
-			if (timeout) timeout.stop();
-
-			reference.cancel();
-			status = File.STATUS_STOPPED;
-
-			return true;
-		}
-
-		public function get isRunning(){
-			return status == File.STATUS_RUNNING;
-		}
-
-		public function get isValid():Boolean {
-			if (!parent.options.allowDuplicates && parent.hasFile(this)) {
-				return false;
-			}
-
-			if (parent.options.minSize > 0 && reference.size < parent.options.minSize) {
-				return false;
-			}
-
-			if (parent.options.maxSize > 0 && reference.size > parent.options.maxSize) {
-				return false;
-			}
-
-			return true;
-		}
-
-		public function get size():uint {
-			return reference.size;
-		}
-
-		public function export():Object {
-			return {
-				id: 				id,
-				name:				reference.name,
-				size: 				reference.size,
-				modificationDate:	reference.modificationDate,
-				creationDate:		reference.creationDate,
-				extension:			reference.name.replace(/.+\.([^.]+)$/, '$1').toLowerCase(),
-				status: 			status
-			};
-		}
-	}
+package {
+	import flash.events.*;
+	import flash.utils.Timer;
+
+	import flash.net.FileReference;
+	import flash.net.URLRequest;
+
+	class File {
+		static var idCounter = 1;
+
+		static const STATUS_QUEUED:uint		= 0;
+		static const STATUS_RUNNING:uint	= 1;
+		static const STATUS_ERROR:uint		= 2;
+		static const STATUS_COMPLETE:uint	= 3;
+		static const STATUS_STOPPED:uint	= 4;
+
+		public var reference:FileReference;
+
+		private var timeout:Timer;
+
+		private var status:uint;
+
+		private var parent:FilesQueue;
+
+		public var id:uint;
+
+		public function File(queue:FilesQueue, file:FileReference):void {
+			parent		= queue;
+			reference	= file;
+			id			= idCounter++;
+			status		= STATUS_QUEUED
+
+			reference.addEventListener(ProgressEvent.PROGRESS,				parent.progress);
+			reference.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,		handleComplete);
+			reference.addEventListener(IOErrorEvent.IO_ERROR,				handleError);
+			reference.addEventListener(SecurityErrorEvent.SECURITY_ERROR,	handleError);
+
+			if (parent.options.timeLimit){
+				timeout = new Timer(parent.options.timeLimit * 1000, 1);
+				timeout.addEventListener('timer', handleTimeout);
+
+				reference.addEventListener(Event.OPEN, 				resetTimer);
+				reference.addEventListener(ProgressEvent.PROGRESS,	resetTimer);
+			}
+		}
+
+		public function destroy():void {
+			reference.removeEventListener(ProgressEvent.PROGRESS,				parent.progress);
+			reference.removeEventListener(DataEvent.UPLOAD_COMPLETE_DATA,		handleComplete);
+			reference.removeEventListener(IOErrorEvent.IO_ERROR,				handleError);
+			reference.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,	handleError);
+
+			if (timeout){
+				timeout.removeEventListener('timer', handleTimeout);
+				timeout = null;
+
+				reference.removeEventListener(Event.OPEN, 				resetTimer);
+				reference.removeEventListener(ProgressEvent.PROGRESS,	resetTimer);
+			}
+
+			reference = null;
+		}
+
+		private function resetTimer(e:Event = null):void {
+			timeout.reset();
+			timeout.start();
+		}
+
+		private function handleComplete(e:DataEvent):void {
+			complete(e.data);
+		}
+
+		private function handleError(e:ErrorEvent):void {
+			complete(e.text, e.type);
+		}
+
+		private function handleTimeout(e:TimerEvent):void {
+			if (stop()) complete('Timeout reached', 'timeout');
+		}
+
+		private function complete(text:String = null, error:String = null){
+			if (!isRunning) return;
+
+			if (timeout) timeout.stop();
+
+			if (error){
+				parent.error(error, text);
+				status = File.STATUS_ERROR;
+			} else {
+				parent.uploaded(text);
+				status = File.STATUS_COMPLETE;
+			}
+		}
+
+		public function start():Boolean {
+			if (isRunning) return false;
+
+			try {
+				status = File.STATUS_RUNNING;
+
+				reference.upload(Utils.request(parent.options), parent.options.fileName || 'file');
+			} catch (e:Error) {
+				status = File.STATUS_ERROR;
+				stop();
+				return false;
+			}
+
+			return true;
+		}
+
+		public function stop():Boolean {
+			if (isRunning) return false;
+			if (timeout) timeout.stop();
+
+			reference.cancel();
+			status = File.STATUS_STOPPED;
+
+			return true;
+		}
+
+		public function get isRunning(){
+			return status == File.STATUS_RUNNING;
+		}
+
+		public function get isValid():Boolean {
+			if (!parent.options.allowDuplicates && parent.hasFile(this)) {
+				return false;
+			}
+
+			if (parent.options.minSize > 0 && reference.size < parent.options.minSize) {
+				return false;
+			}
+
+			if (parent.options.maxSize > 0 && reference.size > parent.options.maxSize) {
+				return false;
+			}
+
+			return true;
+		}
+
+		public function get size():uint {
+			return reference.size;
+		}
+
+		public function export():Object {
+			return {
+				id: 				id,
+				name:				reference.name,
+				size: 				reference.size,
+				modificationDate:	reference.modificationDate,
+				creationDate:		reference.creationDate,
+				extension:			reference.name.replace(/.+\.([^.]+)$/, '$1').toLowerCase(),
+				status: 			status
+			};
+		}
+	}
 }


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

--- frameworks/projects/advancedgrids/src/mx/core/Version.as
+++ frameworks/projects/advancedgrids/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: 9715
Author:   aharui@adobe.com
Date:     2009-08-27T21:20:28.280781Z

Log Message:
-----------
Introduce tabFocusEnabled to IFocusManagerComponent.  This replaces tabEnabled as the way to remove a component from the tabbing loop.  tabEnabled should be set to true for any component that can receive focus, and tabFocusEnabled determines whether the FocusManager will actually give it focus.  If tabEnabled=false on a non-TextField, the player will sometimes momentarily remove focus and dispatch a focusOut when the component has focus and is later clicked on.  This is now quite common with TLF-based text components so we are forced to make this change.

QE Notes: tests using tabEnabled must now use tabFocusEnabled
Doc Notes: needs documentation
Bugs: SDK-22731
Reviewer: Gordon
API Change: Yes
Is noteworthy for integration: Yes
tests: checkintests cyclone

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.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/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.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/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/airframework/src/mx/controls/HTML.as
+++ frameworks/projects/airframework/src/mx/controls/HTML.as
@@ -366,7 +366,7 @@
         _horizontalScrollPolicy = ScrollPolicy.AUTO;
         _verticalScrollPolicy = ScrollPolicy.AUTO;

-        tabEnabled = false;
+        tabFocusEnabled = false;
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 10135
Author:   chaase@adobe.com
Date:     2009-09-10T22:38:22.666491Z

Log Message:
-----------
Fix to effects' transform center functionality. When autoCenterTransform=false, should default to the transformX/Y/Z specified in the target object. We were instead defaulting to a default Vector3D(), which is like having transfomrXYZ at (0,0,0). one-liner fix to initialize the default transform center with the target's transformXYZ values.
Also fixed unrelated typo in UIComponent asdocs.

QE notes: None
Doc notes: None
Bugs: sdk-21766
Reviewer: Jason
Tests run: checkintests, Mustella transform effects
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -2013,7 +2013,7 @@
      *  the effect occurs around the center of the target,
      *  (width/2, height/2).

      *
-     *
Seeting this property on the Spark effect class
+     *
Setting this property on the Spark effect class
      *  overrides the setting on the target component.

      *
      *  @see spark.effects.AnimateTransform#autoCenterTransform


Transferred from the Adobe Open Source Subversion Repository

Revision: 14869
Author:   cframpto@adobe.com
Date:     2010-03-19T02:24:27.434644Z

Log Message:
-----------
Merge mirroring changes 14728-14730, 14772-14775, 14806 from 4.x to trunk.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</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/spark/src/spark/components/VSlider.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/CheckBoxSkin.mxml</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/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>

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

--- frameworks/projects/framework/src/mx/core/UITextField.as
+++ frameworks/projects/framework/src/mx/core/UITextField.as
@@ -24,6 +24,7 @@
 import flash.text.TextLineMetrics;

 import mx.automation.IAutomationObject;
+import mx.core.LayoutDirection;
 import mx.managers.ISystemManager;
 import mx.managers.IToolTipManagerClient;
 import mx.managers.SystemManager;
@@ -2150,7 +2151,7 @@
         if (styleChangedFlag)
         {
             const oldMirror:Boolean = mirror;
-            mirror = getStyle("layoutDirection") == "rtl";
+            mirror = getStyle("layoutDirection") == LayoutDirection.RTL;
             if (mirror || oldMirror)
                 validateTransformMatrix();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12908
Author:   clucier@adobe.com
Date:     2009-12-14T18:09:51.772401Z

Log Message:
-----------
Added consideration of 'dynamic' types to SetProperty's pseudonym fallback mechanism.

QE notes: None
Doc notes: None
Bugs: SDK-24689
Reviewer: Glenn
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>

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

--- frameworks/projects/framework/src/mx/utils/ObjectUtil.as
+++ frameworks/projects/framework/src/mx/utils/ObjectUtil.as
@@ -809,19 +809,7 @@

                         // if the objects are dynamic they could have different
                         // # of properties and should be treated on that basis first
-                        var isDynamicObject:Boolean = true;
-                        try
-                        {
-							// this test for checking whether an object is dynamic or not is
-							// pretty hacky, but it assumes that no-one actually has a
-							// property defined called "wootHackwoot"
-                            a["wootHackwoot"];
-                        }
-                        catch (e:Error)
-                        {
-                            // our object isn't from a dynamic class
-                            isDynamicObject = false;
-                        }
+                        var isDynamicObject:Boolean = isDynamicObject(a);

                         // if it's dynamic, check to see that they have all the same properties
                         if (isDynamicObject)
@@ -1162,6 +1150,31 @@
     }

     /**
+     *  Returns true if the object is an instance of a dynamic class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function isDynamicObject(obj:Object):Boolean
+    {
+        try
+        {
+            // this test for checking whether an object is dynamic or not is
+            // pretty hacky, but it assumes that no-one actually has a
+            // property defined called "wootHackwoot"
+            obj["wootHackwoot"];
+        }
+        catch (e:Error)
+        {
+            // our object isn't from a dynamic class
+            return false;
+        }
+        return true;
+    }
+
+    /**
      *  @private
      */
     private static function internalHasMetadata(metadataInfo:Object, propName:String, metadataName:String):Boolean


Transferred from the Adobe Open Source Subversion Repository

Revision: 14124
Author:   cframpto@adobe.com
Date:     2010-02-11T17:53:35.882363Z

Log Message:
-----------
Merge 14123 from 4.x branch to trunk.

Log Message:
***********
Two additions/corrections to 14076.  Add key mappings for layoutDirection="rtl" for spark list components.  Correct type of keyCode variable so it is an uint rather than an int to match event.keyCode.

BitmapImage has a hard-coded layout direction="ltr".

QE notes: For layoutDirection="rtl" need to test LEFT, RIGHT, UP and DOWN keys.
Doc notes: None
Bugs: SDK-25330
Reviewed By: Hans
Tests run: checkintests
Is noteworthy for integration: No

Ticket Links:
***********
    http://bugs.adobe.com/jira/browse/SDK-25330

Modified Paths:
**************
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ButtonBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/CalendarLayout.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ColorPicker.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Menu.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/MenuBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Tree.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/Container.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/UIComponent.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/List.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/primitives/BitmapImage.as

Property Changed:
****************
    flex/sdk/branches/4.x/frameworks/

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks</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/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.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/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.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/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>

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

--- frameworks/projects/mx/src/mx/controls/CalendarLayout.as
+++ frameworks/projects/mx/src/mx/controls/CalendarLayout.as
@@ -2178,9 +2178,9 @@

         var daysInMonth:int = getNumberOfDaysInMonth(displayedYear, displayedMonth);

-        // If rtl layout, need to swap LEFT for RIGHT so correct action
+        // If rtl layout, need to swap LEFT and RIGHT so correct action
         // is done.
-        var keyCode:int = mapKeycodeForLayoutDirection(event);
+        var keyCode:uint = mapKeycodeForLayoutDirection(event);

         for (var i:uint = 0; i < 31; i++)
         {


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

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


added return statement to make compiler happy

Change-Id: I91489246744430fb104eee2cfd828c57e66128ed

--- WeaveJS/src/weavejs/util/JS.as
+++ WeaveJS/src/weavejs/util/JS.as
@@ -102,6 +102,7 @@
 				handleScriptError(e, 'compiling', script, paramNames, errorHandler);
 				throw e;
 			}
+			return null;
 		}

 		private static function handleScriptError(e:Error, doingWhat:String, script:String, paramNames:Array, errorHandler:Function):*


Just noticed this old sc workaround file, it is no longer needed

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


Trim space

Trim space

--- DroneAnarchy/Resources/Scripts/DroneAnarchy.as
+++ DroneAnarchy/Resources/Scripts/DroneAnarchy.as
@@ -8,9 +8,7 @@
 {

 	SetWindowTitleAndIcon();
-
-
-
+
 	CreateDebugHud();

 	SubscribeToEvents();