Transferred from the Adobe Open Source Subversion Repository

Revision: 3308
Author:   jvroom@adobe.com
Date:     2008-09-23T03:19:51.589238Z

Log Message:
-----------
QE: yes - method on HTTPMultiService fixed
          HTTPMultiService.rootURL -> baseURL - it is interpreted as a directory name, not a file name like rootURL
          endpoint now works on mx.rpc.remoting.RemoteObject (not just the mxml variant)
          also promoted concurrency and showBusyCursor to RemoteObject
          removed RTE from getOperation for HTTPMultiService as it messes with data binding expressions eval'd before the operation is added
Docs:     properties above moved from mxml.RemoteObject to RemoteObject, ASdoc changes for HTTPMultiService
Blazeds checkintests pass
Reviewer: Pete

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -168,7 +168,14 @@
      *  OPTIONS, PUT, TRACE and DELETE.
      *  Lowercase letters are converted to uppercase letters. The default value is GET.
      */
-    public var method:String = HTTPRequestMessage.GET_METHOD;
+    public function get method():String
+    {
+        return _method;
+    }
+    public function set method(m:String):void
+    {
+        _method = m;
+    }

     [Inspectable(enumeration="multiple,single,last", defaultValue="multiple", category="General")]
     /**
@@ -961,6 +968,8 @@
     private static var _directChannelSet:ChannelSet;

     private var _concurrency:String;
+
+    private var _method:String = HTTPRequestMessage.GET_METHOD;

     private var _showBusyCursor:Boolean;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12062
Author:   smgilson@adobe.com
Date:     2009-11-20T20:27:52.148318Z

Log Message:
-----------
Fix for FLEXDOCS-1033 - hasFocusableChildren and tabChildren properties sound very similar, but only hasFocusableChildren works as expected, tabChildren is ignored

And a localization issue, FLEXDOCS-1119

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDisplayObjectContainerInterface.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
+++ frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as
@@ -46,8 +46,10 @@
  *
  *
The properties are marked bindable, but these properties
  *  do not actually do any change detection or send change events.
- *  They are changed as a whole by setting a whole new listData
- *  and the change event for that updates bindings.

+ *  The properties are changed as a whole by setting a new
+ *  value for the listData property.
+ *  The change event for the modification of
+ *  the listData property updates all bindings.

  *
  *  @see mx.controls.listClasses.IDropInListItemRenderer
  *
@@ -59,7 +61,7 @@

 public class BaseListData extends EventDispatcher
 {
-
+
     include "../../core/Version.as";

     //--------------------------------------------------------------------------
@@ -107,11 +109,11 @@
     //
     //--------------------------------------------------------------------------

-	//----------------------------------
+    //----------------------------------
     //  columnIndex
     //----------------------------------

-	[Bindable("__NoChangeEvent__")]
+    [Bindable("__NoChangeEvent__")]

     /**
      *  The index of the column of the List-based control relative
@@ -129,7 +131,7 @@
     //  label
     //----------------------------------

-	[Bindable("__NoChangeEvent__")]
+    [Bindable("__NoChangeEvent__")]

     /**
      *  The textual representation of the item data, based on the list class's
@@ -146,7 +148,7 @@
     //  owner
     //----------------------------------

-	[Bindable("__NoChangeEvent__")]
+    [Bindable("__NoChangeEvent__")]

     /**
      *  A reference to the list object that owns this item.
@@ -165,7 +167,7 @@
     //----------------------------------
     //  rowIndex
     //----------------------------------
-
+
     [Bindable("__NoChangeEvent__")]

     /**
@@ -196,7 +198,7 @@
      */
     private var _uid:String;

-	[Bindable("__NoChangeEvent__")]
+    [Bindable("__NoChangeEvent__")]

     /**
      *  The unique identifier for this item.


Transferred from the Adobe Open Source Subversion Repository

Revision: 17323
Author:   egeorgie@adobe.com
Date:     2010-08-13T23:00:14.511582Z

Log Message:
-----------
P-ARB updates to the Application, SplashScreen

QE notes:  None
Doc notes: None
Bugs: N/A
Reviewer: Glenn
Tests run: cyclone - mustlla
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as
+++ frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreen.as
@@ -68,7 +68,7 @@
      *  @private
      *  Minimum time for the image to be visible
      */
-    private var minimumDisplayTime:int = 1000;  // in ms
+    private var minimumDisplayTime:Number = 1000;  // in ms
     private var checkWaitTime:Boolean = false;  // obey minimumDisplayTime only valid if splashImage is valid
     private var displayTimeStart:int = -1;      // the start time of the image being displayed


Transferred from the Adobe Open Source Subversion Repository

Revision: 3321
Author:   hmuller@adobe.com
Date:     2008-09-23T21:21:31.020570Z

Log Message:
-----------
Created ILayout implementation LayoutBase and made it the base
class for the three existing layouts. LayoutBase defines the
following properties:

  target - the Group or DataGroup (GroupBase) that whose
  layout property is _this_ layout.

  verticalScrollPosition, horizontalScrollPosition - the
  origin of the target's scrollRect.  These properties were
  defined by GroupBase.

LayoutBase also adds some new protected methods:

  scrollPositionChanged() - called when the
  vertical,horizontalScrollPosition properties change.

  updateScrollRect() - syncs the scrollRect with the
  vertical,horizontalScrollPosition properties

  invalidateTargetSizeAndDisplayList() - convenience
  method that calls invalidateSize,DisplayList().

LayoutBase also defines empty implementations of measure
and updateDisplayList.

GroupBase now delegates vertical,horizontalScrollPosition
to its layout and redispatches the layout's propertyChange
events for these properties.

QE: No
Doc: No
Checkintests: Pass
Reviewer: Evtim
Bugs:
   SDK-17002 -  includeInLayout no longer being respected

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Selector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/ILayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -11,6 +11,7 @@

 package flex.component
 {
+import flash.events.Event;

 import flex.events.FlexEvent;
 import flex.events.ItemExistenceChangedEvent;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5028
Author:   egeorgie@adobe.com
Date:     2009-02-21T00:02:17.627601Z

Log Message:
-----------
IGraphicElement interface clean-up and optimizations.
Animating a GraphicElement that doesn't share the Group's DO should be now faster and smoother since redrawing it won't redraw the Group anymore.

1. Group doesn't always clear the first sequence of display objects now
2. Moved the shared DO logic almost entirely into Group
3. More granular invalidation for GraphicElements

QE Notes: Make sure we have test that count the number of display objects for a given set of graphic elements and a group
Doc Notes:
Bugs: None
Reviewer: Glenn, Ryan, Jason
tests: None

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/ISharedGraphicsDisplayObject.as</path>

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

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

 import flash.display.DisplayObjectContainer;
 import flash.display.Graphics;
+import flash.display.DisplayObject;
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.geom.Rectangle;
@@ -149,21 +150,9 @@
     /**
      *  @private
      */
-    override public function get needsDisplayObject():Boolean
-    {
-        return true;
-    }
-
-    //----------------------------------
-    //  nextSiblingNeedsDisplayObject
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function get nextSiblingNeedsDisplayObject():Boolean
-    {
-        return true;
+    override public function canDrawToShared(sharedDisplayObject:DisplayObject):Boolean
+    {
+        return false;
     }

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


npc greetings now load correctly

npc greetings now load correctly

--- flexEditor/src/org/arisgames/editor/util/AppUtils.as
+++ flexEditor/src/org/arisgames/editor/util/AppUtils.as
@@ -313,7 +313,7 @@
             npc.npcId = data.npc_id;
             npc.name = data.name;
             npc.description = data.description;
-            npc.greeting = data.greeting;
+            npc.greeting = data.text;
             npc.mediaId = data.media_id;

             return npc;


Video playing without loop

Video playing without loop

--- src/Player.as
+++ src/Player.as
@@ -2,31 +2,69 @@

   import flash.display.Loader;
   import flash.display.Sprite;
-  import flash.text.TextField;
-  import flash.events.Event;
-  import flash.net.URLRequest;
-  import flash.events.IOErrorEvent;
-  import flash.events.SecurityErrorEvent;
   import flash.display.StageAlign;
   import flash.display.StageScaleMode;
+  import flash.events.Event;
+  import flash.media.Video;
+  import flash.text.TextField;
+  import flash.net.NetConnection;
+  import flash.net.NetStream;
+  import flash.net.URLRequest;
+  import flash.events.NetStatusEvent;

   public class Player extends Sprite {

+    private var position: uint = 0;
+
+    private var posterContainer: Sprite;
     private var poster: Loader;
+    private var video: Video;
+
+    private var connection: NetConnection;

     public function Player() {
       stage.align = StageAlign.TOP_LEFT;
       stage.scaleMode = StageScaleMode.NO_SCALE;

       loadPoster(loaderInfo.parameters.poster);
+      loadVideo(loaderInfo.parameters.video);
     }

     private function loadPoster(url: String): void {
+      posterContainer = new Sprite();
+      addChild(posterContainer);
+
       poster = new Loader();
       poster.contentLoaderInfo.addEventListener(Event.COMPLETE, function(): void {
-        addChild(poster);
+        posterContainer.addChild(poster);
       });
       poster.load(new URLRequest(url));
+    }
+
+    private function loadVideo(url: String): void {
+      connection = new NetConnection();
+      connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
+      connection.connect(null);
+    }
+
+    private function netStatusHandler(event: NetStatusEvent): void {
+      switch (event.info.code) {
+        case "NetConnection.Connect.Success": connectStream(); break;
+        case "NetStream.Play.StreamNotFound": break;
+      }
+    }
+
+    private function connectStream(): void {
+      video = new Video(stage.stageWidth, stage.stageHeight);
+      addChild(video);
+
+      posterContainer.visible = false;
+
+      var stream: NetStream = new NetStream(connection);
+      stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
+      video.attachNetStream(stream);
+
+      stream.play(loaderInfo.parameters.video);
     }

   }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7093
Author:   srahim@adobe.com
Date:     2009-05-19T22:29:04.235821Z

Log Message:
-----------
ASDoc updates
QE Notes: None
Doc Notes: None
Bugs: FLEXDOCS-831
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/filters/DropShadowFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/GlowFilter.as
+++ frameworks/projects/spark/src/spark/filters/GlowFilter.as
@@ -5,8 +5,96 @@
 import mx.filters.BaseDimensionFilter;
 import mx.filters.IBitmapFilter;

+/**
+ * The GlowFilter class lets you apply a glow effect to display objects.
+ * You have several options for the style of the
+ * glow, including inner or outer glow and knockout mode.
+ * The glow filter is similar to the drop shadow filter with the distance
+ * and angle properties of the drop shadow filter set to 0.
+ * You can apply the filter to any display object (that is, objects that inherit from the DisplayObject class),
+ * such as MovieClip, SimpleButton, TextField, and Video objects, as well as to BitmapData objects.
+ *
+ *
The use of filters depends on the object to which you apply the filter:

+ *

To apply filters to display objects, use the
+ * filters property (inherited from DisplayObject). Setting the filters
+ * property of an object does not modify the object, and you can remove the filter by clearing the
+ * filters property.

+ *
+ *
To apply filters to BitmapData objects, use the BitmapData.applyFilter() method.
+ * Calling applyFilter() on a BitmapData object takes the source BitmapData object
+ * and the filter object and generates a filtered image as a result.

+ *

+ *
+ *
If you apply a filter to a display object, the cacheAsBitmap property of the
+ * display object is set to true. If you clear all filters, the original value of
+ * cacheAsBitmap is restored.

+ *
+ *
This filter supports Stage scaling. However, it does not support general scaling, rotation, and
+ * skewing. If the object itself is scaled (if scaleX and scaleY are
+ * set to a value other than 1.0), the filter is not scaled. It is scaled only when the user zooms
+ * in on the Stage.

+ *
+ *
A filter is not applied if the resulting image exceeds the maximum dimensions.
+ * In  AIR 1.5 and Flash Player 10, the maximum is 8,191 pixels in width or height,
+ * and the total number of pixels cannot exceed 16,777,215 pixels. (So, if an image is 8,191 pixels
+ * wide, it can only be 2,048 pixels high.)
+ * For example, if you zoom in on a large movie clip with a filter applied, the filter is
+ * turned off if the resulting image exceeds the maximum dimensions.

+ *
+ * @see flash.display.BitmapData#applyFilter()
+ * @see flash.display.DisplayObject#filters
+ * @see flash.display.DisplayObject#cacheAsBitmap
+ * @see flash.display.DisplayObject#scaleX
+ * @see flash.display.DisplayObject#scaleY
+ * @see flash.filters.DropShadowFilter#distance
+ * @see flash.filters.DropShadowFilter#angle
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+
 public class GlowFilter extends BaseDimensionFilter implements IBitmapFilter
 {
+
+	/**
+	 * Constructor.
+	 *
+	 * @param color The color of the glow, in the hexadecimal format
+	 * 0xRRGGBB. The default value is 0xFF0000.
+	 * @param alpha The alpha transparency value for the color. Valid values are 0 to 1. For example,
+	 * .25 sets a transparency value of 25%.
+	 * @param blurX The amount of horizontal blur. Valid values are 0 to 255 (floating point). Values
+	 * that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized
+	 * to render more quickly than other values.
+	 * @param blurY The amount of vertical blur. Valid values are 0 to 255 (floating point).
+	 * Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are optimized
+	 * to render more quickly than other values.
+	 * @param strength The strength of the imprint or spread. The higher the value,
+	 * the more color is imprinted and the stronger the contrast between the glow and the background.
+	 * Valid values are 0 to 255.
+	 * @param quality The number of times to apply the filter. Use the BitmapFilterQuality constants:
+	 *

+	 *
BitmapFilterQuality.LOW

+	 *
BitmapFilterQuality.MEDIUM

+	 *
BitmapFilterQuality.HIGH

+	 *

+	 *
For more information, see the description of the quality property.

+	 * @param inner Specifies whether the glow is an inner glow. The value  true specifies
+	 * an inner glow. The value false specifies an outer glow (a glow
+	 * around the outer edges of the object).
+	 * @param knockout Specifies whether the object has a knockout effect. The value true
+	 * makes the object's fill transparent and reveals the background color of the document.
+	 *
+	 * @see BitmapFilterQuality
+	 *
+	 * @langversion 3.0
+	 * @playerversion Flash 10
+	 * @playerversion AIR 1.5
+ 	 * @productversion Flex 4
+	 *
+	 */
 	public function GlowFilter(color:uint = 0xFF0000, alpha:Number = 1.0,
 							   blurX:Number = 6.0, blurY:Number = 6.0,
 							   strength:Number = 2, quality:int = 1,
@@ -112,6 +200,16 @@
 		}
 	}

+	/**
+	 * Returns a copy of this filter object.
+	 * @return A new GlowFilter instance with all the
+	 * properties of the original GlowFilter instance.
+	 *
+	 * @langversion 3.0
+	 * @playerversion Flash 10
+	 * @playerversion AIR 1.5
+	 * @productversion Flex 4
+	 */
 	public function clone():BitmapFilter
 	{
 		return new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout);


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 197
Author:   jspiro@adobe.com
Date:     2008-01-14T21:46:40.985540Z

Log Message:
-----------
SDK-14190 - Add patent indicators to source
* Updated patent comments in ListBase and ModifiedCollectionView with new format
* Added patent comments to flex2.compiler.API

Bugs: SDK-14190
Docs: No
QA: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureExtension.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java</path>

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

--- frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
@@ -9,12 +9,8 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-// Adobe Patent or Adobe Patent Pending Invention Included Within this File
-
-// Adobe patent application tracking #B518, entitled METHODS AND SYSTEMS
-//   FOR ANIMATING DISPLAYED REPRESENTATIONS OF DATA ITEMS, inventors: Schiff
-// Adobe patent application tracking # B519, entitled METHODS AND SYSTEMS
-//   FOR ANIMATING DISPLAYED REPRESENTATIONS OF DATA ITEMS, inventors: Schiff
+// AdobePatentID="B518"
+// AdobePatentID="B519"

 package mx.collections
 {
@@ -1584,4 +1580,4 @@
 	{
 		return _modCount;
 	}
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 16760
Author:   chiedozi@adobe.com
Date:     2010-07-01T03:14:58.835896Z

Log Message:
-----------
Updated SlideViewTransition to fade and slide all content groups.
Reduced the amount of cached images SlideViewTransition uses to increase performance.
Updated FlipViewTransition prototype to support left and right flips.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/IViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/FlipViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/ViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -1063,7 +1063,7 @@
         if (transition)
         {
             transition.addEventListener(Event.COMPLETE, transitionComplete);
-            transition.previousView = currentView;
+            transition.currentView = currentView;
             transition.nextView = pendingView;
             transition.navigator = this;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12078
Author:   klin@adobe.com
Date:     2009-11-21T08:14:46.648391Z

Log Message:
-----------
Fix for change events in Slider and ScrollBar. They now dispatch change events as before, whenever the user alters the value. In addition, changeStart and changeEnd events will be dispatched at the start and end of a user interaction or animation.

TrackBase.as - Added metadata for changeStart/End events. Dispatch change, changeStart/End events when appropriate.

Slider.as - Dispatch change, changeStart/End events when appropriate.

ScrollBar.as - Dispatch the appropriate events. Note that changeStart/End will not dispatch when shift-clicking on a non-animating ScrollBar. Renamed animatingSinglePage to animatingOnce to better reflect its function. Refactored some method calls to the new private stopAnimation(), which is more consistent with Slider. Refactored the button handlers to make stepping more readable. Added a setValue call in animationEndHandler where we were ending up off the snapInterval when shift-clicking.

Updated FlexEvent, ScrollBarTestScript and VideoPlayer to handle the new events.

QE notes: Update Slider and ScrollBar tests
Doc notes: No
Bugs: SDK-24264
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -39,17 +39,30 @@
 [Event(name="change", type="flash.events.Event")]

 /**
- *  Dispatched before the value of the control changes
- *  as a result of user interaction.
- *
- *  @eventType mx.events.FlexEvent.CHANGING
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[Event(name="changing", type="mx.events.FlexEvent")]
+ *  Dispatched at the end of a user interaction
+ *  or when an animation ends.
+ *
+ *  @eventType mx.events.FlexEvent.CHANGE_END
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Event(name="changeEnd", type="mx.events.FlexEvent")]
+
+/**
+ *  Dispatched at the start of a user interaction
+ *  or when an animation starts.
+ *
+ *  @eventType mx.events.FlexEvent.CHANGE_START
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Event(name="changeStart", type="mx.events.FlexEvent")]

 /**
  *  Dispatched when the thumb is pressed and then moved by the mouse.
@@ -366,6 +379,19 @@
         return minimum;
     }

+    /**
+     *  @private
+     */
+    override public function changeValueByStep(increase:Boolean = true):void
+    {
+        var prevValue:Number = this.value;
+
+        super.changeValueByStep(increase);
+
+        if (value != prevValue)
+            dispatchEvent(new Event(Event.CHANGE));
+    }
+
     /**
      *  @private
      */
@@ -540,9 +566,9 @@
             system_mouseUpHandler);

         clickOffset = thumb.globalToLocal(new Point(event.stageX, event.stageY));
+
         dispatchEvent(new TrackBaseEvent(TrackBaseEvent.THUMB_PRESS));
-
-		dispatchEvent(new FlexEvent(FlexEvent.CHANGING));
+        dispatchEvent(new FlexEvent(FlexEvent.CHANGE_START));
     }

     /**
@@ -563,6 +589,7 @@
         {
             setValue(newValue);
             dispatchEvent(new TrackBaseEvent(TrackBaseEvent.THUMB_DRAG));
+            dispatchEvent(new Event(Event.CHANGE));
         }

         event.updateAfterEvent();
@@ -582,8 +609,7 @@
             system_mouseUpHandler);

         dispatchEvent(new TrackBaseEvent(TrackBaseEvent.THUMB_RELEASE));
-
-		dispatchEvent(new Event(Event.CHANGE));
+        dispatchEvent(new FlexEvent(FlexEvent.CHANGE_END));
     }

     //---------------------------------
@@ -641,7 +667,6 @@
         }

         mouseDownTarget = null;
-
     }
 }


clean commented out code

clean commented out code

--- Assets/GameLogic/Scripts/LevelManager.as
+++ Assets/GameLogic/Scripts/LevelManager.as
@@ -114,10 +114,7 @@
 			break;
 		case EVT_MOUSEMOVE:
 			HandleMouseMove(eventData);
-			break;
-		// case EVT_MOUSECLICK:
-		// 	HandleMouseClick(eventData);
-		// 	break;
+			break;
 		case EVT_SOUNDFINISH:
 			HandleSoundFinish(eventData);
 			break;
@@ -139,7 +136,6 @@
 	void HandleUpdate(VariantMap& eventData){}
 	void HandleKeyDown(VariantMap& eventData){}
 	void HandleMouseMove(VariantMap& eventData){}
-	//void HandleMouseClick(VariantMap& eventData){}
 	void HandleSoundFinish(VariantMap& eventData){}
 	void HandleJoystickButtonDown(VariantMap& eventData){}
 	void HandleJoystickButtonUp(VariantMap& eventData){}


fixed bug with useThisScope and flattenFunctionDefinition

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -2756,7 +2756,7 @@
 								funcParams[FUNCTION_PARAM_NAMES],
 								funcParams[FUNCTION_PARAM_VALUES],
 								false,
-								method == operators['=>'] || cascadeThisScope ? builtInSymbolTable['this'] : null
+								method == operators['=>'] || (cascadeThisScope && bindThis !== null) ? builtInSymbolTable['this'] : null
 							);
 						}
 						else if (call.evaluatedHost is Proxy)


def: 4820 support addEmbedHtml5Support

def: 4820 support addEmbedHtml5Support

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

--- plugins/kalturaSharePlugin/src/kalturaSharePlugin.as
+++ plugins/kalturaSharePlugin/src/kalturaSharePlugin.as
@@ -91,6 +91,8 @@

 		public var customSnippetAfter:String;

+
+		public var addEmbedHtml5Support:Boolean = false;
 		/**
 		 * Unique identifier field name if it is metadata
 		 */
@@ -158,7 +160,7 @@

 			}
 			kw.securityType = KalturaWidgetSecurityType.NONE;
-
+			kw.addEmbedHtml5Support = addEmbedHtml5Support;
 			//add widget
 			var addWidget:WidgetAdd = new WidgetAdd(kw);
 			addWidget.addEventListener(KalturaEvent.COMPLETE, onWidgetComplete);


workarounds to avoid asdoc bugs

workarounds to avoid asdoc bugs

Change-Id: I9f46bbb58b5d29a95df63cd9b8408a3e8e157f9e

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -267,8 +267,10 @@
 			// global symbols
 			for each (var _const:* in [null, true, false, undefined, NaN, Infinity])
 				constants[String(_const)] = _const;
-			// global classes
-			for each (var _class:Class in [Array, Boolean, Class, Date, Error, Function, int, Namespace, Number, Object, QName, String, uint, XML])
+			// global classes
+			var _QName:* = getDefinitionByName('QName'); // workaround to avoid asdoc error
+			var _XML:* = getDefinitionByName('XML'); // workaround to avoid asdoc error
+			for each (var _class:Class in [Array, Boolean, Class, Date, Error, Function, int, Namespace, Number, Object, _QName, String, uint, _XML])
 				constants[getQualifiedClassName(_class)] = _class;

 			/** operators **/
@@ -284,10 +286,8 @@
 				return object;
 			};
 			operators[".."] = function(object:*, propertyName:*):* {
-				if (object is XML)
-					return (object as XML).descendants(propertyName);
-				if (object is XMLList)
-					return (object as XMLList).descendants(propertyName);
+				if (typeof(object) == 'xml')
+					return object.descendants(propertyName);
 				return object.flash_proxy::getDescendants(propertyName);
 			};
 			// array creation


Compiler.stringify now supports undefined.

--- WeaveCore/src/weave/compiler/Compiler.as
+++ WeaveCore/src/weave/compiler/Compiler.as
@@ -1055,10 +1055,10 @@
 		 * Generates a deterministic JSON representation of an object, meaning object keys appear in sorted order.
 		 * @param object The object to stringify.
 		 */
-		public static function stringify(object:Object):String
+		public static function stringify(object:*):String
 		{
 			var output:Array;
-			var item:Object;
+			var item:*;
 			var key:String;

 			if (object is String)


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

--- frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/AreaSeries.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.charts.series
 {


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

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

 package mx.charts.series
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 842
Author:   genovese@adobe.com
Date:     2008-03-17T21:51:41.069586Z

Log Message:
-----------
Minor ASDoc changes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as
@@ -384,9 +384,11 @@
     }

     /**
-     * Returns a header if a match is found based on QName localName and URI.
+     * Returns a header if a match is found based on QName, localName, and URI.
      * @param qname QName of the SOAPHeader.
      * @param headerName Name of a header in the SOAPHeader content (Optional)
+     *
+     * @return A header if a match is found based on QName, localName, and URI.
      */
     public function getHeader(qname:QName, headerName:String = null):SOAPHeader
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22200
Author:   egeorgie@adobe.com
Date:     2011-08-25T00:49:34.044884Z

Log Message:
-----------
Fix SDK-31339 First item of a DataGroup isn't shown when it's null

- Use _columnWidth/_rowHeight instead of getters

QE notes:
Doc notes:
Bugs: SDK-31339
Reviewer:  Chiedo
Tests run:
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -1378,8 +1378,8 @@
             llv.defaultMajorSize = typicalHeight;
         }

-        if (!isNaN(rowHeight))
-            llv.defaultMajorSize = rowHeight;
+        if (!isNaN(_rowHeight))
+            llv.defaultMajorSize = _rowHeight;

         if (layoutTarget)
             llv.length = layoutTarget.numElements;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package mx.graphics
+package spark.primitives
 {
 import flash.display.Bitmap;
 import flash.display.BitmapData;
@@ -21,20 +21,20 @@
 import flash.geom.Rectangle;
 import flash.utils.getDefinitionByName;

-import mx.graphics.baseClasses.GraphicElement;
+import spark.primitives.supportClasses.GraphicElement;

 /**
- *  A BitmapGraphic element defines a rectangular region in its parent element's
+ *  A BitmapImage element defines a rectangular region in its parent element's
  *  coordinate space, filled with bitmap data drawn from a source file.
  *
- *  @includeExample examples/BitmapGraphicExample.mxml
+ *  @includeExample examples/BitmapImageExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class BitmapGraphic extends GraphicElement
+public class BitmapImage extends GraphicElement
 {
     include "../core/Version.as";

@@ -52,7 +52,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function BitmapGraphic()
+    public function BitmapImage()
     {
         super();
     }
@@ -125,8 +125,8 @@
     {
         switch(value)
         {
-            case BitmapResizeMode.REPEAT: return _REPEAT_UINT;
-            case BitmapResizeMode.SCALE: return _SCALE_UINT;
+            case BitmapImageResizeMode.REPEAT: return _REPEAT_UINT;
+            case BitmapImageResizeMode.SCALE: return _SCALE_UINT;
             default: return _NORMAL_UINT;
         }
     }
@@ -148,9 +148,9 @@
     {
         switch(value)
         {
-            case _REPEAT_UINT: return BitmapResizeMode.REPEAT;
-            case _SCALE_UINT: return BitmapResizeMode.SCALE;
-            default: return BitmapResizeMode.NORMAL;
+            case _REPEAT_UINT: return BitmapImageResizeMode.REPEAT;
+            case _SCALE_UINT: return BitmapImageResizeMode.SCALE;
+            default: return BitmapImageResizeMode.NORMAL;
         }
     }

@@ -164,18 +164,18 @@
     /**
      *  The resizeMode determines how the bitmap fills in the dimensions. If you set the value
      *  of this property in a tag, use the string (such as "Repeat"). If you set the value of
-     *  this property in ActionScript, use the constant (such as BitmapResizeMode.NORMAL).
+     *  this property in ActionScript, use the constant (such as BitmapImageResizeMode.NORMAL).
      *
-     *  When set to BitmapResizeMode.NORMAL ("Normal"), the bitmap
+     *  When set to BitmapImageResizeMode.NORMAL ("Normal"), the bitmap
      *  ends at the edge of the region.
      *
-     *  When set to BitmapResizeMode.REPEAT ("Repeat"), the bitmap
+     *  When set to BitmapImageResizeMode.REPEAT ("Repeat"), the bitmap
      *  repeats to fill the region.
      *
-     *  When set to BitmapResizeMode.SCALE ("Scale"), the bitmap
+     *  When set to BitmapImageResizeMode.SCALE ("Scale"), the bitmap
      *  stretches to fill the region.
      *
-     *  @default BitmapResizeMode.NORMAL
+     *  @default BitmapImageResizeMode.NORMAL
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -230,7 +230,7 @@
     {
         if (value != repeat)
         {
-            resizeMode = value ? BitmapResizeMode.REPEAT : BitmapResizeMode.NORMAL;
+            resizeMode = value ? BitmapImageResizeMode.REPEAT : BitmapImageResizeMode.NORMAL;
             invalidateDisplayList();
         }
     }
@@ -266,9 +266,9 @@
      *
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 BitmapGraphic class is designed to work with embedded images, not with images that are
+     *
The BitmapImage class is designed to work with embedded images, not with images that are
      *  loaded at run time. You can use the Image control to load the image at run time,
-     *  and then assign the Image control to the value of the BitmapGraphic's source property.

+     *  and then assign the Image control to the value of the BitmapImage's source property.

      *
      *  @see flash.display.Bitmap
      *  @see flash.display.BitmapData


RTMP.as: support setVolume() calls (refs #4)

--- src/RTMP.as
+++ src/RTMP.as
@@ -40,7 +40,7 @@
       mediaContainer = new MediaContainer();
       setupCallbacks();
       setupGetters();
-      ExternalInterface.call('console.log', 'clappr rtmp 0.4-alpha');
+      ExternalInterface.call('console.log', 'clappr rtmp 0.6-alpha');
       _triggerEvent('flashready');
     }

@@ -50,6 +50,7 @@
       ExternalInterface.addCallback("playerPause", playerPause);
       ExternalInterface.addCallback("playerStop", playerStop);
       ExternalInterface.addCallback("playerSeek", playerSeek);
+      ExternalInterface.addCallback("playerVolume", playerVolume);
     }

     private function setupGetters():void {
@@ -117,9 +118,12 @@
       mediaPlayer.stop();
     }

-    private function onTimeUpdated(event:TimeEvent):void {
-      _triggerEvent('progress');
-      _triggerEvent('timeupdate');
+    private function playerVolume(level:Number):void {
+      mediaPlayer.volume = level;
+    }
+
+   private function getState():String {
+      return playbackState;
     }

     private function getPosition():Number {
@@ -130,12 +134,13 @@
       return mediaPlayer.duration;
     }

+    private function onTimeUpdated(event:TimeEvent):void {
+      _triggerEvent('progress');
+      _triggerEvent('timeupdate');
+    }
+
     private function _triggerEvent(name: String):void {
       ExternalInterface.call('Clappr.Mediator.trigger("' + playbackId + ':' + name +'")');
     }
-
-    private function getState():String {
-      return playbackState;
-    }
   }
 }


Transferred from the Adobe Open Source Subversion Repository

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

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

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

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

--- frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as
+++ frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as
@@ -22,6 +22,10 @@
  *  The skin for the close button in the TitleBar
  *  of a WindowedApplication or Window.
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class WindowCloseButtonSkin extends UIComponent
 {
@@ -59,6 +63,10 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function WindowCloseButtonSkin()
     {


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

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

 package com.adobe.viewsource
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/logging/errors/InvalidCategoryError.as
+++ frameworks/projects/framework/src/mx/logging/errors/InvalidCategoryError.as
@@ -20,6 +20,11 @@
  *
Log.getLogger() if a category specified
  *    is malformed.

  *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class InvalidCategoryError extends Error
 {
@@ -35,6 +40,11 @@
 	 *  Constructor.
 	 *
 	 *  @param message The message that describes this error.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function InvalidCategoryError(message:String)
     {
@@ -52,6 +62,11 @@
 	 *
 	 *  @return The message.
 	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function toString():String
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4081
Author:   smgilson@adobe.com
Date:     2008-11-12T14:50:02.708556Z

Log Message:
-----------
Remove @private from an interface and class

QE Notes: None
Doc Notes: None
Bugs:

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBaseContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/ISmallMessage.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
@@ -42,7 +42,6 @@
 [ExcludeClass]

 /**
- *  @private
  *  The ListBaseContentHolder class defines a container in a list-based control
  *  of all of the control's item renderers and item editors.
  *  Flex uses it to mask areas of the renderers that extend outside


Throw event when stream closes

Throw event when stream closes

Solves: Trouble 52041
Solves: Trouble 52371
Change-Id: I66c55ad90e348539957db66c23c72bf97ad78141
Reference: 4a371182d378ce08461de7e0c09e03d07097467b
Reviewed-on: https://gittools.se.axis.com/gerrit/1281
Reviewed-by: Torbjörn Weiland <68336512b8660a5323e02a03889821bdb71c67bf@axis.com>
Tested-by: Oskar Gustafsson <689c75baac3ff14f6707b8f6bb8ba99347d04a10@axis.com>
Reviewed-by: Oskar Gustafsson <689c75baac3ff14f6707b8f6bb8ba99347d04a10@axis.com>
Daily-Built: Oskar Gustafsson <689c75baac3ff14f6707b8f6bb8ba99347d04a10@axis.com>

--- src/com/axis/mjpgplayer/IPCam.as
+++ src/com/axis/mjpgplayer/IPCam.as
@@ -128,6 +128,7 @@
     private function onClose(e:Event):void {
       // Security error is thrown if this line is excluded
       socket.close();
+      ExternalInterface.call(jsEventCallbackName, "stopped");
     }

     private function readline():Boolean {


- change: changed output of document validation log to include accumulated validation time

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

--- src/reprise/ui/DocumentView.as
+++ src/reprise/ui/DocumentView.as
@@ -43,6 +43,8 @@
 		*							protected properties							   *
 		***************************************************************************/
 		protected static var g_defaultStyleSheet : CSS = new CSS();
+		protected static var g_totalValidationTime : int = 0;
+
 		protected var m_styleSheet : CSS;
 		protected var m_rendererFactory : UIRendererFactory;

@@ -411,8 +413,10 @@
 				var element : UIObject = UIObject(sortedElements[i].element);
 				element.validation_execute();
 			}
-			log('d validation of ' + m_validatedElementsCount +
-				' elements took ' + (getTimer() - m_currentFrameTime) + 'ms');
+			g_totalValidationTime += getTimer() - m_currentFrameTime;
+			log('d validated ' + m_validatedElementsCount +
+				' elements in ' + (getTimer() - m_currentFrameTime) + 'ms. ' +
+				'Total validation time: ' + g_totalValidationTime);
 			dispatchEvent(new DisplayEvent(DisplayEvent.DOCUMENT_VALIDATION_COMPLETE));
 			//validate elements that have been marked as invalid during validation
 			if (m_invalidChildren.length)


Fixed crash

Fixed crash

Fixed voltage crash


Added MathUtil.map

Added MathUtil.map

--- sh/saqoo/math/MathUtil.as
+++ sh/saqoo/math/MathUtil.as
@@ -1,77 +1,89 @@
-package sh.saqoo.math {
+package sh.saqoo.math
+{

-	import flash.geom.Point;
-	import flash.geom.Vector3D;
+import flash.geom.Point;
+import flash.geom.Vector3D;

+public class MathUtil
+{
+    public static const toRadian:Number = Math.PI / 180;
+    public static const toDegree:Number = 180 / Math.PI;

-	public class MathUtil {
+    public static function randomInRange(low:Number, high:Number):Number
+    {
+        return low + (high - low) * Math.random();
+    }

+    public static function randomSign(p:Number = 0.5):Number
+    {
+        return Math.random() < p ? 1 : -1;
+    }

-		public static const toRadian:Number = Math.PI / 180;
-		public static const toDegree:Number = 180 / Math.PI;
+    /**
+     * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
+     */
+    public static function randomInCircle(radius:Number, center:Point = null):Point
+    {
+        var th:Number = Math.random() * Math.PI * 2;
+        var r:Number = Math.sqrt(Math.random()) * radius;
+        var p:Point = new Point(Math.cos(th) * r, Math.sin(th) * r);
+        if (center)
+        {
+            p.x += center.x;
+            p.y += center.y;
+        }
+        return p;
+    }

+    /**
+     * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
+     */
+    public static function randomOnSphereSurface(radius:Number, center:Vector3D = null):Vector3D
+    {
+        var z:Number = Math.random() * 2 - 1;
+        var zz:Number = Math.sqrt(1 - z * z);
+        var th:Number = Math.random() * Math.PI * 2;

-		public static function randomInRange(low:Number, high:Number):Number {
-			return low + (high - low) * Math.random();
-		}
-
-
-		public static function randomSign(p:Number = 0.5):Number {
-			return Math.random() < p ? 1 : -1;
-		}
+        var v:Vector3D = new Vector3D();
+        v.x = zz * Math.cos(th);
+        v.y = zz * Math.sin(th);
+        v.z = z;

+        v.scaleBy(radius);
+        if (center) v.incrementBy(center);
+        return v;
+    }

-		/**
-		 * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
-		 */
-		public static function randomInCircle(radius:Number, center:Point = null):Point {
-			var th:Number = Math.random() * Math.PI * 2;
-			var r:Number = Math.sqrt(Math.random()) * radius;
-			var p:Point = new Point(Math.cos(th) * r, Math.sin(th) * r);
-			if (center) {
-				p.x += center.x;
-				p.y += center.y;
-			}
-			return p;
-		}
-
-
-		/**
-		 * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
-		 */
-		public static function randomOnSphereSurface(radius:Number, center:Vector3D = null):Vector3D {
-			var z:Number = Math.random() * 2 - 1;
-			var zz:Number = Math.sqrt(1 - z * z);
-			var th:Number = Math.random() * Math.PI * 2;
-
-			var v:Vector3D = new Vector3D();
-			v.x = zz * Math.cos(th);
-			v.y = zz * Math.sin(th);
-			v.z = z;
-
-			v.scaleBy(radius);
-			if (center) v.incrementBy(center);
-			return v;
-		}
-
-
-		/**
-		 * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
-		 */
-		public static function randomInSphere(radius:Number, center:Vector3D = null):Vector3D {
-			var z:Number = Math.random() * 2 - 1;
-			var th:Number = Math.random() * Math.PI * 2;
-			var r:Number = Math.pow(Math.random(), 1 / 3);
-
-			var v:Vector3D = new Vector3D();
-			v.z = r * z;
-			r *= Math.sqrt(1 - z * z);
-			v.x = r * Math.cos(th);
-			v.y = r * Math.sin(th);
-
-			v.scaleBy(radius);
-			if (center) v.incrementBy(center);
-			return v;
-		}
-	}
+    /**
+     * @see http://www.phys.cs.is.nagoya-u.ac.jp/~watanabe/pdf/prob.pdf
+     */
+    public static function randomInSphere(radius:Number, center:Vector3D = null):Vector3D
+    {
+        var z:Number = Math.random() * 2 - 1;
+        var th:Number = Math.random() * Math.PI * 2;
+        var r:Number = Math.pow(Math.random(), 1 / 3);
+
+        var v:Vector3D = new Vector3D();
+        v.z = r * z;
+        r *= Math.sqrt(1 - z * z);
+        v.x = r * Math.cos(th);
+        v.y = r * Math.sin(th);
+
+        v.scaleBy(radius);
+        if (center) v.incrementBy(center);
+        return v;
+    }
+
+    public static function map(value:Number, inLow:Number = 0.0, inHigh:Number = 1.0, outLow:Number = 0.0, outHigh:Number = 1.0, clip:Boolean = true):Number
+    {
+        var outValue:Number = (value - inLow) / (inHigh - inLow) * (outHigh - outLow) + outLow;
+        if (!clip)
+        	return outValue;
+        if (outValue < outLow)
+        	return outLow;
+        if (outValue > outHigh)
+        	return outHigh;
+    	return outValue;
+    }
 }
+}


Simplifying first RFQ logic; adding note on design choice.

--- driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
+++ driver/src/main/flex/org/postgresql/febe/FEBEConnection.as
@@ -114,7 +114,6 @@
             _messageHandler.setMessageListener(ErrorResponse, handleError);
             _messageHandler.setMessageListener(ReadyForQuery, handleFirstRfq);

-
             _broker.send(new StartupMessage(_params));
         }

@@ -140,8 +139,6 @@
             if (_authenticated) {
                 _connecting = false;
                 _connected = true;
-                _rfq = true;
-                _status = msg.status;

                 _messageHandler.setMessageListener(ReadyForQuery, handleRfq);
                 _messageHandler.setMessageListener(AuthenticationRequest, handleUnexpectedMessage);
@@ -155,8 +152,8 @@
                 _messageHandler.setMessageListener(CommandComplete, handleComplete);
                 _messageHandler.setMessageListener(EmptyQueryResponse, handleEmpty);

-                _connHandler.handleRfq();
                 _connHandler.handleConnected();
+                handleRfq(msg);
             } else {
                 throw new ProtocolError("Unexpected ReadyForQuery without AuthenticationOK");
             }
@@ -193,6 +190,12 @@
         }

         private function handleError(msg:ErrorResponse):void {
+        	// This approach (and the above for handleNotice) mean that there
+        	// is no good way to hand query-related errors back to the connection;
+        	// we'll live with this for now. The other approach of always passing
+        	// the errors to the connection, whether or not there is an active query,
+        	// has the issue that there's no way if the query handler already "took
+        	// care of" the error
             if (_queryHandler) {
                 _queryHandler.handleError(msg.fields);
             } else {


Transferred from the Adobe Open Source Subversion Repository

Revision: 91
Author:   open-source-svn-admin@adobe.com
Date:     2008-01-04T00:55:56.072366Z

Log Message:
-----------
Perforce Change 191932 by proberts@proberts-laptop-flex on 2008/01/03 19:42:01 Severity: ignore description: docs update -- fleshing out docs for AIREvent and FlexNativeWindowBoundsEvent Affected files ...

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>

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

--- frameworks/projects/airframework/src/mx/events/AIREvent.as
+++ frameworks/projects/airframework/src/mx/events/AIREvent.as
@@ -16,7 +16,11 @@

 /**
  *  The AIREvent class represents the event object passed to
- *  the event listener for several AIR-specific events.
+ *  the event listener for several AIR-specific events dispatched by the Window
+ *  and WindowedApplication components.
+ *
+ *  @see mx.core.Window
+ *  @see mx.core.WindowedApplication
  */
 public class AIREvent extends Event
 {
@@ -29,23 +33,79 @@
     //--------------------------------------------------------------------------

     /**
-     *  Dispatched when this application gets activated.
+     *  The AIREvent.APPLICATION_ACTIVATE constant defines the value of the
+     *  type property of the event object for an
+     *  applicationActivate event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	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 the currentTarget.

+     *
file	The File object associated with this event.

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

+     *
type	AIREvent.APPLICATION_ACTIVATE

+     *

      *
      *  @eventType applicationActivate
      */
     public static const APPLICATION_ACTIVATE:String = "applicationActivate";

     /**
-     *  Dispatched when this application gets deactivated.
+     *  The AIREvent.APPLICATION_DEACTIVATE constant defines the value of the
+     *  type property of the event object for an
+     *  applicationDeactivate event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	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 the currentTarget.

+     *
file	The File object associated with this event.

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

+     *
type	AIREvent.APPLICATION_DEACTIVATE

+     *

      *
      *  @eventType applicationDeactivate
      */
     public static const APPLICATION_DEACTIVATE:String = "applicationDeactivate";
-
+
     /**
-     *  Dispatched when the Window or WindowedApplication becomes visible
-     *  after completing its initial layout
-     *
+     *  The AIREvent.WINDOW_COMPLETE constant defines the value of the
+     *  type property of the event object for an
+     *  windowComplete event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	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 the currentTarget.

+     *
file	The File object associated with this event.

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

+     *
type	AIREvent.WINDOW_COMPLETE

+     *

+     *
      *  @eventType windowComplete
      */
     public static const WINDOW_COMPLETE:String = "windowComplete";


Transferred from the Adobe Open Source Subversion Repository

Revision: 4065
Author:   gosmith@adobe.com
Date:     2008-11-11T01:26:44.384277Z

Log Message:
-----------
TextBox now supports lineBreak and breakOpportunity styles, like TextGraphic. It also now uses scrollRect to clip overset lines, like TextGraphic.

Both TextBox and TextGraphic avoid setting scrollRect to null if it is already null, since Player 10.0 will allocate memory even in that case.

The API for TextBlockComposer is now back in sync with that of TextFlowComposer.

QE Notes: New line-breaking and clipping functionality to test in TextBox.
Doc Notes: None
Bugs: None
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicContainerFormatTextStyles.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/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedContainerFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockComposer.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -364,7 +364,20 @@
         if (!mx_internal::styleChainInitialized)
             return;

-        compose(unscaledWidth, unscaledHeight);
+        var overset:Boolean = compose(unscaledWidth, unscaledHeight);
+
+        // Use scrollRect to clip overset lines.
+        // But don't set scrollRect to null if it is already null,
+        // because this causes Player 10.0 to allocate memory.
+        if (overset)
+        {
+            displayObject.scrollRect =
+                new Rectangle(0, 0, unscaledWidth, unscaledHeight);
+        }
+        else if (displayObject.scrollRect)
+        {
+            displayObject.scrollRect = null;
+        }
     }

     /**
@@ -566,8 +579,7 @@
     /**
      *  @private
      */
-    private function compose(width:Number = NaN,
-                             height:Number = NaN):void
+    private function compose(width:Number = NaN, height:Number = NaN):Boolean
     {
         textFlow = createTextFlow();
         _content = textFlow;
@@ -584,7 +596,7 @@

         textFlowComposer.addTextLines(DisplayObjectContainer(displayObject));

-        displayObject.scrollRect = textFlowComposer.isOverset ? bounds : null;
+        return textFlowComposer.isOverset;
     }
 }


Transferred from the Adobe Open Source Subversion Repository

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

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -25,6 +25,11 @@

 /**
  *  @copy mx.components.baseClasses.GroupBase#symbolColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

@@ -34,11 +39,21 @@

 /**
  *  Normal State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [SkinState("normal")]

 /**
  *  Disabled State
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [SkinState("disabled")]

@@ -46,6 +61,11 @@
  *  Documentation is not currently available.
  *
  *  @includeExample examples/FxTextAreaExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxTextArea extends FxTextBase
 {
@@ -59,6 +79,11 @@

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

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get content():Object
 	{
@@ -190,6 +220,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get heightInLines():Number
 	{
@@ -226,6 +261,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get horizontalScrollPolicy():String
 	{
@@ -254,6 +294,11 @@

     /**
      *  The optional FxScroller used to scroll the TextView.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var scroller:FxScroller;

@@ -273,6 +318,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get verticalScrollPolicy():String
 	{
@@ -315,6 +365,11 @@
 	 *  to let the user enter 5 digits.
 	 *
 	 *  @default
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get widthInChars():Number
 	{
@@ -421,6 +476,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
     public function export():XML
     {
@@ -432,6 +492,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
     public function getSelectionFormat(names:Array = null):Object
     {
@@ -443,6 +508,11 @@

 	/**
 	 *  Documentation is not currently available.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
     public function setSelectionFormat(attributes:Object):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2724
Author:   egeorgie@adobe.com
Date:     2008-08-04T17:33:18.787713Z

Log Message:
-----------
Add target property to ILayoutItem
Make ILayoutItemUIC work with IUIComponent
Switch Group.GetLayoutItemAt() to return ILayoutItem

Reviewed by Ryan, Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemFDO.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/intf/ILayoutItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/LayoutItemUIC.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/BasicLayout.as
+++ frameworks/projects/spark/src/spark/layouts/BasicLayout.as
@@ -89,7 +89,7 @@
         var count:int = layoutTarget.numLayoutItems;
         for (var i:int = 0; i < count; i++)
         {
-            var layoutItem:ILayoutItem = LayoutItemFactory.getLayoutItemFor(layoutTarget.getLayoutItemAt(i));
+            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
             if (!layoutItem || !layoutItem.includeInLayout)
                 continue;

@@ -148,7 +148,7 @@
         var count:int = layoutTarget.numLayoutItems;
         for (var i:int = 0; i < count; i++)
         {
-            var layoutItem:ILayoutItem = LayoutItemFactory.getLayoutItemFor(layoutTarget.getLayoutItemAt(i));
+            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);
             if (!layoutItem || !layoutItem.includeInLayout)
                 continue;


Extract method Cloner.AccessorCloneable().

--- dolly-framework/src/main/actionscript/dolly/Cloner.as
+++ dolly-framework/src/main/actionscript/dolly/Cloner.as
@@ -14,6 +14,11 @@
 		return !variable.isStatic && (skipMetadataChecking || variable.hasMetadata(MetadataName.CLONEABLE));
 	}

+	public static function isAccessorCloneable(accessor:Accessor, skipMetadataChecking:Boolean = true):Boolean {
+		return !accessor.isStatic && accessor.isReadable() && accessor.isWriteable() &&
+				(skipMetadataChecking || accessor.hasMetadata(MetadataName.CLONEABLE));
+	}
+
 	dolly_internal static function getCloneableFields(source:*):Array {
 		const result:Array = [];

@@ -22,7 +27,6 @@
 		var accessor:Accessor;

 		const isClassCloneable:Boolean = type.hasMetadata(MetadataName.CLONEABLE);
-
 		if (isClassCloneable) {
 			for each(variable in type.variables) {
 				if (isVariableCloneable(variable)) {
@@ -30,7 +34,7 @@
 				}
 			}
 			for each(accessor in type.accessors) {
-				if (accessor.isReadable() && accessor.isWriteable() && !accessor.isStatic) {
+				if (isAccessorCloneable(accessor)) {
 					result.push(accessor);
 				}
 			}
@@ -44,8 +48,7 @@
 					}
 				} else if (metadataContainer is Accessor) {
 					accessor = metadataContainer as Accessor;
-					if (accessor.hasMetadata(MetadataName.CLONEABLE)
-							&& accessor.isReadable() && accessor.isWriteable() && !accessor.isStatic) {
+					if (isAccessorCloneable(accessor, false)) {
 						result.push(accessor);
 					}
 				}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeaderBase.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeaderBase.as
@@ -43,12 +43,22 @@
 /**
  *  The DataGridHeaderBase class defines the base class for the DataGridHeader class,
  *  the class that defines the item renderer for the DataGrid control.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class DataGridHeaderBase extends UIComponent
 {

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function DataGridHeaderBase()
     {
@@ -57,11 +67,21 @@

     /**
      *  a layer to draw selections
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal var selectionLayer:Sprite;

     /**
      *  a function to clear selections
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function clearSelectionLayer():void
     {