formatting

formatting

--- actionscript/src/com/freshplanet/ane/AirDeviceId.as
+++ actionscript/src/com/freshplanet/ane/AirDeviceId.as
@@ -16,63 +16,77 @@
 //
 //////////////////////////////////////////////////////////////////////////////////////

-package com.freshplanet.ane
-{
+package com.freshplanet.ane {
+
 	import flash.events.EventDispatcher;
 	import flash.events.StatusEvent;
 	import flash.external.ExtensionContext;
 	import flash.system.Capabilities;

-	public class AirDeviceId extends EventDispatcher
-	{
-		private static var _instance:AirDeviceId;
+	public class AirDeviceId extends EventDispatcher {

-		private var extCtx:ExtensionContext = null;
+		private static var _instance : AirDeviceId = null;
+
+		private var _extCtx : ExtensionContext = null;
 		private var _id 	: String = null;
 		private var _idfv	: String = null;
 		private var _idfa	: String = null;

-		public function AirDeviceId()
-		{
-			if (!_instance)
-			{
-				extCtx = ExtensionContext.createExtensionContext("com.freshplanet.ane.AirDeviceId", null);
-				if (extCtx != null)
-				{
-					extCtx.addEventListener(StatusEvent.STATUS, onStatus);
+		/**
+		 * AirDeviceId constructor
+		 */
+		public function AirDeviceId() {
+
+			if ( !_instance ) {
+
+				_extCtx = ExtensionContext.createExtensionContext( 'com.freshplanet.ane.AirDeviceId', null );
+
+				if  (_extCtx != null ) {
+					_extCtx.addEventListener( StatusEvent.STATUS, onStatus );
 				}
-				else
-				{
+				else {
 					trace('[AirDeviceId] Error - Extension Context is null.');
 				}
+
 				_instance = this;
 			}
-			else
-			{
-				throw Error('This is a singleton, use getInstance(), do not call the constructor directly.');
+			else {
+				throw Error( 'This is a singleton, use getInstance(), do not call the constructor directly.' );
 			}
 		}

-		public static function getInstance() : AirDeviceId
-		{
+		/**
+		 * singleton getter
+		 * @return
+		 */
+		public static function getInstance() : AirDeviceId {
 			return _instance ? _instance : new AirDeviceId();
 		}

-		public function get isOnDevice():Boolean
-		{
-			var value:Boolean = this.isOnIOS || this.isOnAndroid;
+		/**
+		 * @return test for determining if this is being run on a device
+		 */
+		public function get isOnDevice() : Boolean {
+
+			var value : Boolean = this.isOnIOS || this.isOnAndroid;
 			return value;
 		}

-		public function get isOnIOS():Boolean
-		{
-			var value:Boolean = Capabilities.manufacturer.indexOf('iOS') > -1;
+		/**
+		 * @return
+		 */
+		public function get isOnIOS() : Boolean {
+
+			var value : Boolean = Capabilities.manufacturer.indexOf( 'iOS' ) > -1;
 			return value;
 		}

-		public function get isOnAndroid():Boolean
-		{
-			var value:Boolean = Capabilities.manufacturer.indexOf('Android') > -1;
+		/**
+		 * @return
+		 */
+		public function get isOnAndroid() : Boolean {
+
+			var value : Boolean = Capabilities.manufacturer.indexOf( 'Android' ) > -1;
 			return value;
 		}

@@ -81,7 +95,7 @@
 		 * Define your own API and use extCtx.call() to communicate with the native part of the ANE.
 		 */
 		public function isSupported() : Boolean {
-			return extCtx.call( 'isSupported' );
+			return _extCtx.call( 'isSupported' );
 		}

 		/**
@@ -92,11 +106,11 @@
 		public function getID( salt:String ) : String {

 			if ( !this.isOnDevice ) {
-				return "simulator";
+				return 'simulator';
 			}

 			if ( !this._id ) {
-				this._id = this.extCtx.call( 'getID', salt ) as String;
+				this._id = this._extCtx.call( 'getID', salt ) as String;
 			}

 			return this._id;
@@ -113,7 +127,7 @@

 			if ( !this._idfv ) {

-				this._idfv = extCtx.call( 'getIDFV' ) as String;
+				this._idfv = _extCtx.call( 'getIDFV' ) as String;

 				if ( this._idfv == '00000000-0000-0000-0000-000000000000' ) {
 					this._idfv = null;
@@ -134,7 +148,7 @@

 			if ( !this._idfa ) {

-				this._idfa = extCtx.call( 'getIDFA' ) as String;
+				this._idfa = _extCtx.call( 'getIDFA' ) as String;

 				if ( this._idfa == '00000000-0000-0000-0000-000000000000' ) {
 					this._idfa = null;
@@ -148,11 +162,10 @@
 		 * Status events allow the native part of the ANE to communicate with the ActionScript part.
 		 * We use event.code to represent the type of event, and event.level to carry the data.
 		 */
-		private function onStatus( event : StatusEvent ) : void
-		{
-			if (event.code == "LOGGING")
-			{
-				trace('[AirDeviceId] ' + event.level);
+		private function onStatus( event:StatusEvent ) : void {
+
+			if ( event.code == 'LOGGING' ) {
+				trace( '[AirDeviceId] ' + event.level );
 			}
 		}
 	}


Fix update of root localToWorldTransform.

--- src/aerys/minko/scene/controller/TransformController.as
+++ src/aerys/minko/scene/controller/TransformController.as
@@ -78,7 +78,7 @@
 				rootLocalToWorld.copyFrom(rootTransform);

 				if (nodeId != 0)
-					rootLocalToWorld.append(_transforms[_parentId[nodeId]]);
+					rootLocalToWorld.append(_localToWorldTransforms[_parentId[nodeId]]);

 				root.localToWorldTransformChanged.execute(root, rootLocalToWorld);
 			}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18503
Author:   jszeto@adobe.com
Date:     2010-11-09T18:36:40.819408Z

Log Message:
-----------
ViewMenu Bug Fixes

http://bugs.adobe.com/jira/browse/SDK-28425 - ViewMenu memory is not freed when the ViewMenu is closed

Added logic to SkinnableComponent to detachSkin when removed from the Stage

http://bugs.adobe.com/jira/browse/SDK-28412 - ViewMenu 5-way press interaction is incorrect

Let ViewMenuItem handle the SPACE and ENTER keys.

QE notes: None
Doc notes: none
Bugs: SDK-28425, SDK-28412
Reviewer: Glenn
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/ViewMenuItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -251,25 +251,6 @@

         if (!items || !layout || event.isDefaultPrevented() || isMouseDown)
             return;
-
-        // 1. Was the space bar hit?
-        // Hitting the space bar means the current caret item,
-        // that is the item currently in focus, is being
-        // selected.
-        if (event.keyCode == Keyboard.SPACE)
-        {
-            selectItemAt(caretIndex);
-            event.preventDefault();
-            return;
-        }
-
-        // FIXME (rfrishbe): hack for 5-way
-        if (getStyle("interactionMode") == InteractionMode.TOUCH && event.keyCode == Keyboard.ENTER)
-        {
-            selectItemAt(caretIndex);
-            event.preventDefault();
-            return;
-        }

         // 3. Was a navigation key hit (like an arrow key,
         // or Shift+arrow key)?
@@ -372,6 +353,9 @@

         var item:ViewMenuItem = ViewMenuItem(getElementAt(index));
         item.showsCaret = showsCaret;
+
+        if (showsCaret)
+            item.setFocus();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 22074
Author:   smgilson@adobe.com
Date:     2011-08-18T18:48:26.478480Z

Log Message:
-----------
ASDoc edits for Callout

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
@@ -244,7 +244,7 @@

     /**
      *  Height of the arrow in vertical directions. This property also controls
-     *  the Width of the arrow in horizontal directions.
+     *  the width of the arrow in horizontal directions.
      *
      *  @langversion 3.0
      *  @playerversion AIR 3


Transferred from the Adobe Open Source Subversion Repository

Revision: 16390
Author:   clucier@adobe.com
Date:     2010-06-02T00:31:33.544783Z

Log Message:
-----------
PARB changes and bug fixes for Image and BitmapImage.

QE notes:  None
Doc notes:  None
Bugs: SDK-26596, SDK-26594, SDK-26561, SDK-26562, SDK-26567, SDK-26568, SDK-26571, SDK-26572, SDK-26575, SDK-26583, SDK-26584
Reviewer:  Ryan
Tests run:  Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/LoaderInvalidationEvent.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/IContentLoader.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IContentLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentCache.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentRequest.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>

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

--- frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as
+++ frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package spark.core.contentLoader
+package spark.events
 {

 import flash.events.Event;


FLEX-34625 Reverting unit test to pre-debug version.

--- frameworks/projects/spark/tests/spark/skins/spark/FLEX_34625_Tests.as
+++ frameworks/projects/spark/tests/spark/skins/spark/FLEX_34625_Tests.as
@@ -18,67 +18,46 @@
 ////////////////////////////////////////////////////////////////////////////////

 package spark.skins.spark {
-    import flash.display.Sprite;
     import flash.events.Event;
     import flash.events.EventDispatcher;
-
-    import mx.core.Container;

     import mx.managers.FocusManager;
     import mx.managers.IFocusManagerContainer;

-    import org.flexunit.asserts.assertNotNull;
-
     import org.flexunit.asserts.assertTrue;
     import org.flexunit.async.Async;
     import org.fluint.uiImpersonation.UIImpersonator;
-
-    import spark.components.Group;

     import spark.components.TextInput;

     public class FLEX_34625_Tests {

         private static const NO_ENTER_FRAMES_TO_ALLOW:int = 4;
+        private static const _finishNotifier:EventDispatcher = new EventDispatcher();
+        private static var _textInput:TextInput;
         private var noEnterFramesRemaining:int = NaN;
-        private var _finishNotifier:EventDispatcher;
-        private var _textInput:TextInput;

         [Before]
         public function setUp():void
         {
+            var _focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
+            _focusManager.showFocusIndicator = true;

+            _textInput = new TextInput();
+            _textInput.width = 0;
+            _textInput.height = 0;
+            _textInput.focusManager = _focusManager;
         }

         [After]
         public function tearDown():void
         {
             _textInput = null;
-            _finishNotifier = null;
         }

         [Test(async, timeout=500)]
         public function test_focus_skin_with_zero_focus_thickness():void
         {
-            //from setUp(), for debugging
-            trace("UIImpersonator root:" + UIImpersonator.testDisplay);
-
-            assertNotNull("UIImpersonator is not available!", UIImpersonator.testDisplay);
-            assertTrue("It's not a Sprite!", UIImpersonator.testDisplay is Sprite);
-            assertTrue("It's not a Container!", UIImpersonator.testDisplay is Container);
-            assertTrue("It's not a Group!", UIImpersonator.testDisplay is Group);
-            assertTrue("It's not an IFocusManagerContainer!", UIImpersonator.testDisplay is IFocusManagerContainer);
-
-            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
-            focusManager.showFocusIndicator = true;
-
-            _textInput = new TextInput();
-            _textInput.width = 0;
-            _textInput.height = 0;
-            _textInput.focusManager = focusManager;
-
-            _finishNotifier = new EventDispatcher();
-
             //given
             UIImpersonator.addChild(_textInput);

@@ -95,17 +74,6 @@
         [Test(async, timeout=500)]
         public function test_focus_skin_with_NaN_focus_thickness():void
         {
-            //from setUp(), for debugging
-            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
-            focusManager.showFocusIndicator = true;
-
-            _textInput = new TextInput();
-            _textInput.width = 0;
-            _textInput.height = 0;
-            _textInput.focusManager = focusManager;
-
-            _finishNotifier = new EventDispatcher();
-
             //given
             UIImpersonator.addChild(_textInput);

@@ -124,7 +92,6 @@
             if(!--noEnterFramesRemaining)
             {
                 UIImpersonator.testDisplay.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
-
                 _finishNotifier.dispatchEvent(new Event(Event.COMPLETE));
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4726
Author:   gosmith@adobe.com
Date:     2009-01-29T02:47:59.868818Z

Log Message:
-----------
Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.

In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.

In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.

Removed an artificial limit of 100000 items in List and Menu.

A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.

Removed the getName() method of ComboBase, which isn't used.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/AlertAccImpl.as
@@ -120,31 +120,7 @@
 	 */
 	override protected function getName(childID:uint):String
 	{
-		var name:String = Alert(master).title;
-
-		switch (childID)
-		{
-			case 1:
-			{
-				name = "";
-				break;
-			}
-
-			case 2:
-			{
-				name = "";
-				break
-			}
-
-			default:
-			{
-				name = Alert(master).title + ", " +
-					   Alert(master).text;
-				break;
-			}
-		}
-
-		return name;
+		return Alert(master).title + ", " + Alert(master).text;
 	}

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


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

--- frameworks/projects/mx/src/mx/skins/halo/ProgressBarSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ProgressBarSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2006 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: 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@1269930 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/skins/halo/SliderThumbSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/SliderThumbSkin.as
@@ -0,0 +1,293 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2004-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.skins.halo
+{
+
+import flash.display.GradientType;
+import flash.display.Graphics;
+import mx.skins.Border;
+import mx.styles.StyleManager;
+import mx.utils.ColorUtil;
+
+/**
+ *  The skin for all the states of a thumb in a Slider.
+ */
+public class SliderThumbSkin extends Border
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var cache:Object = {};
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Several colors used for drawing are calculated from the base colors
+	 *  of the component (themeColor, borderColor and fillColors).
+	 *  Since these calculations can be a bit expensive,
+	 *  we calculate once per color set and cache the results.
+	 */
+	private static function calcDerivedStyles(themeColor:uint,
+											  borderColor:uint,
+											  fillColor0:uint,
+											  fillColor1:uint):Object
+	{
+		var key:String = HaloColors.getCacheKey(themeColor, borderColor,
+												fillColor0, fillColor1);
+
+		if (!cache[key])
+		{
+			var o:Object = cache[key] = {};
+
+			// Cross-Component styles.
+			HaloColors.addHaloColors(o, themeColor, fillColor0, fillColor1);
+
+			// SliderThumb-unique styles.
+			o.borderColorDrk1 = ColorUtil.adjustBrightness2(borderColor, -50);
+		}
+
+		return cache[key];
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  Constructor.
+	 */
+	public function SliderThumbSkin()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  measuredWidth
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function get measuredWidth():Number
+	{
+		return 12;
+	}
+
+	//----------------------------------
+	//  measuredHeight
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function get measuredHeight():Number
+	{
+		return 12;
+	}
+
+	protected function drawThumbState(w:Number, h:Number, borderColors:Array, fillColors:Array, fillAlphas:Array, drawBacking:Boolean, drillHole:Boolean):void
+	{
+		var g:Graphics = graphics;
+
+		var down:Boolean = getStyle("invertThumbDirection");
+
+		var h0:Number = down ? h : 0;
+		var h1:Number = down ? h - 1 : 1;
+		var h2:Number = down ? h - 2 : 2;
+		var hhm2:Number = down ? 2 : h - 2;
+		var hhm1:Number = down ? 1 : h - 1;
+		var hh:Number = down ? 0 : h;
+
+		// if we are inverting, then swap the direction of the colors
+		if (down)
+		{
+			borderColors = [borderColors[1], borderColors[0]];
+			fillColors = [fillColors[1], fillColors[0]];
+			fillAlphas = [fillAlphas[1], fillAlphas[0]];
+		}
+
+		// backing - for opacity
+		if (drawBacking)
+		{
+			g.beginGradientFill(GradientType.LINEAR,
+								[ 0xFFFFFF, 0xFFFFFF ],
+								[ 0.6, 0.6 ],
+								[ 0, 0xFF ],
+								verticalGradientMatrix(0, 0, w, h));
+			g.moveTo(w / 2, h0);
+			g.curveTo(w / 2, h0, w / 2 - 2, h2);
+			g.lineTo(0, hhm2);
+			g.curveTo(0, hhm2, 2, hh);
+			g.lineTo(w - 2, hh);
+			g.curveTo(w - 2, hh, w, hhm2);
+			g.lineTo(w / 2 + 2, h2);
+			g.curveTo(w / 2 + 2, h2, w / 2, h0);
+			g.endFill();
+		}
+
+		// border
+		g.beginGradientFill(GradientType.LINEAR,
+							borderColors,
+							[ 1.0, 1.0 ],
+							[ 0, 0xFF ],
+							verticalGradientMatrix(0, 0, w, h));
+		g.moveTo(w / 2, h0);
+		g.curveTo(w / 2, h0, w / 2 - 2, h2);
+		g.lineTo(0, hhm2);
+		g.curveTo(0, hhm2, 2, hh);
+		g.lineTo(w - 2, hh);
+		g.curveTo(w - 2, hh, w, hhm2);
+		g.lineTo(w / 2 + 2, h2);
+		g.curveTo(w / 2 + 2, h2, w / 2, h0);
+
+		if (drillHole)
+		{
+			// drillhole
+			g.moveTo(w / 2, h1);
+			g.curveTo(w / 2, h0, w / 2 - 1, h2);
+			g.lineTo(1, hhm1);
+			g.curveTo(1, hhm1, 1, hhm1);
+			g.lineTo(w - 1, hhm1);
+			g.curveTo(w - 1, hhm1, w - 1, hhm2);
+			g.lineTo(w / 2 + 1, h2);
+			g.curveTo(w / 2 + 1, h2, w / 2, h1);
+			g.endFill();
+		}
+
+		// fill
+		g.beginGradientFill(GradientType.LINEAR,
+							fillColors,
+							fillAlphas,
+							[ 0, 0xFF ],
+							verticalGradientMatrix(0, 0, w, h));
+		g.moveTo(w / 2, h1);
+		g.curveTo(w / 2, h0, w/2 - 1, h2);
+		g.lineTo(1, hhm1);
+		g.curveTo(1, hhm1, 1, hhm1);
+		g.lineTo(w - 1, hhm1);
+		g.curveTo(w - 1, hhm1, w - 1, hhm2);
+		g.lineTo(w / 2 + 1, h2);
+		g.curveTo(w / 2 + 1, h2, w / 2, h1);
+		g.endFill();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  @private
+	 */
+	override protected function updateDisplayList(w:Number, h:Number):void
+	{
+		super.updateDisplayList(w, h);
+
+		// User-defined styles.
+		var borderColor:uint = getStyle("borderColor");
+		var fillAlphas:Array = getStyle("fillAlphas");
+		var fillColors:Array = getStyle("fillColors");
+		StyleManager.getColorNames(fillColors);
+		var themeColor:uint = getStyle("themeColor");
+
+		// Derivative styles.
+		var derStyles:Object = calcDerivedStyles(themeColor, borderColor,
+												 fillColors[0], fillColors[1]);
+
+		var g:Graphics = graphics;
+
+		g.clear();
+
+		switch (name)
+		{
+			case "thumbUpSkin":
+			{
+				drawThumbState(w, h,
+							   [ borderColor, derStyles.borderColorDrk1 ],
+							   [ fillColors[0], fillColors[1] ],
+							   [ fillAlphas[0], fillAlphas[1] ],
+							   true,
+							   true);
+				break;
+			}
+
+			case "thumbOverSkin":
+			{
+				var overFillColors:Array;
+				if (fillColors.length > 2)
+					overFillColors = [ fillColors[2], fillColors[3] ];
+				else
+					overFillColors = [ fillColors[0], fillColors[1] ];
+
+				var overFillAlphas:Array;
+				if (fillAlphas.length > 2)
+					overFillAlphas = [ fillAlphas[2], fillAlphas[3] ];
+  				else
+					overFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+				drawThumbState(w, h,
+				               [ derStyles.themeColDrk2, derStyles.themeColDrk1 ],
+				               overFillColors,
+				               overFillAlphas,
+				               true,
+				               true);
+				break;
+			}
+
+			case "thumbDownSkin":
+			{
+				drawThumbState(w, h,
+							   [ derStyles.themeColDrk2, derStyles.themeColDrk1 ],
+							   [ derStyles.fillColorPress1, derStyles.fillColorPress2 ],
+							   [ 1.0, 1.0 ],
+							   true,
+							   false);
+				break;
+			}
+
+			case "thumbDisabledSkin":
+			{
+				drawThumbState(w, h,
+							   [ borderColor, derStyles.borderColorDrk1 ],
+							   [ fillColors[0], fillColors[1] ],
+							   [ Math.max(0, fillAlphas[0] - 0.15), Math.max(0, fillAlphas[1] - 0.15) ],
+							   false,
+							   false);
+				break;
+			}
+		}
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4106
Author:   rfrishbe@adobe.com
Date:     2008-11-14T01:56:47.949068Z

Log Message:
-----------
Mostly rename changes.  IVisualItem -> IVisualElement.  IVisualContainer -> IVisualElementContainer.  Also changed the APIs so that it's addElement, removeElement, etc.. instead of addItem, removeItem, etc...  Moreover, all of these APIs have been added to IVisualElementContainer (not just the read-only ones).  Now there's a common interface for all containers (even Halo's Container class implements it).  There's no more need to do:

if (x is Group || x is FxContainer)

Just use the IVisualElementContainer interface.

Some classes, like FxScroller (and perhaps DataGroup/FxDataContainer), will only implement the "getter" part of the API.  For now, if you call the mutation methods, we will throw an exception.  Perhaps later we'll add a separate interface for the read-only portion and the mutator interface will extend that one.

There might be a few more places in the code that need to be updated to use the new names for the methods.  I know Mustella needs cleaning up so it doesn't use getItem and uses getElement instead.  I've left the old APIs in there exactly for this purpose, so we can gradually move over to the new names (esp. QA).

At some point soon, we will remove the old methods as well as type them more strictly to only accept IVisualElements, for example addElement(element:IVisualElement).  Part of this work is dependent on updating the Flash Component Kit so that it implements IVisualElement (and perhaps IVisualElementContainer for containers).

Ran checkintests and all gumbo mustella tests.

QE Notes: Please update your tests to use addElement, removeElement, etc... along with the new IVisualElementContainer interface.  The old APIs (addItem, removeItem, etc...) will be removed soon.
Doc Notes: None
Bugs: -
Reviewer: Hans (he patiently sat through all these files...)

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as" copyfrom-rev="4083" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -26,7 +26,8 @@
 import mx.core.IDataRenderer;
 import mx.core.IDeferredInstance;
 import mx.core.IFactory;
-import mx.core.IVisualItem;
+import mx.core.IVisualElement;
+import mx.core.IVisualElementContainer;
 import mx.core.mx_internal;
 import mx.core.UIComponent;
 import mx.events.CollectionEvent;
@@ -541,14 +542,14 @@
         var host:DisplayObject;

         // TODO (rfrishbe): need to check for DisplayObject?
-        if (item is IVisualItem)
-            host = IVisualItem(item).parent;
+        if (item is IVisualElement)
+            host = IVisualElement(item).parent;
         else if (item is DisplayObject)
             host = DisplayObject(item).parent;

         // Remove the item from the group if that group isn't this group
-        if (host && host is Group && host != this)
-            Group(host).removeItem(item);
+        if (host && host is IVisualElementContainer && host != this)
+            IVisualElementContainer(host).removeElement(item);
         else if (host && host is DataGroup && host != this)
         {
             var dp:IList = DataGroup(host).dataProvider;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3430
Author:   gruehle@adobe.com
Date:     2008-09-30T23:43:13.377931Z

Log Message:
-----------
This is a collection of minor component changes, done for consistency.

* Data is always "pushed" into skin parts. We were doing this in some places like ItemsComponent.contentGroup, but not in other places. Affected components are TextInput, TextArea, NumericStepper, and Button.

* Button (and every subclass) has an optional "labelField" SkinPart. The Button "label" property is pushed into this part if it is defined.

* Added skin states to the following components:
  TrackBase (includes H/VScrollBar and H/VSlider): States "normal" and "disabled".
  Spinner (includes NumericStepper): States "normal" and "disabled".
  ContainerBase (includes ItemsComponent, Selector, and List): States "normal" and "disabled".

  The appearance of "disabled" states is controlled by the skin. The behavior of "disabled" states is still controlled by the component (ie ScrollBar disables the thumb, track and arrow when it is disabled).

* Added new ContainerBase class, which is the base class for ItemsComponent and DataComponent. The base class manages the skin states and puts up a mouse shield when disabled.

* Thumb positioning code in slider and scrollbar always rounds to the nearest pixel boundary. Sub-pixel positioning makes the thumbs look blurry.

* TextView measurement is rounded to integer values. It was commonly returning non-integer values which was causing subsequent components in relative layouts to be positioned on sub-pixel boundaries.

Bugs: SDK-16933 Make Label be an optional part of Button and related components
QE: The pixel alignment changes may result in bitmap comparison failures. The bitmaps should be regenerated with the pixel alignment. There should be no functional changes to any of the components.
Reviewer: Chet, Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/DataComponentSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ItemsComponentSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/DataComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SelectorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ComplexPanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -39,7 +39,7 @@
 /**
  *  The built-in set of states for the TextInput component.
  */
-[SkinStates("enabled", "disabled")]
+[SkinStates("normal", "disabled")]

 /**
  *  Documentation is not currently available.
@@ -146,7 +146,7 @@
 	 */
 	override protected function getUpdatedSkinState():String
 	{
-		return enabled ? "enabled" : "disabled";
+		return enabled ? "normal" : "disabled";
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8487
Author:   smgilson@adobe.com
Date:     2009-07-09T18:57:21.985536Z

Log Message:
-----------
final checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -74,7 +74,7 @@
  * component it is applied to.

  *
  *  @mxml
- *
The <ShaderFilter> tag inherits all of the tag
+ *
The <s:ShaderFilter> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
  *


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

--- frameworks/projects/spark/src/spark/modules/ModuleLoader.as
+++ frameworks/projects/spark/src/spark/modules/ModuleLoader.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: 29
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-18T22:20:34.634972Z

Log Message:
-----------
Perforce Change 191355 by smgilson@SMGILSON-XP on 2007/12/18 14:15:41 Fixes for ASDoc comments for bugs FLEXDOCS-316, FLEXDOCS-308 Checkin Test Passed: Yes QA: No Bug: FLEXDOCS-316, FLEXDOCS-308 Doc: No Affected files ...

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceBundle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -331,7 +331,7 @@
  *    firstDayOfWeek="0"
  *    formatString="MM/DD/YYYY"
  *    labelFunction="<i>Internal formatter</i>"
- *    maxYeay="2100"
+ *    maxYear="2100"
  *    minYear="1900"
  *    monthNames="["January", "February", "March", "April", "May",
  *    "June", "July", "August", "September", "October", "November",


Transferred from the Adobe Open Source Subversion Repository

Revision: 8723
Author:   chaase@adobe.com
Date:     2009-07-21T23:19:39.441122Z

Log Message:
-----------
Fixed 2 areas of effects bugs (playheadTime and transform effects shared instances). Also fixed bug in GraphicElement.localToGlobal(). Fixes remaining transform effects bugs prior to feature signoff.

QE Notes: None
Doc Notes: None
Bugs: SDK-22315, sdk-22304, sdk-22302, sdk-21931, sdk-21068, sdk-20179, sdk-21069
Reviewer: Hans, Jason (GraphicElement), Glenn (SharedObjectDepot)
API Change: None
Is noteworthy for integration: No
tests: checkintests mustella spark/effects,mx/effects (run locally and in cyclone by Matt)

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/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/RGBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SharedObjectDepot.as</path>
<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/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Fade.as
+++ frameworks/projects/spark/src/spark/effects/Fade.as
@@ -11,6 +11,8 @@

 package spark.effects
 {
+import mx.core.IVisualElement;
+import mx.core.IVisualElementContainer;
 import mx.effects.IEffectInstance;

 import spark.effects.supportClasses.FadeInstance;
@@ -145,7 +147,25 @@
      */
     override public function getAffectedProperties():Array /* of String */
     {
-        return ["alpha", "visible", "parent"];
+        return ["alpha", "visible", "parent", "index"];
+    }
+
+    override protected function getValueFromTarget(target:Object, property:String):*
+    {
+        // We track 'index' for use in the addDisappearingTarget() function in
+        // AnimateInstance, in order to add the item in the correct order
+        if (property == "index" && "parent" in target)
+        {
+            var container:* = target.parent;
+            // if the target has no parent, return undefined for index to indicate that
+            // it has no index value.
+            if (container === undefined || container === null)
+                return undefined;
+            return IVisualElementContainer(container).
+                getElementIndex(target as IVisualElement);
+        }
+
+        return super.getValueFromTarget(target, property);
     }

     /**
@@ -159,7 +179,7 @@
         // We only want to track "parent" as it affects how
         // we fade; we don't actually want to change target properties
         // other than alpha or visibility
-        if (property == "parent")
+        if (property == "parent" || property == "index")
             return;

         super.applyValueToTarget(target, property, value, props);


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

--- frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.as
+++ frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.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.printing
 {


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

--- frameworks/projects/charts/src/mx/charts/styles/metadata/TextStyles.as
+++ frameworks/projects/charts/src/mx/charts/styles/metadata/TextStyles.as
@@ -1,4 +1,24 @@
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Color of text in the component, including the component label.
+ *
+ *  @default 0x0B333C
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
 [Style(name="color", type="uint", format="Color", inherit="yes")]

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 19280
Author:   aharui@adobe.com
Date:     2010-12-10T19:50:41.665477Z

Log Message:
-----------
Update ASDoc regarding CursorErrors and sorting

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ListCollectionView.as

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

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -1982,7 +1982,8 @@
      *  If the item can not be found no change to the current location will be
      *  made.
      *  findAny() can only be called on sorted views, if the view
-     *  isn't sorted a CursorError will be thrown.
+     *  isn't sorted, or items in the view do not contain properties used
+     *  to compute the sort order, a CursorError will be thrown.
      *

      *  If the associated collection is remote, and not all of the items have
      *  been cached locally this method will begin an asynchronous fetch from the
@@ -2042,7 +2043,8 @@
      *  If the item can not be found no change to the current location will be
      *  made.
      *  findFirst() can only be called on sorted views, if the view
-     *  isn't sorted a CursorError will be thrown.
+     *  isn't sorted, or items in the view do not contain properties used
+     *  to compute the sort order, a CursorError will be thrown.
      *

      *  If the associated collection is remote, and not all of the items have been
      *  cached locally this method will begin an asynchronous fetch from the
@@ -2099,7 +2101,8 @@
      *  If the item can not be found no change to the current location will be
      *  made.
      *  findLast() can only be called on sorted views, if the view
-     *  isn't sorted a CursorError will be thrown.
+     *  isn't sorted, or items in the view do not contain properties used
+     *  to compute the sort order, a CursorError will be thrown.
      *

      *  If the associated collection is remote, and not all of the items have been
      *  cached locally this method will begin an asynchronous fetch from the


No known changes

No known changes

--- swfcat.as
+++ swfcat.as
@@ -161,8 +161,6 @@
             });

 	    s_f.writeUTFBytes("GET / HTTP/1.0\r\n\r\n");
-	    s_f.flush();
-
         }

         private function client_connected(e:Event):void


Implement Boolean array streaming.

Implement Boolean array streaming.

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

--- src/as/com/threerings/io/streamers/ArrayStreamer.as
+++ src/as/com/threerings/io/streamers/ArrayStreamer.as
@@ -87,6 +87,11 @@
                 out.writeInt(arr[ii] as int);
             }

+        } else if (_elementType == Boolean) {
+            for (ii = 0; ii < arr.length; ii++) {
+                out.writeBoolean(arr[ii] as Boolean);
+            }
+
         } else if (_isFinal) {
             var mask :ArrayMask = new ArrayMask(arr.length);
             for (ii = 0; ii < arr.length; ii++) {
@@ -118,6 +123,11 @@
         if (_elementType == int) {
             for (ii = 0; ii < arr.length; ii++) {
                 arr[ii] = ins.readInt();
+            }
+
+        } else if (_elementType == Boolean) {
+            for (ii = 0; ii < arr.length; ii++) {
+                arr[ii] = ins.readBoolean();
             }

         } else if (_isFinal) {


Implement bodyObject's proper who().

Implement bodyObject's proper who().

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

--- src/as/com/threerings/crowd/data/BodyObject.as
+++ src/as/com/threerings/crowd/data/BodyObject.as
@@ -192,6 +192,16 @@
 //        out.writeField(awayMessage);
 //    }

+    override public function who () :String
+    {
+        var who :String = username.toString() + " (" + getOid();
+        if (status != OccupantInfo.ACTIVE) {
+            who += (" " + OccupantInfo.X_STATUS[status]);
+        }
+        who += ")";
+        return who;
+    }
+
     override public function readObject (ins :ObjectInputStream) :void
     {
         super.readObject(ins);


Do not lie.

Do not lie.

--- tamarin-central/thane/as3src/avmplus/Puddle.as
+++ tamarin-central/thane/as3src/avmplus/Puddle.as
@@ -51,7 +51,7 @@

         _domain = new Domain(env.domain);

-        trace("Initializing new Yard with Domain[" + env.domain + "]");
+        trace("Initializing new Puddle with Domain[" + env.domain + "]");

         initPuddle(_domain, env);
     }


Added ROOT_URL constant, and STAGING_SERVER_URL constant (for use in login screen form)

--- flexEditor/src/org/arisgames/editor/util/AppConstants.as
+++ flexEditor/src/org/arisgames/editor/util/AppConstants.as
@@ -2,8 +2,12 @@
 {
 public class AppConstants
 {
+	public static const APPLICATION_ENVIRONMENT_ROOT_URL:String = "http://arisgames.org/"; //For other URL's to append to
+	public static const APPLICATION_ENVIRONMENT_STAGING_URL:String = APPLICATION_ENVIRONMENT_ROOT_URL+"stagingserver1"; //server to be set on iOS device
+
 	public static const APPLICATION_ENVIRONMENT_SERVICES_URL:String = "http://davembp.local/server/services/aris/"; //staging
 	//public static const APPLICATION_ENVIRONMENT_SERVICES_URL:String = "http://www.arisgames.org/stagingserver1/services/aris/"; //staging
+

 	public static const APPLICATION_ENVIRONMENT_UPLOAD_SERVER_URL:String = "http://davembp.local/server/services/aris/uploadhandler.php"; //davembp
 	//public static const APPLICATION_ENVIRONMENT_UPLOAD_SERVER_URL:String = "http://atsosxdev.doit.wisc.edu/aris/server/services/aris/uploadhandler.php";	//dev


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

--- frameworks/projects/framework/src/mx/core/DesignLayer.as
+++ frameworks/projects/framework/src/mx/core/DesignLayer.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: 4111
Author:   chaase@adobe.com
Date:     2008-11-14T16:39:46.711628Z

Log Message:
-----------
Makes auto-reversal of transitions work more completely and correctly, fixing some API issues and other related animation/effect issues along the way. Seeking behavior in effects is improved (although still far from perfect, especially for non-playing effects), and dynamic behavior of effects (picking up values dynamically from the environment) is improved.

QE Notes: better seek() behavior, can just call it on non-playing effects and it will automatically play/pause the effect if necessary
Doc Notes: None
Bugs: sdk-17294, sdk-16595, sdk-18104, sdk-18105, sdk-18106, sdk-18107
Reviewer: Jason
tests: checkintests, Mustella: tests/Effects, tests/gumbo/effects tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.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/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<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/Parallel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Sequence.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Parallel.as
+++ frameworks/projects/framework/src/mx/effects/Parallel.as
@@ -94,6 +94,60 @@

 		instanceClass = ParallelInstance;
 	}
+
+    /**
+     * @inheritDoc
+     *
+     * Parallel calculates this number to be the duration of each
+     * child effect played at the same time, so the compositeDuration
+     * will be equal to the duration of the child effect with the
+     * longest duration (including the startDelay and repetition data
+     * of that effect).
+     */
+    override public function get compositeDuration():Number
+    {
+        var parallelDuration:Number = 0;
+        for (var i:int = 0; i < children.length; ++i)
+        {
+            var childDuration:Number;
+            var child:Effect = Effect(children[i]);
+            if (child is CompositeEffect)
+                childDuration = CompositeEffect(child).compositeDuration;
+            else
+                childDuration = child.duration;
+            childDuration =
+                childDuration * child.repeatCount +
+                (child.repeatDelay * (child.repeatCount - 1)) +
+                child.startDelay;
+            parallelDuration = Math.max(parallelDuration, childDuration);
+        }
+        return parallelDuration;
+    }
+
+    // Note that we implement seek() in the instance class for Sequence,
+    // but in the factory class for Parallel. This is because we can do
+    // it at the factory level for Parallel, but for Sequence we need
+    // extra functionality that is only available in the instance class.
+    /**
+     * @inheritDoc
+     *
+     * In a Parallel effect, seek will cause all child effects to seek to
+     * the same seekTime. This may cause child effects to
+     * lessen their startDelay (if they are currently waiting to be played),
+     * start playing (if the seekTime is greater than their startDelay), or
+     * come to an end (if the seekTime is greater than their startDelay plus
+     * their duration).
+     */
+    override public function seek(seekTime:Number):void
+    {
+        // This will seek in the Parallel's instance
+        super.seek(seekTime);
+        // Tell all of our active children to seek()
+        for (var i:int = 0; i < children.length; i++)
+        {
+            children[i].seek(seekTime);
+        }
+    }
 }

 }


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

--- frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
+++ frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
@@ -0,0 +1,223 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+import flash.events.Event;
+
+/**
+ *  Represents events that are specific to the ColorPicker control,
+ *  such as when the user rolls the mouse over or out of a swatch in
+ *  the swatch panel.
+ */
+public class ColorPickerEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  The ColorPickerEvent.CHANGE constant defines the value of the
+	 *  type property of the event that is dispatched when the user
+	 *  selects a color from the ColorPicker control.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
color	The RGB color that was selected.

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
index
+	 *         The zero-based index in the Color's data provider that corresponds
+	 *             to the color that was selected.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+     *  @eventType change
+	 */
+    public static const CHANGE:String = "change";
+
+    /**
+	 *  The ColorPickerEvent.ENTER constant defines the value of the
+	 *  type property of the event that is dispatched when the user
+	 *  presses the Enter key after typing in the color selector box.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
color	The RGB color that was entered.

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
index
+	 *         Always -1.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+     *  @eventType enter
+     */
+    public static const ENTER:String = "enter";
+
+    /**
+ 	 *  The ColorPickerEvent.ITEM_ROLL_OUT constant defines the value of the
+	 *  type property of the event that is dispatched when the user
+	 *  rolls the mouse out of a swatch in the swatch panel.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
color	The RGB color of the color
+	 *                   that was rolled over.

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
index
+	 *         The zero-based index in the Color's data provider that corresponds
+	 *             to the color that was rolled over.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+     *  @eventType itemRollOut
+     */
+    public static const ITEM_ROLL_OUT:String = "itemRollOut";
+
+    /**
+ 	 *  The ColorPickerEvent.ITEM_ROLL_OVER constant defines the value of the
+	 *  type property of the event that is dispatched when the user
+	 *  rolls the mouse over of a swatch in the swatch panel.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
color	The RGB color of the color
+	 *                   that the user rolled out of.

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
index
+	 *         The zero-based index in the Color's data provider that corresponds
+	 *             to the color that the user rolled out of.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+	 *

+	 *
+     *  @eventType itemRollOver
+     */
+    public static const ITEM_ROLL_OVER:String = "itemRollOver";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that caused the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+	 *
+	 *  @param index The zero-based index in the Color's data provider
+	 *  that corresponds to the color that was rolled over, rolled out of,
+	 *  or selected.
+	 *
+	 *  @param color The RGB color that was rolled over, rolled out of,
+	 *  selected, or entered.
+     */
+    public function ColorPickerEvent(
+						type:String, bubbles:Boolean = false,
+                        cancelable:Boolean = false, index:int = -1,
+						color:uint = 0xFFFFFFFF /* StyleManager.NOT_A_COLOR */)
+    {
+        super(type, bubbles, cancelable);
+
+		this.index = index;
+		this.color = color;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  color
+	//----------------------------------
+
+    /**
+	 *  The RGB color that was rolled over, rolled out of, selected, or
+	 *  entered.
+     */
+    public var color:uint;
+
+	//----------------------------------
+	//  index
+	//----------------------------------
+
+    /**
+	 *  The zero-based index in the Color's data provider that corresponds
+	 *  to the color that was rolled over, rolled out of, or selected.
+	 *  If the event type is ColorPickerEvent.ENTER,
+	 *  will have default value -1; it is not set in this case because
+	 *  the user can enter an RGB string that doesn't match any color
+	 *  in the data provider.
+     */
+    public var index:int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new ColorPickerEvent(type, bubbles, cancelable, index, color);
+    }
+}
+
+}


Deleting items from side palette now consistently works without destroying tree structure

--- flexEditor/src/org/arisgames/editor/view/GameEditorObjectPaletteView.as
+++ flexEditor/src/org/arisgames/editor/view/GameEditorObjectPaletteView.as
@@ -621,11 +621,12 @@

     private function handleRedrawTreeEvent(evt:DynamicEvent):void
     {
-        trace("In handleRefreshTreeEvent...");
-        refreshData = true;
-        this.renderTree();
-		paletteTree.openFolders();
-        trace("Done in handleRefreshTreeEvent.");
+        trace("In handleRedrawTreeEvent...");
+
+		this.refreshData = true;
+		AppServices.getInstance().getFoldersAndContentByGameId(GameModel.getInstance().game.gameId, new Responder(handleLoadFoldersAndContentForObjectPalette, handleFault));
+
+        trace("Done in handleRedrawTreeEvent.");
     }

     public function renderTree():void
@@ -669,21 +670,7 @@
 				Alert.show("This folder has items in it and can't be deleted until they are first removed.  Please do so and then try deleting the folder again.", "Can't Delete Folder Yet");

             }
-			else if (it.parentFolderId != 0){
-				trace("This folder is a child, so can't allow it to be deleted.");
-				okDrop = false;
-				Alert.show("This folder is in a folder, and cannot be deleted until it is first removed. Please do so and then try deleting it again.", "Can't Delete Nested Object");
-
-			}
-        }
-		else
-		{
-			if(it.parentContentFolderId != 0)
-			{
-				trace("This object is in a folder, so don't allow it to be deleted.");
-				okDrop = false;
-			}
-		}
+        }

         if (okDrop)
         {
@@ -694,11 +681,7 @@
             // Accept the drop.
             DragManager.acceptDragDrop(dropTarget);
         }
-        else
-        {
-			if(!it.isFolder())
-				Alert.show("This item is in a folder, and cannot be deleted until it is first removed. Please do so and then try deleting it again.", "Can't Delete Nested Object");
-		}
+
     }

     public function trashDragExitHandler(evt:DragEvent):void
@@ -728,22 +711,9 @@
             AppServices.getInstance().deleteContent(GameModel.getInstance().game.gameId, it, new Responder(handleDeleteContent, handleFault));
         }

-        // Remove From Client Data Model
-        var index:Number;
-        for (var lc:Number = 0; lc < treeModel.length; lc++)
-        {
-            var t:ObjectPaletteItemBO = treeModel[lc] as ObjectPaletteItemBO;
-            if (t.id == it.id)
-            {
-                index = lc;
-                break;
-            }
-        }
-        trace("Found index to remove...");
-        treeModel.removeItemAt(index);
-        refreshData = true;
-        this.renderTree();
-		paletteTree.openFolders();
+        // Refresh Client Data Model
+		this.refreshData = true;
+		AppServices.getInstance().getFoldersAndContentByGameId(GameModel.getInstance().game.gameId, new Responder(handleLoadFoldersAndContentForObjectPalette, handleFault));

         // Stop Effect And Reset Trash Bin To Original State
         glowImage.end();


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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.graphics
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17452
Author:   jasonsj@adobe.com
Date:     2010-08-23T22:22:34.799517Z

Log Message:
-----------
Fixed layout of titleGroup and titleDisplay when positions overlap

QE notes:
Doc notes:
Bugs:
SDK-27406 actionbar skin: sometimes the divider doesn't adjust well to the content
Reviewer: jszeto
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
@@ -166,8 +166,13 @@
         border.width = unscaledWidth;
         border.height = unscaledHeight + 5;

-        var left:Number = 0;
-        var right:Number = unscaledWidth;
+        var navigationGroupWidth:Number = 0;
+
+        var titleCompX:Number = 0;
+        var titleCompWidth:Number = unscaledWidth;
+
+        var actionGroupX:Number = 0;
+        var actionGroupWidth:Number = 0;

         // position groups, overlap of navigation and action groups is allowed
         // when overlap occurs, titleDisplay/titleGroup is not visible
@@ -175,59 +180,72 @@
         if (navigationGroup.numElements > 0
             && navigationGroup.includeInLayout)
         {
-            left += navigationGroup.getPreferredBoundsWidth();
-            navigationGroup.setLayoutBoundsSize(left, unscaledHeight);
+            navigationGroupWidth = navigationGroup.getPreferredBoundsWidth();
+            titleCompX += navigationGroupWidth;
+            navigationGroup.setLayoutBoundsSize(titleCompX, unscaledHeight);
             navigationGroup.setLayoutBoundsPosition(0, 1); // top border
         }

         if (actionGroup.numElements > 0 && actionGroup.includeInLayout)
         {
-            var actionGroupWidth:Number =
-                actionGroup.getPreferredBoundsWidth();
-            right -= actionGroupWidth;
+            actionGroupWidth = actionGroup.getPreferredBoundsWidth();
+            actionGroupX = unscaledWidth - actionGroupWidth;
             actionGroup.setLayoutBoundsSize(actionGroupWidth, unscaledHeight);

             // actionGroup x position can be negative
-            actionGroup.setLayoutBoundsPosition(right, 1); // top border
-        }
-
-        var titleCompWidth:Number = right - left;
-        if (titleCompWidth < 0)
-            titleCompWidth = 0;
-
-        if (titleGroup.numElements > 0 && titleGroup.includeInLayout)
+            actionGroup.setLayoutBoundsPosition(actionGroupX, 1); // top border
+        }
+
+        titleCompWidth = titleCompWidth - titleCompX - actionGroupWidth;
+        if (titleCompWidth <= 0)
+        {
+            titleDisplay.visible = false;
+            titleGroup.visible = false;
+        }
+        else if (titleGroup.numElements > 0 && titleGroup.includeInLayout)
         {
             titleGroup.setLayoutBoundsSize(titleCompWidth, unscaledHeight);
-            titleGroup.setLayoutBoundsPosition(left, 1);
+            titleGroup.setLayoutBoundsPosition(titleCompX, 1);

             titleDisplay.visible = false;
             titleGroup.visible = true;
         }
         else
         {
-            var titleX:Number = left + TITLE_PADDING;
-            var titleY:Number = 0;
+            // FIXME (jasonsj): pending mobile styling spec
+            // paddingLeft
+            titleCompX = titleCompX + TITLE_PADDING;

             // FIXME (jasonsj): pending mobile styling spec
-            // paddingLeft, paddingRight
+            // paddingRight
             titleCompWidth -= TITLE_PADDING * 2;

-            if (FlexGlobals.topLevelApplication.getStyle("titleAlign") == "center")
+            if (hostComponent.getStyle("titleAlign") == "center")
             {
                 // horizontalAlign=center
                 titleCompWidth = titleDisplay.getExplicitOrMeasuredWidth();
-                titleX = Math.floor((unscaledWidth / 2) - (titleCompWidth / 2));
+                titleCompX = Math.floor((unscaledWidth / 2) - (titleCompWidth / 2));
             }
-
-            // verticalAlign=center
-            var titleHeight:Number = titleDisplay.getExplicitOrMeasuredHeight();
-            titleY = Math.floor((unscaledHeight / 2) - (titleHeight / 2));
-
-            titleDisplay.setLayoutBoundsSize(titleCompWidth, titleHeight);
-            titleDisplay.setLayoutBoundsPosition(titleX, titleY + 1); // +1 FXG border
-
-            titleDisplay.visible = true;
-            titleGroup.visible = false;
+
+            // hide titleDisplay if there is any overlap after padding
+            if ((titleCompX < navigationGroup.getLayoutBoundsWidth())
+                || ((titleCompX + titleCompWidth) > actionGroupX))
+            {
+                titleDisplay.visible = false;
+                titleGroup.visible = false;
+            }
+            else
+            {
+                // verticalAlign=center
+                var titleHeight:Number = titleDisplay.getExplicitOrMeasuredHeight();
+                var titleCompY:Number = Math.floor((unscaledHeight / 2) - (titleHeight / 2));
+
+                titleDisplay.setLayoutBoundsSize(titleCompWidth, titleHeight);
+                titleDisplay.setLayoutBoundsPosition(titleCompX, titleCompY + 1); // +1 FXG border
+
+                titleDisplay.visible = true;
+                titleGroup.visible = false;
+            }
         }

         // Draw background


Fix label modification on masterAnimationContoller

--- src/aerys/minko/scene/controller/animation/MasterAnimationController.as
+++ src/aerys/minko/scene/controller/animation/MasterAnimationController.as
@@ -187,6 +187,11 @@

 			_labelNames[index] = newName;

+			var numAnimations : uint = _animations.length;
+
+			for (var animationId : uint = 0; animationId < numAnimations; ++animationId)
+				_animations[animationId].changeLabel(oldName, newName);
+
 			return this;
 		}

@@ -198,6 +203,11 @@
 				throw new Error('The time label named \'' + name + '\' does not exist.');

 			_labelTimes[index] = newTime;
+
+			var numAnimations : uint = _animations.length;
+
+			for (var animationId : uint = 0; animationId < numAnimations; ++animationId)
+				_animations[animationId].setTimeForLabel(name, newTime);

 			return this;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7541
Author:   gruehle@adobe.com
Date:     2009-06-04T00:14:58.720187Z

Log Message:
-----------
AIR Window/WindowedApplication bug fixes:

SDK-21585 - When minimizable = false, calling minimize() still minimizes.
* Added early exit to minimize() if minimizable is false. Fixed in all 4 window classes (spark/halo, Window/WindowedApplication)

SDK-21494 - You get a runtime error when setting baseColor on a WindowedAppliation
* There were problems with the exclusions list in several of the AIR skins

QA Notes: 21585 needs to be regressed for all 4 window classes.
Doc Notes: none
Reviewer: Chet

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/spark/skins/default/FlexChromeSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</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/spark/skins/default/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -1986,6 +1986,9 @@
      */
     public function minimize():void
     {
+        if (!minimizable)
+            return;
+
         if (!nativeWindow.closed)
         {
             var e:NativeWindowDisplayStateEvent = new NativeWindowDisplayStateEvent(


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

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

 package mx.formatters
 {