Transferred from the Adobe Open Source Subversion Repository

Revision: 3576
Author:   mhorn@adobe.com
Date:     2008-10-10T20:28:57.093323Z

Log Message:
-----------
more asdoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/QuadraticBezierSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapResizeMode.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -18,170 +18,187 @@

 /**
  *  The Line class is a graphic element that draws a line between two points.
+ *
+ *
The default stroke for a line is undefined; therefore, if you do not specify
+ *  the stroke, the line is invisible.

+ *
+ *  @see mx.graphics.Stroke
  */
 public class Line extends StrokedElement
 {
-	include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Constructor.
-	 */
-	public function Line()
-	{
-		super();
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  xFrom
-	//----------------------------------
-
-	private var _xFrom:Number = 0;
-
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	*  The starting x position for the line.
-	*
-	*  @default 0
-	*/
-
-	public function get xFrom():Number
-	{
-		return _xFrom;
-	}
-
-	public function set xFrom(value:Number):void
-	{
-		var oldValue:Number = _xFrom;
-
-		if (value != oldValue)
-		{
-			_xFrom = value;
-			dispatchPropertyChangeEvent("xFrom", oldValue, value);
-			invalidateSize();
-		}
-	}
-
-	//----------------------------------
-	//  xTo
-	//----------------------------------
-
-	private var _xTo:Number = 0;
-
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	*  The ending x position for the line.
-	*
-	*  @default 0
-	*/
-
-	public function get xTo():Number
-	{
-		return _xTo;
-	}
-
-	public function set xTo(value:Number):void
-	{
-		var oldValue:Number = _xTo;
-
-		if (value != oldValue)
-		{
-			_xTo = value;
-			dispatchPropertyChangeEvent("xTo", oldValue, value);
-			invalidateSize();
-		}
-	}
-
-	//----------------------------------
-	//  yFrom
-	//----------------------------------
-
-	private var _yFrom:Number = 0;
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	*  The starting y position for the line.
-	*
-	*  @default 0
-	*/
-
-	public function get yFrom():Number
-	{
-		return _yFrom;
-	}
-
-	public function set yFrom(value:Number):void
-	{
-		var oldValue:Number = _yFrom;
-
-		if (value != oldValue)
-		{
-			_yFrom = value;
-			dispatchPropertyChangeEvent("yFrom", oldValue, value);
-			invalidateSize();
-		}
-	}
-
-	//----------------------------------
-	//  yTo
-	//----------------------------------
-
-	private var _yTo:Number = 0;
-
-	[Bindable("propertyChange")]
-	[Inspectable(category="General")]
-
-	/**
-	*  The ending y position for the line.
-	*
-	*  @default 0
-	*/
-
-	public function get yTo():Number
-	{
-		return _yTo;
-	}
-
-	public function set yTo(value:Number):void
-	{
-		var oldValue:Number = _yTo;
-
-		if (value != oldValue)
-		{
-			_yTo = value;
-			dispatchPropertyChangeEvent("yTo", oldValue, value);
-			invalidateSize();
-		}
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Overridden methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @inheritDoc
-	 */
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+    public function Line()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  xFrom
+    //----------------------------------
+
+    private var _xFrom:Number = 0;
+
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+    *  The starting x position for the line.
+    *
+    *  @default 0
+    */
+
+    public function get xFrom():Number
+    {
+        return _xFrom;
+    }
+
+    /**
+     *  @private
+     */
+    public function set xFrom(value:Number):void
+    {
+        var oldValue:Number = _xFrom;
+
+        if (value != oldValue)
+        {
+            _xFrom = value;
+            dispatchPropertyChangeEvent("xFrom", oldValue, value);
+            invalidateSize();
+        }
+    }
+
+    //----------------------------------
+    //  xTo
+    //----------------------------------
+
+    private var _xTo:Number = 0;
+
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+    *  The ending x position for the line.
+    *
+    *  @default 0
+    */
+
+    public function get xTo():Number
+    {
+        return _xTo;
+    }
+
+    /**
+     *  @private
+     */
+    public function set xTo(value:Number):void
+    {
+        var oldValue:Number = _xTo;
+
+        if (value != oldValue)
+        {
+            _xTo = value;
+            dispatchPropertyChangeEvent("xTo", oldValue, value);
+            invalidateSize();
+        }
+    }
+
+    //----------------------------------
+    //  yFrom
+    //----------------------------------
+
+    private var _yFrom:Number = 0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+    *  The starting y position for the line.
+    *
+    *  @default 0
+    */
+
+    public function get yFrom():Number
+    {
+        return _yFrom;
+    }
+
+    /**
+     *  @private
+     */
+    public function set yFrom(value:Number):void
+    {
+        var oldValue:Number = _yFrom;
+
+        if (value != oldValue)
+        {
+            _yFrom = value;
+            dispatchPropertyChangeEvent("yFrom", oldValue, value);
+            invalidateSize();
+        }
+    }
+
+    //----------------------------------
+    //  yTo
+    //----------------------------------
+
+    private var _yTo:Number = 0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+    *  The ending y position for the line.
+    *
+    *  @default 0
+    */
+
+    public function get yTo():Number
+    {
+        return _yTo;
+    }
+
+    /**
+     *  @private
+     */
+    public function set yTo(value:Number):void
+    {
+        var oldValue:Number = _yTo;
+
+        if (value != oldValue)
+        {
+            _yTo = value;
+            dispatchPropertyChangeEvent("yTo", oldValue, value);
+            invalidateSize();
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
     override protected function skipMeasure():Boolean
     {
         // Since our measure() is quick, we prefer to call it always instead of
@@ -189,31 +206,31 @@
         return false;
     }

-	/**
-	 *  @inheritDoc
-	 */
+    /**
+     *  @inheritDoc
+     */
     override protected function measure():void
     {
-	    measuredWidth = Math.abs(xFrom - xTo);
-	    measuredHeight = Math.abs(yFrom - yTo);
-	    measuredX = Math.min(xFrom, xTo);
-	    measuredY = Math.min(yFrom, yTo);
-	}
-
-	/**
-	 * @inheritDoc
-	 */
-	override protected function drawElement(g:Graphics):void
-	{
+        measuredWidth = Math.abs(xFrom - xTo);
+        measuredHeight = Math.abs(yFrom - yTo);
+        measuredX = Math.min(xFrom, xTo);
+        measuredY = Math.min(yFrom, yTo);
+    }
+
+    /**
+     * @inheritDoc
+     */
+    override protected function drawElement(g:Graphics):void
+    {
         var drawToX:Number = xFrom <= xTo ? width : -width;
         var drawToY:Number = yFrom <= yTo ? height : -height;

         drawToX += xFrom;
         drawToY += yFrom;

-		g.moveTo(xFrom + drawX, yFrom + drawY);
-		g.lineTo(drawToX + drawX, drawToY + drawY);
-	}
+        g.moveTo(xFrom + drawX, yFrom + drawY);
+        g.lineTo(drawToX + drawX, drawToY + drawY);
+    }
 }

 }


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

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

 package spark.primitives
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17690
Author:   egeorgie@adobe.com
Date:     2010-09-13T22:29:23.934871Z

Log Message:
-----------
Integrate Revision 17689

Log Message:
***********
Fix SDK-27820 - explicit W/H is ignored when a path is constrained in the orthogonal direction

In this change:
 - Only for Paths with no transformation and with stroke with miter joints, if NaN is passed to setLayoutBoundsSize(), use the value from the getPreferredLayoutBoundsWidth()/getPreferredLayoutBoundsHeight().

QE notes: N/A
Doc notes: N/A
Bugs: SDK-27820
Reviewer: Jason
Tests run: full cyclone
Is noteworthy for integration: Yes

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

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

--- frameworks/projects/spark/src/spark/primitives/Path.as
+++ frameworks/projects/spark/src/spark/primitives/Path.as
@@ -826,7 +826,12 @@
             super.setLayoutBoundsSize(width, height, postLayoutTransform);
             return;
         }
-
+
+        if (isNaN(width))
+            width = this.getPreferredBoundsWidth(false);
+        if (isNaN(height))
+            height = this.getPreferredBoundsHeight(false);
+
         // Miter limit requires special handling since the stroke extents depend on
         // the path size as the size changes the angles of the joints.


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.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/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.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/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.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/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.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/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.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/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.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/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.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/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.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/styles/CSSStyleDeclaration.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/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.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/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -2262,7 +2262,7 @@
                 if (dateChooserStyleName)
                 {
                     var styleDecl:CSSStyleDeclaration =
-                    StyleManager.getStyleDeclaration("." + dateChooserStyleName);
+                    styleManager.getStyleDeclaration("." + dateChooserStyleName);

                     if (styleDecl)
                     {
@@ -2474,7 +2474,7 @@
         if (dateChooserStyleName)
         {
             var styleDecl:CSSStyleDeclaration =
-            StyleManager.getStyleDeclaration("." + dateChooserStyleName);
+            styleManager.getStyleDeclaration("." + dateChooserStyleName);

             if (styleDecl)
                 _dropdown.styleDeclaration = styleDecl;


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5219
Author:   smgilson@adobe.com
Date:     2009-03-10T13:11:44.780756Z

Log Message:
-----------
Fix broken ASDoc comment in VideoElement.as

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/VideoElement.as

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

--- frameworks/projects/spark/src/spark/components/VideoDisplay.as
+++ frameworks/projects/spark/src/spark/components/VideoDisplay.as
@@ -317,7 +317,7 @@
      *
      *
Set the isLive property to false when sending
      *  a prerecorded video stream to the video player and to true
-     *  when sending real-time data such as a live broadcast.
+     *  when sending real-time data such as a live broadcast.

      *
      *  @see #source
      *  @see VideoPlayer#isLive
@@ -378,7 +378,7 @@
      *  Returns true if the video is playing or is attempting to play.
      *
      *
The video may not be currently playing, as it may be seeking
-     *  or buferring, but the video is attempting to play.

+     *  or buferring, but the video is attempting to play.

      *
      *  @see #play()
      *  @see #pause()


addd Mesh.cast() and use it in Group.cast()

--- src/aerys/minko/scene/node/mesh/Mesh.as
+++ src/aerys/minko/scene/node/mesh/Mesh.as
@@ -9,10 +9,10 @@
 	import aerys.minko.scene.node.Scene;
 	import aerys.minko.scene.node.mesh.geometry.Geometry;
 	import aerys.minko.type.Signal;
-	import aerys.minko.type.bounding.FrustumCulling;
 	import aerys.minko.type.data.DataBindings;
 	import aerys.minko.type.data.DataProvider;
 	import aerys.minko.type.enum.DataProviderUsage;
+	import aerys.minko.type.math.Ray;

 	/**
 	 * Mesh objects are a visible instance of a Geometry rendered using a specific
@@ -255,6 +255,15 @@
 					addController(ctrl);
 		}

+		public function cast(ray : Ray, maxDistance : Number = Number.POSITIVE_INFINITY) : Number
+		{
+			return _geometry.boundingBox.testRay(
+				ray,
+				worldToLocal,
+				maxDistance
+			);
+		}
+
 		override public function clone(cloneControllers : Boolean = false) : ISceneNode
 		{
 			var clone : Mesh = new Mesh();


Added distance function that can handle different types of spaces.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@371 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/MathUtil.as
+++ src/as/com/threerings/flash/MathUtil.as
@@ -19,8 +19,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

-package com.threerings.flash {
-
+package com.threerings.flash {

 /**
  * Collection of math utility functions.
@@ -34,6 +33,55 @@
     {
         return Math.min(Math.max(n, min), max);
     }
+
+    /**
+     * Returns distance from point (x1, y1) to (x2, y2) in 2D.
+     *
+     *
Supports various distance metrics: the common Euclidean distance, taxicab distance,
+     * arbitrary Minkowski distances, and Chebyshev distance.
+     *
+     *
See the NIST web page on
+     * distance definitions.

+     *
+     * @param x1 x value of the first point
+     * @param y1 y value of the first point
+     * @param x2 x value of the second point
+     * @param y2 y value of the second point
+     * @param p Optional: p value of the norm function. Common cases:
+     *

p = 2 (default): standard Euclidean distance on a plane
+     *
p = 1: taxicab distance (aka Manhattan distance)
+     *
p = Infinity: Chebyshev distance
+     *

+     *          Note: p < 1 or p = NaN are treated as equivalent to p = Infinity
+     */
+    public static function distance (
+        x1 :Number, y1 :Number, x2 :Number, y2 :Number, p :int = 2) :Number
+    {
+        if (! isFinite(p) || p < 1) {
+            p = Infinity;
+        }
+
+        var dx :Number = x2 - x1;
+        var dy :Number = y2 - y1;
+
+        switch (p) {
+        case 1:
+            // optimized version for taxicab distance
+            return dx + dy;
+        case 2:
+            // optimized version for Euclidean
+            return Math.sqrt(dx * dx + dy * dy);
+        case Infinity:
+            // optimized version for Chebyshev
+            return Math.max(dx, dy);
+        default:
+            // generic version
+            var xx :Number = Math.pow(dx, p);
+            var yy :Number = Math.pow(dy, p);
+            return Math.pow(xx + yy, 1 / p);
+        }
+    }
+
 }

 }


Catch exception when Shader is involved

Catch exception when Shader is involved

--- mustella/as3/src/mustella/CompareBitmap.as
+++ mustella/as3/src/mustella/CompareBitmap.as
@@ -1184,11 +1184,16 @@
 			xml.@blendMode = d.blendMode;
 		if (d.cacheAsBitmap)
 			xml.@cacheAsBitmap = "true";
-		if (d.filters && d.filters.length > 0)
-		{
-			s = d.filters.toString();
-			xml.@filters = s;
-		}
+        try {
+    		if (d.filters && d.filters.length > 0)
+    		{
+    			s = d.filters.toString();
+    			xml.@filters = s;
+    		}
+        } catch (e:Error)
+        {
+            // seems to throw arg error when Shader applied
+        }
 		if (d.opaqueBackground)
 			xml.@opaqueBackground = "true";
 		if (d.scale9Grid)


* ShadowRenderer 总是贴底

* ShadowRenderer 总是贴底

--- age/src/age/renderers/ShadowRenderer.as
+++ age/src/age/renderers/ShadowRenderer.as
@@ -142,6 +142,38 @@
 		override public function set direction(value:int):void
 		{
 			// 方向无效
+		}
+
+		/**
+		 * 旧 projectY
+		 */
+		private var origProjectY:Function;
+
+		/**
+		 * @inheritDoc
+		 *
+		 */
+		override public function set projectY(value:Function):void
+		{
+			origProjectY = value;
+			super.projectY = projectY_ignoreY;
+
+			if (value != null)
+			{
+				validatePosition();
+			}
+		}
+
+		/**
+		 * 忽略 y 参数的 projectY 方法
+		 * @param y
+		 * @param z
+		 * @return
+		 *
+		 */
+		protected function projectY_ignoreY(y:Number, z:Number):Number
+		{
+			return origProjectY(0, z);
 		}

 		/**


mute toggle

mute toggle

--- src/com/korisnamedia/audio/MixEngine.as
+++ src/com/korisnamedia/audio/MixEngine.as
@@ -50,6 +50,7 @@

     private static const log:ILogger = getLogger(MixEngine);
     private var stopFlag:Boolean = false;
+    public var muted:Boolean = false;

     public function MixEngine() {
         super(this);
@@ -250,5 +251,10 @@
         }
         return tc;
     }
+
+    public function toggleMute():void {
+        muted = !muted;
+        gain = muted ? 0.0 : 1.0;
+    }
 }
 }


Remove unused method.

Remove unused method.


Also fill buffer if we get empty/full events from the net stream.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -2050,6 +2050,7 @@
 					if (_seekTime < 0)
 						_seekTime = currentTime;

+					// Update initial time with time of tag.
 					if(isNaN(_initialTime))
 						_initialTime = currentTime;

@@ -2388,8 +2389,10 @@
 		 */
 		private function keepBufferFed():void
 		{
+			updateBufferTime();
+
 			// Check the actual amount of content present.
-			if(super.bufferLength >= bufferFeedMin)
+			if(super.bufferLength >= bufferFeedMin && !_wasBufferEmptied)
 			{
 				return;
 			}
@@ -2403,7 +2406,7 @@

 			// Append tag bytes until we've hit our time buffer goal.
 			var curTagOffset:int = 0;
-			while(super.bufferLength <= (bufferFeedMin + bufferFeedAmount)
+			while((super.bufferLength <= (bufferFeedMin + bufferFeedAmount) || _wasBufferEmptied)
 			      && (pendingTags.length - curTagOffset) > 0)
 			{
 				// Append some tags, using utility function to ensure we get tags


Fix a typo in ParserOptions constructor

Fix a typo in ParserOptions constructor

--- src/aerys/minko/type/loader/parser/ParserOptions.as
+++ src/aerys/minko/type/loader/parser/ParserOptions.as
@@ -105,7 +105,7 @@
 									  parser					: Class = null)
 		{
 			_loadDependencies			= loadDependencies;
-			_dependencyLoaderClosure	= _dependencyLoaderClosure || _dependencyLoaderClosure;
+			_dependencyLoaderClosure	= dependencyLoaderClosure || _dependencyLoaderClosure;
 			_mipmapTextures				= mipmapTextures;
 			_meshEffect					= meshEffect;
 			_vertexStreamUsage			= vertexStreamUsage;
@@ -133,4 +133,4 @@
 			return loader;
 		}
 	}
-}+}


Fix for build issue around unknown error

--- FlexUnit4/src/org/flexunit/events/UnknownError.as
+++ FlexUnit4/src/org/flexunit/events/UnknownError.as
@@ -15,7 +15,7 @@
 					error = errorGeneric as Error;
 				} else if ( errorGeneric is ErrorEvent ) {
 					var errorEvent:ErrorEvent = errorGeneric as ErrorEvent;
-					error = new Error( "Top Level Error", errorEvent.errorID );
+					error = new Error( "Top Level Error", Object(errorEvent).errorID );
 				}
 			}


ImageEditor, Flash: Simplify calculation of total steps required to gradually resize the image.

--- src/flash/src/com/ImageEditor.as
+++ src/flash/src/com/ImageEditor.as
@@ -253,15 +253,7 @@
 			// we only need this to fire a progress event as we descend
 			var totalSteps:uint = 1;
 			if (multiStep) {
-				totalSteps = (function(tmpWidth:Number, newScale:Number) : uint {
-					var steps:uint = 1;
-					while (newScale < 0.5 || newScale > 2) {
-						tmpWidth = newScale < 0.5 ? tmpWidth / 2 : tmpWidth * 2;
-						newScale = dstWidth / tmpWidth;
-						steps++;
-					}
-					return steps;
-				}(_bd.width, scale));
+				totalSteps = Math.ceil(Math.log(1 / scale) / Math.log(2));
 			}


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

--- frameworks/projects/mx/src/mx/containers/Tile.as
+++ frameworks/projects/mx/src/mx/containers/Tile.as
@@ -36,6 +36,11 @@
  *  is at the right edge of its cell.
  *
  *  @default "left"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="horizontalAlign", type="String", enumeration="left,center,right", inherit="no")]

@@ -43,6 +48,11 @@
  *  Number of pixels between children in the horizontal direction.
  *
  *  @default 8
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="horizontalGap", type="Number", format="Length", inherit="no")]

@@ -50,6 +60,11 @@
  *  Number of pixels between the container's bottom border and its content area.
  *
  *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="paddingBottom", type="Number", format="Length", inherit="no")]

@@ -57,6 +72,11 @@
  *  Number of pixels between the container's top border and its content area.
  *
  *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="paddingTop", type="Number", format="Length", inherit="no")]

@@ -72,6 +92,11 @@
  *  is at the bottom edge of its cell.
  *
  *  @default "top"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="verticalAlign", type="String", enumeration="bottom,middle,top", inherit="no")]

@@ -79,6 +104,11 @@
  *  Number of pixels between children in the vertical direction.
  *
  *  @default 6
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="verticalGap", type="Number", format="Length", inherit="no")]

@@ -185,6 +215,11 @@
  *  @includeExample examples/TileLayoutExample.mxml
  *
  *  @see mx.components.Container
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Tile extends Container
 {
@@ -198,6 +233,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Tile()
     {
@@ -265,6 +305,11 @@
      *  @default "horizontal"
      *
      *  @see TileDirection
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get direction():String
     {
@@ -305,6 +350,11 @@
      *  this calculation.
      *
      *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get tileHeight():Number
     {
@@ -342,6 +392,11 @@
      *  this calculation.
      *
      *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get tileWidth():Number
     {
@@ -403,6 +458,11 @@
      *  large enough for its padding and borders.

      *
      *  @see mx.core.UIComponent#measure()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function measure():void
     {
@@ -559,6 +619,11 @@
      *  scaleY property of the component.
      *
      *  @see mx.core.UIComponent#updateDisplayList()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function updateDisplayList(unscaledWidth:Number,
                                                   unscaledHeight:Number):void


Transferred from the Adobe Open Source Subversion Repository

Revision: 8679
Author:   jimurphy@adobe.com
Date:     2009-07-20T13:23:31.007823Z

Log Message:
-----------
These are Asdoc edit from 3.x rev 8623.  I somehow missed committing these when they were supposed to be committed during my previous merge.

bug: no
qa: no
doc: no
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.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/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/AsyncToken.as
+++ frameworks/projects/rpc/src/mx/rpc/AsyncToken.as
@@ -105,14 +105,14 @@
         _message = message;
     }

-	//----------------------------------
-	// responder
-	//----------------------------------
-
-    /**
-	 *  @private
-	 */
-	private var _responders:Array;
+    //----------------------------------
+    // responder
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _responders:Array;

     /**
      * An array of IResponder handlers that will be called when
@@ -134,10 +134,10 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-	public function get responders():Array
-	{
-		return _responders;
-	}
+    public function get responders():Array
+    {
+        return _responders;
+    }

     //----------------------------------
     // result
@@ -159,7 +159,7 @@
      */
     public function get result():Object
     {
-    	return _result;
+        return _result;
     }

     //--------------------------------------------------------------------------
@@ -168,27 +168,27 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  addResponder adds a responder to an Array of responders.
+    /**
+     *  Adds a responder to an Array of responders.
      *  The object assigned to the responder parameter must implement
      *  mx.rpc.IResponder.
-	 *
-	 *  @param responder A handler which will be called when the asynchronous request completes.
-	 *
-	 *  @see	mx.rpc.IResponder
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-	public function addResponder(responder:IResponder):void
-	{
-		if (_responders == null)
-			_responders = [];
-
-		_responders.push(responder);
-	}
+     *
+     *  @param responder A handler which will be called when the asynchronous request completes.
+     *
+     *  @see mx.rpc.IResponder
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function addResponder(responder:IResponder):void
+    {
+        if (_responders == null)
+            _responders = [];
+
+        _responders.push(responder);
+    }

     /**
      * Determines if this token has at least one mx.rpc.IResponder registered.
@@ -209,9 +209,9 @@
      */
     mx_internal function applyFault(event:FaultEvent):void
     {
-		if (_responders != null)
-    	{
-    	    for (var i:uint = 0; i < _responders.length; i++)
+        if (_responders != null)
+        {
+            for (var i:uint = 0; i < _responders.length; i++)
             {
                 var responder:IResponder = _responders[i];
                 if (responder != null)
@@ -219,7 +219,7 @@
                     responder.fault(event);
                 }
             }
-    	}
+        }
     }

     /**
@@ -229,9 +229,9 @@
     {
         setResult(event.result);

-    	if (_responders != null)
-    	{
-    	    for (var i:uint = 0; i < _responders.length; i++)
+        if (_responders != null)
+        {
+            for (var i:uint = 0; i < _responders.length; i++)
             {
                 var responder:IResponder = _responders[i];
                 if (responder != null)
@@ -239,7 +239,7 @@
                     responder.result(event);
                 }
             }
-    	}
+        }
     }

     /**
@@ -252,7 +252,7 @@
             var event:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(this, "result", _result, newResult);
             _result = newResult;
             dispatchEvent(event);
-    	}
+        }
     }
 }
 }


completed client side part

completed client side part

--- return_of_the_rtmfpcat.as
+++ return_of_the_rtmfpcat.as
@@ -43,6 +43,12 @@
             host: "128.12.179.80",
             port: 9002
         };
+
+        /* David's facilitator. */
+        //private const DEFAULT_FACILITATOR_ADDR:Object = {
+        //    host: "tor-facilitator.bamsoftware.com",
+        //    port: 9006
+        //};

         /* Cirrus server information. */
         private const DEFAULT_CIRRUS_ADDRESS:String = "rtmfp://p2p.rtmfp.net";
@@ -181,7 +187,7 @@
         {
             switch (event.info.code) {
             case "NetConnection.Connect.Success" :
-                puts("circon_netstatus_event: NetConnection.Connect.Success");
+                puts("Cirrus server connection established.");
                 puts("Got id " + circon.nearID + ".");
                 clearInterval(circon_timeo_id);

@@ -199,18 +205,6 @@
                     register_id(circon.nearID, fac_addr);
                 }

-                break;
-            case "NetStream.Connect.Success" :
-                puts("circon_netstatus_event: NetStream.Connect.Success");
-                break;
-            case "NetStream.Publish.BadName" :
-                puts("circon_netstatus_event: NetStream.Publish.BadName");
-                break;
-            case "NetStream.Connect.Closed" :
-                puts("circon_netstatus_event: NetStream.Connect.Closed");
-                // we've disconnected from the peer
-                // can reset to accept another
-                // clear the publish stream and re-publish another
                 break;
             }
         }
@@ -250,7 +244,7 @@
             var s_f:Socket = new Socket();
             s_f.addEventListener(Event.CONNECT, function (e:Event):void {
                 puts("Facilitator: connected to " + fac_addr.host + ":" + fac_addr.port + ".");
-                puts("Registering id " + id);
+                puts("Facilitator: Registering id " + id);
                 s_f.writeUTFBytes("POST / HTTP/1.0\r\n\r\nclient=" + id + "\r\n");
             });
             s_f.addEventListener(Event.CLOSE, function (e:Event):void {
@@ -296,6 +290,7 @@
 import flash.events.IOErrorEvent;
 import flash.events.ProgressEvent;
 import flash.events.SecurityErrorEvent;
+import flash.events.NetStatusEvent;
 import flash.net.Socket;
 import flash.utils.ByteArray;
 import flash.utils.clearTimeout;
@@ -335,6 +330,14 @@
         this.circon = circon;
         this.output_text = output_text;
         connected = false;
+
+        circon.addEventListener(NetStatusEvent.NET_STATUS, circon_netstatus_event);
+        circon.addEventListener(IOErrorEvent.IO_ERROR, function (e:Event):void {
+            puts("RTMFPSocket: Cirrus connection had an IOErrorEvent.IO_ERROR event");
+        });
+        circon.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:Event):void {
+            puts("RTMFPSocket: Cirrus connection had a SecurityErrorEvent.SECURITY_ERROR");
+        });
     }

     public function listen():void
@@ -365,6 +368,25 @@
         return true;
     }

+    private function circon_netstatus_event(event:NetStatusEvent):void
+    {
+        switch (event.info.code) {
+        case "NetStream.Connect.Closed" :
+            puts("RTMFPSocket: NetStream connection was closed");
+
+            if(connected)
+            {
+                send_stream.close();
+                recv_stream.close();
+                connected = false;
+                dispatchEvent(new Event(Event.CLOSE));
+            }
+
+            break;
+        }
+    }
+
+
     public function readBytes(bytes:ByteArray):void
     {
         recv_stream.client.bytes.readBytes(bytes);
@@ -471,8 +493,8 @@

     private function rtmfp_connect_event(e:Event):void
     {
-        puts("RTMFPConnectionPair: RTMFPSocket connected!");
-        puts("RTMFPConnectionPair: setting up tor connection...");
+        puts("RTMFPConnectionPair: RTMFPSocket side connected!");
+        puts("RTMFPConnectionPair: setting up tor side connection...");

         /* Setup tor connection linked to RTMFPSocket. */
         s_t = new Socket();


Hooverian simplification, actionscriptified.

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

--- src/as/com/threerings/crowd/chat/client/CurseFilter.as
+++ src/as/com/threerings/crowd/chat/client/CurseFilter.as
@@ -191,14 +191,14 @@
                 continue;
             }
             if ("" == pattern) {
-                pattern += ".*(";
+                pattern += "(";
             } else {
                 pattern += "|";
             }
             pattern += "\\b" +
                 token.replace(/\*/g, "[A-Za-z]*") + "\\b";
         }
-        pattern += ").*";
+        pattern += ")";

         _stopExp = new RegExp(pattern, "i");
     }


JSURLStream: on load abortion, stop Base64 decoding timer to ensure that no data will be pushed to FragmentLoader.

--- src/org/mangui/hls/utils/JSURLStream.as
+++ src/org/mangui/hls/utils/JSURLStream.as
@@ -91,6 +91,9 @@
         }

         override public function close() : void {
+            if(_timer) {
+                _timer.stop();
+            }
             if (ExternalInterface.available) {
                 _trigger('abortFragment', ExternalInterface.objectID);
             } else {


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

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

 package spark.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6290
Author:   chaase@adobe.com
Date:     2009-04-27T18:42:18.522446Z

Log Message:
-----------
Added animation behavior to scrollbars and sliders. For now, animation only happens based on mouse events (key events still have previous non-animated behavior).
Also, added shift-click behavior to ScrollBar, behaves essentially like a Slider, going to the clicked location instead of paging toward it.
Finally, fixed an unrelated bug in Animation where Animates set up with a MotionPath with no time=0 keyframe would not run properly.

These changes necessitate changes in Mustella (need to listen to 'change' event on scrollbars/sliders, not 'updateComplete' or 'click', since the animations may cause several valid 'updateComplete' events on the way to the final changed value.

QE Notes: Mustella changes in ScrollBar and Slider necessary. See note above. Changes have been made and are awaiting this checkin to update Mustella tests.
Doc Notes: None
Bugs:
Reviewer: Hans and Glenn (scrolling/sliding changes), Jason (Animation bug changes)
tests: checkintests, Mustella ScrollBar, Slider, Scroller (all required minor changes to pass)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/AnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/ScrollbarFrenzy.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -11,12 +11,13 @@

 package spark.components
 {
+import mx.core.ILayoutElement;
+import mx.events.PropertyChangeEvent;
+import mx.events.ResizeEvent;
+
 import spark.components.supportClasses.ScrollBar;
-import mx.core.ILayoutElement;
 import spark.core.IViewport;
 import spark.core.ScrollUnit;
-import mx.events.PropertyChangeEvent;
-import mx.events.ResizeEvent;

 [IconFile("VScrollBar.png")]

@@ -156,7 +157,7 @@
     override protected function sizeThumb(thumbSize:Number):void
     {
         thumb.height = thumbSize;
-        thumb.visible = thumbSize < trackSize;
+        thumb.visible = thumbSize < trackSize;
     }

     /**
@@ -178,19 +179,6 @@
                                                 localY:Number):Number
     {
         return localY;
-    }
-
-
-    /**
-     *  Implicitly update the viewport's verticalScrollPosition per the
-     *  specified scrolling unit, by setting the scrollbar's value.
-     *
-     *  @private
-     */
-    private function updateViewportVSP(scrollUnit:uint):void
-    {
-        var delta:Number = viewport.getVerticalScrollPositionDelta(scrollUnit);
-        setValue(viewport.verticalScrollPosition + delta);
     }

     /**
@@ -223,12 +211,37 @@
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
-    override public function page(increase:Boolean = true):void
-    {
-        if (!viewport)
-            super.page(increase);
-        else
-            updateViewportVSP((increase) ? ScrollUnit.PAGE_DOWN : ScrollUnit.PAGE_UP);
+     override public function page(increase:Boolean = true):void
+    {
+        var oldPageSize:Number;
+        if (viewport)
+        {
+            // Want to use ScrollBar's page() implementation to get the same
+            // animated behavior for scrollbars with and without viewports.
+            // For now, just change pageSize temporarily and call the superclass
+            // implementation.
+            oldPageSize = pageSize;
+            pageSize = Math.abs(viewport.getVerticalScrollPositionDelta(
+                (increase) ? ScrollUnit.PAGE_DOWN : ScrollUnit.PAGE_UP));
+        }
+        super.page(increase);
+        if (viewport)
+            pageSize = oldPageSize;
+    }
+
+    /**
+     * @private
+     */
+    override protected function animatePaging(newValue:Number, pageSize:Number):void
+    {
+        if (viewport)
+        {
+            var vpPageSize:Number = Math.abs(viewport.getVerticalScrollPositionDelta(
+                (newValue > value) ? ScrollUnit.PAGE_DOWN : ScrollUnit.PAGE_UP));
+            super.animatePaging(newValue, vpPageSize);
+            return;
+        }
+        super.animatePaging(newValue, pageSize);
     }

     /**
@@ -261,13 +274,24 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    override public function step(increase:Boolean = true):void
-    {
-        if (!viewport)
-            super.step(increase);
-        else
-            updateViewportVSP((increase) ? ScrollUnit.DOWN : ScrollUnit.UP);
-    }
+     override public function step(increase:Boolean = true):void
+    {
+        var oldStepSize:Number;
+        if (viewport)
+        {
+            // Want to use ScrollBar's step() implementation to get the same
+            // animated behavior for scrollbars with and without viewports.
+            // For now, just change pageSize temporarily and call the superclass
+            // implementation.
+            oldStepSize = stepSize;
+            stepSize = Math.abs(viewport.getVerticalScrollPositionDelta(
+                (increase) ? ScrollUnit.DOWN : ScrollUnit.UP));
+        }
+        super.step(increase);
+        if (viewport)
+            stepSize = oldStepSize;
+    }
+

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 7943
Author:   hmuller@adobe.com
Date:     2009-06-18T00:50:32.894448Z

Log Message:
-----------
Range et al PARB changes, Opus #2.

Made the following protected Scrollbar functions mx_internal:
  viewportResizeHandler
  viewportContentWidthChangeHandler
  viewportContentHeightChangeHandler
  viewportHorizontalScrollPositionChangeHandler
  viewportVerticalScrollPositionChangeHandler

Made TrackBase/stage_mouseWheelHandler private

QE Notes: Shouldn't break anything
Doc Notes:
Bugs:
Reviewer: Glenn

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -11,12 +11,15 @@

 package spark.components
 {
+import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
 import mx.events.ResizeEvent;

 import spark.components.supportClasses.ScrollBar;
 import spark.core.IViewport;
 import spark.core.NavigationUnit;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Other metadata
@@ -275,6 +278,7 @@
     }

     /**
+     *  @private
      *  Set this scrollbar's value to the viewport's current
      *  verticalScrollPosition.
      *
@@ -285,13 +289,14 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    override protected function viewportVerticalScrollPositionChangeHandler(event:PropertyChangeEvent):void
+    override mx_internal function viewportVerticalScrollPositionChangeHandler(event:PropertyChangeEvent):void
     {
         if (viewport)
             value = viewport.verticalScrollPosition;
     }

     /**
+     *  @private
      *  Set this scrollbar's maximum to the viewport's contentHeight
      *  less the viewport height and its pageSize to the viewport's height.
      *
@@ -300,7 +305,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    override protected function viewportResizeHandler(event:ResizeEvent):void
+    override mx_internal function viewportResizeHandler(event:ResizeEvent):void
     {
         if (viewport)
         {
@@ -315,6 +320,7 @@
     }

     /**
+     *  @private
      *  Set this scrollbar's maximum to the viewport's contentHeight
      *  less the viewport height.
      *
@@ -326,7 +332,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    override protected function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
+    override mx_internal function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
     {
         if (viewport)
             maximum = viewport.contentHeight - viewport.height;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3606
Author:   hmuller@adobe.com
Date:     2008-10-13T23:26:54.103513Z

Log Message:
-----------
Patch for the problem ("not a bug") reported in issue SDK17078.

When the scrollbar thumb SkinPart is added, we clear vertical
constraints (FxVScrollBar) or horizontal constraints (FXHScrollBar).

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -160,7 +160,23 @@
             super.step(increase);
         else
             updateViewportVSP((increase) ? Keyboard.DOWN : Keyboard.UP);
-    }
+    }
+
+    /**
+     *  @private
+     */
+    override protected function partAdded(partName:String, instance:Object):void
+    {
+        if (instance == thumb)
+        {
+            thumb.setConstraintValue("top", undefined);
+            thumb.setConstraintValue("bottom", undefined);
+            thumb.setConstraintValue("verticalCenter", undefined);
+        }
+
+        super.partAdded(partName, instance);
+    }
+

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3756
Author:   gruehle@adobe.com
Date:     2008-10-20T21:38:18.681299Z

Log Message:
-----------
Adding placeholder icons for the Gumbo components that appear in the FB components panel. Where possible, these are simply copies of the Halo icons. There were some that didn't have a direct Halo counterpart, so the closest match was chosen.

QE Notes: None
Doc Notes: None
Bugs: SDK-17668
Reviewer: -

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/HGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/VGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/HGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxSpinner.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxToggleButton.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.png</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -18,6 +18,8 @@
 import mx.events.PropertyChangeEvent;
 import mx.events.ResizeEvent;
 import flash.events.Event;
+
+[IconFile("FxVScrollBar.png")]

 /**
  *  The FxVScrollBar (vertical ScrollBar) control lets you control


Investigate this at a later time

Investigate this at a later time

--- src/org/igniterealtime/xiff/conference/RoomOccupant.as
+++ src/org/igniterealtime/xiff/conference/RoomOccupant.as
@@ -115,7 +115,11 @@
 		{
 			return true;
 		}
+		public function set online( value:Boolean ):void
+		{
+		}

+
 		/**
 		 *
 		 */


Possible type 3 optimization, but well... it doesn't really make the code
weirder, but it does add a bit more code.
( http://smallwig.blogspot.com/2008/04/smallwig-theory-of-optimization.html
  mdb pointed this post out to me.)
It just bugged me that we use this player to play background music
in whirled, and in that circumstance 99% of the time nobody cares about
these events, so why have a timer to calculate and fire them off?

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@712 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/media/Mp3AudioPlayer.as
+++ src/as/com/threerings/flash/media/Mp3AudioPlayer.as
@@ -142,8 +142,44 @@
                 // ignore
             }
         }
-        _positionChecker.reset();
+        _state = MediaPlayerCodes.STATE_UNREADY;
+        checkNeedTimer();
         _lastPosition = NaN;
+    }
+
+    override public function addEventListener (
+        type :String, listener :Function, useCapture :Boolean = false,
+        priority :int = 0, useWeakReference :Boolean = false) :void
+    {
+        super.addEventListener(type, listener, useCapture, priority, useWeakReference);
+
+        if (type == MediaPlayerCodes.POSITION) {
+            checkNeedTimer();
+        }
+    }
+
+    override public function removeEventListener (
+        type :String, listener :Function, useCapture :Boolean = false) :void
+    {
+        super.removeEventListener(type, listener, useCapture);
+
+        if (type == MediaPlayerCodes.POSITION) {
+            checkNeedTimer();
+        }
+    }
+
+    protected function checkNeedTimer () :void
+    {
+        const needTimer :Boolean = (_state == MediaPlayerCodes.STATE_PLAYING) &&
+            hasEventListener(MediaPlayerCodes.POSITION);
+        const isRunning :Boolean = _positionChecker.running;
+        if (needTimer != isRunning) {
+            if (needTimer) {
+                _positionChecker.start();
+            } else {
+                _positionChecker.reset();
+            }
+        }
     }

     /**
@@ -185,15 +221,7 @@
     protected function updateState (newState :int) :void
     {
         _state = newState;
-
-        if (_state == MediaPlayerCodes.STATE_PLAYING) {
-            _positionChecker.start();
-
-        } else {
-            _positionChecker.reset();
-            // pause() ends up checking the position one last time before dispatching state..
-        }
-
+        checkNeedTimer();
         dispatchEvent(new ValueEvent(MediaPlayerCodes.STATE, newState));
     }


minor fixes

minor fixes

--- src/aerys/minko/scene/node/Group.as
+++ src/aerys/minko/scene/node/Group.as
@@ -274,9 +274,9 @@
 			return loader;
 		}

-		public function get(path : String) : SceneIterator
-		{
-			return new SceneIterator(path, new <ISceneNode>[this]);
+		public function get(xpath : String) : SceneIterator
+		{
+			return new SceneIterator(xpath, new <ISceneNode>[this]);
 		}

 		private function loaderCompleteHandler(loader	: ILoader,


Transferred from the Adobe Open Source Subversion Repository

Revision: 3732
Author:   jvroom@adobe.com
Date:     2008-10-17T23:23:59.708467Z

Log Message:
-----------
Fix for HTTPMultiService.showBusyCursor property.   The AbstractOperation class was
setting the property in its constructor.   The Operation class though is keying off of
the property being set at the operation level and ignores the service level setting
in that case.  So by always setting the property at the operation level, the service
level setting never took effect.

Thanks to Sameer for finding the bug, Seth for the review.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -77,7 +77,6 @@

         _log = Log.getLogger("mx.rpc.http.HTTPService");

-        showBusyCursor = false;
         concurrency = Concurrency.MULTIPLE;
     }

@@ -971,7 +970,7 @@

     private var _method:String = HTTPRequestMessage.GET_METHOD;

-    private var _showBusyCursor:Boolean;
+    private var _showBusyCursor:Boolean = false;

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4653
Author:   gruehle@adobe.com
Date:     2009-01-24T00:35:28.719572Z

Log Message:
-----------
Fix RTE in FxFocusSkin.updateDisplayList() when focusManager is null.

QE Notes: None
Doc Notes: None
Bugs: SDK-17789, SDK-18456
Reviewer: Jason
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxFocusSkin.as

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -86,6 +86,10 @@

     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
+        // Early exit if we don't have a focus manager
+        if (!focusManager)
+            return;
+
         // Grab a bitmap of the focused object
         var focusObject:Object = focusManager.getFocus();
         var bitmapData:BitmapData = new BitmapData(


Transferred from the Adobe Open Source Subversion Repository

Revision: 5119
Author:   smgilson@adobe.com
Date:     2009-03-01T15:19:39.936226Z

Log Message:
-----------
Clean up some ASDoc tags from the addition of the @productversion/@playerversion tags

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.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/halo/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/NCManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/StringValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SchemaMarshaller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IInteractiveObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ContainerRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.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/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.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/flex4/src/mx/effects/effectClasses/FxResizeInstance.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/videoClasses/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/Schema.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/HexEncoder.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/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectContainerInterface.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/effectClasses/SoundEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISpriteInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/HaloRectBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Label.as
+++ frameworks/projects/mx/src/mx/controls/Label.as
@@ -344,11 +344,6 @@
             </TEXTFORMAT>
         trace(myLabel.text);
             This is bold.
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 9
-    *  @playerversion AIR 1.1
-    *  @productversion Flex 3
     */

     //--------------------------------------------------------------------------
@@ -1400,11 +1395,6 @@
             g.drawRect(0, 0, unscaledWidth, unscaledHeight);
             g.endFill();
         }
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 9
-        *  @playerversion AIR 1.1
-        *  @productversion Flex 3
         */

         // The textField occupies the entire Label bounds minus the padding.


F fix minor bug in ShaderPart: translation must not be applyed when computing cameraDirection in shader

--- src/aerys/minko/render/shader/part/ShaderPart.as
+++ src/aerys/minko/render/shader/part/ShaderPart.as
@@ -159,7 +159,7 @@

 		protected function get cameraDirection() : SFloat
 		{
-			return multiply4x4(float4(0, 0, 1, 1), viewToWorldMatrix);
+			return multiply3x3(float4(0, 0, 1, 1), viewToWorldMatrix);
 		}

 		protected function get cameraZNear() : SFloat


the ArcBallController now uses the new Matrix4x4.lookAt() method

--- src/aerys/minko/scene/controller/camera/ArcBallController.as
+++ src/aerys/minko/scene/controller/camera/ArcBallController.as
@@ -41,27 +41,27 @@
 		{
 			return _distance;
 		}
-		public function set distance(v : Number) : void
-		{
-			_distance = v;
+		public function set distance(value : Number) : void
+		{
+			_distance = value;
 		}

 		public function get theta() : Number
 		{
 			return _theta;
 		}
-		public function set theta(v : Number) : void
-		{
-			_theta = v;
+		public function set theta(value : Number) : void
+		{
+			_theta = value;
 		}

 		public function get phi() : Number
 		{
 			return _phi;
 		}
-		public function set phi(v : Number)	: void
-		{
-			_phi = v;
+		public function set phi(value : Number)	: void
+		{
+			_phi = value;
 		}

 		public function get lookAt() : Vector4
@@ -78,36 +78,36 @@
 		{
 			return _minDistance;
 		}
-		public function set minDistance(v : Number)	: void
-		{
-			_minDistance = v;
+		public function set minDistance(value : Number)	: void
+		{
+			_minDistance = value;
 		}

 		public function get maxDistance() : Number
 		{
 			return _maxDistance;
 		}
-		public function set maxDistance(v : Number)	: void
-		{
-			_maxDistance = v;
+		public function set maxDistance(value : Number)	: void
+		{
+			_maxDistance = value;
 		}

 		public function get distanceStep() : Number
 		{
 			return _distanceStep;
 		}
-		public function set distanceStep(v : Number) : void
-		{
-			_distanceStep = v;
+		public function set distanceStep(value : Number) : void
+		{
+			_distanceStep = value;
 		}

 		public function get thetaStep() : Number
 		{
 			return _thetaStep;
 		}
-		public function set thetaStep(v : Number) : void
-		{
-			_thetaStep = v;
+		public function set thetaStep(value : Number) : void
+		{
+			_thetaStep = value;
 		}

 		public function get phiStep() : Number
@@ -115,9 +115,9 @@
 			return _phiStep;
 		}

-		public function set phiStep(v : Number)	: void
-		{
-			_phiStep = v;
+		public function set phiStep(value : Number)	: void
+		{
+			_phiStep = value;
 		}

 		public function ArcBallController()
@@ -170,7 +170,7 @@
 					_distance * Math.sin(_theta) * Math.sin(_phi) + _lookAt.z
 				);

-				TMP_MATRIX.lookAt(_position, _lookAt, _up).invert();
+				TMP_MATRIX.lookAt(_lookAt, _position, _up);

 				var numTargets : uint = this.numTargets;
 				for (var targetId : uint = 0; targetId < numTargets; ++targetId)


added DisplayUtil.sortDisplayChildren, for quicksorting the contents of a DisplayObjectContainer

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@421 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/DisplayUtil.as
+++ src/as/com/threerings/flash/DisplayUtil.as
@@ -21,18 +21,73 @@

 package com.threerings.flash {

+import com.threerings.util.ClassUtil;
+
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
-
 import flash.geom.Point;
 import flash.geom.Rectangle;

 import mx.core.IRawChildrenContainer;

-import com.threerings.util.ClassUtil;
-
 public class DisplayUtil
 {
+    /**
+     * Quicksorts container's children.
+     *
+     * lessEqualComp is a function that takes two DisplayObjects, and returns Boolean 'true' if the
+     * first object is less than or equal to the second.
+     *
+     * If lessEqualComp is null, sortDisplayChildren will sort container so that objects with smaller
+     * y-values appear before objects with larger y-values.
+     */
+    public static function sortDisplayChildren (container :DisplayObjectContainer, lessEqualComp :Function = null) :void
+    {
+        qsortDisplayChildren(container, 0, container.numChildren - 1, (null != lessEqualComp ? lessEqualComp : displayObjectYLessEqual));
+    }
+
+    private static function displayObjectYLessEqual (a :DisplayObject, b :DisplayObject) :Boolean
+    {
+        return (a.y <= b.y);
+    }
+
+    /** Helper function for sortDisplayChildren. */
+    private static function qsortDisplayChildren (container :DisplayObjectContainer, left :int, right :int, lessEqualComp :Function) :void
+    {
+        if (right - left > 1) { // containers of size 0 or 1 are already sorted
+
+            // arbitrarily choose the element in the middle of the sort list as the pivot element
+            var pivotIndex :int = left + ((right - left) * 0.5);
+
+            pivotIndex = partitionDisplayChildren(container, left, right, pivotIndex, lessEqualComp);
+            qsortDisplayChildren(container, left, pivotIndex - 1, lessEqualComp);
+            qsortDisplayChildren(container, pivotIndex + 1, right, lessEqualComp);
+        }
+    }
+
+    /** Helper function for qsortDisplayChildren. */
+    private static function partitionDisplayChildren (
+        container :DisplayObjectContainer, left :int, right :int, pivotIndex :int, lessEqualComp :Function) :int
+    {
+        var pivotObj :DisplayObject = container.getChildAt(pivotIndex);
+
+        container.swapChildrenAt(pivotIndex, right); // move pivot to end
+
+        var storeIndex :int = left;
+
+        for (var i :int = left; i < right; ++i) {
+            var thisObj :DisplayObject = container.getChildAt(i);
+            if (lessEqualComp(thisObj, pivotObj)) {
+                container.swapChildrenAt(i, storeIndex);
+                storeIndex += 1;
+            }
+        }
+
+        container.swapChildrenAt(storeIndex, right);
+
+        return storeIndex;
+    }
+
     /**
      * Call the specified function for the display object and all descendants.
      *
@@ -294,5 +349,7 @@
         }
         return inStr;
     }
+
+
 }
 }


fixed bug where default value wasn't being cast to the requested type

--- WeaveJS/src/weavejs/data/column/AlwaysDefinedColumn.as
+++ WeaveJS/src/weavejs/data/column/AlwaysDefinedColumn.as
@@ -76,11 +76,7 @@
 				var value:* = internalDynamicColumn.getValueFromKey(key, dataType);

 				if (StandardLib.isUndefined(value, true))
-				{
-					value = _cachedDefaultValue;
-					if (dataType != null)
-						value = EquationColumnLib.cast(value, dataType);
-				}
+					value = EquationColumnLib.cast(_cachedDefaultValue, dataType);

 				return value;
 			}
@@ -95,13 +91,9 @@
 			if (value === undefined)
 			{
 				value = internalDynamicColumn.getValueFromKey(key, dataType);
-				//if (StandardLib.compare(value, EquationColumnLib.cast(undefined, dataType)) == 0)
+
 				if (StandardLib.isUndefined(value, true))
-				{
-					value = _cachedDefaultValue;
-					if (dataType != null)
-						value = EquationColumnLib.cast(value, dataType);
-				}
+					value = EquationColumnLib.cast(_cachedDefaultValue, dataType);

 				d2d_type_key.set(dataType, key, value === undefined ? UNDEFINED : value);
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11984
Author:   jimurphy@adobe.com
Date:     2009-11-19T15:30:34.821822Z

Log Message:
-----------
Merged 3.x revisions 11672,11898,11927,11952 -> trunk
........
  r11672 | clucier@adobe.com | 2009-11-11 17:07:26 -0500 (Wed, 11 Nov 2009) | 10 lines

  Bugs: SDK-23661
........
  r11898 | clucier@adobe.com | 2009-11-17 12:38:44 -0500 (Tue, 17 Nov 2009) | 10 lines

  Bugs: SDK-22721
........
  r11927 | clucier@adobe.com | 2009-11-18 08:42:28 -0500 (Wed, 18 Nov 2009) | 10 lines

  Bugs: SDK-16241
........
  r11952 | clucier@adobe.com | 2009-11-18 15:42:08 -0500 (Wed, 18 Nov 2009) | 10 lines

  Bugs: SDK-15988
........

The majority of files in this change list are svn property changes - removing the svn:mergeinfo property

The following paths are the actual changes from 3.x that were merged:
frameworks/projects/rpc/src/mx/rpc/soap/SOAPDecoder.as
frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
frameworks/projects/framework/src/mx/formatters/NumberBase.as
frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as
frameworks/projects/framework/src/mx/controls/ColorPicker.as

Modified Paths:
--------------
127 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/ColorPicker.as
+++ frameworks/projects/mx/src/mx/controls/ColorPicker.as
@@ -889,9 +889,7 @@
     {
         if (!indexFlag)
         {
-            var SI:int = findColorByName(value);
-            if (SI != -1)
-                super.selectedIndex = SI;
+            super.selectedIndex = findColorByName(value);
         }
         else
         {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/utils/TextUtil.as
+++ frameworks/projects/spark/src/spark/utils/TextUtil.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.utils
+package mx.utils
 {

 import flash.utils.describeType;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10951
Author:   klin@adobe.com
Date:     2009-10-09T17:15:44.211985Z

Log Message:
-----------
TitleWindow initial checkin. This is the spark equivalent of the mx:TitleWindow. One major difference is that we support a new skinstate called active. In this state, the titlebar of the window that is in focus or if one of that window's children is in focus.

-Added TitleWindow component to spark framework.
-Added new TitleWindowBoundsEvent to define events when you drag a TitleWindow.
-Added TitleWindow default skin and wireframe skin.
-Included TitleWindow to manifests and stylesheets.
-Added TitleWindow checkin test.
-Modified Panel's controlBarGroupProperties and related constants to be mx_internal in order for titlewindow to have the correct state when the controlBar is present and visible.
-Added ASDoc example for TW.
-Added icon for FB integration.
-Changed mx:TitleWindow's Alternative metadata to point to the spark TitleWindow.

SDK-23648 - small cosmetic fix on TitleWindow skin for titleDisplay overlapping with the closeButton

QE notes: TitleWindow ready for testing.
Doc notes: Yes
Bugs: SDK-23648
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TitleWindow.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/WireframeClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults-3.0.0.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/defaults.css</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/SimpleTitleWindowExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TitleWindowBoundsEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TitleWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/TitleWindowApp.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/TitleWindowTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/spark/views/TitleWindowTests.mxml</path>

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

--- frameworks/projects/wireframe/src/WireframeClasses.as
+++ frameworks/projects/wireframe/src/WireframeClasses.as
@@ -56,6 +56,8 @@
 	import spark.skins.wireframe.SpinnerSkin; SpinnerSkin;
 	import spark.skins.wireframe.TextAreaSkin; TextAreaSkin;
 	import spark.skins.wireframe.TextInputSkin; TextInputSkin;
+	import spark.skins.wireframe.TitleWindowCloseButtonSkin; TitleWindowCloseButtonSkin;
+	import spark.skins.wireframe.TitleWindowSkin; TitleWindowSkin;
 	import spark.skins.wireframe.ToggleButtonSkin; ToggleButtonSkin;
 	import spark.skins.wireframe.VideoPlayerSkin; VideoPlayerSkin;
 	import spark.skins.wireframe.VScrollBarSkin; VScrollBarSkin;


Remove unused local variable

Remove unused local variable

--- src/org/flintparticles/integration/away3d/v4/A3D4Renderer.as
+++ src/org/flintparticles/integration/away3d/v4/A3D4Renderer.as
@@ -63,13 +63,10 @@
 		 * @param container An Away3D object container. The particle display
 		 * objects are created inside this object container.
 		 */
-		///Added by Michael--second param defines recycling mode
-		private var _recycleParticles:Boolean=false;
-		public function A3D4Renderer( container:ObjectContainer3D ,recycleParticles:Boolean=false)
+		public function A3D4Renderer( container:ObjectContainer3D )
 		{
 			super();
 			_container = container;
-			_recycleParticles=recycleParticles;
 		}

 		/**