Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> 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="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.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/framework/src/mx/managers/dragClasses/DragProxy.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/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</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/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.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/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/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>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.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/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.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/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.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/airframework/src/mx/managers/WindowedSystemManager.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/managers/SystemManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/mx/src/mx/controls/List.as
+++ frameworks/projects/mx/src/mx/controls/List.as
@@ -57,6 +57,7 @@
 import mx.events.CollectionEventKind;
 import mx.events.ListEvent;
 import mx.events.ListEventReason;
+import mx.events.SandboxMouseEvent;
 import mx.events.ScrollEvent;
 import mx.events.ScrollEventDetail;
 import mx.managers.IFocusManager;
@@ -2063,6 +2064,8 @@
         // use weak reference
         systemManager.getSandboxRoot().
             addEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true, 0, true);
+        systemManager.getSandboxRoot().
+            addEventListener(SandboxMouseEvent.MOUSE_DOWN_SOMEWHERE, editorMouseDownHandler, false, 0, true);

     }

@@ -2128,6 +2131,8 @@
             DisplayObject(itemEditorInstance).removeEventListener(KeyboardEvent.KEY_DOWN, editorKeyDownHandler);
             systemManager.getSandboxRoot().
                 removeEventListener(MouseEvent.MOUSE_DOWN, editorMouseDownHandler, true);
+            systemManager.getSandboxRoot().
+                removeEventListener(SandboxMouseEvent.MOUSE_DOWN_SOMEWHERE, editorMouseDownHandler);

             var event:ListEvent =
                 new ListEvent(ListEvent.ITEM_FOCUS_OUT);
@@ -2416,10 +2421,12 @@
     /**
      *  @private
      */
-    private function editorMouseDownHandler(event:MouseEvent):void
-    {
-        if (!itemRendererContains(itemEditorInstance, DisplayObject(event.target)))
-            endEdit(ListEventReason.OTHER);
+    private function editorMouseDownHandler(event:Event):void
+    {
+        if (event is MouseEvent && itemRendererContains(itemEditorInstance, DisplayObject(event.target)))
+			return;
+
+        endEdit(ListEventReason.OTHER);
     }

     /**


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

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


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

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

 package mx.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3219
Author:   deeptika@adobe.com
Date:     2008-09-16T08:33:39.937798Z

Log Message:
-----------
Checking in support for Network Monitor in rpc.swc

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as</path>

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

--- frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as
+++ frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as
@@ -0,0 +1,174 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
+//  All Rights Reserved. The following is Source Code and is subject to all
+//  restrictions on such code as contained in the End User License Agreement
+//  accompanying this product. If you have received this file from a source
+//  other than Adobe, then your use, modification, or distribution of this file
+//  requires the prior written permission of Adobe.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.netmon
+{
+
+import flash.events.Event;
+import flash.net.URLRequest;
+
+/**
+ *  NetworkMonitor is a stub used by the framework and enterprise service
+ *  classes to send information to the Flex Builder Network Monitor feature.
+ *
+ *  The NetworkMonitor declares a number of Impl functions which are to be
+ *  filled in by a mix-in class provided by FlexBuilder.
+ *  If those functions are not assigned the stub will do nothing,
+ *  will or return false or null as appropriate.
+ *  We don't use a singleton or an instance object at the moment to simplify
+ *  the code that calls the monitor.
+ */
+public class NetworkMonitor
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Class mixins
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var isMonitoringImpl:Function;
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var adjustURLRequestImpl:Function;
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var monitorEventImpl:Function;
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var monitorInvocationImpl:Function;
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var monitorResultImpl:Function;
+
+    /**
+	 *  To be assigned by mix-in.
+	 */
+    public static var monitorFaultImpl:Function;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Returns true if the monitor is linked and monitoring.
+     */
+    public static function isMonitoring():Boolean
+    {
+        return isMonitoringImpl != null ? isMonitoringImpl() : false;
+    }
+
+	/**
+	 *  Adjust the URLRequest so that it goes through the monitor.
+	 *  The URLRequest sent to the monitor will have two headers:
+     *  actualHostPort -- the real host:port for the url
+     *  correlationID  -- the correlationID for the request in case it's from
+     *                    messaging (Image/Loader requests need to create
+     *                    their  own correlationIDs)
+	 *
+     *  @param urlRequest The URLRequest to adjust.
+	 *  (Relative URLs are supported.)
+	 *
+     *  @param rootURL Used to compute an absolute URL from the relative
+	 *  if necessary, pass the SWFs URL.
+	 *
+     *  @param correlationID The correlationID that may be used
+	 *  for associated events.
+	 */
+    public static function adjustURLRequest(urlRequest:URLRequest,
+											rootURL:String,
+											correlationID:String):void
+    {
+        if (adjustURLRequestImpl != null)
+            adjustURLRequestImpl(urlRequest, rootURL, correlationID);
+    }
+
+    /**
+     *  Tell the monitor that an event occurred.
+	 *  This may be used by the Loader to monitor Security and IOErrors
+	 *  (not that Security will ever be thrown).
+     *  I don't think it should be used in the general case and I'm not
+	 *  sure it should be used for the Loader's complete event either...
+     *
+     *  @param event The event that is about to occur (or occurred).
+	 *
+     *  @param correlationID The correlationID to associate with other events
+	 *  or the request.
+     */
+    public static function monitorEvent(event:Event,
+										correlationID:String):void
+    {
+        if (monitorEventImpl != null)
+			monitorEventImpl(event, correlationID);
+    }
+
+    /**
+     *  Tell the monitor that an invocation is occuring.
+	 *
+     *  @param id The id of the tag causing the invocation
+	 *  if it can be determined.
+	 *
+     *  @param invocationMessage The Message that will be sent across the wire.
+     *  (It is untyped here to avoid linking in the dependency.)
+     */
+    public static function monitorInvocation(id:String,
+											 invocationMessage:Object):void
+    {
+        if (monitorInvocationImpl != null)
+			monitorInvocationImpl(id, invocationMessage);
+    }
+
+    /**
+     *  Tell the monitor that a result was returned.
+	 *
+     *  @param resultMessage The Message that came back indicating the result.
+     *  (It is untyped here to avoid linking in the dependency.)
+	 *
+     *  @param actualResult the decoded result
+     */
+    public static function monitorResult(resultMessage:Object,
+										 actualResult:Object):void
+    {
+        if (monitorResultImpl != null)
+			monitorResultImpl(resultMessage, actualResult);
+    }
+
+    /**
+     *  Tell the monitor that a fault occurred.
+	 *
+     *  @param faultMessage The Message that came back indicating the result.
+     *  It be null if this was due to an invocation failure.
+     *  (It is untyped here to avoid linking in the dependency.)
+	 *
+     *  @param actualFault The Fault that occurred.
+     *  (It is untyped here to avoid linking in the dependency.)
+     */
+    public static function monitorFault(faultMessage:Object,
+										actualFault:Object):void
+    {
+        if (monitorFaultImpl != null)
+			monitorFaultImpl(faultMessage, actualFault);
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 18565
Author:   hmuller@adobe.com
Date:     2010-11-12T21:52:04.958402Z

Log Message:
-----------
Ignore DataGrid stretchCursor style values when they're the wrong type (not a Class).

Added GridEvent/grid and GridItemRenderer/grid read-only properties.

Added DataGrid,Grid/invalidateTypicalItem() method.

Change GridColumnHeaderGroupLayout/measure - minimized measuredWidth to eliminate impact on DataGrid measuredWidth

QE notes:
Doc notes:
Bugs: SDK-27776, SDK-28538
Reviewer: Carol
Tests run: checkin
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/events/GridEvent.as
+++ frameworks/projects/spark/src/spark/events/GridEvent.as
@@ -15,7 +15,9 @@
 import flash.events.Event;
 import flash.events.MouseEvent;

+import spark.components.Grid;
 import spark.components.gridClasses.GridColumn;
+import spark.components.gridClasses.IDataGridElement;
 import spark.components.gridClasses.IGridItemRenderer;

 /**
@@ -361,6 +363,33 @@

     //----------------------------------
+    //  grid
+    //----------------------------------
+
+    /**
+     *  Returns the Grid associated with this event.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get grid():Grid
+    {
+        if (column)
+            return column.grid;
+
+        if (target is Grid)
+            return Grid(target);
+
+        const elt:IDataGridElement = target as IDataGridElement;
+        if (elt && elt.dataGrid)
+            return elt.dataGrid.grid;
+
+        return null;
+    }
+
+    //----------------------------------
     //  item
     //----------------------------------


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

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

 package spark.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3780
Author:   rfrishbe@adobe.com
Date:     2008-10-21T17:51:40.243336Z

Log Message:
-----------
Fix for bug introduced yesterday when adding clipContent to FxContainer and FxDataContainer.  The default value needs to be true.

Also fixing a bug in SystemManager since application isn't always an IRawChildrenContainer anymore.  This was previously fixed and got clobbered in a merge.

QE Notes: None
Doc Notes: None
Bugs: SDK-17423, SDK-17697
Reviewer: Hans

Modified Paths:
--------------
<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/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -3408,7 +3408,9 @@
 			{
 				var n:int = forms.length;
 				var p:DisplayObject = DisplayObject(event.target);
-                                var isApplication:Boolean = document.rawChildren.contains(p);
+                var isApplication:Boolean = document is IRawChildrenContainer ?
+                                            IRawChildrenContainer(document).rawChildren.contains(p) :
+                                            document.contains(p);
 				while (p)
 				{
 					for (var i:int = 0; i < n; i++)


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

--- frameworks/projects/mx/src/mx/accessibility/DataGridAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/DataGridAccImpl.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.accessibility
 {


fix indent

fix indent

--- src/org/mangui/hls/loader/LevelLoader.as
+++ src/org/mangui/hls/loader/LevelLoader.as
@@ -12,15 +12,15 @@
     import flash.utils.clearTimeout;
     import flash.utils.getTimer;
     import flash.utils.setTimeout;
-
-    import org.mangui.hls.HLS;
-    import org.mangui.hls.HLSSettings;
+
     import org.mangui.hls.constant.HLSLoaderTypes;
     import org.mangui.hls.constant.HLSPlayStates;
     import org.mangui.hls.constant.HLSTypes;
     import org.mangui.hls.event.HLSError;
     import org.mangui.hls.event.HLSEvent;
     import org.mangui.hls.event.HLSLoadMetrics;
+    import org.mangui.hls.HLS;
+    import org.mangui.hls.HLSSettings;
     import org.mangui.hls.model.Fragment;
     import org.mangui.hls.model.Level;
     import org.mangui.hls.playlist.AltAudioTrack;
@@ -56,7 +56,7 @@
         /* playlist retry timeout */
         private var _retryTimeout : Number;
         private var _retryCount : int;
-		private var _redundantRetryCount:int;
+        private var _redundantRetryCount:int;
         /* alt audio tracks */
         private var _altAudioTracks : Vector.<AltAudioTrack>;
         /* manifest load metrics */
@@ -104,30 +104,30 @@
                 _retryCount++;
                 return;
             } else {
-                // if we have redundant streams left for that level, switch to it, otherwise retry primary stream
-				if(_loadLevel < _levels.length && _levels[_loadLevel].redundantStreamsNb>0 ) {
-					CONFIG::LOGGING {
-						Log.warn("max load retry reached, switch to redundant stream");
-					}
-					// try next redundant stream
-					if (_levels[_loadLevel].redundantStreamId < _levels[_loadLevel].redundantStreamsNb) {
-						_levels[_loadLevel].redundantStreamId++;
-					}
-					// retry primary stream if the last redundant stream has failed and HLSSettings.manifestRedundantLoadmaxRetry allows
-					else if ((HLSSettings.manifestRedundantLoadmaxRetry > 0 && _redundantRetryCount < HLSSettings.manifestRedundantLoadmaxRetry ) || HLSSettings.manifestRedundantLoadmaxRetry==-1 ) {
-							_redundantRetryCount++;
-							_levels[_loadLevel].redundantStreamId = 0;
-					}
-					else {
-						code = HLSError.MANIFEST_LOADING_IO_ERROR;
-						txt = "Cannot load M3U8: " + event.text;
-						dispatchHLSError(code, txt);
-						return;
-					}
-					_timeoutID = setTimeout(_loadActiveLevelPlaylist, 0);
-					_retryTimeout = 1000;
-					_retryCount = 0;
-					return;
+                // if we have redundant streams left for that level, switch to it, otherwise retry primary stream
+                if(_loadLevel < _levels.length && _levels[_loadLevel].redundantStreamsNb>0 ) {
+                    CONFIG::LOGGING {
+                        Log.warn("max load retry reached, switch to redundant stream");
+                    }
+                    // try next redundant stream
+                    if (_levels[_loadLevel].redundantStreamId < _levels[_loadLevel].redundantStreamsNb) {
+                        _levels[_loadLevel].redundantStreamId++;
+                    }
+                    // retry primary stream if the last redundant stream has failed and HLSSettings.manifestRedundantLoadmaxRetry allows
+                    else if ((HLSSettings.manifestRedundantLoadmaxRetry > 0 && _redundantRetryCount < HLSSettings.manifestRedundantLoadmaxRetry ) || HLSSettings.manifestRedundantLoadmaxRetry==-1 ) {
+                            _redundantRetryCount++;
+                            _levels[_loadLevel].redundantStreamId = 0;
+                    }
+                    else {
+                        code = HLSError.MANIFEST_LOADING_IO_ERROR;
+                        txt = "Cannot load M3U8: " + event.text;
+                        dispatchHLSError(code, txt);
+                        return;
+                    }
+                    _timeoutID = setTimeout(_loadActiveLevelPlaylist, 0);
+                    _retryTimeout = 1000;
+                    _retryCount = 0;
+                    return;
                 } else {
                     // if level > 0 and in autolevel, and switch down on level error is activated, trigger LEVEL_LOADING_ABORTED
                     if(_loadLevel && _hls.autoLevel && HLSSettings.switchDownOnLevelError) {
@@ -139,13 +139,13 @@
                     }
                 }
             }
-			dispatchHLSError(code, txt);
-        }
-
-		private function dispatchHLSError(code:int, txt:String):void {
+            dispatchHLSError(code, txt);
+        }
+
+        private function dispatchHLSError(code:int, txt:String):void {
             var hlsError : HLSError = new HLSError(code, _url, txt);
-            _hls.dispatchEvent(new HLSEvent(HLSEvent.ERROR, hlsError));
-		}
+            _hls.dispatchEvent(new HLSEvent(HLSEvent.ERROR, hlsError));
+        }

         /** Return the current manifest. **/
         public function get levels() : Vector.<Level> {
@@ -180,7 +180,7 @@
             _reloadPlaylistTimer = getTimer();
             _retryTimeout = 1000;
             _retryCount = 0;
-			_redundantRetryCount = 0;
+            _redundantRetryCount = 0;
             _altAudioTracks = null;
             _loadManifest();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 22416
Author:   tkraikit@adobe.com
Date:     2011-09-06T22:14:53.007831Z

Log Message:
-----------
cleanup TODOs, added ASDoc; added check for invalid input type in YearProvider.getItemIndex(Object)

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as
+++ frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as
@@ -97,8 +97,6 @@
     //
     //----------------------------------------------------------------------------------------------

-    // TODO: look at storing these as ms values instead of Date objects, and create one Date object to use for Date math
-
     // start of the date range
     private var startDate:Date;


fix parsing of alt-audio tags with special characters in URL such as ( or ,

--- src/org/mangui/hls/playlist/Manifest.as
+++ src/org/mangui/hls/playlist/Manifest.as
@@ -32,6 +32,8 @@
         public static const ENDLIST : String = '#EXT-X-ENDLIST';
         /** Tag that provides info related to alternative audio tracks */
         public static const ALTERNATE_AUDIO : String = '#EXT-X-MEDIA:TYPE=AUDIO,';
+        /** Tag that provides info related to alternative rendition */
+        private static const MEDIA : String = '#EXT-X-MEDIA:';
         /** Tag that provides the sequence number. **/
         private static const SEQNUM : String = '#EXT-X-MEDIA-SEQUENCE:';
         /** Tag that provides the target duration for each segment. **/
@@ -120,7 +122,7 @@
         }

         /** Extract fragments from playlist data. **/
-        public static function getFragments(data : String, base : String , level : int) : Vector.<Fragment> {
+        public static function getFragments(data : String, base : String, level : int) : Vector.<Fragment> {
             var fragments : Vector.<Fragment> = new Vector.<Fragment>();
             var lines : Array = data.split("\n");
             // fragment seqnum
@@ -330,7 +332,7 @@
                                 level.codec_mp3 = true;
                             }
                         } else if (param.indexOf('AUDIO') > -1) {
-                            level.audio_stream_id = (param.split('=')[1] as String).replace(replacedoublequote, "").replace(trimwhitespace,"");
+                            level.audio_stream_id = (param.split('=')[1] as String).replace(replacedoublequote, "").replace(trimwhitespace, "");
                         } else if (param.indexOf('NAME') > -1) {
                             level.name = (param.split('=')[1] as String).replace(replacedoublequote, "");
                         }
@@ -363,50 +365,94 @@
             var i : int = 0;
             while (i < lines.length) {
                 var line : String = lines[i++];
-                if (line.indexOf(ALTERNATE_AUDIO) == 0) {
-                    line = line.replace(replacedoublequote, "");
-                    CONFIG::LOGGING {
-                        Log.debug("parsing alternate audio level info:\n" + line);
-                    }
+                if (line.indexOf(MEDIA) == 0) {
+                    var params : Object = _parseAlternateRendition(line);
+
                     // #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 1",AUTOSELECT=YES,DEFAULT=YES
                     // #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 2",AUTOSELECT=NO,DEFAULT=NO,URI="alternate_audio_aac_sinewave/prog_index.m3u8"
-                    var params : Array = line.substr(ALTERNATE_AUDIO.length).split(',');
-                    var alt_group_id : String;
-                    var alt_lang : String;
-                    var alt_name : String;
-                    var alt_autoselect : Boolean = false;
-                    var alt_default : Boolean = false;
-                    var alt_url : String;
-                    for (var j : int = 0; j < params.length; j++) {
-                        var param : String = params[j];
-                        if (param.indexOf('GROUP-ID') > -1) {
-                            alt_group_id = param.split('=')[1];
-                        } else if (param.indexOf('LANGUAGE') > -1) {
-                            alt_lang = param.split('=')[1];
-                        } else if (param.indexOf('NAME') > -1) {
-                            alt_name = param.split('=')[1];
-                        } else if (param.indexOf('AUTOSELECT') > -1) {
-                            if (param.split('=')[1] == "NO") {
-                                alt_autoselect = false;
-                            } else {
-                                alt_autoselect = true;
-                            }
-                        } else if (param.indexOf('DEFAULT') > -1) {
-                            if (param.split('=')[1] == "NO") {
-                                alt_default = false;
-                            } else {
-                                alt_default = true;
-                            }
-                        } else if (param.indexOf('URI') > -1) {
-                            alt_url = Manifest._extractURL(param.split('=')[1], base);
-                        }
-                    }
-                    var alternate_audio : AltAudioTrack = new AltAudioTrack(alt_group_id, alt_lang, alt_name, alt_autoselect, alt_default, alt_url);
-                    altAudioTracks.push(alternate_audio);
+                    // #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="eng",URI="captions.m3u8"
+
+                    var uri : String = params['URI'];
+                    if (uri) {
+                        uri = _extractURL(uri, base);
+                    }
+                    if (params['TYPE'] == 'AUDIO') {
+                        var alternate_audio : AltAudioTrack = new AltAudioTrack(params['GROUP-ID'], params['LANGUAGE'], params['NAME'], params['AUTOSELECT'] == 'YES', params['DEFAULT'] == 'YES', uri);
+                        altAudioTracks.push(alternate_audio);
+                    }
                 }
             }
             return altAudioTracks;
         };
+
+        private static const RENDITION_STATE_READKEY : Number = 1;
+        private static const RENDITION_STATE_READVALUESTART : Number = 2;
+        private static const RENDITION_STATE_READSIMPLEVALUE : Number = 3;
+        private static const RENDITION_STATE_READQUOTEDVALUE : Number = 4;
+        private static const STATE_READQUOTEDVALUE_END : Number = 5;
+
+        private static function _parseAlternateRendition(line : String) : Object {
+            var variables : Object = new Object();
+            var state : Number = RENDITION_STATE_READKEY;
+            var pos : Number = 0;
+            var c : String;
+            var key : String = "";
+            var value : String = "";
+            line = line.substr(MEDIA.length);
+
+            while (pos < line.length) {
+                c = line.charAt(pos);
+                pos++;
+                switch (state) {
+                    case RENDITION_STATE_READKEY:
+                        if (c == '=') {
+                            state = RENDITION_STATE_READVALUESTART;
+                        } else {
+                            key += c;
+                        }
+                        break;
+                    case RENDITION_STATE_READVALUESTART:
+                        if (c == '"') {
+                            state = RENDITION_STATE_READQUOTEDVALUE;
+                        } else {
+                            value += c;
+                            state = RENDITION_STATE_READSIMPLEVALUE;
+                        }
+                        break;
+                    case RENDITION_STATE_READSIMPLEVALUE:
+                        if (c == ",") {
+                            variables[key] = value;
+                            key = "";
+                            value = "";
+                            state = RENDITION_STATE_READKEY;
+                        } else {
+                            value += c;
+                        }
+                        break;
+                    case RENDITION_STATE_READQUOTEDVALUE:
+                        if (c == '"') {
+                            state = STATE_READQUOTEDVALUE_END;
+                        } else {
+                            value += c;
+                        }
+                        break;
+                    case STATE_READQUOTEDVALUE_END:
+                        if (c == ",") {
+                            variables[key] = value;
+                            key = "";
+                            value = "";
+                            state = RENDITION_STATE_READKEY;
+                        }
+                        break;
+                }
+            }
+
+            if (key) {
+                variables[key] = value;
+            }
+
+            return variables;
+        }

         /** Extract whether the stream is live or ondemand. **/
         public static function hasEndlist(data : String) : Boolean {


Change 20090901-hqm-S by hqm@badtzmaru.home on 2009-09-01 18:05:05 EDT
    in /Users/hqm/openlaszlo/trunk6/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary: fix sizing of runtime-loaded images in swf9

New Features:

Bugs Fixed: LPP-8048

Technical Reviewer: andre
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ when image is loaded, measure it's size using the resourceContainer (Loader) object,
with scale set to 1, to get the actual image dimensions.

Tests:

+ test case from bug report, swf9
+ lzpix test case, from LPP-7996

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

--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
@@ -491,8 +491,15 @@
                   }

                   try {
-                      this.resourcewidth = info.width;
-                      this.resourceheight = info.height;
+                      var res:DisplayObject = this.resourceContainer;
+                      var scaleX:Number = res.scaleX;
+                      var scaleY:Number = res.scaleY;
+                      res.scaleX = 1.0;
+                      res.scaleY = 1.0;
+                      this.resourcewidth = this.resourceContainer.width;
+                      this.resourceheight = this.resourceContainer.height;
+                      res.scaleX = scaleX;
+                      res.scaleY = scaleY;
                   } catch (error:Error) {
                       // TODO [20090203 anba] install default values?
                   }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/utils/Base64Encoder.as
+++ frameworks/projects/framework/src/mx/utils/Base64Encoder.as
@@ -16,6 +16,11 @@

 /**
  * A utility class to encode a String or ByteArray as a Base64 encoded String.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Base64Encoder
 {
@@ -32,6 +37,11 @@
      * denote a new line if insertNewLines is true.
      *
      * The default is 10 to represent the line feed \n.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static var newLine:int = 10;

@@ -43,6 +53,11 @@

     /**
      * Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Base64Encoder()
     {
@@ -62,6 +77,11 @@
      * to wrap the encoded output.
      *
      * The default is true.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var insertNewLines:Boolean = true;

@@ -99,6 +119,11 @@
      * @param data The String to encode.
      * @param offset The character position from which to start encoding.
      * @param length The number of characters to encode from the offset.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function encode(data:String, offset:uint=0, length:uint=0):void
     {
@@ -132,6 +157,11 @@
      * encoded String.
      *
      * @param data The String to encode.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function encodeUTFBytes(data:String):void
     {
@@ -150,6 +180,11 @@
      * @param data The ByteArray to encode.
      * @param offset The index from which to start encoding.
      * @param length The number of bytes to encode from the offset.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function encodeBytes(data:ByteArray, offset:uint=0, length:uint=0):void
     {
@@ -194,6 +229,11 @@

     /**
      * Clears all buffers and resets the encoder to its initial state.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function reset():void
     {
@@ -212,6 +252,11 @@
      * encoder to its initial state.
      *
      * @return The Base64 encoded String.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function toString():String
     {
@@ -267,6 +312,11 @@

     /**
      * An Array of buffer Arrays.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _buffers:Array;
     private var _count:uint;
@@ -293,6 +343,11 @@
         'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
         'w', 'x', 'y', 'z', '0', '1', '2', '3',
         '4', '5', '6', '7', '8', '9', '+', '/'
+    *
+    *  @langversion 3.0
+    *  @playerversion Flash 9
+    *  @playerversion AIR 1.1
+    *  @productversion Flex 3
     */
     private static const ALPHABET_CHAR_CODES:Array =
     [


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

--- frameworks/projects/mx/src/mx/styles/metadata/SkinStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/SkinStyles.as
@@ -17,6 +17,11 @@
  *  components that support the borderStyle style.
  *  The default value depends on the component class;
  *  if not overriden for the class, the default value is 0xB7BABC.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderColor", type="uint", format="Color", inherit="no")]

@@ -28,6 +33,11 @@
  *  that supports a borderStyle property set to "solid".
  *  The default value depends on the component class;
  *  if not overriden for the class, the default value is 0.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="cornerRadius", type="Number", format="Length", inherit="no")]

@@ -36,6 +46,11 @@
  *  opaque.
  *
  *  @default [ 0.6, 0.4 ]
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="fillAlphas", type="Array", arrayType="Number", inherit="no")]

@@ -44,6 +59,11 @@
  *  Pass the same color for both values for a flat-looking control.
  *
  *  @default [ 0xFFFFFF, 0xCCCCCC ]
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="fillColors", type="Array", arrayType="uint", format="Color", inherit="no")]

@@ -53,5 +73,10 @@
  *  of the bottom of the highlight. The highlight covers the top half of the skin.
  *
  *  @default [ 0.3, 0.0 ]
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no")]


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.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/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.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/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.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/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.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/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/FocusSkin.as</path>
<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/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<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/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.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/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.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/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.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/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</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/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.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/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/effects/RemoveAction.as
+++ frameworks/projects/spark/src/spark/effects/RemoveAction.as
@@ -161,7 +161,7 @@
         {
             if (target.parent == null)
             {
-                // TODO : workaround for current situation of mis-match between
+                // FIXME (chaase): workaround for current situation of mis-match between
                 // Group having 'item's and Flex3 components having 'parent's
                 if (value is IVisualElementContainer)
                     IVisualElementContainer(value).addElementAt(target as IVisualElement, Math.min(props.index,


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/CallAction.as
+++ frameworks/projects/spark/src/spark/effects/CallAction.as
@@ -9,13 +9,13 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.effects
+package spark.effects
 {
 import flash.events.IEventDispatcher;

 import mx.effects.Effect;
 import mx.effects.IEffectInstance;
-import mx.effects.effectClasses.CallActionInstance;
+import spark.effects.supportClasses.CallActionInstance;

 //--------------------------------------
 //  Excluded APIs


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

--- frameworks/projects/spark/src/spark/primitives/Ellipse.as
+++ frameworks/projects/spark/src/spark/primitives/Ellipse.as
@@ -28,6 +28,11 @@
  *  @see flash.display.Graphics
  *
  *  @includeExample examples/EllipseExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class Ellipse extends FilledElement
 {
@@ -41,6 +46,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function Ellipse()
     {
@@ -61,6 +71,11 @@

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8961
Author:   dloverin@adobe.com
Date:     2009-07-31T18:08:29.937968Z

Log Message:
-----------
Fix View Source Window when using a Spark Window.

Turn off the status bar for a Spark Window that is created for View Source.

QE notes: None.
Doc notes: None.
Bugs: SDK-21770
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -1767,6 +1767,7 @@
             {
                 win.type = NativeWindowType.UTILITY;
                 win.systemChrome = NativeWindowSystemChrome.STANDARD;
+                win.showStatusBar = false;

                 win.title = resourceManager.getString("core", "viewSource");


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

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

 package spark.components
 {


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

--- frameworks/projects/automation/src/mx/automation/events/MenuShowEvent.as
+++ frameworks/projects/automation/src/mx/automation/events/MenuShowEvent.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.automation.events
 {


Switched some private vars to mx_internal vars for access from Mustella

git-svn-id: f8d5f742b420a6a114b58659a4f85f335318e53c@1438212 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
+++ frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as
@@ -287,10 +287,10 @@
     private var populateMinuteDataProvider:Boolean = true;
     private var populateMeridianDataProvider:Boolean = true;

-    private var refreshDateTimeFormatter:Boolean = true;
+    mx_internal var refreshDateTimeFormatter:Boolean = true;

     // the internal DateTimeFormatter that provides a set of extended functionalities
-    private var dateTimeFormatterEx:DateTimeFormatterEx = new DateTimeFormatterEx();
+    mx_internal var dateTimeFormatterEx:DateTimeFormatterEx = new DateTimeFormatterEx();

     private var dateTimeFormatter:DateTimeFormatter = new DateTimeFormatter();


remove useless return

remove useless return

--- src/org/mangui/HLS/muxing/AAC.as
+++ src/org/mangui/HLS/muxing/AAC.as
@@ -122,7 +122,6 @@
                 var channels : uint = (adts.readShort() & 0x01C0) >> 6;
             } else {
                 throw new Error("Stream did not start with ADTS header.");
-                return null;
             }
             // 5 bits profile + 4 bits samplerate + 4 bits channels.
             var adif : ByteArray = new ByteArray();


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

--- frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as
+++ frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.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.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4217
Author:   dsubrama@adobe.com
Date:     2008-12-03T00:15:40.910221Z

Log Message:
-----------
A slew of NumericStepper bugfixes: SDK-16625, SDK-16813, SDK-16628, SDK-17394, SDK-16816, SDK-18037

QA: Yes - many mustella tests will have to change since the new default for maximum is 10 and new resizing behavior has been added so new bitmaps will have to be generated.
Review: Glenn
Checkintests: Pass

Modified Paths:
--------------
<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/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -14,6 +14,7 @@

 import flash.display.DisplayObject;
 import flash.events.Event;
+import flash.events.FocusEvent;

 import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;
@@ -144,6 +145,59 @@

     //--------------------------------------------------------------------------
     //
+    //  Overridden Properties: FxRange
+    //
+    //--------------------------------------------------------------------------
+
+    //---------------------------------
+    // maximum
+    //---------------------------------
+
+    private var _maximum:Number = 10;
+    private var maxChanged:Boolean = false;
+
+    /**
+     *  Number which represents the maximum value possible for
+     *  value. If the values for either
+     *  minimum or value are greater
+     *  than maximum, they will be changed to
+     *  reflect the new maximum
+     *
+     *  @default 10
+     */
+    override public function get maximum():Number
+    {
+        return _maximum;
+    }
+
+    override public function set maximum(value:Number):void
+    {
+        if (value == _maximum)
+            return;
+
+        _maximum = value;
+        maxChanged = true;
+
+        invalidateProperties();
+    }
+
+    //---------------------------------
+    // stepSize
+    //---------------------------------
+
+    private var stepSizeChanged:Boolean = false;
+
+    /**
+     *  @private
+     */
+    override public function set stepSize(value:Number):void
+    {
+        stepSizeChanged = true;
+        super.stepSize = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------
@@ -152,9 +206,16 @@
      *  @private
      */
     override protected function commitProperties():void
-    {
+    {
         super.commitProperties();
-
+
+		if (maxChanged || stepSizeChanged)
+    	{
+    		textInput.widthInChars = calculateWidestValue();
+    		maxChanged = false;
+    		stepSizeChanged = false;
+    	}
+
         if (maxCharsChanged)
         {
             textInput.maxChars = _maxChars;
@@ -182,11 +243,17 @@
         {
             textInput.focusEnabled = false;
             textInput.maxChars = _maxChars;
-            // restrict to digits, minus sign, decimal point, and comma
+            // Restrict to digits, minus sign, decimal point, and comma
             textInput.restrict = "0-9\\-\\.\\,";
             textInput.addEventListener(FlexEvent.ENTER,
                                        textInput_enterHandler);
+            textInput.addEventListener(FocusEvent.FOCUS_OUT,
+                                       textInput_focusOutHandler);
             textInput.text = value.toString();
+            // Set the the textInput to be wide enough to display
+            // widest possible value.
+            textInput.widthInChars = calculateWidestValue();
+
         }
     }

@@ -257,7 +324,7 @@
      *  and constrains the value to the range defined by the
      *  maximum and minimum properties.
      */
-    protected function commitTextInput():void
+    protected function commitTextInput(dispatchChange:Boolean = false):void
     {
         var inputValue:Number = Number(textInput.text);
         var prevValue:Number = value;
@@ -274,6 +341,34 @@

         // Select all the text.
         textInput.setSelection();
+
+        if (dispatchChange)
+        {
+            if (value != prevValue)
+                dispatchEvent(new Event(Event.CHANGE));
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Private Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Helper method that returns a number corresponding
+     *  to the length of the maximum value displayable in
+     *  the textInput.
+     */
+    private function calculateWidestValue():Number
+    {
+        var widestNumber:Number = minimum.toString().length >
+                              maximum.toString().length ?
+                              minimum :
+                              maximum;
+    	widestNumber += stepSize;
+    	return widestNumber.toString().length;
     }

     //--------------------------------------------------------------------------
@@ -287,15 +382,20 @@
      *  When the enter key is pressed, NumericStepper commits the
      *  text currently displayed.
      */
-    protected function textInput_enterHandler(event:Event):void
-    {
-        var prevValue:Number = value;
-
-        commitTextInput();
-
-        if (value != prevValue)
-            dispatchEvent(new Event("change"));
+    private function textInput_enterHandler(event:Event):void
+    {
+        commitTextInput(true);
+    }
+
+    /**
+     *  @private
+     *  When the enter key is pressed, NumericStepper commits the
+     *  text currently displayed.
+     */
+    private function textInput_focusOutHandler(event:Event):void
+    {
+        commitTextInput(true);
     }
 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8401
Author:   smgilson@adobe.com
Date:     2009-07-06T21:34:44.861518Z

Log Message:
-----------
ASDoc on filters/BevelFilter.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
+++ frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
@@ -36,6 +36,24 @@
 * For example, if you zoom in on a large movie clip with a filter applied, the filter is
 * turned off if the resulting image exceeds maximum dimensions.

 *
+*  @mxml
+*
The <ConvolutionFilter> tag inherits all of the tag
+*  attributes of its superclass and adds the following tag attributes:

+*
+*

+*  <ConvolutionFilter
+*    Properties
+*    alpha="1"
+*    clamp="true"
+*    color="0xFF0000"
+*    divisor="1.0"
+*    matrix="[]"
+*    matrixX="0"
+*    matrixY="0"
+*    preserveAlpha="true"
+*  />
+*

+*
 * @langversion 3.0
 * @playerversion Flash 10
 * @playerversion AIR 1.5
@@ -44,354 +62,358 @@

 public class ConvolutionFilter extends BaseFilter implements IBitmapFilter
 {
-	/**
-	 * Constructor.
-	 *
-	 * @param matrixX The x dimension of the matrix (the number of columns in the matrix). The
-	 * default value is 0.
-	 * @param matrixY The y dimension of the matrix (the number of rows in the matrix). The
-	 * default value is 0.
-	 * @param matrix The array of values used for matrix transformation. The number of
-	 * items in the array must equal matrixX ~~ matrixY.
-	 * @param divisor The divisor used during matrix transformation. The default value is 1.
-	 * A divisor that is the sum of all the matrix values evens out the overall color intensity of the
-	 * result. A value of 0 is ignored and the default is used instead.
-	 * @param bias The bias to add to the result of the matrix transformation. The default value is 0.
-	 * @param preserveAlpha A value of false indicates that the alpha value is not
-	 * preserved and that the convolution applies to all
-	 * channels, including the alpha channel. A value of true indicates that
-	 * the convolution applies only to the color channels. The default value is true.
-	 * @param clamp For pixels that are off the source image, a value of true indicates that the
-	 * input image is extended along each of its borders as necessary by duplicating the color values
-	 * at the given edge of the input image. A value of false indicates that another
-	 * color should be used, as specified in the color and alpha properties.
-	 * The default is true.
-	 * @param color The hexadecimal color to substitute for pixels that are off the source image.
-	 * @param alpha The alpha of the substitute color.
-	 *
-	 * @langversion 3.0
-	 * @playerversion Flash 10
-	 * @playerversion AIR 1.5
-	 * @productversion Flex 4
-	 */
-	public function ConvolutionFilter(matrixX:Number = 0, matrixY:Number = 0,
-	                                  matrix:Array = null, divisor:Number = 1.0,
-	                                  bias:Number = 0.0,
-	                                  preserveAlpha:Boolean = true,
-	                                  clamp:Boolean = true, color:uint = 0,
-	                                  alpha:Number = 0.0)
-	{
-		super();
-
-		this.matrixX = matrixX;
-		this.matrixY = matrixY;
-		this.matrix = matrix;
-		this.divisor = divisor;
-		this.bias = bias;
-		this.preserveAlpha = preserveAlpha;
-		this.clamp = clamp;
-		this.color = color;
-		this.alpha = alpha;
-	}
-
-	//----------------------------------
+    /**
+     * Constructor.
+     *
+     * @param matrixX The x dimension of the matrix (the number of columns in the matrix). The
+     * default value is 0.
+     * @param matrixY The y dimension of the matrix (the number of rows in the matrix). The
+     * default value is 0.
+     * @param matrix The array of values used for matrix transformation. The number of
+     * items in the array must equal matrixX ~~ matrixY.
+     * @param divisor The divisor used during matrix transformation. The default value is 1.
+     * A divisor that is the sum of all the matrix values evens out the overall color intensity of the
+     * result. A value of 0 is ignored and the default is used instead.
+     * @param bias The bias to add to the result of the matrix transformation. The default value is 0.
+     * @param preserveAlpha A value of false indicates that the alpha value is not
+     * preserved and that the convolution applies to all
+     * channels, including the alpha channel. A value of true indicates that
+     * the convolution applies only to the color channels. The default value is true.
+     * @param clamp For pixels that are off the source image, a value of true indicates that the
+     * input image is extended along each of its borders as necessary by duplicating the color values
+     * at the given edge of the input image. A value of false indicates that another
+     * color should be used, as specified in the color and alpha properties.
+     * The default is true.
+     * @param color The hexadecimal color to substitute for pixels that are off the source image.
+     * @param alpha The alpha of the substitute color.
+     *
+     * @langversion 3.0
+     * @playerversion Flash 10
+     * @playerversion AIR 1.5
+     * @productversion Flex 4
+     */
+    public function ConvolutionFilter(matrixX:Number = 0, matrixY:Number = 0,
+                                      matrix:Array = null, divisor:Number = 1.0,
+                                      bias:Number = 0.0,
+                                      preserveAlpha:Boolean = true,
+                                      clamp:Boolean = true, color:uint = 0,
+                                      alpha:Number = 0.0)
+    {
+        super();
+
+        this.matrixX = matrixX;
+        this.matrixY = matrixY;
+        this.matrix = matrix;
+        this.divisor = divisor;
+        this.bias = bias;
+        this.preserveAlpha = preserveAlpha;
+        this.clamp = clamp;
+        this.color = color;
+        this.alpha = alpha;
+    }
+
+    //----------------------------------
     //  alpha
     //----------------------------------
-
-	private var _alpha:Number = 1.0;
-
-	/**
-	 *  The alpha transparency value for the color. Valid values are 0 to 1.
-	 *  For example, .25 sets a transparency value of 25%.
-	 *
-	 *  @default 1
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get alpha():Number
-	{
-		return _alpha;
-	}
-
-	public function set alpha(value:Number):void
-	{
-		if (value != _alpha)
-		{
-			_alpha = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _alpha:Number = 1.0;
+
+    /**
+     *  The alpha transparency value for the color. Valid values are 0 to 1.
+     *  For example, .25 sets a transparency value of 25%.
+     *
+     *  @default 1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get alpha():Number
+    {
+        return _alpha;
+    }
+
+    public function set alpha(value:Number):void
+    {
+        if (value != _alpha)
+        {
+            _alpha = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  bias
     //----------------------------------
-
-	private var _bias:Number = 0;
-
-	/**
-	 *  The amount of bias to add to the result of the matrix transformation.
-	 *  The bias increases the color value of each channel, so that dark colors
-	 *  appear brighter.
-	 *
-	 *  @default 0
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get bias():Number
-	{
-		return _bias;
-	}
-
-	public function set bias(value:Number):void
-	{
-		if (value != _bias)
-		{
-			_bias = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _bias:Number = 0;
+
+    /**
+     *  The amount of bias to add to the result of the matrix transformation.
+     *  The bias increases the color value of each channel, so that dark colors
+     *  appear brighter.
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get bias():Number
+    {
+        return _bias;
+    }
+
+    public function set bias(value:Number):void
+    {
+        if (value != _bias)
+        {
+            _bias = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  clamp
     //----------------------------------
-
-	private var _clamp:Boolean = true;
-
-	/**
-	 *  Indicates whether the image should be clamped. For pixels off the source image,
-	 *  a value of true indicates that the input image is extended along each of its
-	 *  borders as necessary by duplicating the color values at each respective edge of
-	 *  the input image. A value of false indicates that another color should be used,
-	 *  as specified in the color and alpha properties.
-	 *
-	 *  @default true
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get clamp():Boolean
-	{
-		return _clamp;
-	}
-
-	public function set clamp(value:Boolean):void
-	{
-		if (value != _clamp)
-		{
-			_clamp = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _clamp:Boolean = true;
+
+    /**
+     *  Indicates whether the image should be clamped. For pixels off the source image,
+     *  a value of true indicates that the input image is extended along each of its
+     *  borders as necessary by duplicating the color values at each respective edge of
+     *  the input image. A value of false indicates that another color should be used,
+     *  as specified in the color and alpha properties.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get clamp():Boolean
+    {
+        return _clamp;
+    }
+
+    public function set clamp(value:Boolean):void
+    {
+        if (value != _clamp)
+        {
+            _clamp = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  color
     //----------------------------------
-
-	private var _color:uint = 0xFF0000;
-
-	/**
-	 *  The color of the glow. Valid values are in the hexadecimal format
-	 * 	0xRRGGBB.
-	 *  @default 0xFF0000
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get color():uint
-	{
-		return _color;
-	}
-
-	public function set color(value:uint):void
-	{
-		if (value != _color)
-		{
-			_color = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _color:uint = 0xFF0000;
+
+    /**
+     *  The color of the glow. Valid values are in the hexadecimal format
+     *  0xRRGGBB.
+     *  @default 0xFF0000
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get color():uint
+    {
+        return _color;
+    }
+
+    public function set color(value:uint):void
+    {
+        if (value != _color)
+        {
+            _color = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  divisor
     //----------------------------------
-
-	private var _divisor:Number = 1.0;
-
-	/**
-	 * The divisor used during matrix transformation. The default value is 1.
-	 * A divisor that is the sum of all the matrix values smooths out the overall
-	 * color intensity of the result. A value of 0 is ignored and the default is
-	 * used instead.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get divisor():Number
-	{
-		return _divisor;
-	}
-
-	public function set divisor(value:Number):void
-	{
-		if (value != _divisor)
-		{
-			_divisor = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _divisor:Number = 1.0;
+
+    /**
+     *  The divisor used during matrix transformation. The default value is 1.
+     *  A divisor that is the sum of all the matrix values smooths out the overall
+     *  color intensity of the result. A value of 0 is ignored and the default is
+     *  used instead.
+     *
+     *  @default 1.0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get divisor():Number
+    {
+        return _divisor;
+    }
+
+    public function set divisor(value:Number):void
+    {
+        if (value != _divisor)
+        {
+            _divisor = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  matrix
     //----------------------------------
-
-	private var _matrix:Array = [];
-
-	/**
-	 *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
-	 *  or less means that the original image is copied as is. The default
-	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
-	 *  are optimized to render more quickly than other values.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get matrix():Array
-	{
-		return _matrix;
-	}
-
-	public function set matrix(value:Array):void
-	{
-		if (value != _matrix)
-		{
-			_matrix = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _matrix:Array = [];
+
+    /**
+     *  The amount of horizontal blur. Valid values are 0 to 255. A blur of 1
+     *  or less means that the original image is copied as is. The default
+     *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
+     *  are optimized to render more quickly than other values.
+     *
+     *  @default []
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get matrix():Array
+    {
+        return _matrix;
+    }
+
+    public function set matrix(value:Array):void
+    {
+        if (value != _matrix)
+        {
+            _matrix = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  matrixX
     //----------------------------------
-
-	private var _matrixX:Number = 0;
-
-	/**
-	 * The x dimension of the matrix (the number of rows in the matrix).
-	 * @default 0
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get matrixX():Number
-	{
-		return _matrixX;
-	}
-
-	public function set matrixX(value:Number):void
-	{
-		if (value != _matrixX)
-		{
-			_matrixX = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _matrixX:Number = 0;
+
+    /**
+     * The x dimension of the matrix (the number of rows in the matrix).
+     * @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get matrixX():Number
+    {
+        return _matrixX;
+    }
+
+    public function set matrixX(value:Number):void
+    {
+        if (value != _matrixX)
+        {
+            _matrixX = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  matrixY
     //----------------------------------
-
-	private var _matrixY:Number = 0;
-
-	/**
-	 * The y dimension of the matrix (the number of columns in the matrix).
-	 * @default 0
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get matrixY():Number
-	{
-		return _matrixY;
-	}
-
-	public function set matrixY(value:Number):void
-	{
-		if (value != _matrixY)
-		{
-			_matrixY = value;
-			notifyFilterChanged();
-		}
-	}
-
-	//----------------------------------
+
+    private var _matrixY:Number = 0;
+
+    /**
+     * The y dimension of the matrix (the number of columns in the matrix).
+     * @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get matrixY():Number
+    {
+        return _matrixY;
+    }
+
+    public function set matrixY(value:Number):void
+    {
+        if (value != _matrixY)
+        {
+            _matrixY = value;
+            notifyFilterChanged();
+        }
+    }
+
+    //----------------------------------
     //  preserveAlpha
     //----------------------------------
-
-	private var _preserveAlpha:Boolean = true;
-
-	/**
-	 *  Indicates if the alpha channel is preserved without the filter effect or
-	 *  if the convolution filter is applied to the alpha channel as well as the
-	 *  color channels. A value of false indicates that the convolution applies to
-	 *  all channels, including the alpha channel. A value of true indicates that
-	 *  the convolution applies only to the color channels.
-	 *
-	 *  @default true
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4
-	 */
-	public function get preserveAlpha():Boolean
-	{
-		return _preserveAlpha;
-	}
-
-	public function set preserveAlpha(value:Boolean):void
-	{
-		if (value != _preserveAlpha)
-		{
-			_preserveAlpha = value;
-			notifyFilterChanged();
-		}
-	}
-
-	/**
-	 * Returns a copy of this filter object.
-	 *
-	 * @return BitmapFilter A new ConvolutionFilter instance with all the same properties as the original
-	 * ConvolutionMatrixFilter instance.
-	 *
-	 * @langversion 3.0
-	 * @playerversion Flash 10
-	 * @playerversion AIR 1.5
-	 * @productversion Flex 4
-	 */
-	public function clone():BitmapFilter
-	{
-		return new flash.filters.ConvolutionFilter(matrixX, matrixY, matrix, divisor,
-												   bias, preserveAlpha, clamp, color,
-												   alpha);
-	}
-
+
+    private var _preserveAlpha:Boolean = true;
+
+    /**
+     *  Indicates if the alpha channel is preserved without the filter effect or
+     *  if the convolution filter is applied to the alpha channel as well as the
+     *  color channels. A value of false indicates that the convolution applies to
+     *  all channels, including the alpha channel. A value of true indicates that
+     *  the convolution applies only to the color channels.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get preserveAlpha():Boolean
+    {
+        return _preserveAlpha;
+    }
+
+    public function set preserveAlpha(value:Boolean):void
+    {
+        if (value != _preserveAlpha)
+        {
+            _preserveAlpha = value;
+            notifyFilterChanged();
+        }
+    }
+
+    /**
+     * Returns a copy of this filter object.
+     *
+     * @return BitmapFilter A new ConvolutionFilter instance with all the same properties as the original
+     * ConvolutionMatrixFilter instance.
+     *
+     * @langversion 3.0
+     * @playerversion Flash 10
+     * @playerversion AIR 1.5
+     * @productversion Flex 4
+     */
+    public function clone():BitmapFilter
+    {
+        return new flash.filters.ConvolutionFilter(matrixX, matrixY, matrix, divisor,
+                                                   bias, preserveAlpha, clamp, color,
+                                                   alpha);
+    }
+
 }
 }


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

--- frameworks/projects/framework/src/mx/containers/errors/ConstraintError.as
+++ frameworks/projects/framework/src/mx/containers/errors/ConstraintError.as
@@ -0,0 +1,40 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.containers.errors
+{
+
+/**
+ *  This error is thrown when a constraint expression is not configured properly;
+ *  for example, if the GridColumn reference is invalid.
+ */
+public class ConstraintError extends Error
+{
+    include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+	 *
+	 *  @param message A message providing information about the error cause.
+     */
+    public function ConstraintError(message:String)
+    {
+        super(message);
+    }
+}
+
+}