Transferred from the Adobe Open Source Subversion Repository

Revision: 8234
Author:   dloverin@adobe.com
Date:     2009-06-25T16:04:09.732927Z

Log Message:
-----------
ASDoc changes for Spark WindowedApplication and Window.

Update resizeAffordanceWidth and showStatusBar.

QE Notes: none.
Doc Notes: Please review ASDoc changes.
Bugs: SDK-21223

Reviewer:
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>

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

--- frameworks/projects/airspark/src/spark/components/WindowedApplication.as
+++ frameworks/projects/airspark/src/spark/components/WindowedApplication.as
@@ -56,10 +56,10 @@
 //--------------------------------------

 /**
- *  Provides a margin of error around the application's border so a resize
- *  and be more easily started. A click on the application is considered a
- *  click on the application's border if the click occurs with the resizeAffordance
- *  number of pixels from the outside edge of the application's window.
+ *  Provides a margin of error around a window's border so a resize
+ *  and be more easily started. A click on a window is considered a
+ *  click on the window's border if the click occurs with the resizeAffordance
+ *  number of pixels from the outside edge of the window.
  *
  *  @default 6
  *
@@ -1277,9 +1277,9 @@
     /**
      *  If true, the status bar is visible.
      *
-     *
The status bar only appears when you use Flex chrome or
-     *  when you use the WindowedApplicationSkin class as the skin
-     *  for the WindowedApplication.

+     *
The status bar only appears when you use the WindowedApplicationSkin
+     *  class or the SparkChromeWindowedApplicationSkin class as the skin for
+     *  your application or any of your application's windows.

      *
      *  @default true
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 10315
Author:   smgilson@adobe.com
Date:     2009-09-16T19:10:58.022034Z

Log Message:
-----------
Add ASDoc version tags

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ContainerBorderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>

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

--- frameworks/projects/sparkskins/src/mx/skins/spark/ContainerBorderSkin.as
+++ frameworks/projects/sparkskins/src/mx/skins/spark/ContainerBorderSkin.as
@@ -1,5 +1,12 @@
 package mx.skins.spark {

+/**
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
 public class ContainerBorderSkin extends BorderSkin
 {
     public function ContainerBorderSkin()


def: 4785 fix issue with playing mix

def: 4785 fix issue with playing mix

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@86723 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
+++ kdp3Lib/src/com/kaltura/kdpfl/model/MediaProxy.as
@@ -141,6 +141,7 @@
 						resource = new URLResource(vo.entry.dataUrl);
 						addMetadataToResource(resource);
 						vo.media = vo.mediaFactory.createMediaElement(new KalturaBaseEntryResource( vo.entry ));
+						break;
 					}

 					//when loading a media entry we still use the flvclipper


Match Eran more exactly.

Match Eran more exactly.

--- HLSPlugin/src/com/kaltura/hls/m2ts/FLVTranscoder.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/FLVTranscoder.as
@@ -113,8 +113,8 @@
                         keyFrame = false;
             }

-            // Skip access unit delimeters.
-            if(naluType == 9)
+            // Skip access unit delimeters and SPS/PPS data.
+            if(naluType == 7 || naluType == 8 || naluType == 9)
                 return;

             // Append.


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

--- frameworks/projects/framework/src/mx/core/TextFieldAsset.as
+++ frameworks/projects/framework/src/mx/core/TextFieldAsset.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 6792
Author:   jimurphy@adobe.com
Date:     2009-05-11T18:24:09.346026Z

Log Message:
-----------
Merged revisions 6729,6731,6746,6755,6757,6765,6767-6768,6770-6772,6775,6784-6786,6790 from http://p01weblab02.corp.adobe.com/svn/opensource/flex/sdk/branches/beta1

Modified Paths:
--------------
<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/utilities/src/FlashContainerPlaceholder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.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/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.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/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>
<path kind="dir" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types" copyfrom-rev="6790" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types</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/flex4/src/spark/effects/Resize.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/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/ButtonSkin.mxml</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/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.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/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.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/flex4/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/RadioButtonSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/beta1/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java" copyfrom-rev="6790" action="R">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/types/FXGMatrix.java</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -225,7 +225,7 @@

     private function initializeTypicalItem():void
     {
-        if (!_typicalItem)
+        if (_typicalItem == null)
         {
             setTypicalLayoutElement(null);
             return;
@@ -675,6 +675,21 @@
     }

     /**
+     *  @private
+     *  True if we are updating a renderer currently.
+     *  We keep track of this so we can ignore any dataProvider collectionChange
+     *  UPDATE events while we are updating a renderer just in case we try to update
+     *  the rendererInfo of the same renderer twice.  This can happen if setting the
+     *  data in an item renderer causes the data to mutate and issue a propertyChange
+     *  event, which causes an collectionChange.UPDATE event in the dataProvider.  This
+     *  can happen for components which are being treated as data because the first time
+     *  they get set on the renderer, they get added to the display list, which may
+     *  cause a propertyChange event (if there's a child with an ID in it, that causes
+     *  a propertyChange event) or the data to morph in some way.
+     */
+    private var renderersBeingUpdated:Boolean = false;
+
+    /**
      *  @private
      *  Sets the renderer's data, owner and labelText properties.
      *  Then, gives the "true" owner a chance to call update the
@@ -687,11 +702,15 @@
     private function updateRenderer(renderer:IVisualElement, data:Object):void
     {
         if (!renderer)
-           return;
+           return;
+
+        // keep track of whether we are actively updating an renderers
+        // so we can ignore any collectionChange.UPDATE events
+        renderersBeingUpdated = true;

         //Set the data
         if ((renderer is IDataRenderer) && (renderer != data))
-            IDataRenderer(renderer).data = data;
+            IDataRenderer(renderer).data = data;

         //Newly created renderer with no owner, set owner to this
         if (!renderer.owner)
@@ -706,7 +725,11 @@
         //owner a chance to update the renderer.
         else if (renderer.owner != this)
             IItemRendererOwner(renderer.owner).updateRenderer(renderer);
-
+
+        // technically if this got called "recursively", this renderersBeingUpdated flag
+        // would be prematurely set to false, but in most cases, this check should be
+        // good enough.
+        renderersBeingUpdated = false;
     }

@@ -1297,6 +1320,11 @@

             case CollectionEventKind.UPDATE:
             {
+                // if a renderer is currently being updated, let's
+                // just ignore any UPDATE events.
+                if (renderersBeingUpdated)
+                    break;
+
                 //update the renderer's data and data-dependant
                 //properties.
                 for (var i:int = 0; i < event.items.length; i++)


Fixed bug with the error bars where the probe line would go to the top
of the error bar. The solution is only a temporary one until there's a
greater need to develop a plotter interface which specifies its
probing coordinates.

Change-Id: I5c06c6c37cf243988d51fa7b63d69eb85888442d

--- WeaveUI/src/weave/visualization/plotters/CompoundBarChartPlotter.as
+++ WeaveUI/src/weave/visualization/plotters/CompoundBarChartPlotter.as
@@ -431,13 +431,28 @@
 		private const _tempPoint:Point = new Point();

 		override public function getDataBoundsFromRecordKey(recordKey:IQualifiedKey):Array
-		{
-			var _groupMode:Boolean = groupMode.value;
+		{
+			var errorBounds:IBounds2D = getReusableBounds(); // the bounds of key + error bars
+			var keyBounds:IBounds2D = getReusableBounds(); // the bounds of just the key
+			var _groupMode:Boolean = groupMode.value;
+			var errorColumnsIncluded:Boolean = false; // are error columns the i = 1 and i=2 columns in height columns?
+
+			// bar position depends on sorted index
+			var sortedIndex:int = _sortedIndexColumn.getValueFromKey(recordKey, Number);
+			var minPos:Number = sortedIndex - 0.5;
+			var maxPos:Number = minPos + 1;
+			// this bar is between minPos and maxPos in the x or y range
+			if (horizontalMode.value)
+				keyBounds.setYRange(minPos, maxPos);
+			else
+				keyBounds.setXRange(minPos, maxPos);
+
 			var _heightColumns:Array = heightColumns.getObjects();
 			if (_heightColumns.length == 1)
 			{
 				_heightColumns.push(positiveError);
 				_heightColumns.push(negativeError);
+				errorColumnsIncluded = true;
 			}

 			tempRange.setRange(0, 0); // bar starts at zero
@@ -447,7 +462,7 @@
 			{
 				var heightColumn:IAttributeColumn = _heightColumns[i] as IAttributeColumn;
 				var height:Number = heightColumn.getValueFromKey(recordKey, Number);
-
+
 				if (heightColumn == positiveError)
 				{
 					if (tempRange.end == 0)
@@ -482,18 +497,26 @@
 						else
 							tempRange.begin += height;
 					}
+				}
+
+				// if there are no error columns in _heightColumns,
+				// or if there are error columns (which occurs only if there is one height column),
+				// we want to include the current range in keyBounds
+				if (!errorColumnsIncluded || i == 0)
+				{
+					if (horizontalMode.value)
+						keyBounds.setXRange(tempRange.begin, tempRange.end);
+					else
+						keyBounds.setYRange(tempRange.begin, tempRange.end);
 				}
 			}
-
-			// bar position depends on sorted index
-			var sortedIndex:int = _sortedIndexColumn.getValueFromKey(recordKey, Number);
-			var minPos:Number = sortedIndex - 0.5;
-			var maxPos:Number = minPos + 1;

-			if (horizontalMode.value)
-				return [getReusableBounds(tempRange.begin, minPos, tempRange.end, maxPos)]; // x,y swapped
+			if (horizontalMode.value)
+				errorBounds.setBounds(tempRange.begin, minPos, tempRange.end, maxPos); // x,y swapped
 			else
-				return [getReusableBounds(minPos, tempRange.begin, maxPos, tempRange.end)];
+				errorBounds.setBounds(minPos, tempRange.begin, maxPos, tempRange.end);
+
+			return [keyBounds, errorBounds];
 		}

 		override public function getBackgroundDataBounds():IBounds2D


Change DEFAULT_MAX_NUM_PROXY_PAIRS from 100 to 10.

--- swfcat.as
+++ swfcat.as
@@ -67,7 +67,7 @@
             port: 9002
         };

-        private const DEFAULT_MAX_NUM_PROXY_PAIRS:uint = 100;
+        private const DEFAULT_MAX_NUM_PROXY_PAIRS:uint = 10;

         // Milliseconds.
         private const FACILITATOR_POLL_INTERVAL:int = 10000;


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

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

 package mx.messaging.management
 {


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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.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.components.gridClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9891
Author:   aharui@adobe.com
Date:     2009-09-01T23:00:51.425472Z

Log Message:
-----------
Change default value of ButtonBar and List labelField to "label".  Improve code in LabelUtil to handle strings better

QE Notes: None
Doc Notes: Yes, default value changed
Bugs: SDK-22930
Reviewer: Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/managers/ButtonBar, List

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/LabelUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -82,7 +82,7 @@
  *    Properties
  *    arrowKeysWrapFocus="false"
  *    dataProvider="null"
- *    labelField="null"
+ *    labelField="label"
  *    labelFunction="null"
  *    requireSelection="false"
  *    selectedIndex="-1"
@@ -237,14 +237,14 @@
     //  labelField
     //----------------------------------
     private var labelFieldOrFunctionChanged:Boolean;
-    private var _labelField:String;
+    private var _labelField:String = "label";

     /**
      *  The name of the field in the data provider items to display
      *  as the label.
      *  The labelFunction property overrides this property.
      *
-     *  @default null
+     *  @default "label"
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


バッファの終端まで文字列が書き込まれ文字列終端の'\0'が書かれていなかった問題を修正

git-svn-id: 667ccd08e5f160307f6512a0947301cac150914e@170 ceb3ebad-0e53-d446-8596-a45b2b8d79cd

--- package/win32/common/encode.as
+++ package/win32/common/encode.as
@@ -35,7 +35,7 @@
 	src		= _src
 	sdim dest
 	MuLang_ConvertString ml, pdwMode, srcCodepage, destCodepage, src, srcSize, dest, destSize
-	sdim dest, destSize
+	sdim dest, destSize + 1
 	MuLang_ConvertString ml, pdwMode, srcCodepage, destCodepage, src, srcSize, dest, destSize
 	return destSize


Change 20080902-bargull-2wD by bargull@dell--p4--2-53 on 2008-09-02 21:31:23
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: LzMakeLoadSprite cleanup

New Features:

Bugs Fixed: LPP-5551 (part 1 - cleanup)

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

Documentation:

Release Notes:

Details:
As part of LPP-5551, I like to do some code cleanup.
LzMakeLoadSprite:
- consistent code-formatting
- changed LzMakeLoadSprite from function to object
- removed out commented debug-code
- removed first* properties, instead call "createLoader" directly
- removed override of "doReplaceResource" because it was superfluous as "_newrescname" was never defined
- removed "if (! this.loader)"-check in LzMakeLoadSprite.transform, because it always yield true as there is no "loader"-field defined in LzMakeLoadSprite
- removed "transformerID", no where referenced in the lfc

Tests:

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

--- WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
+++ WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
@@ -11,130 +11,76 @@
 /**
   * @access private
   */
-function LzMakeLoadSprite(  ){
-
-}
-
-LzMakeLoadSprite.transformerID = 0;
-
+var LzMakeLoadSprite = {};

 /**
   * Makes the given view able to load a remote resource
   */
-LzMakeLoadSprite.transform = function ( v , src , cache, headers, filetype ){
-    //super.transform( v );
-
-    for ( var k in this){
-        if (typeof v[k] == 'function' && this[k]) {
-            // replace old method with _methodname to support super
-            //Debug.write('replacing _' + k + ' with ' + k + ' in ' + v);
-            v[ '___' + k ] = v[k];
-            v[k] = this[k];
-        } else {
-            //Debug.write('adding ' + k + ' to ' + v);
+LzMakeLoadSprite.transform = function (v, src, cache, headers, filetype) {
+    for (var k in this) {
+        if (k != "transform") {
+            if (typeof v[k] == 'function') {
+                // replace old method with _methodname to support super
+                v[ '___' + k ] = v[k];
+            }
             v[k] = this[k];
         }
     }

-//     Debug.trace(v, 'setHeight');
-//     Debug.trace(v, 'setWidth');
-//     Debug.monitor(v, 'resourcewidth')
-//     Debug.monitor(v, 'resourceheight')
-//     Debug.monitor(v, '_xscale')
-//     Debug.monitor(v, '_yscale')
-
-    v.firstsrc = src;
-    v.firstcache = cache;
-    v.firstheaders = headers;
-    v.firstfiletype = filetype;
-
-    if ( v.__LZmovieClipRef == null ){
+    if (v.__LZmovieClipRef == null || ! v.__LZhaser) {
+        //the view doesn't have the empty resource. We need to try and replace it
         v.makeContainerResource();
     }
-
-    if (v.__LZhaser ){
-        v.createLoader();
-    } else {
-        //the view doesn't have the empty resource. We need to try and replace
-        //it
-        v.makeContainerResource();
-        if (! this.loader) v.createLoader();
-    }
-
-//     var mc = v.__LZmovieClipRef;
-//     Debug.debug(mc, '_width', mc._width);
-//     Debug.debug(mc, '_height', mc._height);
-//     Debug.debug(mc, '_xscale', mc._xscale);
-//     Debug.debug(mc, '_yscale', mc._yscale);
-}
-
-/**
-  * @access private
-  */
-LzMakeLoadSprite.doReplaceResource = function (){
-    //this gets called when a view applies the load transformer but it
-    //already had a resource
-
-    // use shadowed doReplaceResource()
-    this.___doReplaceResource( );
-    if (this._newrescname.indexOf('http:') == 0 || this._newrescname.indexOf('https:') == 0){
-        this.createLoader();
-    }
-}
-
-/**
-  * @access private
-  */
-LzMakeLoadSprite.createLoader = function (){
-    this.loader = new LzMediaLoader( this , {} );
-    this.updateDel = new LzDelegate( this , "updateAfterLoad" );
-    this.updateDel.register( this.loader , "onloaddone" );
-
-    this.errorDel = new LzDelegate( this , "__LZsendError" );
-    this.errorDel.register( this.loader , "onerror" );
-
-    this.timeoutDel = new LzDelegate( this , "__LZsendTimeout" );
-    this.timeoutDel.register( this.loader , "ontimeout" );
-
-    //Debug.write('LzMakeLoadSprite.createLoader', this.firstsrc)
-    if ( this.firstsrc != null ){
-        this.setSource( this.firstsrc , this.firstcache, this.firstheaders, this.firstfiletype );
-    }
-}
-
-
-
-/**
-  * @access private
-  * @param String newSrc: The url from which to load the resource for this view.
+
+    v.createLoader(src, cache, headers, filetype);
+}
+
+/**
+  * @access private
+  */
+LzMakeLoadSprite.createLoader = function (src, cache, headers, filetype) {
+    this.loader = new LzMediaLoader(this, {});
+
+    this.updateDel = new LzDelegate(this, "updateAfterLoad", this.loader, "onloaddone");
+    this.errorDel = new LzDelegate(this, "__LZsendError", this.loader, "onerror");
+    this.timeoutDel = new LzDelegate(this, "__LZsendTimeout", this.loader, "ontimeout");
+
+    if (src != null) {
+        this.setSource(src, cache, headers, filetype);
+    }
+}
+
+/**
+  * @access private
+  * @param String src: The url from which to load the resource for this view.
   * @param String cache: If set, controls caching behavior. Choices are
   * "none" , "clientonly" , "serveronly" , "both" -- where both is the default.
   * @param String headers: Headers to send with the request (if any.)
   * @param String filetype: Filetype, e.g. 'mp3' or 'jpg'.  If not specified, it will be derived from the URL.
   */
-LzMakeLoadSprite.setSource = function ( newSrc , cache , headers , filetype ){
+LzMakeLoadSprite.setSource = function (src, cache, header, filetype) {
     if (this.loader.mc.loading == true) {
         LzLoadQueue.unloadRequest(this.loader.mc);
     }
-    //Debug.write('setSource', newSrc);
-    if (newSrc == '' || newSrc == ' ' || newSrc == null) {
-        Debug.error('setSource called with an empty url');
+
+    if (src == '' || src == ' ' || src == null) {
+        if ($debug) Debug.error('setSource called with an empty url');
         return;
     }

     this.stopTrackPlay();
     this.isloaded = false;
-    if ( this.queuedplayaction == null ){
-        this.queuePlayAction( "checkPlayStatus" );
-    }
-
-    this.resource = newSrc;
-    //this.owner.resource = newSrc;
-    //if (this.owner.onresource) this.owner.onresource.sendEvent( newSrc );
+    if (this.queuedplayaction == null) {
+        this.queuePlayAction("checkPlayStatus");
+    }
+
+    this.resource = src;
+    //this.owner.resource = src;
+    //if (this.owner.onresource) this.owner.onresource.sendEvent( src );

     this.owner.__LZvizLoad = false;
     this.owner.__LZupdateShown();
-    this.loader.request( newSrc , cache , headers, filetype );
+    this.loader.request(src, cache, headers, filetype);
 }

 /**
@@ -142,75 +88,60 @@
   * load-transformed views and those that aren't
   * @access private
   */
-LzMakeLoadSprite.setResource = function ( nresc ){
+LzMakeLoadSprite.setResource = function (nresc) {
     // unload anything currently loading...
     if (this.loader.mc.loading == true) {
         LzLoadQueue.unloadRequest(this.loader.mc);
     }
-    if ( nresc == "empty" ){
+    if (nresc == "empty") {
         // call shadowed setResource()
-        this.___setResource( nresc );
-    } else {
-        if ( nresc.indexOf('http:') == 0 || nresc.indexOf('https:') == 0){
-            this.setSource( nresc );
-            return;
-        }
-        this.loader.attachLoadMovie( nresc );
-        if ( this.queuedplayaction == null ){
-            this.queuePlayAction( "checkPlayStatus" );
+        this.___setResource(nresc);
+    } else if (nresc.indexOf('http:') == 0 || nresc.indexOf('https:') == 0) {
+        this.setSource(nresc);
+    } else {
+        this.loader.attachLoadMovie(nresc);
+        if (this.queuedplayaction == null) {
+            this.queuePlayAction("checkPlayStatus");
         }
         //this.updateAfterLoad();
     }
-
-//     var mc = this.__LZmovieClipRef;
-//     Debug.debug(mc, '_width', mc._width);
-//     Debug.debug(mc, '_height', mc._height);
-//     Debug.debug(mc, '_xscale', mc._xscale);
-//     Debug.debug(mc, '_yscale', mc._yscale);
-}
-
-//handle error
-
+}

 /**
   * Updates movieclip properties after the resource has loaded
   * @access private
   */
-LzMakeLoadSprite.updateAfterLoad = function (ignore){
-
+LzMakeLoadSprite.updateAfterLoad = function (ignore) {
     this.isloaded = true;
+
     var mc = this.getMCRef();
     this.resourcewidth = mc._width;
     this.resourceheight = mc._height;
-
     this.currentframe = mc._currentframe;

     var tfchg = this.totalframes != mc._totalframes;
-    if ( tfchg ){
+    if (tfchg) {
         this.totalframes = mc._totalframes;
         this.owner.resourceevent('totalframes', this.totalframes);
     }

-    if ( this.totalframes > 1 ){
+    if (this.totalframes > 1) {
         this.checkPlayStatus();
     }

-    this.setHeight(this.hassetheight?this.height:null);
-    this.setWidth(this.hassetwidth?this.width:null);
+    this.setHeight(this.hassetheight ? this.height : null);
+    this.setWidth(this.hassetwidth ? this.width : null);

     if (this.__contextmenu) {
         this.setContextMenu(this.__contextmenu);
     }
-

     this.owner.__LZvizLoad = true;
     this.owner.__LZupdateShown();
     this.owner.resourceload({width: this.resourcewidth, height: this.resourceheight, resource: this.resource, skiponload: false});
-    this.owner.reevaluateSize( );
+    this.owner.reevaluateSize();
+
     //if (this.owner.onload) this.owner.onload.sendEvent( this.loader.mc );
-
-    //Debug.write('Sprite.updateAfterLoad', mc, this.resourcewidth, this.resourceheight, this.resource, this.owner.resource, this.owner, this.x);
-    //Debug.warn('Sprite.updateAfterLoad');
 }

 /**
@@ -218,7 +149,7 @@
   * @access private
   */
 LzMakeLoadSprite.unload = function () {
-    this.loader.unload( this.loader.mc );
+    this.loader.unload(this.loader.mc);
 }

 /**
@@ -235,7 +166,7 @@
   * Get the number of bytes loaded so far
   * @return: A number that is the maximum offset for this resource
   */
-LzMakeLoadSprite.getLoadBytes = function (){
+LzMakeLoadSprite.getLoadBytes = function () {
     return this.getMCRef().getBytesLoaded();
 }

@@ -243,26 +174,26 @@
   * Get the total number of bytes for the attached resource
   * @return: A number that is the maximum offset for this resource
   */
-LzMakeLoadSprite.getMaxBytes = function (){
+LzMakeLoadSprite.getMaxBytes = function () {
     return this.getMCRef().getBytesTotal();
 }

 /**
   * @access private
   */
-LzMakeLoadSprite.__LZsendError = function ( e ){
+LzMakeLoadSprite.__LZsendError = function (e) {
     this.resourcewidth = 0;
     this.resourceheight = 0;
-    if (this.owner) this.owner.resourceloaderror( e )
-}
-
-/**
-  * @access private
-  */
-LzMakeLoadSprite.__LZsendTimeout = function ( e ){
+    if (this.owner) this.owner.resourceloaderror(e)
+}
+
+/**
+  * @access private
+  */
+LzMakeLoadSprite.__LZsendTimeout = function (e) {
     this.resourcewidth = 0;
     this.resourceheight = 0;
-    if (this.owner) this.owner.resourceloadtimeout( e )
+    if (this.owner) this.owner.resourceloadtimeout(e)
 }

 /**
@@ -276,7 +207,7 @@
     if ('timeoutDel' in this)
          this.timeoutDel.unregisterAll();

-    this.loader.unload( this.loader.mc );
+    this.loader.unload(this.loader.mc);

     // call shadowed destroy()
     this.___destroy();


Transferred from the Adobe Open Source Subversion Repository

Revision: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.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/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.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/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.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/styles/CSSStyleDeclaration.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/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.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/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.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/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
@@ -596,23 +596,12 @@
 		// Calculate global position of label.
         var sm:ISystemManager = systemManager.topLevelSystemManager;
         var sbRoot:DisplayObject = sm.getSandboxRoot();
-        var screen:Rectangle;
+        var screen:Rectangle = sm.getVisibleApplicationRect();
 		var pt:Point = new Point(0, 0);
 		pt = label.localToGlobal(pt);
 		pt = sbRoot.globalToLocal(pt);

 		toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
-
-        if (sm != sbRoot)
-        {
-            var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
-                                    false, false,
-                                    "getVisibleApplicationRect");
-            sbRoot.dispatchEvent(request);
-            screen = Rectangle(request.value);
-        }
-        else
-            screen = sm.getVisibleApplicationRect();

 		var screenRight:Number = screen.x + screen.width;
         pt.x = toolTip.x;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5812
Author:   chaase@adobe.com
Date:     2009-03-31T18:34:56.901097Z

Log Message:
-----------
Fixed a bug where direct use of Animation failed because AnimationProperty was not setting up its internal keyframes with correct duration information, so the animation would skip immediately to the end.

Bugs: SDK-20356
QE Notes: spark/effects Mustella tests currently hosed, couldn't run test suite
Doc Notes: None
Reviewer: Jason
Testing: checkintests, Mustella effects tests could not be run (post-rename issues)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.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/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Rotate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/ResizeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/ResizeInstance.as
@@ -12,16 +12,12 @@
 {
 import flash.events.Event;

+import mx.core.IUIComponent;
+import mx.managers.LayoutManager;
+
+import spark.effects.AnimationProperty;
 import spark.effects.animation.Animation;
-import spark.effects.AnimationProperty;
 import spark.events.AnimationEvent;
-
-import spark.components.Application;
-import mx.core.Container;
-import mx.core.IUIComponent;
-import mx.events.EffectEvent;
-import mx.events.TweenEvent;
-import mx.styles.IStyleClient;

 public class ResizeInstance extends AnimateInstance
 {
@@ -277,8 +273,8 @@
         var childrenHiding:Boolean = false; // hidePanelChildren();

         animationProperties =
-            [new AnimationProperty("width", widthFrom, widthTo, widthBy),
-             new AnimationProperty("height", heightFrom, heightTo, heightBy)];
+            [new AnimationProperty("width", widthFrom, widthTo, duration, widthBy),
+             new AnimationProperty("height", heightFrom, heightTo, duration, heightBy)];

         super.play();


Date and String are somewhat special it seems

--- test/trace/values.as
+++ test/trace/values.as
@@ -36,7 +36,8 @@
   true, false,
   0, 1, 0.5, -1, -0.5, Infinity, -Infinity, NaN,
   "", "0", "-0", "0.0", "1", "Hello World!", "true", "_level0", "äöü",
-  this, new Object (), Function, printall, printtostring, printvalueof, nothing ];
+  this, new Object (), new Date (), new String (),
+  Function, printall, printtostring, printvalueof, nothing ];

 var l = values.length;
 var v = function () {


Partially updated swfcat to connect to the facilitator and send a GET request

--- swfcat.as
+++ swfcat.as
@@ -18,11 +18,16 @@

         // Socket to Tor relay.
         private var s_t:Socket;
+	// Socket to Facilitator.
+	private var s_f:Socket;
         // Socket to client.
         private var s_c:Socket;

-        private var client_address:String;
-        private var client_port:int;
+        private var fac_address:String;
+        private var fac_port:int;
+
+	private var client_address:String;
+	private var client_port:int;

         private function puts(s:String):void
         {
@@ -47,28 +52,29 @@

         private function loaderinfo_complete(e:Event):void
         {
-            var client_spec:String, parts:Array;
+            var fac_spec:String, parts:Array;

             puts("Parameters loaded.");
-            client_spec = this.loaderInfo.parameters["client"];
-            if (!client_spec) {
-                puts("Error: no \"client\" specification provided.");
+            fac_spec = this.loaderInfo.parameters["facilitator"];
+            if (!fac_spec) {
+                puts("Error: no \"facilitator\" specification provided.");
                 return;
             }
-            puts("Client spec: \"" + client_spec + "\"");
-            parts = client_spec.split(":", 2);
+            puts("Facilitator spec: \"" + fac_spec + "\"");
+            parts = fac_spec.split(":", 2);
             if (parts.length != 2 || !parseInt(parts[1])) {
-                puts("Error: client spec must be in the form \"host:port\".");
+                puts("Error: Facilitator spec must be in the form \"host:port\".");
                 return;
             }
-            client_address = parts[0];
-            client_port = parseInt(parts[1]);
+            fac_address = parts[0];
+            fac_port = parseInt(parts[1]);

             go(TOR_ADDRESS, TOR_PORT);
         }

         /* We connect first to the Tor relay; once that happens we connect to
-           the client; and when both connections exist we begin relaying data. */
+           the facilitator to get a client address; once we have the address
+	   of a waiting client then we connect to the client and BAM! we're in business. */
         private function go(tor_address:String, tor_port:int):void
         {
             s_t = new Socket();
@@ -96,7 +102,29 @@

         private function tor_connected(e:Event):void
         {
-            s_c = new Socket();
+	    /* Got a connection to tor, now let's get served a client from the facilitator */
+            s_f = new Socket();
+
+            puts("Tor: connected.");
+            s_f.addEventListener(Event.CONNECT, fac_connected);
+            s_f.addEventListener(Event.CLOSE, function (e:Event):void {
+                puts("Facilitator: closed connection.");
+            });
+            s_f.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
+                puts("Facilitator: I/O error: " + e.text + ".");
+                if (s_t.connected)
+                    s_t.close();
+            });
+            s_f.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (e:SecurityErrorEvent):void {
+                puts("Facilitator: security error: " + e.text + ".");
+                if (s_t.connected)
+                    s_t.close();
+            });
+
+            puts("Facilitator: connecting to " + fac_address + ":" + fac_port + ".");
+            s_f.connect(fac_address, fac_port);
+
+            /*s_c = new Socket();

             puts("Tor: connected.");
             s_c.addEventListener(Event.CONNECT, client_connected);
@@ -117,7 +145,24 @@
             });

             puts("Client: connecting to " + client_address + ":" + client_port + ".");
-            s_c.connect(client_address, client_port);
+            s_c.connect(client_address, client_port);*/
+        }
+
+	private function fac_connected(e:Event):void
+        {
+            puts("Facilitator: connected.");
+
+            s_f.addEventListener(ProgressEvent.SOCKET_DATA, function (e:ProgressEvent):void {
+                var client_spec:String = new String();
+		client_spec = s_f.readUTF();
+                puts("Facilitator: got \"" + client_spec + "\"");
+                //s_c.writeBytes(bytes);
+		/* Need to parse the bytes to get the new client. Fill out client_address and client_port */
+            });
+
+	    s_f.writeUTFBytes("GET / HTTP/1.0");
+	    s_f.flush();
+
         }

         private function client_connected(e:Event):void


Show the total number of proxy pairs ever made.

num_proxy_pairs is the instantaneous count, so it never gets above 1.
Add a total_proxy_pairs that is never decreased.

--- swfcat.as
+++ swfcat.as
@@ -39,7 +39,11 @@

         private var fac_addr:Object;

+        /* Number of proxy pairs currently connected (up to
+           MAX_NUM_PROXY_PAIRS). */
         private var num_proxy_pairs:int = 0;
+        /* Number of proxy pairs ever connected. */
+        private var total_proxy_pairs:int = 0;

         /* Badge with a client counter */
         [Embed(source="badge_con_counter.png")]
@@ -55,10 +59,10 @@

         public function update_client_count():void
         {
-            if (String(num_proxy_pairs).length == 1)
-                client_count_tf.text = "0" + String(num_proxy_pairs);
+            if (String(total_proxy_pairs).length == 1)
+                client_count_tf.text = "0" + String(total_proxy_pairs);
             else
-                client_count_tf.text = String(num_proxy_pairs);
+                client_count_tf.text = String(total_proxy_pairs);
         }

         public function swfcat()
@@ -178,16 +182,16 @@
             }

             num_proxy_pairs++;
+            total_proxy_pairs++;
             proxy_pair = new ProxyPair(this, client_addr, DEFAULT_TOR_ADDR);
-
-            /* Update the client count on the badge. */
-            update_client_count();
-
             proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                 proxy_pair.log("Complete.");
                 num_proxy_pairs--;
             });
             proxy_pair.connect();
+
+            /* Update the client count on the badge. */
+            update_client_count();
         }

         /* Parse an address in the form "host:port". Returns an Object with


Add a facilitator_poll_interval parameter.

--- swfcat.as
+++ swfcat.as
@@ -21,6 +21,10 @@
  * How many clients to serve concurrently. The default is
  * DEFAULT_MAX_NUM_PROXY_PAIRS.
  *
+ * facilitator_poll_interval=<FLOAT>
+ * How often to poll the facilitator, in seconds. The default is
+ * DEFAULT_FACILITATOR_POLL_INTERVAL. There is a sanity-check minimum of 1.0 s.
+ *
  * client=1
  * If set (to any value), run in client RTMFP mode. In this mode, rather than
  * connecting to a facilitator and attempting to serve clients, swfcat starts an
@@ -69,8 +73,9 @@

         private const DEFAULT_MAX_NUM_PROXY_PAIRS:uint = 10;

-        // Milliseconds.
-        private const FACILITATOR_POLL_INTERVAL:int = 10000;
+        /* In seconds. */
+        private const DEFAULT_FACILITATOR_POLL_INTERVAL:Number = 10.0;
+        private const MIN_FACILITATOR_POLL_INTERVAL:Number = 1.0;

         // Bytes per second. Set to undefined to disable limit.
         public static const RATE_LIMIT:Number = undefined;
@@ -89,6 +94,7 @@
         public var debug:Boolean;
         private var fac_addr:Object;
         private var max_num_proxy_pairs:uint;
+        private var facilitator_poll_interval:Number;
         private var local_addr:Object;

         public var rate_limit:RateLimit;
@@ -153,6 +159,13 @@
             }
             max_num_proxy_pairs = uint(tmp);

+            tmp = get_param_timespec("facilitator_poll_interval", DEFAULT_FACILITATOR_POLL_INTERVAL);
+            if (tmp == null || tmp < MIN_FACILITATOR_POLL_INTERVAL) {
+                puts("Error: facilitator_poll_interval must be a nonnegative number at least " + MIN_FACILITATOR_POLL_INTERVAL + ".");
+                return;
+            }
+            facilitator_poll_interval = Number(tmp);
+
             local_addr = get_param_addr("local", DEFAULT_LOCAL_TOR_CLIENT_ADDR);
             if (!local_addr) {
                 puts("Error: Local spec must be in the form \"host:port\".");
@@ -198,6 +211,14 @@
             }
         }

+        /* Get a floating-point number of seconds from a time specification. The
+           only time specification format is a decimal number of seconds.
+           Returns null on error. */
+        private function get_param_timespec(param:String, default_val:Number):Object
+        {
+            return get_param_number(param, default_val);
+        }
+
         /* The main logic begins here, after start-up issues are taken care of. */
         private function proxy_main():void
         {
@@ -205,7 +226,7 @@
             var loader:URLLoader;

             if (proxy_pairs.length >= max_num_proxy_pairs) {
-                setTimeout(proxy_main, FACILITATOR_POLL_INTERVAL);
+                setTimeout(proxy_main, uint(facilitator_poll_interval * 1000));
                 return;
             }

@@ -233,7 +254,7 @@
             var relay_spec:String;
             var proxy_pair:Object;

-            setTimeout(proxy_main, FACILITATOR_POLL_INTERVAL);
+            setTimeout(proxy_main, uint(facilitator_poll_interval * 1000));

             loader = e.target as URLLoader;
             client_spec = loader.data.client;


attempt to prevent XSS attack through file parameter

--- src/flash/FlashMediaElement.as
+++ src/flash/FlashMediaElement.as
@@ -97,7 +97,7 @@

 			// get parameters
 			var params:Object = LoaderInfo(this.root.loaderInfo).parameters;
-			_mediaUrl = (params['file'] != undefined) ? String(params['file']) : "";
+			_mediaUrl = (params['file'] != undefined) ? String(params['file']).replace("\\\"","") : ""; // replacing quotes is for XSS
 			_autoplay = (params['autoplay'] != undefined) ? (String(params['autoplay']) == "true") : false;
 			_debug = (params['debug'] != undefined) ? (String(params['debug']) == "true") : false;
 			_isVideo = (params['isvideo'] != undefined) ? ((String(params['isvideo']) == "false") ? false : true  ) : true;


Added get/set mask and get/set enabled to Layoutable

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4479 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Layoutable.as
+++ src/laml/display/Layoutable.as
@@ -112,6 +112,8 @@
 		function set skin(skin:ISkin):void;
 		function get skin():ISkin;

+		// TODO: Should this change to 'styles' and get handled
+		// in the parser?
 		function set styleNames(names:String):void;
 		function get styleNames():String;

@@ -126,8 +128,12 @@
 		function invalidateProperties():void;
 		function validateDisplayList():void;
 		function validateProperties():void;
-		function render():void;
+		function render():void;

+		function set enabled(enabled:Boolean):void;
+		function get enabled():Boolean;
+		function set mask(mask:Layoutable):void;
+		function get mask():Layoutable;
 		function set mouseChildren(mouseChildren:Boolean):void;
 		function get mouseChildren():Boolean;
 		function set mouseEnabled(mouseEnabled:Boolean):void;
@@ -142,14 +148,19 @@
 		function buildStyleSheet(sheet:StyleSheet=null):StyleSheet;

 		/* Composable */
-		function addChild(child:Layoutable):void;
-		function getChildAt(index:int):Layoutable;
-		function getChildById(id:String):Layoutable;
-		function removeChild(child:Layoutable):void;
 		function get numChildren():int;
 		function set parent(parent:Layoutable):void;
 		function get parent():Layoutable;
 		function get path():String;
 		function get root():Layoutable;
+
+		function addChild(child:Layoutable):void;
+		function getChildAt(index:int):Layoutable;
+		function getChildById(id:String):Layoutable;
+		function removeChild(child:Layoutable):void;
+		function every(callback:Function, thisObject:* = null):Boolean;
+		function filter(callback:Function, thisObject:* = null):Array;
+		function forEach(callback:Function, thisObject:* = null):void;
+		function map(callback:Function, thisObject:* = null):Array;
 	}
 }


Fixed issue 138

Fixed issue 138


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.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/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as
+++ frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as
@@ -19,6 +19,10 @@
  *
  *  @see mx.controls.FileSystemDataGrid#enumerationMode
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public final class FileSystemSizeDisplayMode
 {
@@ -32,11 +36,19 @@

     /**
      *  Specifies to show file sizes in bytes.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const BYTES:String = "bytes";

     /**
      *  Specifies to show file sizes in kilobytes.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const KILOBYTES:String = "kilobytes";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.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/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as
+++ frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as
@@ -23,6 +23,10 @@
  *  @see mx.core.Window
  *  @see mx.core.WindowedApplication
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class FlexNativeWindowBoundsEvent extends NativeWindowBoundsEvent
 {
@@ -52,6 +56,10 @@
      *  </table>
      *
      *  @eventType windowResize
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const WINDOW_RESIZE:String = "windowResize";

@@ -80,6 +88,10 @@
      *  </table>
      *
      *  @eventType windowMove
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const WINDOW_MOVE:String = "windowMove";

@@ -103,6 +115,10 @@
      *  @param beforeBounds The bounds of the window before the resize.
      *
      *  @param afterBounds The bounds of the window before the resize.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function FlexNativeWindowBoundsEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
                     beforeBounds:Rectangle = null, afterBounds:Rectangle = null)


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

--- frameworks/projects/framework/src/mx/validators/ZipCodeValidatorDomainType.as
+++ frameworks/projects/framework/src/mx/validators/ZipCodeValidatorDomainType.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: 6595
Author:   dsubrama@adobe.com
Date:     2009-05-04T20:00:36.061973Z

Log Message:
-----------
Support for caret state in ItemRenderers and List. Focus management puts renderers in the caret state and selectUponNavigation is partly implemented. This is the first step towards getting DropDownList selection/list keyboard navigation work working. Jason will do the integration/refactoring on the List end with a subsequent check-in.

QA: Hold off till Jason's refactoring work comes in
Checkintests: PASS
Mustella tests: List, ButtonBar - PASS

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</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/flex4/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.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/events/IndexChangedEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as
@@ -38,7 +38,7 @@
  *    Properties
  *    allowDeselection="true"
  *    selected="false"
- *    showFocusIndicator="false"
+ *    caret="false"
  *  />
  *

  *
@@ -232,36 +232,35 @@
     }

     //----------------------------------
-    //  showFocusIndicator
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the showFocusIndicator property
-     */
-    private var _showFocusIndicator:Boolean = false;
+    //  caret
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the caret property
+     */
+    private var _caret:Boolean = false;

     /**
      *  @inheritDoc
      *
      *  @default false
      */
-    public function get showFocusIndicator():Boolean
-    {
-        return _showFocusIndicator;
-    }
-
-    /**
-     *  @private
-     */
-    public function set showFocusIndicator(value:Boolean):void
-    {
-        if (value == _showFocusIndicator)
+    public function get caret():Boolean
+    {
+        return _caret;
+    }
+
+    /**
+     *  @private
+     */
+    public function set caret(value:Boolean):void
+    {
+        if (value == _caret)
             return;

-        _showFocusIndicator = value;
-        //mx_internal::drawFocusAnyway = true;
-        //drawFocus(value);
+        _caret = value;
+        currentState = getCurrentRendererState();
     }

     //----------------------------------
@@ -368,6 +367,9 @@

         if (hovered)
             return "hovered";
+
+        if (caret)
+            return "caret";

         return "normal";
     }
@@ -436,7 +438,6 @@
     {
         addEventListener(MouseEvent.ROLL_OVER, itemRenderer_rollOverHandler);
         addEventListener(MouseEvent.ROLL_OUT, itemRenderer_rollOutHandler);
-        addEventListener(MouseEvent.MOUSE_DOWN, itemRenderer_mouseDownHandler);
     }

     /**
@@ -467,14 +468,6 @@
         hovered = false;
         currentState = getCurrentRendererState();
     }
-
-    /**
-     *  @private
-     *  Mouse down event handler.
-     */
-    protected function itemRenderer_mouseDownHandler(event:MouseEvent):void
-    {
-        //dispatchEvent(new MouseEvent("click"));
-    }
+
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13208
Author:   chaase@adobe.com
Date:     2009-12-23T21:49:14.524642Z

Log Message:
-----------
Dealt with my FIXMEs in the code. Some went away (no longer issues), some became TODOs (still issues, but nothing that we have to solve in this release), a couple were actually resolved in this change (like the bug filed/fixed: 24848).

QE notes: 10 failures in Mustella of tests that need to be changed. They're excluded for now and QE has local fixes.
Doc notes: None
Bugs: SDK-24848
Reviewer: Jason
Tests run: checkintests, Mustella (spark/effects, mx/effects)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.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/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.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/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.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/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.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/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance.as
@@ -444,7 +444,7 @@

         isStyleMap = new Array(motionPaths.length);

-        // FIXME (chaase): avoid setting up animations on properties whose
+        // TODO (chaase): avoid setting up animations on properties whose
         // from/to values are the same. Not worth the cycles, but also want
         // to avoid triggering any side effects when we're not actually changing
         // values
@@ -453,9 +453,6 @@
         for (i = 0; i < motionPaths.length; ++i)
         {
             var mp:MotionPath = MotionPath(motionPaths[i]);
-            // FIXME (chaase): should we push this keyframe-init logic
-            // into the MotionPath class instead?
-
             var keyframes:Vector.<Keyframe> = motionPaths[i].keyframes;
             if (!keyframes)
                 continue;
@@ -464,7 +461,7 @@
             // adjust effect duration to be the max of all MotionPath keyframe times
             // duration==0 is special-case, because the user (or an internal request)
             // specifically asked the effect to be of zero duration
-            // FIXME (chaase): Currently we do not adjust *down* for smaller duration
+            // TODO (chaase): Currently we do not adjust *down* for smaller duration
             // MotionPaths. This is because we do not distinguish between
             // SimpleMotionPath objects (which are created with fake durations of 1,
             // knowing that they will derive their duration from their effects) and
@@ -492,11 +489,6 @@
         animation.startDelay = startDelay;

         animation.play();
-
-        // FIXME (chaase): there may be a better way to organize the
-        // animations for each property. For example, we could use
-        // an animation of a single value from 0 to 1 and then update each
-        // property based on that elapsed fraction.
     }

     /**
@@ -519,7 +511,7 @@
         }
     }

-    // FIXME (chaase): This function appears in multiple places. Maybe
+    // TODO (chaase): This function appears in multiple places. Maybe
     // put it in some util class instead?
     /**
      * @private
@@ -660,11 +652,6 @@
         }

         finalizeValues();
-
-        // FIXME (chaase): Consider putting AnimateInstance (and subclass's)
-        // play() functionality (the setup and playing of the Animation object)
-        // into startEffect(), calling play() from here, and not overriding
-        // play() at all.
     }

     /**
@@ -843,8 +830,11 @@
                     }
                     // GraphicElements may delay parenting their underlying displayObject until
                     // a layout pass, so let's force it to make sure we're ready to go
-                    // FIXME (chaase): this should probably happen as a part of applyStartValues()
-                    // instead, then we already force the layout to happen
+                    // TODO (chaase): this should probably happen as a part of applyStartValues()
+                    // instead, then we already force the layout to happen. Also, this might
+                    // enable this auto-add functionality to work for Sequence instead of just
+                    // Parallel effects, since applyStartValues() is called at the outer effect
+                    // start time, not just at the inner instance start time.
                     if (target is GraphicElement)
                         GraphicElement(target).validateNow();
                     needsRemoval = true;
@@ -890,7 +880,7 @@

     private var constraintsHolder:Object;

-    // FIXME (chaase): Use IConstraintClient for this
+    // TODO (chaase): Use IConstraintClient for this
     private function reenableConstraint(name:String):void
     {
         var value:* = constraintsHolder[name];
@@ -925,7 +915,7 @@
         }
     }

-    // FIXME (chaase): Use IConstraintClient for this
+    // TODO (chaase): Use IConstraintClient for this
     private function cacheConstraint(name:String):*
     {
         var isProperty:Boolean = (name in target);
@@ -985,7 +975,7 @@
      */
     protected function setupStyleMapEntry(property:String):void
     {
-        // FIXME (chaase): Find a better way to set this up just once
+        // TODO (chaase): Find a better way to set this up just once
         if (isStyleMap[property] == undefined)
         {
             if (property in target)
@@ -1003,8 +993,6 @@
                     throw new Error(resourceManager.getString("sparkEffects",
                         "propNotPropOrStyle", [property, target, err]));
                 }
-                // FIXME (chaase): check to make sure that the throw above won't
-                // let the code flow get to here
             }
         }
     }
@@ -1017,7 +1005,7 @@
      */
     protected function setValue(property:String, value:Object):void
     {
-        // FIXME (chaase): Find a better way to set this up just once
+        // TODO (chaase): Find a better way to set this up just once
         setupStyleMapEntry(property);
         if (!isStyleMap[property])
             target[property] = value;
@@ -1033,7 +1021,7 @@
      */
     protected function getCurrentValue(property:String):*
     {
-        // FIXME (chaase): Find a better way to set this up just once
+        // TODO (chaase): Find a better way to set this up just once
         setupStyleMapEntry(property);
         if (!isStyleMap[property])
             return target[property];


added WeavePromise.thenAgain()

added WeavePromise.thenAgain()

--- WeaveCore/src/weave/utils/WeavePromise.as
+++ WeaveCore/src/weave/utils/WeavePromise.as
@@ -124,6 +124,11 @@
 			return new WeavePromise(this.rootPromise, resolver);
 		}

+		public function thenAgain(onFulfilled:Function = null, onRejected:Function = null):WeavePromise
+		{
+			return then(onFulfilled, onRejected) as WeavePromise;
+		}
+
 		public function getAsyncToken():AsyncToken
 		{
 			var asyncToken:AsyncToken = new AsyncToken();


Transferred from the Adobe Open Source Subversion Repository

Revision: 13741
Author:   rbhat@adobe.com
Date:     2010-01-25T04:51:01.548340Z

Log Message:
-----------
Changes made by sbannur. Removed patent related comments from the files.
Reviewed By: Sameer Bhatt

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/IDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/CartesianCanvasValue.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/charts/chartClasses/PolarDataCanvas.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/IDataCanvas.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/IDataCanvas.as
@@ -7,10 +7,6 @@
 //  NOTICE: Adobe permits you to use, modify, and distribute this file
 //  in accordance with the terms of the license agreement accompanying it.
 //
-//  Adobe Patent or Adobe Patent Pending Invention Included Within this File
-//  Adobe patent application tracking B503, entitled Charting Data Graphics -
-//  graphics drawing API that allows to draw in data space, inventors Ely Greenfield.
-//  AdobePatentID="B503"
 //
 ////////////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/charts/src/mx/styles/metadata/IconColorStyles.as
+++ frameworks/projects/charts/src/mx/styles/metadata/IconColorStyles.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  The color for the icon in a skin.
+ *  For example, this style is used by the CheckBoxIcon skin class
+ *  to draw the check mark for a CheckBox control,
+ *  by the ComboBoxSkin class to draw the down arrow of the ComboBox control,
+ *  and by the DateChooserMonthArrowSkin skin class to draw the month arrow
+ *  for the DateChooser control.
+ *
+ *  The default value depends on the component class;
+ *  if it is not overridden by the class, the default value is 0x111111.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="iconColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  The color for the icon in a disabled skin.
+ *  For example, this style is used by the CheckBoxIcon skin class
+ *  to draw the check mark for a disabled CheckBox control,
+ *  by the ComboBoxSkin class to draw the down arrow of a disabled ComboBox control,
+ *  and by the DateChooserMonthArrowSkin skin class to draw the month arrow
+ *  for a disabled DateChooser control.
+ *
+ *  The default value depends on the component class;
+ *  if it is not overridden by the class, the default value is 0x999999.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledIconColor", type="uint", format="Color", inherit="yes")]


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3499
Author:   rfrishbe@adobe.com
Date:     2008-10-06T23:57:04.003486Z

Log Message:
-----------
Code cleanup:

1.  Remove IDisplayObjectElement and IAssignableDisplayObjectElement.  No one was actually using these interfaces...a few classes were implementing them though.

2.  Big ASDoc comment scrub for Group, DataGroup, and GroupBase.  Fixed some ASDoc in LayoutBase, IViewport, and ResizeMode.

3.  Spit and finish on Group.  No more variables or parameters typed as "*".  Got the content APIs in-line with Flash's DisplayObjectContainer, which means exceptions are now thrown where appropriate.

4.  Fixed a bug in DataGround where graphic items with item renderers had trouble in itemRemoved() (SDK-17175)

QE: Yes - Please revamp the excluded test cases to look for the new exceptions.
Doc: Yes
Bugs: SDK-17175
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IAssignableDisplayObjectElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -182,13 +182,13 @@
     //  content
     //----------------------------------

-    private var _content:*;
+    private var _content:Object;

     /**
      *  @copy flex.core.Group#content
      */
     [Bindable]
-    public function get content():*
+    public function get content():Object
     {
 	    // Make sure deferred content is created, if needed
 		createContentIfNeeded();
@@ -201,7 +201,7 @@
             return _content;
     }

-    public function set content(value:*):void
+    public function set content(value:Object):void
     {
         if (value == _content)
             return;
@@ -374,7 +374,7 @@
                 }

             }
-            else if (_content != undefined)
+            else if (_content != null)
             {
                 contentGroup.content = _content;
             }


Updated FaultEvent and ResultEvent on HTTPServiceStub to have ref to AsyncToken.

--- src/main/flex/mx/rpc/http/test/HTTPServiceStub.as
+++ src/main/flex/mx/rpc/http/test/HTTPServiceStub.as
@@ -106,11 +106,11 @@
       {
          if(result is Fault)
          {
-            return new FaultEvent(FaultEvent.FAULT, false, true, result as Fault);
+            return new FaultEvent(FaultEvent.FAULT, false, true, result as Fault, token);
          }
          else
          {
-            return new ResultEvent(ResultEvent.RESULT, false, true, result);
+            return new ResultEvent(ResultEvent.RESULT, false, true, result, token);
          }
       }
    }


Clean up

Clean up


Update Signal.as

Update Signal.as

--- src/aerys/minko/type/Signal.as
+++ src/aerys/minko/type/Signal.as
@@ -69,8 +69,10 @@
 				return ;
 			}

-			if (_callbacks) _callbacks[_numCallbacks] = callback;
-			else _callbacks = new <Function>[callback];
+			if (_callbacks)
+				_callbacks[_numCallbacks] = callback;
+			else
+				_callbacks = new <Function>[callback];
 			++_numCallbacks;

 			if (_numCallbacks == 1 && _disableWhenNoCallbacks)