Transferred from the Adobe Open Source Subversion Repository

Revision: 8509
Author:   smgilson@adobe.com
Date:     2009-07-10T17:58:51.724217Z

Log Message:
-----------
- Explicitly list the default skins for Spark components as part of the fix for SDK-18639
- Fix some bad @see links

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -346,19 +346,32 @@
  *           Maximum size
  *           10000 pixels wide and 10000 pixels high
  *

+ *

+ *           Default skin class
+ *           spark.skins.spark.VideoPlayerSkin
+ *

  *

  *
  *  @see spark.primitives.VideoElement
  *  @see spark.skins.spark.VideoPlayerSkin
- *  @see spark.skins.spark.mediaClasses.FullScreenButtonSkin
- *  @see spark.skins.spark.mediaClasses.MuteButtonSkin
- *  @see spark.skins.spark.mediaClasses.PlayPauseButtonSkin
- *  @see spark.skins.spark.mediaClasses.ScrubBarSkin
- *  @see spark.skins.spark.mediaClasses.ScrubBarThumbSkin
- *  @see spark.skins.spark.mediaClasses.ScrubBarTrackSkin
- *  @see spark.skins.spark.mediaClasses.VolumeBarSkin
- *  @see spark.skins.spark.mediaClasses.VolumeBarThumbSkin
- *  @see spark.skins.spark.mediaClasses.VolumeBarTrackSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.FullScreenButtonSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.MuteButtonSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.PlayPauseButtonSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.ScrubBarSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.ScrubBarThumbSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.ScrubBarTrackSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.VolumeBarSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.VolumeBarThumbSkin
+ *  @see spark.skins.spark.mediaClasses.fullScreen.VolumeBarTrackSkin
+ *  @see spark.skins.spark.mediaClasses.normal.FullScreenButtonSkin
+ *  @see spark.skins.spark.mediaClasses.normal.MuteButtonSkin
+ *  @see spark.skins.spark.mediaClasses.normal.PlayPauseButtonSkin
+ *  @see spark.skins.spark.mediaClasses.normal.ScrubBarSkin
+ *  @see spark.skins.spark.mediaClasses.normal.ScrubBarThumbSkin
+ *  @see spark.skins.spark.mediaClasses.normal.ScrubBarTrackSkin
+ *  @see spark.skins.spark.mediaClasses.normal.VolumeBarSkin
+ *  @see spark.skins.spark.mediaClasses.normal.VolumeBarThumbSkin
+ *  @see spark.skins.spark.mediaClasses.normal.VolumeBarTrackSkin
  *
  *  @mxml
  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 5228
Author:   egeorgie@adobe.com
Date:     2009-03-10T23:56:10.390326Z

Log Message:
-----------
Implement rounding to pixel boundaries for Horizontal/Vertical layouts.

QE Notes: None
Doc Notes:
Bugs: SDK-18227, SDK-19198
Reviewer: Hans
tests: mustella (gumbo/layout, gumbo/core/group)

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

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -44,7 +44,7 @@

     private static function calculatePercentWidth(layoutElement:ILayoutElement, width:Number):Number
     {
-    	var percentWidth:Number = LayoutElementHelper.pinBetween(layoutElement.percentWidth * 0.01 * width,
+    	var percentWidth:Number = LayoutElementHelper.pinBetween(Math.round(layoutElement.percentWidth * 0.01 * width),
     	                                                         layoutElement.getMinBoundsWidth(),
     	                                                         layoutElement.getMaxBoundsWidth() );
     	return percentWidth < width ? percentWidth : width;
@@ -1002,7 +1002,7 @@
        switch(horizontalAlign)
        {
            case HorizontalAlign.CENTER:
-               return (containerWidth - eltWidth) * 0.5;
+               return Math.round((containerWidth - eltWidth) * 0.5);
            case HorizontalAlign.RIGHT:
                return containerWidth - eltWidth;
        }
@@ -1189,6 +1189,9 @@

             // Set the layout element's position
             var x:Number = (containerWidth - layoutElement.getLayoutBoundsWidth()) * hAlign;
+            // In case we have HorizontalAlign.CENTER we have to round
+            if (hAlign == 0.5)
+                x = Math.round(x);
             layoutElement.setLayoutBoundsPosition(x, y);

             // Update maxX,Y, first,lastVisibleIndex, and y
@@ -1290,11 +1293,16 @@
                                                                 spaceToDistribute,
                                                                 totalPercentHeight,
                                                                 childInfoArray);
-
+
+            var roundOff:Number = 0;
             for each (childInfo in childInfoArray)
             {
+                // Make sure the calculated percentages are rounded to pixel boundaries
+                var childSize:int = Math.round(childInfo.size + roundOff);
+                roundOff += childInfo.size - childSize;
+
                 sizeLayoutElement(childInfo.layoutElement, width, horizontalAlign,
-                               restrictedWidth, childInfo.size,
+                               restrictedWidth, childSize,
                                variableRowHeight, rh);
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 16390
Author:   clucier@adobe.com
Date:     2010-06-02T00:31:33.544783Z

Log Message:
-----------
PARB changes and bug fixes for Image and BitmapImage.

QE notes:  None
Doc notes:  None
Bugs: SDK-26596, SDK-26594, SDK-26561, SDK-26562, SDK-26567, SDK-26568, SDK-26571, SDK-26572, SDK-26575, SDK-26583, SDK-26584
Reviewer:  Ryan
Tests run:  Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/LoaderInvalidationEvent.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/LoaderInvalidationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/IContentLoader.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IContentLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentCache.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentCache.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ImageSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/contentLoader/ContentRequest.as" copyfrom-rev="16350" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ContentRequest.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -37,9 +37,9 @@
 import mx.graphics.BitmapScaleMode;
 import mx.graphics.BitmapSmoothingQuality;

-import spark.core.contentLoader.ContentRequest;
-import spark.core.contentLoader.IContentLoader;
+import spark.core.ContentRequest;
 import spark.core.DisplayObjectSharingMode;
+import spark.core.IContentLoader;
 import spark.layouts.HorizontalAlign;
 import spark.layouts.VerticalAlign;
 import spark.primitives.supportClasses.GraphicElement;
@@ -175,6 +175,7 @@
     private var imageWidth:int;
     private var imageHeight:int;
     private var loadedContent:DisplayObject;
+    private var loadingContent:Object;
     private var previousUnscaledWidth:Number;
     private var previousUnscaledHeight:Number;
     private var sourceInvalid:Boolean;
@@ -224,76 +225,76 @@
         return _bytesTotal;
     }

-	//----------------------------------
-	//  contentGrouping
-	//----------------------------------
-
-	private var _contentGrouping:String;
-
-	/**
-	 *  Optional content grouping identifier to pass to the an
-	 *  associated IContentLoader instance's load() method.
-	 *  This property is only considered when a valid contentLoader
-	 *  is assigned.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4.5
-	 */
-	public function get contentGrouping():String
-	{
-		return _contentGrouping;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set contentGrouping(value:String):void
-	{
-		if (value != _contentGrouping)
-		{
-			_contentGrouping = value;
-			invalidateProperties();
-		}
-	}
-
-	//----------------------------------
-	//  contentLoader
-	//----------------------------------
-
-	private var _contentLoader:IContentLoader;
-	private var contentLoaderInvalid:Boolean;
-
-	/**
-	 *  Optional custom image loader (e.g. image cache or queue) to
-	 *  associate with content loader client.
-	 *
-	 *  @default null
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4.5
-	 */
-	public function get contentLoader():IContentLoader
-	{
-		return _contentLoader;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set contentLoader(value:IContentLoader):void
-	{
-		if (value != _contentLoader)
-		{
-			_contentLoader = value;
-			contentLoaderInvalid = true;
-			invalidateProperties();
-		}
-	}
-
+    //----------------------------------
+    //  contentLoaderGrouping
+    //----------------------------------
+
+    private var _contentLoaderGrouping:String;
+
+    /**
+     *  Optional content grouping identifier to pass to the an
+     *  associated IContentLoader instance's load() method.
+     *  This property is only considered when a valid contentLoader
+     *  is assigned.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get contentLoaderGrouping():String
+    {
+        return _contentLoaderGrouping;
+    }
+
+    /**
+     *  @private
+     */
+    public function set contentLoaderGrouping(value:String):void
+    {
+        if (value != _contentLoaderGrouping)
+        {
+            _contentLoaderGrouping = value;
+            invalidateProperties();
+        }
+    }
+
+    //----------------------------------
+    //  contentLoader
+    //----------------------------------
+
+    private var _contentLoader:IContentLoader;
+    private var contentLoaderInvalid:Boolean;
+
+    /**
+     *  Optional custom image loader (e.g. image cache or queue) to
+     *  associate with content loader client.
+     *
+     *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get contentLoader():IContentLoader
+    {
+        return _contentLoader;
+    }
+
+    /**
+     *  @private
+     */
+    public function set contentLoader(value:IContentLoader):void
+    {
+        if (value != _contentLoader)
+        {
+            _contentLoader = value;
+            contentLoaderInvalid = true;
+            invalidateProperties();
+        }
+    }
+
     //----------------------------------
     //  fillMode
     //----------------------------------
@@ -403,84 +404,84 @@
             return 0.5;
     }

-	//----------------------------------
-	//  preliminaryHeight
-	//----------------------------------
-
-	/**
-	 *  @private
-	 */
-	private var _preliminaryHeight:Number = 0;
-
-	/**
-	 *  Provides an estimate to use for height when the "measured" bounds
-	 *  of the image is requested by layout, but the image data has
-	 *  yet to complete loading. When NaN the measured height is 0 until
-	 *  the image has finished loading.
-	 *
-	 *  @default NaN
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4.5
-	 */
-	public function get preliminaryHeight():Number
-	{
-		return _preliminaryHeight;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set preliminaryHeight(value:Number):void
-	{
-		if (value != _preliminaryHeight)
-		{
-			_preliminaryHeight = value;
-			invalidateSize();
-		}
-	}
-
-	//----------------------------------
-	//  preliminaryWidth
-	//----------------------------------
-
-	/**
-	 *  @private
-	 */
-	private var _preliminaryWidth:Number = 0;
-
-	/**
-	 *  Provides an estimate to use for width when the "measured" bounds
-	 *  of the image is requested by layout, but the image data has
-	 *  yet to complete loading. When NaN the measured width is 0 until
-	 *  the image has finished loading.
-	 *
-	 *  @default NaN
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 1.5
-	 *  @productversion Flex 4.5
-	 */
-	public function get preliminaryWidth():Number
-	{
-		return _preliminaryWidth;
-	}
-
-	/**
-	 *  @private
-	 */
-	public function set preliminaryWidth(value:Number):void
-	{
-		if (value != _preliminaryWidth)
-		{
-			_preliminaryWidth = value;
-			invalidateSize();
-		}
-	}
-
+    //----------------------------------
+    //  preliminaryHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _preliminaryHeight:Number = NaN;
+
+    /**
+     *  Provides an estimate to use for height when the "measured" bounds
+     *  of the image is requested by layout, but the image data has
+     *  yet to complete loading. When NaN the measured height is 0 until
+     *  the image has finished loading.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get preliminaryHeight():Number
+    {
+        return _preliminaryHeight;
+    }
+
+    /**
+     *  @private
+     */
+    public function set preliminaryHeight(value:Number):void
+    {
+        if (value != _preliminaryHeight)
+        {
+            _preliminaryHeight = value;
+            invalidateSize();
+        }
+    }
+
+    //----------------------------------
+    //  preliminaryWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _preliminaryWidth:Number = NaN;
+
+    /**
+     *  Provides an estimate to use for width when the "measured" bounds
+     *  of the image is requested by layout, but the image data has
+     *  yet to complete loading. When NaN the measured width is 0 until
+     *  the image has finished loading.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4.5
+     */
+    public function get preliminaryWidth():Number
+    {
+        return _preliminaryWidth;
+    }
+
+    /**
+     *  @private
+     */
+    public function set preliminaryWidth(value:Number):void
+    {
+        if (value != _preliminaryWidth)
+        {
+            _preliminaryWidth = value;
+            invalidateSize();
+        }
+    }
+
     //----------------------------------
     //  scaleMode
     //----------------------------------
@@ -557,12 +558,12 @@
      *

      *

      *
-     *
The image location can be a URL or file reference. If it is a file
-     *  reference, its location is relative to the location of the file that is
-     *  being compiled.

+     *
The image location can be specified via a URL, URLRequest, or file
+     *  reference. If it is a file reference, its location is relative to the
+     *  location of the file that is being compiled.

      *
      *
The BitmapImage class is designed to work with embedded images or
-     *  images that are loaded at run time

+     *  images that are loaded at run time.

      *
      *
If the source is a Bitmap or BitmapData instance or is an external
      *  image file, it is the responsibility of the caller to dispose of the
@@ -675,8 +676,8 @@
     //  trustedSource
     //----------------------------------

-	private var _trustedSource:Boolean = true;
-
+    private var _trustedSource:Boolean = true;
+
     /**
      *  A read-only flag denoting whether the currently loaded
      *  content is considered loaded form a source whose security
@@ -692,10 +693,10 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4.5
      */
-	public function get trustedSource():Boolean
-	{
-		return _trustedSource;
-	}
+    public function get trustedSource():Boolean
+    {
+        return _trustedSource;
+    }

     //----------------------------------
     //  verticalAlign
@@ -775,9 +776,9 @@
     {
         if (sourceInvalid || contentLoaderInvalid)
             applySource();
-
-		sourceInvalid = false;
-		contentLoaderInvalid = false;
+
+        sourceInvalid = false;
+        contentLoaderInvalid = false;

         super.commitProperties();
     }
@@ -808,8 +809,8 @@
         {
             // Return estimated width/height here as we've yet to fully
             // realize valid image content.
-            measuredWidth = _preliminaryWidth;
-            measuredHeight = _preliminaryHeight;
+            measuredWidth = !isNaN(_preliminaryWidth) ? _preliminaryWidth : measuredWidth;
+            measuredHeight = !isNaN(_preliminaryHeight) ? _preliminaryHeight : measuredHeight;
             return;
         }

@@ -1087,6 +1088,9 @@
             _bitmapData = null;
         }

+        // Clear any currently loading content.
+        clearLoadingContent();
+
         if (bitmapData)
         {
             bitmapDataCreated = internallyCreated;
@@ -1116,34 +1120,34 @@
         var value:Object = _source;
         var bitmapData:BitmapData;
         var tmpSprite:DisplayObject;
-
+
         // Clear the previous scaleGrid properties
         _scaleGridLeft = NaN;
         _scaleGridRight = NaN;
         _scaleGridTop = NaN;
         _scaleGridBottom = NaN;
         var currentBitmapCreated:Boolean = false;
-
-		// Clear any previously loaded content.
-		loadedContent = null;
-
-		// Reset byte counts and _trustedSource
-		_bytesLoaded = NaN;
-		_bytesTotal = NaN;
-		_trustedSource = true;
-
-		// We'll need to reconsider display object sharing.
-		invalidateDisplayObjectSharing();
-
+
+        // Clear any previously loaded content.
+        loadedContent = null;
+
+        // Reset byte counts and _trustedSource
+        _bytesLoaded = NaN;
+        _bytesTotal = NaN;
+        _trustedSource = true;
+
+        // We'll need to reconsider display object sharing.
+        invalidateDisplayObjectSharing();
+
         if (value is Class)
         {
             var cls:Class = Class(value);
             value = new cls();
             currentBitmapCreated = true;
         }
-        else if (value is String)
-        {
-            loadExternal(value as String);
+        else if (value is String || value is URLRequest)
+        {
+            loadExternal(value);
         }

         if (value is BitmapData)
@@ -1180,7 +1184,11 @@
                 _scaleGridTop = tmpSprite.scale9Grid.top;
                 _scaleGridBottom = tmpSprite.scale9Grid.bottom;
             }
-        }
+        }
+
+        // Remove any previously hosted untrusted content (Loader instances)
+        // if applicable.
+        removeLoadedContent();

         setBitmapData(bitmapData, currentBitmapCreated);
     }
@@ -1188,14 +1196,16 @@
     /**
      *  @private
      */
-    mx_internal function loadExternal(url:String):void
+    mx_internal function loadExternal(url:Object):void
     {
-        var loaderInfo:Object;
-
+        // Remove listeners from any previous load instance and clear
+        // our reference to any existing load-event  dispatcher.
+        clearLoadingContent();
+
         if (contentLoader)
         {
             // We defer our load request to the configured content loader.
-            var contentRequest:ContentRequest = contentLoader.load(url, contentGrouping);
+            var contentRequest:ContentRequest = contentLoader.load(url, contentLoaderGrouping);

             if (contentRequest.complete)
             {
@@ -1205,14 +1215,9 @@
             }
             else
             {
-                contentRequest.addEventListener(Event.COMPLETE,
-                    loader_completeHandler, false, 0, true);
-                contentRequest.addEventListener(IOErrorEvent.IO_ERROR,
-                    loader_ioErrorHandler, false, 0, true);
-                contentRequest.addEventListener(ProgressEvent.PROGRESS,
-                    loader_progressHandler, false, 0, true);
-                contentRequest.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
-                    loader_securityErrorHandler, false, 0, true);
+                // Attach load-event listeners to our ContentRequest instance.
+                loadingContent = contentRequest;
+                attachLoadingListeners();
             }
         }
         else
@@ -1222,18 +1227,15 @@
             var loaderContext:LoaderContext = new LoaderContext();
             loaderContext.checkPolicyFile = true;

-            loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
-                loader_completeHandler, false, 0, true);
-            loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
-                loader_ioErrorHandler, false, 0, true);
-            loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
-                loader_progressHandler, false, 0, true);
-            loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
-                loader_securityErrorHandler, false, 0, true);
+            // Attach load-event listeners to our LoaderInfo instance.
+            loadingContent = loader.contentLoaderInfo;
+            attachLoadingListeners();
+
             try
             {
-                loader.load(new URLRequest(url), loaderContext);
-                dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS));
+                var urlRequest:URLRequest = url is URLRequest ?
+                    url as URLRequest : new URLRequest(url as String);
+                loader.load(urlRequest, loaderContext);
             }
             catch (error:SecurityError)
             {
@@ -1298,42 +1300,53 @@
      * @private
      * Invoked upon completion of a load request.
      */
-    protected function contentComplete(loaderInfo:LoaderInfo):void
-    {
-        if (loaderInfo.childAllowsParent)
-        {
-            // For trusted content we adopt the loaded BitmapData.
-            var image:Bitmap = Bitmap(loaderInfo.content);
-            setBitmapData(image.bitmapData);
-        }
-        else
-        {
-			// Clear any previous bitmap data.
-			setBitmapData(null);
-
-            // For untrusted content we must host the acquired Loader
-            // instance directly as our DisplayObject.
-            displayObjectSharingMode = DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT;
-            invalidateDisplayObjectSharing();
-
-			// Create a content holder to use as our display object.
-            var contentHolder:Sprite = new Sprite();
-            setDisplayObject(contentHolder);
-			loadedContent = loaderInfo.loader;
-            contentHolder.addChild(loadedContent);
-
-			// Retain our source image width and height.
-            imageWidth = loaderInfo.width;
-            imageHeight = loaderInfo.height ;
-
-			// Update
-			invalidateSize();
-            invalidateDisplayList();
-
-			// Denote that we are hosting an untrusted image and as such some
-			// features requiring access to the bitmap data will no longer
-			// function.
-            _trustedSource = false;
+    protected function contentComplete(content:Object):void
+    {
+        if (content is LoaderInfo)
+        {
+            // Clear any previous bitmap data or loader instance.
+            setBitmapData(null);
+            removeLoadedContent();
+
+            var loaderInfo:LoaderInfo = content as LoaderInfo;
+
+            if (loaderInfo.childAllowsParent)
+            {
+                // For trusted content we adopt the loaded BitmapData.
+                var image:Bitmap = Bitmap(loaderInfo.content);
+                setBitmapData(image.bitmapData);
+            }
+            else
+            {
+                // For untrusted content we must host the acquired Loader
+                // instance directly as our DisplayObject.
+                displayObjectSharingMode = DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT;
+                invalidateDisplayObjectSharing();
+
+                // Create a content holder to use as our display object.
+                var contentHolder:Sprite = new Sprite();
+                setDisplayObject(contentHolder);
+                loadedContent = loaderInfo.loader;
+                contentHolder.addChild(loadedContent);
+
+                // Retain our source image width and height.
+                imageWidth = loaderInfo.width;
+                imageHeight = loaderInfo.height ;
+
+                // Update
+                invalidateSize();
+                invalidateDisplayList();
+
+                // Denote that we are hosting an untrusted image and as such some
+                // features requiring access to the bitmap data will no longer
+                // function.
+                _trustedSource = false;
+            }
+        }
+        else
+        {
+            // TODO(crl): Handle other content types here such as raw
+            // BitmapData returned from an IContentLoader.
         }
     }

@@ -1341,9 +1354,75 @@
      * @private
      * Returns true if are to consider aspect ratio while scaling.
      */
-    protected function get maintainAspectRatio():Boolean
+    private function get maintainAspectRatio():Boolean
     {
         return (_scaleMode == BitmapScaleMode.LETTERBOX && _fillMode == BitmapFillMode.SCALE);
+    }
+
+    /**
+     * @private
+     * Returns true if are to consider aspect ratio while scaling.
+     */
+    private function removeLoadedContent():void
+    {
+        if (loadedContent && loadedContent.parent)
+        {
+            displayObjectSharingMode = DisplayObjectSharingMode.USES_SHARED_OBJECT;
+            invalidateDisplayObjectSharing();
+            loadedContent.parent.removeChild(loadedContent);
+            loadedContent = null;
+            setDisplayObject(null);
+            imageWidth = imageHeight = 0;
+        }
+    }
+
+    /**
+     *  @private
+     */
+    private function clearLoadingContent():void
+    {
+        removeLoadingListeners();
+        loadingContent = null;
+    }
+
+    /**
+     *  @private
+     */
+    private function attachLoadingListeners():void
+    {
+        if (loadingContent)
+        {
+            loadingContent.addEventListener(Event.COMPLETE,
+                loader_completeHandler, false, 0, true);
+            loadingContent.addEventListener(IOErrorEvent.IO_ERROR,
+                loader_ioErrorHandler, false, 0, true);
+            loadingContent.addEventListener(ProgressEvent.PROGRESS,
+                loader_progressHandler, false, 0, true);
+            loadingContent.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
+                loader_securityErrorHandler, false, 0, true);
+            loadingContent.addEventListener(HTTPStatusEvent.HTTP_STATUS,
+                dispatchEvent, false, 0, true);
+        }
+    }
+
+    /**
+     *  @private
+     */
+    private function removeLoadingListeners():void
+    {
+        if (loadingContent)
+        {
+            loadingContent.removeEventListener(Event.COMPLETE,
+                loader_completeHandler);
+            loadingContent.removeEventListener(IOErrorEvent.IO_ERROR,
+                loader_ioErrorHandler);
+            loadingContent.removeEventListener(ProgressEvent.PROGRESS,
+                loader_progressHandler);
+            loadingContent.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,
+                loader_securityErrorHandler);
+            loadingContent.removeEventListener(HTTPStatusEvent.HTTP_STATUS,
+                dispatchEvent);
+        }
     }

     //--------------------------------------------------------------------------
@@ -1355,7 +1434,7 @@
     /**
      *  @private
      */
-	mx_internal function loader_completeHandler(event:Event):void
+    mx_internal function loader_completeHandler(event:Event):void
     {
         try
         {
@@ -1372,38 +1451,44 @@
         {
             handleSecurityError(error);
         }
-
-		dispatchEvent(event);
-    }
-
-    /**
-     *  @private
-     */
-	private function loader_ioErrorHandler(error:IOErrorEvent):void
-    {
-        // clear any current image
+
+        dispatchEvent(event);
+
+        // Remove any event listeners from load-event dispatcher.
+        clearLoadingContent();
+    }
+
+    /**
+     *  @private
+     */
+    private function loader_ioErrorHandler(error:IOErrorEvent):void
+    {
+        // forward the event, only in the case of a listener, else
+        // an RTE will occur.
+        if (hasEventListener(error.type))
+            dispatchEvent(error);
+
+        // clear any current image and remove any event listeners from
+        // load-event  dispatcher.
         setBitmapData(null);
-
-		// forward the event, only in the case of a listener, else
-		// an RTE will occur.
-		if (hasEventListener(error.type))
-			dispatchEvent(error);
-    }
-
-    /**
-     *  @private
-     */
-	private function loader_securityErrorHandler(error:SecurityErrorEvent):void
-    {
-        // clear any current image and forward the error.
+    }
+
+    /**
+     *  @private
+     */
+    private function loader_securityErrorHandler(error:SecurityErrorEvent):void
+    {
+        dispatchEvent(error);
+
+        // clear any current image and remove any event listeners from
+        // load-event  dispatcher.
         setBitmapData(null);
-        dispatchEvent(error);
-    }
-
-    /**
-     *  @private
-     */
-	private function loader_progressHandler(progressEvent:ProgressEvent):void
+    }
+
+    /**
+     *  @private
+     */
+    private function loader_progressHandler(progressEvent:ProgressEvent):void
     {
         _bytesLoaded = progressEvent.bytesLoaded;
         _bytesTotal = progressEvent.bytesTotal;
@@ -1417,9 +1502,12 @@
      */
     private function handleSecurityError(error:SecurityError):void
     {
-        setBitmapData(null);
         dispatchEvent(new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR,
             false, false, error.message));
+
+        // clear any current image and remove any event listeners from
+        // load-event  dispatcher.
+        setBitmapData(null);
     }
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 11247
Author:   klin@adobe.com
Date:     2009-10-28T21:59:11.963883Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-23184.

Updated a bunch of Style metadata ASDocs to describe different defaults between the Halo and Spark themes. Also, fixed a few typos along the way.

defaults.css - rearranged a few styles to be in alphabetical order
Button.as - removed extra emphasizedSkin style metadata
Panel.as - added spark theme to borderAlpha metadata

QE notes: None
Doc notes: None
Bugs: SDK-23184
Reviewer: Glenn
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerNative.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.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/styles/metadata/TextStyles.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/LinkButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpMenuIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/PaddingStyles.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/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/GapStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/fl/video/NCManagerDynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/FocusStyles.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/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>

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

--- frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as
@@ -60,7 +60,9 @@

 /**
  *  Text color of a component label.
- *  The default value is 0x0B333C.
+ *
+ *  The default value for the Halo theme is 0x0B333C.
+ *  The default value for the Spark theme is 0x000000.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -73,7 +75,6 @@
  *  Color of the component if it is disabled.
  *  The default value is 0xAAB3B3.
  *
- *
  *  @langversion 3.0
  *  @playerversion Flash 9
  *  @playerversion AIR 1.1


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

--- frameworks/projects/automation/src/mx/automation/events/AutomationDragEvent.as
+++ frameworks/projects/automation/src/mx/automation/events/AutomationDragEvent.as
@@ -0,0 +1,288 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.events
+{
+
+	import flash.events.Event;
+	import flash.events.MouseEvent;
+	import mx.automation.IAutomationObject;
+	import mx.core.IUIComponent;
+
+	/**
+	 *  The AutomationDragEvent class represents event objects that are
+	 *  dispatched as part of a drag-and-drop operation.
+	 *
+	 *  @see mx.managers.DragManager
+	 *  @see mx.core.UIComponent
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class AutomationDragEvent extends MouseEvent
+	{
+		include "../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class constants
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Defines the value of the
+		 *  type property of the event object for a dragComplete event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
altKey
+		 *         Indicates whether the Alt key is down
+		 *            (true) or not (false).

+		 *
action	The action that caused the event:
+		 *       DragManager.COPY, DragManager.LINK,
+		 *       DragManager.MOVE, or DragManager.NONE.

+		 *
bubbles	false

+		 *
cancelable	true

+		 *
ctrlKey
+		 *         Indicates whether the Control key is down
+		 *            (true) or not (false).

+		 *
currentTarget	The object that defines the
+		 *       event listener that handles the event. For example, if you use
+		 *       myButton.addEventListener() to register an event listener,
+		 *       myButton is the value of currentTarget.

+		 *
draggedItem	The item being dragged.

+		 *
dropParent	The object that
+		 *       parents the item that was dropped.

+		 *
shiftKey
+		 *         Indicates whether the Shift key is down
+		 *            (true) or not (false).

+		 *
target	The object that dispatched the event;
+		 *       it is not always the object that listens for the event.
+		 *       Use the currentTarget property to always access the
+		 *       object listening for the event.

+		 *

+		 *
+		 *  @eventType dragComplete
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const DRAG_COMPLETE:String = "dragComplete";
+
+		/**
+		 *  Defines the value of the
+		 *  type property of the event object for a dragDrop event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
altKey
+		 *         Indicates whether the Alt key is down
+		 *            (true) or not (false).

+		 *
action	The action that caused the event:
+		 *       DragManager.COPY, DragManager.LINK,
+		 *       DragManager.MOVE, or DragManager.NONE.

+		 *
bubbles	false

+		 *
cancelable	true

+		 *
ctrlKey
+		 *         Indicates whether the Control key is down
+		 *            (true) or not (false).

+		 *
currentTarget	The object that defines the
+		 *       event listener that handles the event. For example, if you use
+		 *       myButton.addEventListener() to register an event listener,
+		 *       myButton is the value of currentTarget.

+		 *
draggedItem	The item being dragged.

+		 *
dropParent	The object that
+		 *       parents the item that was dropped.

+		 *
shiftKey
+		 *         Indicates whether the Shift key is down
+		 *            (true) or not (false).

+		 *
target	The object that dispatched the event;
+		 *       it is not always the object that listens for the event.
+		 *       Use the currentTarget property to always access the
+		 *       object that is listening for the event.

+		 *

+		 *
+		 *  @eventType dragDrop
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const DRAG_DROP:String = "dragDrop";
+
+		/**
+		 *  Defines the value of the
+		 *  type property of the event object for a dragStart event.
+		 *
+		 *
The properties of the event object have the following values:

+		 *

+		 *
Property	Value

+		 *
altKey
+		 *         Indicates whether the Alt key is down
+		 *            (true) or not (false).

+		 *
action	The action that caused the event:
+		 *       DragManager.COPY, DragManager.LINK,
+		 *       DragManager.MOVE, or DragManager.NONE.

+		 *
bubbles	false

+		 *
cancelable	true

+		 *
ctrlKey
+		 *         Indicates whether the Control key is down
+		 *            (true) or not (false).

+		 *
currentTarget	The object that defines the
+		 *       event listener that handles the event. For example, if you use
+		 *       myButton.addEventListener() to register an event listener,
+		 *       myButton is the value of currentTarget.

+		 *
draggedItem	The item being dragged.

+		 *
dropParent	The object that
+		 *       parents the item that was dropped.

+		 *
shiftKey
+		 *         Indicates whether the Shift key is down
+		 *            (true) or not (false).

+		 *
target	The object that dispatched the event;
+		 *       it is not always the object that listens for the event.
+		 *       Use the currentTarget property to always access the
+		 *       object that is listening for the event.

+		 *

+		 *
+		 *  @eventType dragStart
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static const DRAG_START:String = "dragStart";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 *  Normally called by the Flex control and not used in application code.
+		 *
+		 *  @param type The event type; indicates the action that caused the event.
+		 *
+		 *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+		 *
+		 *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+		 *
+		 *  @param action The specified drop action, such as DragManager.MOVE.
+		 *
+		 *  @param ctrlKey Indicates whether the Control key was pressed.
+		 *
+		 *  @param altKey Indicates whether the Alt key was pressed.
+		 *
+		 *  @param shiftKey Indicates whether the Shift key was pressed.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function AutomationDragEvent(type:String, bubbles:Boolean = false,
+											cancelable:Boolean = true,
+											action:String = null,
+											ctrlKey:Boolean = false,
+											altKey:Boolean = false,
+											shiftKey:Boolean = false)
+		{
+			super(type, bubbles, cancelable);
+
+			this.action = action;
+			this.ctrlKey = ctrlKey;
+			this.altKey = altKey;
+			this.shiftKey = shiftKey;
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  action
+		//----------------------------------
+
+		/**
+		 *  The requested action.
+		 *  One of DragManager.COPY, DragManager.LINK,
+		 *  DragManager.MOVE, or DragManager.NONE.
+		 *
+		 *  @see mx.managers.DragManager
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var action:String;
+
+		//----------------------------------
+		//  draggedItem
+		//----------------------------------
+
+		/**
+		 *  Contains the child IAutomationObject object that is being dragged.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var draggedItem:IAutomationObject;
+
+
+		/**
+		 *  The IAutomationObject object that is the parent of the dropped item.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var dropParent:IAutomationObject;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods: Event
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function clone():Event
+		{
+			var cloneEvent:AutomationDragEvent = new AutomationDragEvent(type, bubbles, cancelable,
+				action, ctrlKey,
+				altKey, shiftKey);
+
+			// Set relevant MouseEvent properties.
+			cloneEvent.relatedObject = this.relatedObject;
+			cloneEvent.localX = this.localX;
+			cloneEvent.localY = this.localY;
+
+			return cloneEvent;
+		}
+	}
+
+}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

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

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

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


z-order by color data instead of rgb values

Change-Id: Idae5e6fbcffa7f2c370d4001d5aa868ff471cb25

--- WeaveUISpark/src/weave/visualization/plotters/ParallelCoordinatesPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/ParallelCoordinatesPlotter.as
@@ -25,26 +25,30 @@
 	import flash.utils.Dictionary;

 	import weave.Weave;
-	import weave.WeaveProperties;
 	import weave.api.WeaveAPI;
 	import weave.api.data.ColumnMetadata;
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IColumnStatistics;
 	import weave.api.data.IQualifiedKey;
 	import weave.api.data.ISimpleGeometry;
+	import weave.api.getCallbackCollection;
 	import weave.api.newDisposableChild;
 	import weave.api.newLinkableChild;
 	import weave.api.primitives.IBounds2D;
 	import weave.api.registerLinkableChild;
 	import weave.api.setSessionState;
 	import weave.api.ui.IPlotterWithGeometries;
+	import weave.core.CallbackJuggler;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableHashMap;
 	import weave.core.LinkableNumber;
 	import weave.core.LinkableString;
 	import weave.data.AttributeColumns.AlwaysDefinedColumn;
+	import weave.data.AttributeColumns.BinnedColumn;
+	import weave.data.AttributeColumns.ColorColumn;
 	import weave.data.AttributeColumns.DynamicColumn;
 	import weave.data.AttributeColumns.EquationColumn;
+	import weave.data.AttributeColumns.FilteredColumn;
 	import weave.data.KeySets.KeySet;
 	import weave.primitives.GeometryType;
 	import weave.primitives.SimpleGeometry;
@@ -76,7 +80,11 @@
 			columns.childListCallbacks.addImmediateCallback(this, handleColumnsListChange);
 			xColumns.childListCallbacks.addImmediateCallback(this,handleColumnsListChange);

-			updateFilterEquationColumns(); // sets key source
+
+			lineStyle.color.internalDynamicColumn.addImmediateCallback(this, handleColor, true);
+			getCallbackCollection(colorDataJuggler).addImmediateCallback(this, updateFilterEquationColumns, true);
+
+			// updateFilterEquationColumns sets key source
 		}
 		private function handleColumnsListChange():void
 		{
@@ -125,6 +133,15 @@

 		private var _columns:Array = [];
 		private var _xattrObjects:Array = [];
+
+		private const colorDataJuggler:CallbackJuggler = newDisposableChild(this, CallbackJuggler);
+		private function handleColor():void
+		{
+			var cc:ColorColumn = lineStyle.color.getInternalColumn() as ColorColumn;
+			var bc:BinnedColumn = cc ? cc.getInternalColumn() as BinnedColumn : null;
+			var fc:FilteredColumn = bc ? bc.getInternalColumn() as FilteredColumn : null;
+			colorDataJuggler.target = fc ? fc.internalDynamicColumn : null;
+		}

 		public function getXValues():Array
 		{


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

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

 package mx.collections
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8458
Author:   smgilson@adobe.com
Date:     2009-07-08T18:35:15.696955Z

Log Message:
-----------
- Hide AdvancedLayoutFeatures.as from ASDoc
- ASDoc updates for IVisualElementContainer.as, UIComponent.as, IUIComponet
- Delete old ASDoc example and add a new one for RichEditableText.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/TextViewExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.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/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElementContainer.as
+++ frameworks/projects/framework/src/mx/core/IVisualElementContainer.as
@@ -113,7 +113,7 @@
      *
      *  @return The element that was added.
      *
-     *  @event elementAdded ElementExistenceChangedEvent Dispatched when
+     *  @event elementAdd ElementExistenceChangedEvent Dispatched when
      *  the element is added to the child list.
      *
      *  @throws ArgumentError If the element is the same as the container.


Transferred from the Adobe Open Source Subversion Repository

Revision: 21923
Author:   jasonsj@adobe.com
Date:     2011-08-10T22:26:59.534729Z

Log Message:
-----------
Callout and CalloutButton design view icons

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

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.png</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -33,6 +33,11 @@

 use namespace mx_internal;

+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[IconFile("Callout.png")]

 /**
  *  The Callout class is a SkinnablePopUpContainer that functions as a pop-up


- change: enabled overriding the default css location in Application by specifying a public static property called 'CSS_URL'. If set to null or '', no stylesheet is loaded at all

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@516 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/core/Application.as
+++ src/reprise/core/Application.as
@@ -156,16 +156,15 @@
 		}
 		protected function loadDefaultResources() : void
 		{
-			if (hasOwnProperty('cssURL') && this['cssURL'] == null)
+			//don't load default stylesheet if the actual application class has a CSS_URL property
+			//that's set to null or an empty string
+			if (Object(this).constructor.hasOwnProperty('CSS_URL') &&
+				!Object(this).constructor['CSS_URL'])
 			{
 				return;
 			}
-			var cssURL:String = CSS_URL;
-			if (hasOwnProperty('cssURL'))
-			{
-				cssURL = this['cssURL'];
-			}
-			cssURL = stage.loaderInfo.parameters.css_url || cssURL;
+			var cssURL:String = stage.loaderInfo.parameters.css_url ||
+				Object(this).constructor['CSS_URL'] || CSS_URL;
 			m_css = new CSS(cssURL);
 			m_css.setBaseURL(applicationURL());
 			addResource(m_css);


 - fixed
 	Slider never stopped thumb animation.

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@779 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/controls/Slider.as
+++ src/reprise/controls/Slider.as
@@ -215,7 +215,8 @@
 			if (m_animatesChange && (!m_isDragging || m_allowsTickMarkValuesOnly))
 			{
 				var diff:Number = (pos - thumbPosition) * m_animationFriction;
-				if (Math.abs(diff) > 0.05)
+
+				if (Math.abs(diff) > 0.7)
 				{
 					pos = thumbPosition + diff;
 					addFrameListener();


A Shape is lighter than a Sprite.

A Shape is lighter than a Sprite.

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

--- src/as/com/threerings/flex/ScrollBox.as
+++ src/as/com/threerings/flex/ScrollBox.as
@@ -23,6 +23,7 @@

 import flash.display.DisplayObject;
 import flash.display.Graphics;
+import flash.display.Shape;
 import flash.display.Sprite;

 import flash.events.Event;
@@ -47,7 +48,7 @@

         opaqueBackground = 0xFFFFFF;

-        _mask = new Sprite();
+        _mask = new Shape();
         rawChildren.addChild(_mask);
         this.mask = _mask;

@@ -170,7 +171,7 @@
     protected var _maxHeight :int;

     protected var _box :Sprite;
-    protected var _mask :Sprite;
+    protected var _mask :Shape;

     protected var _scale :Number;


added support for DKAN

added support for DKAN

Change-Id: I7c24555ae24839a9276054ac7a4dd25b0cb1044d

--- WeaveData/src/weave/data/DataSources/CKANDataSource.as
+++ WeaveData/src/weave/data/DataSources/CKANDataSource.as
@@ -262,6 +262,7 @@
 	public static const PACKAGE_SHOW:String = 'package_show';
 	public static const GROUP_LIST:String = 'group_list';
 	public static const GROUP_SHOW:String = 'group_show';
+	public static const GROUP_PACKAGE_SHOW:String = 'group_package_show';
 	public static const TAG_LIST:String = 'tag_list';
 	public static const TAG_SHOW:String = 'tag_show';
 	public static const DATASTORE_SEARCH:String = 'datastore_search';
@@ -300,7 +301,7 @@
 	{
 		if (detectLinkableObjectChange(this, source.url, source.apiVersion, source.useHttpPost))
 		{
-			if ([PACKAGE_LIST, PACKAGE_SHOW, GROUP_LIST, GROUP_SHOW, TAG_LIST, TAG_SHOW, DATASTORE_SEARCH].indexOf(action) >= 0)
+			if ([PACKAGE_LIST, PACKAGE_SHOW, GROUP_LIST, GROUP_SHOW, GROUP_PACKAGE_SHOW, TAG_LIST, TAG_SHOW, DATASTORE_SEARCH].indexOf(action) >= 0)
 			{
 				// make CKAN API request
 				_result = {};
@@ -397,6 +398,10 @@
 			reportError("CKAN action failed: " + this.toString() + "; error=" + Compiler.stringify(error));
 		}

+		// hack to support DKAN
+		if (action == PACKAGE_SHOW && _result is Array && _result.length == 1)
+			_result = _result[0];
+
 		if (resultHandler != null)
 			resultHandler(_result);
 	}
@@ -458,14 +463,28 @@
 		if (action == TAG_LIST)
 			return lang("Tags");

-		if (action == PACKAGE_SHOW || action == GROUP_SHOW || action == TAG_SHOW)
-			return metadata['display_name'] || metadata['name'] || metadata['description'] || metadata['url']
-				|| (result is String ? result as String : (result['title'] || result['display_name'] || result['name']))
+		if (action == PACKAGE_SHOW || action == GROUP_SHOW || action == GROUP_PACKAGE_SHOW || action == TAG_SHOW)
+			return metadata['display_name']
+				|| metadata['name']
+				|| metadata['title']
+				|| metadata['description']
+				|| metadata['url']
+				|| (result is String
+					? result as String
+					: (result['title'] || result['display_name'] || result['name']))
 				|| params['id'];

 		if (action == GET_DATASOURCE || action == DATASTORE_SEARCH)
 		{
-			var str:String = metadata['name'] || metadata['description'] || metadata['url'] || metadata['id'];
+			var str:String = metadata['name']
+				|| metadata['title']
+				|| metadata['description']
+				|| metadata['url']
+				|| metadata['id'];
+
+			// hack to support DKAN
+			if (!metadata['format'] && metadata['mimetype'] == 'text/csv')
+				metadata['format'] = 'csv';

 			// also display the format
 			if (metadata['format'])
@@ -494,7 +513,7 @@
 		if (internalNode)
 			return internalNode.hasChildBranches();

-		if (action == PACKAGE_SHOW)
+		if (action == PACKAGE_SHOW || action == GROUP_PACKAGE_SHOW)
 			return getChildren().length > 0;
 		if (action == GROUP_SHOW || action == TAG_SHOW)
 		{
@@ -569,7 +588,7 @@
 				if (action == PACKAGE_LIST || action == TAG_SHOW)
 					node.action = PACKAGE_SHOW;
 				if (action == GROUP_LIST)
-					node.action = GROUP_SHOW;
+					node.action = GROUP_PACKAGE_SHOW;
 				if (action == TAG_LIST)
 					node.action = TAG_SHOW;
 				node.metadata = node.params = {"id": id};
@@ -578,15 +597,20 @@
 		if (action == GROUP_LIST || action == TAG_LIST)
 			return updateChildren(result as Array, function(node:CKANAction, meta:Object):void {
 				if (action == GROUP_LIST)
-					node.action = GROUP_SHOW;
+					node.action = GROUP_PACKAGE_SHOW;
 				if (action == TAG_LIST)
 					node.action = TAG_SHOW;
 				node.metadata = meta;
+
+				// hack to support DKAN
+				if (!meta['id'] && meta['uuid'])
+					meta['id'] = meta['uuid'];
+
 				node.params = {"id": meta['id']};
 			});

-		if ((action == GROUP_SHOW || action == TAG_SHOW) && result.hasOwnProperty('packages'))
-			return updateChildren(result['packages'], function(node:CKANAction, pkg:Object):void {
+		if (result && (action == GROUP_SHOW || action == GROUP_PACKAGE_SHOW || action == TAG_SHOW))
+			return updateChildren(result as Array || result['packages'], function(node:CKANAction, pkg:Object):void {
 				if (pkg is String)
 					pkg = {"id": pkg};
 				node.action = PACKAGE_SHOW;


adjust default TextInput width

adjust default TextInput width

--- frameworks/projects/HTML/as/src/org/apache/flex/html/beads/TextInputView.as
+++ frameworks/projects/HTML/as/src/org/apache/flex/html/beads/TextInputView.as
@@ -70,20 +70,23 @@

             var w:Number;
             var h:Number;
+            var uiMetrics:UIMetrics;
             var ilc:ILayoutChild = host as ILayoutChild;
             if (ilc.isWidthSizedToContent())
             {
+                uiMetrics = BeadMetrics.getMetrics(host);
                 // use default width of 20
                 var s:String = textField.text;
                 textField.text = "0";
                 w = textField.textWidth * 20;
                 h = textField.textHeight;
                 textField.text = s;
-                ilc.setWidth(w, true);
+                ilc.setWidth(w + uiMetrics.left + uiMetrics.right, true);
             }
             if (ilc.isHeightSizedToContent())
             {
-                var uiMetrics:UIMetrics = BeadMetrics.getMetrics(host);
+                if (!uiMetrics)
+                    uiMetrics = BeadMetrics.getMetrics(host);
                 if (isNaN(h))
                 {
                     s = textField.text;


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

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

 package spark.components.supportClasses
 {


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

--- frameworks/projects/mx/src/mx/skins/halo/DateChooserMonthArrowSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/DateChooserMonthArrowSkin.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.skins.halo
 {


Reuse the ARGB buffer

Reuse the ARGB buffer

--- src/OgvCodec.as
+++ src/OgvCodec.as
@@ -43,6 +43,7 @@
         private var _videoInfo:Object = null;
         private var _frameReady:Boolean = false;
         private var _queuedFrame:Object = null;
+        private var _bytesARGB:ByteArray = null;

         // Public callbacks
         // @todo clean up this interface
@@ -182,7 +183,13 @@
                 throw new Error("called dequeueFrame when no frame ready");
             }
         }
-
+
+        /**
+         * @param yCbCrBuffer dequeued frame info structure
+         * @return ByteArray full of ARGB pixels ready to be drawn
+         *
+         * Warning: the buffer will be reused.
+         */
         public function convertYCbCr(yCbCrBuffer:Object):ByteArray {
             var bufferARGB:int = OgvSwfConvertYCbCr(
                 yCbCrBuffer.bufferY, yCbCrBuffer.bufferCb, yCbCrBuffer.bufferCr,
@@ -190,9 +197,12 @@
                 yCbCrBuffer.width, yCbCrBuffer.height,
                 yCbCrBuffer.hdec, yCbCrBuffer.vdec
             );
-            var bytesARGB:ByteArray = extractBuffer(bufferARGB, yCbCrBuffer.width * yCbCrBuffer.height * 4);
-            bytesARGB.endian = Endian.BIG_ENDIAN; // Switch the endian back or it'll get byte-swapped later
-            return bytesARGB;
+
+            _bytesARGB.position = 0;
+            CModule.readBytes(bufferARGB, yCbCrBuffer.width * yCbCrBuffer.height * 4, _bytesARGB);
+            _bytesARGB.position = 0;
+
+            return _bytesARGB;
         }

         /**
@@ -255,6 +265,8 @@
         private function initVideoCallback(info:Object):void {
             _hasVideo = true;
             _videoInfo = info;
+            _bytesARGB = new ByteArray();
+            _bytesARGB.length = info.width * info.height * 4;
             if (oninitvideo != null) {
                 oninitvideo(_videoInfo);
             }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/Singleton.as
+++ frameworks/projects/framework/src/mx/core/Singleton.as
@@ -0,0 +1,117 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  This all-static class serves as a singleton registry.
+ *
+ *  For example, pop-up management throughout a Flex application
+ *  is provided by a single instance of the PopUpManagerImpl class,
+ *  even when the main application loads modules and sub-applications
+ *  each of which might have PopUpManagerImpl linked in.
+ *
+ *  The factory class for a framework-based application
+ *  or a module (i.e., SystemManager or FlexModuleFactory,
+ *  both of which implements IFlexModuleFactory) calls
+ *  the registerClass() method to populate the registry.
+ *
+ *  Later, other classes call getInstance() to access
+ *  the singleton instance.
+ *
+ *  The registry policy is "first class in wins".
+ *  For example, if the main application registers its
+ *  PopUpManagerImpl, then a loaded SWF will use that one.
+ *  However, if the main application doesn't contain
+ *  a PopUpManagerImpl, then it registers null,
+ *  and the first loaded SWF containing a PopUpManagerImpl
+ *  will register that one.
+ */
+public class Singleton
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+	 *  A map of fully-qualified interface names,
+	 *  such as "mx.managers::IPopUpManager",
+	 *  to implementation classes which produce singleton instances,
+	 *  such as mx.managers.PopUpManagerImpl.
+     */
+    private static var classMap:Object = {};
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+	 *  Adds an interface-name-to-implementation-class mapping to the registry,
+	 *  if a class hasn't already been registered for the specified interface.
+	 *  The class must implement a getInstance() method which returns
+	 *  its singleton instance.
+     */
+    public static function registerClass(interfaceName:String,
+										 clazz:Class):void
+    {
+        var c:Class = classMap[interfaceName];
+		if (!c)
+            classMap[interfaceName] = clazz;
+    }
+
+    /**
+     *  @private
+	 *  Returns the implementation class registered for the specified
+	 *  interface, or null if no class has been registered for that interface.
+	 *
+	 *  This method should not be called at static initialization time,
+	 *  because the factory class may not have called registerClass() yet.
+     */
+    public static function getClass(interfaceName:String):Class
+    {
+        return classMap[interfaceName];
+    }
+
+    /**
+     *  @private
+	 *  Returns the singleton instance of the implementation class
+	 *  that was registered for the specified interface,
+	 *  by looking up the class in the registry
+	 *  and calling its getInstance() method.
+	 *
+	 *  This method should not be called at static initialization time,
+	 *  because the factory class may not have called registerClass() yet.
+     */
+    public static function getInstance(interfaceName:String):Object
+    {
+        var c:Class = classMap[interfaceName];
+		if (!c)
+		{
+			throw new Error("No class registered for interface '" +
+							interfaceName + "'.");
+		}
+		return c["getInstance"]();
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 16064
Author:   chaase@adobe.com
Date:     2010-05-12T15:37:49.345162Z

Log Message:
-----------
Initial checkin of "true autoReverse" feature. This feature adds no new API, but does add new behavior to the existing autoReverse property on Transition. Now, if autoReverse="true", any transition declared from/to the opposite states of the currently-requested state change can be used as a transition for this state change, played in reverse. This essentially means that you can author a single reverse for a forward direction and have the system play that transition in reverse for the opposite direction. Previously, you needed to author both directions, and take care to make them symmetric, in order to get them to play correctly when reversing in the middle. Note that if you author a *-to-* Transition (any to any), the new reversing behavior does nothing for you, because there is no way for the system to detect the forward (and thus the reverse) direction, so that transition will always play in the declared direction.
The main functionality needed to get this working was bolstering the currentSupport for playReversedFromEnd that already existed in Effect (along with the playReversed functionality in effect instances). There was also some timing engine details in Animation to make it work correctly, especially with startDelay.
Some work was done to make Fade work correctly when playing in reverse, though there is still a problem with some of the auto-fade functionality (fading items because of visible/parent changes between states) when the Fade effect has a startDelay.

QE notes: Tested on existing effects tests to make sure new behavior didn't break anything. But need new tests specifically around this new behavior.
Doc notes: Added new docs to Transition.autoReverse to describe the new behavior
Bugs: None
Reviewer: Corey
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/framework/src/mx/effects/Effect.as</path>
<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/Animate.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/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -301,6 +301,12 @@
      */
     mx_internal var propertyChangesArray:Array;

+    /**
+     *  @private
+     *  Track the property set in the play() function
+     */
+    mx_internal var playReversed:Boolean;
+
     private var effectStopped:Boolean;

     /**
@@ -1192,6 +1198,7 @@
     {
         effectStopped = false;
         isPaused = false;
+        playReversed = playReversedFromEnd;

         // If we have a propertyChangesArray, capture the current values
         // if they haven't been captured already, strip out any unchanged
@@ -1211,6 +1218,15 @@
             applyStartValues(propertyChangesArray,
                              this.targets);

+            if (playReversedFromEnd)
+            {
+                for (var j:int = 0; j < propertyChangesArray.length; ++j)
+                {
+                    var tmpStart:Object = propertyChangesArray[j].start;
+                    propertyChangesArray[j].start = propertyChangesArray[j].end;
+                    propertyChangesArray[j].end = tmpStart;
+                }
+            }
             // Revalidate after applying the start values, to get everything
             // back the way it should be before starting the animation
             LayoutManager.getInstance().validateNow();
@@ -1820,6 +1836,15 @@
      */
     protected function effectEndHandler(event:EffectEvent):void
     {
+        if (playReversed && propertyChangesArray != null)
+        {
+            for (var j:int = 0; j < propertyChangesArray.length; ++j)
+            {
+                var tmpStart:Object = propertyChangesArray[j].start;
+                propertyChangesArray[j].start = propertyChangesArray[j].end;
+                propertyChangesArray[j].end = tmpStart;
+            }
+        }
         var lastTime:Boolean = !_instances || _instances.length == 1;

         // Transitions should set the end values when done


Transferred from the Adobe Open Source Subversion Repository

Revision: 2805
Author:   chaase@adobe.com
Date:     2008-08-11T20:37:18.700675Z

Log Message:
-----------
First checkin for the "Arbitrary Type Interpolation" feature. This feature has a rewritten Tween class (now named flex.effects.Animation). This class supports the old Tween capabilities, but adds functionality such as the ability to supply alternate interpolation objects (to allow animation of non-Number types), a new Easing API, and new 'repeat behavior' that will allow terser looping or reversing animations. The existing new effects were slightly changed to use the new Animation class (instead of Tween), and the superclass of the new effects, AnimateProperties (renamed 'Animate'), is now a subclass of Effect (not TweenEffect).

Added various new interpolation and easing classes, along with the new packages flex.effects.interpolation and flex.effects.easing. Also added new color-interpolation effect, 'Tint'.

Expect slight tweaks to the API during i7, but the bulk of the functionality and API changes are being checked in now.

Reviewed by Jason S.
Testing: checkintests & mustella tests/Effects (passed)

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Fade.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Constant.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Power.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ColorInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/TintInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/IEaser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Tint.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Move.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/AnimationEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -736,7 +736,7 @@
         // Strip out null values.
         // Binding will trigger again when the null targets are created.
         var n:int = value.length;
-        for (var i:int = n - 1; i > 0; i--)
+        for (var i:int = n - 1; i >= 0; i--)
         {
             if (value[i] == null)
                 value.splice(i,1);


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

--- frameworks/projects/framework/src/mx/geom/Transform.as
+++ frameworks/projects/framework/src/mx/geom/Transform.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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
+//
+//      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: 7918
Author:   chaase@adobe.com
Date:     2009-06-17T16:55:30.271215Z

Log Message:
-----------
Round 2 of effects PARB changes. Some renames and removals of properties/functions, including:
AnimateTransform: removed 18 MotionPath properties, added applyChangesPostLayout property (replaces affectLayout property in subclasses), removed addMotionPath/addPostLayoutMotionPath protected functions
Animation: removed seek(), reverse()
SimpleMotionPath: removed 'duration' arg in constructor

QE Notes: Mustella will break on some of these changes (no surprise, just needs minor updates)
Doc Notes: API updates
Bugs: none
Reviewer: Jason
Tests: checkintests

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/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.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/Scale3D.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/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Scale3D.as
+++ frameworks/projects/spark/src/spark/effects/Scale3D.as
@@ -11,9 +11,18 @@

 package spark.effects
 {
+import mx.core.mx_internal;
 import mx.effects.IEffectInstance;

 import spark.effects.supportClasses.AnimateTransformInstance;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="motionPaths", kind="property")]

 /**
  *  The Scale3D class scales a target object
@@ -40,6 +49,7 @@
  *  <mx:Scale3D
  *    <b>Properties</b>
  *    id="ID"
+ *    applyChangesPostLayout="true"
  *    scaleZBy="no default"
  *    scaleZFrom="no default"
  *    scaleZTo="no default"
@@ -69,7 +79,7 @@
     {
         super(target);
         applyLocalProjection = true;
-        affectLayout = false;
+        applyChangesPostLayout = true;
     }

     //--------------------------------------------------------------------------
@@ -78,6 +88,27 @@
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    //  applyChangesPostLayout
+    //----------------------------------
+    [Inspectable(category="General")]
+    /**
+     *  @copy AnimateTransform#applyChangesPostLayout
+     *  The default value for this property is true for 3D effects,
+     *  because the Flex layout system ignores 3D transformation properties.
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function get applyChangesPostLayout():Boolean
+    {
+        return super.applyChangesPostLayout;
+    }
+
     //----------------------------------
     //  scaleZFrom
     //----------------------------------
@@ -143,7 +174,7 @@
      */
     override protected function initInstance(instance:IEffectInstance):void
     {
-        if(affectLayout)
+        if (!applyChangesPostLayout)
         {
            addMotionPath("scaleZ", scaleZFrom, scaleZTo, scaleZBy);
         }


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 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@1281838 13f79535-47bb-0310-9956-ffa450edef68

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