added underscore to the attribute names of each game object

--- DroneAnarchy/GameObjects.as
+++ DroneAnarchy/GameObjects.as
@@ -2,26 +2,26 @@

 class PlayerObject : ScriptObject
 {
-	float maximumHealth;
-	float currentHealth;
-	float healthDeductionRate;
+	float maximumHealth_;
+	float currentHealth_;
+	float healthDeductionRate_;

 	PlayerObject()
 	{
-		maximumHealth = currentHealth = 100;
-		healthDeductionRate = 2;
+		maximumHealth_ = currentHealth_ = 100;
+		healthDeductionRate_ = 2;
 	}

 	void OnHit()
 	{
-		currentHealth -= healthDeductionRate;
-		if(currentHealth < 0.0f )
-		{
-			currentHealth = 0.0f;
-		}
-
-		float healthFraction = currentHealth / maximumHealth;
+		currentHealth_ -= healthDeductionRate_;
+		if(currentHealth_ < 0.0f )
+		{
+			currentHealth_ = 0.0f;
+		}
+
+		float healthFraction = currentHealth_ / maximumHealth_;
 		VariantMap eventData;
 		eventData["CurrentHealthFraction"] = healthFraction;
 		SendEvent("PlayerHit", eventData);
@@ -33,19 +33,19 @@
 class DroneObject : ScriptObject
 {

-	float currentHealthLevel;
-	float attackTime;
-	float attackTimer;
-
-	bool hasAttacked;
+	float currentHealthLevel_;
+	float attackTime_;
+	float attackTimer_;
+
+	bool hasAttacked_;

 	DroneObject()
 	{
-		currentHealthLevel = 6;
-		attackTime = 37;
-		attackTimer = 0;
-		hasAttacked = false;
+		currentHealthLevel_ = 6;
+		attackTime_ = 37;
+		attackTimer_ = 0;
+		hasAttacked_ = false;

 	}

@@ -69,7 +69,7 @@
 	void FixedUpdate(float timestep)
 	{

-		if(currentHealthLevel <= 0)
+		if(currentHealthLevel_ <= 0)
 		{
 			//Add explosion Effects
 			VariantMap eventData;
@@ -77,10 +77,10 @@
 			SendEvent("DroneDestroyed", eventData);
 			Destroy();
 		}
-		else if(!hasAttacked)
-		{
-			attackTimer += timestep;
-			if(attackTimer >= attackTime)
+		else if(!hasAttacked_)
+		{
+			attackTimer_ += timestep;
+			if(attackTimer_ >= attackTime_)
 			{
 				Attack();
 			}
@@ -111,7 +111,7 @@
 		objectBody.kinematic = false;

 		objectBody.linearVelocity = node.rotation * Vector3(0,-15, -35);
-		hasAttacked = true;
+		hasAttacked_ = true;
 	}

 	void Destroy()
@@ -123,7 +123,7 @@

 	void OnHit()
 	{
-		currentHealthLevel -= 1;
+		currentHealthLevel_ -= 1;
 	}

 }
@@ -132,14 +132,14 @@
 ///Bullet Object Class
 class BulletObject : ScriptObject
 {
-	float termTime;
-	float termTimeCounter;
+	float termTime_;
+	float termTimeCounter_;

 	BulletObject()
 	{
-		termTime = 1;
-		termTimeCounter = 0;
+		termTime_ = 1;
+		termTimeCounter_ = 0;
 	}

@@ -151,9 +151,9 @@

 	void FixedUpdate(float timestep)
 	{
-		termTimeCounter += timestep;
-
-		if(termTimeCounter >= termTime)
+		termTimeCounter_ += timestep;
+
+		if(termTimeCounter_ >= termTime_)
 		{
 			Destroy();
 		}
@@ -186,18 +186,18 @@
 ///Explosion Object
 class ExplosionObject : ScriptObject
 {
-	float duration;
+	float duration_;

 	ExplosionObject()
 	{
-		duration = 0.78f;
+		duration_ = 0.78f;
 	}

 	void FixedUpdate(float timestep)
 	{
-		duration -= timestep;
-		if(duration < 0.0f)
+		duration_ -= timestep;
+		if(duration_ < 0.0f)
 		{
 			node.Remove();
 		}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/managers/IFocusManagerGroup.as
+++ frameworks/projects/framework/src/mx/managers/IFocusManagerGroup.as
@@ -21,6 +21,11 @@
  *  can only have one RadioButton selected at any one time,
  *  and the FocusManager will make sure not to give focus to the RadioButtons
  *  that are not selected in response to moving focus via the Tab key.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IFocusManagerGroup
 {
@@ -36,6 +41,11 @@

 	/**
 	 *	The name of the group of controls to which the control belongs.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get groupName():String;

@@ -50,6 +60,11 @@

 	/**
 	 *	A flag that indicates whether this control is selected.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function get selected():Boolean;


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

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

 package mx.automation.delegates.controls
 {


removed unnecessary error message

removed unnecessary error message

Change-Id: Ie8166bfba23a04a678c4f963af6ce29eb6729bc3

--- WeaveData/src/weave/services/Servlet.as
+++ WeaveData/src/weave/services/Servlet.as
@@ -234,7 +234,7 @@
 		 * This is a mapping of AsyncToken objects to URLLoader objects.
 		 * This mapping is necessary so a client with an AsyncToken can cancel the loader.
 		 */
-		private const _asyncTokenData:Dictionary = new Dictionary();
+		private var _asyncTokenData:Dictionary = new Dictionary();

 		private function resultHandler(event:ResultEvent, token:AsyncToken):void
 		{
@@ -256,12 +256,14 @@

 		public function dispose():void
 		{
-			var fault:Fault = new Fault('Notification', 'Servlet was disposed', null);
+//			var fault:Fault = new Fault('Notification', 'Servlet was disposed', null);
 			for each (var token:AsyncToken in VectorUtils.getKeys(_asyncTokenData))
 			{
-				var event:FaultEvent = new FaultEvent(FaultEvent.FAULT, false, true, fault, token);
-				faultHandler(event, token);
-			}
+				cancelLoaderFromToken(token);
+//				var event:FaultEvent = new FaultEvent(FaultEvent.FAULT, false, true, fault, token);
+//				faultHandler(event, token);
+			}
+			_asyncTokenData = new Dictionary();
 		}
 	}
 }


fixed the prototype of VertexStreamList.subStreamChangedHandler() to fit the execution of the VertexStream.changed signal

--- src/aerys/minko/type/stream/VertexStreamList.as
+++ src/aerys/minko/type/stream/VertexStreamList.as
@@ -124,9 +124,9 @@
 				_streams[i].dispose();
 		}

-		private function subStreamChangedHandler(subStream : VertexStream, property : String) : void
+		private function subStreamChangedHandler(subStream : VertexStream) : void
 		{
-			_changed.execute(this, null);
+			_changed.execute(this);
 		}

 		private function subStreamBoundsChangedHandler(subStream : VertexStream) : void


Add utility method to ensure OS line endings.

--- src/com/esri/builder/supportClasses/FileUtil.as
+++ src/com/esri/builder/supportClasses/FileUtil.as
@@ -107,5 +107,10 @@

         return matchingFile;
     }
+
+    public static function ensureOSLineEndings(text:String):String
+    {
+        return text ? text.replace(/\n/g, File.lineEnding) : "";
+    }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18279
Author:   chiedozi@adobe.com
Date:     2010-10-21T21:54:20.944908Z

Log Message:
-----------
PARB changes
updatePropertiesForView was renamed updateControlsForView
exitApplicationOnBackKey is now mx_internal in ViewNavigator and MobileApplication classes

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -119,12 +119,12 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  canCancelBackKeyBehavior
-    //----------------------------------
-    /**
-     *  @private
-     */
-    override public function get exitApplicationOnBackKey():Boolean
+    //  exitApplicationOnBackKey
+    //----------------------------------
+    /**
+     *  @private
+     */
+    override mx_internal function get exitApplicationOnBackKey():Boolean
     {
     	if (navigator)
     		return navigator.exitApplicationOnBackKey;


Header fixy.

Header fixy.

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

--- src/as/com/threerings/ezgame/UserChatEvent.as
+++ src/as/com/threerings/ezgame/UserChatEvent.as
@@ -1,5 +1,5 @@
 //
-// $Id: UserChatEvent.as 271 2007-04-07 00:25:58Z dhoover $
+// $Id$
 //
 // Vilya library - tools for developing networked games
 // Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved


Transferred from the Adobe Open Source Subversion Repository

Revision: 10759
Author:   chaase@adobe.com
Date:     2009-09-30T20:29:28.049407Z

Log Message:
-----------
Fixes bug in transform effects on nested group structures. We would calculate the transform center based on outdated width/height information for a group (because we took those values prior to running layout on the group, so it was not sized correctly).

The fix is to add width/height to the list of properties that transform effects care about (‘affectedProperties’). Then at those times when we calculate the transform center, we will use these cached values (which are correct at start/end time) rather than going out to the object to grab a potentially wrong value.

QE notes:  Handful of Mustella tests fail due to the new values of relevantProperties/affectedProperties for transform effects. We now care about width/height properties, too.
Doc notes: None
Bugs: SDK-23346
Reviewer: Jason
Tests run: checkintests, Mustella spark/effects, mx/effects/Parallel, mx/effects/Sequence
Is noteworthy for integration: Yes, downstream teams care about this bug

Modified Paths:
--------------
<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/effects/Scale3D.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/Move.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/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move.as
+++ frameworks/projects/spark/src/spark/effects/Move.as
@@ -81,7 +81,8 @@
         ["translationX", "translationY",
          "postLayoutTranslationX","postLayoutTranslationY",
          "left", "right", "top", "bottom",
-         "horizontalCenter", "verticalCenter"];
+         "horizontalCenter", "verticalCenter",
+         "width", "height"];

     private static var RELEVANT_STYLES:Array =
         ["left", "right", "top", "bottom",


fixed bug: not finding root entity by id

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/RecordProxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/RecordProxy.as
@@ -15,7 +15,11 @@
     public class RecordProxy extends RecordProxyBase {

 		public function getNode(id:int):NodeProxy {
-			return rootEntity.getNode(id);
+			if(id == rootEntity.id) {
+				return rootEntity;
+			} else {
+				return rootEntity.getNode(id);
+			}
 		}

 		public function update(nodes:IList):void {


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

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


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

--- frameworks/projects/charts/src/mx/charts/CandlestickChart.as
+++ frameworks/projects/charts/src/mx/charts/CandlestickChart.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: 16920
Author:   tkraikit@adobe.com
Date:     2010-07-14T23:23:27.777373Z

Log Message:
-----------
Fix for bug SDK-25921. Protect against null case.

QE notes: -
Doc notes: -
Bugs: SDK-25921
Reviewer: klin
Tests run: checkintests, mustella
Is noteworthy for integration: -

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

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -230,7 +230,8 @@

         // convert thumb position to parent's coordinates.
         thumbPos = track.localToGlobal(new Point(thumbPosTrackX, 0));
-        thumbPosParentX = thumb.parent.globalToLocal(thumbPos).x;
+        if (thumb.parent)
+            thumbPosParentX = thumb.parent.globalToLocal(thumbPos).x;

         thumb.setLayoutBoundsPosition(Math.round(thumbPosParentX), thumb.getLayoutBoundsY());
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12380
Author:   smgilson@adobe.com
Date:     2009-12-02T18:37:15.838623Z

Log Message:
-----------
ASDoc edits in preparation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DisplayLayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarHorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -78,9 +78,11 @@
  *

  *
  *  @includeExample examples/VScrollBarExample.mxml
+ *
  *  @see spark.skins.spark.VScrollBarSkin
  *  @see spark.skins.spark.VScrollBarThumbSkin
  *  @see spark.skins.spark.VScrollBarTrackSkin
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -240,25 +242,19 @@
     }

     /**
-     *  If viewport is not null,
-     *  changes the vertical scroll position for a page up or page down operation
-     *  by
-     *  scrolling the viewport.
-     *  This method calculates the amount to scroll by calling the
-     *  IViewport.getVerticalScrollPositionDelta() method
-     *  with either flash.ui.Keyboard.PAGE_UP
-     *  or flash.ui.Keyboard.PAGE_DOWN.
-     *  It then calls the setValue() method to
-     *  set the IViewport.verticalScrollPosition property
-     *  to the appropriate value.
+     *  Increment value by a page if increase is true,
+     *  or decrement value  by a page if increase is false.
+     *  Increasing the scrollbar's value scrolls the viewport up.
+     *  Decreasing the value scrolls to the viewport down.
+     *
+     *
If the viewport property is set, then its
+     *  getVerticalScrollPositionDelta() method
+     *  is used to compute the size of the page increment.
+     *  If viewport is null, then the scrollbar's
+     *  pageSize property is used.

      *
-     *
If viewport is null,
-     *  calling this method changes the vertical scroll position for
-     *  a page up or page down operation by calling
-     *  the changeValueByPage() method.

-     *
-     *  @param increase Whether the page scroll is up (true) or
-     *  down (false).
+     *  @param increase Whether to increment (true) or
+     *  decrement (false) value.
      *
      *  @see spark.components.supportClasses.ScrollBarBase#changeValueByPage()
      *  @see spark.components.supportClasses.Range#setValue()


Transferred from the Adobe Open Source Subversion Repository

Revision: 11092
Author:   gruehle@adobe.com
Date:     2009-10-22T22:40:32.867834Z

Log Message:
-----------
Styling bug fixes:
- Halo Panel cornerRadius is for theme="halo, spark"
- Add support for borderAlpha and borderVisible to DateChooser.
- Halo NumericStepper proxies the borderVisible style down to the text input.
- Spark Spinner: add metadata for cornerRadius
- Spark FocusSkin: add null check
- SpinnerSkin/NumericStepperSkin: push cornerRadius down to increment/decrement buttons
- PanelBorderSkin: round corners of control bar

QE notes: None
Doc notes: None
Bugs: SDK-23537, SDK-23447, SDK-23350, SDK-23370, SDK-23271, SDK-23343, SDK-23341
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridHeaderBackgroundSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/NumericStepperSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -146,7 +146,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo")]
+[Style(name="cornerRadius", type="Number", format="Length", inherit="no", theme="halo, spark")]

 /**
  *  Boolean property that controls the visibility


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14244
Author:   hmuller@adobe.com
Date:     2010-02-18T16:20:43.855767Z

Log Message:
-----------
Merge 4.x revision 14243 to trunk.

Ensure that menus are shown in the correct location when the layout has been mirrored.

QE notes: This change should have no effect on components that haven't been mirrored
Doc notes:
Bugs:
Reviewer: Carol
Tests run: Menu, MenuBar cyclone was checked (thanks Joan)
Is noteworthy for integration: no

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

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

--- frameworks/projects/mx/src/mx/controls/MenuBar.as
+++ frameworks/projects/mx/src/mx/controls/MenuBar.as
@@ -1799,6 +1799,11 @@
         var pt:Point = new Point(0, 0);
         pt = DisplayObject(item).localToGlobal(pt);

+        // If the layout has been mirrored, then the 0,0 is the uppper
+        // right corner; compensate here.
+        if (layoutDirection == "rtl")
+            pt.x -= menu.getExplicitOrMeasuredWidth();
+
         // check to see if we'll go offscreen
         if (pt.y + item.height + 1 + menu.getExplicitOrMeasuredHeight() > screen.height + screen.y)
             pt.y -= menu.getExplicitOrMeasuredHeight();


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

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

 package spark.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17201
Author:   cframpto@adobe.com
Date:     2010-08-05T14:56:08.412026Z

Log Message:
-----------
Add listStylePosition and listStyleType metadata for TLF's new list element.  Add them both to the list of size invalidating styles.  Add styles to list of styles in ASdoc.

QE notes:  listStylePosition=outside leaks outside our components - known issue which we're working with TLF on
Doc notes:
Bugs: SDK-27254
Reviewer: Corey
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -242,6 +242,8 @@
  *    ligatureLevel="common"
  *    lineHeight="120%"
  *    lineThrough="false"
+ *    listStylePosition="outside"
+ *    listStyleType="disc"
  *    locale="en"
  *    paragraphEndIndent="0"
  *    paragraphSpaceAfter="0"


create playerSmoothSetLevel on ChromelessPlayer to change level without seeking

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -75,6 +75,7 @@
             ExternalInterface.addCallback("playerStop", _stop);
             ExternalInterface.addCallback("playerVolume", _volume);
             ExternalInterface.addCallback("playerSetLevel", _setLevel);
+            ExternalInterface.addCallback("playerSmoothSetLevel", _smoothSetLevel);
             ExternalInterface.addCallback("playerSetmaxBufferLength", _setmaxBufferLength);
             ExternalInterface.addCallback("playerSetminBufferLength", _setminBufferLength);
             ExternalInterface.addCallback("playerSetflushLiveURLCache", _setflushLiveURLCache);
@@ -278,11 +279,15 @@
         };

         private function _setLevel(level : Number) : void {
+            _smoothSetLevel(level);
+            if (!isNaN(_media_position) && level != -1) {
+                _hls.stream.seek(_media_position);
+            }
+        };
+
+        private function _smoothSetLevel(level: Number) : void {
             if (level != _hls.level) {
-                _hls.level = level;
-                if (!isNaN(_media_position) && level != -1) {
-                    _hls.stream.seek(_media_position);
-                }
+              _hls.level = level;
             }
         };


Add jsEventsMode url parameter: allow to switch between classic ExternalInterface function calls or ExternalInterface object calls

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -42,6 +42,7 @@
         protected var _duration : Number;
         /** URL autoload feature */
         protected var _autoLoad : Boolean = false;
+        protected var _externalEventsMode : Number = 0;

         /** Initialization. **/
         public function ChromelessPlayer() {
@@ -49,6 +50,7 @@
             _setupSheet();
             _setupExternalGetters();
             _setupExternalCallers();
+            _setupExternalEvents();

             setTimeout(_pingJavascript, 50);
         };
@@ -105,6 +107,13 @@
             ExternalInterface.addCallback("playerSetAudioTrack", _setAudioTrack);
             ExternalInterface.addCallback("playerSetJSURLStream", _setJSURLStream);
         };
+
+        protected function _setupExternalEvents() : void {
+            var jsEventsMode : String = root.loaderInfo.parameters.jsEventsMode as String;
+            if (jsEventsMode == "object") {
+                _externalEventsMode = 1;
+            }
+        };

         protected function _setupStage() : void {
             stage.scaleMode = StageScaleMode.NO_SCALE;
@@ -126,32 +135,54 @@

         /** Notify javascript the framework is ready. **/
         protected function _pingJavascript() : void {
-            ExternalInterface.call("onHLSReady", ExternalInterface.objectID);
+            if(_externalEventsMode === 1) {
+                ExternalInterface.call("flashlsEvents.onHLSReady", ExternalInterface.objectID);
+            } else {
+                ExternalInterface.call("onHLSReady", ExternalInterface.objectID);
+            }
         };

         /** Forward events from the framework. **/
         protected function _completeHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onComplete");
+
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onComplete", ExternalInterface.objectID);
+                } else {
+                    ExternalInterface.call("onComplete");
+                }
+
             }
         };

         protected function _errorHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
                 var hlsError : HLSError = event.error;
-                ExternalInterface.call("onError", hlsError.code, hlsError.url, hlsError.msg);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onError", ExternalInterface.objectID, hlsError.code, hlsError.url, hlsError.msg);
+                } else {
+                    ExternalInterface.call("onError", hlsError.code, hlsError.url, hlsError.msg);
+                }
             }
         };

         protected function _fragmentLoadedHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onFragmentLoaded", event.loadMetrics);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onFragmentLoaded", ExternalInterface.objectID, event.loadMetrics);
+                } else {
+                    ExternalInterface.call("onFragmentLoaded", event.loadMetrics);
+                }
             }
         };

         protected function _fragmentPlayingHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onFragmentPlaying", event.playMetrics);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onFragmentPlaying", ExternalInterface.objectID, event.playMetrics);
+                } else {
+                    ExternalInterface.call("onFragmentPlaying", event.playMetrics);
+                }
             }
         };

@@ -163,7 +194,11 @@
             }

             if (ExternalInterface.available) {
-                ExternalInterface.call("onManifest", _duration);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onManifest", ExternalInterface.objectID, _duration);
+                } else {
+                    ExternalInterface.call("onManifest", _duration);
+                }
             }
         };

@@ -171,7 +206,11 @@
             _duration = event.mediatime.duration;
             _media_position = event.mediatime.position;
             if (ExternalInterface.available) {
-                ExternalInterface.call("onPosition", event.mediatime);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onPosition", ExternalInterface.objectID, event.mediatime);
+                } else {
+                    ExternalInterface.call("onPosition", event.mediatime);
+                }
             }

             var videoWidth : int = _video ? _video.videoWidth : _stageVideo.videoWidth;
@@ -184,7 +223,11 @@
                     _videoWidth = videoWidth;
                     _resize();
                     if (ExternalInterface.available) {
-                        ExternalInterface.call("onVideoSize", _videoWidth, _videoHeight);
+                        if(_externalEventsMode === 1) {
+                            ExternalInterface.call("flashlsEvents.onVideoSize", ExternalInterface.objectID, _videoWidth, _videoHeight);
+                        } else {
+                            ExternalInterface.call("onVideoSize", _videoWidth, _videoHeight);
+                        }
                     }
                 }
             }
@@ -192,25 +235,41 @@

         protected function _stateHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onState", event.state);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onState", ExternalInterface.objectID, event.state);
+                } else {
+                    ExternalInterface.call("onState", event.state);
+                }
             }
         };

         protected function _levelSwitchHandler(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onSwitch", event.level);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onSwitch", ExternalInterface.objectID, event.level);
+                } else {
+                    ExternalInterface.call("onSwitch", event.level);
+                }
             }
         };

         protected function _audioTracksListChange(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onAudioTracksListChange", _getAudioTrackList());
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onAudioTracksListChange", ExternalInterface.objectID, _getAudioTrackList());
+                } else {
+                    ExternalInterface.call("onAudioTracksListChange", _getAudioTrackList());
+                }
             }
         }

         protected function _audioTrackChange(event : HLSEvent) : void {
             if (ExternalInterface.available) {
-                ExternalInterface.call("onAudioTrackChange", event.audioTrack);
+                if(_externalEventsMode === 1) {
+                    ExternalInterface.call("flashlsEvents.onAudioTrackChange", ExternalInterface.objectID, event.audioTrack);
+                } else {
+                    ExternalInterface.call("onAudioTrackChange", event.audioTrack);
+                }
             }
         }


Removed redundant best.strand setter as it was also being done from addBead().

--- frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as
+++ frameworks/as/src/org/apache/flex/utils/MXMLDataInterpreter.as
@@ -167,7 +167,6 @@
                 {
                     var bead:IBead = beads[k] as IBead;
                     IStrand(comp).addBead(bead);
-                    bead.strand = comp as IStrand;
                 }
             }
             m = data[i++]; // num styles


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

--- frameworks/projects/framework/src/mx/binding/IBindingClient.as
+++ frameworks/projects/framework/src/mx/binding/IBindingClient.as
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ *  This is used to mark documents, which have data bindings.
+ *  @private
+ */
+public interface IBindingClient
+{
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5604
Author:   pfarland@adobe.com
Date:     2009-03-26T21:00:26.453626Z

Log Message:
-----------
Ensuring qualified class names are used in type selector cache keys for Flex 4 applications.

QE: Yes, this should address style issues for test cases that contain two different components with the same local name.
Dev: No
Doc: No
Checkintests: Pass

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as

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

--- frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
+++ frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
@@ -81,10 +81,10 @@
      */
     public static function getClassStyleDeclarations(object:IStyleClient):Array
     {
-        var className:String = object.className;
+        var qualified:Boolean = FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0 ? false : true;
+        var className:String = qualified ? getQualifiedClassName(object) : object.className;
         var advancedObject:IAdvancedStyleClient = object as IAdvancedStyleClient;

-        var qualified:Boolean = FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0 ? false : true;
         var typeHierarchy:OrderedObject = getTypeHierarchy(object, qualified);
         var types:Array = typeHierarchy.propertyList;
         var typeCount:int = types.length;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19382
Author:   aharui@adobe.com
Date:     2010-12-15T05:43:04.586172Z

Log Message:
-----------
Initial check in of Media Query support

QE notes: new feature
Doc notes: new feature
Bugs: none
Reviewer: Evtim, Pete F
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/MediaQueryParser.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/modules/compiler/src/java/flash/css/MediaList.java</path>

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

--- frameworks/projects/framework/src/mx/utils/MediaQueryParser.as
+++ frameworks/projects/framework/src/mx/utils/MediaQueryParser.as
@@ -0,0 +1,382 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.utils
+{
+import flash.system.Capabilities;
+import mx.core.IFlexModuleFactory;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  Parser for CSS Media Query syntax.  Not a full-fledged parser.
+ *  Doesn't report syntax errors, assumes you have your attributes
+ *  and identifiers spelled correctly, etc.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Flex 4.5
+ */
+public class MediaQueryParser
+{
+    /**
+     *  @private
+     *  Table of known media types
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Flex 4.5
+     */
+     public static var platformMap:Object =
+     {
+         AND: "android",
+         IOS: "ios",
+         MAC: "macintosh",
+         WIN: "windows",
+         LNX: "linux"
+     }
+
+    /**
+     *  @private
+     *  Constructor
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Flex 4.5
+     */
+    public function MediaQueryParser(moduleFactory:IFlexModuleFactory = null)
+    {
+        var resolution:int = Capabilities.screenDPI;
+        applicationDpi = DensityUtil.classifyDPI(resolution);
+        if (moduleFactory)
+        {
+            if (moduleFactory.info()["applicationDPI"] != null)
+                applicationDpi = moduleFactory.info()["applicationDPI"];
+        }
+        osPlatform = getPlatform();
+    }
+
+    /**
+     *  @private
+     *  Queries that were true
+     */
+    private var goodQueries:Object = {};
+
+    /**
+     *  @private
+     *  Queries that were false
+     */
+    private var badQueries:Object = {};
+
+    /**
+     *  @private
+     *  Main entry point.
+     *
+     *  @param expression A syntactically correct CSS Media Query
+     *  @returns true if valid for this media, false otherwise
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Flex 4.5
+     */
+    public function parse(expression:String):Boolean
+    {
+        // remove whitespace
+        expression = StringUtil.trim(expression);
+        // force to lower case cuz case-insensitive
+        expression = expression.toLowerCase();
+
+        // degenerate expressions
+        if (expression == "") return true;
+        if (expression == "all") return true;
+
+        if (goodQueries[expression]) return true;
+        if (badQueries[expression]) return false;
+
+        // get a list of queries.  If any pass then
+        // we're good
+        var mediaQueries:Array = expression.split(", ");
+        var n:int = mediaQueries.length;
+        for (var i:int = 0; i < n; i++)
+        {
+            var result:Boolean;
+            var mediaQuery:String = mediaQueries[i];
+            var notFlag:Boolean = false;
+            // eat only
+            if (mediaQuery.indexOf("only ") == 0)
+                mediaQuery = mediaQuery.substr(5);
+            // remember if this is a "not" expression
+            if (mediaQuery.indexOf("not ") == 0)
+            {
+                notFlag = true;
+                mediaQuery = mediaQuery.substr(4);
+            }
+            // get a list of the parts of the query.
+            // it should be media type, optionally
+            // followed by "and" followed by
+            // optional media feature expressions
+            var expressions:Array = tokenizeMediaQuery(mediaQuery);
+            var numExpressions:int = expressions.length;
+            if (expressions[0] == "all" || expressions[0] == type)
+            {
+                if (numExpressions == 1 && !notFlag)
+                {
+                    goodQueries[expression] = true;
+                    return true;
+                }
+                // bail if "and" and no media features (invalid query)
+                if (numExpressions == 2) return false;
+                // kick off the type and "and"
+                expressions.shift();
+                expressions.shift();
+                // see if the media features match
+                result = evalExpressions(expressions);
+                // early exit if it returned true;
+                if ((result && !notFlag) || (!result && notFlag))
+                {
+                    goodQueries[expression] = true;
+                    return true;
+                }
+            }
+            // if we didn't match on media type and we have a notFlag
+            // then we match
+            else if (notFlag)
+            {
+                goodQueries[expression] = true;
+                return true;
+            }
+        }
+        badQueries[expression] = true;
+        return false;
+    }
+
+    // break up the expression into pieces
+    private function tokenizeMediaQuery(mediaQuery:String):Array
+    {
+        var tokens:Array = [];
+        // if leading off with "(" then
+        // "all and" is implied
+        if (mediaQuery.indexOf("(") == 0)
+        {
+            tokens.push("all");
+            tokens.push("and");
+        }
+
+        var parenLevel:int = 0;
+        var inComment:Boolean = false;
+        var n:int = mediaQuery.length;
+        var expression:Array = [];
+        // walk through each character looking for the pieces
+        for (var i:int = 0; i < n; i++)
+        {
+            var c:String = mediaQuery.charAt(i);
+            if (StringUtil.isWhitespace(c) && expression.length == 0)
+            {
+                // eat extra whitespace between tokens
+                continue;
+            }
+            else
+            {
+                // this piece should be the media type
+                if (c == '/' && i < n - 1 && mediaQuery.charAt(i + 1) == '*')
+                {
+                    inComment = true;
+                    i++;
+                    continue;
+                }
+                if (inComment)
+                {
+                    if (c == '*' && i < n - 1 && mediaQuery.charAt(i + 1) == '/')
+                    {
+                        inComment = false;
+                        i++;
+                    }
+                    continue;
+                }
+                else if (c == "(")  // Not sure whether these should be in the “else” here?
+                    parenLevel++;
+                else if (c == ")")
+                    parenLevel--;
+                else
+                {
+                    expression.push(c);
+                }
+
+                // If we found whitespace and not in a paren, or just closed a paren,
+                // then that's the end of an expression
+                if (parenLevel == 0 && (StringUtil.isWhitespace(c) || (c == ")")))
+                {
+                    if (c != ")")
+                        expression.length--;
+                    tokens.push(expression.join(""));
+                    expression.length = 0; // reset
+                }
+
+            }
+        }
+        return tokens;
+    }
+
+    // take a media feature expression and evaluate it
+    private function evalExpressions(expressions:Array):Boolean
+    {
+        var n:int = expressions.length;
+        for (var i:int = 0; i < n; i++)
+        {
+            var expr:String = expressions[i];
+            // skip over "and"
+            if (expr == "and")
+                continue;
+
+            // break into two pieces
+            var parts:Array = expr.split(":");
+            var min:Boolean = false;
+            var max:Boolean = false;
+            // look for min
+            if (parts[0].indexOf("min-") == 0)
+            {
+                min = true;
+                parts[0] = parts[0].substr(4);
+            }
+            // look for max
+            else if (parts[0].indexOf("max-") == 0)
+            {
+                max = true;
+                parts[0] = parts[0].substr(4);
+            }
+            // collapse hypens into camelcase
+            if (parts[0].indexOf("-") > 0)
+                parts[0] = deHyphenate(parts[0]);
+            // if only one part, then it only matters that this property exists
+            if (parts.length == 1)
+            {
+                if (!(parts[0] in this))
+                    return false;
+            }
+            // if two parts, then make sure the property exists and value matches
+            if (parts.length == 2)
+            {
+                // if property doesn't exist, then bail
+                if (!(parts[0] in this))
+                    return false;
+                // handle min (we don't check if min is allowed for this property)
+                if (min)
+                {
+                    if (this[parts[0]] < normalize(parts[1], typeof(this[parts[0]])))
+                        return false;
+                }
+                // handle max (we don't check if min is allowed for this property)
+                else if (max)
+                {
+                    if (this[parts[0]] > normalize(parts[1], typeof(this[parts[0]])))
+                        return false;
+                }
+                // bail if the value doesn't match
+                else if (this[parts[0]] != normalize(parts[1], typeof(this[parts[0]])))
+                {
+                    return false;
+                }
+            }
+
+        }
+        // all parts matched so return true
+        return true;
+    }
+
+    // strip off metrics (maybe convert metrics some day)
+    private function normalize(s:String, type:String):Object
+    {
+        var index:int;
+
+        // strip leading white space
+        if (s.charAt(0) == " ")
+            s = s.substr(1);
+
+        // for the numbers we currently handle, we
+        // might find dpi or ppi on it, that we just strip off.
+        // We don't handle dpcm yet.
+        if (type == "number")
+        {
+            index = s.indexOf("dpi");
+            if (index != -1)
+            {
+                s = s.substr(0, index);
+            }
+            return Number(s);
+        }
+        else if (type == "int")
+        {
+            return int(s);
+        }
+        else if (type == "string")
+        {
+            // strip quotes of strings
+            if (s.indexOf('"') == 0)
+            {
+                if (s.lastIndexOf('"') == s.length - 1)
+                    s = s.substr(1, s.length - 2);
+                else
+                    s = s.substr(1);
+            }
+        }
+
+        return s;
+    }
+
+    // collapse "-" to camelCase
+    private function deHyphenate(s:String):String
+    {
+        var i:int = s.indexOf("-");
+        while (i > 0)
+        {
+            var part:String = s.substr(i + 1);
+            s = s.substr(0, i);
+            var c:String = part.charAt(0);
+            c = c.toUpperCase();
+            s += c + part.substr(1);
+            i = s.indexOf("-");
+        }
+        return s;
+    }
+
+    private function getPlatform():String
+    {
+        var s:String = Capabilities.version.substr(0, 3);
+        s = platformMap[s] as String;
+        if (s)
+            return s;
+
+        s = Capabilities.manufacturer;
+        var c1:int = s.indexOf(" ") + 1;
+        var c2:int = s.indexOf(" ", c1);
+        if (c2 >= 0)
+            return s.substring(c1, c2 - 1);
+
+        return s.substring(c1);
+    }
+
+    // the type of the media
+    public var type:String = "screen";
+
+    // the resolution of the media
+    public var applicationDpi:int;
+
+    // the platform of the media
+    public var osPlatform:String;
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6181
Author:   smgilson@adobe.com
Date:     2009-04-21T16:24:59.060005Z

Log Message:
-----------
Update ASDoc comment for the selectedItemsCompareFunction property

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -3531,24 +3531,33 @@
     [Inspectable(category="Data")]

     /**
-     *  A function used to compare selectedItems against items in the
-     *  dataProvider.  If there is a match, the item in the dataProvider
+     *  A function used to compare items in the selectedItems property
+     *  against items in the data provider.
+     *  If there is a match, the item in the data provider
      *  becomes part of the selection.
-     *  By default, or if selectedItemsCompareFunction is set to null
-     *  the default comparision function is used which uses
-     *  strict equality (===).  Note that earlier releases of
+     *  By default, or if selectedItemsCompareFunction is set to null,
+     *  the default comparision function is used, which uses
+     *  strict equality (===).
+     *  Note that earlier releases of
      *  Flex used simple equality (==) so there could be behavioral
      *  differences in certain cases.
      *  A common compare function might simply compare UIDs of objects
      *  or test that a particular property matches.
      *
-     *
The compare function takes a two arguments, the first being the
-     *  object in the dataProvider, the other an object in the list of
-     *  selectedItems, and returns TRUE if the item should be selected.

+     *
The compare function takes two arguments.
+     *  The first argument is the object in the data provider.
+     *  The second argument is an object in selectedItems property.
+     *  The function  returns true if the data provider item should be selected.

+     *
      *

      *  myCompareFunction(itemInDataProvider:Object, itemInSelectedItems):Boolean

      *
-     *  @default null (which will use strict equality)
+     *
The default value is null, which uses strict equality.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get selectedItemsCompareFunction():Function
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8847
Author:   aharui@adobe.com
Date:     2009-07-28T02:07:59.326177Z

Log Message:
-----------
Fix an injection from Frame1 cleanup.  Also a side-effect of the tabChildren change

QE Notes: None
Doc Notes: None
Bugs: SDK-22222
Reviewer: Mustella
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/ComboBox, NumericStepper, DateField, PopUpButton, mustella/gumbo/DropDownList mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -647,7 +647,8 @@
      */
     override protected function focusOutHandler(event:FocusEvent):void
     {
-        dropDownController.processFocusOut(event);
+        if (event.target == this)
+            dropDownController.processFocusOut(event);

         super.focusOutHandler(event);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12412
Author:   rfrishbe@adobe.com
Date:     2009-12-03T06:21:19.123508Z

Log Message:
-----------
VideoPlayer/VideoDisplay bug fixes:

- Add the CSS style, dropShadowVisible, to VIdeoPlayer
- remove trace statement in VIdeoDisplay constructor that was accidentally added
- I removed the timeDivider's id in the VideoPlayerSkin because it wasn't a skin part, but it's needed in an exclusion list for VideoPlayerSkin
- Need to update the currentTime on mediaPlayerStateChange because when we set the source to null, we get a state change event, but not currentTimeChange event.

QE notes: -
Doc notes: -
Bugs: SDK-24519, SDK-24515, SDK-24501
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -181,8 +181,6 @@
         // TLF itself has English-only messages,
         // but higher layers like Flex can provide localized versions.
         OSMFStrings.resourceStringFunction = getResourceString;
-
-        trace(getResourceString('drmAuthenticationFailed'));
     }

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


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3499
Author:   rfrishbe@adobe.com
Date:     2008-10-06T23:57:04.003486Z

Log Message:
-----------
Code cleanup:

1.  Remove IDisplayObjectElement and IAssignableDisplayObjectElement.  No one was actually using these interfaces...a few classes were implementing them though.

2.  Big ASDoc comment scrub for Group, DataGroup, and GroupBase.  Fixed some ASDoc in LayoutBase, IViewport, and ResizeMode.

3.  Spit and finish on Group.  No more variables or parameters typed as "*".  Got the content APIs in-line with Flash's DisplayObjectContainer, which means exceptions are now thrown where appropriate.

4.  Fixed a bug in DataGround where graphic items with item renderers had trouble in itemRemoved() (SDK-17175)

QE: Yes - Please revamp the excluded test cases to look for the new exceptions.
Doc: Yes
Bugs: SDK-17175
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IAssignableDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/ResizeMode.as
+++ frameworks/projects/spark/src/spark/components/ResizeMode.as
@@ -13,13 +13,13 @@
 {

 /**
- *  An enum of the modes a componennt fills in the dimensions
+ *  An enum of the modes a component fills in the dimensions
  *  specified by the layout system.
  *
- *  For a given size the component may change it's own dimensions (width and eight)
+ *  For a given size the component may change it's own dimensions (width and height)
  *  and re-layout its children appropriately (this is the default resize mode).
  *
- *  Alternative option for the component is to  change its scale, in which case
+ *  Alternative option for the component is to change its scale, in which case
  *  the children don't need to change at all. This is supported by Group.
  */
 public final class ResizeMode
@@ -37,7 +37,7 @@
      *  Resize by setting scaleX and scaleY.
      *
      *  Component always sizes itself and lays out children at at its measured
-     *  size. Scale is adjusted to match the specified size by the layour or
+     *  size. Scale is adjusted to match the specified size by the layout or
      *  the user.
      */
     public static const _SCALE_UINT:uint = 1;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins 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/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -62,7 +62,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <VScrollBar
+ *  <s:VScrollBar
  *
  *    Properties
  *    viewport=""


Transferred from the Adobe Open Source Subversion Repository

Revision: 19294
Author:   eday@adobe.com
Date:     2010-12-10T22:13:53.316129Z

Log Message:
-----------
Bounce/pull effects for touch scrolling.

1. Extend the throw animation to perform overshoot and settle ("bounce") effects.
2. Allow a scrolled component to be "pulled" past its edges.
3. Match initial throw velocity to final scroll velocity.
4. Calculate throw duration with fixed deceleration factor.

QE notes:
Doc notes:
Bugs:
Reviewer: Ryan
Tests run: checkintests, manual, cyclone run by Joan
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -15,6 +15,7 @@
 import flash.geom.Point;

 import mx.core.IInvalidating;
+import mx.core.InteractionMode;
 import mx.core.mx_internal;
 import mx.events.FlexMouseEvent;
 import mx.events.PropertyChangeEvent;
@@ -156,7 +157,20 @@
         // updated yet.  Making the maximum==vsp here avoids trouble later
         // when Range constrains value
         var cHeight:Number = viewport.contentHeight;
-        maximum = (cHeight == 0) ? vsp : cHeight - viewportHeight;
+
+        if (getStyle("interactionMode") == InteractionMode.TOUCH)
+        {
+            // For mobile, we allow the min/max to extend a little beyond the ends so
+            // we can support bounce/pull kinetic effects.
+            minimum = -viewportHeight;
+            maximum = (cHeight == 0) ? vsp + viewportHeight : cHeight;
+        }
+        else
+        {
+            minimum = 0;
+            maximum = (cHeight == 0) ? vsp : cHeight - viewportHeight;
+        }
+
         pageSize = viewportHeight;
     }

@@ -221,17 +235,35 @@
             return;

         var trackSize:Number = track.getLayoutBoundsHeight();
-        var range:Number = maximum - minimum;
-
+
+        var min:Number;
+        var max:Number;
+        if (getStyle("interactionMode") == InteractionMode.TOUCH)
+        {
+            // For calculating thumb position/size on mobile, we want to exclude
+            // the extra margin we added to minimum and maximum for bounce/pull.
+            var viewportHeight:Number = isNaN(viewport.height) ? 0 : viewport.height;
+
+            min = 0;
+            max = Math.max(0, maximum - viewportHeight);
+        }
+        else
+        {
+            min = minimum;
+            max = maximum;
+        }
+        var range:Number = max - min;
+
+        var fixedThumbSize:Boolean = !(getStyle("fixedThumbSize") === false);
         var thumbPos:Point;
         var thumbPosTrackY:Number = 0;
         var thumbPosParentY:Number = 0;
         var thumbSize:Number = trackSize;
         if (range > 0)
         {
-            if (getStyle("fixedThumbSize") === false)
+            if (!fixedThumbSize)
             {
-                thumbSize = Math.min((pageSize / (range + pageSize)) * trackSize, trackSize)
+                thumbSize = Math.min((pageSize / (range + pageSize)) * trackSize, trackSize);
                 thumbSize = Math.max(thumb.minHeight, thumbSize);
             }
             else
@@ -240,10 +272,33 @@
             }

             // calculate new thumb position.
-            thumbPosTrackY = (pendingValue - minimum) * ((trackSize - thumbSize) / range);
-        }
-
-        if (getStyle("fixedThumbSize") === false)
+            thumbPosTrackY = (pendingValue - min) * ((trackSize - thumbSize) / range);
+        }
+
+        // Special thumb behavior for bounce/pull.  When the component is positioned
+        // beyond its min/max, we want the scroll thumb to shink in size.
+        // Note: not checking interactionMode==TOUCH here because it is assumed that
+        // value will never exceed min/max unless in touch mode.
+        if (value < min)
+        {
+            if (!fixedThumbSize)
+            {
+                // Note:  we use thumb.width here to ensure the thumb doesn't get smaller than square.
+                thumbSize = Math.max(Math.max(thumb.width, thumb.minHeight), thumbSize + value);
+            }
+            thumbPosTrackY = min;
+        }
+        if (value > max)
+        {
+            if (!fixedThumbSize)
+            {
+                // Note:  we use thumb.width here to ensure the thumb doesn't get smaller than square.
+                thumbSize = Math.max(Math.max(thumb.width, thumb.minHeight), thumbSize - (value - max));
+            }
+            thumbPosTrackY = trackSize - thumbSize;
+        }
+
+        if (!fixedThumbSize)
             thumb.setLayoutBoundsSize(NaN, thumbSize);
         if (getStyle("autoThumbVisibility") === true)
             thumb.visible = thumbSize < trackSize;
@@ -430,12 +485,26 @@
     override mx_internal function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
     {
         if (viewport)
-        {
-            var viewportHeight:Number = isNaN(viewport.height) ? 0 : viewport.height;
-            maximum = viewport.contentHeight - viewport.height;
-        }
-    }
-
+            updateMaximumAndPageSize();
+    }
+
+    /**
+     *  @private
+     */
+    override public function styleChanged(styleName:String):void
+    {
+        super.styleChanged(styleName);
+
+        var allStyles:Boolean = !styleName || styleName == "styleName";
+
+        if (allStyles || styleName == "interactionMode")
+        {
+            if (viewport)
+                updateMaximumAndPageSize();
+        }
+    }
+
+
     /**
      *  @private
      *  Scroll vertically by event.delta "steps".  This listener is added to both the scrollbar


Transferred from the Adobe Open Source Subversion Repository

Revision: 16299
Author:   cframpto@adobe.com
Date:     2010-05-24T16:29:04.165482Z

Log Message:
-----------
1.  Move CARET_CHANGE event from GridSelectionEvent to GridCaretEvent.
2.  Rework DataGrid/Grid selection cover methods to dispatch VALUE_COMMIT only if there is a listener.  Rename ret to selectionChanged.
3.  Make sure anchorColumnIndex and caretColumnIndex remain at -1 if the selectionMode is row-based.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/GridSelection.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/events/GridCaretEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/events/GridSelectionEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridCaretEvent.as
+++ frameworks/projects/spark/src/spark/events/GridCaretEvent.as
@@ -0,0 +1,263 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.events
+{
+
+import flash.events.Event;
+
+/**
+ *  The GridCaretEvent class represents events that are dispatched when
+ *  the caret changes in a Spark DataGrid as the result of user interaction.
+ *
+ *  @see spark.components.DataGrid
+ *  @see spark.components.Grid
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.0
+ *  @productversion Flex 4.5
+ */
+public class GridCaretEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The GridSelectionEvent.CARET_CHANGE constant defines
+     *  the value of the type property of the event object for a
+     *  caretChange event, which indicates that the current
+     *  caret position has just been changed.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
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.

+     *
newColumnIndex	The zero-based column
+     *       index of the caret position after it was changed.  It is -1 if
+     *       the selectionMode is row-based.

+     *
newRowIndex	The zero-based row index
+     *       of the caret position after it was changed.

+     *
oldColumnIndex	The zero-based column
+     *       index of the caret position before it was changed.  It is -1 if
+     *       the selectionMode is row-based.

+     *
oldRowIndex	The zero-based row index
+     *       of the caret position before it was changed.

+     *
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.

+     *
type	GirdCaretEvent.CARET_CHANGE

+     *

+     *
+     *  @eventType selectionChange
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public static const CARET_CHANGE:String = "caretChange";
+
+    //--------------------------------------------------------------------------
+    //
+    //  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 oldColumnIndex The zero-based column index of the caret position
+     *  before the change.  If the selectionMode is either
+     *  SelectionMode.SINGLE_ROW or
+     *  SelectionMode.MULTIPLE_ROWS, this is -1.
+     *
+     *  @param oldRowIndex The zero-based row index of the caret position before
+     *  the change.
+     *
+     *  @param newColumnIndex The zero-based column index of the caret position
+     *  after the change.  If the selectionMode is either
+     *  SelectionMode.SINGLE_ROW or
+     *  SelectionMode.MULTIPLE_ROWS, this is -1.
+     *
+     *  @param newRowIndex The zero-based row index of the caret position after
+     *  the change.
+     *
+     *  @see spark.components.DataGrid#columns
+     *  @see spark.components.DataGrid#dataProvider
+     *  @spark.events.GridSelectionEventKind
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function GridCaretEvent(type:String,
+                                       bubbles:Boolean = false,
+                                       cancelable:Boolean = false,
+                                       oldRowIndex:int = -1,
+                                       oldColumnIndex:int = -1,
+                                       newRowIndex:int = -1,
+                                       newColumnIndex:int = -1)
+     {
+        super(type, bubbles, cancelable);
+
+        this.oldRowIndex = oldRowIndex;
+        this.oldColumnIndex = oldColumnIndex;
+        this.newRowIndex = newRowIndex;
+        this.newColumnIndex = newColumnIndex;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+
+    //----------------------------------
+    //  oldRowIndex
+    //----------------------------------
+
+    /**
+     *  The zero-based index of the row in the dataProvider of the
+     *  caret position before it was changed.
+     *
+     *  @default -1
+     *
+     *  @see spark.components.DataGrid#dataProvider
+     *  @see spark.components.Grid#dataProvider
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public var oldRowIndex:int;
+
+    //----------------------------------
+    //  oldColumnIndex
+    //----------------------------------
+
+    /**
+     *  The zero-based index of the column in the columns of the
+     *  caret position before it was changed.
+     *
+     *
If the selection mode is SelectionMode.SINGLE_ROW or
+     *  SelectionMode.MULTIPLE_ROWS this will be -1 to indicate
+     *  it is not being used.

+     *
+     *  @see spark.components.DataGrid#columns
+     *  @see spark.components.Grid#columns
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public var oldColumnIndex:int;
+
+    //----------------------------------
+    //  newRowIndex
+    //----------------------------------
+
+    /**
+     *  The zero-based index of the row in the dataProvider of the
+     *  caret position after it was changed.
+     *
+     *  @see spark.components.DataGrid#dataProvider
+     *  @see spark.components.Grid#dataProvider
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public var newRowIndex:int;
+
+    //----------------------------------
+    //  newColumnIndex
+    //----------------------------------
+
+    /**
+     *  The zero-based index of the column in the columns of the
+     *  caret position after it was changed.
+     *
+     *
If the selection mode is SelectionMode.SINGLE_ROW or
+     *  SelectionMode.MULTIPLE_ROWS this will be -1 to indicate
+     *  it is not being used.

+     *
+     *  @see spark.components.DataGrid#columns
+     *  @see spark.components.Grid#columns
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public var newColumnIndex:int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Object
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function toString():String
+    {
+        return formatToString(
+            "GridCaretEvent", "type",
+            "bubbles", "cancelable", "eventPhase",
+            "oldRowIndex","oldColumnIndex",
+            "newRowIndex", "newColumnIndex");
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new GridCaretEvent(
+            type, bubbles, cancelable,
+            oldRowIndex, oldColumnIndex,
+            newRowIndex, newColumnIndex);
+    }
+}
+
+}


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/SeriesAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/SeriesAutomationImpl.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: 5104
Author:   clucier@adobe.com
Date:     2009-02-27T14:51:34.248850Z

Log Message:
-----------
Default button support for Spark containers and editable text controls.
QE Notes:
Doc Notes:
Bugs: SDK-19420
Reviewer: Glenn, Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultButtonSkin.mxml</path>

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

--- frameworks/projects/framework/src/mx/core/ContainerGlobals.as
+++ frameworks/projects/framework/src/mx/core/ContainerGlobals.as
@@ -14,6 +14,7 @@

 import flash.display.InteractiveObject;
 import mx.managers.IFocusManager;
+import mx.managers.IFocusManagerContainer;

 /**
 *  @private
@@ -59,7 +60,7 @@
             currObj = objParent;

             if (currObj &&
-                currObj is IContainer && IContainer(currObj).defaultButton)
+                currObj is IFocusManagerContainer && IFocusManagerContainer(currObj).defaultButton)
             {
                 break;
             }
@@ -71,12 +72,12 @@
             if (!currObj)
                 currObj = InteractiveObject(lastUIComp);

-            if (currObj && currObj is IContainer)
+            if (currObj && currObj is IFocusManagerContainer)
             {
-                var fm:IFocusManager = IContainer(currObj).focusManager;
+                var fm:IFocusManager = IFocusManagerContainer(currObj).focusManager;
                 if (!fm)
                     return;
-                var defButton:IButton = IContainer(currObj).defaultButton as IButton;
+                var defButton:IButton = IFocusManagerContainer(currObj).defaultButton as IButton;
                 if (defButton)
                 {
                     ContainerGlobals.focusedContainer = InteractiveObject(currObj);


Transferred from the Adobe Open Source Subversion Repository

Revision: 9029
Author:   aharui@adobe.com
Date:     2009-08-03T23:03:01.197795Z

Log Message:
-----------
Adjust the way RET gets its windowActivate/deactivate events.  Also adjust the way SkinnableContainer handles the temporary contentGroup when the main contentGroup gets created.

QE Notes: None
Doc Notes: None
Bugs: SDK-22418, SDK-22179
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/Managers/FocusManager mustella/gumbo/components/TextInput,TextArea

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -839,8 +839,10 @@
         form.addEventListener(KeyboardEvent.KEY_DOWN, defaultButtonKeyHandler);
         form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
         // AIR Window events, but don't want to link in AIREvent
-        form.addEventListener("windowActivate", activateWindowHandler);
-        form.addEventListener("windowDeactivate", deactivateWindowHandler);
+        // use capture phase because these get sent by the main Window
+        // and we might be managing a popup in that window
+        sm.addEventListener("windowActivate", activateWindowHandler, true, 0, true);
+        sm.addEventListener("windowDeactivate", deactivateWindowHandler, true, 0, true);

         activated = true;
         dispatchEvent(new FlexEvent(FlexEvent.FLEX_WINDOW_ACTIVATE));
@@ -1010,7 +1012,7 @@
      */
     private function sortFocusableObjectsTabIndex():void
     {
-        //// trace("FocusableObjectsTabIndex");
+        // trace("FocusableObjectsTabIndex");

         focusableCandidates = [];


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

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

 package spark.components
 {