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

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

 package mx.effects
 {


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

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


MF-20 Scaleble sources Add field for project settings

--- src/com/merlinds/miracle_tool/views/widgets/ProjectInfoView.as
+++ src/com/merlinds/miracle_tool/views/widgets/ProjectInfoView.as
@@ -4,9 +4,11 @@
  * Time: 15:01
  */
 package com.merlinds.miracle_tool.views.widgets {
+	import com.bit101.components.ComboBox;
 	import com.bit101.components.FPSMeter;
 	import com.bit101.components.HBox;
 	import com.bit101.components.IndicatorLight;
+	import com.bit101.components.InputText;
 	import com.bit101.components.Label;
 	import com.merlinds.miracle_tool.models.ProjectModel;
 	import com.merlinds.unitls.Resolutions;
@@ -17,6 +19,8 @@

 		private var _saveIndicator:IndicatorLight;
 		private var _projectResolution:Label;
+		private var _targetResoultion:ComboBox;
+		private var _boundOffset:InputText;
 		private var _name:Label;
 		//==============================================================================
 		//{region							PUBLIC METHODS
@@ -28,16 +32,31 @@
 		//==============================================================================
 		//{region						PRIVATE\PROTECTED METHODS
 		override protected function initialize():void{
+			var resolutions:Array = [
+				Resolutions.toString(Resolutions.RETINA),
+				Resolutions.toString(Resolutions.FULL_HD),
+				Resolutions.toString(Resolutions.XGA),
+				Resolutions.toString(Resolutions.VGA),
+				Resolutions.toString(Resolutions.QVGA)
+			];
 			var line:HBox = new HBox(this);
 			new Label(line, 0, 0, "Project Name =");
 			_name = new Label(line, 0, 0, "big project name with trulala and tralalu");
 			line = new HBox(this);
 			new Label(line, 0, 0, "Project resolution =");
 			_projectResolution = new Label(line, 0, 0, "2048x2048");
+			//
+			line = new HBox(this);
+			new Label(line, 0, 0, "Target");
+			_targetResoultion = new ComboBox(line, 0, 0, resolutions[0], resolutions);
+			//
+			line = new HBox(this);
+			new Label(line, 0, 0, "Bounds");
+			_boundOffset = new InputText(line, 0, 0, "0");
+			//
 			_saveIndicator = new IndicatorLight(this, 0, 0, 0xFFFF0000, " Not saved");
 			_saveIndicator.isLit = true;
-			new FPSMeter(this);
-			this.height += 10;
+			this.height += 50;
 		}
 		//} endregion PRIVATE\PROTECTED METHODS ========================================

@@ -53,6 +72,7 @@
 				var projectModel:ProjectModel = value as ProjectModel;
 				_name.text = projectModel.name;
 				_projectResolution.text = Resolutions.toString(projectModel.referenceResolution);
+				_boundOffset.text = projectModel.boundsOffset.toString();
 				_saveIndicator.color = projectModel.saved ? 0xFF00FF00 : 0xFFFF0000;
 				_saveIndicator.label = projectModel.saved ? "Saved" : "Not saved";
 			}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 115
Author:   rfrishbe@adobe.com
Date:     2008-01-07T23:49:42.372428Z

Log Message:
-----------
Bindable issues: Need to make some properties bindable by adding the appropriate metadata and dispatchEvent calls.  Bindable metadata needs to be copied when overriding a getter.

Bugs: SDK-13841
QA: Yes
Doc: No
Review: Gordon
Cyclone: Yes

[ private comments below ]

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>

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

--- frameworks/projects/airframework/src/mx/core/WindowedApplication.as
+++ frameworks/projects/airframework/src/mx/core/WindowedApplication.as
@@ -13,10 +13,10 @@
 {

 import flash.desktop.DockIcon;
+import flash.desktop.NativeApplication;
 import flash.desktop.SystemTrayIcon;
 import flash.display.DisplayObject;
 import flash.display.Graphics;
-import flash.desktop.NativeApplication;
 import flash.display.NativeWindow;
 import flash.display.NativeWindowDisplayState;
 import flash.display.NativeWindowResize;
@@ -619,6 +619,11 @@
 		invalidateProperties();
         invalidateSize();
         invalidateViewMetricsAndPadding();
+
+        // the heightChanged event is dispatched in commitProperties instead of
+        // here because it can change based on user-interaction with the window
+        // size and _height is set in there so don't want to prematurely
+        // dispatch here yet
 	}

     //----------------------------------
@@ -630,6 +635,8 @@
 	 */
 	private var _maxHeight:Number = 10000;

+    [Bindable("maxHeightChanged")]
+
 	/**
      *  @private
      */
@@ -646,6 +653,8 @@
 		_maxHeight = Math.min(value, NativeWindow.systemMaxSize.y);
         if (height > _maxHeight)
             height = _maxHeight;
+
+        dispatchEvent(new Event("maxHeightChanged"));
     }

     //----------------------------------
@@ -656,7 +665,9 @@
      *  The maximum width of the application's window.
      */
     private var _maxWidth:Number = 10000;
-
+
+    [Bindable("maxWidthChanged")]
+
 	/**
      *  @private
      */
@@ -673,6 +684,8 @@
         _maxWidth = Math.min(value, NativeWindow.systemMaxSize.x);
         if (width > _maxWidth)
             width = _maxWidth;
+
+        dispatchEvent(new Event("maxWidthChanged"));
     }

      //---------------------------------
@@ -683,7 +696,9 @@
      *  @private
      */
     private var _minHeight:Number = 100;
-
+
+    [Bindable("minHeightChanged")]
+
     /**
      *  Specifies the minimum height of the application's window.
      *
@@ -702,6 +717,8 @@
         _minHeight = Math.max(value, NativeWindow.systemMinSize.y);
         if (height < _minHeight)
             height = _minHeight;
+
+        dispatchEvent(new Event("minHeightChanged"));
     }

      //---------------------------------
@@ -713,7 +730,9 @@
 	 *  Storage for the minWidth property.
      */
     private var _minWidth:Number = 100;
-
+
+    [Bindable("minWidthChanged")]
+
     /**
      *  Specifies the minimum width of the application's window.
      */
@@ -730,12 +749,18 @@
         _minWidth = Math.max(value, NativeWindow.systemMinSize.x);
         if (width < _minWidth)
             width = _minWidth;
+
+        dispatchEvent(new Event("minWidthChanged"));
     }

     //----------------------------------
 	//  visible
 	//----------------------------------

+	[Bindable("hide")]
+    [Bindable("show")]
+    [Bindable("windowComplete")]
+
 	/**
 	 *  @private
 	 *  Also sets the NativeWindow's visibility.
@@ -768,8 +793,8 @@
 				if (value)
 				{
 					e = new FlexEvent(FlexEvent.SHOW);
+					_nativeWindow.visible = value;
 					dispatchEvent(e);
-					_nativeWindow.visible = value;
 				}
 				else
 				{
@@ -777,12 +802,11 @@
 					if (getStyle("hideEffect"))
 	    			{
 	             		addEventListener("effectEnd", hideEffectEndHandler);
-						dispatchEvent(e);
 					}
 					else
 					{
+						_nativeWindow.visible = value;
 						dispatchEvent(e);
-						_nativeWindow.visible = value;
 					}
 				}
 			}
@@ -810,6 +834,11 @@
         invalidateProperties();
         invalidateSize();
         invalidateViewMetricsAndPadding();
+
+        // the widthChanged event is dispatched in commitProperties instead of
+        // here because it can change based on user-interaction with the window
+        // size and _width is set in there so don't want to prematurely
+        // dispatch here yet
      }

     //--------------------------------------------------------------------------
@@ -1692,16 +1721,32 @@

         if (boundsChanged)
         {
-            systemManager.stage.stageWidth = _width = _bounds.width;
+	       	var dispatchWidthChangeEvent:Boolean = (_width != _bounds.width);
+        	var dispatchHeightChangeEvent:Boolean = (_height != _bounds.height);
+
+            systemManager.stage.stageWidth = _width = _bounds.width;
             systemManager.stage.stageHeight = _height =  _bounds.height;
             boundsChanged = false;
+
+            if (dispatchWidthChangeEvent)
+        		dispatchEvent(new Event("widthChanged"));
+        	if (dispatchHeightChangeEvent)
+        		dispatchEvent(new Event("heightChanged"));
         }

         if (windowBoundsChanged)
         {
+        	dispatchWidthChangeEvent = (_width != systemManager.stage.stageWidth);
+        	dispatchHeightChangeEvent = (_height != systemManager.stage.stageHeight);
+
         	_bounds.width = _width = systemManager.stage.stageWidth;
         	_bounds.height = _height = systemManager.stage.stageHeight;
         	windowBoundsChanged = false;
+
+        	if (dispatchWidthChangeEvent)
+        		dispatchEvent(new Event("widthChanged"));
+        	if (dispatchHeightChangeEvent)
+        		dispatchEvent(new Event("heightChanged"));
         }

         if (menuChanged && !nativeWindow.closed)
@@ -2343,6 +2388,8 @@
 	private function hideEffectEndHandler(event:Event):void
 	{
 		_nativeWindow.visible = false;
+
+		dispatchEvent(new FlexEvent(FlexEvent.HIDE));
 	}

     /**


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

--- frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
+++ frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as
@@ -24,6 +24,11 @@
 	/**
 	 *  Transform Offsets can be assigned to any Component or GraphicElement to modify the transform
 	 *  of the object beyond where its parent layout places it.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public class AdvancedLayoutFeatures
 	{
@@ -34,6 +39,11 @@
     //--------------------------------------------------------------------------
     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 		public function AdvancedLayoutFeatures()
 		{
@@ -53,6 +63,11 @@
      * storage for the layer value. Layering is considered 'advanced' layout behavior, and not something
      * that gets used by the majority of the components out there.  So if a component has a non-zero layer,
      * it will allocate a AdvancedLayoutFeatures object and store the value here.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public var layer:Number = 0;

@@ -117,6 +132,11 @@
     /**
      * layout transform convenience property.  Represents the x value of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutX(value:Number):void
 	{
@@ -134,6 +154,11 @@
     /**
      * layout transform convenience property.  Represents the y value of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutY(value:Number):void
 	{
@@ -152,6 +177,11 @@
     /**
      * layout transform convenience property.  Represents the z value of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutZ(value:Number):void
 	{
@@ -228,6 +258,11 @@
     /**
      * layout transform convenience property.  Represents the rotation around the X axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutRotationX(value:Number):void
 	{
@@ -246,6 +281,11 @@
     /**
      * layout transform convenience property.  Represents the rotation around the Y axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutRotationY(value:Number):void
 	{
@@ -264,6 +304,11 @@
     /**
      * layout transform convenience property.  Represents the rotation around the Z axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutRotationZ(value:Number):void
 	{
@@ -285,6 +330,11 @@
     /**
      * layout transform convenience property.  Represents the scale along the X axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutScaleX(value:Number):void
 	{
@@ -303,6 +353,11 @@
     /**
      * layout transform convenience property.  Represents the scale along the Y axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutScaleY(value:Number):void
 	{
@@ -322,6 +377,11 @@
     /**
      * layout transform convenience property.  Represents the scale along the Z axis of the layout matrix used in layout and in
      * the computed transform.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function set layoutScaleZ(value:Number):void
 	{
@@ -387,6 +447,11 @@

 	/**
 	 * true if the computed transform has 3D values.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get is3D():Boolean
 	{
@@ -395,6 +460,11 @@

 	/**
 	 * true if the layout transform has 3D values.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get layoutIs3D():Boolean
 	{
@@ -406,6 +476,11 @@
 	/** offsets to the transform convenience properties that are applied when a component is rendered. If this
 	 * property is set, its values will be added to the layout transform properties to determine the true matrix used to render
 	 * the component
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function set offsets(value:TransformOffsets):void
 	{
@@ -453,6 +528,11 @@

 	/**
 	 * the computed matrix, calculated by combining the layout matrix and  and any offsets provided..
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get computedMatrix():Matrix
 	{
@@ -481,6 +561,11 @@

 	/**
 	 * the computed 3D matrix, calculated by combining the 3D layout matrix and  and any offsets provided..
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get computedMatrix3D():Matrix3D
 	{
@@ -697,6 +782,11 @@
 	 * @param tx,ty,tz the point, in the component's own coordinates, to keep fixed relative to its parent.
 	 * affectLayout: whether the rotation and scale should be applied to the layout transform or the offsets.  Note that the offsets might be updated
 	 * even when the new values are being applied to the layout.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function transformAround(rx:Number,ry:Number,rz:Number,sx:Number,sy:Number,sz:Number,tx:Number,ty:Number,tz:Number,affectLayout:Boolean = true):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@1261776 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3139
Author:   jimurphy@adobe.com
Date:     2008-09-08T15:42:37.788151Z

Log Message:
-----------
Merged 3.0.x revisions [3074,3079-3080,3086,3094,3096,3098,3101-3102,3104,3108,3114,3123,3125-3126] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequestDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.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/events/EventListenerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/SecurityUtil.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/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InvalidateRequestData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -24,8 +24,11 @@
 import mx.events.SWFBridgeEvent;
 import mx.utils.NameUtil;
 import mx.utils.SecurityUtil;
+import mx.events.SWFBridgeRequest;

 use namespace mx_internal;
+
+[ExcludeClass]

 /**
  *  This class acts as the SystemManager for a popup window that is
@@ -61,7 +64,7 @@
 		// Capture mouseDown so we can switch top level windows and activate
 		// the right focus manager before the components inside start
 		// processing the event.
-		addEventListener(MouseEvent.MOUSE_DOWN, proxyMouseDownHandler, true);
+		super.addEventListener(MouseEvent.MOUSE_DOWN, proxyMouseDownHandler, true);
 	}

     //--------------------------------------------------------------------------
@@ -136,6 +139,25 @@
 		return false; // proxy does not want to use the bridge
 	}

+    /**
+     *  @inheritDoc
+     */
+    override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false,
+                                            priority:int=0, useWeakReference:Boolean=false):void
+    {
+        super.addEventListener(type, listener, useCapture, priority, useWeakReference);
+        _systemManager.addEventListener(type, listener, useCapture, priority, useWeakReference);
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
+    {
+        super.removeEventListener(type, listener, useCapture);
+        _systemManager.removeEventListener(type, listener, useCapture);
+    }
+
 	/**
 	 *  @inheritDoc
 	 */
@@ -158,9 +180,11 @@
 			var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
                 SWFBridgeEvent.BRIDGE_WINDOW_ACTIVATE,
                 false, false,
-				mutualTrust ? this : NameUtil.displayObjectToString(this));
+                { notifier: bridge,
+                  window: mutualTrust ? this : NameUtil.displayObjectToString(this)
+                });

-            bridge.dispatchEvent(bridgeEvent);
+            _systemManager.getSandboxRoot().dispatchEvent(bridgeEvent);
 		}
 	}

@@ -186,9 +210,11 @@
             var bridgeEvent:SWFBridgeEvent = new SWFBridgeEvent(
                 SWFBridgeEvent.BRIDGE_WINDOW_DEACTIVATE,
 				false, false,
-				mutualTrust ? this : NameUtil.displayObjectToString(this));
-
-			bridge.dispatchEvent(bridgeEvent);
+                { notifier: bridge,
+                  window: mutualTrust ? this : NameUtil.displayObjectToString(this)
+                });
+
+			_systemManager.getSandboxRoot().dispatchEvent(bridgeEvent);
 		}
 	}

@@ -247,7 +273,7 @@
         // is a focus container. If our child is not a focus manager
         // container we will not be able to activate pop up in this proxy.
         if (findFocusManagerContainer(this))
-            SystemManager(_systemManager).fireActivatedWindowEvent(this);
+            SystemManager(_systemManager).dispatchActivatedWindowEvent(this);
     }
 }


The Client's ClientObject is not necessarily the body anymore.

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

--- src/main/as/com/threerings/whirled/spot/client/SpotSceneDirector.as
+++ src/main/as/com/threerings/whirled/spot/client/SpotSceneDirector.as
@@ -20,7 +20,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 package com.threerings.whirled.spot.client {
-
+import com.threerings.crowd.client.CrowdClient;
 import com.threerings.util.Log;
 import com.threerings.util.ResultListener;

@@ -127,8 +127,7 @@

         // sanity check the server's notion of what scene we're in with our notion of it
         var sceneId :int = _scdir.getScene().getId();
-        var clSceneId :int = ScenePlace.getSceneId(
-            _wctx.getClient().getClientObject() as BodyObject);
+        var clSceneId :int = ScenePlace.getSceneId(CrowdClient(_wctx.getClient()).bodyOf());
         if (sceneId != clSceneId) {
             log.warning("Client and server differ in opinion of what scene we're in " +
                         "[sSceneId=" + clSceneId + ", cSceneId=" + sceneId + "].");
@@ -334,11 +333,11 @@
     {
         super.clientDidLogon(event);

-        var clientObj :ClientObject = event.getClient().getClientObject();
-        if (clientObj is ClusteredBodyObject) {
-            // listen to the client object
-            clientObj.addListener(this);
-            _self = (clientObj as ClusteredBodyObject);
+        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
+        if (body is ClusteredBodyObject) {
+            // listen to the body
+            body.addListener(this);
+            _self = (body as ClusteredBodyObject);

             // we may need to subscribe to a cluster due to session resumption
             maybeUpdateCluster();
@@ -350,10 +349,12 @@
     {
         super.clientObjectDidChange(event);

-        // listen to the client object
-        var clientObj :ClientObject = event.getClient().getClientObject();
-        clientObj.addListener(this);
-        _self = (clientObj as ClusteredBodyObject);
+        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
+        if (body is ClusteredBodyObject) {
+            // listen to the body
+            body.addListener(this);
+            _self = (body as ClusteredBodyObject);
+        }
     }

     // documentation inherited
@@ -367,10 +368,9 @@
         _sservice = null;
         clearCluster(true);

-        // stop listening to the client object
-        var clientObj :ClientObject = event.getClient().getClientObject();
-        if (clientObj != null) {
-            clientObj.removeListener(this);
+        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
+        if (body is ClusteredBodyObject) {
+            body.removeListener(this);
         }
         _self = null;
     }
@@ -391,7 +391,7 @@
         var ssobj :SpotSceneObject = (plobj as SpotSceneObject);
         if (ssobj != null) {
             scloc = ssobj.occupantLocs.get(
-                _wctx.getClient().getClientObject().getOid()) as SceneLocation;
+                CrowdClient(_wctx.getClient()).bodyOf().getOid()) as SceneLocation;
         }
         _location = (scloc == null) ? null : scloc.loc;
     }


redraw on layout

redraw on layout

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
@@ -63,6 +63,7 @@
 		public function set strand(value:IStrand):void
 		{
 			_strand = value;
+            IEventDispatcher(value).addEventListener("layoutNeeded", changeHandler);
             IEventDispatcher(value).addEventListener("heightChanged", changeHandler);
             IEventDispatcher(value).addEventListener("widthChanged", changeHandler);
             IEventDispatcher(value).addEventListener("sizeChanged", changeHandler);
@@ -72,6 +73,11 @@
 		private function changeHandler(event:Event):void
 		{
 			var styleObject:* = ValuesManager.valuesImpl.getValue(_strand,"border-color");
+            if (styleObject is String)
+            {
+                if (styleObject.charAt(0) == "#")
+                    styleObject = styleObject.replace("#", "0x");
+            }
 			var borderColor:Number = Number(styleObject);
 			if( isNaN(borderColor) ) borderColor = 0x000000;
 			styleObject = ValuesManager.valuesImpl.getValue(_strand,"border-width");


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation/src/mx/automation/events/AutomationCustomReplayEvent.as
+++ frameworks/projects/automation/src/mx/automation/events/AutomationCustomReplayEvent.as
@@ -0,0 +1,177 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+	import flash.events.Event;
+	import mx.automation.IAutomationObject;
+
+	/**
+	 *  The AutomationReplayEvent class represents event objects that are dispatched
+	 *  by the AutomationManager, and used by the custom component owners to replay their custom events
+	 *  However this event will be dispatched for every replay recieved from the tool and if this was not
+	 *  prevented by the custom component it will be handled by the tool.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class AutomationCustomReplayEvent extends Event
+	{
+		include "../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class constants
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  The AutomationReplayEvent.REPLAY constant defines the value of the
+		 *  type property of the event object for a replay event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
automationObject	Delegate of the UIComponent
+		 *        that dispatched the interaction earlier.

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

+		 *
replayableEvent	Event that needs to be replayed.

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

+		 *

+		 *
+		 *  @eventType replay
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const CUSTOM_REPLAY:String = "customReplay";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *
+		 *  @param type The event type; indicates the action that caused the event.
+		 *
+		 *  @param bubbles Whether the event can bubble up the display list hierarchy.
+		 *
+		 *  @param cancelable Whether the behavior associated with the event can be prevented.
+		 *
+		 *  @param automationObject Delegate of the UIComponent that dispatched the interaction earlier.
+		 *
+		 *  @param replayableEvent Event that needs to be replayed.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function AutomationCustomReplayEvent(type:String = AutomationCustomReplayEvent.CUSTOM_REPLAY,
+													bubbles:Boolean = false,
+													cancelable:Boolean = false,
+													automationObject:IAutomationObject = null,
+													name:String=null,
+													args:Array=null)
+		{
+			super(type, bubbles, cancelable);
+
+			this.automationObject = automationObject;
+			this.name = name;
+			this.args = args;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationObject
+		//----------------------------------
+
+		/**
+		 *  Delegate of the UIComponent object on which this event will be replayed
+		 *  since the target on an event that was not really dispatched
+		 *  is not available.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var automationObject:IAutomationObject;
+
+		//----------------------------------
+		//  Name
+		//----------------------------------
+
+		/**
+		 *  Name Event to the replayed.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var name:String;
+
+
+		//----------------------------------
+		//  Args
+		//----------------------------------
+
+		/**
+		 *  Arguments corresponding to the  Event to the replayed.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var args:Array;
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods: Event
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function clone():Event
+		{
+			return new AutomationCustomReplayEvent(type, bubbles, cancelable,
+				automationObject,
+				name,args);
+		}
+	}
+
+}


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

--- frameworks/projects/mx/src/mx/skins/halo/PanelSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/PanelSkin.as
@@ -78,8 +78,8 @@
             return super.borderMetrics;

         var hasPanelParent:Boolean = isPanel(parent);
-        var controlBar:IUIComponent = hasPanelParent ? Object(parent).mx_internal::_controlBar : null;
-        var hHeight:Number = hasPanelParent ? Object(parent).mx_internal::getHeaderHeightProxy() : NaN;
+        var controlBar:IUIComponent = hasPanelParent ? Object(parent)._controlBar : null;
+        var hHeight:Number = hasPanelParent ? Object(parent).getHeaderHeightProxy() : NaN;

         var newControlBarHeight:Number;


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

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

 package mx.skins.halo
 {


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

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


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

--- frameworks/projects/spark/src/spark/modules/Module.as
+++ frameworks/projects/spark/src/spark/modules/Module.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.modules
 {


fixed sortOn('length')

fixed sortOn('length')

--- WeaveData/src/weave/data/AttributeColumns/DateColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/DateColumn.as
@@ -99,7 +99,8 @@
 			if (!_dateFormat)
 			{
 				var possibleFormats:Array = weave.flascc.dates_detect(dates, DATE_FORMATS);
-				_dateFormat = possibleFormats.sortOn('length').pop();
+				StandardLib.sortOn(possibleFormats, 'length');
+				_dateFormat = possibleFormats.pop();
 			}

 			_dateFormat = convertDateFormat_as_to_c(_dateFormat);


A typo fixed. Defaulting to "standard" stream type.

--- src/org/igniterealtime/xiff/core/XMPPConnection.as
+++ src/org/igniterealtime/xiff/core/XMPPConnection.as
@@ -107,7 +107,7 @@
 		 * Stream type lets user set opening/closing tag.
 		 * <stream:stream />
 		 */
-		public static const STREAM_TYPE_STANDAND_TERMINATED:uint = 1;
+		public static const STREAM_TYPE_STANDARD_TERMINATED:uint = 1;
 		/**
 		 * Stream type lets user set opening/closing tag.
 		 * <flash:stream>
@@ -244,7 +244,7 @@
 		 */
 		protected var _incompleteRawXML:String = "";

-		private var _streamType:uint = 1;
+		private var _streamType:uint = 0;
 		private var presenceQueue:Array = [];
 		private var presenceQueueTimer:Timer;

@@ -274,20 +274,19 @@
 		 * Connects to the server. Use one of the STREAM_TYPE_.. constants.
 		 * Possible options are:
 		 *

+		 *
standard (default)

+		 *
standard terminated

 		 *
flash

-		 *
terminatedFlash

-		 *
standard

-		 *
terminatedStandard (default)

+		 *
flash terminated

 		 *

 		 * Some servers, like Jabber, Inc.'s XCP and Jabberd 1.4 expect <flash:stream> from
 		 * a Flash client instead of the standard <stream:stream>.
 		 *
-		 * @param	streamType (Optional) The type of initial stream negotiation,
-		 * either <flash:stream> or <stream:stream>.
+		 * @param	streamType Any of the STREAM_TYPE_.. constants.
 		 *
 		 * @return A boolean indicating whether the server was found.
 		 */
-		public function connect( streamType:uint = 1 ):Boolean
+		public function connect( streamType:uint = 0 ):Boolean
 		{
 			createSocket();
 			_streamType = streamType;
@@ -508,7 +507,7 @@
 			}
 			openingStreamTag += ' to="' + domain + '" version="' + XMPPStanza.CLIENT_VERSION + '"';

-			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDAND_TERMINATED)
+			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDARD_TERMINATED)
 			{
 				openingStreamTag += ' /';
 			}


--- src/org/igniterealtime/xiff/data/im/RosterGroup.as
+++ src/org/igniterealtime/xiff/data/im/RosterGroup.as
@@ -52,7 +52,7 @@
 		 */
 		public function addItem(item:RosterItemVO):void
 		{
-			if (_items.contains(item))
+			if (!_items.contains(item))
 			{
 				_items.addItem(item);
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/ButtonBarButtonSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ButtonBarButtonSkin.as
@@ -387,9 +387,9 @@
 	/**
 	 *  We don't use 'is' to prevent dependency issues
 	 */
-	static private var bbars:Object = {};
-
-	static private function isButtonBar(parent:Object):Boolean
+	private static var bbars:Object = {};
+
+	private static function isButtonBar(parent:Object):Boolean
 	{
 		var s:String = getQualifiedClassName(parent);
 		if (bbars[s] == 1)


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

--- frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as
+++ frameworks/projects/spark/src/spark/core/CSSTextLayoutFormat.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009-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.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 16320
Author:   klin@adobe.com
Date:     2010-05-25T21:58:53.911229Z

Log Message:
-----------
Form Bugfixing.

-Fixed ConstraintLayout so that it takes into account the "maxWidth" of columns and rows.
-FormItemSkin's and StackedFormItemSkin's helpCol column now has a maxWidth of 200 (longer help strings will wrap).
-FormSkin's contentGroup now stretches to be the size of the Form fixing the issue with FormItems not looking right with 100% width. FormSkin's errorStringText now also has a maxWidth that is binded to the FormSkin's width. This allows errorStringText to wrap reasonably.
-Fixed Form checkin test to pass.

QE notes: No
Doc notes: No
Bugs: SDK-26491, SDK-26495, SDK-26501, SDK-26512, SDK-26513
Reviewer: Jason
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
+++ frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as
@@ -881,6 +881,10 @@
                         if (constraintsDetermineWidth(elementInfo))
                             colWidth = Math.max(colWidth, extX + layoutElement.getMinBoundsWidth());

+                        // bound with max width of column
+                        if (!isNaN(col.maxWidth))
+                            colWidth = Math.min(colWidth, col.maxWidth);
+
                         col.setActualWidth(Math.ceil(colWidth));
                     }
                 }
@@ -917,12 +921,17 @@

                     if (numContentCols > 0)
                     {
-                        colWidth = availableWidth / numContentCols;
+                        var splitWidth:Number = availableWidth / numContentCols;

                         for (j = 0; j < numContentCols; j++)
                         {
                             col = contentCols[j];
-                            col.setActualWidth(Math.ceil(Math.max(col.width, colWidth)));
+
+                            colWidth = Math.max(col.width, splitWidth);
+                            if (!isNaN(col.maxWidth))
+                                colWidth = Math.min(colWidth, col.maxWidth);
+
+                            col.setActualWidth(Math.ceil(colWidth));
                         }
                     }
                 }
@@ -1098,6 +1107,10 @@

                         if (constraintsDetermineHeight(elementInfo))
                             rowHeight = Math.max(rowHeight, extY + layoutElement.getMinBoundsHeight());
+
+                        // bound with max height of row
+                        if (!isNaN(row.maxHeight))
+                            rowHeight = Math.min(rowHeight, row.maxHeight);

                         row.setActualHeight(Math.ceil(rowHeight));
                     }
@@ -1135,12 +1148,17 @@

                     if (numContentRows > 0)
                     {
-                        rowHeight = availableHeight / numContentRows;
+                        var splitHeight:Number = availableHeight / numContentRows;

                         for (j = 0; j < numContentRows; j++)
                         {
                             row = contentRows[j];
-                            row.setActualHeight(Math.ceil(Math.max(row.height, rowHeight)));
+
+                            rowHeight = Math.max(row.height, splitHeight);
+                            if (!isNaN(row.maxHeight))
+                                rowHeight = Math.min(rowHeight, row.maxHeight);
+
+                            row.setActualHeight(Math.ceil(rowHeight));
                         }
                     }
                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4762
Author:   hmuller@adobe.com
Date:     2009-01-30T19:28:58.681729Z

Log Message:
-----------
Fixed CONTENT_JUSTIFY alignment in virtual Vertical,HorizontalLayout.

QE Notes:
Doc Notes: None
Bugs: sdk-18659
Reviewer: Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -878,7 +878,7 @@
     }

     //  - virtual layout only -
-    private function calculateElementHeight(elt:ILayoutElement, targetHeight:Number, contentHeight:Number):Number
+    private function calculateElementHeight(elt:ILayoutElement, targetHeight:Number, containerHeight:Number):Number
     {
        // If percentHeight is specified then the element's height is the percentage
        // of targetHeight clipped to min/maxHeight and to (upper limit) targetHeight.
@@ -893,7 +893,7 @@
            case VerticalAlign.JUSTIFY:
                return targetHeight;
            case VerticalAlign.CONTENT_JUSTIFY:
-               return Math.max(elt.getPreferredBoundsHeight(), contentHeight);
+               return Math.max(elt.getPreferredBoundsHeight(), containerHeight);
        }
        return elt.getPreferredBoundsHeight();
     }
@@ -981,7 +981,7 @@
         {
             var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
             var w:Number = (isNaN(fixedColumnWidth)) ? elt.getPreferredBoundsWidth() : fixedColumnWidth;
-            var h:Number = calculateElementHeight(elt, targetHeight, contentHeight);
+            var h:Number = calculateElementHeight(elt, targetHeight, containerHeight);
             var y:Number = calculateElementY(elt, h, containerHeight);
             elt.setLayoutBoundsPosition(x, y);
             elt.setLayoutBoundsSize(w, h);
@@ -1001,7 +1001,7 @@
                 for (index = startIndex; index <= endIndex; index++)
                 {
                     elt = layoutTarget.getLayoutElementAt(index);
-                    h = calculateElementHeight(elt, targetHeight, contentHeight);
+                    h = calculateElementHeight(elt, targetHeight, containerHeight);
                     y = calculateElementY(elt, h, containerHeight);
                     elt.setLayoutBoundsPosition(elt.getLayoutBoundsX(), y);
                     elt.setLayoutBoundsSize(elt.getLayoutBoundsWidth(), h);


Transferred from the Adobe Open Source Subversion Repository

Revision: 19498
Author:   jasonsj@adobe.com
Date:     2010-12-21T02:16:56.447761Z

Log Message:
-----------
Initial mobile theme ButtonBar and iOS ActionBar Button skins.
Removed DiscouragedForProfile metadata from ButtonBar and HSlider.
Fixed line endings in FXG files.
Removed unnecessary winding="evenOdd" in FXG.

QE notes: Use styleName="ios" in ActionBar buttons in navigationContent and actionContent.
Doc notes:
Bugs:
Reviewer: jszeto
Tests run: checkintests
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as
@@ -85,7 +85,7 @@
      *  @private
      *  Flag that is set when the currentState changes from enabled to disabled
      */
-    private var enabledChanged:Boolean;
+    private var enabledChanged:Boolean = false;

     /**
      *  labelDisplay skin part.
@@ -221,6 +221,7 @@
         {
             // force enabled update when icon changes
             enabledChanged = true;
+            iconChanged = false;
             setIcon(getStyle("icon"));
         }

@@ -228,7 +229,6 @@
         {
             commitDisabled();
             enabledChanged = false;
-            iconChanged = false;
         }
     }

@@ -243,7 +243,6 @@

         var textWidth:Number = 0;
         var textHeight:Number = 0;
-        var textDescent:Number = 0;

         // reset text if it was truncated before.
         if (hostComponent && labelDisplay.isTruncated)


Fixed issue where AIR files copied to debug folder might not have the same path as the packaged app (closes #24)

--- src/ASConfigC.as
+++ src/ASConfigC.as
@@ -1715,31 +1715,45 @@
 					srcFilePath = path.resolve(srcFilePath);
 					destFilePath = fileJSON[AIROptions.FILES__PATH];
 				}
+				if(!path.isAbsolute(srcFilePath))
+				{
+					srcFilePath = path.resolve(process.cwd(), srcFilePath);
+				}
+				//ensures that path formatting is consistent
+				destFilePath = path.relative(outputDir, path.resolve(outputDir, destFilePath));
+				if(destFilePath.startsWith(".."))
+				{
+					console.error("Invalid destination path for file in Adobe AIR application. Source: " + srcFilePath + ", Destination: " + destFilePath);
+					process.exit(1);
+				}

 				if(fs.statSync(srcFilePath).isDirectory())
 				{
 					var assetDirList:Vector.<String> = new <String>[srcFilePath];
 					var assetPaths:Array = findSourcePathAssets(null, assetDirList, outputDir, null);
-					assetDirList = new <String>[path.dirname(srcFilePath)];
 					var assetCount:int = assetPaths.length;
 					for(var j:int = 0; j < assetCount; j++)
 					{
 						var assetPath:String = assetPaths[j];
+						var relativeAssetPath:String = path.relative(srcFilePath, assetPath);
 						if(this._outputIsJS)
 						{
 							var debugOutputDir:String = path.join(outputDir, "bin", "js-debug");
-							var debugTargetPath:String = assetPathToOutputPath(assetPath, null, assetDirList, debugOutputDir);
+							debugOutputDir = path.resolve(debugOutputDir, destFilePath);
+							var debugTargetPath:String = path.resolve(debugOutputDir, relativeAssetPath);
 							copyAsset(assetPath, debugTargetPath);
 							if(!this._debugBuild)
 							{
 								var releaseOutputDir:String = path.join(outputDir, "bin", "js-release");
-								var releaseTargetPath:String = assetPathToOutputPath(assetPath, null, assetDirList, releaseOutputDir);
+								releaseOutputDir = path.resolve(releaseOutputDir, destFilePath);
+								var releaseTargetPath:String = path.resolve(releaseOutputDir, relativeAssetPath);
 								copyAsset(assetPath, releaseTargetPath);
 							}
 						}
 						else //swf
 						{
-							var swfTargetPath:String = assetPathToOutputPath(assetPath, null, assetDirList, outputDir);
+							var assetOutputDir:String = path.resolve(outputDir, destFilePath);
+							var swfTargetPath:String = path.resolve(assetOutputDir, relativeAssetPath);
 							copyAsset(assetPath, swfTargetPath);
 						}
 					}


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11490
Author:   gruehle@adobe.com
Date:     2009-11-06T01:34:58.836883Z

Log Message:
-----------
Add accentColor style. This color is used to tint "emphasized" buttons, and as the color for slider track highlighting.

QE notes: Tests should be added for this style.
Doc notes: ASDoc added, but should be reviewed.
Bugs: SDK-23450, SDK-23451
Reviewer: Ryan
Tests run: checkintests, components/Slider, components/Alert
Is noteworthy for integration: Yes

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/framework/src/mx/controls/Button.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/sparkskins/src/mx/skins/spark/SliderTrackHighlightSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.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/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/ScrollControlBase.as
+++ frameworks/projects/mx/src/mx/core/ScrollControlBase.as
@@ -49,6 +49,19 @@
 include "../styles/metadata/FocusStyles.as"
 include "../styles/metadata/LeadingStyle.as"
 include "../styles/metadata/TextStyles.as"
+
+/**
+ *  Accent color used by component skins. The default button skin uses this color
+ *  to tint the background. Slider track highlighting uses this color.
+ *
+ *  @default #0099FF
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="accentColor", type="uint", format="Color", inherit="yes", theme="spark")]

 /**
  *  The main color for a component.


Transferred from the Adobe Open Source Subversion Repository

Revision: 20846
Author:   smgilson@adobe.com
Date:     2011-03-14T15:46:32.470057Z

Log Message:
-----------
Merge 20813 - ASDoc edits

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/framework/src/mx/utils/StringUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/MultiDPIBitmapSource.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatcher.as</path>

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

--- frameworks/projects/spark/src/spark/utils/BitmapUtil.as
+++ frameworks/projects/spark/src/spark/utils/BitmapUtil.as
@@ -60,6 +60,10 @@
      *  or are not in a content that is accessible to the caller by having called the
      *  Security.allowDomain() method.
      *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public static function getSnapshotWithPadding(target:IUIComponent,
                                                   padding:int = 4,


I blame the beer

I blame the beer

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

--- src/as/com/threerings/util/StringUtil.as
+++ src/as/com/threerings/util/StringUtil.as
@@ -184,7 +184,7 @@
             str = str.toLowerCase();
             if (str == "true" || str == "1") {
                 return true;
-            } else if (str == "false" || str == "2") {
+            } else if (str == "false" || str == "0") {
                 return false;
             }
         }


Fixed junit xml output. I had camelcased node names in xml which junit doesnt want.

--- src/as3spec/Printer.as
+++ src/as3spec/Printer.as
@@ -16,16 +16,11 @@
 	  public var printXML:Boolean = false;
 	  public var printTrace:Boolean = true;

-	  private var outputXML: XML = <XMLResultPrinter></XMLResultPrinter>;
 	  private var suiteXML: XML = <testsuite></testsuite>;
 	  private var testCase: XML;

 	  private var desc : String;

-	  public function Printer() : void {
-	   outputXML.appendChild(suiteXML);
-	  }
-
 		public function description(s : String) : void {
 		  desc = s;
 		  puts('');
@@ -45,8 +40,8 @@
 		private function specificationXML(s : String, type : String, time : Number, error:Error = null) : void {
 		  if(!printXML) return;

-		  testCase = <testCase></testCase>;
-		  testCase.@className = clean(desc);
+		  testCase = <testcase></testcase>;
+		  testCase.@classname = clean(desc);
 		  testCase.@name = clean(s);
 		  testCase.@time = time/1000;

@@ -92,7 +87,7 @@

 		  summaryXML(specifications, failures, errors, successes, timeouts, time);

-		  if(printXML) trace(outputXML.toXMLString());
+		  putsXML();

 		}

@@ -105,6 +100,18 @@
 		  suiteXML.@timeouts=timeouts;
 		  suiteXML.@tests=specifications;

+		}
+
+		private function putsXML() : void {
+		  if(printXML) {
+		    //fix this later
+		    suiteXML.@name = 'AllSpecs';
+		    trace('<XMLResultPrinter>');
+		    trace('<?xml version="1.0" encoding="UTF-8"?>');
+		    XML.prettyIndent = 0;
+		    trace(suiteXML.toXMLString());
+		    trace('</XMLResultPrinter>');
+		  }
 		}

 		private function puts(s : String) : void {


Resource browser particle preview

Resource browser particle preview

--- Bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ Bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -1431,6 +1431,7 @@

 void CreateResourcePreview(String path, Node@ previewNode)
 {
+    resourceBrowserPreview.autoUpdate = false;
     int resourceType = GetResourceType(path);
     if (resourceType > 0)
     {
@@ -1490,6 +1491,19 @@
             previewNode.RemoveAllChildren();
             previewNode.RemoveAllComponents();
         }
+        else if (resourceType == RESOURCE_TYPE_PARTICLEEFFECT)
+        {
+            ParticleEffect@ particleEffect = ParticleEffect();
+            if (particleEffect.Load(file))
+            {
+                ParticleEmitter@ particleEmitter = previewNode.CreateComponent("ParticleEmitter");
+                particleEmitter.effect = particleEffect;
+                particleEffect.activeTime = 0.0;
+                particleEmitter.Reset();
+                resourceBrowserPreview.autoUpdate = true;
+                return;
+            }
+        }
     }

     StaticModel@ staticModel = previewNode.CreateComponent("StaticModel");


Repeat Segments Fix Bug Fixes: - Fixed an issue that would cause segments to repeat in some livestreams

--- HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
+++ HLSPlugin/src/com/kaltura/hls/HLSIndexHandler.as
@@ -301,6 +301,7 @@
 			/* Handle Buffered Segments */
 			var numBuffered:int = targetManifest.bufferSegments.length;

+			lastQualitySegments.concat(lastQualityManifest.bufferSegments);
 			targetSegments.concat(targetManifest.bufferSegments);

 			var newSegments:Vector.<HLSManifestSegment> = newManifest.segments;
@@ -356,11 +357,32 @@
 			}
 			else if (matchIndex < 0)
 			{
-				// The last playlist start time is at the start of the newest segment, the best we can do here is estimate
-				matchStartTime += targetSegments[targetSegments.length - 1].duration;
-
-				// Let the console know that we might have a problem
-				trace("Warning: Estimating playlist start time. Estimated start time: " + matchStartTime);
+				// The last playlist start time is at the start of the newest segment, try to find an accurate start time
+				var lastQualityTimeMatchFound:Boolean = false;
+
+				if (lastQualitySegments[lastQualitySegments.length - 1].id >= newSegments[0].id)
+				{
+					// If we have at least one ID that matches between quality levels, use that to sync up out times. It is a better solution than pure estimation
+					for (var i:int = lastQualitySegments.length - 1; i >= 0; i--)
+					{
+						// Find the segment in the last quality level that matches the segment in the new quality level
+						if (lastQualitySegments[i].id == newSegments[0].id && lastQualitySegments[i].duration == newSegments[0].duration)
+						{
+							matchStartTime = lastQualitySegments[i].startTime;
+							lastQualityTimeMatchFound = true;
+							trace ("Found Match Start Time: " + matchStartTime);
+						}
+					}
+				}
+
+				// Only do this messy estimation if we couldn't find a start time with ID matching
+				if (!lastQualityTimeMatchFound)
+				{
+					matchStartTime += targetSegments[targetSegments.length - 1].duration * 0.5;
+
+					// Let the console know that we might have a problem
+					trace("Warning: Estimating playlist start time. Estimated start time: " + matchStartTime);
+				}

 				// Make a completely new buffer, we don't want the elements in the segment buffer to have a gap
 				if (newSegments.length < HLSManifestParser.MAX_SEG_BUFFER)


Now including extra metadata when selecting a column from WeaveDataSource.

--- WeaveData/src/weave/data/hierarchy/EntityNode.as
+++ WeaveData/src/weave/data/hierarchy/EntityNode.as
@@ -33,6 +33,7 @@
     import weave.api.reportError;
     import weave.api.services.beans.Entity;
     import weave.api.services.beans.EntityHierarchyInfo;
+    import weave.data.DataSources.WeaveDataSource;
     import weave.services.EntityCache;

 	[RemoteClass]
@@ -150,9 +151,14 @@
 		 */
 		public function getColumnMetadata():Object
 		{
-			if (getEntity().getEntityType() == EntityType.COLUMN)
-				return id;
-			return null; // not a column
+			var meta:Object = {};
+			var entity:Entity = getEntity();
+			if (entity.getEntityType() != EntityType.COLUMN)
+				return null; // not a column
+			for (var key:String in entity.publicMetadata)
+				meta[key] = entity.publicMetadata[key];
+			meta[WeaveDataSource.ENTITY_ID] = id;
+			return meta;
 		}

 		/**


add AS3 translation of Destructible in dynamic destruction demo

--- demo/DynamicDestruction/DynamicDestruction.as
+++ demo/DynamicDestruction/DynamicDestruction.as
@@ -1,4 +1,54 @@
 package {
-
-	//not yet written!
+	//Translation of Destructable class only.
+	//(untested)
+
+	import nape.geom.Vec2;
+	import nape.phys.Body;
+	import nape.geom.MarchingSquares;
+	import nape.geom.GeomPoly;
+	import nape.geom.GeomPolyList;
+	import nape.shape.Polygon;
+
+	public class Destructible {
+		private static const granularity = new Vec2(5,5);
+
+		static public function cut(body:Body, inside:Function):Vector.<Body> {
+			var iso:Function = function(x:Number,y:Number):Number {
+				var p:Vec2 = new Vec2(x,y);
+				return (body.contains(p) && !inside(x,y)) ? -1.0 : 1.0;
+			};
+
+			var npolys:GeomPolyList = MarchingSquares.run(iso, body.bounds, granularity, 8);
+			if(npolys.length==0) return new Vector.<Body>();
+
+			body.shapes.clear();
+			body.position.setxy(0,0);
+			body.rotation = 0;
+
+			if(npolys.length==1) {
+				var qolys:GeomPolyList = npolys.at(0).convex_decomposition();
+				qolys.foreach(function (q:GeomPoly):void {
+					body.shapes.add(new Polygon(q));
+				});
+
+				body.align();
+
+				return null;
+			}else {
+				var ret:Vector.<Body> = new Vector.<Body>();
+
+				npolys.foreach(function (p:GeomPoly):void {
+					var nbody:Body = body.copy();
+					var qolys:GeomPolyList = p.convex_decomposition();
+					qolys.foreach(function (q:GeomPoly):void {
+						nbody.shapes.add(new Polygon(q));
+					});
+					nbody.align();
+					ret.push(nbody);
+				});
+
+				return ret;
+			}
+		}
+	}
 }


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

--- frameworks/projects/framework/src/mx/events/TouchInteractionReason.as
+++ frameworks/projects/framework/src/mx/events/TouchInteractionReason.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-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.events
 {


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

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

 package mx.messaging.management
 {


Added Debug lines

Added Debug lines


Fix: updateExportEnabled throws error called while nothing is selected

--- exporter/src/main/as/flump/export/Exporter.as
+++ exporter/src/main/as/flump/export/Exporter.as
@@ -71,7 +71,7 @@
         });

         function updateExportEnabled (..._) :void {
-            _win.export.enabled = _exportChooser.dir != null &&
+            _win.export.enabled = _exportChooser.dir != null && _libraries.selectionLength > 0 &&
               _libraries.selectedItems.some(function (status :DocStatus, ..._) :Boolean {
                 return status.isValid;
             });


Transferred from the Adobe Open Source Subversion Repository

Revision: 4257
Author:   shodgson@adobe.com
Date:     2008-12-09T00:29:54.102535Z

Log Message:
-----------
Bugs: BLZ-287 - Potential null pointer in MessageAgent set destination method.
      LCDS-522 - Add more configurable reconnect handling for connecting up again over the same channel when there is a connection failure/outage.

QA: Yes
Doc: No
Checkintests Passes: Yes

Details:
* MessageAgent (conceptually an abstract class but that's not supported by ActionScript) now defines a default value for the agentType member used in logging output - fixes BLZ-287.
* ChannelSet now resets to the beginning on its channels upon manual disconnects or otherwise. This fixes the scenario of starting off on streaming or RTMP, loosing connectivity temporarily and then getting stuck on a fallback polling channel. Chances of reconnecting on the preferred channel are better now, and manual disconnects/reconnects if you end up on a fallback channel that you don't want to stick with are now possible.
* Also, updates to Channel to support LCDS-522, and longer-duration reliable messaging reconnects.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/Channel.as
+++ frameworks/projects/rpc/src/mx/messaging/Channel.as
@@ -15,6 +15,7 @@
 import flash.errors.IllegalOperationError;
 import flash.events.EventDispatcher;
 import flash.events.TimerEvent;
+import flash.utils.getDefinitionByName;
 import flash.utils.Timer;

 import mx.collections.ArrayCollection;
@@ -215,7 +216,7 @@
     /**
      *  @private
      *  Indicates whether the Channel was previously connected successfully. Used for pinned reconnect
-     *  attempt before trying failover options.
+     *  attempts before trying failover options.
      */
     private var _previouslyConnected:Boolean;

@@ -224,6 +225,15 @@
 	 *  Primary URI; the initial URI for this channel.
 	 */
 	private var _primaryURI:String
+
+	/**
+     *  @private
+     *  Used for pinned reconnect attempts.
+     */
+    mx_internal var reliableReconnectDuration:int = -1;
+    private var _reliableReconnectBeginTimestamp:Number;
+    private var _reliableReconnectLastTimestamp:Number;
+    private var _reliableReconnectAttempts:int;

     /**
      *  @private
@@ -1289,7 +1299,9 @@
     private function shouldAttemptFailover():Boolean
     {
         return (_shouldBeConnected &&
-               (_previouslyConnected || ((_failoverURIs != null) &&  (_failoverURIs.length > 0))));
+                   (_previouslyConnected ||
+                   (reliableReconnectDuration != -1) ||
+                   ((_failoverURIs != null) &&  (_failoverURIs.length > 0))));
     }

     /**
@@ -1300,15 +1312,58 @@
     {
         var timer:Timer = null;

-        // Special-case retry on current URI.
+        // Potentially enter reliable reconnect loop.
         if (_previouslyConnected)
         {
-            _previouslyConnected = false;
-            setReconnecting(true);
-            timer = new Timer(1, 1);
-            timer.addEventListener(TimerEvent.TIMER, reconnect);
-            timer.start();
-            return; // Exit early - if this fails the remaining failoverURIs will be tried next.
+            _previouslyConnected = false;
+
+            var acs:Class = getDefinitionByName("mx.messaging.AdvancedChannelSet") as Class;
+            var duration:int = -1;
+            if (acs != null)
+            {
+                for each (var channelSet:ChannelSet in channelSets)
+                {
+                    if (channelSet is acs)
+                    {
+                        var d:int = (channelSet as acs)["reliableReconnectDuration"];
+                        if (d > duration)
+                            duration = d;
+                    }
+                }
+            }
+
+            if (duration != -1)
+            {
+                setReconnecting(true);
+                reliableReconnectDuration = duration;
+                _reliableReconnectBeginTimestamp = new Date().valueOf();
+                timer = new Timer(1, 1);
+                timer.addEventListener(TimerEvent.TIMER, reconnect);
+                timer.start();
+                return; // Exit early.
+            }
+        }
+
+        // Potentially continue reliable reconnect loop.
+        if (reliableReconnectDuration != -1)
+        {
+            _reliableReconnectLastTimestamp = new Date().valueOf();
+            var remaining:Number = reliableReconnectDuration - (_reliableReconnectLastTimestamp - _reliableReconnectBeginTimestamp);
+            if (remaining > 0)
+            {
+                // Apply exponential backoff.
+                var delay:int = 1000; // 1 second.
+                delay << ++_reliableReconnectAttempts;
+                if (delay < remaining)
+                {
+                    timer = new Timer(delay, 1);
+                    timer.addEventListener(TimerEvent.TIMER, reconnect);
+                    timer.start();
+                    return; // Exit early.
+                }
+            }
+            // At this point the reliable reconnect duration has been exhausted.
+            reliableReconnectCleanup();
         }

         // General failover handling.
@@ -1366,6 +1421,8 @@
         _connecting = false;

         setReconnecting(false); // Ensure the reconnecting flag is turned off; failover is not being attempted.
+
+        reliableReconnectCleanup();
     }

     /**
@@ -1377,6 +1434,18 @@
     private function reconnect(event:TimerEvent):void
     {
         internalConnect();
+    }
+
+    /**
+     *  @private
+     *  Cleanup following a reliable reconnect attempt.
+     */
+    private function reliableReconnectCleanup():void
+    {
+        reliableReconnectDuration = -1;
+        _reliableReconnectBeginTimestamp = 0;
+        _reliableReconnectLastTimestamp = 0;
+        _reliableReconnectAttempts = 0;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -9782,9 +9782,9 @@
      */
     mx_internal function mapKeycodeForLayoutDirection(
         event:KeyboardEvent,
-        mapUpDown:Boolean=false):int
-    {
-        var keyCode:int = event.keyCode;
+        mapUpDown:Boolean=false):uint
+    {
+        var keyCode:uint = event.keyCode;

         // If rtl layout, left still means left and right still means right so
         // swap the keys to get the correct action.