Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/charts/src/mx/charts/renderers/AreaRenderer.as
+++ frameworks/projects/charts/src/mx/charts/renderers/AreaRenderer.as
@@ -0,0 +1,193 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts.renderers
+{
+
+import flash.display.Graphics;
+import flash.geom.Rectangle;
+import mx.charts.chartClasses.GraphicsUtilities;
+import mx.core.IDataRenderer;
+import mx.graphics.IFill;
+import mx.graphics.IStroke;
+import mx.graphics.Stroke;
+import mx.skins.ProgrammaticSkin;
+
+/**
+ *  The default class used to render the area
+ *  beneath the dataPoints of an AreaSeries object.
+ *  This class renders the area using the fill, stroke, and line type
+ *  as specified by the AreaSeries object's areaFill, areaStroke,
+ *  and form styles, respectively.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class AreaRenderer extends ProgrammaticSkin implements IDataRenderer
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var noStroke:Stroke = new Stroke(0, 0, 0);
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function AreaRenderer()
+	{
+		super();
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+	//  data
+    //----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the data property.
+	 */
+	private var _data:Object;
+
+	[Inspectable(environment="none")]
+
+	/**
+	 *  The data that the AreaRenderer renders.
+	 *  The AreaRenderer expects this property to be assigned an instance
+	 *  of mx.charts.series.renderData.AreaRenderData.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function get data():Object
+	{
+		return _data;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set data(value:Object):void
+	{
+		_data = value;
+
+		invalidateDisplayList();
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function updateDisplayList(unscaledWidth:Number,
+												  unscaledHeight:Number):void
+	{
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		var fill:IFill = GraphicsUtilities.fillFromStyle(getStyle("areaFill"));
+		var stroke:IStroke = getStyle("areaStroke");
+		var form:String = getStyle("form");
+
+		var g:Graphics = graphics;
+		g.clear();
+
+		if (!_data)
+			return;
+
+		var boundary:Array /* of Object */ = _data.filteredCache;
+		var n:int = boundary.length;
+		if (n == 0)
+			return;
+
+		var xMin:Number;
+		var xMax:Number = xMin = boundary[0].x;
+		var yMin:Number;
+		var yMax:Number = yMin = boundary[0].y;
+
+		var v:Object;
+
+		for (var i:int = 0; i < n; i++)
+		{
+			v = boundary[i];
+
+			xMin = Math.min(xMin, v.x);
+			yMin = Math.min(yMin, v.y);
+			xMax = Math.max(xMax, v.x);
+			yMax = Math.max(yMax, v.y);
+
+			if (!isNaN(v.min))
+			{
+				yMin = Math.min(yMin, v.min);
+				yMax = Math.max(yMax, v.min);
+			}
+		}
+
+		if (fill)
+			fill.begin(g, new Rectangle(xMin, yMin, xMax - xMin, yMax - yMin),null);
+
+		GraphicsUtilities.drawPolyLine(g, boundary, 0, n,
+										"x", "y", stroke, form);
+
+		g.lineStyle(0,0,0);
+
+		if (boundary[0].element.minField != null && boundary[0].element.minField != "")
+		{
+			g.lineTo(boundary[n - 1].x, boundary[n - 1].min);
+
+			GraphicsUtilities.drawPolyLine(g, boundary, n - 1, -1,
+											"x", "min", noStroke, form, false);
+		}
+		else
+		{
+			g.lineTo(boundary[n - 1].x, _data.renderedBase);
+			g.lineTo(boundary[0].x, _data.renderedBase);
+		}
+
+		g.lineStyle(0, 0, 0);
+		g.lineTo(boundary[0].x, boundary[0].y);
+
+		g.endFill();
+	}
+}
+
+}


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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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

 package mx.styles
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12401
Author:   gruehle@adobe.com
Date:     2009-12-03T00:55:48.080560Z

Log Message:
-----------
Spark (SkinnableContainer) creationPolicy was a simple property. The mx (Container) creationPolicy property had logic to inherit the parent's creation policy if not explicitly specified, but this only worked if the parent was also a Container.

This change makes SkinnableContainer.creationPolicy an inheriting property, and fixes mx Containers so they can inherit creationPolicy from SkinnableContainer parents. This is all done behind the scenes by using a private inheriting style for backing storage.

QE notes: Yes, tests need updating for new behavior
Doc notes: No
Bugs: SDK-23955
Reviewer: Ryan
Tests run: checkintests, extensive cyclone testing
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/spark/src/spark/components/NavigatorContent.as
+++ frameworks/projects/spark/src/spark/components/NavigatorContent.as
@@ -89,7 +89,6 @@
     public function NavigatorContent()
     {
         super();
-        creationPolicy = null;
     }

@@ -211,7 +210,7 @@
     {
         // if nobody has overridden creationPolicy, get it from the
         // navigator parent
-        if (creationPolicy == null)
+        if (creationPolicy == ContainerCreationPolicy.AUTO)
         {
             if (parent is IDeferredContentOwner)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.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/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.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/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.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/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxRadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</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/managers/CursorManagerImpl.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/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
+++ frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
@@ -17,7 +17,7 @@
 import flash.events.Event;
 import flash.events.EventDispatcher;

-import mx.core.ApplicationGlobals;
+import mx.core.FlexGlobals;
 import mx.core.IFlexDisplayObject;
 import mx.core.IMXMLObject;
 import mx.core.IRawChildrenContainer;
@@ -368,7 +368,7 @@
     {
         this.document = document ?
                         IFlexDisplayObject(document) :
-                        IFlexDisplayObject(ApplicationGlobals.application);
+                        IFlexDisplayObject(FlexGlobals.topLevelApplication);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 12381
Author:   clucier@adobe.com
Date:     2009-12-02T19:13:45.710714Z

Log Message:
-----------
Carol's eagle eyes spotted a copy and paste error with an earlier checkin.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Carol
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -3288,8 +3288,8 @@
             var italic:Boolean = getStyle("fontStyle") == "italic";

             var localLookup:ISystemManager =
-                fontContext && fontContext is ISystemManager ?
-                ISystemManager(fontContext) : systemManager;
+                moduleFactory && moduleFactory is ISystemManager ?
+                ISystemManager(moduleFactory) : systemManager;

             fontContext = embeddedFontRegistry.getAssociatedModuleFactory(
                 font, bold, italic, this, fontContext, localLookup, true);


adjust formatting to match surrounding code

--- exporter/src/main/as/flump/export/ProjectController.as
+++ exporter/src/main/as/flump/export/ProjectController.as
@@ -360,10 +360,12 @@
         stage.quality = StageQuality.BEST;

         try {
-            if (_exportChooser.dir == null)
+            if (_exportChooser.dir == null) {
                 throw new Error("No export directory specified.");
-            if (_conf.exports.length == 0)
+            }
+            if (_conf.exports.length == 0) {
                 throw new Error("No export formats specified.");
+            }
             createPublisher().publish(status.lib);
         } catch (e :Error) {
             ErrorWindowMgr.showErrorPopup("Publishing Failed", e.message, _win);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5473
Author:   chaase@adobe.com
Date:     2009-03-20T23:02:58.584499Z

Log Message:
-----------
Fix for bug around handling of constraints during and after effects were run, both for old and new effects. Fix was to correctly record and handle styles that were set or not set in either state and to temporarily set width/height values for the duration of an effect if we disabled the relevant styles that affect width/height.

QE Notes: None
Doc Notes: None
Bugs: SDK-17809
Reviewer: Jason
Testing: checkintests, Mustella Effects, ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -1489,8 +1489,7 @@
                     if (valueMap[styles[j]] === undefined)
                     {
                         var value:* = target.getStyle(styles[j]);
-                        if (value !== undefined)
-                            valueMap[styles[j]] = value;
+                        valueMap[styles[j]] = value;
                     }
                 }
             }
@@ -1576,7 +1575,10 @@
                 {
                     if (relevantStyles[j] in propChanges[i].start &&
                         target is IStyleClient)
-                        target.setStyle(relevantStyles[j], propChanges[i].start[relevantStyles[j]]);
+                        if (propChanges[i].end[relevantStyles[j]] !== undefined)
+                            target.setStyle(relevantStyles[j], propChanges[i].start[relevantStyles[j]]);
+                        else
+                            target.clearStyle(relevantStyles[j]);
                 }
             }
         }
@@ -1637,7 +1639,10 @@
                     if (relevantStyles[j] in propChanges[i].end &&
                         target is IStyleClient)
                     {
-                        target.setStyle(relevantStyles[j], propChanges[i].end[relevantStyles[j]]);
+                        if (propChanges[i].end[relevantStyles[j]] !== undefined)
+                            target.setStyle(relevantStyles[j], propChanges[i].end[relevantStyles[j]]);
+                        else
+                            target.clearStyle(relevantStyles[j]);
                     }
                 }
             }


FLEX-34657: SelectedIndices order is messed up

Signed-off-by: Erik de Bruin <c195b508e6f0c57aeafdb5e96947e2b79e6a4b40@ixsoftware.nl>

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -1643,7 +1643,7 @@
                             if (_selectedIndices[i] == index)
                                 found = true;
                             else if (_selectedIndices[i] != index)
-                                interval.splice(0, 0, _selectedIndices[i]);
+                                interval.push(_selectedIndices[i]);
                         }
                         if (!found)
                         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -23,6 +23,11 @@
  *  the stroke, the line is invisible.</p>
  *
  *  @see mx.graphics.Stroke
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class Line extends StrokedElement
 {
@@ -36,6 +41,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function Line()
     {
@@ -60,6 +70,11 @@
     *  The starting x position for the line.
     *
     *  @default 0
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
     */

     public function get xFrom():Number
@@ -92,6 +107,11 @@
     *  The ending x position for the line.
     *
     *  @default 0
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
     */

     public function get xTo():Number
@@ -124,6 +144,11 @@
     *  The starting y position for the line.
     *
     *  @default 0
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
     */

     public function get yFrom():Number
@@ -156,6 +181,11 @@
     *  The ending y position for the line.
     *
     *  @default 0
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 10
+    *  @playerversion AIR 1.5
+    *  @productversion Flex 4
     */

     public function get yTo():Number
@@ -184,6 +214,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function skipMeasure():Boolean
     {
@@ -194,6 +229,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function measure():void
     {
@@ -205,6 +245,11 @@

     /**
      * @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function drawElement(g:Graphics):void
     {


Started to modularize the app

Started to modularize the app

git-svn-id: 27326a786375daad9d33dc990c6f272e4c8f567c@751 fda5f131-174c-0410-8613-e0905860106b

--- org.openwms/trunk/source/org.openwms.client.flex.app/src/main/flex/org/openwms/web/flex/client/model/ModelLocator.as
+++ org.openwms/trunk/source/org.openwms.client.flex.app/src/main/flex/org/openwms/web/flex/client/model/ModelLocator.as
@@ -1,109 +0,0 @@
-/*
- * openwms.org, the Open Warehouse Management System.
- *
- * This file is part of openwms.org.
- *
- * openwms.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * openwms.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software. If not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.openwms.web.flex.client.model
-{
-
-    import com.adobe.cairngorm.model.IModelLocator;
-    import mx.collections.ArrayCollection;
-    import org.openwms.common.domain.system.usermanagement.User;
-
-    /**
-     * A ModelLocator.
-     *
-     * @author Heiko Scherrer
-     * @version $Revision$
-     */
-    [Bindable]
-    public class ModelLocator implements IModelLocator
-    {
-
-        public static const MAIN_VIEW_STACK_LOGIN_VIEW:uint = 0;
-        public static const MAIN_VIEW_STACK_EMPTY_VIEW:uint = 1;
-        public static const MAIN_VIEW_STACK_MODULE_MGMT_VIEW:uint = 2;
-        public static const MAIN_VIEW_STACK_LOCATION_VIEW:uint = 3;
-        public static const MAIN_VIEW_STACK_LOCATIONGROUP_VIEW:uint = 4;
-        public static const MAIN_VIEW_STACK_USER_MGMT_VIEW:uint = 5;
-        public static const MAIN_VIEW_STACK_TRANSPORTUNIT_VIEW:uint = 6;
-        public var mainViewStackIndex:uint = MAIN_VIEW_STACK_EMPTY_VIEW;
-
-        public const UPLOAD_URL:String = "/openwms/upload";
-        public const DIRECTORY_NAME:String = "data";
-
-        public var allLocationGroups:ArrayCollection = new ArrayCollection();
-        public var allLocations:ArrayCollection = new ArrayCollection();
-        public var allTransportUnits:ArrayCollection = new ArrayCollection();
-        public var allModules:ArrayCollection = new ArrayCollection();
-        public var allUsers:ArrayCollection = new ArrayCollection();
-        public var selectedUser:User = null;
-        public var locationGroupTree:TreeNode;
-        public var image:Object;
-        private var views:Array = new Array();
-
-        private static var instance:ModelLocator;
-
-        /**
-         * Used to construct the Singleton instance.
-         */
-        public function ModelLocator(enforcer:SingletonEnforcer)
-        {
-        }
-
-        /**
-         * Return the instance of ModelLocator which is implemented
-         * as Singleton.
-         */
-        public static function getInstance():ModelLocator
-        {
-            if (instance == null)
-            {
-                instance = new ModelLocator(new SingletonEnforcer);
-            }
-            return instance;
-        }
-
-        /**
-         * Access the views array and add the viewObject to the defined
-         * position. The postion is mandatory for the viewStack.
-         */
-        public static function addView(pos:int, view:Object):void
-        {
-
-        }
-
-        /**
-         * Search the viewObject from the array of views and remove it.
-         */
-        public static function removeView(view:Object):void
-        {
-        }
-
-        /**
-         * Shift the view to a new position.
-         **/
-        public static function moveView(destPos:int, view:Object):void
-        {
-        }
-    }
-}
-
-class SingletonEnforcer
-{
-}


Made 'square' level winnable

Made 'square' level winnable

--- src/Testing/Goals/SquareGoal.as
+++ src/Testing/Goals/SquareGoal.as
@@ -8,7 +8,7 @@
 	public class SquareGoal extends GeneratedGoal {

 		public function SquareGoal() {
-			super(SquareTest, new Vector.<OpcodeValue>, 12, 1, 5);
+			super(SquareTest, new Vector.<OpcodeValue>, 12, 2, 5);
 			description = "Square each value in memory lines 0-4!";
 		}


added error checking

added error checking

--- WeaveData/src/weave/data/KeySets/FilteredKeySet.as
+++ WeaveData/src/weave/data/KeySets/FilteredKeySet.as
@@ -108,8 +108,13 @@
 			{
 				// KeySetUnion should not trigger callbacks
 				var union:KeySetUnion = registerDisposableChild(this, new KeySetUnion(keyInclusionLogic));
-				for each (var column:IAttributeColumn in sortColumns)
-					union.addKeySetDependency(column);
+				for each (var column:Object in sortColumns)
+				{
+					if (column is IAttributeColumn)
+						union.addKeySetDependency(column as IKeySet);
+					else
+						throw new Error("sortColumns must be an Array of IAttributeColumn objects");
+				}
 				// SortedKeySet should trigger callbacks
 				var compare:Function = keyCompare || SortedKeySet.generateCompareFunction(sortColumns, descendingFlags);
 				var sorted:SortedKeySet = registerLinkableChild(this, new SortedKeySet(union, compare, sortColumns));


updated PlotTask

updated PlotTask

--- WeaveUI/src/weave/visualization/layers/PlotTask.as
+++ WeaveUI/src/weave/visualization/layers/PlotTask.as
@@ -25,11 +25,12 @@
 	import weave.api.WeaveAPI;
 	import weave.api.core.IDisposableObject;
 	import weave.api.core.ILinkableObject;
+	import weave.api.data.IDynamicKeyFilter;
+	import weave.api.data.IQualifiedKey;
 	import weave.api.detectLinkableObjectChange;
 	import weave.api.disposeObjects;
 	import weave.api.getCallbackCollection;
 	import weave.api.primitives.IBounds2D;
-	import weave.api.registerLinkableChild;
 	import weave.api.ui.IPlotTask;
 	import weave.api.ui.IPlotter;
 	import weave.primitives.Bounds2D;
@@ -43,12 +44,14 @@
 	 */
 	public class PlotTask implements IPlotTask, ILinkableObject, IDisposableObject
 	{
-		public function PlotTask(zoomBounds:ZoomBounds, plotter:IPlotter)
+		public function PlotTask(zoomBounds:ZoomBounds, plotter:IPlotter, keyFilter:IDynamicKeyFilter)
 		{
+			_plotter = plotter;
+			_keyFilter = keyFilter;
 			_zoomBounds = zoomBounds;
-			_plotter = registerLinkableChild(this, plotter);

-			getCallbackCollection(_plotter).addImmediateCallback(this, asyncStart, true);
+			getCallbackCollection(_keyFilter).addImmediateCallback(this, asyncStart);
+			getCallbackCollection(_plotter).addImmediateCallback(this, asyncStart);
 		}

 		public function dispose():void
@@ -60,19 +63,20 @@

 		private var _bitmap:Bitmap = new Bitmap();
 		private var _plotter:IPlotter = null;
+		private var _keyFilter:IDynamicKeyFilter = null;
 		private var _zoomBounds:ZoomBounds;
 		private var _tempDataBounds:Bounds2D = new Bounds2D();
 		private var _tempScreenBounds:Bounds2D = new Bounds2D();
 		private var _iteration:uint = 0;
 		private var _recordKeys:Array;
 		private var _asyncState:Object;
-
+		private var _pendingRecordKeys:Array;
+		private var _iPendingRecordKey:uint;

 		/*

 		todo:
 		add a way to disable the task
-		derive recordKeys asynchronously from _plotter.keys and a key filter (see PlotLayer.getSelectedKeys())

 		*/

@@ -87,9 +91,39 @@
 			// if the plotter is busy, stop immediately
 			if (WeaveAPI.SessionManager.linkableObjectIsBusy(_plotter))
 				return 1;
+
+			// if keys change, restart
+			if (detectLinkableObjectChange(this, _plotter, _keyFilter))
+			{
+				_iPendingRecordKey = 0;
+				_pendingRecordKeys = _plotter.keySet.keys;
+				_recordKeys = [];
+			}

+			// if keys aren't ready yet, prepare keys
+			if (_pendingRecordKeys)
+			{
+				if (_iPendingRecordKey < _pendingRecordKeys.length)
+				{
+					// next key iteration - add key if included in filter
+					var key:IQualifiedKey = _pendingRecordKeys[_iPendingRecordKey] as IQualifiedKey;
+					if (_keyFilter.getInternalKeyFilter().containsKey(key))
+						_recordKeys.push(key);
+
+					// prepare for next iteration
+					_iPendingRecordKey++;
+
+					// not done yet
+					return 0;
+				}
+				// done with keys
+				_pendingRecordKeys = null;
+			}
+
+			// next draw iteration
 			var progress:Number = _plotter.drawPlotAsyncIteration(this);

+			// prepare for next iteration
 			_iteration++;

 			return progress;
@@ -97,14 +131,9 @@

 		private function asyncComplete():void
 		{
+			// if the plotter is busy, the graphics aren't ready, so don't trigger callbacks
 			if (!WeaveAPI.SessionManager.linkableObjectIsBusy(_plotter))
 				getCallbackCollection(this).triggerCallbacks();
-		}
-
-		public function setRecordKeys(keys:Array):void
-		{
-			_recordKeys = keys;
-			asyncStart();
 		}


Disallow infinite live edge jumps.

Disallow infinite live edge jumps.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -983,7 +983,7 @@
 						else
 						{
 							// Wait until we've been buffering for more than 1.5 segments to jump ahead.
-							jumpToLiveEdgeTimer = new Timer(indexHandler.getTargetSegmentDuration() * 1500);
+							jumpToLiveEdgeTimer = new Timer(indexHandler.getTargetSegmentDuration() * 1500, 1);
 							jumpToLiveEdgeTimer.addEventListener(TimerEvent.TIMER, onJumpToLiveEdgeTimer);
 						}
 					}
@@ -2260,7 +2260,7 @@
 						// do this, then we can get failed resume in some scenarios - ie, audio
 						// but no picture.

-						// Dance truncated (was close/play(null)); now just a seek.
+						// Dance truncated (was close/play(null)); now just a reset_seek.
 						appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);

 						// Preserve pause state.


Transferred from the Adobe Open Source Subversion Repository

Revision: 13502
Author:   jimurphy@adobe.com
Date:     2010-01-14T16:21:58.005354Z

Log Message:
-----------
Merged 3.x revs 13376,13384,13443 -> trunk
Blocked 3.x rev 13426

13443
* Fixed Ant compilation issue with RSL's.
SDK-24995

13384
asdoc for SOAPResult. no code changes.
LCDS-919

13376
Add missing ASDoc comments. No real code changes.
LCDS-920

Add new svn property to better track blocked revisions - svn:blockinfo. This will be updated by a script that I run to do merges (it can also be updated manually)

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

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/antTasks/src/flex/ant/types/URLElement.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/ISOAPEncoder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -723,6 +723,16 @@
         return super.cancel(id);
     }

+	/**
+	 *  Executes the http request for this operation. The parameters are optional, but if specified should
+     *  be an Object containing name-value pairs or an XML object depending on the contentType.
+     *
+     *  @param parameters An Object containing name-value pairs or an
+     *  XML object, depending on the content type for service requests.
+     *
+     *  @return An object representing the asynchronous completion token. It is the same object
+     *  available in the result or fault event's token property.
+	 */
     public function sendBody(parameters:Object):AsyncToken
     {
         var filter:SerializationFilter = getSerializationFilter();


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

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


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 13965
Author:   build@adobe.com
Date:     2010-02-03T20:37:12.428300Z

Log Message:
-----------
Version update to 4.5.0

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 833
Author:   genovese@adobe.com
Date:     2008-03-17T16:14:45.505732Z

Log Message:
-----------
ASDoc edits

Modified Paths:
--------------
<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/utils/ObjectProxy.as</path>

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

--- frameworks/projects/framework/src/mx/utils/ObjectProxy.as
+++ frameworks/projects/framework/src/mx/utils/ObjectProxy.as
@@ -534,7 +534,9 @@
     /**
      *  Registers an event listener object
      *  so that the listener receives notification of an event.
-     *  For more information, see the flash.events.EventDispatcher class.
+     *  For more information, including descriptions of the parameters see
+     *  addEventListener() in the
+     *  flash.events.EventDispatcher class.
      *
      *  @see flash.events.EventDispatcher#addEventListener()
      */
@@ -551,7 +553,20 @@
      *  Removes an event listener.
      *  If there is no matching listener registered with the EventDispatcher object,
      *  a call to this method has no effect.
-     *  For more information, see the flash.events.EventDispatcher class.
+     *  For more information, see
+     *  the flash.events.EventDispatcher class.
+     *
+     *  @param type The type of event.
+     *
+     *  @param listener The listener object to remove.
+     *
+     *  @param useCapture Specifies whether the listener was registered for the capture
+     *  phase or the target and bubbling phases. If the listener was registered for both
+     *  the capture phase and the target and bubbling phases, two calls to
+     *  removeEventListener() are required to remove both, one call with
+     *  useCapture
+     *  set to true, and another call with useCapture
+     *  set to false.
      *
      *  @see flash.events.EventDispatcher#removeEventListener()
      */
@@ -563,7 +578,17 @@

     /**
      *  Dispatches an event into the event flow.
-     *  For more information, see the flash.events.EventDispatcher class.
+     *  For more information, see
+     *  the flash.events.EventDispatcher class.
+     *
+     *  @param event The Event object that is dispatched into the event flow. If the
+     *  event is being redispatched, a clone of the event is created automatically.
+     *  After an event is dispatched, its target property cannot be changed, so you
+     *  must create a new copy of the event for redispatching to work.
+     *
+     *  @return true if the event was successfully dispatched. A value
+     *  of false indicates failure or that preventDefault()
+     *  was called on the event.
      *
      *  @see flash.events.EventDispatcher#dispatchEvent()
      */
@@ -577,7 +602,13 @@
      *  for a specific type of event.
      *  This allows you to determine where an object has altered handling
      *  of an event type in the event flow hierarchy.
-     *  For more information, see the flash.events.EventDispatcher class.
+     *  For more information, see
+     *  the flash.events.EventDispatcher class.
+     *
+     *  @param type The type of event
+     *
+     *  @return true if a listener of the specified type is
+     *  registered; false otherwise.
      *
      *  @see flash.events.EventDispatcher#hasEventListener()
      */
@@ -594,6 +625,11 @@
      *  type is dispatched to this object or any of its descendants.
      *  For more information, see the flash.events.EventDispatcher class.
      *
+     *  @param type The type of event.
+     *
+     *  @return A value of true if a listener of the specified type will
+     *  be triggered; false otherwise.
+     *
      *  @see flash.events.EventDispatcher#willTrigger()
      */
     public function willTrigger(type:String):Boolean
@@ -603,6 +639,8 @@

     /**
      *  Called when a complex property is updated.
+     *
+     *  @param event An event object that has changed.
      */
     public function propertyChangeHandler(event:PropertyChangeEvent):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2520
Author:   kelin@adobe.com
Date:     2008-07-17T20:36:21.699750Z

Log Message:
-----------
Initial TrackBase, Slider, HSlider, and VSlider checkin (with wireframe skins!).

TrackBase is a subclass of Range that provides thumb dragging functionality along a track. Slider and eventually ScrollBar will subclass TrackBase. Slider subclasses TrackBase and adds Slider-specific functionality like keyboard handling and track-click handling. HSlider and VSlider are initial implementations with tentative wireframe skins. Note: ScrollBar has not been changed to subclass TrackBase yet.

-Updated manifest/css files
-Added slider examples to flex4test

Reviewer: Jason
Bugs: -
QA: Yes

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HSlider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/Flex4Classes.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VSlider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6843
Author:   jimurphy@adobe.com
Date:     2009-05-12T13:58:34.182467Z

Log Message:
-----------
Merged beta1 revisions 6793,6796-6797,6802,6805,6808-6809,6831 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/MouseShieldUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableContainerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/TileLayout.as
+++ frameworks/projects/spark/src/spark/layouts/TileLayout.as
@@ -16,14 +16,10 @@
 import mx.core.ILayoutElement;
 import mx.core.IVisualElement;
 import mx.events.PropertyChangeEvent;
+
 import spark.components.supportClasses.GroupBase;
 import spark.core.NavigationUnit;
-import spark.layouts.HorizontalAlign;
 import spark.layouts.supportClasses.LayoutBase;
-import spark.layouts.ColumnAlign;
-import spark.layouts.RowAlign;
-import spark.layouts.TileOrientation;
-import spark.layouts.VerticalAlign;

 /**
  *  TileLayout arranges the layout elements in columns and rows
@@ -1416,14 +1412,24 @@
         if (!target || target.numElements < 1)
             return -1;

+        // Special case when nothing was previously selected
+        if (currentIndex == -1)
+        {
+            if (navigationUnit == NavigationUnit.UP || navigationUnit == NavigationUnit.LEFT)
+                return -1;
+
+            if (navigationUnit == NavigationUnit.DOWN || navigationUnit == NavigationUnit.RIGHT)
+                return 0;
+        }
+
         // Make sure currentIndex is within range
+        var inRows:Boolean = orientation == TileOrientation.ROWS;
         var maxIndex:int = target.numElements - 1;
         currentIndex = Math.max(0, Math.min(maxIndex, currentIndex));

         // Find the current column and row
         var currentRow:int;
         var currentColumn:int;
-        var inRows:Boolean = orientation == TileOrientation.ROWS;
         if (inRows)
         {
             // Is the TileLayout initialized with valid values?


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

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

 package mx.rpc.xml
 {


[FragmentDemuxedStream] Add complete state variable

--- src/com/pivotshare/hls/loader/FragmentDemuxedStream.as
+++ src/com/pivotshare/hls/loader/FragmentDemuxedStream.as
@@ -72,6 +72,11 @@
          */
         private var _options : Object;

+        /*
+         * Whether Fragment has completed processing (loading/demuxing).
+         */
+        private var _complete : Boolean;
+
         //
         //
         //
@@ -99,6 +104,7 @@
             _metrics = null;
             _demux = null;
             _options = new Object();
+            _complete = false;
         };

         /*
@@ -110,6 +116,16 @@
          */
         public function getFragment() : Fragment {
             return _fragment;
+        }
+
+        /**
+         * Whether Fragment has completed loading and demuxing.
+         *
+         * @method  complete
+         * @return  {Boolean}
+         */
+        public function get complete():Boolean {
+            return _complete;
         }

         /*
@@ -371,6 +387,7 @@
             }

             _metrics.parsing_end_time = getTimer();
+            _complete = true;

             var completeEvent : Event = new ProgressEvent(Event.COMPLETE);
             dispatchEvent(completeEvent);


applyAlphaMapTechnique texture parameter fix

--- Source/Stage3D/Away3D/Away3D_Loader/src/sunag/sea3d/SEA3D.as
+++ Source/Stage3D/Away3D/Away3D_Loader/src/sunag/sea3d/SEA3D.as
@@ -431,7 +431,7 @@

 		protected function applyAlphaMapTechnique(mat:IPassMaterial, tech:Object):void
 		{
-			mat.addMethod(new AlphaMaskMethod(tech.texture));
+			mat.addMethod(new AlphaMaskMethod(tech.texture.tag));

 			if (mat is ITranslucentMaterial)
 			{


Cleaned up Flash GetPixel code...

Cleaned up Flash GetPixel code...

--- src/diddy/native/diddy.flash.as
+++ src/diddy/native/diddy.flash.as
@@ -3,23 +3,13 @@
 class diddy
 {
 	static public function getPixel(x:int, y:int):int{
-		var alpha:Number = 0;
-		var red:Number = 0;
-		var green:Number = 0;
-		var blue:Number = 0;
-
 		var bmd:BitmapData = new BitmapData(1, 1);
 		var matrix:Matrix = new Matrix();
 		matrix.translate(-x, -y);
 		bmd.draw(game.stage, matrix);
-		var pixel:uint = bmd.getPixel(0, 0);
+		var pixel:uint = bmd.getPixel32(0, 0);

-		alpha = pixel >> 24 & 0xFF;
-		red = pixel >> 16 & 0xFF;
-		green = pixel >> 8 & 0xFF;
-		blue = pixel & 0xFF;
-
-		return pixel;//alpha << 24 | red << 16 | green << 8 | blue;
+		return pixel;
 	}

 	static public function systemMillisecs():Number


AutomaticExporter: don't publish Combined formats if they haven't changed

--- exporter/src/main/as/flump/export/AutomaticExporter.as
+++ exporter/src/main/as/flump/export/AutomaticExporter.as
@@ -48,7 +48,7 @@
             var exec :Executor = new Executor();
             exec.completed.connect(function () :void {
                 // if finding docs generates a crit error, we need to fail immediately
-                if (_handedCritError) exit();
+                if (_handledCritError) exit();
             });
             findFlashDocuments(_importDirectory, exec, true);
         }
@@ -69,7 +69,7 @@
             return;
         }

-        println("\nLoading complete.");
+        println("Loading complete.\n");

         if (_conf.exportDir == null) {
             exit("No export directory specified.");
@@ -100,12 +100,16 @@
             var libs :Vector.<XflLibrary> = getLibs();
             // if we have one or more combined export format, publish them
             if (hasCombined) {
-                println("Exporting combined formats...");
-                var numPublished :int = publisher.publishCombined(libs);
-                if (numPublished == 0) {
-                    printErr("No suitable formats were found for combined publishing.");
+                if (publisher.modified(libs)) {
+                    println("Exporting combined formats...");
+                    var numPublished :int = publisher.publishCombined(libs);
+                    if (numPublished == 0) {
+                        printErr("No suitable formats were found for combined publishing.");
+                    } else {
+                        println("" + numPublished + " combined formats published.");
+                    }
                 } else {
-                    println("" + numPublished + " combined formats published.");
+                    println("Skipping 'Export Combined' (files are unmodified).");
                 }
             }

@@ -130,12 +134,12 @@
             return;
         }

-        println("\nPublishing complete!");
+        println("Publishing complete.\n");
         exit();
     }

     override protected function handleParseError (err :ParseError) :void {
-        if (err.severity == ParseError.CRIT) _handedCritError = true;
+        if (err.severity == ParseError.CRIT) _handledCritError = true;
         printErr(err);
     }

@@ -193,7 +197,7 @@

     protected var OUT :FileStream;

-    protected var _handedCritError :Boolean = false;
+    protected var _handledCritError :Boolean = false;
     protected var _statuses :Array = [];
 }
 }


Added script for converting the session history to a CSV. Type eval(HISTORY_TO_CSV) in the console.

--- WeaveCore/src/weave/utils/DebugUtils.as
+++ WeaveCore/src/weave/utils/DebugUtils.as
@@ -15,8 +15,6 @@

 package weave.utils
 {
-	import avmplus.DescribeType;
-
 	import flash.display.DisplayObject;
 	import flash.display.DisplayObjectContainer;
 	import flash.events.TimerEvent;
@@ -27,10 +25,12 @@
 	import flash.utils.Timer;
 	import flash.utils.getQualifiedClassName;

+	import avmplus.DescribeType;
+
+	import weave.api.getCallbackCollection;
+	import weave.api.getSessionState;
 	import weave.api.core.DynamicState;
 	import weave.api.core.ILinkableObject;
-	import weave.api.getCallbackCollection;
-	import weave.api.getSessionState;
 	import weave.compiler.Compiler;
 	import weave.compiler.StandardLib;

@@ -411,6 +411,54 @@
 			var t:Timer = new Timer(delay, 1);
 			t.addEventListener(TimerEvent.TIMER, function(..._):*{ func.apply(null, params); });
 			t.start();
+		}
+
+		/**
+		 * @param state A session state.
+		 * @return An Array of Arrays, each like [path, value].
+		 */
+		public static function flattenSessionState(state:Object, pathPrefix:Array = null, output:Array = null):Array
+		{
+			if (!pathPrefix)
+				pathPrefix = [];
+			if (!output)
+				output = [];
+			if (DynamicState.isDynamicStateArray(state))
+			{
+				for each (var obj:Object in state)
+				{
+					if (DynamicState.isDynamicState(obj))
+					{
+						var objectName:String = obj[DynamicState.OBJECT_NAME];
+						var className:String = obj[DynamicState.CLASS_NAME];
+						var sessionState:Object = obj[DynamicState.SESSION_STATE];
+						pathPrefix.push(objectName);
+						if (className)
+							output.push([pathPrefix.concat('class'), className]);
+						flattenSessionState(sessionState, pathPrefix, output);
+						pathPrefix.pop();
+					}
+				}
+			}
+			else if (state is Array)
+			{
+				output.push([pathPrefix.concat(), state]);
+			}
+			else if (typeof state === 'object' && state !== null)
+			{
+				for (var key:String in state)
+				{
+					pathPrefix.push(key);
+					flattenSessionState(state[key], pathPrefix, output);
+					pathPrefix.pop();
+				}
+			}
+			else
+			{
+				output.push([pathPrefix.concat(), state]);
+			}
+
+			return output;
 		}

 		/**
@@ -482,5 +530,14 @@
 			StandardLib.sortOn(keys, function(key:String):String { return key.split('::').pop(); });
 			return keys.map(function(key:String, i:int, a:Array):String { return '\t' + key + ': ' + debugId(object[key]); }).join('\n');
 		}
+
+		public static const HISTORY_TO_CSV:String = StandardLib.unIndent(<![CDATA[
+			var data = [['t','path','value']].concat.apply(null, Weave.history.undoHistory.map((e,t)=>flattenSessionState(e.forward).map((a,i)=>[t,'Weave'+a[0].map(n=>EquationColumn.compiler.isValidSymbolName(n)?'.'+n:Compiler.stringify([n])).join(''),Compiler.stringify(a[1])])));
+			var name = WeaveAPI.globalHashMap.generateUniqueName("Session History");
+			var csv = WeaveAPI.globalHashMap.requestObject(name, CSVDataSource, false);
+			csv.csvData.setSessionState(data);
+			var table = WeaveAPI.globalHashMap.requestObject(null, TableTool, false);
+			data[0].forEach(n=>csv.putColumnInHashMap(n, table.columns));
+		]]>);
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 22448
Author:   build@adobe.com
Date:     2011-09-08T19:26:12.465737Z

Log Message:
-----------
Version update to 4.6.0

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark_dmv/src/spark/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/charts/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/build.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/airframework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/advancedgrids/src/mx/core/Version.as</path>

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

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


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

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

 package mx.charts
 {


fixed RTE when having multiple selections and unselecting first selection via ctrl clicking

--- frameworks/projects/mx/src/mx/controls/CalendarLayout.as
+++ frameworks/projects/mx/src/mx/controls/CalendarLayout.as
@@ -2052,7 +2052,7 @@
 		}

 		// clean up any removed selections
-		for (n = selectedRangeCount -1; n > 0; n--)
+		for (n = selectedRangeCount -1; n >= 0; n--)
 		{
 			if (_selectedRanges[n] == null)
 			{