Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/graphics/Stroke.as
+++ frameworks/projects/framework/src/mx/graphics/Stroke.as
@@ -57,6 +57,11 @@
  *  </pre>
  *
  *  @see flash.display.Graphics
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Stroke extends SolidColorStroke
 {
@@ -106,6 +111,11 @@
      *  @param miterLimit Indicates the limit at which a miter is cut off.
      *  Valid values range from 0 to 255.
      *  The default value is 0.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Stroke(color:uint = 0x000000,
                            weight:Number = 0,


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/utils/EventUtil.as
+++ frameworks/projects/framework/src/mx/utils/EventUtil.as
@@ -43,6 +43,11 @@

 	/**
 	 *  Mapping of MouseEvents to SandboxMouseEvent types.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static function get sandboxMouseEventMap():Object
 	{
@@ -78,6 +83,11 @@

 	/**
 	 *  Mapping of SandboxMouseEvent to MouseEvents types.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static function get mouseEventMap():Object
 	{


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

--- frameworks/projects/mx/src/mx/effects/easing/Quintic.as
+++ frameworks/projects/mx/src/mx/effects/easing/Quintic.as
@@ -11,6 +11,15 @@

 package mx.effects.easing
 {
+
+/**
+ *  The new effects provided as of Flex 4 use classes which implement the
+ *  IEaser interface instead of the easing functions in classes like Quintic for
+ *  the earlier Flex 3 effects. To achieve the same functionality of Quintic,
+ *  create a Power instance with an exponent of 5 and set the
+ *  easeInFraction appropriately to get the desired result.
+ */
+[Alternative(replacement="spark.effects.easing.Power", since="4.0")]

 /**
  *  The Quintic class defines three easing functions to implement


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

--- frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/CandlestickSeries.as
@@ -0,0 +1,519 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.charts.series
+{
+
+import mx.charts.HitData;
+import mx.charts.chartClasses.CartesianTransform;
+import mx.charts.chartClasses.GraphicsUtilities;
+import mx.charts.chartClasses.HLOCSeriesBase;
+import mx.charts.chartClasses.NumericAxis;
+import mx.charts.renderers.CandlestickItemRenderer;
+import mx.charts.series.items.HLOCSeriesItem;
+import mx.charts.styles.HaloDefaults;
+import mx.core.ClassFactory;
+import mx.core.mx_internal;
+import mx.graphics.IFill;
+import mx.graphics.IStroke;
+import mx.graphics.SolidColor;
+import mx.graphics.Stroke;
+import mx.styles.CSSStyleDeclaration;
+import mx.core.IFlexModuleFactory;
+
+use namespace mx_internal;
+
+include "../styles/metadata/FillStrokeStyles.as"
+
+/**
+ *  Sets the stroke style used to outline the box defining the open-close region of the series.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="boxStroke", type="mx.graphics.IStroke", inherit="no")]
+
+/**
+ *  Sets the declining fill for this data series, used when the closing value of an element is less than the opening value. You can specify either an object implementing the IFill interface,
+ *  or a number representing a solid color value. You can also specify a solid fill using CSS.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="declineFill", type="mx.graphics.IFill", inherit="no")]
+
+/**
+ *  Specifies an Array of fill objects that define the fill for
+ *  each item in the series. This takes precedence over the fill style property.
+ *  If a custom method is specified by the fillFunction property, that takes precedence over this Array.
+ *  If you do not provide enough Array elements for every item,
+ *  Flex repeats the fill from the beginning of the Array.
+ *
+ *
To set the value of this property using CSS:
+ *

+ *    CandlestickSeries {
+ *      fills:#CC66FF, #9966CC, #9999CC;
+ *    }
+ *

+ *

+ *
+ *
To set the value of this property using MXML:
+ *

+ *    <mx:CandlestickSeries ... >
+ *     <mx:fills>
+ *      <mx:SolidColor color="0xCC66FF"/>
+ *      <mx:SolidColor color="0x9966CC"/>
+ *      <mx:SolidColor color="0x9999CC"/>
+ *     </mx:fills>
+ *    </mx:CandlestickSeries>
+ *

+ *

+ *
+ *

+ *  If you specify the fills property and you
+ *  want to have a Legend control, you must manually create a Legend control and
+ *  add LegendItems to it.
+ *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fills", type="Array", arrayType="mx.graphics.IFill", inherit="no")]
+
+/**
+ *  Represents financial data as a series of candlesticks representing the high, low, opening, and closing values of a data series.
+ *  The top and bottom of the vertical line in each candlestick represent the high and low values for the datapoint, while the top and bottom of the filled box represent
+ *  the opening and closing values. Each candlestick is filled differently depending on whether the closing value for the datapoint is higher or lower than the opening value.
+ *
+ *  @mxml
+ *

+ *  The <mx:CandlestickSeries> tag inherits all the properties of its parent classes, and
+ *  the following properties:
+ *

+ *

+ *  <mx:CandlestickSeries
+ *    Properties
+ *    fillFunction="Internal fill function"
+ *
+ *    Styles
+ *    boxStroke="IStroke; no default"
+ *    declineFill="IFill; no default"
+ *    fill="IFill; no default"
+ *    fills="IFill; no default"
+ *    stroke="IStroke; no default"
+ *  />
+ *

+ *
+ *  @see mx.charts.CandlestickChart
+ *
+ *  @includeExample ../examples/CandlestickChartExample.mxml
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class CandlestickSeries extends HLOCSeriesBase
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class initialization
+    //
+    //--------------------------------------------------------------------------
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function CandlestickSeries()
+    {
+        super();
+    }
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var _moduleFactoryInitialized:Boolean = false;
+
+	/**
+     * @private
+     */
+    private var _localFills:Array /* of IFill */;
+
+
+    /**
+     * @private
+     */
+    private var _fillCount:int;
+
+    //---------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //---------------------------------------------------------------------------
+
+
+    //-----------------------------------
+    // fillFunction
+    //-----------------------------------
+    [Bindable]
+    [Inspectable(category="General")]
+
+    /**
+     * @private
+     * Storage for fillFunction property
+     */
+    private var _fillFunction:Function=defaultFillFunction;
+
+    /**
+     * Specifies a method that returns the fill for the current chart item in the series.
+     * If this property is set, the return value of the custom fill function takes precedence over the
+     * fill and fills style properties.
+     * But if it returns null, then fills and fill will be
+     * prefered in that order.
+     *
+     *
The custom fillFunction has the following signature:
+     *
+     *

+     * function_name (item:ChartItem, index:Number):IFill { ... }
+     *

+     *
+     * item is a reference to the chart item that is being rendered.
+     * index is the index of the chart item in the renderData's cache. This is different
+     * from the index of the chart's data provider because it is sorted based on the x, y, and z values.
+     * This function returns an object that implements the IFill interface.
+     *

+     *
+     *
An example usage of a customized fillFunction is to return a fill
+     * based on some threshold.

+     *
+     * @example
+     *

+     * public function myFillFunction(item:ChartItem, index:Number):IFill {
+     *      var curItem:HLOCSeriesItem = HLOCSeriesItem(item);
+     *      if (curItem.closeNumber > 10)
+     *          return(new SolidColor(0x123456, .75));
+     *      else
+     *          return(new SolidColor(0x563412, .75));
+     * }
+     *

+     *
+     *

+     *  If you specify a custom fill function for your chart series and you
+     *  want to have a Legend control, you must manually create a Legend control and
+     *  add LegendItems to it.
+     *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+	public function get fillFunction():Function
+    {
+        return _fillFunction;
+    }
+
+    /**
+     * @private
+     */
+   	public function set fillFunction(value:Function):void
+    {
+        if (value==_fillFunction)
+            return;
+
+        if (value != null)
+            _fillFunction = value;
+
+        else
+            _fillFunction = defaultFillFunction;
+
+        invalidateDisplayList();
+        legendDataChanged();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private function initStyles():Boolean
+	{
+		HaloDefaults.init(styleManager);
+
+		var candlestickSeriesStyle:CSSStyleDeclaration =
+			HaloDefaults.createSelector("mx.charts.series.CandlestickSeries", styleManager);
+
+		candlestickSeriesStyle.defaultFactory = function():void
+		{
+			this.boxStroke = new Stroke(0, 0);
+			this.declineFill = new SolidColor(0);
+			this.fill = new SolidColor(0xFFFFFF);
+			this.fills = [];
+			this.itemRenderer = new ClassFactory(CandlestickItemRenderer);
+			this.stroke = new Stroke(0, 0);
+		}
+
+		return true;
+	}
+
+
+	/**
+	 *  @inheritDoc
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	override public function set moduleFactory(factory:IFlexModuleFactory):void
+	{
+		super.moduleFactory = factory;
+
+		if (_moduleFactoryInitialized)
+			return;
+
+		_moduleFactoryInitialized = true;
+
+		// our style settings
+		initStyles();
+	}
+
+    /**
+     *  @private
+     */
+    override public function getAllDataPoints():Array /* of HitData */
+    {
+    	if (!_renderData)
+    		return [];
+    	if (!(_renderData.filteredCache))
+    		return [];
+
+    	var itemArr:Array /* of CandlestickSeriesItem */ = [];
+    	if (chart && chart.dataTipItemsSet && dataTipItems)
+    		itemArr = dataTipItems;
+    	else if (chart && chart.showAllDataTips && _renderData.filteredCache)
+    		itemArr = _renderData.filteredCache;
+    	else
+    		itemArr = [];
+
+    	var n:uint = itemArr.length;
+    	var i:uint;
+    	var result:Array /* of HitData */ = [];
+
+    	for (i = 0; i < n; i++)
+        {
+            var v:HLOCSeriesItem = itemArr[i];
+            if (_renderData.filteredCache.indexOf(v) == -1)
+            {
+            	var itemExists:Boolean = false;
+            	var m:int  = _renderData.filteredCache.length;
+            	for (var j:int = 0; j < m; j++)
+            	{
+            		if (v.item == _renderData.filteredCache[j].item)
+            		{
+            			v = _renderData.filteredCache[j];
+            			itemExists = true;
+            			break;
+            		}
+            	}
+            	if (!itemExists)
+            		continue;
+            }
+            if (v)
+        	{
+            	var ypos:Number = (v.open + v.close)/2;
+            	var id:uint = v.index;
+            	var hd:HitData = new HitData(createDataID(id),Math.sqrt(0),v.x + _renderData.renderedXOffset,ypos,v);
+            	var f:Object = getStyle("declineFill");
+
+           	 	hd.contextColor = GraphicsUtilities.colorFromFill(HLOCSeriesItem(hd.chartItem).fill);
+
+            	hd.dataTipFunction = formatDataTip;
+            	result.push(hd);
+        	}
+        }
+        return result;
+    }
+
+    /*
+     *  @copy mx.charts.chartClasses.IChartElement#findDataPoints()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    override public function findDataPoints(x:Number,y:Number,sensitivity:Number):Array /* of HitData */
+    {
+        // esg, 8/7/06: if your mouse is over a series when it gets added and displayed for the first time, this can get called
+        // before updateData, and before and render data is constructed. The right long term fix is to make sure a stubbed out
+        // render data is _always_ present, but that's a little disruptive right now.
+        if (interactive == false || !_renderData)
+            return [];
+
+
+
+        var minDist:Number = _renderData.renderedHalfWidth + sensitivity;
+        var minItem:HLOCSeriesItem;
+
+        var n:uint = _renderData.filteredCache.length;
+        var i:uint;
+
+        for (i = 0; i < n; i++)
+        {
+            var v:HLOCSeriesItem = _renderData.filteredCache[i];
+
+            var dist:Number = Math.abs((v.x + _renderData.renderedXOffset) - x);
+            if (dist > minDist)
+                continue;
+
+
+
+            var lowValue:Number = Math.max(v.low,Math.max(v.high,v.close));
+            var highValue:Number = Math.min(v.low,Math.min(v.high,v.close));
+            if (!isNaN(v.open))
+            {
+                lowValue = Math.max(lowValue,v.open);
+                highValue = Math.min(highValue,v.open);
+            }
+
+            if (highValue - y > sensitivity)
+                continue;
+
+            if (y - lowValue > sensitivity)
+                continue;
+
+
+            minDist = dist;
+            minItem = v;
+            if (dist < _renderData.renderedHalfWidth)
+            {
+                // we're actually inside the column, so go no further.
+                break;
+            }
+        }
+
+        if (minItem)
+        {
+            var ypos:Number = (minItem.open + minItem.close)/2;
+            var id:uint = minItem.index;
+            var hd:HitData = new HitData(createDataID(id),Math.sqrt(minDist),minItem.x + _renderData.renderedXOffset,ypos,minItem);
+            var f:Object = getStyle("declineFill");
+
+            hd.contextColor = GraphicsUtilities.colorFromFill(HLOCSeriesItem(hd.chartItem).fill);
+
+            hd.dataTipFunction = formatDataTip;
+            return [hd];
+        }
+        return [];
+    }
+
+
+    /**
+     *  @private
+     */
+    override public function stylesInitialized():void
+    {
+        _localFills = getStyle('fills');
+        if (_localFills != null)
+        	_fillCount = _localFills.length;
+        else
+        	_fillCount = 0;
+        super.stylesInitialized();
+    }
+
+    /**
+     *  @private
+     */
+    override public function styleChanged(styleProp : String) : void
+    {
+        super.styleChanged(styleProp);
+        var styles:String = "fills"
+        if (styles.indexOf(styleProp)!=-1)
+        {
+            _localFills = getStyle('fills');
+            if (_localFills != null)
+        		_fillCount = _localFills.length;
+        	else
+        		_fillCount = 0;
+            invalidateDisplayList();
+            legendDataChanged();
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+    /**
+     * @private
+     */
+    mx_internal function defaultFillFunction(element:HLOCSeriesItem,i:Number):IFill
+    {
+        if (_fillCount!=0)
+        {
+          return(GraphicsUtilities.fillFromStyle(_localFills[i % _fillCount]));
+        }
+        var item:HLOCSeriesItem = HLOCSeriesItem(element);
+        var a:Number;
+        var b:Number;
+
+        if(dataTransform && dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS) is NumericAxis &&
+        	(dataTransform.getAxis(CartesianTransform.VERTICAL_AXIS) as NumericAxis).direction == "inverted")
+        {
+        	a = item.open;
+        	b = item.close;
+        }
+        else
+        {
+        	a = item.close;
+        	b = item.open;
+        }
+        if (a > b)
+            return(GraphicsUtilities.fillFromStyle(getStyle("declineFill")));
+        else
+            return(GraphicsUtilities.fillFromStyle(getStyle("fill")));
+    }
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17366
Author:   rfrishbe@adobe.com
Date:     2010-08-18T20:55:44.548390Z

Log Message:
-----------
Adding touchDelay and minimumDownState styles to Button.

In addition, there are some other PARB changes (touchScroll is renamed to more generic gestureCapture).  This means TouchScrollEvent has been renamed to GestureCaptureEvent as well.

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

Modified Paths:
--------------
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/TouchScrollEvent.as" copyfrom-rev="17335" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureEvent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/MobileTextFieldTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/TouchScrollEvent.as</path>

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

--- frameworks/projects/framework/src/mx/events/TouchInteractionEvent.as
+++ frameworks/projects/framework/src/mx/events/TouchInteractionEvent.as
@@ -16,19 +16,26 @@
 import flash.geom.Point;

 /**
- *  Represents event objects that are involved with touch scrolling.
+ *  GestureCaptureEvents are used to coordinate gestures recognition and response
+ *  among different components.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
-public class TouchScrollEvent extends Event
+public class GestureCaptureEvent extends Event
 {

-    /**
-     *  The TouchScrollEvent.TOUCH_SCROLL_STARTING constant defines the value of the
-     *  type property of the event object for a touchScrollStarting event.
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The GestureCaptureEvent.GESTURE_CAPTURE_STARTING constant defines the value of the
+     *  type property of the event object for a gestureCaptureStarting event.
      *
      *
The properties of the event object have the following values:

      *

@@ -39,26 +46,28 @@
      *       event listener that handles the event. For example, if you use
      *       myButton.addEventListener() to register an event listener,
      *       myButton is the value of the currentTarget.

-     *
scrollingObject	The object that owns this particular
-     *       scroll gesture

+     *
reason	The reason for the gesture capture event.  See
+     *       mx.events.GestureCaptureReason.

+     *
relatedObject	The object associated with this gesture capture event.

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

      *

      *
-     *  @eventType touchScrollStarting
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public static const TOUCH_SCROLL_STARTING:String = "touchScrollStarting";
-
-    /**
-     *  The TouchScrollEvent.TOUCH_SCROLL_START constant defines the value of the
-     *  type property of the event object for a touchScrollStart event.
+     *  @eventType gestureCaptureStarting
+     *  @see mx.events.GestureCaptureReason
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const GESTURE_CAPTURE_STARTING:String = "gestureCaptureStarting";
+
+    /**
+     *  The GestureCaptureEvent.GESTURE_CAPTURE_START constant defines the value of the
+     *  type property of the event object for a gestureCaptureStart event.
      *
      *
The properties of the event object have the following values:

      *

@@ -69,26 +78,28 @@
      *       event listener that handles the event. For example, if you use
      *       myButton.addEventListener() to register an event listener,
      *       myButton is the value of the currentTarget.

-     *
scrollingObject	The object that owns this particular
-     *       scroll gesture

+     *
reason	The reason for the gesture capture event.  See
+     *       mx.events.GestureCaptureReason.

+     *
relatedObject	The object associated with this gesture capture event.

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

      *

      *
-     *  @eventType touchScrollStart
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public static const TOUCH_SCROLL_START:String = "touchScrollStart";
-
-    /**
-     *  The TouchScrollEvent.TOUCH_SCROLL_DRAG constant defines the value of the
-     *  type property of the event object for a touchScrollDrag event.
+     *  @eventType gestureCaptureStart
+     *  @see mx.events.GestureCaptureReason
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const GESTURE_CAPTURE_START:String = "gestureCaptureStart";
+
+    /**
+     *  The GestureCaptureEvent.GESTURE_CAPTURE_END constant defines the value of the
+     *  type property of the event object for a gestureCaptureEnd event.
      *
      *
The properties of the event object have the following values:

      *

@@ -99,94 +110,30 @@
      *       event listener that handles the event. For example, if you use
      *       myButton.addEventListener() to register an event listener,
      *       myButton is the value of the currentTarget.

-     *
dragX	The number of pixels dragged in the x-axis since the
-     *       gesture has started

-     *
dragY	The number of pixels dragged in the y-axis since the
-     *       gesture has started

-     *
scrollingObject	The object that owns this particular
-     *       scroll gesture

+     *
reason	The reason for the gesture capture event.  See
+     *       mx.events.GestureCaptureReason.

+     *
relatedObject	The object associated with this gesture capture event.

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

      *

      *
-     *  @eventType touchScrollDrag
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public static const TOUCH_SCROLL_DRAG:String = "touchScrollDrag";
-
-    /**
-     *  The TouchScrollEvent.TOUCH_SCROLL_THROW constant defines the value of the
-     *  type property of the event object for a touchScrollThrow event.
-     *
-     *
The properties of the event object have the following values:

-     *

-     *
Property	Value

-     *
bubbles	false

-     *
cancelable	false

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

-     *
scrollingObject	The object that owns this particular
-     *       scroll gesture

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

-     *
velocityX	The velocity (pixels/msec) the user threw the list
-     *       in the x-axis

-     *
velocityY	The velocity (pixels/msec) the user threw the list
-     *       in the y-axis

-     *

-     *
-     *  @eventType touchScrollThrow
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public static const TOUCH_SCROLL_THROW:String = "touchScrollThrow";
-
-    // FIXME (rfrishbe): Make this public and document it or make it internal
-    public static const TOUCH_SCROLL_THROW_ANIMATION_END:String = "touchScrollThrowAnimationEnd";
-
-    /**
-     *  The TouchScrollEvent.TOUCH_SCROLL_END constant defines the value of the
-     *  type property of the event object for a touchScrollEnd event.
-     *
-     *
The properties of the event object have the following values:

-     *

-     *
Property	Value

-     *
bubbles	false

-     *
cancelable	false

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

-     *
scrollingObject	The object that owns this particular
-     *       scroll gesture

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

-     *

-     *
-     *  @eventType touchScrollStart
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public static const TOUCH_SCROLL_END:String = "touchScrollEnd";
-
+     *  @eventType gestureCaptureEnd
+     *  @see mx.events.GestureCaptureReason
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const GESTURE_CAPTURE_END:String = "gestureCaptureEnd";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------

     /**
      *  Constructor.
@@ -204,99 +151,63 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function TouchScrollEvent(type:String, bubbles:Boolean = false,
-                                     cancelable:Boolean = false)
+    public function GestureCaptureEvent(type:String, bubbles:Boolean = false,
+                                        cancelable:Boolean = false)
     {
         super(type, bubbles, cancelable);
     }

-    //----------------------------------
-    //  dragX
-    //----------------------------------
-
-    /**
-     *  The number of pixels dragged in the x-axis since the
-     *  gesture has started
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public var dragX:Number;
-
-    //----------------------------------
-    //  dragY
-    //----------------------------------
-
-    /**
-     *  The number of pixels dragged in the y-axis since the
-     *  gesture has started
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public var dragY:Number;
-
-    //----------------------------------
-    //  scrollingObject
-    //----------------------------------
-
-    /**
-     *  The object that owns this particular
-     *  scroll gesture
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public var scrollingObject:DisplayObject;
-
-    //----------------------------------
-    //  velocityX
-    //----------------------------------
-
-    /**
-     *  The velocity (pixels/msec) the user threw the list
-     *  in the x-axis
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public var velocityX:Number;
-
-    //----------------------------------
-    //  velocityY
-    //----------------------------------
-
-    /**
-     *  The velocity (pixels/msec) the user threw the list
-     *  in the y-axis
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public var velocityY:Number;
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  reason
+    //----------------------------------
+
+    /**
+     *  The reason for this geture capture event.
+     *
+     *  @see mx.events.GestureCaptureReason
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var reason:String;
+
+    //----------------------------------
+    //  relatedObject
+    //----------------------------------
+
+    /**
+     *  The object attempting to capture this user gesture.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var relatedObject:Object;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Methods
+    //
+    //--------------------------------------------------------------------------

     /**
      *  @private
      */
     override public function clone():Event
     {
-        var clonedEvent:TouchScrollEvent = new TouchScrollEvent(type, bubbles, cancelable);
+        var clonedEvent:GestureCaptureEvent = new GestureCaptureEvent(type, bubbles, cancelable);

-        clonedEvent.dragX = dragX;
-        clonedEvent.dragY = dragY;
-        clonedEvent.velocityX = velocityX;
-        clonedEvent.velocityY = velocityY;
-        clonedEvent.scrollingObject = scrollingObject;
+        clonedEvent.reason = reason;
+        clonedEvent.relatedObject = relatedObject;

         return clonedEvent;
     }


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

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

 package spark.accessibility
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.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/controls/ColorPicker.as</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/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.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/styles/metadata/TextStyles.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/controls/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as</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/framework/src/mx/controls/DataGrid.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/spark/src/fl/video/NCManagerDynamicStream.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/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/FocusStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -280,7 +280,9 @@

 /**
  *  The color of the vertical grid lines.
- *  @default 0xCCCCCC
+ *
+ *  The default value for the Halo theme is 0xCCCCCC.
+ *  The default value for the Spark theme is 0x696969.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -291,7 +293,7 @@

 /**
  *  The color of the horizontal grid lines.
- * @default 0xF7F7F7
+ *  @default 0xF7F7F7
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -315,7 +317,9 @@

 /**
  *  The color of the row background when the user rolls over the row.
- *  @default 0xB2E1FF
+ *
+ *  The default value for the Halo theme is 0xB2E1FF.
+ *  The default value for the Spark theme is 0xCEDBEF.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -327,7 +331,9 @@
 /**
  *  The color of the background for the row when the user selects
  *  an item renderer in the row.
- *  @default 0x7FCEFF
+ *
+ *  The default value for the Halo theme is 0x7FCEFF.
+ *  The default value for the Spark theme is 0xA8C6EE.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -363,7 +369,8 @@
 /**
  *  The class to use as the skin that defines the appearance of the
  *  background of the column headers in a DataGrid control.
- *  @default mx.skins.halo.DataGridHeaderBackgroundSkin
+ *  The default value for the Halo theme is mx.skins.halo.DataGridHeaderBackgroundSkin.
+ *  The default value for the Spark theme is mx.skins.spark.DataGridHeaderBackgroundSkin.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -375,7 +382,8 @@
 /**
  *  The class to use as the skin that defines the appearance of the
  *  separator between column headers in a DataGrid control.
- *  @default mx.skins.halo.DataGridHeaderSeparator
+ *  The default value for the Halo theme is mx.skins.halo.DataGridHeaderSeparator.
+ *  The default value for the Spark theme is mx.skins.spark.DataGridHeaderSeparatorSkin.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -451,7 +459,8 @@
 /**
  *  The class to use as the skin for the arrow that indicates the column sort
  *  direction.
- *  @default mx.skins.halo.DataGridSortArrow
+ *  The default value for the Halo theme is mx.skins.halo.DataGridSortArrow.
+ *  The default value for the Spark theme is mx.skins.spark.DataGridSortArrow.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


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

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


'queue' to 'stack'

'queue' to 'stack'

--- src/Testing/Types/AbstractArg.as
+++ src/Testing/Types/AbstractArg.as
@@ -8,18 +8,24 @@
 		public var value:int;
 		public var address:int;
 		public var immediate:Boolean;
-		public function AbstractArg(Value:int, Address:int = C.INT_NULL, Immediate:Boolean = false) {
+		public var stacked:Boolean;
+		public function AbstractArg(Value:int, Address:int = C.INT_NULL, Immediate:Boolean = false, Stacked:Boolean = false) {
 			value = Value;
 			address = Address;
 			immediate = Immediate;
+			stacked = Stacked;
 		}

 		public function get inMemory():Boolean {
-			return address != C.INT_NULL;
+			return address != C.INT_NULL && !stacked;
 		}

 		public function get inRegisters():Boolean {
-			return address == C.INT_NULL;
+			return address == C.INT_NULL && !stacked;
+		}
+
+		public function get inStack():Boolean {
+			return stacked;
 		}

 		public function toString():String {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3171
Author:   hmuller@adobe.com
Date:     2008-09-10T21:45:25.044021Z

Log Message:
-----------
Updated the viewport API per feedback from the Scroller/Viewport spec
review.  The previous Halo-esque API for specifying the desired number
of visible colunms in a HorizontalLayout or visible rows in a
VerticalLayout has been simplified.  I've itemized the changes for
VerticalLayout below; the HorizontalLayout changes are similar:

- The rowCount property is now read-only and Bindable.  It's value is
always the actual number of visible rows.  Note also: although
"visibleRowCount" might have more precise, Halo used the unqualifed
name.

- A new property called requestedRowCount has been added.  It indicates
how many rows should be visible and is used exclusively by the layout's
measure() method.

- The protected explicitRowCount property has been removed.

The Horizontal and VerticalLayout classes now extend EventDispatcher
to enable binding.

QE: This change will break tests that set the row,columnCount layout properties
Doc: No
Checkintests: Pass
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
@@ -11,18 +11,21 @@

 package flex.layout
 {
-import flash.geom.Rectangle;
+import flash.geom.Rectangle;
+import flash.events.EventDispatcher;

 import flex.core.Group;
 import flex.intf.ILayout;
 import flex.intf.ILayoutItem;

 import mx.containers.utilityClasses.Flex;
+import mx.events.PropertyChangeEvent;
+

 /**
  *  Documentation is not currently available.
  */
-public class HorizontalLayout implements ILayout
+public class HorizontalLayout extends EventDispatcher implements ILayout
 {
     include "../core/Version.as";

@@ -86,6 +89,16 @@
     //  gap
     //----------------------------------

+    private function invalidateTargetSizeAndDisplayList():void
+    {
+        var layoutTarget:Group = target;
+        if (layoutTarget != null)
+        {
+            layoutTarget.invalidateSize();
+            layoutTarget.invalidateDisplayList();
+        }
+    }
+
     private var _gap:int = 6;

     [Inspectable(category="General")]
@@ -105,33 +118,20 @@
      */
     public function set gap(value:int):void
     {
-        if (_gap == value) return;
+        if (_gap == value)
+            return;

 		_gap = value;
- 	   	var layoutTarget:Group = target;
-    	if (layoutTarget != null)
-    	{
-        	layoutTarget.invalidateSize();
-            layoutTarget.invalidateDisplayList();
-    	}
-    }
-
-    //----------------------------------
-    //  expliciColumnCount
-    //----------------------------------
-
-    /**
-     *  The column count requested by explicitly setting
-     *  columnCount.
-     */
-    protected var explicitColumnCount:int = -1;
-
+ 	    invalidateTargetSizeAndDisplayList();
+    }
+
     //----------------------------------
     //  columnCount
     //----------------------------------

     private var _columnCount:int = -1;

+    [Bindable("propertyChange")]
     [Inspectable(category="General")]

     /**
@@ -152,34 +152,61 @@
     }

     /**
+     *  Sets the columnCount property without causing
+     *  invalidation.
+     *
+     *  This method is intended to be used by subclass updateDisplayList()
+     *  methods to sync the columnCount property with the actual number
+     *  of visible columns.
+     *
+     *  @param value The number of visible columns.
+     */
+    protected function setColumnCount(value:int):void
+    {
+        if (_columnCount == value)
+            return;
+        var oldValue:int = _columnCount;
+        _columnCount = value;
+        dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "columnCount", oldValue, value));
+    }
+
+
+    //----------------------------------
+    //  requestedColumnCount
+    //----------------------------------
+
+    private var _requestedColumnCount:int = -1;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Specifies the number of items to display.
+     *
+     *  If requestedColumnCount is -1, then all of them items are displayed.
+     *
+     *  This value implies the layout's measuredWidth.
+     *
+     *  If the width of the target has been explicitly set,
+     *  this property has no effect.
+     *
+     *  @default -1
+     */
+    public function get requestedColumnCount():int
+    {
+        return _requestedColumnCount;
+    }
+
+    /**
      *  @private
      */
-    public function set columnCount(value:int):void
-    {
-        explicitColumnCount = value;
-
-        if (_columnCount == value) return;
-
-        setColumnCount(value);
- 	   	var layoutTarget:Group = target;
-    	if (layoutTarget != null)
-    	{
-        	layoutTarget.invalidateSize();
-            layoutTarget.invalidateDisplayList();
-    	}
-    }
-
-    /**
-     *  Sets the columnCount property without causing
-     *  invalidation or setting the explicitColumnCount
-     *  property, which permanently locks in the number of columns.
-     *
-     *  @param v The row count.
-     */
-    protected function setColumnCount(v:int):void
-    {
-        _columnCount = v;
-    }
+    public function set requestedColumnCount(value:int):void
+    {
+        if (_requestedColumnCount == value)
+            return;
+
+        _requestedColumnCount = value;
+        invalidateTargetSizeAndDisplayList();
+    }

     //----------------------------------
     //  explicitColumnWidth
@@ -297,7 +324,7 @@
         var preferredHeight:Number = 0;
         var visibleWidth:Number = 0;
         var visibleColumns:uint = 0;
-        var explicitColumnCount:int = explicitColumnCount;
+        var reqColumns:int = requestedColumnCount;

         var count:uint = layoutTarget.numLayoutItems;
         var totalCount:uint = count; // How many items will be laid out
@@ -313,8 +340,8 @@
             preferredHeight = Math.max(preferredHeight, li.preferredSize.y);
             preferredWidth += li.preferredSize.x;

-            var vcr:Boolean = (explicitColumnCount != -1) && (visibleColumns < explicitColumnCount);
-            if (vcr || (explicitColumnCount == -1))
+            var vcr:Boolean = (reqColumns != -1) && (visibleColumns < reqColumns);
+            if (vcr || (reqColumns == -1))
             {
                 var mw:Number =  hasPercentWidth(li) ? li.minSize.x : li.preferredSize.x;
                 var mh:Number = hasPercentHeight(li) ? li.minSize.y : li.preferredSize.y;
@@ -336,7 +363,7 @@
             minWidth += vgap;
         }

-        layoutTarget.measuredWidth = (explicitColumnCount == -1) ? preferredWidth : visibleWidth;
+        layoutTarget.measuredWidth = (reqColumns == -1) ? preferredWidth : visibleWidth;
         layoutTarget.measuredHeight = preferredHeight;

         layoutTarget.measuredMinWidth = minWidth;
@@ -360,7 +387,8 @@
         	setColumnWidth(columnWidth);
         }

-        var visibleCols:uint = (explicitColumnCount == -1) ? cols : explicitColumnCount;
+        var reqColumns:int = requestedColumnCount;
+        var visibleCols:uint = (reqColumns == -1) ? cols : reqColumns;
         var contentWidth:Number = (cols * columnWidth) + ((cols > 1) ? (gap * (cols - 1)) : 0);
         var visibleWidth:Number = (visibleCols * columnWidth) + ((visibleCols > 1) ? (gap * (visibleCols - 1)) : 0);

@@ -454,12 +482,11 @@
             var dx:Number = lo.actualSize.x;
             maxX = Math.max(maxX, x + dx);
             maxY = Math.max(maxY, y + dy);
-            if((explicitColumnCount == -1) && (x < maxVisibleX) && ((x + dx) > minVisibleX))
+            if((x < maxVisibleX) && ((x + dx) > minVisibleX))
             	visibleColumns += 1;
             x += dx + gap;
         }
-        if (explicitColumnCount == -1)
-        	setColumnCount(visibleColumns);
+        setColumnCount(visibleColumns);
         layoutTarget.setContentSize(maxX, maxY);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/xml/Schema.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/Schema.as
@@ -0,0 +1,272 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc.xml
+{
+
+[ExcludeClass]
+
+/**
+ * Manages an XML Schema Definition. Schemas can import other schemas.
+ *
+ * @private
+ */
+public class Schema
+{
+    public function Schema(xml:XML = null)
+    {
+        super();
+        this.xml = xml;
+    }
+
+
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+    public var attributeFormDefault:String = "unqualified";
+    public var blockDefault:String;
+    public var elementFormDefault:String = "unqualified";
+    public var finalDefault:String;
+
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Maps a namespace prefix (as a String) to a
+     * Namespace (i.e. this helps to resolve a prefix to a URI).
+     */
+    public function get namespaces():Object
+    {
+        if (_namespaces == null)
+            _namespaces = {};
+
+        return _namespaces;
+    }
+
+    public function set namespaces(value:Object):void
+    {
+        _namespaces = value;
+    }
+
+    /**
+     * The targetNamespace of this Schema. A targetNamespace establishes a
+     * scope for the collection of type definitions and element declarations
+     * to distinguish them from in-built XML Schema types and other collections
+     * of types.
+     */
+    public function get targetNamespace():Namespace
+    {
+        return _targetNamespace;
+    }
+
+    public function set targetNamespace(tns:Namespace):void
+    {
+        _targetNamespace = tns;
+    }
+
+    /**
+     * Constants for the particular version of XML Schema that was used
+     * to define this Schema.
+     */
+    public function get schemaConstants():SchemaConstants
+    {
+        if (_schemaConstants == null)
+        {
+            _schemaConstants = SchemaConstants.getConstants(_xml);
+        }
+        return _schemaConstants;
+    }
+
+    /**
+     * Datatype constants for the particular version of XML Schema that was
+     * used to define this Schema.
+     */
+    public function get schemaDatatypes():SchemaDatatypes
+    {
+        if (_schemaDatatypes == null)
+        {
+            _schemaDatatypes = SchemaDatatypes.getConstants(schemaConstants.xsdURI);
+        }
+        return _schemaDatatypes;
+    }
+
+    /**
+     * The raw XML definition of this Schema.
+     */
+    public function get xml():XML
+    {
+        return _xml;
+    }
+
+    public function set xml(value:XML):void
+    {
+        _xml = value;
+
+        if (_xml != null)
+        {
+            // XSD global attributes
+
+            // targetNamespace
+            var tns:String = _xml.@targetNamespace.toString();
+            _targetNamespace = new Namespace(tns);
+
+            // attributeFormDefault="unqualified|qualified"
+            attributeFormDefault = _xml.@attributeFormDefault.toString();
+            if (attributeFormDefault == "")
+                attributeFormDefault = "unqualified";
+
+            // blockDefault=""
+            blockDefault = _xml.@blockDefault.toString();
+
+            // elementFormDefault="unqualified|qualified"
+            elementFormDefault = _xml.@elementFormDefault.toString();
+            if (elementFormDefault == "")
+                elementFormDefault = "unqualified";
+
+            // finalDefault=""
+            finalDefault = _xml.@finalDefault.toString();
+
+            // XSD namespaces
+            namespaces = {};
+
+            var nsArray:Array = _xml.inScopeNamespaces();
+
+            for each (var ns:Namespace in nsArray)
+            {
+                namespaces[ns.prefix] = ns;
+            }
+
+            _schemaConstants = SchemaConstants.getConstants(_xml);
+            _schemaDatatypes = SchemaDatatypes.getConstants(_schemaConstants.xsdURI);
+        }
+        else
+        {
+            // Reset constants
+            _schemaConstants = null;
+            _schemaDatatypes = null;
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /*
+        FIXME:
+        1. Validate that the targetNamespace matches the one defined on the
+           import XML
+
+        2. Also, check that the schema being added does not cause a cyclic
+        relationship.
+    */
+    public function addImport(targetNamespace:Namespace, schema:Schema):void
+    {
+        if (importsManager == null)
+            importsManager = new QualifiedResourceManager();
+
+        importsManager.addResource(targetNamespace, schema);
+    }
+
+    public function addInclude(fragment:XMLList):void
+    {
+        xml.appendChild(fragment);
+    }
+
+    public function getNamedDefinition(name:QName, ...componentTypes:Array):Object
+    {
+        var uri:String = name.uri;
+        var schemas:Array = [this]
+
+        // Also consider any imports at this level for the given URI
+        if (importsManager != null)
+        {
+            var imports:Array = importsManager.getResourcesForURI(uri);
+            if (imports != null)
+            {
+                schemas = schemas.concat(imports);
+            }
+        }
+
+        for (var s:uint = 0; s < schemas.length; s++)
+        {
+            var schema:Schema = schemas[s] as Schema;
+            var currentTargetNamespace:Namespace = schema.targetNamespace;
+
+            var schemaXML:XML = schema.xml;
+            var constants:SchemaConstants = schema.schemaConstants;
+
+            for (var t:uint = 0; t < componentTypes.length; t++)
+            {
+                var componentType:QName = componentTypes[t] as QName;
+
+                // Enforce qualified element form lookup
+                if (schema.elementFormDefault == "qualified"
+                    && componentType == schemaConstants.elementTypeQName)
+                {
+                    if (uri != null && uri != "")
+                    {
+                        if (currentTargetNamespace == null || currentTargetNamespace.uri != uri)
+                            continue;
+                    }
+                }
+
+                // Enforce qualified attribute form lookup
+                if (schema.attributeFormDefault == "qualified"
+                    && componentType == schemaConstants.attributeQName)
+                {
+                    if (uri != null && uri != "")
+                    {
+                        if (currentTargetNamespace == null || currentTargetNamespace.uri != uri)
+                            continue;
+                    }
+                }
+
+                // If not element or attribute, component must match the target
+                // namespace (it can't be unqualified).
+                if (componentType != schemaConstants.elementTypeQName
+                    && componentType != schemaConstants.attributeQName
+                    && currentTargetNamespace.uri != name.uri)
+                    continue;
+
+                // ...and ensure we have the qualified name of the schema component
+                // as defined in a particular schema...
+                var localComponentType:QName = new QName(constants.xsdURI, componentType.localName);
+
+                // ...then look for <[localComponentType] name="[name.localName]">
+                var definition:XML = schemaXML[localComponentType].(@name == name.localName)[0];
+                if (definition != null)
+                {
+                    return {definition:definition, schema:schema};
+                }
+            }
+        }
+
+        return null;
+    }
+
+    private var importsManager:QualifiedResourceManager;
+    private var _namespaces:Object;
+    private var _schemaConstants:SchemaConstants;
+    private var _schemaDatatypes:SchemaDatatypes;
+    private var _targetNamespace:Namespace;
+    private var _xml:XML;
+}
+
+}


Dat theme countdown

Dat theme countdown

--- Scripts/States/MainMenu.as
+++ Scripts/States/MainMenu.as
@@ -34,16 +34,33 @@
 		Text title("Time until LD31 Theme:\n\t\t\t" + (diff.Hour < 10 ? "0" : "") + diff.Hour +
 			":" + (diff.Minute < 10 ? "0" : "") + diff.Minute +
 			":" + (diff.Second < 10 ? "0" : "") + diff.Second);
+
+		float fm1 = 1, fm2 = 1, fm3 = 1;
+
+		if (now > target)
+		{
+			fm1 = 1.5;
+			fm2 = 5;
+			fm3 = Math::DOUBLE_PI;
+
+			title.String = "Theme is out!!!\n  GO GO GO!";
+		}
+
 		title.Position = rend.View.Size / 2;
 		title.Origin = title.LocalBounds.Size / 2;

-		title.Move(sin(totalTime / 1.5) * 32, cos(totalTime / 1.5) * 32);
-		title.Rotation = sin(totalTime) * Math::PHI;
+		title.Move(sin(fm1 * totalTime / 1.5) * 32, cos(fm2 * totalTime / 1.5) * 32);
+		title.Rotation = sin(totalTime) * Math::PHI * fm3*fm3;

-		uint8 colorVal = uint8(232 + sin(totalTime * 6) * 12);
+		uint8 colorVal = uint8(200 + sin(totalTime * 6) * 12);
 		Color col = Colors::White;
 		col.A = colorVal;
 		title.Color = col;
+
+		if (fm3 > 1)
+		{
+			title.SetScale(1 + sin(totalTime) / 3);
+		}

 		rend.Draw(title);
 	}


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

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


Use particle effect in NinjaSnowWar.as

Use particle effect in NinjaSnowWar.as

--- Bin/Data/Scripts/NinjaSnowWar.as
+++ Bin/Data/Scripts/NinjaSnowWar.as
@@ -773,7 +773,7 @@

     // Create the particle emitter
     ParticleEmitter@ emitter = newNode.CreateComponent("ParticleEmitter");
-    emitter.Load(cache.GetResource("XMLFile", effectName));
+    emitter.effect = cache.GetResource("ParticleEffect", effectName);

     // Create a GameObject for managing the effect lifetime
     GameObject@ object = cast<GameObject>(newNode.CreateScriptObject(scriptFile, "GameObject", LOCAL));


Look for widget icon in widget folder from bundled Viewer.

--- src/com/esri/builder/model/WidgetType.as
+++ src/com/esri/builder/model/WidgetType.as
@@ -101,10 +101,15 @@

     public function getIconFile():File
     {
-        var iconFile:File = WellKnownDirectories.getInstance().customFlexViewer.resolvePath("widgets/" + name + "/" + iconLocation);
+        var widgetFolderRelativeIconLocation:String = "widgets/" + name + "/" + iconLocation;
+        var iconFile:File = WellKnownDirectories.getInstance().customFlexViewer.resolvePath(widgetFolderRelativeIconLocation);
         if (!iconFile.exists)
         {
             iconFile = WellKnownDirectories.getInstance().bundledFlexViewer.resolvePath(iconLocation);
+            if (!iconFile.exists)
+            {
+                iconFile = WellKnownDirectories.getInstance().bundledFlexViewer.resolvePath(widgetFolderRelativeIconLocation);
+            }
         }
         return iconFile;
     }


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/styles/ISimpleStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/ISimpleStyleClient.as
@@ -22,6 +22,11 @@
  *
  *  @see mx.styles.IStyleClient
  *  @see mx.styles.CSSStyleDeclaration
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface ISimpleStyleClient
 {
@@ -46,6 +51,11 @@
      *
      *
UIComponent. The object that implements this interface inherits all the style values from the referenced UIComponent.

      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get styleName():Object

@@ -64,6 +74,11 @@
      *  Called when the value of a style property is changed.
      *
      *  @param styleProp The name of the style property that changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function styleChanged(styleProp:String):void;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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

 package mx.messaging.messages
 {


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

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

 package mx.messaging.messages
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22601
Author:   eday@adobe.com
Date:     2011-09-16T14:51:07.890868Z

Log Message:
-----------
Item Snapping fixes

SDK-31514: Items don't snap at page boundaries when turned while an animation is performed
SDK-31511: Snapping modes on tile layout in portrait snaps at incorrect row edges
SDK-31505: Initial scroll position on a viewport is no longer respected when pageScrollingEnabled is set to true
SDK-31002: Different item snapped when orientation changed
Also fixed a problem related to programmatic paging discovered by Glenn.

QE notes:
Doc notes:
Bugs: SDK-31514, SDK-31511, SDK-31505, SDK-31002
Reviewer: Jazon Sz, Glenn, Kevin
Tests run: checkintests, full mobile List suite, Cyclone assist, smell test
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -1613,6 +1613,15 @@
      */
     override public function measure():void
     {
+        // Save and restore these values so they're not modified
+        // as a sideeffect of measure().
+        var savedColumnCount:int = _columnCount;
+        var savedRowCount:int = _rowCount;
+        var savedHorizontalGap:int = _horizontalGap;
+        var savedVerticalGap:int = _verticalGap;
+        var savedColumnWidth:int = _columnWidth;
+        var savedRowHeight:int = _rowHeight;
+
         var layoutTarget:GroupBase = target;
         if (!layoutTarget)
             return;
@@ -1650,6 +1659,13 @@
         layoutTarget.measuredMinWidth = measuredMinWidth + hPadding;
         layoutTarget.measuredHeight = measuredHeight + vPadding;
         layoutTarget.measuredMinHeight = measuredMinHeight + vPadding;
+
+        _columnCount = savedColumnCount;
+        _rowCount = savedRowCount;
+        _horizontalGap = savedHorizontalGap;
+        _verticalGap = savedVerticalGap;
+        _columnWidth = savedColumnWidth;
+        _rowHeight = savedRowHeight;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 2672
Author:   egeorgie@adobe.com
Date:     2008-07-30T22:52:27.741630Z

Log Message:
-----------
Remove GraphicElement.bounds APIs in favor of measure

Reviewed by Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/graphics/GraphicTags_checkintests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Graphic.as
+++ frameworks/projects/spark/src/spark/primitives/Graphic.as
@@ -149,6 +149,9 @@
     //
     //--------------------------------------------------------------------------

+	/**
+	 *  @inheritDoc
+	 */
 	override protected function measure():void
 	{
 		super.measure();


Flash: Intercept the case when uid is not supplied avoiding unnecessary exception.

--- src/flash/src/Moxie.as
+++ src/flash/src/Moxie.as
@@ -80,6 +80,10 @@
 			}

 			// Setup id
+			if (!params.hasOwnProperty("uid")) {
+				return; // we do not have uid, so we cannot fire error event - lets simply wait until it timeouts
+			}
+
 			Moxie.uid = Utils.sanitize(params["uid"]);

 			// Event dispatcher


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

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

 package mx.binding
 {


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9930
Author:   smgilson@adobe.com
Date:     2009-09-02T18:18:40.643031Z

Log Message:
-----------
Add ASDoc version tags to new or untagged classes

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Bounce.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/DefaultTileListEffect.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/effects/DefaultListEffect.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Elastic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as
+++ frameworks/projects/rpc/src/mx/rpc/mxml/IMXMLSupport.as
@@ -15,6 +15,11 @@
 /**
  *  Implementing this interface means that an RPC service
  *  can be used in an MXML document by using MXML tags.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IMXMLSupport
 {
@@ -25,32 +30,41 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-	//  concurrency
+    //  concurrency
     //----------------------------------

     [Inspectable(enumeration="multiple,single,last", defaultValue="multiple", category="General")]

-	/**
+    /**
      *  The concurrency setting of the RPC operation or HTTPService.
-	 *  One of "multiple" "last" or "single."
+     *  One of "multiple" "last" or "single."
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get concurrency():String;

-	/**
+    /**
      *  @private
      */
     function set concurrency(value:String):void;

     //----------------------------------
-	//  showBusyCursor
+    //  showBusyCursor
     //----------------------------------

     /**
      *  Indicates whether the RPC operation or HTTPService
-	 *  should show the busy cursor while it is executing.
-     */
-
-	function get showBusyCursor():Boolean;
+     *  should show the busy cursor while it is executing.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get showBusyCursor():Boolean;

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLEncoding.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLEncoding.as
@@ -50,6 +50,11 @@
      * restrictive (exactly like the encodingStyle attribute defined in the
      * SOAP specification).
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get encodingStyle():String
     {
@@ -77,6 +82,11 @@
      * header type. The referenced message need not be the same as the message
      * that defines the SOAP Body."
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get message():QName
     {
@@ -100,6 +110,11 @@
      * "The wrapper element is named identically to the operation name and
      * its namespace is the value of the namespace attribute."
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get namespaceURI():String
     {
@@ -128,6 +143,11 @@
      * binding). If the parts attribute is omitted, then all parts defined by
      * the message are assumed to be included in the SOAP Body portion."
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get parts():Array
     {
@@ -137,6 +157,11 @@
     /**
      * The SOAPConstants associated with this set of encoding rules
      * for the WSDL binding of a messsage for a particular operation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get soapConstants():SOAPConstants
     {
@@ -158,6 +183,11 @@
      * encoded using some encoding rules, or whether the parts define the
      * concrete schema of the message."
      *

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get useStyle():String
     {
@@ -177,6 +207,11 @@

     /**
      * Determines whether a part should be included when encoding this message.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function hasPart(name:String):Boolean
     {
@@ -198,6 +233,11 @@
      * Establishes a subset of parts that should be included in the message.
      * If a subset is not defined, the default is to include all parts in a
      * message.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function setParts(value:String):void
     {