Transferred from the Adobe Open Source Subversion Repository

Revision: 5067
Author:   smgilson@adobe.com
Date:     2009-02-25T16:21:22.849704Z

Log Message:
-----------
In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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


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

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

 package mx.controls.videoClasses
 {


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2011 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.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14743
Author:   chaase@adobe.com
Date:     2010-03-12T23:30:57.186697Z

Log Message:
-----------
QE notes: spark/effects/Resize/Controls/Resize_Controls_Button_FromTo needs to be fixed to reflect the new behavior; effects that set playheadTime >= the effect duration no longer automatically dispatch an effectEnd event. Also, basictests EasingTests was updated to reflect new (correct) behavior.
Doc notes: none
Bugs: sdk-25352, sdk-25270, sdk-25269
Reviewer: Jason (+Ely for sdk-25352's AnimateTransformInstance)
Tests run: checkintests, Mustella mx/effects/Parallel|Sequence, spark/effects
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/EasingTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -269,7 +269,7 @@
      * time value and the startDelay time passed in
      */
     private function insertKeyframe(keyframes:Vector.<Keyframe>,
-        newKF:Keyframe, startDelay:Number = 0):void
+        newKF:Keyframe, startDelay:Number = 0, first:Boolean = false):void
     {
         newKF.time += startDelay;
         for (var i:int = 0; i < keyframes.length; i++)
@@ -277,16 +277,28 @@
             if (keyframes[i].time >= newKF.time)
             {
                 // a new keyframe at the same time as an existing one
-                // will get shifted forward briefly in time. This allows,
+                // will get shifted briefly in time. This allows,
                 // for example, multiple effects to be combined correctly
                 // where one ends at the same time the next begins. We want the
                 // first interval to use the values in the old keyframe at that
                 // time, and the next interval to start from the values in the
                 // new keyframe.
+                // The direction of shift depends on whether this is the first
+                // keyframe in a sequence (shift it forward, because it must be starting
+                // *after* any existing effects) or not (shift it backward, because it must
+                // end *before* any existing effects.
                 if (keyframes[i].time == newKF.time)
                 {
-                    newKF.time += .01;
-                    keyframes.splice(i+1, 0, newKF);
+                    if (first)
+                    {
+                        newKF.time += .01;
+                        keyframes.splice(i+1, 0, newKF);
+                    }
+                    else
+                    {
+                        newKF.time -= .01;
+                        keyframes.splice(i, 0, newKF);
+                    }
                 }
                 else
                 {
@@ -344,7 +356,7 @@
                     for (j = 0; j < newMotionPath.keyframes.length; j++)
                     {
                         insertKeyframe(mp.keyframes, newMotionPath.keyframes[j],
-                            (newEffectStartTime - instanceStartTime));
+                            (newEffectStartTime - instanceStartTime), (j == 0));
                     }
                     added = true;
                     break;


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

--- frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPropertyCodec.as
+++ frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPropertyCodec.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: 14571
Author:   deeptika@adobe.com
Date:     2010-03-04T07:17:40.283901Z

Log Message:
-----------
Merging revision 14570 from 4.x branch
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/automation/src/mx/automation/delegates/core/UIComponentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/delegates/controls/FlexNativeMenuAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/controls/SWFLoaderAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkListBaseTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/automation/delegates/core/UIFTETextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/core/UITextFieldAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/automation/delegates/advancedDataGrid/AdvancedDataGridAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkListBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/RendererPropertyCodec.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/delegates/TextFieldAutomationHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/codec/AutomationObjectPropertyCodec.as</path>

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

--- frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/OLAPDataGridTabularData.as
@@ -11,7 +11,7 @@

 package mx.automation.tabularData
 {
-
+	import mx.automation.Automation;
 	import mx.collections.ArrayCollection;
 	import mx.controls.OLAPDataGrid;
 	import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
@@ -141,16 +141,18 @@
 			// get column count
 			var columnCount:int = columns.length - rowHeaderCount;

-
+			var message:String;
 			// check for the validity of the start and the end index
 			if (rowInex <  0)
 			{
-				trace (" the start Index is less than zero. set it to zero");
+				message = " the start Index is less than zero. set it to zero";
+				Automation.automationDebugTracer.traceMessage("OLAPDataGridTabularData", "getValues()", message);
 				rowInex = 0;
 			}
 			if (endRowIndex > rowCount)
 			{
-				trace (" the end Index is greater than rowCount. set it to maxValue");
+				message = " the end Index is greater than rowCount. set it to maxValue";
+				Automation.automationDebugTracer.traceMessage("OLAPDataGridTabularData", "getValues()", message);
 				endRowIndex = rowCount;
 			}


Remove specular color instruction when a specular map is available

--- src/aerys/minko/render/shader/part/phong/contribution/AbstractContributionShaderPart.as
+++ src/aerys/minko/render/shader/part/phong/contribution/AbstractContributionShaderPart.as
@@ -160,7 +160,7 @@
 			var cLightSpecular	: SFloat 	= getLightParameter(lightId, 'specular', 1);
 			var cLightShininess	: SFloat 	= getLightParameter(lightId, 'shininess', 1);

-			if (meshBindings.propertyExists(PhongProperties.SPECULAR))
+			if (meshBindings.propertyExists(PhongProperties.SPECULAR) && !meshBindings.propertyExists(PhongProperties.SPECULAR_MAP))
 			{
 				var specular	: SFloat	= meshBindings.getParameter(PhongProperties.SPECULAR, 4);


callLater now avoids calling apply() when no args are specified

Change-Id: Ic4110e4dc088630066d84c5c50ae9c070427fcf8

--- WeaveCore/src/weave/core/StageUtils.as
+++ WeaveCore/src/weave/core/StageUtils.as
@@ -321,7 +321,7 @@
 			// The variables countdown and lastPriority are used to avoid running newly-added tasks immediately.
 			// This avoids wasting time on async tasks that do nothing and return early, adding themselves back to the queue.

-			var args:Array;
+			var args:Array, args2:Array;
 			var stackTrace:String;
 			var now:int;
 			var allStop:int = _currentFrameStartTime + maxComputationTime;
@@ -341,7 +341,7 @@
 				if (now > allStop)
 					return;

-				// args: (relevantContext:Object, method:Function, parameters:Array, priority:uint = 0)
+				// args: (relevantContext:Object, method:Function, parameters:Array, priority:uint)
 				args = queue.shift();
 				stackTrace = _stackTraceMap[args];

@@ -349,7 +349,13 @@

 				// don't call the function if the relevantContext was disposed.
 				if (!WeaveAPI.SessionManager.objectWasDisposed(args[0]))
-					(args[1] as Function).apply(null, args[2]);
+				{
+					args2 = args[2] as Array;
+					if (args2 != null && args2.length > 0)
+						(args[1] as Function).apply(null, args2);
+					else
+						(args[1] as Function)();
+				}

 				if (debug_callLater)
 					DebugTimer.end(stackTrace);
@@ -427,8 +433,11 @@
 				{
 					// TODO: PROFILING: check how long this function takes to execute.
 					// if it takes a long time (> 1000 ms), something's wrong...
-
-					(args[1] as Function).apply(null, args[2]);
+					args2 = args[2] as Array;
+					if (args2 != null && args2.length > 0)
+						(args[1] as Function).apply(null, args2);
+					else
+						(args[1] as Function)();
 				}

 				if (debug_callLater)


Transferred from the Adobe Open Source Subversion Repository

Revision: 23007
Author:   aaltman@adobe.com
Date:     2011-10-14T22:47:17.201220Z

Log Message:
-----------
Don't show StageText if there is a complete event pending. That could cause the text to flash briefly in the wrong place.

QE notes: None
Doc notes: None
Bugs: SDK-31855
Reviewer: cframpto
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
@@ -503,6 +503,14 @@
     private var invalidateAncestorsVisibleFlag:Boolean = true;

     /**
+     *  If a complete event is pending when we are about to show the StageText,
+     *  we set this flag to wait for the complete event before showing it.
+     *  Otherwise, the StageText may show then snap to a new location when the
+     *  complete event happens.
+     */
+    private var showOnComplete:Boolean = false;
+
+    /**
      *  Ancestors watched for changes in visibility or geometry. Any change in
      *  an ancestor's visibility or position may affect the StageText's
      *  visibility or position.
@@ -1554,32 +1562,41 @@
         {
             if (stageText != null)
             {
-                if (immediate)
+                var calculatedVisible:Boolean = _visible && calcAncestorsVisible();
+
+                if (completeEventPending && calculatedVisible)
                 {
-                    stageText.visible = _visible && calcAncestorsVisible();
-
-                    // The focused stageText may have been replaced by a bitmap during
-                    // an animation. When restoring its visibility, restore its focus as
-                    // well if the soft keyboard is open. (If the soft keyboard is not
-                    // open, do not restore focus because doing so will force the soft
-                    // keyboard to open.)
-                    if (stageText.visible && stageText == focusedStageText &&
-                        stage.softKeyboardRect.height > 0)
-                    {
-                        stageText.assignFocus();
-                    }
-
-                    // Do not remove the proxy bitmap until after stageText has been
-                    // made visible to reduce flicker.
-                    disposeProxyImage();
-                    stageTextVisibleChangePending = false;
-                    removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
+                    showOnComplete = true;
                 }
                 else
                 {
-                    stageTextVisible = _visible && calcAncestorsVisible();
-                    stageTextVisibleChangePending = true;
-                    addEventListener(Event.ENTER_FRAME, enterFrameHandler);
+                    if (immediate)
+                    {
+                        stageText.visible = calculatedVisible;
+
+                        // The focused stageText may have been replaced by a bitmap during
+                        // an animation. When restoring its visibility, restore its focus as
+                        // well if the soft keyboard is open. (If the soft keyboard is not
+                        // open, do not restore focus because doing so will force the soft
+                        // keyboard to open.)
+                        if (stageText.visible && stageText == focusedStageText &&
+                            stage.softKeyboardRect.height > 0)
+                        {
+                            stageText.assignFocus();
+                        }
+
+                        // Do not remove the proxy bitmap until after stageText has been
+                        // made visible to reduce flicker.
+                        disposeProxyImage();
+                        stageTextVisibleChangePending = false;
+                        removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
+                    }
+                    else
+                    {
+                        stageTextVisible = calculatedVisible;
+                        stageTextVisibleChangePending = true;
+                        addEventListener(Event.ENTER_FRAME, enterFrameHandler);
+                    }
                 }
             }
         }
@@ -2490,6 +2507,12 @@
     private function completeEventBackstop_timerHandler(event:TimerEvent):void
     {
         completeEventPending = false;
+
+        if (showOnComplete)
+        {
+            commitVisible(true);
+            showOnComplete = false;
+        }
     }

     private function form_moveHandler(event:MoveEvent):void
@@ -2526,6 +2549,12 @@

         if (!isDesktop && viewTransitionRunning && isAndroid)
             ignoreProxyUpdatesDuringTransition = true;
+
+        if (showOnComplete)
+        {
+            commitVisible(true);
+            showOnComplete = false;
+        }
     }

     private function stageText_focusInHandler(event:FocusEvent):void


handle state vars on the top tag

handle state vars on the top tag

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleStatesImpl.as
@@ -124,7 +124,10 @@
                 else if (o is SetProperty)
                 {
                     var sp:SetProperty = SetProperty(o);
-                    sp.document[sp.target][sp.name] = sp.previousValue;
+                    if (sp.target != null)
+                        sp.document[sp.target][sp.name] = sp.previousValue;
+                    else
+                        sp.document[sp.name] = sp.previousValue;
                 }
             }
         }
@@ -170,8 +173,16 @@
                 else if (o is SetProperty)
                 {
                     var sp:SetProperty = SetProperty(o);
-                    sp.previousValue = sp.document[sp.target][sp.name];
-                    sp.document[sp.target][sp.name] = sp.value;
+                    if (sp.target != null)
+                    {
+                        sp.previousValue = sp.document[sp.target][sp.name];
+                        sp.document[sp.target][sp.name] = sp.value;
+                    }
+                    else
+                    {
+                        sp.previousValue = sp.document[sp.name];
+                        sp.document[sp.name] = sp.value;
+                    }
                 }
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20690
Author:   mhorn@adobe.com
Date:     2011-03-08T20:26:51.755036Z

Log Message:
-----------
ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/Legend.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/items/LineSeriesSegment.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/InstanceCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/Series.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartElement.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as
@@ -1062,6 +1062,8 @@
      *  Calling this function at the wrong time might result
      *  in extra work being done, if those values are updated.
      *
+     *  @return Returns true if updateTransform() was called. Otherwise, false.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1
@@ -1223,6 +1225,10 @@
      *  Derived classes can call this method from their updateFilter()
      * implementation to remove any ChartItems filtered out by the axes.
      *
+     *  @param cache An array of objects.
+     *
+     *  @param field The field property test against.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 9
      *  @playerversion AIR 1.1


Transferred from the Adobe Open Source Subversion Repository

Revision: 17484
Author:   klin@adobe.com
Date:     2010-08-26T00:27:35.515044Z

Log Message:
-----------
Fix the default size of the DataGrid to be more square. getTypicalContentHeight now returns 0 if no typical cell heights have been specified. This causes the measuredHeight of the grid to be 0, which allows the minHeight of the DataGridSkin to take effect.

QE notes: No
Doc notes: No
Bugs: SDK-27566
Reviewer: Hans
Tests run: checkintests, DataGrid
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridDimensions.as
@@ -1095,7 +1095,11 @@
         if (!isNaN(fixedRowHeight))
             return contentHeight + nRows * fixedRowHeight;

-        return contentHeight + nRows * defaultRowHeight;
+        // if typical cell heights have been specified.
+        if (!isFirstTypicalCellHeight)
+            return contentHeight + nRows * defaultRowHeight
+
+        return 0;
     }

     /**


FLEX-34336 removed trace statement from development.

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
@@ -1580,12 +1580,9 @@
     protected function disposeProxy():void
     {

-        var bd: BitmapData = Bitmap(proxy).bitmapData;
+        var bd:BitmapData = Bitmap(proxy).bitmapData;
         if (bd)
            bd.dispose();
-        else {
-            trace("[WARN] SST found empty bitmap data in:", debugId)  ;
-        }

     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20097
Author:   jasonsj@adobe.com
Date:     2011-02-03T17:48:25.773740Z

Log Message:
-----------
Remove use of minWidth and minHeight where possible from mobile skins to fix constraint use cases. Replace usage of minWidth/minHeight and layoutMeasuredWidth/layoutMeasuredHeight with MobileSkin property measuredDefaultWidth/measuredDefaultHeight.

Use minWidth/minHeight for skins that do not scale down: Beveled buttons, CheckBox, RadioButton, and scroll bars.

Doc notes:
Bugs:
SDK-28715 Cannot size and position button correctly in i4 build.
Reviewer: egeorgie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorTabBarTabSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarLastButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ImageSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as
@@ -75,8 +75,8 @@
                 layoutPaddingBottom = 10;
                 layoutPaddingLeft = 20;
                 layoutPaddingRight = 20;
-                minWidth = 106;
-                minHeight = 86;
+                measuredDefaultWidth = 106;
+                measuredDefaultHeight = 86;

                 break;
             }
@@ -87,21 +87,21 @@
                 layoutPaddingBottom = 8;
                 layoutPaddingLeft = 16;
                 layoutPaddingRight = 16;
-                minWidth = 81;
-                minHeight = 65;
+                measuredDefaultWidth = 81;
+                measuredDefaultHeight = 65;

                 break;
             }
             default:
             {
-                // default PPI160
+                // default DPI_160
                 layoutBorderSize = 1;
                 layoutPaddingTop = 6;
                 layoutPaddingBottom = 5;
                 layoutPaddingLeft = 10;
                 layoutPaddingRight = 10;
-                minWidth = 53;
-                minHeight = 43;
+                measuredDefaultWidth = 53;
+                measuredDefaultHeight = 43;

                 break;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20775
Author:   smgilson@adobe.com
Date:     2011-03-10T20:03:40.415513Z

Log Message:
-----------
merge 20770 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPopUpAnchorAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/gridClasses/SparkGridItemRendererAutomationImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as
@@ -27,9 +27,10 @@
 use namespace mx_internal;

 /**
+ *  The default skin class for buttons in the navigation area of the Spark ActionBar component
+ *  in mobile applications.
  *
  *  @langversion 3.0
- *  @playerversion Flash 10.1
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
@@ -45,7 +46,6 @@
      *  Constructor.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 18951
Author:   smgilson@adobe.com
Date:     2010-12-02T14:41:47.533313Z

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

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

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/InteractionStateDetector.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/InteractionStateDetector.as
@@ -44,7 +44,7 @@
  *  if they should be in the up, over, or down states.
  *
  *
As the state changes, if the transition should play, the
- *  playTransitions
+ *  playTransitions.

  *
  *  @see spark.components.supportClasses.InteractionState
  *
@@ -102,23 +102,23 @@
      *  the renderer was actually selected.
      */
     private var mouseUpDeselectTimer:Timer;
-
-	/**
-	 *  @private
-	 *  Whether the component using this InteractionStateDetector should
-	 *  play transitions on a particular state change.
-	 *
-	 *
This could be moved to the CHANGE event itself, but
-	 *  seeing as we don't have a formal mechanism for dealing with ItemRenderer
-	 *  transitions in the first place, this seems like an acceptable solution.

-	 *
-	 *
Currently, InteractionStateDetector is the one who would know whether a
-	 *  transition should play or not because it knows how it got in to a particular
-	 *  state and that's what we use to determine whether transitions play or not.
-	 *  For instance, if a scroll starts while you're in the down state, that should
-	 *  cancel the down state and not play a transition.

-	 */
-	mx_internal var playTransitions:Boolean = true;
+
+    /**
+     *  @private
+     *  Whether the component using this InteractionStateDetector should
+     *  play transitions on a particular state change.
+     *
+     *
This could be moved to the CHANGE event itself, but
+     *  seeing as we don't have a formal mechanism for dealing with ItemRenderer
+     *  transitions in the first place, this seems like an acceptable solution.

+     *
+     *
Currently, InteractionStateDetector is the one who would know whether a
+     *  transition should play or not because it knows how it got in to a particular
+     *  state and that's what we use to determine whether transitions play or not.
+     *  For instance, if a scroll starts while you're in the down state, that should
+     *  cancel the down state and not play a transition.

+     */
+    mx_internal var playTransitions:Boolean = true;

     //--------------------------------------------------------------------------
     //
@@ -405,21 +405,21 @@
                 // if the user rolls over while holding the mouse button
                 if (mouseEvent.buttonDown && !mouseCaptured)
                     return;
-
-				// if rolling back over it, turn off transitions
-				if (mouseCaptured)
-					playTransitions = false;
+
+                // if rolling back over it, turn off transitions
+                if (mouseCaptured)
+                    playTransitions = false;
                 hovered = true;
-				playTransitions = true;
+                playTransitions = true;
                 break;
             }

             case MouseEvent.ROLL_OUT:
             {
-				// when rolled out, turn off transitions
-				playTransitions = false;
+                // when rolled out, turn off transitions
+                playTransitions = false;
                 hovered = false;
-				playTransitions = true;
+                playTransitions = true;
                 break;
             }

@@ -456,8 +456,8 @@

             case MouseEvent.MOUSE_UP:
             {
-				// If someone mouses up on us, then they must be hovered over
-				// us now.
+                // If someone mouses up on us, then they must be hovered over
+                // us now.
                 hovered = true;

                 if (mouseCaptured)
@@ -522,13 +522,13 @@
         stopSelectRendererAfterDelayTimer();

         // cancel the rollover/clickdown on and go back to a normal state
-
-		// turn off transitions for this change because it's really cancelling the
-		// the down state
-		playTransitions = false;
+
+        // turn off transitions for this change because it's really cancelling the
+        // the down state
+        playTransitions = false;
         hovered = false;
         mouseCaptured = false;
-		playTransitions = true;
+        playTransitions = true;
     }

     /**


fix homes

fix homes

--- src/ageofai/map/model/MapModel.as
+++ src/ageofai/map/model/MapModel.as
@@ -106,7 +106,7 @@
 					homes[ i ] = home;
 				}
 				home = new HomeVO();
-				home.pos = getRandomPoint( offsetX, columnCount - 1, offsetY, rowCount - 1 );
+				home.pos = getRandomPoint( offsetX, columnCount - 2, offsetY, rowCount - 2 );
 				homes[ i ] = home;

 				var isHomeInWalkableArea:Boolean = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19344
Author:   egeorgie@adobe.com
Date:     2010-12-14T00:38:13.222484Z

Log Message:
-----------
PARB changes for density scaling

- authorDensity -> applicationDPI, type changed to int
- DensityUtil not visible in the documentation anymore [ExcludeClass]
- DensityUtil. screenDPIToDeviceDensity() -> classifyDPI(), returns int now
- DensityUtil. getDensityScale() -> getDPIScale(), takes int now
- DeviceDensity enum -> DPIClassification enum
- ISystemManager.densityScale property has been removed.
- New property to Application -> runtimeDPI.

QE notes: can start writing automated tests now
Doc notes:
Bugs:
Reviewer: Alex, Glenn, Jason SJ,
Tests run: checkintest
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/DensityUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeviceDensity.as" copyfrom-rev="19256" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DPIClassification.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationAngledButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/DeviceDensity.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as
@@ -15,7 +15,7 @@
 import flash.display.DisplayObject;
 import flash.display.Graphics;

-import mx.core.DeviceDensity;
+import mx.core.DPIClassification;

 import spark.components.Button;
 import spark.skins.mobile.supportClasses.MobileSkin;
@@ -49,24 +49,24 @@
     public function HScrollBarThumbSkin()
     {
         super();
-        useChromeColor = true;
-
-        // Depending on density set asset and visible thumb height
-        switch (authorDensity)
-        {
-            case DeviceDensity.PPI_240:
-            {
-                thumbClass = spark.skins.mobile240.assets.HScrollThumb;
-                thumbHeight = 6;
-                break;
-            }
-            default:
-            {
-                thumbClass = spark.skins.mobile160.assets.HScrollThumb;
-                thumbHeight = 4;
-                break;
-            }
-        }
+		useChromeColor = true;
+
+		// Depending on density set asset and visible thumb height
+		switch (applicationDPI)
+		{
+			case DPIClassification.DPI_240:
+			{
+				thumbClass = spark.skins.mobile240.assets.HScrollThumb;
+				thumbHeight = 6;
+				break;
+			}
+			default:
+			{
+				thumbClass = spark.skins.mobile160.assets.HScrollThumb;
+				thumbHeight = 4;
+				break;
+			}
+		}
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11015
Author:   egeorgie@adobe.com
Date:     2009-10-19T23:11:47.299750Z

Log Message:
-----------
Drag and Drop - add "dragging" state to item renderer.

QE notes: ItemRenderer "dragging" state ready for testing.
Doc notes: None
Bugs: None
Reviewer: Hans
Tests run: checkintests, mustella (ListDragDrop, List)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/IItemRenderer.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/ListItemDragProxy.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -17,13 +17,9 @@

 import mx.core.mx_internal;
 import mx.events.FlexEvent;
-import mx.styles.StyleManager;
-
-import spark.components.DataGroup;
-import spark.components.Group;
+
+import spark.components.DataRenderer;
 import spark.components.IItemRenderer;
-import spark.components.DataRenderer;
-import spark.components.supportClasses.TextBase;

 use namespace mx_internal;

@@ -233,10 +229,41 @@
         }
     }

-    //----------------------------------
+	//----------------------------------
+	//  dragging
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the dragging property.
+	 */
+	private var _dragging:Boolean = false;
+
+	/**
+	 *  @inheritDoc
+	 */
+	public function get dragging():Boolean
+	{
+		return _dragging;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set dragging(value:Boolean):void
+	{
+		if (value != _dragging)
+		{
+			_dragging = value;
+			setCurrentState(getCurrentRendererState(), playTransitions);
+		}
+	}
+
+	//----------------------------------
     //  label
     //----------------------------------
-    [Bindable("textChanged")]
+
+	[Bindable("textChanged")]

     /**
      *  @private
@@ -316,8 +343,11 @@
      */
     protected function getCurrentRendererState():String
     {
+		if (dragging && hasState("dragging"))
+			return "dragging";
+
         if (selected && showsCaret && hasState("selectedAndShowsCaret"))
-           return "selectedAndShowsCaret";
+			return "selectedAndShowsCaret";

         if (hovered && showsCaret && hasState("hoveredAndShowsCaret"))
             return "hoveredAndShowsCaret";
@@ -334,9 +364,9 @@
         if (hasState("normal"))
             return "normal";

-        //If none of the above states are defined in the item renderer,
-        //we return the empty string. This means the user-defined renderer
-        //will display but essentially be non-interactive visually.
+        // If none of the above states are defined in the item renderer,
+        // we return the empty string. This means the user-defined renderer
+        // will display but essentially be non-interactive visually.
         return null;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19806
Author:   rfrishbe@adobe.com
Date:     2011-01-19T19:32:34.088153Z

Log Message:
-----------
Fixing up ItemRenderer.getCurrentRendererState() to return currentState by default rather than null.  This is to enable better support for user-states, so that if the item renderer goes into a specific user state, we don't override it, but we now honor it.

Also cleaning up some FIXMEs that are no longer needed in IconItemRenderer and LabelItemRenderer.

QE notes: -
Doc notes:
Bugs: SDK-29061
Reviewer: Chiedo
Tests run: checkintests, mustella List, DataGroup, ListDragDrop
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -535,9 +535,10 @@
             return "normal";

         // If none of the above states are defined in the item renderer,
-        // we return null. This means the user-defined renderer
-        // will display but essentially be non-interactive visually.
-        return null;
+        // we return currentState, so we don't change the state just
+        // in case the developer put the item renderer into its
+        // own custom state.
+        return currentState;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 15886
Author:   cframpto@adobe.com
Date:     2010-05-04T16:42:05.109868Z

Log Message:
-----------
Initial submit of Hans's grid code.  Added copyrights and included Version.as.  Added Grid, GridColumn, and GridItemRenderer components to the spark manifest.

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/GridItemRenderer.as</path>
<path kind="file" action="A">/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/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/ITreeAdapter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/ListTreeView.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/GridEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/supportClasses/ObjectTreeAdapter.as</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.as
@@ -0,0 +1,28 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.components.supportClasses
+{
+import spark.components.supportClasses.ItemRenderer;
+
+public class GridItemRenderer extends ItemRenderer
+{
+    include "../../core/Version.as";
+
+    public function GridItemRenderer()
+    {
+        super();
+    }
+
+    public var column:GridColumn;
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7644
Author:   hmuller@adobe.com
Date:     2009-06-08T20:49:37.003317Z

Log Message:
-----------
SkinnableDataContainerSkin's min size is now 0x0, same as SkinnableContainerSkin.
Added ScrollBar autoThumbVisibility style so that Catylyst developers can turn
thumb visibility on and off.

QE Notes: New ScrollBar API: new boolean autoThumbVisibility style
Doc Notes:
Bugs: sdk-21143, sdk21108
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SkinnableDataContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/PanelSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -53,6 +53,25 @@
  *  @productversion Flex 4
  */
 [Style(name="fixedThumbSize", type="Boolean", inherit="no")]
+
+/**
+ *  If true (the default), the thumb's visibility will be reset
+ *  whenever it's size is updated.
+ *
+ *  Overrides of sizeThumb() in HScrollBar and
+ *  VScrollBar make the thumb visible if it's smaller than
+ *  the track, unless this style is false.
+ *
+ *  Set this style to control thumb visiblity directly.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="autoThumbVisibility", type="Boolean", inherit="no")]

 /**
  *  Number of milliseconds after the first page event
@@ -498,6 +517,16 @@
     }

     /**
+     *  @private
+     */
+    override public function styleChanged(styleProp:String):void
+    {
+        super.styleChanged(styleProp);
+        if (styleProp == "autoThumbVisibility")
+            invalidateDisplayList();
+    }
+
+    /**
      *  Adds or subtracts pageSize from value.
      *  For an addition, the new value is the closest multiple of pageSize
      *  that is larger than the current value.


FLVMux: clarify AAC rate comment

FLVMux: clarify AAC rate comment

--- src/com/axis/rtspclient/FLVMux.as
+++ src/com/axis/rtspclient/FLVMux.as
@@ -276,7 +276,7 @@
       case 'mpeg4-generic':
         return {
           format: 0xA, /* AAC */
-          sampling: 0x3, /* 44 kHz */
+          sampling: 0x3, /* Should alway be 0x3. Actual rate is determined by AAC header. */
           depth: 0x1, /* 16 bits per sample */
           type: 0x1 /* Stereo */
         };


Not-All Syllogism completed

Not-All Syllogism completed

--- Arguments/src/logic/NotAllSyllogism.as
+++ Arguments/src/logic/NotAllSyllogism.as
@@ -22,6 +22,7 @@

 	 */
 	import classes.ArgumentPanel;
+	import classes.Language;

 	import mx.controls.Alert;

@@ -95,10 +96,10 @@
 			var reasonStr:String;
 			var i:int;

-			output += "It cannot be the case, at the same time, that ";
+			output += Language.lookup("ArgCannotBe");
 			for(i=0;i<inference.reasons.length;i++)
 			{
-					output += inference.reasons[i].stmt + " and that ";
+					output += inference.reasons[i].stmt + Language.lookup("ArgAnd") + Language.lookup("ArgThat");
 					//inference.inputs[i+1].text = inference.reasons[i].stmt;
 					//inference.inputs[i+1].forwardUpdate();
 			}


adding AssertThrows

adding AssertThrows

--- as25/src/asunit/framework/Assert.as
+++ as25/src/asunit/framework/Assert.as
@@ -235,6 +235,17 @@
 		failNotEquals(message, expected, actual);
 	}

+	static public function assertThrows(errorType:Function, block:Function):Void {
+		try {
+			block.call();
+			fail("assertThrows block did not throw an expected exception");
+		}
+		catch(e:Error) {
+		if(!(e instanceof errorType)) {
+			fail("assertThrows did not throw the expected error type, instead threw: " + e);
+			}
+		}
+	}

 	static private function failSame(message:String):Void {
 		var formatted:String = "";


Fixed export record to csv stopped working

--- collect-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
+++ collect-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
@@ -245,7 +245,7 @@
 			var surveyId:int = Application.activeRecord.survey.id;
 			var step:int = toStepNumber(Application.activeRecord.step);

-			var url:String = ApplicationConstants.URL + "surveys/" + surveyId + "/records/" + recordId + "/steps/" + step + "/csv_content.zip";
+			var url:String = ApplicationConstants.URL + "api/survey/" + surveyId + "/data/records/" + recordId + "/steps/" + step + "/csv_content.zip";

 			var req:URLRequest = new URLRequest(url);
 			req.data = new URLVariables();


Transferred from the Adobe Open Source Subversion Repository

Revision: 4009
Author:   jimurphy@adobe.com
Date:     2008-11-04T15:10:34.970681Z

Log Message:
-----------
Merged alpha_gumbo revisions 3929,3936-3937,3945,3956,3971,3986,3994,4002,4006 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_component_icon.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_container_icon_small.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_container_icon.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_component_icon_small.png</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -2256,6 +2256,22 @@
         }
     }

+    private var _alwaysCreateDisplayObject:Boolean;
+
+    mx_internal function set alwaysCreateDisplayObject(value:Boolean):void
+    {
+    	if (value != _alwaysCreateDisplayObject)
+    	{
+    		_alwaysCreateDisplayObject = value;
+    		notifyElementLayerChanged();
+    	}
+    }
+
+    mx_internal function get alwaysCreateDisplayObject():Boolean
+    {
+    	return _alwaysCreateDisplayObject;
+    }
+
     /**
      *  true if the graphic element needs its own unique display object to render into.
      *  In general, you will not set this property, although if you extend the GraphicElement class, you
@@ -2264,13 +2280,15 @@
     public function get needsDisplayObject():Boolean
     {
         var result:Boolean;
-        result = ((_filters && _filters.length > 0) ||
+        result = (alwaysCreateDisplayObject ||
+		(_filters && _filters.length > 0) ||
             _blendMode != BlendMode.NORMAL || _mask ||
             (layoutFeatures != null && (layoutFeatures.layoutScaleX != 1 || layoutFeatures.layoutScaleY != 1 || layoutFeatures.layoutScaleZ != 1 ||
             layoutFeatures.layoutRotationX != 0 || layoutFeatures.layoutRotationY != 0 || layoutFeatures.layoutRotationZ != 0 ||
             layoutFeatures.layoutZ  != 0)) ||
             _colorTransform != null ||
-            _alpha != 1);
+            _alpha != 1 ||
+            layer != 0);

         if(layoutFeatures != null && layoutFeatures.offsets != null)
         {


Hide debug text.

Hide debug text.

--- asn_visualization/asn_visualization.as
+++ asn_visualization/asn_visualization.as
@@ -717,6 +717,8 @@
             _below_vis.y=vis.y + vis.bounds.height - 10;
             _below_vis.x=vis.y + vis.bounds.width / 2;
             _below_vis.text+="under vis " + _below_vis.y
+
+            _below_vis.visible=false;

             if (_country_info_box)
             {


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

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

 package mx.controls.listClasses
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17804
Author:   rfrishbe@adobe.com
Date:     2010-09-22T17:24:30.060779Z

Log Message:
-----------
Fixing a bunch of List issues:

- Scrolling now interacts with List's selection, even if it isn't the List's own scroller that is scrolling
- the touchInteractionEnd event is now bubbling as documented
- Remove a hack in Scroller aorund updateAfterEvent() because I figured out what the underlying bug is around scaleX/scaleY==0 affecting the thumb position for sliders and scrollbars
- Fixing some caret issues (though some still remain and need to be worked out)
- Fix a padding issue for MobileItemRenderer

QE notes: None
Doc notes: None
Bugs: SDK-27671, SDK-27675, SDK-27734, SDK-27828, SDK-27935
Reviewer: Hans
Tests run: checkintests, mustella Slider, Scrollbar, List
Is noteworthy for integration: No

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/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
@@ -741,7 +741,7 @@

             // text should take up the rest of the space width-wise, but only let it take up
             // its measured textHeight so we can position it later based on verticalAlign
-            var viewWidth:Number = unscaledWidth - getStyle("paddingLeft") + getStyle("paddingRight");
+            var viewWidth:Number = unscaledWidth - getStyle("paddingLeft") - getStyle("paddingRight");
             var labelWidth:Number = Math.max(viewWidth, 0);

             var viewHeight:Number =  unscaledHeight - getStyle("paddingTop") - getStyle("paddingBottom");


Update HTTPStreamingMP2PESVideo.as

Update HTTPStreamingMP2PESVideo.as

--- HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2PESVideo.as
+++ HLSPlugin/src/org/denivip/osmf/net/httpstreaming/hls/HTTPStreamingMP2PESVideo.as
@@ -87,9 +87,9 @@
 				if(flags == 0x03)
 				{
 					var dts:Number =
-						((packet.readUnsignedByte() & 0x0e) << 29) +
-						((packet.readUnsignedShort() & 0xfffe) << 14) +
-						((packet.readUnsignedShort() & 0xfffe) >> 1);
+						uint((packet.readUnsignedByte() & 0x0e) << 29) +
+						uint((packet.readUnsignedShort() & 0xfffe) << 14) +
+						uint((packet.readUnsignedShort() & 0xfffe) >> 1);

 					timestamp = Math.round(dts/90);
 					_compositionTime =  Math.round(pts/90) - timestamp;
@@ -372,4 +372,4 @@
 		}

 	} // class
-} // package+} // package


Transferred from the Adobe Open Source Subversion Repository

Revision: 13055
Author:   hneelu@adobe.com
Date:     2009-12-17T17:07:16.762592Z

Log Message:
-----------
Adding ADG classes for FTE

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/advancedDataGridClasses/MXAdvancedDataGridItemRenderer.as</path>

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

--- frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/MXAdvancedDataGridItemRenderer.as
+++ frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/MXAdvancedDataGridItemRenderer.as
@@ -0,0 +1,328 @@
+package mx.controls.advancedDataGridClasses
+{
+import flash.events.MouseEvent;
+
+import mx.controls.AdvancedDataGrid;
+import mx.controls.listClasses.AdvancedListBase;
+import mx.controls.listClasses.BaseListData;
+import mx.controls.listClasses.IDropInListItemRenderer;
+import mx.controls.listClasses.IListItemRenderer;
+import mx.core.mx_internal;
+import mx.events.AdvancedDataGridEvent;
+import mx.managers.IFocusManagerComponent;
+
+import spark.components.Group;
+import spark.components.supportClasses.ItemRenderer;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="listData", kind="property")]
+
+/**
+ *  The MXAdvancedDataGridItemRenderer class defines the Spark item renderer class
+ *  for use with the MX AdvancedDataGrid control.
+ *  This class lets you use the Spark item renderer architecture with the
+ *  MX AdvancedDataGrid control.
+ *
+ *  @mxml
+ *
+ *
The <s:MXAdvancedDataGridItemRenderer> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:MXAdvancedDataGridItemRenderer
+ *    Properties
+ *  />
+ *

+ *
+ *  @see mx.controls.AdvancedDataGrid
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class MXAdvancedDataGridItemRenderer extends ItemRenderer implements IListItemRenderer, IDropInListItemRenderer
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function MXAdvancedDataGridItemRenderer()
+    {
+        super();
+        focusEnabled = false;
+    }
+
+    //----------------------------------
+    //  listData
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the listData property.
+     */
+    private var _listData:BaseListData;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the listData property
+     *  as defined by the IDropInListItemRenderer interface.
+     *  Use this property to access information about the
+     *  data item displayed by the item renderer.
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get listData():BaseListData
+    {
+        return _listData;
+    }
+
+    /**
+     *  @private
+     */
+    public function set listData(value:BaseListData):void
+    {
+        _listData = value;
+
+        invalidateProperties();
+    }
+
+    //----------------------------------
+    //  editor
+    //----------------------------------
+
+    /**
+     *  The ID of the component that receives focus as the item editor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var editor:IFocusManagerComponent;
+
+    //----------------------------------
+    //  text
+    //----------------------------------
+
+    /**
+     *  The text property of
+     *  the component specified by editorID.
+     *  This is a convenience property to
+     *  let the item editor of the MX control,
+     *  specified by the itemEditor property,
+     *  pull the value from most item editors
+     *  without having to propagate a property
+     *  to the item renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get text():String
+    {
+        if (editor && ("text" in editor))
+            return editor["text"];
+
+        return null;
+    }
+
+    //----------------------------------
+    //  disclosureGroup
+    //----------------------------------
+
+    /**
+     *  storage for disclosureGroup
+     */
+    private var _disclosureGroup:Group;
+
+    /**
+     *  The ID of the component that receives focus as the item editor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get disclosureGroup():Group
+    {
+        return _disclosureGroup;
+    }
+
+    /**
+     *  @private
+     */
+    public function set disclosureGroup(value:Group):void
+    {
+        if (value != _disclosureGroup)
+        {
+            if (_disclosureGroup)
+            {
+                _disclosureGroup.removeEventListener(MouseEvent.MOUSE_DOWN,
+                    disclosureGroup_mouseDownHandler);
+                _disclosureGroup.removeEventListener(MouseEvent.CLICK,
+                    disclosureGroup_clickHandler);
+            }
+            _disclosureGroup = value;
+            if (_disclosureGroup)
+            {
+                _disclosureGroup.addEventListener(MouseEvent.MOUSE_DOWN,
+                    disclosureGroup_mouseDownHandler);
+                _disclosureGroup.addEventListener(MouseEvent.CLICK,
+                    disclosureGroup_clickHandler);
+            }
+        }
+    }
+
+    //----------------------------------
+    //  advancedDataGridListData
+    //----------------------------------
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the listData property
+     *  as defined by the IDropInListItemRenderer interface.
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get advancedDataGridListData():AdvancedDataGridListData
+    {
+        return listData as AdvancedDataGridListData;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Handle special behavior when clicking on the disclosure icon
+     */
+    protected function disclosureGroup_mouseDownHandler(event:MouseEvent):void
+    {
+        event.stopPropagation();
+
+        if (AdvancedDataGrid(listData.owner).isOpening || !listData.owner.enabled)
+            return;
+
+        advancedDataGridListData.open = !advancedDataGridListData.open;
+
+        AdvancedDataGrid(listData.owner).dispatchAdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_OPENING,
+            data,      //item
+            this,      //renderer
+            event,     //trigger
+            advancedDataGridListData.open,      //opening
+            true,      //animate
+            true);      //dispatch
+    }
+
+    /**
+     *  @private
+     *  Handle special behavior when clicking on the disclosure icon
+     */
+    protected function disclosureGroup_clickHandler(event:MouseEvent):void
+    {
+        // stop this event from bubbling up because the click is
+        // for item selection and clicking on the disclosureIcon doesn't
+        // select the items (only expands/closes them).
+        event.stopPropagation();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function invalidateDisplayList():void
+    {
+        if (listData)
+        {
+            // see if we need to change state.  This is the only invalidation method guaranteed to be
+            // called.  We set up the renderers properties here so no matter what validation method gets
+            // called first, the properties are set up accordingly.
+            var listBase:AdvancedListBase = AdvancedListBase(listData.owner);
+            if (listBase)
+            {
+                showsCaret = listBase.isItemShowingCaret(data);
+                selected = listBase.isItemSelected(data);
+                super.hovered = listBase.isItemHighlighted(data);
+            }
+        }
+
+        super.invalidateDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function set hovered(value:Boolean):void
+    {
+        if (listData)
+        {
+            // see if we need to change state.
+            // in Halo list, you can rollout of the renderer and onto the padding area
+            // and you should still be hovered, so we double check and override here.
+            // then we get all the other state-related variables updated so the state
+            // calculation will do the right thing.
+            var listBase:AdvancedListBase = AdvancedListBase(listData.owner);
+            if (listBase)
+            {
+                selected = listBase.isItemSelected(data);
+                value = listBase.isItemHighlighted(data);
+            }
+        }
+        super.hovered = value;
+    }
+
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        if (listData)
+        {
+            // make sure itemIndex is correct before the base class does any computation
+            // based on it
+            var listBase:AdvancedListBase = AdvancedListBase(listData.owner);
+            itemIndex = listData.rowIndex + listBase.verticalScrollPosition;
+        }
+
+        super.commitProperties();
+    }
+
+}
+}


Reset fixed modules properly in reset()

Reset fixed modules properly in reset()

--- src/LevelState.as
+++ src/LevelState.as
@@ -697,6 +697,10 @@
 		}

 		protected function reset():void {
+			for each (var module:Module in level.modules)
+				if (module.FIXED)
+					module.deregister();
+
 			savedString = U.SAVE_DELIM + U.SAVE_DELIM + U.SAVE_DELIM + U.SAVE_DELIM;
 			U.save.data[level.name] = savedString;
 			load();


Transferred from the Adobe Open Source Subversion Repository

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

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

reviewed by Ryan
tets: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>

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

--- frameworks/projects/framework/src/mx/effects/CompositeEffect.as
+++ frameworks/projects/framework/src/mx/effects/CompositeEffect.as
@@ -104,8 +104,6 @@
         super(target);

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransform.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransform.as
@@ -1533,7 +1533,7 @@
                                     targets:Array):void
     {
         applyValues(propChanges, targets, true);
-        super.mx_internal::applyStartValues(propChanges, targets);
+        super.applyStartValues(propChanges, targets);
     }

     /**
@@ -1551,7 +1551,7 @@
         if (applyTransitionEndProperties)
         {
             applyValues(propChanges, targets, false);
-            super.mx_internal::applyEndValues(propChanges, targets);
+            super.applyEndValues(propChanges, targets);
         }
         if (targets != null)
             for (var i:int = 0; i < targets.length; ++i)
@@ -1883,7 +1883,7 @@
     private function getGlobalStartTime():Number
     {
         var globalStartTime:Number = 0;
-        var parent:Effect = mx_internal::parentCompositeEffect;
+        var parent:Effect = parentCompositeEffect;
         while (parent)
         {
             globalStartTime += parent.startDelay;
@@ -1903,7 +1903,7 @@
                             (child.repeatDelay + (child.repeatCount - 1));
                 }
             }
-            parent = parent.mx_internal::parentCompositeEffect;
+            parent = parent.parentCompositeEffect;
         }
         return globalStartTime;
     }