169 Better var names, code formatting

169 Better var names, code formatting

--- raw/src/org/yellcorp/display/GraphicsShapes.as
+++ raw/src/org/yellcorp/display/GraphicsShapes.as
@@ -9,15 +9,14 @@
     drawDashLine(target:Graphics, fromX:Number, fromY:Number,
                  toX:Number, toY:Number, dashIntervals:Array):void
     {
-        var dx:Number;
-        var dy:Number;
-        var ux:Number;
-        var uy:Number;
-        var cx:Number;
-        var cy:Number;
-        var lineDistance:Number;
+        var deltaX:Number, deltaY:Number,
+            unitX:Number, unitY:Number,
+            currentX:Number, currentY:Number,
+            lineDistance:Number;
+
         var sumDistance:Number = 0;
-        var dash:int = 0;
+
+        var dashIndex:int = 0;

         if (!dashIntervals || dashIntervals.length < 2)
         {
@@ -25,38 +24,39 @@
             target.lineTo(toX, toY);
             return;
         }
-        dx = toX - fromX;
-        dy = toY - fromY;
-        lineDistance = Math.sqrt(dx*dx + dy*dy);
-        ux = dx / lineDistance;
-        uy = dy / lineDistance;
-        cx = fromX;
-        cy = fromY;
-        target.moveTo(cx, cy);
+        deltaX = toX - fromX;
+        deltaY = toY - fromY;
+        lineDistance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
+        unitX = deltaX / lineDistance;
+        unitY = deltaY / lineDistance;
+        currentX = fromX;
+        currentY = fromY;
+        target.moveTo(currentX, currentY);
         while (sumDistance < lineDistance)
         {
-            sumDistance += dashIntervals[dash];
+            sumDistance += dashIntervals[dashIndex];
             if (sumDistance < lineDistance)
             {
-                cx += dashIntervals[dash] * ux;
-                cy += dashIntervals[dash] * uy;
+                currentX += dashIntervals[dashIndex] * unitX;
+                currentY += dashIntervals[dashIndex] * unitY;
             }
             else
             {
-                cx = toX;
-                cy = toY;
-            }
-            if (dash % 2)
-            {
-                target.moveTo(cx, cy);
+                currentX = toX;
+                currentY = toY;
+            }
+            if (dashIndex & 1)
+            {
+                target.moveTo(currentX, currentY);
             }
             else
             {
-                target.lineTo(cx, cy);
-            }
-            if (++dash >= dashIntervals.length)
-            {
-                dash = 0;
+                target.lineTo(currentX, currentY);
+            }
+            dashIndex++;
+            if (dashIndex >= dashIntervals.length)
+            {
+                dashIndex = 0;
             }
         }
     }
@@ -65,7 +65,10 @@
     drawPlus(target:Graphics, centreX:Number, centreY:Number,
              halfWidth:Number, halfHeight:Number = Number.NaN):void
     {
-        if (isNaN(halfHeight)) halfHeight = halfWidth;
+        if (isNaN(halfHeight))
+        {
+            halfHeight = halfWidth;
+        }

         target.moveTo(centreX - halfWidth, centreY);
         target.lineTo(centreX + halfWidth, centreY);
@@ -77,7 +80,10 @@
     drawCross(target:Graphics, centreX:Number, centreY:Number,
               halfWidth:Number, halfHeight:Number = Number.NaN):void
     {
-        if (isNaN(halfHeight)) halfHeight = halfWidth;
+        if (isNaN(halfHeight))
+        {
+            halfHeight = halfWidth;
+        }

         target.moveTo(centreX - halfWidth, centreY - halfHeight);
         target.lineTo(centreX + halfWidth, centreY + halfHeight);
@@ -90,12 +96,10 @@
             radius:Number, startAngle:Number, endAngle:Number,
             drawRadius:Boolean = false, steps:Number = 6):void
     {
-        var halfStepAngle:Number;
         var secant:Number;

-        var currentAngle:Number;
-        var secantAngle:Number;
-        var nextAngle:Number;
+        var halfStepAngle:Number, currentAngle:Number,
+            influenceAngle:Number, nextAngle:Number;

         var i:int;

@@ -117,11 +121,11 @@

         for (i = 0; i < steps; i++)
         {
-            secantAngle = currentAngle + halfStepAngle;
-            nextAngle = secantAngle + halfStepAngle;
-
-            target.curveTo(centreX + Math.cos(secantAngle) * secant,
-                           centreY + Math.sin(secantAngle) * secant,
+            influenceAngle = currentAngle + halfStepAngle;
+            nextAngle = influenceAngle + halfStepAngle;
+
+            target.curveTo(centreX + Math.cos(influenceAngle) * secant,
+                           centreY + Math.sin(influenceAngle) * secant,
                            centreX + Math.cos(nextAngle) * radius,
                            centreY + Math.sin(nextAngle) * radius);

@@ -167,7 +171,10 @@
         var angleStep:Number;

         angleStep = Math.PI * (2 / points);
-        if (isNaN(rotate2)) rotate2 = rotate1 + angleStep * 0.5;
+        if (isNaN(rotate2))
+        {
+            rotate2 = rotate1 + angleStep * 0.5;
+        }

         target.moveTo(centreX + Math.cos(rotate1) * radius1,
                       centreY + Math.sin(rotate1) * radius1);
@@ -193,27 +200,33 @@
               headHalfWidthFactor:Number = Number.NaN,
               closeHead:Boolean = false):void
     {
-        if (isNaN(headHalfWidthFactor)) headHalfWidthFactor = headLengthFactor * 0.5;
+        var deltaX:Number, deltaY:Number, headDeltaX:Number,
+            headDeltaY:Number, headCenterX:Number, headCenterY:Number;
+
+        if (isNaN(headHalfWidthFactor))
+        {
+            headHalfWidthFactor = headLengthFactor * 0.5;
+        }

         target.moveTo(fromX, fromY);
         target.lineTo(toX, toY);

-        var dx:Number = toX - fromX;
-        var dy:Number = toY - fromY;
-
-        var headCenterX:Number = fromX + (1 - headLengthFactor) * dx;
-        var headCenterY:Number = fromY + (1 - headLengthFactor) * dy;
-
-        var headdx:Number = -dy * headHalfWidthFactor;
-        var headdy:Number = dx * headHalfWidthFactor;
-
-        target.moveTo(headCenterX + headdx, headCenterY + headdy);
+        deltaX = toX - fromX;
+        deltaY = toY - fromY;
+
+        headCenterX = fromX + (1 - headLengthFactor) * deltaX;
+        headCenterY = fromY + (1 - headLengthFactor) * deltaY;
+
+        headDeltaX = -deltaY * headHalfWidthFactor;
+        headDeltaY = deltaX * headHalfWidthFactor;
+
+        target.moveTo(headCenterX + headDeltaX, headCenterY + headDeltaY);
         target.lineTo(toX, toY);
-        target.lineTo(headCenterX - headdx, headCenterY - headdy);
+        target.lineTo(headCenterX - headDeltaX, headCenterY - headDeltaY);

         if (closeHead)
         {
-            target.lineTo(headCenterX + headdx, headCenterY + headdy);
+            target.lineTo(headCenterX + headDeltaX, headCenterY + headDeltaY);
         }
     }
 }


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

--- frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridGroupRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridGroupRenderer.as
@@ -0,0 +1,458 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.olapDataGridClasses
+{
+
+import flash.display.DisplayObject;
+import flash.display.InteractiveObject;
+import flash.events.Event;
+import flash.events.MouseEvent;
+import flash.geom.Point;
+import flash.geom.Rectangle;
+import flash.utils.getDefinitionByName;
+
+import mx.controls.OLAPDataGrid;
+import mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
+import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
+import mx.controls.listClasses.BaseListData;
+import mx.controls.listClasses.IDropInListItemRenderer;
+import mx.controls.listClasses.IListItemRenderer;
+import mx.core.IDataRenderer;
+import mx.core.IFlexDisplayObject;
+import mx.core.IToolTip;
+import mx.core.SpriteAsset;
+import mx.core.UIComponent;
+import mx.core.IUITextField;
+import mx.core.UITextField;
+import mx.events.FlexEvent;
+import mx.events.ToolTipEvent;
+
+import mx.olap.IOLAPAxisPosition;
+import mx.olap.IOLAPMember;
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the data property changes.
+ *
+ *
When you use a component as an item renderer,
+ *  the data property contains the data to display.
+ *  You can listen for this event and update the component
+ *  when the data property changes.

+ *
+ *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="dataChange", type="mx.events.FlexEvent")]
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  Text color of a component label.
+ *  The default value is 0x0B333C.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="color", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Color of the component if it is disabled.
+ *  The default value is 0xAAB3B3.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Color of the component if it is disabled.
+ *  The default value is 0xAAB3B3.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="horizontalAlign", type="String", inherit="no")]
+
+
+/**
+ *  The OLAPDataGridGroupRenderer class defines the default item renderer for a group renderer for
+ *  the OLAPDataGrid control. An instance of this class is the default value of the
+ *  OLAPDataGrid.groupItemRenderer property.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPDataGridGroupRenderer extends UIComponent
+       implements IDataRenderer, IDropInListItemRenderer, IListItemRenderer
+{
+	include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function OLAPDataGridGroupRenderer()
+    {
+        super();
+
+        // InteractiveObject variables.
+        mouseEnabled = false;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var listOwner:OLAPDataGrid;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the data property.
+     */
+    private var _data:Object;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the data property as
+     *  defined by the IDataRenderer interface.
+     *
+     *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        _data = value;
+
+        invalidateProperties();
+
+        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+    }
+
+
+    //----------------------------------
+    //  label
+    //----------------------------------
+
+    /**
+     *  The internal UITextField that displays the text in this renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var label:IUITextField;
+
+    //----------------------------------
+    //  listData
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the listData property.
+     */
+    private var _listData: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 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get listData():BaseListData
+    {
+        return _listData;
+    }
+
+    /**
+     *  @private
+     */
+    public function set listData(value:BaseListData):void
+    {
+        _listData = AdvancedDataGridListData(value);
+
+        invalidateProperties();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function createChildren():void
+    {
+        super.createChildren();
+
+        if (!label)
+        {
+            label = IUITextField(createInFontContext(UITextField));
+            label.styleName = this;
+            addChild(DisplayObject(label));
+        }
+
+        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        if (_data)
+        {
+            listOwner = OLAPDataGrid(_listData.owner);
+
+            label.text = _listData.label;
+            label.multiline = listOwner.variableRowHeight;
+            label.wordWrap = listOwner.wordWrap;
+
+            if (_data is AdvancedDataGridColumn)
+                label.wordWrap = listOwner.columnHeaderWordWrap(_data as AdvancedDataGridColumn);
+            else
+                label.wordWrap = listOwner.rowHeaderWordWrap(_data.members[_listData.columnIndex] as IOLAPMember);
+
+            label.multiline = listOwner.variableRowHeight;
+
+            if (listOwner.showDataTips)
+            {
+                if (label.textWidth > label.width ||
+                    listOwner.dataTipFunction != null)
+                {
+                    toolTip = listOwner.itemToDataTip(_data);
+                }
+                else
+                {
+                    toolTip = null;
+                }
+            }
+            else
+            {
+                toolTip = null;
+            }
+        }
+        else
+        {
+            label.text = " ";
+            toolTip = null;
+        }
+
+        invalidateDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function measure():void
+    {
+        super.measure();
+
+        var w:Number = _data ? _listData.indent : 0;
+
+
+        // guarantee that label width isn't zero because it messes up ability to measure
+        if (label.width < 4 || label.height < 4)
+        {
+            label.width = 4;
+            label.height = 16;
+        }
+
+        if (isNaN(explicitWidth))
+        {
+            w += label.getExplicitOrMeasuredWidth();
+            measuredWidth = w;
+        }
+        else
+        {
+            label.width = Math.max(explicitWidth - w, 4);
+        }
+
+        measuredHeight = label.getExplicitOrMeasuredHeight();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        var startx:Number = _data ? _listData.indent : 0;
+
+        var horizontalAlign:String = getStyle("horizontalAlign");
+        if (horizontalAlign == "left")
+        {
+            label.x = startx;
+        }
+        else if (horizontalAlign == "right")
+        {
+            label.x = unscaledWidth - label.width + 2; // 2 for gutter
+        }
+        else
+        {
+            label.x = (unscaledHeight - label.height) / 2 + startx;
+        }
+        label.setActualSize(unscaledWidth - label.x, unscaledHeight);
+
+		//label.x = startx;
+
+        var verticalAlign:String = getStyle("verticalAlign");
+        if (verticalAlign == "top")
+        {
+            label.y = 0;
+        }
+        else if (verticalAlign == "bottom")
+        {
+            label.y = unscaledHeight - label.height + 2; // 2 for gutter
+        }
+        else
+        {
+            label.y = (unscaledHeight - label.height) / 2;
+        }
+
+        var labelColor:Number;
+
+        if (data && parent)
+        {
+            if (!enabled)
+                labelColor = getStyle("disabledColor");
+
+            else if (listOwner.isItemHighlighted(listData.uid))
+                labelColor = getStyle("textRollOverColor");
+
+            else if (listOwner.isItemSelected(listData.uid))
+                labelColor = getStyle("textSelectedColor");
+
+            else
+                labelColor = getStyle("color");
+
+            label.setColor(labelColor);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    mx_internal function getLabel():IUITextField
+    {
+        return label;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function toolTipShowHandler(event:ToolTipEvent):void
+    {
+        var toolTip:IToolTip = event.toolTip;
+		var xPos:int = DisplayObject(systemManager).mouseX + 11;
+        var yPos:int = DisplayObject(systemManager).mouseY + 22;
+        // Calculate global position of label.
+        var pt:Point = new Point(xPos, yPos);
+        pt = DisplayObject(systemManager).localToGlobal(pt);
+        pt = DisplayObject(systemManager.getSandboxRoot()).globalToLocal(pt);
+
+        toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
+
+        var screen:Rectangle = toolTip.screen;
+        var screenRight:Number = screen.x + screen.width;
+        if (toolTip.x + toolTip.width > screenRight)
+            toolTip.move(screenRight - toolTip.width, toolTip.y);
+    }
+}
+
+}


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TransparentNavigationButtonSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.skins.mobile
 {


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

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


add optional material argument for the VertexNormalsDebugController

--- src/aerys/minko/scene/controller/debug/VertexNormalsDebugController.as
+++ src/aerys/minko/scene/controller/debug/VertexNormalsDebugController.as
@@ -14,21 +14,23 @@
 	{
 		private var _vertexNormalMaterial	: Material;

-		public function VertexNormalsDebugController()
+		public function VertexNormalsDebugController(vertexNormalMaterial : Material = null)
 		{
 			super(Mesh);

-			initialize();
+			initialize(vertexNormalMaterial);
 		}

-		private function initialize() : void
+		private function initialize(vertexNormalMaterial : Material) : void
 		{
-			var vertexNormalBasicMaterial : Material = new BasicMaterial({
-				diffuseColor 	: 0xffff007f,
-				blending		: Blending.ALPHA
-			});
-
-			_vertexNormalMaterial = vertexNormalBasicMaterial;
+			_vertexNormalMaterial = vertexNormalMaterial;
+			if (!_vertexNormalMaterial)
+			{
+				_vertexNormalMaterial = new BasicMaterial({
+					diffuseColor 	: 0xffff007f,
+					blending		: Blending.ALPHA
+				});
+			}

 			targetAdded.add(targetAddedHandler);
 			targetRemoved.add(targetRemovedHandler);


Validation tooltip hidden when updating field

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/AttributePresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/AttributePresenter.as
@@ -54,7 +54,7 @@
 		}

 		protected function recordSavedHandler(event:ApplicationEvent):void {
-			activateValidationManager();
+			updateValidationDisplayManager();
 		}

 		protected function updateResponseReceivedHandler(event:ApplicationEvent):void {
@@ -79,9 +79,7 @@

 		protected function fieldUpdatingChangeHandler(event:PropertyChangeEvent):void {
 			_updating = event.newValue;
-			if(_updating) {
-				updateValidationDisplayManager();
-			}
+			updateValidationDisplayManager();
 		}

 		protected function attributeChangeHandler(event:Event):void {
@@ -94,6 +92,7 @@
 				initValidationDisplayManager();
 			}
 			var record:RecordProxy = Application.activeRecord;
+			//to do - set visited=true to all attributes when record is saved
 			var active:Boolean = !_updating && (!isNaN(record.id) || record.saved || (_view.attribute != null && _view.attribute.visited));
 			if(active) {
 				_validationDisplayManager.active = true;
@@ -104,14 +103,5 @@
 			}
 		}

-		protected function activateValidationManager():void {
-			if(_validationDisplayManager == null) {
-				initValidationDisplayManager();
-			}
-			if(! _validationDisplayManager.active) {
-				_validationDisplayManager.active = true;
-				updateValidationDisplayManager();
-			}
-		}
 	}
 }


LayerMold.frames does not crash if numFrames is zero

--- runtime/src/main/as/flump/mold/LayerMold.as
+++ runtime/src/main/as/flump/mold/LayerMold.as
@@ -27,6 +27,7 @@
     }

     public function get frames () :int {
+        if (keyframes.length == 0) return 0;
         const lastKf :KeyframeMold = keyframes[keyframes.length - 1];
         return lastKf.index + lastKf.duration;
     }


Check a parent's skin if component doesn't have one.

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4521 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Component.as
+++ src/laml/display/Component.as
@@ -920,9 +920,16 @@
 		public function set skin(skin:ISkin):void {
 			model.skin = skin;
 		}
-
+
+		// TODO: why do we have to do this?
 		public function get skin():ISkin {
-			return model.skin;
+			if (model.skin) {
+				return model.skin;
+			}
+			else if (parent) {
+				return parent.skin;
+			}
+			return null;
 		}

 		public function set tweenAdapter(tweenAdapter:ITweenAdapter):void {


As3 now has a working WriteEvent test.

As3 now has a working WriteEvent test.

Summary: As3 now has a working WriteEvent test.

Test Plan: This is SpaaaAaAaAaaaaAaAaAaaaaAaAaaRrtaaa!

Reviewers: #devtools_in-progress, zac-playfab

Reviewed By: #devtools_in-progress, zac-playfab

Subscribers: zac-playfab

Maniphest Tasks: T1038

Differential Revision: https://phab.playfabdev.com/D1136

--- targets/actionscript/source/PlayFabApiTests.as
+++ targets/actionscript/source/PlayFabApiTests.as
@@ -62,6 +62,7 @@
             AddTest("LeaderBoard", LeaderBoard);
             AddTest("AccountInfo", AccountInfo);
             AddTest("CloudScript", CloudScript);
+            AddTest("WriteEvent", WriteEvent);

             KickOffTests();
         }
@@ -487,5 +488,30 @@

             FinishTestHandler(new ASyncUnitTestEvent(ASyncUnitTestEvent.FINISH_TEST, ASyncUnitTestEvent.RESULT_PASSED, ""));
 		}
+
+        /// <summary>
+        /// CLIENT API
+        /// Test that the client can publish custom PlayStream events
+        /// </summary>
+        private function WriteEvent() : void
+        {
+            var request:TestForumEventRequest = new TestForumEventRequest();
+            request.EventName = "ForumPostEvent";
+            request.Subject = "My First Post";
+            request.Body = "My is my awesome post.";
+
+            PlayFabClientAPI.WritePlayerEvent(request, Wrap(WriteEventCallback, "WriteEventCallback"), Wrap(Shared_ApiCallFailure, "WriteEventCallback"));
+        }
+        private function WriteEventCallback(result:com.playfab.ClientModels.WriteEventResponse) : void
+        {
+            FinishTestHandler(new ASyncUnitTestEvent(ASyncUnitTestEvent.FINISH_TEST, ASyncUnitTestEvent.RESULT_PASSED, ""));
+        }
     }
 }
+
+import com.playfab.ClientModels.*;
+class TestForumEventRequest extends com.playfab.ClientModels.WriteClientPlayerEventRequest
+{
+    public var Subject:String;
+    public var Body:String;
+}


fix void outline drawing

fix void outline drawing

--- src/battlecode/client/viewer/render/DrawMap.as
+++ src/battlecode/client/viewer/render/DrawMap.as
@@ -134,11 +134,11 @@
                             this.mapCanvas.graphics.moveTo(j * g, i * g);
                             this.mapCanvas.graphics.lineTo(j * g, (i + 1) * g);
                         }
-                        if (i < getMapHeight() - 1 && terrain[i+1][j].getType() == TerrainTile.LAND) {
+                        if (i < map.getHeight() - 1 && terrain[i+1][j].getType() == TerrainTile.LAND) {
                             this.mapCanvas.graphics.moveTo(j * g, (i + 1) * g);
                             this.mapCanvas.graphics.lineTo((j + 1) * g, (i + 1) * g);
                         }
-                        if (j < getMapWidth() - 1 && terrain[i][j+1].getType() == TerrainTile.LAND) {
+                        if (j < map.getWidth() - 1 && terrain[i][j+1].getType() == TerrainTile.LAND) {
                             this.mapCanvas.graphics.moveTo((j + 1) * g, i * g);
                             this.mapCanvas.graphics.lineTo((j + 1) * g, (i + 1) * g);
                         }


dynamically map hls params to hls settings related to #253

--- src/org/mangui/hls/utils/Params2Settings.as
+++ src/org/mangui/hls/utils/Params2Settings.as
@@ -4,12 +4,13 @@
  package org.mangui.hls.utils {
     import org.mangui.hls.HLSSettings;

+    import flash.utils.describeType;
+    import flash.utils.Dictionary;
+    import flash.utils.getDefinitionByName;
     import flash.utils.getQualifiedClassName;
-    import flash.utils.getDefinitionByName;
-    import flash.utils.Dictionary;

     /**
-     * Params2Settings is an helper class that holds every legal external params names
+     * Params2Settings is an helper class that holds every legal external params names
      * which can be used to customize HLSSettings and maps them to the relevant HLSSettings values
      */
     public class Params2Settings {
@@ -17,27 +18,34 @@
          * HLSSettings <-> params maping
          */
         private static var _paramMap : Dictionary = new Dictionary();
-        _paramMap["minbufferlength"] = "minBufferLength";
-        _paramMap["maxbufferlength"] = "maxBufferLength";
-        _paramMap["maxbackbufferlength"] = "maxBackBufferLength";
-        _paramMap["lowbufferlength"] = "lowBufferLength";
-        _paramMap["seekmode"] = "seekMode";
-        _paramMap["startfromlevel"] = "startFromLevel";
-        _paramMap["seekfromlevel"] = "seekFromLevel";
-        _paramMap["live_flushurlcache"] = "flushLiveURLCache";
-        _paramMap["manifestloadmaxretry"] = "manifestLoadMaxRetry";
-        _paramMap["manifestloadmaxretrytimeout"] = "manifestLoadMaxRetryTimeout";
-        _paramMap["fragmentloadmaxretry"] = "fragmentLoadMaxRetry";
-        _paramMap["fragmentloadmaxretrytimeout"] = "fragmentLoadMaxRetryTimeout";
-        _paramMap["fragmentloadskipaftermaxretry"] = "fragmentLoadSkipAfterMaxRetry";
-        _paramMap["capleveltostage"] = "capLevelToStage";
-        _paramMap["maxlevelcappingmode"] = "maxLevelCappingMode";
-        _paramMap["usehardwarevideodecoder"] = "useHardwareVideoDecoder";
-        _paramMap["info"] = "logInfo";
-        _paramMap["debug"] = "logDebug";
-        _paramMap["debug2"] = "logDebug2";
-        _paramMap["warn"] = "logWarn";
-        _paramMap["error"] = "logError";
+
+        // static initializer
+        {
+            _initParams();
+        }
+
+
+        /* build map between param name and HLSSettings property
+            this is done by enumerating properties : http://stackoverflow.com/questions/13294997/as3-iterating-through-class-variables
+        */
+        private static function _initParams() : void {
+            var description:XML = describeType(HLSSettings);
+            var variables:XMLList = description..variable;
+            for each(var variable:XML in variables) {
+                var name : String = variable.@name;
+                var param : String;
+                if(name.indexOf("log") == 0) {
+                    // loggers params don't need prefix
+                    param = name.substr(3);
+                } else {
+                    param = name;
+                }
+                // for historical (bad ?) reasons, param names are lowercase
+                param = param.toLowerCase();
+                _paramMap[param] = name;
+            }
+        }
+
         public static function set(key : String, value : Object) : void {
             var param : String = _paramMap[key];
             if (param) {


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

--- frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as
+++ frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Remove "uncaught error" notice.

Remove "uncaught error" notice.

--- src/stdio/StandardProcess.as
+++ src/stdio/StandardProcess.as
@@ -182,7 +182,7 @@
       if (error is UncaughtErrorEvent) {
         UncaughtErrorEvent(error).preventDefault()
         handle(UncaughtErrorEvent(error).error)
-        die("run-swf: uncaught error")
+        exit(-1)
       } else if (error is Error) {
         // Important: Avoid the `Error(x)` casting syntax.
         http_post("/error", (error as Error).getStackTrace())


Add UNLOAD.

Add UNLOAD.

--- tamarin-central/thane/flash/events/Event.as
+++ tamarin-central/thane/flash/events/Event.as
@@ -5,6 +5,7 @@
     public static const CONNECT :String = "connect";
     public static const CLOSE :String = "close";
     public static const COMPLETE:String = "complete";
+    public static const UNLOAD:String = "unload";

     public function Event (type :String, bubbles :Boolean = false, cancelable :Boolean = false)
     {


Defer loading of ui until after 1 frame

Defer loading of ui until after 1 frame

--- Bin/Data/Scripts/Editor.as
+++ Bin/Data/Scripts/Editor.as
@@ -33,7 +33,9 @@
         return;
     }

-    SubscribeToEvent("Update", "HandleUpdate");
+    // Use the first frame to setup when the resolution is initialized
+    SubscribeToEvent("Update", "FirstFrame");
+
     SubscribeToEvent(input, "ExitRequested", "HandleExitRequested");

     // Disable Editor auto exit, check first if it is OK to exit
@@ -49,6 +51,10 @@
     // Use system clipboard to allow transport of text in & out from the editor
     ui.useSystemClipboard = true;

+}
+
+void FirstFrame()
+{
     // Create root scene node
     CreateScene();
     // Load editor settings and preferences
@@ -59,6 +65,8 @@
     CreateRootUIElement();
     // Load the initial scene if provided
     ParseArguments();
+    // Switch to real frame handler after initialization
+    SubscribeToEvent("Update", "HandleUpdate");
 }

 void Stop()


Made getOccupantNamed utility function public so that applications that wrap a Room can utilize it to retrieve occupants based on nickname (RoomEvent only gives nickname, it does not give RoomOccupant).

--- src/org/igniterealtime/xiff/conference/Room.as
+++ src/org/igniterealtime/xiff/conference/Room.as
@@ -707,7 +707,7 @@
 		 * @param	inName
 		 * @return
 		 */
-		private function getOccupantNamed( inName:String ):RoomOccupant
+		public function getOccupantNamed( inName:String ):RoomOccupant
 		{
 			for each ( var occ:RoomOccupant in this )
 			{
@@ -752,6 +752,7 @@
 								if ( !userexts || userexts.length == 0 || !( userexts[ 0 ].hasStatusCode( 100 )))
 								{
 									roomEvent = new RoomEvent( RoomEvent.GROUP_MESSAGE );
+									roomEvent.nickname = msg.from.resource;
 									roomEvent.data = msg;
 									dispatchEvent( roomEvent );
 								}


Cleanup of FlexUnitCIPrinter.

Cleanup of FlexUnitCIPrinter.

--- asunit-4.0/src/asunit/printers/FlexUnitCIPrinter.as
+++ asunit-4.0/src/asunit/printers/FlexUnitCIPrinter.as
@@ -17,196 +17,166 @@
 	import flash.system.fscommand;
 	import flash.utils.Timer;
 	import flash.utils.getQualifiedClassName;
-	import flash.utils.getTimer;
-
-	public class FlexUnitCIPrinter extends EventDispatcher implements IRunListener, TestObserver
-	{
-		protected static const DEFAULT_SERVER:String = "127.0.0.1";
-		protected static const DEFAULT_PORT:uint = 1024;
-
-		public var port:uint;
-		public var server:String; //this is local host. same machine
-
-		private static const SUCCESS:String = "success";
-		private static const ERROR:String = "error";
-		private static const FAILURE:String = "failure";
-		private static const IGNORE:String = "ignore";
-
-		private var _ready:Boolean = false;
-
-		private static const START_OF_TEST_RUN_ACK : String = "<startOfTestRunAck/>";
-		private static const END_OF_TEST_ACK : String ="<endOfTestRunAck/>";
-		private static const END_OF_TEST_RUN : String = "<endOfTestRun/>";
-
-		private var socket:XMLSocket;
-		private var connectTimeout:Timer;
-
-		protected var messageQueue:Array;
+	import flash.utils.getTimer;
+
+	public class FlexUnitCIPrinter extends EventDispatcher implements IRunListener
+	{
+		protected static const DEFAULT_SERVER:String = "127.0.0.1";
+		protected static const DEFAULT_PORT:uint = 1024;
+
+		public var port:uint;
+		public var server:String; //this is local host. same machine
+
+		private static const SUCCESS:String = "success";
+		private static const ERROR:String = "error";
+		private static const FAILURE:String = "failure";
+		private static const IGNORE:String = "ignore";
+
+		private static const START_OF_TEST_RUN_ACK : String = "<startOfTestRunAck/>";
+		private static const END_OF_TEST_ACK : String ="<endOfTestRunAck/>";
+		private static const END_OF_TEST_RUN : String = "<endOfTestRun/>";
+
+		private var socket:XMLSocket;
+		private var connectTimeout:Timer;
+
+		protected var messageQueue:Array;

 		private var startTime : int;
-
-		public function FlexUnitCIPrinter()
-		{
-			this.port = port;
-			this.server = server;
-			messageQueue = [];
-
-			socket = new XMLSocket();
-			socket.addEventListener(Event.CONNECT, onConnect);
-			socket.addEventListener(DataEvent.DATA, onData);
-			socket.addEventListener(IOErrorEvent.IO_ERROR, onErrorEvent);
-			socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onErrorEvent);
-   	   		socket.addEventListener(Event.CLOSE, onErrorEvent);
-
-			connectTimeout = new Timer(5000, 1);
-			connectTimeout.addEventListener(TimerEvent.TIMER_COMPLETE, onConnectTimeout);
-			connectTimeout.start();
-
-			connect();
-		}
-
-		protected function connect(ip:String = DEFAULT_SERVER, port:uint = DEFAULT_PORT):void {
-   	   		try {
-   	   			socket.connect(ip, port);
-   	   		}
-			catch (e:Error) {
-   	   			trace('## Error connecting to socket: ' + e.message);
-   	   		}
-		}
-
-		private function onConnectTimeout(event:TimerEvent):void {
-			throw new Error('Timed out waiting to connect to socket.');
-		}
-
-		[Bindable(event="listenerReady")]
-		public function get ready():Boolean
-		{
-			return _ready;
-		}
-
-		public function onTestIgnored(method:Method):void {
-			var xmlMessageIgnore:String = "<testcase classname='" + getQualifiedClassName(method.scope)
-				+ "' name='" + method.name + "' status='"+IGNORE+"'>"
-				+ "<skipped />"
-				+ "</testcase>";
-			sendMessage(xmlMessageIgnore);
-		}
-
-		protected static function xmlEscapeMessage(message:String):String {
-			if (!message) return '';
-
-			var escape:XML = <escape/>;
-			escape.setChildren( message );
-			return escape.children()[0].toXMLString();
-		}
-
-		public function onTestFailure(failure:ITestFailure):void {
-			sendMessage(getFailureMessage(failure));
-		}
-
+
+		public function FlexUnitCIPrinter()
+		{
+			this.port = port;
+			this.server = server;
+			messageQueue = [];
+
+			socket = new XMLSocket();
+			socket.addEventListener(Event.CONNECT, onConnect);
+			socket.addEventListener(DataEvent.DATA, onData);
+			socket.addEventListener(IOErrorEvent.IO_ERROR, onErrorEvent);
+			socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onErrorEvent);
+   	   		socket.addEventListener(Event.CLOSE, onErrorEvent);
+
+			connectTimeout = new Timer(5000, 1);
+			connectTimeout.addEventListener(TimerEvent.TIMER_COMPLETE, onConnectTimeout);
+			connectTimeout.start();
+
+			connect();
+		}
+
+		protected function connect(ip:String = DEFAULT_SERVER, port:uint = DEFAULT_PORT):void {
+   	   		try {
+   	   			socket.connect(ip, port);
+   	   		}
+			catch (e:Error) {
+   	   			trace('## Error connecting to socket: ' + e.message);
+   	   		}
+		}
+
+		private function onConnectTimeout(event:TimerEvent):void {
+			throw new Error('Timed out waiting to connect to socket.');
+		}
+
+		public function onTestIgnored(method:Method):void {
+			var xmlMessageIgnore:String = "<testcase classname='" + getQualifiedClassName(method.scope)
+				+ "' name='" + method.name + "' status='"+IGNORE+"'>"
+				+ "<skipped />"
+				+ "</testcase>";
+			sendMessage(xmlMessageIgnore);
+		}
+
+		protected static function xmlEscapeMessage(message:String):String {
+			if (!message) return '';
+
+			var escape:XML = <escape/>;
+			escape.setChildren( message );
+			return escape.children()[0].toXMLString();
+		}
+
+		public function onTestFailure(failure:ITestFailure):void {
+			sendMessage(getFailureMessage(failure));
+		}
+
 		protected function getFailureMessage(failure:ITestFailure):String {
-			var status:String = failure.isFailure ? FAILURE : ERROR;
-//			var stackTrace:String = xmlEscapeMessage(failure.thrownException.getStackTrace());
-			var stackTrace:String = failure.thrownException.getStackTrace();
-			var xml:String =
-				"<testcase classname='" + getQualifiedClassName(failure.failedTest)
-				+ "' name='" + failure.failedMethod
-				+ "' time='0.000' status='" + status + "'>"
-
-					+ "<error message='" + xmlEscapeMessage(failure.exceptionMessage)
-					+ "' type='"+ getQualifiedClassName(failure.thrownException) +"' >"
-						+ "<![CDATA[" + stackTrace + "]]>"
-					+ "</error>"
-
-				+ "</testcase>";
-
-			return xml;
-		}
-
-		protected function sendMessage(message:String):void {
-			if (!socket.connected) {
-				messageQueue.push(message);
-				return;
-			}
-			socket.send(message);
-			trace('+++++++++ sendMessage() - \n' + message + '\n');
-		}
-
-//		protected function sendResults(msg:String):void
-//		{
-//			if(socket.connected)
-//			{
-//				socket.send( msg );
-//			}
-//
-//			trace(msg);
-//		}
-
-		protected function onConnect(event:Event):void {
-			connectTimeout.stop();
-			sendQueuedMessages();
-		}
-
-		protected function sendQueuedMessages():void {
-			while (messageQueue.length) {
-				sendMessage(messageQueue.shift());
-			}
-		}
-
-		private function onData( event : DataEvent ) : void
-		{
-			trace('onData: ' + event.data);
-
-//			// If we received an acknowledgement on startup, the java server is ready and we can start sending.
-//			if ( data == START_OF_TEST_RUN_ACK ) {
-//				setStatusReady();
-//			} else
-
-			if (event.data == END_OF_TEST_ACK) {
-				// If we received an acknowledgement finish-up.
-				exit();
-			}
-		}
-
-		protected function onErrorEvent(event:Event):void {
-			trace('FlexUnitCIPrinter::onErrorEvent() - event: ' + event);
-			//throw new Error('FlashBuilderPrinter::onErrorEvent() - event: ' + event);
-		}
-
-		public function onRunStarted():void {
-		}
-
-        public function onTestStarted(test:Object):void {
-            startTime = getTimer();
-        }
-
-        public function onTestCompleted(test:Object):void {
-//            testTimes.push({test:test, duration:duration});
-        }
-
-		public function onTestSuccess(success:ITestSuccess):void
-		{
-			//TODO: move test time into ITestSuccess
-            var duration:Number = (getTimer() - startTime) / 1000;
-			var xmlMessageSuccess:String = "<testcase classname='" + getQualifiedClassName(success.test)
-				+ "' name='" + success.method + "' time='0.000' status='"+SUCCESS+"'/>";
-			sendMessage(xmlMessageSuccess);
-		}
-
+			var status:String = failure.isFailure ? FAILURE : ERROR;
+//			var stackTrace:String = xmlEscapeMessage(failure.thrownException.getStackTrace());
+			var stackTrace:String = failure.thrownException.getStackTrace();
+			var xml:String =
+				"<testcase classname='" + getQualifiedClassName(failure.failedTest)
+				+ "' name='" + failure.failedMethod
+				+ "' time='0.000' status='" + status + "'>"
+
+					+ "<error message='" + xmlEscapeMessage(failure.exceptionMessage)
+					+ "' type='"+ getQualifiedClassName(failure.thrownException) +"' >"
+						+ "<![CDATA[" + stackTrace + "]]>"
+					+ "</error>"
+
+				+ "</testcase>";
+
+			return xml;
+		}
+
+		protected function sendMessage(message:String):void {
+			if (!socket.connected) {
+				messageQueue.push(message);
+				return;
+			}
+			socket.send(message);
+		}
+
+		protected function onConnect(event:Event):void {
+			connectTimeout.stop();
+			sendQueuedMessages();
+		}
+
+		protected function sendQueuedMessages():void {
+			while (messageQueue.length) {
+				sendMessage(messageQueue.shift());
+			}
+		}
+
+		private function onData( event : DataEvent ) : void
+		{
+			if (event.data == END_OF_TEST_ACK) {
+				exit();
+			}
+		}
+
+		protected function onErrorEvent(event:Event):void {
+			trace('FlexUnitCIPrinter::onErrorEvent() - event: ' + event);
+			//throw new Error('FlashBuilderPrinter::onErrorEvent() - event: ' + event);
+		}
+
+		public function onRunStarted():void {
+		}
+
+        public function onTestStarted(test:Object):void {
+            startTime = getTimer();
+        }
+
+        public function onTestCompleted(test:Object):void {
+//            testTimes.push({test:test, duration:duration});
+        }
+
+		public function onTestSuccess(success:ITestSuccess):void
+		{
+			//TODO: move test time into ITestSuccess
+            var duration:Number = (getTimer() - startTime) / 1000;
+			var xmlMessageSuccess:String = "<testcase classname='" + getQualifiedClassName(success.test)
+				+ "' name='" + success.method + "' time='0.000' status='"+SUCCESS+"'/>";
+			sendMessage(xmlMessageSuccess);
+		}
+
 		public function onRunCompleted(result:IResult):void {
-			sendMessage(END_OF_TEST_RUN);
-		}
-
-		/**
-		 * Exit the test runner by calling the ApplicationCloser.
-		 */
-		protected function exit():void
-		{
-			socket.close();
+			sendMessage(END_OF_TEST_RUN);
+		}
+
+		protected function exit():void
+		{
+			socket.close();
 			fscommand("quit");
 		}

-		public function onWarning(warning : ITestWarning) : void {
+		public function onWarning(warning:ITestWarning) : void {
 		}
-	}
-}
+	}
+}


No longer add playlist header tags to the tag_list of the first fragment on the FRAGMENT_PLAYING event

--- src/org/mangui/hls/playlist/Manifest.as
+++ src/org/mangui/hls/playlist/Manifest.as
@@ -19,6 +19,8 @@
         public static const FRAGMENT : String = '#EXTINF:';
         /** Header tag that must be at the first line. **/
         public static const HEADER : String = '#EXTM3U';
+        /** Version of the playlist file. **/
+        public static const VERSION : String = '#EXT-X-VERSION'
         /** Starttag for a level. **/
         public static const LEVEL : String = '#EXT-X-STREAM-INF:';
         /** Tag that delimits the end of a playlist. **/
@@ -140,12 +142,16 @@
                 if (line.length <= 1) {
                     continue;
                 }
+
+                // discard tags pertaining to a playlist and not a fragment, that require no further processing
+                if (line.indexOf(HEADER) == 0 || line.indexOf(TARGETDURATION) == 0 || line.indexOf(VERSION) == 0) {
+                    continue;
+                }
+
                 if (line.indexOf(SEQNUM) == 0) {
                     seqnum = parseInt(line.substr(SEQNUM.length));
-                    tags.push(line);
                 } else if (line.indexOf(DISCONTINUITY_SEQ) == 0) {
                     continuity_index = parseInt(line.substr(DISCONTINUITY_SEQ.length));
-                    tags.push(line);
                 } else if (line.indexOf(BYTERANGE) == 0) {
                     var params : Array = line.substr(BYTERANGE.length).split('@');
                     if (params.length == 1) {
@@ -154,7 +160,7 @@
                         byterange_start_offset = parseInt(params[1]);
                     }
                     byterange_end_offset = parseInt(params[0]) + byterange_start_offset;
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (line.indexOf(KEY) == 0) {
                     // #EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=52",IV=.....
                     var keyLine : String = line.substr(KEY.length);
@@ -213,7 +219,7 @@
                                 break;
                         }
                     }
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (line.indexOf(PROGRAMDATETIME) == 0) {
                     // CONFIG::LOGGING {
                     // Log.info(line);
@@ -227,18 +233,18 @@
                     // month should be from 0 (January) to 11 (December).
                     program_date = new Date(year, (month - 1), day, hour, minutes, seconds).getTime();
                     program_date_defined = true;
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (line.indexOf(DISCONTINUITY) == 0) {
                     continuity_index++;
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (line.indexOf(FRAGMENT) == 0) {
                     var comma_position : int = line.indexOf(',');
                     var duration : Number = (comma_position == -1) ? parseFloat(line.substr(FRAGMENT.length)) : parseFloat(line.substr(FRAGMENT.length, comma_position - FRAGMENT.length));
                     extinf_found = true;
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (line.indexOf('#') == 0) {
                     // unsupported/custom tags, store them
-                    tags.push(line);
+                    tag_list.push(line);
                 } else if (extinf_found == true) {
                     var url : String = _extractURL(line, base);
                     var fragment_decrypt_iv : ByteArray;


Fountains are only creatable for item locations

--- flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
+++ flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
@@ -87,6 +87,7 @@
 		errorText.text = placeMark.errorText;
 		qrCode.text = placeMark.qrCode;
 		qrImage.addEventListener(MouseEvent.CLICK, handleQRImageClick);
+		if(this.placeMark.contentType != AppConstants.CONTENTTYPE_ITEM_VAL) this.fountainPopupButton.visible = false;
 		if(placeMark.isFountain) this.fountainPopupButton.label = "Edit Fountain Settings";


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

--- frameworks/projects/automation/src/mx/automation/events/EventDetails.as
+++ frameworks/projects/automation/src/mx/automation/events/EventDetails.as
@@ -1,14 +1,22 @@
-
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
 //
 ////////////////////////////////////////////////////////////////////////////////
+

 package mx.automation.events
 {


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

--- frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as
+++ frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.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.collections
 {
 import mx.collections.IList;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</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/framework/src/mx/controls/HSlider.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/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.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/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -382,6 +382,8 @@
 [AccessibilityClass(implementation="mx.accessibility.PanelAccImpl")]

 [IconFile("Panel.png")]
+
+[Alternative(replacement="spark.components.Panel", since="4.0")]

 /**
  *  A Halo Panel container consists of a title bar, a caption, a border,


qnd: support in pauseAfterPreSequence flashvar

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@85862 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- kdp3Lib/src/com/kaltura/kdpfl/controller/media/PreSequenceEndCommand.as
+++ kdp3Lib/src/com/kaltura/kdpfl/controller/media/PreSequenceEndCommand.as
@@ -1,8 +1,11 @@
 package com.kaltura.kdpfl.controller.media
 {
+	import com.kaltura.kdpfl.model.ConfigProxy;
 	import com.kaltura.kdpfl.model.MediaProxy;
 	import com.kaltura.kdpfl.model.SequenceProxy;
 	import com.kaltura.kdpfl.model.type.NotificationType;
+	import com.kaltura.kdpfl.view.media.KMediaPlayer;
+	import com.kaltura.kdpfl.view.media.KMediaPlayerMediator;

 	import org.puremvc.as3.interfaces.INotification;
 	import org.puremvc.as3.patterns.command.SimpleCommand;
@@ -20,8 +23,20 @@
 			sequenceProxy.vo.isInSequence = false;
 			sequenceProxy.vo.preCurrentIndex = -1;
 			sequenceProxy.vo.preSequenceComplete = true;
-			var mediaProxy : MediaProxy = facade.retrieveProxy(MediaProxy.NAME) as MediaProxy;
-			sendNotification(NotificationType.DO_PLAY);
+			var flashvars:Object = (facade.retrieveProxy( ConfigProxy.NAME ) as ConfigProxy).vo.flashvars;
+			if (!flashvars.pauseAfterPreSequence || flashvars.pauseAfterPreSequence=="false")
+			{
+				sendNotification(NotificationType.DO_PLAY);
+			}
+			else
+			{
+				sendNotification(NotificationType.DO_PAUSE);
+				var mediaMediator:KMediaPlayerMediator = facade.retrieveMediator(KMediaPlayerMediator.NAME) as KMediaPlayerMediator;
+				mediaMediator.cleanMedia();
+				//reset timer
+				sendNotification(NotificationType.PLAYER_UPDATE_PLAYHEAD, 0);
+				mediaMediator.kMediaPlayer.showThumbnail();
+			}

 		}
 	}


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

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

 package mx.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10006
Author:   gruehle@adobe.com
Date:     2009-09-03T22:04:47.081899Z

Log Message:
-----------
Initial checkin of the "More styles for Spark skins" feature. Details here:
http://opensource.adobe.com/wiki/display/flexsdk/More+Styles+for+Spark+Skins

There are some known issues:
* Panel bottom corners not rounded correctly when the panel has a control bar
* cornerRadius on Tab and DateChooser non functional
* cornerRadius values > 4 have drawing artifacts in the "down" state of Button and button-like components
* TextInput/TextArea incorrectly list lineBreak and verticalAlign as valid styles

This checkin also includes a couple minor unrelated bug fixes:
* Remove MiniDebugTarget. This is a logging target that used MiniDebug, which hasn't worked since Flex 1.5
* Fix RTEs when setting focusSkin to null
* Optimization: don't measure skins if the host component has explicit sizes

QE notes: Yes, many baseline images will need to be regenerated
Doc notes: New ASDoc comments should be scrubbed
Bugs: SDK-22931, SDK-22798, SDK-22217, SDK-19358
Reviewer: Jason
Tests run: checkintests, cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PopUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarLastButtonSkin.mxml</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/controls/NumericStepper.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/targets/MiniDebugTarget.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/airframework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerDecrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/EditableComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarLastButtonSkin.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/SparkSkinForHalo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/TextInputBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SpinnerIncrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/halo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</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/skins/spark/NumericStepperTextInputSkin.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/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/BorderTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -60,6 +60,28 @@
 //--------------------------------------
 //  Styles
 //--------------------------------------
+
+/**
+ *  The background color of the application. This color is used as the stage color for the
+ *  application and the background color for the HTML embed tag.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundColor", type="uint", format="Color", inherit="no")]
+
+/**
+ *  The background color of the application. This color is used as the stage color for the
+ *  application and the background color for the HTML embed tag.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundAlpha", type="Number", inherit="no")]

 /**
  *  Provides a margin of error around a window's border so a resize
@@ -1034,44 +1056,6 @@
     }

     //----------------------------------
-    //  backgroundColor
-    //----------------------------------
-
-    private var _backgroundColor:uint = 0xFFFFFF;
-
-    [Inspectable(category="General", format="Color", defaultValue="0xFFFFFF")]
-    [Bindable("backgroundColorUpdated")]
-
-    /**
-     *  Background color of a component.
-     *  This property specifies the background color, both while the application
-     *  loads, and while it is running.
-     *
-     *  @default 0xFFFFFF
-     *
-     *  @langversion 3.0
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get backgroundColor():uint
-    {
-        return _backgroundColor;
-    }
-
-    /**
-     * @private
-     */
-    public function set backgroundColor(value:uint):void
-    {
-        if (value == _backgroundColor)
-            return;
-
-        _backgroundColor = value;
-
-        dispatchEvent(new Event("backgroundColorUpdated"));
-    }
-
-    //----------------------------------
     //  bounds
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 14354
Author:   jimurphy@adobe.com
Date:     2010-02-23T15:05:48.761194Z

Log Message:
-----------
resetting the build number in version.as
The build automated process checked it in as 4.5.0.13964 when it should have been 4.5.0.0

QE notes: no
Doc notes: no
Bugs: https://bugs.adobe.com/jira/browse/SDK-25489
Reviewer: no
Tests run: ran version test included in the bug
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

--- frameworks/projects/automation_spark/src/mx/core/Version.as
+++ frameworks/projects/automation_spark/src/mx/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.5.0.13964";
+mx_internal static const VERSION:String = "4.5.0.0";


Transferred from the Adobe Open Source Subversion Repository

Revision: 9446
Author:   clucier@adobe.com
Date:     2009-08-21T14:19:02.117197Z

Log Message:
-----------
Just a small ASDoc tweak.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -216,7 +216,8 @@
      *
      *
This property should not be set within MXML directly.

      *
-     *
The layer property is not used for z-order control

+     *
The layer property is not used for z-order control,
+     *  please see depth.

      *
      *  @see #depth
      *  @default null


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -9,11 +9,11 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.states
+package mx.states
 {
 import flash.display.DisplayObject;
-import flex.component.ItemsComponent;
-import flex.core.Group;
+import mx.components.FxItemsComponent;
+import mx.components.Group;
 import mx.collections.ArrayCollection;
 import mx.collections.ArrayList;
 import mx.core.Container;
@@ -381,7 +381,7 @@
                 break;
         }

-        if ( (propertyName == null || propertyName == "content") && (dest is Group || dest is ItemsComponent))
+        if ( (propertyName == null || propertyName == "content") && (dest is Group || dest is FxItemsComponent))
         {
             addItemsToContentHolder(dest, localItems);
         }
@@ -421,7 +421,7 @@
         else
             localItems = [items];

-        if ((propertyName == null || propertyName == "content") && (dest is Group || dest is ItemsComponent))
+        if ((propertyName == null || propertyName == "content") && (dest is Group || dest is FxItemsComponent))
         {
             for (i = 0; i < numAdded; i++)
                 dest.removeItemAt(startIndex);
@@ -462,7 +462,7 @@
     {
         try
         {
-            if (propertyName == null && (dest is Group || dest is ItemsComponent))
+            if (propertyName == null && (dest is Group || dest is FxItemsComponent))
                 return dest.getItemIndex(object);

             if (propertyName == null && dest is Container)


Transferred from the Adobe Open Source Subversion Repository

Revision: 17058
Author:   hmuller@adobe.com
Date:     2010-07-26T15:36:53.685628Z

Log Message:
-----------
Final PARB changes: added GridEvent constructor relatedObject argument, IGrid no longer extends IItemRenderer.

Added GridLayout overrides of getElementBounds() and getElementBounds{Above,Below,LeftOf,RightOf}ScrollRect().   Removed override of getScrollPositionDeltaToElementHelper().

Added temporary performanace statistics gathering code to GridLayout.  See the performanceStatistics property.

Added GridLayout/dataProviderCollectionReset() for reset and refresh collection events: clears all internal cached layout state.

Inhibit Grid/invalidateDisplayList() calls during virtual grid layout to gain a little (< 3%) performance.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridContainerBase.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridEvent.as
+++ frameworks/projects/spark/src/spark/events/GridEvent.as
@@ -11,10 +11,12 @@

 package spark.events
 {
+import flash.display.InteractiveObject;
 import flash.events.Event;
 import flash.events.MouseEvent;

 import mx.core.IVisualElement;
+
 import spark.components.supportClasses.GridColumn;

 /**
@@ -169,9 +171,9 @@
      *
      *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
      *
-     *  @param gridX The event's x coordinate relative to grid; used to initialize the localX property.
-     *
-     *  @param gridY The event's y coordinate relative to grid; used to initialize the localY property.
+     *  @param localX The event's x coordinate relative to grid.
+     *
+     *  @param localY The event's y coordinate relative to grid.
      *
      *  @param rowIndex The index of the row where the event occurred, or -1.
      *
@@ -179,7 +181,9 @@
      *
      *  @param column The column where the event occurred or null.
      *
-     *  @param item The dataProvider item at rowIndex
+     *  @param item The dataProvider item at rowIndex.
+     *
+     *  @param relatedObject The relatedObject property of the MouseEvent that triggered this GridEvent.
      *
      *  @param itemRenderer The visible item renderer where the event occurred or null.
      *
@@ -202,21 +206,22 @@
         type:String,
         bubbles:Boolean = false,
         cancelable:Boolean = false,
-        gridX:Number = NaN,
-        gridY:Number = NaN,
+        localX:Number = NaN,
+        localY:Number = NaN,
         rowIndex:int = -1,
         columnIndex:int = -1,
         column:GridColumn = null,
         item:Object = null,
         itemRenderer:IVisualElement = null,
+        relatedObject:InteractiveObject = null,
         ctrlKey:Boolean = false,
         altKey:Boolean = false,
         shiftKey:Boolean = false,
         buttonDown:Boolean = false,
         delta:int = 0)
     {
-        super(type, bubbles, cancelable, gridX, gridY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
-
+        super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
+
         this.rowIndex = rowIndex;
         this.columnIndex = columnIndex;
         this.column = column;
@@ -321,7 +326,7 @@
     {
         var cloneEvent:GridEvent = new GridEvent(type, bubbles, cancelable,
             localX, localY, rowIndex, columnIndex, column, item, itemRenderer,
-            ctrlKey, altKey, shiftKey, buttonDown, delta);
+            relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);

         cloneEvent.relatedObject = this.relatedObject;


Brought up to date and made easier to subclass.

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

--- src/as/com/threerings/ezgame/PlayersDisplay.as
+++ src/as/com/threerings/ezgame/PlayersDisplay.as
@@ -1,5 +1,6 @@
 package com.threerings.ezgame {

+import flash.display.DisplayObject;
 import flash.display.Sprite;

 import flash.text.StyleSheet;
@@ -19,26 +20,90 @@
  * free to copy/modify or extend this class.
  */
 public class PlayersDisplay extends Sprite
-    implements Game
+    implements Game, StateChangedListener
 {
     // implementation of Game method
     public function setGameObject (gameObj :EZGame) :void
     {
         _gameObj = gameObj;
-        _gameObj.addEventListener(StateChangedEvent.TURN_CHANGED, recheckTurn);
-        _gameObj.addEventListener(StateChangedEvent.GAME_ENDED, recheckTurn);

-        setupPlayers();
+        configureInterface();
+    }
+
+    // from StateChangedListener
+    public function stateChanged (event :StateChangedEvent) :void
+    {
+        displayCurrentTurn();
     }

     /**
      * Set up the player labels and configure the look of the entire UI.
      */
-    protected function setupPlayers () :void
+    protected function configureInterface () :void
     {
-        var y :Number = BORDER;
+        var border :int = getBorderSpacing();
+        var pad :int = getInternalSpacing();
+        var y :Number = border;
+        var maxWidth :Number = 0;
+        var label :TextField;
+        var icon :DisplayObject;
+
         // create a label at the top, above the player names
-        var label :TextField = new TextField();
+        label = createHeader();
+        if (label != null) {
+            label.x = border;
+            label.y = y;
+            addChild(label);
+            y += label.textHeight + pad;
+            maxWidth = label.textWidth;
+        }
+
+        // create a label for each player
+        var playerIndex :int = 0;
+        for each (var name :String in _gameObj.getPlayerNames()) {
+            label = createPlayerLabel(playerIndex, name);
+            icon = createPlayerIcon(playerIndex, name);
+            var iconW :int = 0;
+            var iconH :int = 0;
+            if (icon != null) {
+                iconW = icon.width + pad;
+                iconH = icon.height;
+
+                icon.x = border;
+                icon.y = y;
+                addChild(icon);
+            }
+            label.x = border + iconW;
+            label.y = y;
+            addChild(label);
+            y += Math.max(label.textHeight, iconH) + pad;
+            maxWidth = Math.max(maxWidth, iconW + label.textWidth);
+
+            _playerLabels.push(label);
+            playerIndex++;
+        }
+
+        // make all the player labels the same width
+        // (looks nice when highlighted)
+        for each (label in _playerLabels) {
+            label.autoSize = TextFieldAutoSize.NONE;
+            label.width = maxWidth - (label.x - border);
+        }
+
+        // y has a pad at the end, we want border instead
+        y += border - pad;
+
+        // draw a blue rectangle around everything
+        graphics.clear();
+        graphics.lineStyle(1, 0x0000FF);
+        graphics.drawRect(0, 0, maxWidth + (border * 2), y);
+
+        displayCurrentTurn();
+    }
+
+    protected function createHeader () :TextField
+    {
+        var label :TextField = createHeader();
 // damn stylesheet doesn't seem to actually -work-
 //        var style :StyleSheet = new StyleSheet();
 //        style.fontWeight = "bold";
@@ -49,43 +114,40 @@
         label.autoSize = TextFieldAutoSize.LEFT;
         label.selectable = false;
         label.text = "Players";
-        label.x = BORDER;
-        label.y = y;
-        addChild(label);
-        y += label.textHeight;
+        return label;
+    }

-        var maxWidth :Number = label.textWidth;
+    /**
+     * Create a TextArea that will be used to display player names.
+     */
+    protected function createPlayerLabel (idx :int, name :String) :TextField
+    {
+        var label :TextField = new TextField();
+        label.autoSize = TextFieldAutoSize.LEFT;
+        label.background = true;
+        label.selectable = false;
+        label.text = name;
+        return label;
+    }

-        // create a label for each player
-        for each (var name :String in _gameObj.getPlayerNames()) {
-            y += PAD;
-            label = new TextField();
-            label.autoSize = TextFieldAutoSize.LEFT;
-            label.background = true;
-            label.selectable = false;
-            label.text = name;
-            label.x = BORDER;
-            label.y = y;
-            addChild(label);
-            y += label.textHeight;
-            maxWidth = Math.max(maxWidth, label.textWidth);
+    protected function createPlayerIcon (idx :int, name :String) :DisplayObject
+    {
+        return null;
+    }

-            _playerLabels.push(label);
-        }
+    protected function getBackground (isTurn :Boolean) :uint
+    {
+        return isTurn ? 0xFF9999 : 0xFFFFFF;
+    }

-        // make all the player labels the same width
-        // (looks nice when highlighted)
-        for each (label in _playerLabels) {
-            label.autoSize = TextFieldAutoSize.NONE;
-            label.width = maxWidth;
-        }
+    protected function getBorderSpacing () :int
+    {
+        return 6;
+    }

-        // draw a blue rectangle around everything
-        graphics.clear();
-        graphics.lineStyle(1, 0x0000FF);
-        graphics.drawRect(0, 0, maxWidth + (BORDER * 2), y + BORDER);
-
-        displayCurrentTurn();
+    protected function getInternalSpacing () :int
+    {
+        return 2;
     }

     /**
@@ -97,18 +159,8 @@
         var idx :int = _gameObj.isInPlay() ? _gameObj.getTurnHolderIndex() : -1;
         for (var ii :int = 0; ii < _playerLabels.length; ii++) {
             var label :TextField = (_playerLabels[ii] as TextField);
-            label.backgroundColor = (ii == idx) ? TURN_BACKGROUND
-                                                : NORMAL_BACKGROUND;
+            label.backgroundColor = getBackground(ii == idx);
         }
-    }
-
-    /**
-     * Registered to receive TURN_CHANGED and GAME_ENDED events
-     * from the GameObject.
-     */
-    protected function recheckTurn (event :StateChangedEvent) :void
-    {
-        displayCurrentTurn();
     }

     /** Our game object. */
@@ -116,17 +168,5 @@

     /** An array of labels, one for each player name. */
     protected var _playerLabels :Array = [];
-
-    /** The background color for players that doesn't have the turn. */
-    protected static const NORMAL_BACKGROUND :uint = 0xFFFFFF;
-
-    /** The background color for players that do have the turn. */
-    protected static const TURN_BACKGROUND :uint = 0xFF9999;
-
-    /** The number of pixels to border around all the names. */
-    protected static const BORDER :int = 6;
-
-    /** The additional padding inserted between names. */
-    protected static const PAD :int = 2;
 }
 }


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

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


Fix a bug where picking up a fuse from the table that was previously automatically removed due to a replacement would still consider itself in a slot, thus removing the one in place at the moment.


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGridAutomationImpl.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
 package spark.automation.delegates.components
 {
 	import flash.display.DisplayObject;


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

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

 package spark.automation.delegates.components
 {