Transferred from the Adobe Open Source Subversion Repository

Revision: 16545
Author:   chiedozi@adobe.com
Date:     2010-06-14T03:42:53.505665Z

Log Message:
-----------
Added MobileApplication, ViewNavigator, PersistenceManager and ViewTransition prototypes to mobile components swc.

mobilecomponents and mobiletheme eclipse projects now link to airglobal.swc instead of playerglobal.swc so that MobileApplication can respond to StageOrientation and NativeApplication events.

QE notes:
Doc notes:
Bugs:
Reviewer:
Tests run: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/ViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/IViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorSection.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/events/ViewNavigatorEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/MobileApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
@@ -0,0 +1,278 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.components.supportClasses
+{
+import flash.utils.IDataInput;
+import flash.utils.IDataOutput;
+import flash.utils.IExternalizable;
+import flash.utils.getDefinitionByName;
+import flash.utils.getQualifiedClassName;
+
+import spark.components.supportClasses.ViewData;
+
+/**
+ *  ViewNavigatorSection is a data structure that represents a stack
+ *  of Screens used by navigators.  This object consists of a vector
+ *  of ScreenData objects that contain initialization properties
+ *  for a screen.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class ViewNavigatorSection implements IExternalizable
+{
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function ViewNavigatorSection()
+    {
+        super();
+
+        _source = new Vector.<ViewData>();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var _source:Vector.<ViewData>;
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  icon
+    //----------------------------------
+    /**
+     *  @private
+     */
+    private var _icon:Class;
+
+    /**
+     *  Returns the icon that should be used when this stack is represented
+     *  by a visual component.
+     */
+    public function get icon():Class
+    {
+        return _icon;
+    }
+    /**
+     *  @private
+     */
+    public function set icon(value:Class):void
+    {
+        _icon = value;
+    }
+
+    //----------------------------------
+    //  initialData
+    //----------------------------------
+    /**
+     * @private
+     */
+    private var _initialData:Object;
+
+    /**
+     * This is the initialization data to pass to the
+     * root screen when it is created.
+     */
+    public function get initialData():Object
+    {
+        return _initialData;
+    }
+
+    /**
+     * @private
+     */
+    public function set initialData(value:Object):void
+    {
+        _initialData = value;
+    }
+
+    //----------------------------------
+    //  label
+    //----------------------------------
+    /**
+     *  @private
+     */
+    private var _label:String;
+
+    /**
+     *  The label to be used when this stack is represented by
+     *  a visual component.
+     */
+    public function get label():String
+    {
+        return _label;
+    }
+
+    /**
+     *  @private
+     */
+    public function set label(value:String):void
+    {
+        _label = value;
+    }
+
+    //----------------------------------
+    //  length
+    //----------------------------------
+
+    /**
+     *  Returns the length of the stack
+     */
+    public function get length():int
+    {
+        return _source.length;
+    }
+
+    //----------------------------------
+    //  rootScreen
+    //----------------------------------
+    /**
+     *  @private
+     *  The backing variable for the rootScreen property.
+     */
+    private var _rootScreen:Class;
+
+    /**
+     *  This property is the object to use to initialize the root screen
+     *  of the stack.  This can be a Class, instance or Factory that creates
+     *  an object that extends Screen.
+     */
+    public function get rootScreen():Class
+    {
+        return _rootScreen;
+    }
+
+    /**
+     * @private
+     */
+    public function set rootScreen(value:Class):void
+    {
+        _rootScreen = value;
+    }
+
+    //----------------------------------
+    //  top
+    //----------------------------------
+
+    /**
+     *  Returns the object at the top of the stack.  If the
+     *  stack is empty, this propety is null.
+     */
+    public function get top():ViewData
+    {
+        return _source.length == 0 ? null : _source[_source.length - 1];
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Clears the entire stack.
+     */
+    public function clear():void
+    {
+        _source.length = 0;
+    }
+
+    /**
+     *  Pushes a data on the top of the stack.
+     */
+    public function push(data:ViewData):void
+    {
+        _source.push(data);
+    }
+
+    /**
+     *  Removes the top item off the stack.
+     */
+    public function pop():void
+    {
+        _source.pop();
+    }
+
+    /**
+     *  Removes all but the root object from the screen stack.
+     */
+    public function popToRoot():void
+    {
+        if (_source.length > 1)
+            _source.length = 1;
+    }
+
+    /**
+     *  Replaces the top item of the stack.
+     */
+    public function replaceTop(data:ViewData):void
+    {
+        if (_source.length == 0)
+            _source.push(data)
+        else
+            _source[_source.length - 1] = data;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods: IExternalizable
+    //
+    //--------------------------------------------------------------------------
+
+    public function writeExternal(output:IDataOutput):void
+    {
+        output.writeObject(initialData);
+        output.writeObject(label);
+        output.writeObject(_source);
+        output.writeObject(getQualifiedClassName(icon));
+        output.writeObject(getQualifiedClassName(rootScreen));
+    }
+
+    public function readExternal(input:IDataInput):void
+    {
+        initialData = input.readObject();
+        label = input.readObject();
+        _source = input.readObject() as Vector.<ViewData>;
+
+        var className:String = input.readObject();
+        icon = (className == "null") ? null : getDefinitionByName(className) as Class;
+
+        className = input.readObject();
+        rootScreen = (className == "null") ? null : getDefinitionByName(className) as Class;
+    }
+}
+}


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

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

 package mx.collections.errors
 {


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18129
Author:   chiedozi@adobe.com
Date:     2010-10-11T21:18:23.983258Z

Log Message:
-----------
Merge BOM changes from revision 18117 of the preview branch.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/packages.dita</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/spark.events.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/spark.core.managers.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionBarBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/spark.components.supportClasses.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/spark.components.supportClasses.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/packages.dita</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/spark.components.supportClasses.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/packages.dita</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/packages.dita</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/spark.core.managers.xml</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private/frameworks/locale/zh_TW</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.project</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/spark.components.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/spark.core.managers.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/spark.components.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/spark.core.managers.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.flexLibProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.actionScriptProperties</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/spark.events.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/spark.effects.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/NavigationButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/spark.events.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/TextInput_border.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/Button_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/spark.components.xml</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses</path>
<path kind="dir" action="M">/private/flex/sdk/branches/hero_private</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/fr_FR/docs/spark.effects.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/.flexLibProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/de_DE/docs/spark.effects.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/spark.effects.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/ActionButton_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/PaddingStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/zh_CN/docs/spark.components.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/spark.events.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/NavigationButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/.project</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/bundles/ja_JP/docs/spark.components.supportClasses.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
@@ -1,3 +1,14 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
 package spark.components
 {
 import flash.display.DisplayObject;


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

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


minor command mapping refactor

minor command mapping refactor

--- src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapping.as
+++ src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapping.as
@@ -116,19 +116,13 @@

 		public function withGuards(... guardClasses):ICommandMapper
 		{
-			for each (var guardClass:* in guardClasses)
-			{
-				_guards.add(guardClass);
-			}
+			_guards.add.apply(null, guardClasses)
 			return this;
 		}

 		public function withHooks(... hookClasses):ICommandMapper
 		{
-			for each (var hookClass:* in hookClasses)
-			{
-				_hooks.add(hookClass);
-			}
+			_hooks.add.apply(null, hookClasses)
 			return this;
 		}
 	}


OFC-82 Rename TaxonManager to SpeciesManager

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/client/ClientFactory.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/client/ClientFactory.as
@@ -9,7 +9,7 @@
 		private static var _modelClient:ModelClient;
 		private static var _sessionClient:SessionClient;
 		private static var _dataClient:DataClient;
-		private static var _taxonClient:TaxonClient;
+		private static var _speciesClient:SpeciesClient;

 		public function ClientFactory() {
 		}
@@ -35,11 +35,11 @@
 			return _modelClient;
 		}

-		public static function get taxonClient():TaxonClient{
-			if(_taxonClient == null){
-				_taxonClient = new TaxonClient();
+		public static function get speciesClient():SpeciesClient{
+			if(_speciesClient == null){
+				_speciesClient = new SpeciesClient();
 			}
-			return _taxonClient;
+			return _speciesClient;
 		}

 	}


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

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

 package mx.automation.delegates.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12568
Author:   gruehle@adobe.com
Date:     2009-12-05T00:33:54.244586Z

Log Message:
-----------
Fix the theme attribute for cornerRadius metadata on mx components. This required moving the metadata out of BorderStyles.as and into each file that includes BorderStyle.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/ScrollControlBase.as
+++ frameworks/projects/mx/src/mx/core/ScrollControlBase.as
@@ -94,6 +94,18 @@
  *  @productversion Flex 4
  */
 [Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes", theme="spark")]
+
+/**
+ *  Radius of component corners.
+ *
+ *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo")]

 /**
  *  Color of focus ring when the component is in focus


Transferred from the Adobe Open Source Subversion Repository

Revision: 14547
Author:   cframpto@adobe.com
Date:     2010-03-03T14:20:28.384244Z

Log Message:
-----------
Merge changes for mirroring from 4.x to trunk. Revs 14507,14530-14532.

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

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</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/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/mx/skins/wireframe/DataGridHeaderSeparatorSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/LayoutDirection.as" copyfrom-rev="14507" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutDirection.as</path>

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

--- frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -2158,6 +2158,10 @@
         // Set the text format.
         if (styleChangedFlag)
         {
+            // direction is used by getTextStyles() so update it first.
+            direction = getStyle("direction");
+            locale = getStyle("locale");
+
             var textFormat:TextFormat = getTextStyles();
             if (textFormat.font)
             {
@@ -2191,9 +2195,6 @@
                 sharpness = getStyle("fontSharpness");
                 thickness = getStyle("fontThickness");
             }
-
-            direction = getStyle("direction")
-            locale = getStyle("locale");

             if (!styleSheet)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6266
Author:   egeorgie@adobe.com
Date:     2009-04-24T23:09:01.304621Z

Log Message:
-----------
Layout PARB changes

Major (most probably will require updates):
- LayoutBase.getScrollPositionDelta() -> getScrollPositionDeltaToElement()
- HorizontalLayout, VerticalLayout method inView() -> fractionOfElementInView()
- LayoutElementFactory is deleted, interface ILayoutElement is implemented by UIComponent, GraphicElement, VisualSprite, no need for casting in those cases, cast to ILayoutElement in case of type Object.
- TileLayout.elementHorizontalAlign -> horizontalAlign
- TileLayout.elementVerticalAlign -> verticalAlign
- TileJustifyRows -> RowAlign
- TileJustifyColumsn > ColumnAlign
- TileLayout.justifyRows -> rowAlign
- TileLayout.justifyColumns -> columnAling
- TileJustifyRows.NONE, "none" -> TOP, "top"
- TileJustifyRows.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyRows.ROW_SIZE, "rowSize" -> JUSTIFY_USING_HEIGHT, "justifyUsingHeight"
- TileJustifyColumns.NONE, "none" -> LEFT, "left"
- TileJustifyColumns.GAP_SIZE, "gapSize" -> JUSTIFY_USING_GAP, "justifyUsingGap"
- TileJustifyColumns.COLUMN_SIZE, "columnSize" -> JUSTIFY_USING_WIDTH, "justifyUsingWidth"
- TileLayout.set rowCount -> set requestedRowCount
- add TileLayout.get requestedRowCount
- TileLayout.set columnCount -> set requestedColumnCount
- add TileLayout.get requestedColumnCount

Minor (may require updates, but not that probable):
- get baselinePosition() is moved from IVisualElement to ILayoutElement.
- setLayoutBoundsSize() does not have default NaN values for width & height (but still logic is the same).
- name of ILayoutInterface methods' parameter "postTransform" is renamed to "postLayoutTransform".
- name of ILayoutInterface methods' parameter "triggerLayout" is renamed to "invalidateLayout".
- LayoutBase methods invalidateTargetSizeAndDisplayList() and invalidateTargetSize() are removed.
- LayoutBase method getTargetScrollRect() is renamed to getScrollRect().

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Hans, Ryan
tests: checkintests, mustella (gumbo/layout, gumbo/group, gumbo/dataGroup)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyRows.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/ColumnAlign.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/TileJustifyColumns.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/TextBaseClass.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/Block.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -31,7 +31,6 @@
 import spark.primitives.supportClasses.ISharedGraphicsDisplayObject;
 import spark.primitives.supportClasses.TextGraphicElement;
 import spark.layout.supportClasses.LayoutBase;
-import spark.layout.supportClasses.LayoutElementFactory;
 import mx.styles.ISimpleStyleClient;
 import mx.styles.IStyleClient;
 import mx.styles.StyleProtoChain;


FLEX-33779 Label would RTE when truncating when set to multiline and there wasn't enough width

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -1379,6 +1379,11 @@
                     if (truncateAtCharPosition == 0)
                         break;

+                    // sometimes the player decides there isn't enough
+                    // room to render anything so bail
+                    if (textLines.length == 0)
+                        break;
+
                     // Try again by truncating at the beginning of the
                     // preceding atom.
                     var oldCharPosition:int = truncateAtCharPosition;


accidentally commented out something that closed folders- un-commented it so it is again fixed

--- flexEditor/src/org/arisgames/editor/view/GameEditorObjectPaletteView.as
+++ flexEditor/src/org/arisgames/editor/view/GameEditorObjectPaletteView.as
@@ -624,7 +624,7 @@
         trace("In handleRefreshTreeEvent...");
         refreshData = true;
         this.renderTree();
-		//paletteTree.openFolders();
+		paletteTree.openFolders();
         trace("Done in handleRefreshTreeEvent.");
     }


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13125
Author:   smgilson@adobe.com
Date:     2009-12-21T20:40:37.345444Z

Log Message:
-----------
ASDoc L10N fixes

QE notes: -
Doc notes: -
Bugs: - FLEXDOCS-885, FLEXDOCS-841,FLEXDOCS-839, FLEXDOCS-769, FLEXDOCS-545, FLEXDOCS-540
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.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/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as
@@ -40,7 +40,7 @@
  *  See the mx.accessibility.AccImpl and
  *  flash.accessibility.AccessibilityImplementation classes
  *  for background information about accessibility implementation
- *  classes and MSAA.
+ *  classes and MSAA.

  *
  *
Children

  *
@@ -126,220 +126,220 @@
 {
     include "../core/Version.as";

-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Enables accessibility in the TitleWindow class.
-	 *
-	 *
This method is called by application startup code
-	 *  that is autogenerated by the MXML compiler.
-	 *  Afterwards, when instances of TitleWindow are initialized,
-	 *  their accessibilityImplementation property
-	 *  will be set to an instance of this class.

-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public static function enableAccessibility():void
-	{
-		TitleWindow.createAccessibilityImplementation =
-			createAccessibilityImplementation;
-	}
-
-	/**
-	 *  @private
-	 *  Creates a TitleWindow's AccessibilityImplementation object.
-	 *  This method is called from TitleWindow's
-	 *  partAdded() method, not its initializeAccessibility() method,
-	 *  because the TitleWindowAccImpl needs to be attached
-	 *  to the TitleWindow's titleBar.
-	 *  The partRemoved() method removes the acc impl from the titleDisplay.
-	 */
-	mx_internal static function createAccessibilityImplementation(
-								component:UIComponent):void
-	{
-		// The AccessibilityImplementation is placed on the
-		// TitleWindow's titleBar, not on the TitleWindow itself.
-		// If it were placed on the TitleWindow itself,
-		// the AccessibilityImplementations of the TitleWindow's children
-		// would be ignored.
-		var titleDisplay:TextBase = TitleWindow(component).titleDisplay;
-		if (titleDisplay)
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Enables accessibility in the TitleWindow class.
+     *
+     *
This method is called by application startup code
+     *  that is autogenerated by the MXML compiler.
+     *  Afterwards, when instances of TitleWindow are initialized,
+     *  their accessibilityImplementation property
+     *  will be set to an instance of this class.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function enableAccessibility():void
+    {
+        TitleWindow.createAccessibilityImplementation =
+            createAccessibilityImplementation;
+    }
+
+    /**
+     *  @private
+     *  Creates a TitleWindow's AccessibilityImplementation object.
+     *  This method is called from TitleWindow's
+     *  partAdded() method, not its initializeAccessibility() method,
+     *  because the TitleWindowAccImpl needs to be attached
+     *  to the TitleWindow's titleBar.
+     *  The partRemoved() method removes the acc impl from the titleDisplay.
+     */
+    mx_internal static function createAccessibilityImplementation(
+                                component:UIComponent):void
+    {
+        // The AccessibilityImplementation is placed on the
+        // TitleWindow's titleBar, not on the TitleWindow itself.
+        // If it were placed on the TitleWindow itself,
+        // the AccessibilityImplementations of the TitleWindow's children
+        // would be ignored.
+        var titleDisplay:TextBase = TitleWindow(component).titleDisplay;
+        if (titleDisplay)
         {
             titleDisplay.accessibilityImplementation =
-				new TitleWindowAccImpl(component);
+                new TitleWindowAccImpl(component);

-			if (TitleWindow(component).tabIndex > 0 &&
-				titleDisplay.tabIndex == -1)
-			{
+            if (TitleWindow(component).tabIndex > 0 &&
+                titleDisplay.tabIndex == -1)
+            {
                 titleDisplay.tabIndex = TitleWindow(component).tabIndex;
-			}
-
-			Accessibility.sendEvent(titleDisplay, 0,
-									AccConst.EVENT_OBJECT_CREATE);
-			Accessibility.updateProperties();
-		}
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 *
-	 *  @param master The UIComponent instance that this AccImpl instance
-	 *  is making accessible.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function TitleWindowAccImpl(master:UIComponent)
-	{
-		super(master);
-
+            }
+
+            Accessibility.sendEvent(titleDisplay, 0,
+                                    AccConst.EVENT_OBJECT_CREATE);
+            Accessibility.updateProperties();
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param master The UIComponent instance that this AccImpl instance
+     *  is making accessible.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function TitleWindowAccImpl(master:UIComponent)
+    {
+        super(master);
+
         role = AccConst.ROLE_SYSTEM_PANE;

-		// TitleWindow has a titleDisplay and a closeButton as skin parts,
-		// and we need to listen to some of their events.
-		// They may or may not be present when this constructor is called.
-		// If they come or go later, we are notified via
-		// "partAdded" and "partRemoved" events.
-
-		var titleDisplay:TextBase = TitleWindow(master).titleDisplay;
-		if (titleDisplay)
-			titleDisplay.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
-
-		var closeButton:Button = TitleWindow(master).closeButton;
-		if (closeButton)
-			closeButton.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden properties: AccImpl
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  eventsToHandle
-	//----------------------------------
-
-	/**
-	 *  @private
-	 *  Array of events that we should listen for from the master component.
-	 */
-	override protected function get eventsToHandle():Array
-	{
-		return super.eventsToHandle.concat([ SkinPartEvent.PART_ADDED,
-											 SkinPartEvent.PART_REMOVED ]);
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods: AccessibilityImplementation
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  IAccessible method for returning the state of the TitleWindow.
-	 *  States are predefined for all the components in MSAA.
-	 *  Values are assigned to each state.
-	 *  Depending upon the TitleWindow being Focusable, Focused and Moveable,
-	 *  a value is returned.
-	 *
-	 *  @param childID:uint
-	 *
-	 *  @return State:uint
-	 */
-	override public function get_accState(childID:uint):uint
-	{
-		var accState:uint = getState(childID);
-
-		accState |= AccConst.STATE_SYSTEM_MOVEABLE;
-
-		return accState;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden event handlers: AccImpl
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Override the generic event handler.
-	 *  All AccImpl must implement this
-	 *  to listen for events from its master component.
-	 */
-	override protected function eventHandler(event:Event):void
-	{
-		var titleDisplay:TextBase;
-		var closeButton:Button;
-
-		// Let AccImpl class handle the events
-		// that all accessible UIComponents understand.
-		$eventHandler(event);
-
-		switch (event.type)
-		{
-			case MouseEvent.MOUSE_UP:
-			{
-				if (event.target == TitleWindow(master).titleDisplay)
-				{
-					Accessibility.sendEvent(TitleWindow(master).titleDisplay, 0,
-											AccConst.EVENT_OBJECT_LOCATIONCHANGE, true);
-				}
-
-				if (event.target == TitleWindow(master).closeButton)
-				{
-					Accessibility.sendEvent(TitleWindow(master).titleDisplay, 0,
-											AccConst.EVENT_OBJECT_DESTROY, true);
-				}
-
-				Accessibility.updateProperties();
-				break;
-			}
-
-			case SkinPartEvent.PART_ADDED:
-			{
-				titleDisplay = TitleWindow(master).titleDisplay;
-				if (SkinPartEvent(event).instance == titleDisplay)
-					titleDisplay.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
-
-				closeButton = TitleWindow(master).closeButton;
-				if (SkinPartEvent(event).instance == closeButton)
-					closeButton.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
-
-				break;
-			}
-
-			case SkinPartEvent.PART_REMOVED:
-			{
-				titleDisplay = TitleWindow(master).titleDisplay;
-				if (SkinPartEvent(event).instance == titleDisplay)
-					titleDisplay.removeEventListener(MouseEvent.MOUSE_UP, eventHandler);
-
-				closeButton = TitleWindow(master).closeButton;
-				if (SkinPartEvent(event).instance == closeButton)
-					closeButton.removeEventListener(MouseEvent.MOUSE_UP, eventHandler);
-
-				break;
-			}
-		}
-	}
+        // TitleWindow has a titleDisplay and a closeButton as skin parts,
+        // and we need to listen to some of their events.
+        // They may or may not be present when this constructor is called.
+        // If they come or go later, we are notified via
+        // "partAdded" and "partRemoved" events.
+
+        var titleDisplay:TextBase = TitleWindow(master).titleDisplay;
+        if (titleDisplay)
+            titleDisplay.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
+
+        var closeButton:Button = TitleWindow(master).closeButton;
+        if (closeButton)
+            closeButton.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  eventsToHandle
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Array of events that we should listen for from the master component.
+     */
+    override protected function get eventsToHandle():Array
+    {
+        return super.eventsToHandle.concat([ SkinPartEvent.PART_ADDED,
+                                             SkinPartEvent.PART_REMOVED ]);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: AccessibilityImplementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  IAccessible method for returning the state of the TitleWindow.
+     *  States are predefined for all the components in MSAA.
+     *  Values are assigned to each state.
+     *  Depending upon the TitleWindow being Focusable, Focused and Moveable,
+     *  a value is returned.
+     *
+     *  @param childID:uint
+     *
+     *  @return State:uint
+     */
+    override public function get_accState(childID:uint):uint
+    {
+        var accState:uint = getState(childID);
+
+        accState |= AccConst.STATE_SYSTEM_MOVEABLE;
+
+        return accState;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden event handlers: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Override the generic event handler.
+     *  All AccImpl must implement this
+     *  to listen for events from its master component.
+     */
+    override protected function eventHandler(event:Event):void
+    {
+        var titleDisplay:TextBase;
+        var closeButton:Button;
+
+        // Let AccImpl class handle the events
+        // that all accessible UIComponents understand.
+        $eventHandler(event);
+
+        switch (event.type)
+        {
+            case MouseEvent.MOUSE_UP:
+            {
+                if (event.target == TitleWindow(master).titleDisplay)
+                {
+                    Accessibility.sendEvent(TitleWindow(master).titleDisplay, 0,
+                                            AccConst.EVENT_OBJECT_LOCATIONCHANGE, true);
+                }
+
+                if (event.target == TitleWindow(master).closeButton)
+                {
+                    Accessibility.sendEvent(TitleWindow(master).titleDisplay, 0,
+                                            AccConst.EVENT_OBJECT_DESTROY, true);
+                }
+
+                Accessibility.updateProperties();
+                break;
+            }
+
+            case SkinPartEvent.PART_ADDED:
+            {
+                titleDisplay = TitleWindow(master).titleDisplay;
+                if (SkinPartEvent(event).instance == titleDisplay)
+                    titleDisplay.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
+
+                closeButton = TitleWindow(master).closeButton;
+                if (SkinPartEvent(event).instance == closeButton)
+                    closeButton.addEventListener(MouseEvent.MOUSE_UP, eventHandler);
+
+                break;
+            }
+
+            case SkinPartEvent.PART_REMOVED:
+            {
+                titleDisplay = TitleWindow(master).titleDisplay;
+                if (SkinPartEvent(event).instance == titleDisplay)
+                    titleDisplay.removeEventListener(MouseEvent.MOUSE_UP, eventHandler);
+
+                closeButton = TitleWindow(master).closeButton;
+                if (SkinPartEvent(event).instance == closeButton)
+                    closeButton.removeEventListener(MouseEvent.MOUSE_UP, eventHandler);
+
+                break;
+            }
+        }
+    }
 }

 }


Fixed non-use of generateDisplay() in levelState.

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -388,7 +388,7 @@
 							currentModule.initialize();

 							modules.push(currentModule);
-							displayModules.push(midLayer.add(new DModule(currentModule)));
+							displayModules.push(midLayer.add(currentModule.generateDisplay()));
 							addRecentModule(moduleType);

 							preserveModule = true;
@@ -448,7 +448,7 @@
 						currentModule.initialize();

 						modules.push(currentModule);
-						displayModules.push(midLayer.add(new DModule(currentModule)));
+						displayModules.push(midLayer.add(currentModule.generateDisplay()));
 						addRecentModule(moduleType);

 						preserveModule = true;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayerQueuedCommand.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/VideoPlayerQueuedCommand.as
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.controls.videoClasses
+{
+
+[ExcludeClass]
+
+/**
+ *  @private
+ */
+public class VideoPlayerQueuedCommand
+{
+	include "../../core/Version.as";
+
+    public static const PLAY:uint = 0;
+    public static const LOAD:uint = 1;
+    public static const PAUSE:uint = 2;
+    public static const STOP:uint = 3;
+    public static const SEEK:uint = 4;
+
+    public var type:uint;
+    public var url:String;
+    public var isLive:Boolean;
+    public var time:Number;
+    public var cuePoints:Array;
+
+    public function VideoPlayerQueuedCommand(type:uint, url:String = null, isLive:Boolean = false,
+                            time:Number = 0, cuePoints:Array = null)
+    {
+		super();
+
+        this.type = type;
+        this.url = url;
+        this.isLive = isLive;
+        this.time = time;
+        this.cuePoints = cuePoints;
+    }
+} // class QueuedCommand
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19824
Author:   smgilson@adobe.com
Date:     2011-01-20T16:25:32.156456Z

Log Message:
-----------
Fix invalid HTML in ASDoc comment

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

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRenderer.as
@@ -165,7 +165,7 @@
      *  responsibility for displaying something to indicate their cell or row has
      *  the caret.  The Grid itself automatically displays the caretIndicator skin part for the
      *  caret row or cell.  The item renderer can also change its visual properties
-     *  to emphasize that it has the caret.

+     *  to emphasize that it has the caret.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 22913
Author:   aharui@adobe.com
Date:     2011-10-07T19:47:56.669374Z

Log Message:
-----------
Deprecate Cube, Flip and Zoom transitions for performance reasons

QE notes: None
Doc notes: Update doc?
Bugs: SDK-31728
Reviewer: Glenn
Tests run: Checkintests, ant build
Is noteworthy for integration: Code model update required?

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransitionMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransitionMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as
@@ -62,6 +62,7 @@
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
+[Deprecated(since="4.6")]
 public class FlipViewTransition extends ViewTransitionBase
 {
     //--------------------------------------------------------------------------


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

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

 package mx.automation.delegates.controls
 {


Prevent VRAM/OAM access when not-accessible

--- gb/gpu.as
+++ gb/gpu.as
@@ -540,11 +540,19 @@

   def Read(self, address: uint16, ptr: *uint8): bool {
     *ptr = if address >= 0x8000 and address <= 0x9FFF {
-      // TODO: VRAM cannot be read during mode-3
-      *(self.VRAM + (address & 0x1FFF));
+      // VRAM cannot be read during mode-3
+      if self.Mode == 3 {
+        0xFF;
+      } else {
+        *(self.VRAM + (address & 0x1FFF));
+      }
     } else if address >= 0xFE00 and address <= 0xFE9F {
-      // TODO: OAM cannot be read during mode-2 or mode-3
-      *(self.OAM + (address - 0xFE00));
+      // OAM cannot be read during mode-2 or mode-3
+      if self.Mode == 2 or self.Mode == 3 {
+        0xFF;
+      } else {
+        *(self.OAM + (address - 0xFE00));
+      }
     } else if address == 0xFF40 {
       (
         bits.Bit(self.LCDEnable, 7) |
@@ -593,11 +601,15 @@

   def Write(self, address: uint16, value: uint8): bool {
     if address >= 0x8000 and address <= 0x9FFF {
-      // TODO: VRAM cannot be written during mode-3
-      *(self.VRAM + (address & 0x1FFF)) = value;
+      // VRAM cannot be written during mode-3
+      if self.Mode != 3 {
+        *(self.VRAM + (address & 0x1FFF)) = value;
+      }
     } else if address >= 0xFE00 and address <= 0xFE9F {
-      // TODO: OAM cannot be written during mode-2 or mode-3
-      *(self.OAM + (address - 0xFE00)) = value;
+      // OAM cannot be written during mode-2 or mode-3
+      if self.Mode < 2 {
+        *(self.OAM + (address - 0xFE00)) = value;
+      }
     } else if address == 0xFF40 {
       self.LCDEnable = bits.Test(value, 7);
       self.WindowTileMapSelect = bits.Test(value, 6);


Stack release :)

Stack release :)

--- src/U.as
+++ src/U.as
@@ -25,7 +25,7 @@
 	 * @author Nicholas "PleasingFungus" Feinberg
 	 */
 	public class U {
-		public static const VERSION:String = "0.848";
+		public static const VERSION:String = "0.85";
 		public static const SAVE_VERSION:int = 4;

 		public static const BINARY_SAVES:Boolean = true;


Assert now gives more descriptive error messages on assertTrue, assertFalse and assertNull. The messages are formatted like assertEquals. For example, if null is passed to assertTrue, the error will say "expected:<true> but was:<null>".

--- as3/src/asunit/framework/Assert.as
+++ as3/src/asunit/framework/Assert.as
@@ -1,8 +1,8 @@
 package asunit.framework {
     import asunit.errors.AssertionFailedError;
-
+
     import flash.utils.getQualifiedClassName;
-
+
     import flash.errors.IllegalOperationError;
     import flash.events.EventDispatcher;

@@ -23,22 +23,22 @@
          */
         static public function assertTrue(...args:Array):void {
             var message:String;
-            var condition:Boolean;
+            var actual:Object;

             if(args.length == 1) {
                 message = "";
-                condition = Boolean(args[0]);
+                actual = args[0];
             }
             else if(args.length == 2) {
                 message = args[0];
-                condition = Boolean(args[1]);
-            }
-            else {
-                throw new IllegalOperationError("Invalid argument count");
-            }
-
-            if(!condition) {
-                fail(message);
+                actual = args[1];
+            }
+            else {
+                throw new IllegalOperationError("Invalid argument count");
+            }
+
+            if(!actual) {
+				failNotEquals(message, true, actual);
             }
         }
         /**
@@ -47,25 +47,27 @@
          */
         static public function assertFalse(...args:Array):void {
             var message:String;
-            var condition:Boolean;
+            var actual:Object;

             if(args.length == 1) {
                 message = "";
-                condition = Boolean(args[0]);
+                actual = args[0];
             }
             else if(args.length == 2) {
                 message = args[0];
-                condition = Boolean(args[1]);
-            }
-            else {
-                throw new IllegalOperationError("Invalid argument count");
-            }
-
-            assertTrue(message, !condition);
+                actual = args[1];
+            }
+            else {
+                throw new IllegalOperationError("Invalid argument count");
+            }
+
+            if(actual) {
+				failNotEquals(message, false, actual);
+            }
         }
         /**
          *  Fails a test with the given message.
-         *
+         *
          *  @example This method can be called anytime you want to break out and fail
          *  the current test.
          *
@@ -110,7 +112,7 @@
         /**
          *  Asserts that two objects are equal. If they are not
          *  an AssertionFailedError is thrown with the given message.
-         *
+         *
          *  This assertion should be (by far) the one you use the most.
          *  It automatically provides useful information about what
          *  the failing values were.
@@ -119,7 +121,7 @@
          *  public function testNames():void {
          *      var name1:String = "Federico Aubele";
          *      var name2:String = "Frederico Aubele";
-         *
+         *
          *      assertEquals(name1, name2);
          *  }
          *  </listing>
@@ -188,21 +190,21 @@
          */
         static public function assertNull(...args:Array):void {
             var message:String;
-            var object:Object;
+            var actual:Object;

             if(args.length == 1) {
                 message = "";
-                object = args[0];
+                actual = args[0];
             }
             else if(args.length == 2) {
                 message = args[0];
-                object = args[1];
-            }
-            else {
-                throw new IllegalOperationError("Invalid argument count");
-            }
-
-            assertTrue(message, object == null);
+                actual = args[1];
+            }
+            else {
+                throw new IllegalOperationError("Invalid argument count");
+            }
+
+            assertEquals(message, null, actual);
         }
         /**
          * Asserts that two objects refer to the same object. If they are not
@@ -314,7 +316,7 @@
             else {
                 throw new IllegalOperationError("Invalid argument count");
             }
-
+
             if (expected == null && actual == null) {
                 return;
             }


Added tests for assertTrue, assertFalse, assertEquals and assertEqualsFloat

--- as25/test/asunit/framework/AssertTest.as
+++ as25/test/asunit/framework/AssertTest.as
@@ -1,20 +1,45 @@
-import asunit.framework.TestCase;
-import asunit.framework.Assert;
-
+import asunit.framework.TestCase;
+import asunit.framework.Assert;
+
 class asunit.framework.AssertTest extends TestCase {
-
-	public var className:String = "asunit.framework.AssertTest";
-
+
+	public var className:String = "asunit.framework.AssertTest";
+
 	public function AssertTest(testMethod:String) {
 		super(testMethod);
 	}

 	public function testAssertTrue():Void {
-		assertTrue(true);
+		assertTrue("true value", true);
+		assertTrue("double negated true value", !(!true));
+		assertTrue("negated false value", !false);
+		assertTrue("the number 1", 1);
+		assertTrue("Math.PI", Math.PI);
+		assertTrue("negative Math.PI", -Math.PI);
+		assertTrue("not empty quotes", !(""));
+		assertTrue("string of space", " ");
+		assertTrue("string of true", "true");
+		assertTrue("string of false", "false");
+		assertTrue("negated undefined", !undefined);
+		assertTrue("negated null", !null);
+		assertTrue("negated NaN", !NaN);
+		assertTrue("new Object()", new Object());
+		assertTrue("new Array()", new Array());
 	}

 	public function testAssertFalse():Void {
-		assertFalse(false);
+		assertFalse("false value", false);
+		assertFalse("double negated false value", !(!false));
+		assertFalse("negated true value", !true);
+		assertFalse("the number zero", 0);
+		assertFalse("empty quotes", "");
+		assertFalse("undefined", undefined);
+		assertFalse("null", null);
+		assertFalse("negated Math.PI", !Math.PI);
+		assertFalse("negated negative Math.PI", !-Math.PI);
+		assertFalse("3 > NaN", 3 > NaN);
+		assertFalse("3 < NaN", 3 < NaN);
+		assertFalse("NaN", NaN);
 	}

 	public function testAssertFalseWithMessage():Void {
@@ -36,7 +61,7 @@
 	}

 	public function testAssertTrueMessage():Void {
-		assertTrue("asertTrue with message", true);
+		assertTrue("assertTrue with message", true);
 	}

 	public function testAssertTrueMessageFailure():Void {
@@ -62,7 +87,22 @@

 	public function testAssertEqualsSimple():Void {
 		var obj1:Object = new Object();
-		assertEquals(obj1, obj1);
+		assertEquals("an Object and itself", obj1, obj1);
+
+		var array:Array = [];
+		assertEquals("an empty Array and itself", array, array);
+
+		assertEquals("true and true", true, true);
+		assertEquals("false and false", false, false);
+		assertEquals("true and !false", true, !false);
+		assertEquals("!false and true", !false, true);
+
+		assertEquals("positive number and itself", 2, 2);
+		assertEquals("negative number and itself", -5, -5);
+		assertEquals("Math.PI and itself", Math.PI, Math.PI);
+		assertEquals("number and string representation", 99, "99");
+		assertEquals("number and string representation in reverse order", "99", 99);
+
 	}

 	public function testEqualsMethod():Void {
@@ -107,6 +147,28 @@
 		fail("obj1 does not equal obj2 with message");
 	}

+	public function testAssertEqualsFloat():Void {
+		assertEqualsFloat(5, 5, 0);
+		assertEqualsFloat("5 == 5 with tolerance 0", 5, 5, 0);
+		assertEqualsFloat("0 == 0 with tolerance 0", 0, 0, 0);
+
+		assertEqualsFloat("positive difference equal to tolerance", 10,  10.1,  0.1);
+		assertEqualsFloat("negative difference equal to tolerance", 10,   9.9,  0.1);
+
+		assertEqualsFloat("difference +.05 with tolerance 0.1", 20,  20.05,  0.1);
+		assertEqualsFloat("difference -.05 with tolerance 0.1", 20,  19.95,  0.1);
+	}
+
+	public function testAssertEqualsFloatFailure():Void {
+		try {
+			assertEqualsFloat("3 == 3.14 with tolerance .1", 3, 3.14, .1);
+		}
+		catch(e:Error) {
+			return;
+		}
+		fail("assertEqualsFloat failure");
+	}
+
 	public function testNull():Void {
 		assertNull(null);
 	}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.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/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.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/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.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/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as
+++ frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as
@@ -45,6 +45,10 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function WindowedSystemRawChildrenList(owner:WindowedSystemManager)
 	{
@@ -72,6 +76,10 @@

 	/**
 	 *  @copy mx.core.IChildList#numChildren
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get numChildren():int
 	{
@@ -80,6 +88,10 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildAt(index:int):DisplayObject
   	{
@@ -88,6 +100,10 @@

 	/**
 	 *  @copy mx.core.IChildList#addChild
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addChild(child:DisplayObject):DisplayObject
   	{
@@ -96,6 +112,10 @@

 	/**
 	 *  @copy mx.core.IChildList#addChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function addChildAt(child:DisplayObject, index:int):DisplayObject
   	{
@@ -104,6 +124,10 @@

 	/**
 	 *  @copy mx.core.IChildList#removeChild
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function removeChild(child:DisplayObject):DisplayObject
   	{
@@ -112,6 +136,10 @@

 	/**
 	 *  @copy mx.core.IChildList#removeChildAt
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function removeChildAt(index:int):DisplayObject
   	{
@@ -120,6 +148,10 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildByName
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildByName(name:String):DisplayObject
   	{
@@ -128,6 +160,10 @@

 	/**
 	 *  @copy mx.core.IChildList#getChildIndex
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
   	public function getChildIndex(child:DisplayObject):int
   	{
@@ -136,6 +172,10 @@

 	/**
 	 *  @copy mx.core.IChildList#setChildIndex
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function setChildIndex(child:DisplayObject, newIndex:int):void
   	{
@@ -144,6 +184,10 @@

 	/**
 	 *  @copy mx.core.IChildList#getObjectsUnderPoint
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function getObjectsUnderPoint(point:Point):Array
 	{
@@ -152,6 +196,10 @@

 	/**
 	 *  @copy mx.core.IChildList#contains
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function contains(child:DisplayObject):Boolean
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as
@@ -207,7 +207,7 @@
      */
     mx_internal function get bridgeToFocusManager():Dictionary
     {
-        if (Object(systemManager).mx_internal::topLevel)
+        if (Object(systemManager).topLevel)
             return _bridgeToFocusManager;
         else if (systemManager.topLevelSystemManager)
         {
@@ -220,7 +220,7 @@

     mx_internal function set bridgeToFocusManager(bridgeToFMDictionary:Dictionary):void
     {
-        if (Object(systemManager).mx_internal::topLevel)
+        if (Object(systemManager).topLevel)
             _bridgeToFocusManager = bridgeToFMDictionary;
         else if (systemManager.topLevelSystemManager)
         {
@@ -396,19 +396,19 @@
 				}
 				else
 				{
-                    Object(systemManager).mx_internal::$addEventListener(MouseEvent.MOUSE_MOVE, resetMouseCursorTracking, true, EventPriority.CURSOR_MANAGEMENT + 1, true);
+                    Object(systemManager).$addEventListener(MouseEvent.MOUSE_MOVE, resetMouseCursorTracking, true, EventPriority.CURSOR_MANAGEMENT + 1, true);
 				}

 				addEventListenerToSandboxes(type, sandboxMouseListener, useCapture, priority, useWeakReference);
 				if (!SystemManagerGlobals.changingListenersInOtherSystemManagers)
 					addEventListenerToOtherSystemManagers(type, otherSystemManagerMouseListener, useCapture, priority, useWeakReference)
 				if (systemManager.getSandboxRoot() == systemManager)
-                    Object(systemManager).mx_internal::$addEventListener(actualType, eventProxy.marshalListener,
+                    Object(systemManager).$addEventListener(actualType, eventProxy.marshalListener,
                             useCapture, priority, useWeakReference);

 				// Set useCapture to false because we will never see an event
 				// marshalled in the capture phase.
-                Object(systemManager).mx_internal::$addEventListener(type, listener, false, priority, useWeakReference);
+                Object(systemManager).$addEventListener(type, listener, false, priority, useWeakReference);
                 return false;
 			}
 		}
@@ -464,12 +464,12 @@
 			if (actualType)
 			{
                 if (systemManager.getSandboxRoot() == systemManager && eventProxy)
-                    Object(systemManager).mx_internal::$removeEventListener(actualType, eventProxy.marshalListener,
+                    Object(systemManager).$removeEventListener(actualType, eventProxy.marshalListener,
                             useCapture);
 				if (!SystemManagerGlobals.changingListenersInOtherSystemManagers)
 					removeEventListenerFromOtherSystemManagers(type, otherSystemManagerMouseListener, useCapture);
 				removeEventListenerFromSandboxes(type, sandboxMouseListener, useCapture);
-                Object(systemManager).mx_internal::$removeEventListener(type, listener, false);
+                Object(systemManager).$removeEventListener(type, listener, false);
 				return false;
 			}
 		}
@@ -2721,7 +2721,7 @@
 				}
 				else
 				{
-                    Object(systemManager).mx_internal::$addEventListener(MouseEvent.MOUSE_MOVE, resetMouseCursorTracking, true, EventPriority.CURSOR_MANAGEMENT + 1, true);
+                    Object(systemManager).$addEventListener(MouseEvent.MOUSE_MOVE, resetMouseCursorTracking, true, EventPriority.CURSOR_MANAGEMENT + 1, true);
 				}

                 // add listeners in other sandboxes in capture mode so we don't miss anything
@@ -2738,7 +2738,7 @@
                             false, request.priority, request.useWeakReference);
 				    }

-                    Object(systemManager).mx_internal::$addEventListener(actualType, eventProxy.marshalListener,
+                    Object(systemManager).$addEventListener(actualType, eventProxy.marshalListener,
                         true, request.priority, request.useWeakReference);
                 }
 			}
@@ -2759,7 +2759,7 @@
                         systemManager.stage.removeEventListener(actualType, eventProxy.marshalListener);
                     }

-                    Object(systemManager).mx_internal::$removeEventListener(actualType, eventProxy.marshalListener, true);
+                    Object(systemManager).$removeEventListener(actualType, eventProxy.marshalListener, true);
                 }
             }
         }
@@ -2768,10 +2768,10 @@
 	private function Stage_resizeHandler(event:Event = null):void
 	{
        	var sandboxScreen:Rectangle = getSandboxScreen();
-        if (!Object(systemManager).mx_internal::_screen)
-            Object(systemManager).mx_internal::_screen = new Rectangle();
-       	Object(systemManager).mx_internal::_screen.width = sandboxScreen.width;
-       	Object(systemManager).mx_internal::_screen.height = sandboxScreen.height;
+        if (!Object(systemManager)._screen)
+            Object(systemManager)._screen = new Rectangle();
+       	Object(systemManager)._screen.width = sandboxScreen.width;
+       	Object(systemManager)._screen.height = sandboxScreen.height;
 	}

  	/**


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Fixed issue in World when Entities are added & removed in the same frame.

--- net/flashpunk/World.as
+++ net/flashpunk/World.as
@@ -906,6 +906,11 @@
 			{
 				for each (e in _remove)
 				{
+					if (e._added != true && _add.indexOf(e) >= 0)
+					{
+						_add.splice(_add.indexOf(e), 1);
+						continue;
+					}
 					e._added = false;
 					e.removed();
 					removeUpdate(e);