Transferred from the Adobe Open Source Subversion Repository

Revision: 2557
Author:   jimurphy@adobe.com
Date:     2008-07-22T14:15:44.500232Z

Log Message:
-----------
Merge 3.0.x revisions [2544,2546,2551] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.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/frameworks/projects/framework/src/mx/containers/FormHeading.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Tile.as
+++ frameworks/projects/mx/src/mx/containers/Tile.as
@@ -444,8 +444,9 @@
                 if (!isNaN(unscaledExplicitWidth))
                 {
                     // If we have an explicit height set,
-                    // see how many children can fit in the given height
-                    majorAxis = Math.floor(unscaledExplicitWidth /
+                    // see how many children can fit in the given height:
+                    // majorAxis * (cellWidth + horizontalGap) - horizontalGap == unscaledExplicitWidth
+                    majorAxis = Math.floor((unscaledExplicitWidth + horizontalGap) /
                                            (cellWidth + horizontalGap));
                 }
             }
@@ -455,8 +456,9 @@
                 if (!isNaN(unscaledExplicitHeight))
                 {
                     // If we have an explicit height set,
-                    // see how many children can fit in the given height
-                    majorAxis = Math.floor(unscaledExplicitHeight /
+                    // see how many children can fit in the given height:
+                    // majorAxis * (cellHeight + verticalGap) - verticalGap == unscaledExplicitHeight
+                    majorAxis = Math.floor((unscaledExplicitHeight + verticalGap) /
                                            (cellHeight + verticalGap));
                 }
             }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/effects/Resize.as
+++ frameworks/projects/mx/src/mx/effects/Resize.as
@@ -0,0 +1,231 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects
+{
+
+import mx.effects.effectClasses.ResizeInstance;
+
+/**
+ *  The Resize effect changes the width, height, or both dimensions
+ *  of a component over a specified time interval.
+ *
+ *
If you specify only two of the three values of the
+ *  widthFrom, widthTo, and
+ *  widthBy properties, Flex calculates the third.
+ *  If you specify all three, Flex ignores the widthBy value.
+ *  If you specify only the widthBy or the
+ *  widthTo value, the widthFrom property
+ *  is set to be the object's current width.
+ *  The same is true for heightFrom, heightTo,
+ *  and heightBy property values.

+ *
+ *
If you specify a Resize effect for a resize trigger,
+ *  and if you do not set the six From, To, and By properties,
+ *  Flex sets them to create a smooth transition
+ *  between the object's old size and its new size.

+ *
+ *  @mxml
+ *
+ *
The <mx:Resize> tag
+ *  inherits all of the tag attributes of its superclass,
+ *  and adds the following tab attributes:

+ *
+ *

+ *  <mx:Resize
+ *    id="ID"
+ *    widthFrom="val"
+ *    heightFrom="val"
+ *    widthTo="val"
+ *    heightTo="val"
+ *    widthBy="val"
+ *    heightBy="val"
+ *    hideChildrenTargets=""
+ *  />
+ *

+ *
+ *  @includeExample examples/ResizeEffectExample.mxml
+ *
+ *  @see mx.effects.effectClasses.ResizeInstance
+ *  @see mx.effects.Tween
+ */
+public class Resize extends TweenEffect
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var AFFECTED_PROPERTIES:Array =
+	[
+		"width", "height",
+		"explicitWidth", "explicitHeight",
+		"percentWidth", "percentHeight"
+	];
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target The Object to animate with this effect.
+	 */
+	public function Resize(target:Object = null)
+	{
+		super(target);
+
+		instanceClass = ResizeInstance;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+ 	//----------------------------------
+	//  heightBy
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Number of pixels by which to modify the height of the component.
+	 *  Values may be negative.
+	 */
+	public var heightBy:Number;
+
+ 	//----------------------------------
+	//  heightFrom
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Initial height, in pixels.
+	 *  If omitted, Flex uses the current height.
+	 */
+	public var heightFrom:Number;
+
+ 	//----------------------------------
+	//  heightTo
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Final height, in pixels.
+	 */
+	public var heightTo:Number;
+
+ 	//----------------------------------
+	//  hideChildrenTargets
+	//----------------------------------
+
+	/**
+	 *  An Array of Panel containers.
+	 *  The children of these Panel containers are hidden while the Resize
+	 *  effect plays.
+	 *
+	 *
You use data binding syntax to set this property in MXML,
+	 *  as the following example shows, where panelOne and panelTwo
+	 *  are the names of two Panel containers in your application:

+	 *
+	 *
<mx:Resize id="e" heightFrom="100" heightTo="400"
+	 *	hideChildrenTargets="{[panelOne, panelTwo]}" />

+	 */
+	public var hideChildrenTargets:Array /* of Panel */;
+
+ 	//----------------------------------
+	//  widthBy
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Number of pixels by which to modify the width of the component.
+	 *  Values may be negative.
+	 */
+	public var widthBy:Number;
+
+ 	//----------------------------------
+	//  widthFrom
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Initial width, in pixels.
+	 *  If omitted, Flex uses the current width.
+	 */
+	public var widthFrom:Number;
+
+ 	//----------------------------------
+	//  widthTo
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Final width, in pixels.
+	 */
+	public var widthTo:Number;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function getAffectedProperties():Array /* of String */
+	{
+		return AFFECTED_PROPERTIES;
+	}
+
+	/**
+	 *  @private
+	 */
+	override protected function initInstance(instance:IEffectInstance):void
+	{
+		super.initInstance(instance);
+
+		var resizeInstance:ResizeInstance = ResizeInstance(instance);
+
+		if (!isNaN(widthFrom))
+			resizeInstance.widthFrom = widthFrom;
+		if (!isNaN(widthTo))
+			resizeInstance.widthTo = widthTo;
+		if (!isNaN(widthBy))
+			resizeInstance.widthBy = widthBy;
+		if (!isNaN(heightFrom))
+			resizeInstance.heightFrom = heightFrom;
+		if (!isNaN(heightTo))
+			resizeInstance.heightTo = heightTo;
+		if (!isNaN(heightBy))
+			resizeInstance.heightBy = heightBy;
+		resizeInstance.hideChildrenTargets = hideChildrenTargets;
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11942
Author:   dloverin@adobe.com
Date:     2009-11-18T17:33:13.065717Z

Log Message:
-----------
StyleManager fixes.

Stop using the styleManager property in a constructor.
framework/src/mx/containers/DividedBox.as
framework/src/mx/containers/Form.as
framework/src/mx/controls/ButtonBar.as

Cache inheriting styles. Also made static arrays in StyleManagerImpl per-instance.
framework/src/mx/events/FlexChangeEvent.as
framework/src/mx/styles/StyleManagerImpl.as

Remove static StyleManager methods that were new to Flex 4 (qualifiedTypeSelectors property, getStyleDeclarations(), hasAdvancedSelectors(), hasPseudoCondition()).
framework/src/mx/styles/StyleManager.as

Update copyright.
framework/src/mx/styles/CSSMergedStyleDeclaration.as

QE notes: None.
Doc notes: None.
Bugs: SDK-24215
Reviewer: Alex
Tests run: checkintests, containers/DividedBox, containers/form, components/ButtonBar, Managers/StyleManager, PerModuleStyleManager
Is noteworthy for integration: yes - StyleManager performance improvement

Modified Paths:
--------------
<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/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSMergedStyleDeclaration.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/events/FlexChangeEvent.as</path>

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

--- frameworks/projects/mx/src/mx/containers/DividedBox.as
+++ frameworks/projects/mx/src/mx/containers/DividedBox.as
@@ -20,6 +20,7 @@
 import mx.containers.dividedBoxClasses.BoxDivider;
 import mx.core.EdgeMetrics;
 import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModuleFactory;
 import mx.core.IInvalidating;
 import mx.core.IUIComponent;
 import mx.core.UIComponent;
@@ -328,9 +329,6 @@
 	{
 		super();

-        styleManager.registerSizeInvalidatingStyle("dividerAffordance");
-        styleManager.registerSizeInvalidatingStyle("dividerThickness");
-
         addEventListener(ChildExistenceChangedEvent.CHILD_ADD, childAddHandler);
 		addEventListener(ChildExistenceChangedEvent.CHILD_REMOVE,
 						 childRemoveHandler);
@@ -430,6 +428,23 @@
 	 */
 	private var numLayoutChildren:int = 0;

+    //--------------------------------------------------------------------------
+    //
+    //  Overridden Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set moduleFactory(moduleFactory:IFlexModuleFactory):void
+    {
+        super.moduleFactory = moduleFactory;
+
+        styleManager.registerSizeInvalidatingStyle("dividerAffordance");
+        styleManager.registerSizeInvalidatingStyle("dividerThickness");
+    }
+
 	//--------------------------------------------------------------------------
 	//
 	//  Properties


Transferred from the Adobe Open Source Subversion Repository

Revision: 13713
Author:   jimurphy@adobe.com
Date:     2010-01-22T15:29:59.207526Z

Log Message:
-----------
Merge /branches/4.0.0 revs 13667,13672,13683,13684,13691,13696,13708 -> trunk
Block /branches/4.0.0 revs 13682,13696,13702

------------------------------------------------------------------------
r13667 | cframpto@adobe.com | 2010-01-20 14:30:00 -0500 (Wed, 20 Jan 2010) | 11 lines

TLB Build  591.  Approved for checkin.

Looks like an IME focus issue was fixed.

------------------------------------------------------------------------

------------------------------------------------------------------------
r13672 | aharui@adobe.com | 2010-01-20 16:26:01 -0500 (Wed, 20 Jan 2010) | 11 lines

Focusable renderers cause focusOutHandler to destroy the editor while destroyItemEditor is in progress causing itemEditorInstance to be null as we finish up the method.

Add null check.

QE Notes: none
Doc Notes:  none
SDK-25151
------------------------------------------------------------------------

------------------------------------------------------------------------
r13683 | jszeto@adobe.com | 2010-01-20 23:36:24 -0500 (Wed, 20 Jan 2010) | 13 lines

Added missing metadata

http://bugs.adobe.com/jira/browse/SDK-25168 - Cannot set contentBackgroundAlpha in MXML on mx:VideoDisplay control [missing metadata]
SDK-25168
Added metadata

SDK-25168
------------------------------------------------------------------------

------------------------------------------------------------------------
r13684 | jszeto@adobe.com | 2010-01-20 23:42:17 -0500 (Wed, 20 Jan 2010) | 13 lines

Memory fix

http://bugs.adobe.com/jira/browse/SDK-25136 - BitmapFill doesn't destroy BitmapData if source is Class
SDK-25136
Set bitmapCreate flag to true if source is Class.

SDK-25136
------------------------------------------------------------------------

------------------------------------------------------------------------
r13691 | gauravj@adobe.com | 2010-01-21 15:13:29 -0500 (Thu, 21 Jan 2010) | 8 lines

Fix the build.xml file that gets packaged at the root for frameworks folder.

SDK-25188 Reviewed By: Jim
------------------------------------------------------------------------

------------------------------------------------------------------------
r13696 | rvollmar@adobe.com | 2010-01-21 16:54:04 -0500 (Thu, 21 Jan 2010) | 1 line

Removing.  These will be hosted elsewhere.
------------------------------------------------------------------------

------------------------------------------------------------------------
r13708 | gauravj@adobe.com | 2010-01-22 00:16:04 -0500 (Fri, 22 Jan 2010) | 8 lines

Fixes the some SDK BOM clean up tasks

SDK-25178 SDK-25197 SDK-25198 SDK-25199 Reviewed By: will be Jim
------------------------------------------------------------------------

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/build.xml</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/src/flashx/textLayout/edit/EditManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.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/frameworks/libs/textLayout.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/bundles/en_US/docs/packages.dita</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/src/flashx/textLayout/BuildInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/src/flashx/textLayout/edit/IMEClient.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/rsls/textLayout_1.0.0.590.swf</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/4.0.0/frameworks/rsls/textLayout_1.0.0.591.swf" copyfrom-rev="13667" action="A">/flex/sdk/trunk/frameworks/rsls/textLayout_1.0.0.591.swf</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/air-config.xml</path>

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

--- frameworks/projects/mx/src/mx/controls/VideoDisplay.as
+++ frameworks/projects/mx/src/mx/controls/VideoDisplay.as
@@ -34,6 +34,17 @@

 include "../styles/metadata/BackgroundStyles.as"
 include "../styles/metadata/BorderStyles.as"
+
+
+/**
+ *  The alpha of the content background for this component.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="contentBackgroundAlpha", type="Number", inherit="yes", theme="spark", minValue="0.0", maxValue="1.0")]

 /**
  *  Color of the content area of the component.


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

--- frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
+++ frameworks/projects/mx/src/mx/skins/halo/HaloBorder.as
@@ -30,6 +30,11 @@

 /**
  *  Defines the appearance of the default border for the Halo theme.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class HaloBorder extends RectangularBorder
 {
@@ -65,6 +70,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function HaloBorder()
 	{
@@ -763,6 +773,11 @@
 		var c4:Number = 0xC4CCCC;
 		var c5:Number = 0xEEEEEE;
 		var c6:Number = 0xD5DDDD;
+		*
+		*  @langversion 3.0
+		*  @playerversion Flash 9
+		*  @playerversion AIR 1.1
+		*  @productversion Flex 3
 		*/

 		drawDropShadow(0, 0, width, height, 0, 0, 0, 0);


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.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/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.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/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.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/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.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/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.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/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.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/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.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/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
+++ frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
@@ -1075,6 +1075,9 @@
      *  than clear any credentials that have been cached for use in automatic reconnects.</p>
      *
      *  @param agent Legacy argument. The MessageAgent that is initiating the logout.
+     *
+     *  @return Returns a token that client code may
+     *  add a responder to in order to handle success or failure directly.
      *
      *  @return Returns a token that client code may
      *  add a responder to in order to handle success or failure directly.


Transferred from the Adobe Open Source Subversion Repository

Revision: 12822
Author:   hhillen@paciellogroup.com
Date:     2009-12-11T01:59:23.162545Z

Log Message:
-----------
Changes to improve screen reader compatibility with ComboBoxAccImpl. Created ListAccImpl.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -196,7 +196,7 @@
 //  Other metadata
 //--------------------------------------

-[AccessibilityClass(implementation="spark.accessibility.ListBaseAccImpl")]
+[AccessibilityClass(implementation="spark.accessibility.ListAccImpl")]

 [DefaultTriggerEvent("change")]

@@ -277,7 +277,7 @@

     /**
      *  @private
-     *  Placeholder for mixin by ListBaseAccImpl.
+     *  Placeholder for mixin by ListAccImpl.
      */
     mx_internal static var createAccessibilityImplementation:Function;


avoided repetition of code when checking for campaign data

--- source/actionscript/agnostic/src/eu/alebianco/air/extensions/analytics/Tracker.as
+++ source/actionscript/agnostic/src/eu/alebianco/air/extensions/analytics/Tracker.as
@@ -125,10 +125,10 @@
 	}

 	public function hasCampaignData():Boolean {
-		return (handleResultFromExtension(context.call("getCampaignData"), String) as String) != null;
+		return getCampaignData() != null;
 	}
 	public function hasReferrer():Boolean {
-		return (handleResultFromExtension(context.call("getReferrer"), String) as String) != null;
+		return getReferrer() != null;
 	}
 	public function getCampaignData():String {
 		return handleResultFromExtension(context.call("getCampaignData"), String) as String;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/TileList.as
+++ frameworks/projects/mx/src/mx/controls/TileList.as
@@ -50,6 +50,13 @@
  *  @productversion Flex 3
  */
 [Effect(name="itemsChangeEffect", event="itemsChange")]
+
+/**
+ *  The layout-specific List components in Flex 3 have been replaced by a more generic
+ *  List component that takes a generic layout. To get similar behavior from the new
+ *  List component, set the layout property to TileLayout.
+ */
+[Alternative(replacement="spark.components.List", since="4.0")]

 /**
  *  The TileList control displays a number of items laid out in tiles.


align to aabb bottom

align to aabb bottom

--- bin/Data/Scripts/Editor/EditorResourceBrowser.as
+++ bin/Data/Scripts/Editor/EditorResourceBrowser.as
@@ -992,19 +992,6 @@
     @browserDragFile = GetBrowserFileFromUIElement(uiElement);
 }

-Vector3 GetNodeSize(Node@ node)
-{
-    CollisionShape@ shape = node.GetComponent("CollisionShape");
-    if (shape !is null)
-        return shape.size;
-
-    Drawable@ object = node.GetComponent("Drawable");
-    if (object !is null)
-        return object.boundingBox.size;
-
-    return Vector3(0, 0, 0);
-}
-
 void HandleBrowserFileDragEnd(StringHash eventType, VariantMap& eventData)
 {
     if (@browserDragFile is null)
@@ -1045,9 +1032,14 @@

     if (createdNode !is null)
     {
-        Vector3 pos = GetScreenCollision(ui.cursorPosition);
-        pos.y += GetNodeSize(createdNode).y/2;
-        createdNode.worldPosition = pos;
+        Drawable@ drawable = GetFirstDrawable(createdNode);
+        if (drawable !is null)
+        {
+            BoundingBox aabb = drawable.worldBoundingBox;
+            Vector3 aabbBottomCenter(aabb.center.x, aabb.min.y, aabb.center.z);
+            Vector3 offset = aabbBottomCenter - createdNode.worldPosition;
+            createdNode.worldPosition = createdNode.worldPosition - offset;
+        }
     }

     browserDragFile = null;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8385
Author:   smgilson@adobe.com
Date:     2009-07-06T19:38:43.090419Z

Log Message:
-----------
ASDoc updates for Spark layouts and core

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/MaskType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ColumnAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -29,9 +29,22 @@
  *  The SpriteVisualElement class is a light-weight Sprite-based implemention
  *  of IVisualElement.  It can be dropped in to Spark containers and be laid
  *  out and renderered correctly.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class SpriteVisualElement extends FlexSprite implements IVisualElement
 {
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function SpriteVisualElement()
     {
         super();
@@ -74,8 +87,8 @@
         _baseline = value;
         invalidateParentSizeAndDisplayList();
     }
-
-	//----------------------------------
+
+    //----------------------------------
     //  baselinePosition
     //----------------------------------

@@ -224,7 +237,7 @@
     private var _depth:Number = 0;

     /**
-     * @inheritDoc
+     * @copy spark.primitives.supportClasses.GraphicElement#depth
      */
     public function get depth():Number
     {
@@ -592,7 +605,7 @@
     }

     /**
-     *  @inheirtDoc
+     *  @copy mx.core.ILayoutElement#getLayoutBoundsWidth()
      */
     public function getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5468
Author:   mhorn@adobe.com
Date:     2009-03-20T20:03:56.963789Z

Log Message:
-----------
asdoc bug fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -2682,6 +2682,7 @@
      *  @return The DisplayObject representing the child as an object of type DisplayObject.
      *  You typically cast the return value to UIComponent,
      *  or to the type of a specific Flex control, such as ComboBox or TextArea.
+     *  Throws a run-time error if the child of the specified name does not exist.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 5339
Author:   gruehle@adobe.com
Date:     2009-03-16T23:47:29.051428Z

Log Message:
-----------
More skinning bug fixes:

SDK-19773 - Halo Slider with Spark Skin doesn't place thumb at correct initial position
SDK-19770 - backgroundDisabledColor is ignored by LinkBar
SDK-19014 - Refactor Type selectors in defaults.css

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -779,6 +779,9 @@
             verticalScrollBar.enabled = value;

         invalidateProperties();
+
+        if (border && border is IInvalidating)
+        	IInvalidating(border).invalidateDisplayList();
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5647
Author:   pfarland@adobe.com
Date:     2009-03-27T13:59:54.760468Z

Log Message:
-----------
Fixing programmatic usages of 'mx.components' to the spark equivalent after the rename.

Also fixing calls to StyleManager.getStyleDeclaration() that use an unqualified type name. Type selectors should be referenced via fully qualified ActionScript class names at runtime. When compatibility version is set to 3, getStyleDeclaration will remove the package name to match type selectors in the legacy unqualified manner.

QE: This fixes bug SDK-20253, and potentially a few other edge cases like the CursorManager RTE.
Doc: No
Checkintests: Pass

Bugs:
SDK-20253 - [rename_work] Spark RadioButton and CheckBox focus ring now highlights the label of the RadioButton

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/skins/default/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/BusyCursor.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/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.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/BusyCursor.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -487,8 +487,8 @@
         showInAutomationHierarchy = false;

         // If available, get soft-link to the TextView class to use in keyDownHandler().
-        if (ApplicationDomain.currentDomain.hasDefinition("mx.components.TextView"))
-            textViewClass = Class(ApplicationDomain.currentDomain.getDefinition("mx.components.TextView"));
+        if (ApplicationDomain.currentDomain.hasDefinition("spark.components.RichEditableText"))
+            textViewClass = Class(ApplicationDomain.currentDomain.getDefinition("spark.components.RichEditableText"));
     }

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


Cleanup comment

Cleanup comment

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -313,7 +313,7 @@
         // for example, doing a GET into a previously fetched instance
         var resultID:String = getIDAttr(dataNode);

-        // see whether we alreadyhave an object with this IDif (resultID)
+        // see whether we alreadyhave an object with this ID
         var existingObj:Object;
         if (resultID)
         {


Batch sending samples to the client, as if there are too many we will block the flash player, and that's bad

--- Agent.as
+++ Agent.as
@@ -5,9 +5,11 @@
     import flash.events.DataEvent;
     import flash.events.IOErrorEvent;
     import flash.events.SecurityErrorEvent;
+    import flash.events.TimerEvent;
     import flash.net.XMLSocket;
     import flash.system.System;
     import flash.utils.getTimer;
+    import flash.utils.Timer;
     import flash.utils.getQualifiedClassName;
     import flash.sampler.*;

@@ -20,6 +22,7 @@
 	    private var _port:int;
 	    private var _socket:XMLSocket;
 	    private var _connected:Boolean;
+	    private var _sampleSender:Timer;

     	public function Agent() {
     	    trace(PREFIX, "Loaded");
@@ -62,15 +65,43 @@
                     return;

                 case "GET SAMPLES":
-                    trace(PREFIX, "Sending", getSampleCount(), "samples");
+                    var count:int = getSampleCount();
+
+                    trace(PREFIX, "Sending", count, "samples");

-                    _socket.send("SENDING SAMPLES: " + getSampleCount());
+                    _socket.send("SENDING SAMPLES: " + count);
+
+                    var samples:Array = []

                     for each (var s:Sample in getSamples()) {
-                        _socket.send(sampleToString(s));
+                        samples.push(s);
                     }

-                    trace(PREFIX, "Done sending samples");
+                    var batchSize:int = 1000;
+                    var offset:int = 0;
+
+                    _sampleSender = new Timer(100, Math.ceil(count / batchSize) );
+                    _sampleSender.addEventListener(TimerEvent.TIMER, function(e:Event):void {
+                        var toSend:int = Math.min(count, offset + batchSize);
+
+                        trace(PREFIX, "Sending", offset, "-", toSend);
+
+                        for( var i:int = offset; i < toSend; i++ ) {
+                            _socket.send(sampleToString(samples[i]));
+
+                            if( i % 100 == 0) {
+                                trace(PREFIX, "Sent", i, "/", toSend);
+                            }
+                        }
+
+                        offset += batchSize;
+                    });
+                    _sampleSender.addEventListener(TimerEvent.TIMER_COMPLETE, function(e:Event):void {
+                        trace(PREFIX, "Done sending samples");
+
+                        _sampleSender = null;
+                    });
+                    _sampleSender.start();

                     return;

@@ -106,8 +137,8 @@
                     "\n   size: " + dos.size +
                     stackToString(dos.stack) +
                     "\n]";
-            }
-
+            }
+
             return "[Sample" +
                 "\n   time: " + s.time +
                 stackToString(s.stack) +


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

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

 package mx.automation.codec
 {


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

--- frameworks/projects/spark/src/spark/effects/supportClasses/RemoveActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/RemoveActionInstance.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Actually check if the passed type is writable

--- lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src_linux/com/amanitadesign/steam/FRESteamWorks.as
@@ -255,8 +255,10 @@
 				for (var el:int = 0; el < value.length; ++el) {
 					writeValue(output, value[el]);
 				}
+			} else if(value is int || value is uint || value is Number || value is Boolean) {
+				output.writeUTFBytes(String(value) + "\n");
 			} else {
-				output.writeUTFBytes(String(value) + "\n");
+				throw new ArgumentError("Cannot write value " + value);
 			}
 		}


fix DrawCall.setGeometry() accessing unavailable vertex shader input buffer mapping and causing null pointer exception

--- src/aerys/minko/render/DrawCall.as
+++ src/aerys/minko/render/DrawCall.as
@@ -237,6 +237,9 @@
 		 */
 		public function setGeometry(geometry : Geometry, frame : uint = 0) : void
 		{
+			if (!_vsInputComponents)
+				return ;
+
 			updateGeometry(geometry);

 			_center = geometry.boundingSphere


added a null check on the bounding box of the geometry (LineGeometry doesn't have any so it breaks the PickingController)

--- src/aerys/minko/scene/node/Mesh.as
+++ src/aerys/minko/scene/node/Mesh.as
@@ -243,6 +243,10 @@
 			if (!(_tag & tag))
 				return -1;

+			if(_ctrl.geometry.boundingBox == null) {
+				return -1;
+			}
+
 			return _ctrl.geometry.boundingBox.testRay(
 				ray,
 				getWorldToLocalTransform(),


Fixed out of bounds RTE - error http://code.google.com/p/as3isolib/issues/detail?id=6

--- src/as3isolib/core/IsoContainer.as
+++ src/as3isolib/core/IsoContainer.as
@@ -35,6 +35,7 @@

 	import eDpLib.events.ProxyEvent;

+	import flash.display.DisplayObjectContainer;
 	import flash.display.Sprite;
 	import flash.events.Event;

@@ -114,6 +115,11 @@
 					displayListChildrenArray.push(child);
 					if (index > mainContainer.numChildren)
 						index = mainContainer.numChildren;
+
+					//referencing explicit removal of child RTE - http://life.neophi.com/danielr/2007/06/rangeerror_error_2006_the_supp.html
+					var p:DisplayObjectContainer = IIsoContainer(child).container.parent;
+					if (p && p != mainContainer)
+						p.removeChild(IIsoContainer(child).container);

 					mainContainer.addChildAt(IIsoContainer(child).container, index);
 				}
@@ -280,6 +286,7 @@
 		/**
 		 * @inheritDoc
 		 */
+		[ClassUtil(ignore="true")]
 		public function get container ():Sprite
 		{
 			return mainContainer;


Added tracing of XML packets (but commented out).

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -512,7 +512,7 @@
 			// Read the data and send it to the appropriate parser
 			var firstNode:XMLNode = xmlData.firstChild;
 			var nodeName:String = firstNode.nodeName.toLowerCase();
-
+			//trace("RECV: " + firstNode);
 			switch( nodeName )
 			{
 				case "stream:stream":
@@ -750,6 +750,7 @@
 		 */
 		protected function sendXML( someData:* ):void
 		{
+			//trace("SEND: " + someData);
 			// Data is untyped because it could be a string or XML
 			_socket.send( someData );
 			var event:OutgoingDataEvent = new OutgoingDataEvent();


removed reset button for now, needs some more work

--- src/eu/stefaner/elasticlists/ui/facetboxes/FacetBoxContainer.as
+++ src/eu/stefaner/elasticlists/ui/facetboxes/FacetBoxContainer.as
@@ -45,17 +45,18 @@
 		public var resetButton : PushButton;
 		public var facet : Facet;
 		public var facetBox : FacetBox;
-
+
 		/**
 		 *	@Constructor
 		 */
-public function FacetBoxContainer(app : App) {
+		public function FacetBoxContainer(app : App) {
 			super();
 			initGraphics();
 			this.app = app;
 			app.addEventListener(App.FACETS_CHANGED, onFacetValuesLoaded);
 			app.addEventListener(App.FILTERS_CHANGED, onFacetsStatsChanged);
 		}
+
 		override public function toString() : String {
 			if(facet) {
 				return "[FacetBoxContainer " + facet.label + "]";
@@ -63,6 +64,7 @@
 				return "[FacetBoxContainer]";
 			}
 		}
+
 		public function init(facet : Facet, facetBox : FacetBox) : void {
 			trace("init " + facet);
 			this.facet = facet;
@@ -76,12 +78,12 @@

 			if(resetButton) {
 				resetButton.addEventListener(MouseEvent.CLICK, onResetClick);
-
 			}
 			// rescale if scaled on stage
 			initBounds();
 			layout();
 		};
+
 		private function initGraphics() : void {
 			if(!bg) {
 				bg = DefaultGraphicsFactory.getFacetBoxContainerBackground();
@@ -91,14 +93,20 @@
 				title_tf = DefaultGraphicsFactory.getTitleTextField();
 				addChild(title_tf);
 			}
+			/*
+			 // TODO: show only when filters are active, uncommented for now
 			if(!resetButton) {
 				resetButton = DefaultGraphicsFactory.getButton(this, 0, 0, "reset");
 				resetButton.width = 40;
-			}
+			}
+			 *
+			 */
 		}
+
 		private function onResetClick(e : MouseEvent) : void {
 			facetBox.reset();
 		}
+
 		private function initBounds() : void {
 			var w : Number = width * scaleX;
 			var h : Number = height * scaleY;
@@ -106,6 +114,7 @@
 			width = Math.floor(w);
 			height = Math.floor(h);
 		};
+
 		private function onFacetValuesLoaded(e : Event = null) : void {
 			trace(this + ".onFacetValuesLoaded");
 			facetBox.data = facet.facetValues;
@@ -118,15 +127,18 @@
 			 *
 			 */
 		};
+
 		private function onFacetsStatsChanged(e : Event = null) : void {
 			trace(this + ".onGlobalFacetValueStatsChanged");
 			facetBox.updateStats();
 		};
+
 		private function onSelectionChange(e : Event = null) : void {
 			//dispatchEvent(new Event("onSelectionChange"));
 			trace(this + ".onSelectionChange");
 			app.applyFilters();
 		};
+
 		//--------------------------------------
 		//  GETTER/SETTERS
 		//--------------------------------------
@@ -134,6 +146,7 @@
 			bg.height = h;
 			layout();
 		}
+
 		protected function layout() : void {
 			title_tf.x = 2;
 			title_tf.y = 2;
@@ -149,16 +162,20 @@
 				resetButton.y = 2;
 			}
 		}
+
 		override public function get height() : Number {
 			return bg.height;
 		}
+
 		override public function set width( w : Number ) : void {
 			bg.width = w;
 			layout();
 		}
+
 		override public function get width() : Number {
 			return bg.width;
 		}
+
 		public function set title( value : String ) : void {
 			title_tf.text = value.toUpperCase();
 		}


* 修正了绘制场景轮廓的 bug

* 修正了绘制场景轮廓的 bug

--- ageb/src/ageb/modules/ae/LayerRendererEditable.as
+++ ageb/src/ageb/modules/ae/LayerRendererEditable.as
@@ -91,7 +91,7 @@
 				// right
 				right.draw(1, h);
 				right.pivotY = h;
-				right.setPosition(0, w, 0);
+				right.setPosition(w, 0, 0);
 				// bottom
 				bottom.draw(w, 1);
 				bottom.setPosition(0, 0, 0);


Socket status as requested here: http://www.igniterealtime.org/community/thread/40806

--- src/org/igniterealtime/xiff/core/XMPPConnection.as
+++ src/org/igniterealtime/xiff/core/XMPPConnection.as
@@ -1079,6 +1079,9 @@
 		 */
 		protected function socketClosed(event:Event):void
 		{
+			active = false;
+			loggedIn = false;
+
 			var disconnectionEvent:DisconnectionEvent = new DisconnectionEvent();
 			dispatchEvent( disconnectionEvent );
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
@@ -28,7 +28,9 @@
 import mx.events.SandboxMouseEvent;

 import spark.events.DropDownEvent;
-
+
+use namespace mx_internal;
+
 /**
  *  The DropDownController class handles the mouse, keyboard, and focus
  *  interactions for an anchor button and its associated drop down.
@@ -301,7 +303,7 @@
             addCloseTriggers();

             _isOpen = true;
-            openButton.mx_internal::keepDown = true; // Force the button to stay in the down state
+            openButton.keepDown = true; // Force the button to stay in the down state

             dispatchEvent(new DropDownEvent(DropDownEvent.OPEN));
         }
@@ -323,7 +325,7 @@
         if (isOpen)
         {
             _isOpen = false;
-            openButton.mx_internal::keepDown = false;
+            openButton.keepDown = false;

             var dde:DropDownEvent = new DropDownEvent(DropDownEvent.CLOSE, false, true);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4205
Author:   clucier@adobe.com
Date:     2008-12-01T19:48:53.571431Z

Log Message:
-----------
Initial baselinePosition support for our new skinnable components.
QE Notes: Please wait until Evtim completes his baseline support in our new layouts to test.
Doc Notes: None
Reviewer: Glenn, Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.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/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.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/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/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -19,13 +19,16 @@
 import mx.core.IFactory;
 import mx.core.IFlexModuleFactory;
 import mx.core.IInvalidating;
+import mx.core.IVisualElement;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.components.Skin;
 import mx.events.PropertyChangeEvent;
 import mx.managers.ISystemManager;
 import mx.modules.ModuleManager;
+import flash.geom.Point;
 import flash.display.DisplayObject;
+import flash.display.DisplayObjectContainer;

 use namespace mx_internal;

@@ -88,27 +91,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Overridden properties: UIComponent
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  baselinePosition
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function get baselinePosition():Number
-    {
-        // TODO
-        // The baselinePosition calculation in UIComponent
-        // works only for TextField-based components.
-        return 0;
-    }
-
-    //--------------------------------------------------------------------------
-    //
     //  Properties
     //
     //--------------------------------------------------------------------------
@@ -723,6 +705,39 @@
         systemManager.stage.removeEventListener(eventType, offstageHandler);
     }

+    /**
+     * @private
+     *
+     * Utility method to calculate a skin part's position relative to our component.
+     *
+     * @param part The skin part instance to obtain coordinates of.
+     *
+     * @return The component relative position of the part.
+     */
+    protected function getSkinPartPosition(part:IVisualElement):Point
+    {
+        return (!part || !part.parent) ? new Point(0, 0) :
+            globalToLocal(part.parent.localToGlobal(new Point(part.x, part.y)));
+    }
+
+    /**
+     * @private
+     *
+     * Utility method to calculate a skin part's baseline position relative to
+     * the component.
+     *
+     * @param part The skin part instance to obtain baseline of.
+     *
+     * @return The baseline position of the part.
+     */
+    protected function getBaselinePositionForPart(part:IVisualElement):Number
+    {
+        if (!part || !mx_internal::validateBaselinePosition())
+            return super.baselinePosition;
+
+        return getSkinPartPosition(part).y + part.baselinePosition;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers


ReactionView label() helper bugfix

ReactionView label() helper bugfix

--- vendor/ras3r/ras3r/ReactionView.as
+++ vendor/ras3r/ras3r/ReactionView.as
@@ -112,14 +112,16 @@

 		protected function instance_sprite (name:*, object_name:String, property:String, attributes:Object = null, styles:Object = null) :DisplayObject
 		{
+			attributes = new Hash(attributes);
 			attributes.id = object_name + '_' + property;
 			return sprite(name, attributes, styles);
 		}

 		protected function label (object_name:String, property:String, html:String, attributes:Object = null, styles:Object = null) :Label
 		{
-			attributes.htmlText = html;
-			return (instance_sprite(Label, object_name, property, attributes, styles) as Label);
+			var label:Label = (instance_sprite(Label, object_name, property, attributes, styles) as Label);
+			label.htmlText = html;
+			return label;
 		}

 		// elem: Object. Visual element for whom the handler is being wired


Tweaked load try/catch

Tweaked load try/catch

--- src/LevelStates/LevelState.as
+++ src/LevelStates/LevelState.as
@@ -1206,7 +1206,12 @@
 			if (saveString == null)
 				saveString = findSuccessSave();
 			if (saveString) {
-				try {
+				if (DEBUG.ON) {
+					if (U.BINARY_SAVES && saveString.indexOf(U.MAJOR_SAVE_DELIM) == -1)
+						savedString = loadBinary(saveString);
+					else
+						savedString = loadOldFormat(saveString);
+				} else try {
 					if (U.BINARY_SAVES && saveString.indexOf(U.MAJOR_SAVE_DELIM) == -1)
 						savedString = loadBinary(saveString);
 					else
@@ -1230,8 +1235,6 @@
 					});

 					saveString = null;
-					if (DEBUG.ON)
-						throw error;
 				}
 			}


Fucking ActionScript. So, 'int', 'uint' and 'Number' all derive directly from Object, and yet an instance of int yields true in an 'is Number' test. In fact, all the number types happily identify as one another. We resort to testing class names.

--- tamarin-central/thane/AMF3Encoder.as
+++ tamarin-central/thane/AMF3Encoder.as
@@ -30,21 +30,24 @@
         } else if (value === true) {
             _ctx.bytes.writeByte(AMF3.MARK_TRUE);

-        } else if (value is int || value is uint || value is Number) {
-            // figure out if this number could be represented as an AMF3 int
-            var doublify :Boolean;
-            if (value is int) {
-                // signed integers must lie within -2^28 and 2^28-1
-                doublify = (value < -(1 << 28)) || (value >= (1 << 28));
-                if (value < 0) {
-                    value = (1 << 29) + value;
-                }
-            } else if (value is uint) {
-                // unsigned between 0 and 2^29-1
-                doublify = (value >= (1 << 29));
-            } else {
-                // general Numbers are always doubles
+        } else if (value is Number) {
+            var className =  Domain.currentDomain.getClassName(value);
+            trace("test: " + className);
+
+            var doublify :Boolean = false;
+
+            if (className == "Number") {
+                trace("NUMBER: " + value);
                 doublify = true;
+
+            } else if ((value < -(1 << 28)) || (value >= (1 << 28))) {
+                trace("Out of range: " + value);
+                doublify = true;
+
+            } else if (value < 0) {
+                trace("Negative: " + value);
+                value = (1 << 29) + value;
+
             }

             if (doublify) {
@@ -52,7 +55,7 @@
                 encodeDouble(value);
             } else {
                 _ctx.bytes.writeByte(AMF3.MARK_INTEGER);
-                encodeInteger(uint(value));
+                encodeInteger(value);
             }

         } else if (value is String) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3222
Author:   jimurphy@adobe.com
Date:     2008-09-16T14:09:08.134976Z

Log Message:
-----------
Merged 3.0.x revisions 3157,3162,3165-3166,3168,3177,3180-3183,3185,3187,3189,3199 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.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/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.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/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -871,7 +871,8 @@

         _data = value;

-        if (_listData && _listData is DataGridListData)
+        if (_listData && _listData is DataGridListData &&
+        	DataGridListData(_listData).dataField !=null)
         {
             newSelected = _data[DataGridListData(_listData).dataField];


Transferred from the Adobe Open Source Subversion Repository

Revision: 4957
Author:   jimurphy@adobe.com
Date:     2009-02-13T19:44:53.991275Z

Log Message:
-----------
Merge 3.x revisions 4848,4856,4886,4888,4898,4905,4912,4914-4916,4953 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.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/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.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/src/mx/managers/FocusManager.as</path>

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

--- frameworks/projects/mx/src/mx/controls/NavBar.as
+++ frameworks/projects/mx/src/mx/controls/NavBar.as
@@ -920,6 +920,7 @@

             navItem.enabled = enabled;
         }
+        resetNavItems();
     }

@@ -1035,6 +1036,7 @@
         if (index != -1)
             hiliteSelectedNavItem(index);

+        resetNavItems();
         invalidateDisplayList();
     }

@@ -1098,6 +1100,7 @@
         newChild.addEventListener("toolTipChanged", toolTipChangedHandler);

         item.enabled = enabled && newChild.enabled;
+        callLater(resetNavItems);
     }

     /**


OFC-397 Integer numeric field allows the insertion of "." character

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/ui/UIBuilder.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/ui/UIBuilder.as
@@ -20,6 +20,7 @@
 	import org.openforis.collect.metamodel.proxy.ModelVersionProxy;
 	import org.openforis.collect.metamodel.proxy.NodeDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.NumberAttributeDefinitionProxy;
+	import org.openforis.collect.metamodel.proxy.NumberAttributeDefinitionProxy$Type;
 	import org.openforis.collect.metamodel.proxy.RangeAttributeDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.TaxonAttributeDefinitionProxy;
 	import org.openforis.collect.metamodel.proxy.TextAttributeDefinitionProxy;
@@ -51,6 +52,7 @@
 	import org.openforis.collect.ui.component.input.DateAttributeRenderer;
 	import org.openforis.collect.ui.component.input.FixedCodeInputField;
 	import org.openforis.collect.ui.component.input.InputField;
+	import org.openforis.collect.ui.component.input.IntegerInputField;
 	import org.openforis.collect.ui.component.input.MemoInputField;
 	import org.openforis.collect.ui.component.input.MultipleCodeInputField;
 	import org.openforis.collect.ui.component.input.NumericAttributeRenderer;
@@ -329,7 +331,12 @@
 			} else if(def is FileAttributeDefinitionProxy) {
 				//inputField = new FileInputField();
 			} else if(def is NumberAttributeDefinitionProxy) {
-				inputField = new NumericInputField();
+				var numberAttributeDefn:NumberAttributeDefinitionProxy = NumberAttributeDefinitionProxy(def);
+				if(numberAttributeDefn.type == NumberAttributeDefinitionProxy$Type.INTEGER) {
+					inputField = new IntegerInputField();
+				} else {
+					inputField = new NumericInputField();
+				}
 			} else if(def is RangeAttributeDefinitionProxy) {
 				inputField = new RangeInputField();
 			} else if(def is TextAttributeDefinitionProxy) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10357
Author:   jimurphy@adobe.com
Date:     2009-09-17T21:13:02.502084Z

Log Message:
-----------
Merged beta2 revisions 10309,10320-10321,10333-10335,10342,10347-10348 -> trunk

checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/Info.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/TLFText.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/controls/Label.as
+++ frameworks/projects/mx/src/mx/controls/Label.as
@@ -171,6 +171,8 @@
 [DefaultBindingProperty(destination="text")]

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

 /**
  *  The Label control displays a single line of noneditable text.


Change 20080707-maxcarlson-t by maxcarlson@Roboto on 2008-07-07 15:58:31 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix text height measurement in swf8

Bugs Fixed: LPP-6619 - LzText Element Not Resizing On Subsequent Fontsize Changes

Technical Reviewer: promanik
QA Reviewer: a.bargull@intensis.de

Details: Turn on autosize before measurement, and set to a default test string if we get an empty field.

Tests: test/lztest/lztest-textheight.lzx?debug=true&lzr=swf8 runs as before, and LPP-6619 testcase passes in both swf and dhtml.

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@10239 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
+++ WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
@@ -257,7 +257,25 @@
  * in the DHTML version of this method).
  */
 LzTextSprite.prototype.getTextfieldHeight = function ( ){
-    return this.__LZtextclip._height;
+    var textclip = this.__LZtextclip;
+
+    // turn on autoSize temporarily
+    var tca = textclip.autoSize;
+    textclip.autoSize = true;
+    // measure height and reset to the original values
+    var h = textclip._height;
+
+    // Measure test string if the field is empty
+    if (h == 4) {
+        var tct = textclip.htmlText;
+        textclip.htmlText = "__ypgSAMPLE__";
+        var h = textclip._height;
+        textclip.htmlText = tct;
+    }
+
+    textclip.autoSize = tca;
+
+    return h;
 }

 /**


fixed wrong variable name

fixed wrong variable name

Change-Id: Iec810b2d1b194770ad239d3b6e15f95b9da97642

--- WeaveJS/src/weavejs/net/URLRequestUtils.as
+++ WeaveJS/src/weavejs/net/URLRequestUtils.as
@@ -134,7 +134,7 @@

 			var ilo:ILinkableObject = relevantContext as ILinkableObject;
 			if (ilo)
-				WeaveAPI.ProgressIndicator.addTask(promise, ilo, request.url);
+				WeaveAPI.ProgressIndicator.addTask(promise, ilo, urlRequest.url);

 			return promise;
 		}


XIFF-81 Prevent pinging the server if the server responds with an error of type cancel.

--- src/org/igniterealtime/xiff/core/XMPPConnection.as
+++ src/org/igniterealtime/xiff/core/XMPPConnection.as
@@ -29,7 +29,7 @@
 	import flash.utils.*;
 	import flash.xml.XMLDocument;
 	import flash.xml.XMLNode;
-
+
 	import org.igniterealtime.xiff.auth.*;
 	import org.igniterealtime.xiff.data.*;
 	import org.igniterealtime.xiff.data.auth.AuthExtension;
@@ -199,6 +199,11 @@
 		/**
 		 * @private
 		 */
+		protected var pingNotSupported:Boolean;
+
+		/**
+		 * @private
+		 */
 		protected var presenceQueue:Array = [];

 		/**
@@ -485,7 +490,9 @@
 		 */
 		public function sendKeepAlive():void
 		{
-			var ping:IQ = new IQ( new EscapedJID( server ), IQ.TYPE_GET );
+			if( pingNotSupported ) return;
+
+			var ping:IQ = new IQ( new EscapedJID( server ), IQ.TYPE_GET, null, sendKeepAlive_response, sendKeepAlive_error );
 			ping.addExtension( new PingExtension() );
 			send( ping );
 		}
@@ -1337,6 +1344,24 @@

 		/**
 		 * @private
+		 */
+		private function sendKeepAlive_response( iq:IQ ):void
+		{
+		}
+
+		/**
+		 * @private
+		 */
+		private function sendKeepAlive_error( iq:IQ ):void
+		{
+			if( iq.errorType == "cancel" )
+			{
+				pingNotSupported = true;
+			}
+		}
+
+		/**
+		 * @private
 		 *
 		 * @param	iq
 		 */


tests

tests

--- testSrc/TestStream.as
+++ testSrc/TestStream.as
@@ -5,12 +5,14 @@
     import com.kemsky.impl.curry;
     import com.kemsky.impl.filters._;
     import com.kemsky.impl.filters.add;
+    import com.kemsky.impl.filters.and;
     import com.kemsky.impl.filters.eq;
     import com.kemsky.impl.filters.ge;
     import com.kemsky.impl.filters.gt;
     import com.kemsky.impl.filters.le;
     import com.kemsky.impl.filters.lt;
     import com.kemsky.impl.filters.ne;
+    import com.kemsky.impl.filters.or;
     import com.kemsky.impl.filters.prop;
     import com.kemsky.impl.filters.subtract;

@@ -21,12 +23,14 @@
     import flashx.textLayout.debug.assert;

     import mx.collections.ArrayCollection;
+    import mx.collections.IList;
     import mx.logging.ILogger;
     import mx.logging.Log;
     import mx.logging.targets.TraceTarget;

     import org.flexunit.asserts.assertEquals;
     import org.flexunit.asserts.assertFalse;
+    import org.flexunit.asserts.assertTrue;

     public class TestStream
     {
@@ -210,6 +214,22 @@
             assertEquals(ne1[1], 3);
         }

+        [Test]
+        public function testOr():void
+        {
+            var or1:Stream = $(1, 2, 3).filter(or(eq(1), eq(3)));
+            assertEquals(or1.length, 2);
+            assertEquals(or1[0], 1);
+            assertEquals(or1[1], 3);
+        }
+
+        [Test]
+        public function testAnd():void
+        {
+            var and1:Stream = $(1, 2, 3).filter(and(gt(1), lt(3)));
+            assertEquals(and1.length, 1);
+            assertEquals(and1[0], 2);
+        }

         [Test]
         public function testLe():void
@@ -392,6 +412,9 @@
             verify(array.collection, original);
             verify(array.list, original);

+            assertTrue(array.array is Array);
+            assertTrue(array.collection is ArrayCollection);
+            assertTrue(array.list is IList);

             var collection:Stream = $(new ArrayCollection([1, 2, 3]));
             assertEquals(collection.empty, false);


tests

tests

--- testSrc/TestStream.as
+++ testSrc/TestStream.as
@@ -10,6 +10,7 @@
     import com.kemsky.impl.filters.gt;
     import com.kemsky.impl.filters.le;
     import com.kemsky.impl.filters.lt;
+    import com.kemsky.impl.filters.ne;
     import com.kemsky.impl.filters.prop;
     import com.kemsky.impl.filters.subtract;

@@ -193,6 +194,24 @@
         }

         [Test]
+        public function testEq():void
+        {
+            var eq1:Stream = $(1, 2, 3).filter(eq(2));
+            assertEquals(eq1.length, 1);
+            assertEquals(eq1[0], 2);
+        }
+
+        [Test]
+        public function testNe():void
+        {
+            var ne1:Stream = $(1, 2, 3).filter(ne(2));
+            assertEquals(ne1.length, 2);
+            assertEquals(ne1[0], 1);
+            assertEquals(ne1[1], 3);
+        }
+
+
+        [Test]
         public function testLe():void
         {
             var le1:Stream = $(1, 2, 3).filter(le(2));
@@ -206,7 +225,7 @@
         {
             var lt1:Stream = $(1, 2, 3).filter(lt(2));
             assertEquals(lt1.length, 1);
-            assertEquals(lt1[1], 1);
+            assertEquals(lt1[0], 1);
         }

         [Test]
@@ -223,7 +242,7 @@
         {
             var gt1:Stream = $(1, 2, 3).filter(gt(2));
             assertEquals(gt1.length, 1);
-            assertEquals(gt1[1], 3);
+            assertEquals(gt1[0], 3);
         }

         [Test]


408 DisplayUtil.enclosesFocusedObject

408 DisplayUtil.enclosesFocusedObject

--- raw/src/org/yellcorp/lib/display/DisplayUtil.as
+++ raw/src/org/yellcorp/lib/display/DisplayUtil.as
@@ -257,5 +257,22 @@
         removeFromParent(guide);
         return out;
     }
+
+    /**
+     * Queries whether a DisplayObjectContainer is equal to, or contains,
+     * the object with keyboard focus.
+     *
+     * @param query  The DisplayObjectContainer to query.
+     * @return true if query is the
+     * currently-focused object, or contains it as a descendant. Otherwise
+     * returns false. Also returns false if the
+     * query object is not on stage, or if there is no focused object.
+     */
+    public static function enclosesFocusedObject(query:DisplayObjectContainer):Boolean
+    {
+        return query && query.stage && query.stage.focus &&
+                (query == query.stage.focus ||
+                 query.contains(query.stage.focus));
+    }
 }
 }


Optimised subtitles matching

Optimised subtitles matching

--- src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
+++ src/org/mangui/hls/loader/SubtitlesFragmentLoader.as
@@ -135,6 +135,7 @@
 		{
 			if (_hls.type == HLSTypes.LIVE)
 			{
+				_currentSubtitles = null;
 				_seqNum = event.playMetrics.seqnum;
 				_seqStartPosition = _hls.position;
 				_seqSubsIndex = 0;
@@ -161,13 +162,21 @@
 		 */
 		protected function mediaTimeHandler(event:HLSEvent):void
 		{
+			// If subtitles are disabled, there's nothing to do
+			if (_hls.subtitlesTrack == -1) return;
+
+			var position:Number = seqPosition;
+
+			// If the subtitles haven't changed, there's nothing to do
+			if (isCurrent(_currentSubtitles, position)) return;
+
+			// Get the subtitles list for the current sequence (always 0 for VOD)
 			var subs:Vector.<Subtitles> = _seqSubs[_seqNum];

 			if (subs)
 			{
 				var mt:HLSMediatime = event.mediatime;
 				var matchingSubtitles:Subtitles;
-				var position:Number = seqPosition;
 				var i:uint;
 				var length:uint = subs.length;

@@ -181,7 +190,7 @@
 						break;
 					}

-					if (subtitles.startPosition <= position && subtitles.endPosition >= position)
+					if (isCurrent(subtitles, position))
 					{
 						matchingSubtitles = subtitles;
 						break;
@@ -208,6 +217,13 @@
 			}
 		}

+		protected function isCurrent(subtitles:Subtitles, position:Number):Boolean
+		{
+			return subtitles
+				&& subtitles.startPosition <= position
+				&& subtitles.endPosition >= position
+		}
+
 		/**
 		 * When the media seeks, we reset the index from which we look for the next subtitles
 		 */


Transferred from the Adobe Open Source Subversion Repository

Revision: 18707
Author:   smgilson@adobe.com
Date:     2010-11-18T18:34:25.996019Z

Log Message:
-----------
ASDoc edits for DataGrid

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridCaretEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridItemEditorEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSelectionEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/GridSelectionEventKind.as</path>

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

--- frameworks/projects/spark/src/spark/events/GridSelectionEvent.as
+++ frameworks/projects/spark/src/spark/events/GridSelectionEvent.as
@@ -17,7 +17,8 @@

 /**
  *  The GridSelectionEvent class represents events that are dispatched when
- *  the selection changes in a Spark DataGrid as the result of user interaction.
+ *  the selection changes in a Spark DataGrid control as the
+ *  result of user interaction.
  *
  *  @see spark.events.GridSelectionEventKind
  *  @see spark.components.DataGrid
@@ -25,7 +26,7 @@
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
- *  @playerversion AIR 2.0
+ *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
 public class GridSelectionEvent extends Event
@@ -74,7 +75,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public static const SELECTION_CHANGE:String = "selectionChange";
@@ -115,7 +116,7 @@
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public static const SELECTION_CHANGING:String = "selectionChanging";
@@ -182,11 +183,11 @@
      *  GridSelectionEventKind class,
      *  or null, which indicates that the kind is unknown.
      *
-     *  @see GridSelectionEventKind
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *  @see spark.events.GridSelectionEventKind
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public var kind:String;
@@ -199,12 +200,14 @@
     /**
      *  The upcoming or just-completed selection changes triggered by some
      *  user gesture.  If this change is adding to the current selection, it
-     *  will not represent the complete selection.  Use the DataGrid
+     *  will not represent the complete selection.  Use the DataGrid
      *  selection methods to determine the selection.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.0
+     *
+     *  @see spark.components.DataGrid
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
     public var selectionChange:CellRegion;


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

--- frameworks/projects/spark/src/spark/events/TextOperationEvent.as
+++ frameworks/projects/spark/src/spark/events/TextOperationEvent.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8422
Author:   smgilson@adobe.com
Date:     2009-07-07T14:41:50.996290Z

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

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/LabelUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/IndexChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/events/TextOperationEvent.as
+++ frameworks/projects/spark/src/spark/events/TextOperationEvent.as
@@ -146,7 +146,7 @@
     //----------------------------------

     /**
-     *  The FlowOperation being performed by the user.
+     *  The FlowOperation object describing the editing operation being performed by the user.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10