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

--- frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
+++ frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
@@ -423,6 +423,11 @@
      *   This piece is broken out as a separate function so that it
      *  can be called recursively when the styleName object has a
      *  styleName property is itself another UIComponent.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private static function addProperties(chain:Object, obj:IStyleClient,
                                           bInheriting:Boolean):Object


Transferred from the Adobe Open Source Subversion Repository

Revision: 8486
Author:   smgilson@adobe.com
Date:     2009-07-09T18:42:45.734868Z

Log Message:
-----------
Third checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.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/HGroup.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/RadioButtonGroup.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/supportClasses/Slider.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/TextArea.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/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.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/CheckBox.as</path>
<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/projects/spark/src/spark/components/HSlider.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/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.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/components/SkinnableDataContainer.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/SkinnableContainer.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/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.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/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/ToggleButton.as
+++ frameworks/projects/spark/src/spark/components/ToggleButton.as
@@ -49,7 +49,7 @@
  *
  *  @mxml
  *
- *
The <ToggleButton> tag inherits all of the tag
+ *
The <s:ToggleButton> tag inherits all of the tag
  *  attributes of its superclass and adds no tag attributes:

  *
  *


refactaring key handler

refactaring key handler

git-svn-id: 864080e30cc358c5edb906449bbf014f90258007@82 96db6a20-122f-0410-8d9f-89437bbe4005

--- src/com/rails2u/utils/KeyTypeListener.as
+++ src/com/rails2u/utils/KeyTypeListener.as
@@ -77,7 +77,7 @@
         }

         public function bindKey(type:String):void {
-            obj.addEventListener(type, KeyboardEvent.KEY_DOWN == type ? keyDownHandler : keyUpHandler, useCapture, priority, useWeakReference);
+            obj.addEventListener(type, keyHandler, useCapture, priority, useWeakReference);
         }

         public function destroy():void {
@@ -85,19 +85,10 @@
         }

         internal function destroyImpl():void {
-           obj.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, useCapture);
-           obj.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler, useCapture);
+           obj.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler, useCapture);
+           obj.removeEventListener(KeyboardEvent.KEY_UP, keyHandler, useCapture);
         }

-        // みじかくできる
-        protected function keyDownHandler(e:KeyboardEvent):void {
-            keyHandlerDelegeter(e, key_down);
-        }
-
-        protected function keyUpHandler(e:KeyboardEvent):void {
-            keyHandlerDelegeter(e, key_up);
-        }
-
         protected function isIgnore(o:*):Boolean {
             if (ignoreTargets.length) {
                 for each(var klass:Class in ignoreTargets) {
@@ -107,8 +98,10 @@
             return false;
         }

-        protected function keyHandlerDelegeter(e:KeyboardEvent, ns:Namespace):void {
+        protected function  keyHandler(e:KeyboardEvent):void {
             if (isIgnore(e.target)) return;
+
+            var ns:Namespace = e.type == KeyboardEvent.KEY_DOWN ? key_down : key_up;

             if (!(e.target == this.currentTarget || e.target == this.obj)) {
                 if (e.target.stage && this.obj == e.target.stage) {


- bugfix: intrinsic dimensions could become negative through child margins being collapsed with their parent margins. Now, intrinsic dimensions are normalized to 0 in such cases

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

--- src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
+++ src/reprise/ui/layoutmanagers/CSSBoxModelLayoutManager.as
@@ -237,9 +237,10 @@
 				applyVerticalPositionsInLineBox(
 					currentLineBoxTop, currentLineBoxHeight, currentLineBoxChildren);
 			}
-			element.style.intrinsicHeight = currentLineBoxTop + currentLineBoxHeight +
-				collapsibleMargin - element.style.paddingTop;
-			element.style.intrinsicWidth = widestChildWidth - element.style.paddingLeft;
+			element.style.intrinsicHeight = Math.max(currentLineBoxTop + currentLineBoxHeight +
+				collapsibleMargin - element.style.paddingTop, 0);
+			element.style.intrinsicWidth =
+				Math.max(widestChildWidth - element.style.paddingLeft, 0);
 		}

 		public function applyAbsolutePositions(


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

--- frameworks/projects/framework/src/mx/effects/Zoom.as
+++ frameworks/projects/framework/src/mx/effects/Zoom.as
@@ -0,0 +1,243 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects
+{
+
+import mx.core.mx_internal;
+import mx.effects.effectClasses.ZoomInstance;
+
+use namespace mx_internal;
+
+/**
+ *  The Zoom effect zooms the object in or out on a center point.
+ *
+ *
When you apply a Zoom effect to text rendered using a system font,
+ *  Flex scales the text between whole point sizes.
+ *  While you do not have to use embedded fonts when you apply a Zoom effect
+ *  to text, the Zoom will appear smoother when you apply it to embedded fonts.

+ *
+ *
Note: The Zoom effect does not work when the
+ *  Container.autoLayout property is false.

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

+ *
+ *

+ *  <mx:Zoom
+ *    id="ID"
+ *    captureRollEvents="false|true"
+ *    originX="Calculated"
+ *    originY="Calculated"
+ *    zoomWidthFrom="0.01"
+ *    zoomWidthTo="1.0"
+ *    zoomHeightFrom="0.01"
+ *    zoomHeightTo="1.0"
+ *  />
+ *

+ *
+ *  @see mx.effects.effectClasses.ZoomInstance
+ *  @see mx.managers.LayoutManager
+ *
+ *  @includeExample examples/ZoomEffectExample.mxml
+ */
+public class Zoom extends TweenEffect
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var AFFECTED_PROPERTIES:Array =
+		[ "scaleX", "scaleY", "x", "y", "width", "height" ];
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param target The Object to animate with this effect.
+	 */
+	public function Zoom(target:Object = null)
+	{
+		super(target);
+
+		instanceClass = ZoomInstance;
+		applyActualDimensions = false; // Make sure that the explicitWidth and explicitHeight are reset
+		relevantProperties = [ "scaleX", "scaleY", "width", "height", "visible" ];
+	}
+
+ 	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  captureRollEvents
+	//----------------------------------
+
+	[Inspectable(category="Other", defaultValue="false")]
+
+	/**
+	 *  If true, prevents Flex from dispatching the rollOut
+	 *  and rollOver events if the mouse has not moved.
+	 *  Set this property to true when you use the Zoom effect to
+	 *  toggle the effect target between a big and small size.
+	 *
+	 *
For example, you use the rollOverEffect to trigger
+	 *  the Zoom effect to reduce the size of the target.
+	 *  As the target shrinks, the mouse pointer is no longer over the target,
+	 *  triggering a rollOut event, and
+	 *  the corresponding rollOutEffect. By setting
+	 *  the captureRollEvents property to true,
+	 *  you prevent Flex from dispatching the rollOut event
+	 *  unless it occurs because you moved the mouse.

+	 *
+	 *  @default false
+	 */
+	public var captureRollEvents:Boolean;
+
+	//----------------------------------
+	//  originX
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Number that represents the x-position of the zoom origin
+	 *  when the effect target is in a container that supports absolute positioning,
+	 *  such as the Canvas container. The zoom origin is the position on the target
+	 *  around which the Zoom effect is centered.
+	 *
+	 *
The value must be between 0 and the width of the target component.

+	 *
+	 *  The default value is target.width / 2, which is the center of the target.
+	 */
+	public var originX:Number;
+
+	//----------------------------------
+	//  originY
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="NaN")]
+
+	/**
+	 *  Number that represents the y-position of the zoom origin
+	 *  when the effect target is in a container that supports absolute positioning,
+	 *  such as the Canvas container. The zoom origin is the position on the target
+	 *  around which the Zoom effect is centered.
+	 *
+	 *
The value must be between 0 and the height of the target component.

+	 *
+	 *  The default value is target.height / 2, which is the center of the target.
+	 */
+	public var originY:Number;
+
+	//----------------------------------
+	//  zoomHeightFrom
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="0.01")]
+
+	/**
+	 *  Number that represents the scale at which to start the height zoom,
+	 *  as a percent between 0.01 and 1.0.
+	 *  The default value is 0.01, which is very small.
+	 */
+	public var zoomHeightFrom:Number;
+
+	//----------------------------------
+	//  zoomHeightTo
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="1")]
+
+	/**
+	 *  Number that represents the scale at which to complete the height zoom,
+	 *  as a percent between 0.01 and 1.0.
+	 *  The default value is 1.0, which is the object's normal size.
+	 */
+	public var zoomHeightTo:Number;
+
+	//----------------------------------
+	//  zoomWidthFrom
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="0.01")]
+
+	/**
+	 *  Number that represents the scale at which to start the width zoom,
+	 *  as a percent between 0.01 and 1.0.
+	 *  The default value is 0.01, which is very small.
+	 */
+	public var zoomWidthFrom:Number;
+
+	//----------------------------------
+	//  zoomWidthTo
+	//----------------------------------
+
+	[Inspectable(category="General", defaultValue="1")]
+
+	/**
+	 *  Number that represents the scale at which to complete the width zoom,
+	 *  as a percent between 0.01 and 1.0.
+	 *  The default value is 1.0, which is the object's normal size.
+	 */
+	public var zoomWidthTo:Number;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function getAffectedProperties():Array /* of String */
+	{
+		return AFFECTED_PROPERTIES;
+	}
+
+ 	/**
+	 *  @private
+	 */
+	override protected function initInstance(instance:IEffectInstance):void
+	{
+		super.initInstance(instance);
+
+		var zoomInstance:ZoomInstance = ZoomInstance(instance);
+
+		zoomInstance.zoomWidthFrom = zoomWidthFrom;
+		zoomInstance.zoomWidthTo = zoomWidthTo;
+		zoomInstance.zoomHeightFrom = zoomHeightFrom;
+		zoomInstance.zoomHeightTo = zoomHeightTo;
+		zoomInstance.originX = originX;
+		zoomInstance.originY = originY;
+		zoomInstance.captureRollEvents = captureRollEvents;
+	}
+}
+
+}


[FragmentData] Add `starts_with_idr` and `pts_min_video_header`

--- src/org/mangui/hls/model/FragmentData.as
+++ src/org/mangui/hls/model/FragmentData.as
@@ -51,6 +51,12 @@
         /* ID3 tags linked to this fragment */
         public var id3_tags : Vector.<ID3Tag>;

+        /** Whether this Fragment starts with IDR **/
+        public var starts_with_idr : Boolean;
+
+        /** PTS of earliest AVC_HEADER */
+        public var pts_min_video_header : Number;
+
         /**  tag duration */
         private var audio_tag_duration : Number;
         private var video_tag_duration : Number;
@@ -64,6 +70,8 @@
             this.valid = true;
             this.video_width = 0;
             this.video_height = 0;
+            this.starts_with_idr = false;
+            this.pts_min_video_header = NaN;
         };

         public function appendTags(tags : Vector.<FLVTag>) : void {
@@ -86,6 +94,9 @@
                         pts_max_audio = Math.max(pts_max_audio, tag.pts);
                         break;
                     case FLVTag.AVC_HEADER:
+                        if (isNaN(pts_min_video_header)) {
+                            pts_min_video_header = tag.pts;
+                        }
                     case FLVTag.AVC_NALU:
                         video_found = true;
                         tags_video_found = true;
@@ -95,6 +106,7 @@
                         tags_pts_max_video = Math.max(tags_pts_max_video, tag.pts);
                         pts_min_video = Math.min(pts_min_video, tag.pts);
                         pts_max_video = Math.max(pts_max_video, tag.pts);
+                        starts_with_idr = !isNaN(pts_min_video_header) && pts_min_video_header <= tag.pts;
                         break;
                     case FLVTag.DISCONTINUITY:
                     case FLVTag.METADATA:
@@ -113,6 +125,8 @@
             pts_min_audio = pts_min_video = dts_min = tags_pts_min_audio = tags_pts_min_video = Number.POSITIVE_INFINITY;
             pts_max_audio = pts_max_video = tags_pts_max_audio = tags_pts_max_video = Number.NEGATIVE_INFINITY;
             audio_found = video_found = tags_audio_found = tags_video_found = false;
+            starts_with_idr = false;
+            pts_min_video_header = NaN;
         }

         public function shiftTags() : void {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22074
Author:   smgilson@adobe.com
Date:     2011-08-18T18:48:26.478480Z

Log Message:
-----------
ASDoc edits for Callout

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.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@1263789 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -39,16 +39,17 @@
 //--------------------------------------

 /**
- *  Appearance of the contentGroup. Valid MXML values are inset
+ *  Appearance of the contentGroup.
+ *  Valid MXML values are inset
  *  flat and transparent.
  *
  *
In ActionScript, you can use the following constants
  *  to set this property:
- *  CalloutContentBackgroundAppearance.INSET,
- *  CalloutContentBackgroundAppearance.FLAT and
- *  CalloutContentBackgroundAppearance.NONE.

- *
- *  @default CalloutContentBackgroundAppearance.INSET
+ *  ContentBackgroundAppearance.INSET,
+ *  ContentBackgroundAppearance.FLAT and
+ *  ContentBackgroundAppearance.NONE.

+ *
+ *  @default ContentBackgroundAppearance.INSET
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
@@ -63,15 +64,22 @@
 [IconFile("Callout.png")]

 /**
- *  The Callout class is a SkinnablePopUpContainer that functions as a pop-up
+ *  The Callout container is a SkinnablePopUpContainer that functions as a pop-up
  *  with additional owner-relative positioning options similar to PopUpAnchor.
  *  Callout also adds an optional arrow skin part that visually
- *  displays direction toward the owner.
- *
- *
Callout uses horizontalPosition and
+ *  displays the direction toward the owner.
+ *
+ *
You can also use the CalloutButton control to open a callout container.
+ *  The CalloutButton control encapsulates in a single control the callout container
+ *  and all of the logic necessary to open and close the callout.
+ *  The CalloutButton control is then said to the be the owner, or host,
+ *  of the callout.

+ *
+ *
Callout uses the horizontalPosition and
  *  verticalPosition properties to determine the position of the
- *  Callout relative to the owner that is specified via the open()
- *  method. Both properties may be set to CalloutPosition.AUTO which selects a
+ *  Callout relative to the owner that is specified by the open()
+ *  method.
+ *  Both properties can be set to CalloutPosition.AUTO which selects a
  *  position based on the aspect ratio of the screen for the Callout to fit
  *  with minimal overlap with the owner and and minimal adjustments at the
  *  screen bounds.

@@ -83,7 +91,7 @@
  *
  *
You do not create a Callout container as part of the normal layout
  *  of its parent container.
- *  Instead, it appears as a pop-up window on top of its parent.
+ *  Instead, it appears as a pop-up container on top of its parent.
  *  Therefore, you do not create it directly in the MXML code of your application.

  *
  *
Instead, you create is as an MXML component, often in a separate MXML file.
@@ -125,10 +133,16 @@
  *    Properties
  *    horizontalPosition="auto"
  *    verticalPosition="auto"
+ *
+ *    Styles
+ *    contentBackgroundAppearance="inset"
  *  />
  *

  *
+ *  @see spark.components.CalloutButton
  *  @see spark.skins.mobile.CalloutSkin
+ *  @see spark.components.ContentBackgroundAppearance
+ *  @see spark.components.CalloutPosition
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
@@ -620,10 +634,10 @@
     }

     /**
-     *  Sets the bounds of arrow, whose geometry isn't fully
+     *  Sets the bounds of arrow, whose geometry isn't fully
      *  specified by the skin's layout.
      *
-     *
Subclasses may override this method to update the arrow's size,
+     *
Subclasses can override this method to update the arrow's size,
      *  position, and visibility, based on the computed
      *  arrowDirection.

      *


def: 4870 bumper click url didn't work

def: 4870 bumper click url didn't work

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

--- plugins/bumperPlugin/src/com/kaltura/kdfl/plugin/BumperMediator.as
+++ plugins/bumperPlugin/src/com/kaltura/kdfl/plugin/BumperMediator.as
@@ -74,7 +74,8 @@
 										"playlistFirstEntry",
 										"playlistMiddleEntry",
 										"playlistLastEntry",
-										NotificationType.CHANGE_MEDIA_PROCESS_STARTED);
+										NotificationType.CHANGE_MEDIA_PROCESS_STARTED,
+										NotificationType.DO_PLAY);
 			return notify;
 		}

@@ -139,6 +140,13 @@
 					}
 					break;

+				case NotificationType.DO_PLAY:
+					if (_mediaProxy.vo.entry.id == bumper.bumperEntryID && _sequenceProxy.vo.isInSequence && !_playedOnce) {
+						bumper.enabled = true;
+						enableGUI(false);
+						bumper.trackClicks = true;
+					}
+					break;

 			}


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

--- frameworks/projects/spark/src/spark/effects/supportClasses/ResizeInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/ResizeInstance.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.effects.supportClasses
 {
 import __AS3__.vec.Vector;


remove trace() in AbstractShadowMappingEffect

--- src/aerys/minko/render/material/phong/AbstractShadowMappingEffect.as
+++ src/aerys/minko/render/material/phong/AbstractShadowMappingEffect.as
@@ -28,8 +28,6 @@
 		private var _renderingPass		: Shader;
 		private var _watchedProperties	: Vector.<String>;

-		private var _updatePasses		: Boolean;
-
 		public function get scene() : Scene
 		{
 			return _scene;
@@ -41,21 +39,18 @@
 			_renderingPass		= renderingShader;
 			_watchedProperties	= new Vector.<String>();
 			_scene				= scene;
-			_updatePasses		= true;

-			scene.enterFrame.add(onSceneEnterFrame);
+            scene.enterFrame.add(sceneEnterFrameHandler);
 		}

-		private function onSceneEnterFrame(scene		: Scene,
-										   viewport		: Viewport,
-										   destination	: BitmapData,
-										   timer		: uint) : void
+		private function sceneEnterFrameHandler(scene		: Scene,
+                                                viewport	: Viewport,
+                                                destination	: BitmapData,
+                                                timer		: uint) : void
 		{
-			if (_updatePasses)
-			{
-				updatePasses();
-				_updatePasses = false;
-			}
+            scene.enterFrame.remove(sceneEnterFrameHandler);
+
+			updatePasses();
 		}

 		private function propertyChangedHandler(sceneBindings	: DataBindings,
@@ -63,7 +58,7 @@
 												oldValue		: Object,
 												newValue		: Object) : void
 		{
-			_updatePasses = true;
+            scene.enterFrame.add(sceneEnterFrameHandler);
 		}

 		private function updatePasses() : void


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

--- frameworks/projects/advancedgrids/src/mx/olap/QueryError.as
+++ frameworks/projects/advancedgrids/src/mx/olap/QueryError.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.olap
 {


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4516
Author:   gosmith@adobe.com
Date:     2009-01-13T23:23:14.594709Z

Log Message:
-----------
Accessibility changes to Panel and TitleWindow, as requested by Freedom Scientific.

These components now report their accessibility role as "grouping" rather than "window". Their accessibility name is now simply their title. They no longer report any child items. Their accessibility location is the bounding rect of the entire Panel or TitleWindow.

The AccessibilityImplementation continues to be attached to the titleBar, not to the Panel/TitleWindow, because the Flash Player ignores Sprites with an AccessibilityImplementation that are inside other Sprites with an AccessibilityImplementation. (The Flash accessibility model is flat, not hierarchical, and "child IDs" are only used for things like list items, not for controls in titled container.)

So although in the display hierarchy the Panel is a parent of its content controls, in the MSAA model it appears as their preceding sibling. JAWS will look at the "grouping" role and understand that because the bounding rect of the grouping includes some of its following siblings, they are "inside". (I don't know what this means in terms of what JAWS will actually speak.)

Also, the AccImpl class now implements getChildIDArray() to return an empty array, so that by default all components have 0 child items (rather than reporting an error).

Finally, subclasses with child items now compute how many they have and then call a new AccImpl utility method, createChildIDArray(), to create an Array that looks like [ 1, 2, 3, 4, 5 ].

QE Notes: None
Doc Notes: None
Bugs: SDK-12390, SDK-16340
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.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/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/PanelAccImpl.as
@@ -25,27 +25,6 @@
 public class PanelAccImpl extends AccImpl
 {
     include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private static const ROLE_SYSTEM_DIALOG:uint = 0x12;
-
-	/**
-	 *  @private
-	 */
-	private static const ROLE_SYSTEM_TITLEBAR:uint = 0x01;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;

 	//--------------------------------------------------------------------------
 	//
@@ -77,7 +56,13 @@
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void
 	{
-		Panel(component).getTitleBar().accessibilityImplementation =
+		// The AccessibilityImplementation is placed on the
+		// Panel's titleBar, not on the Panel itself.
+		// If it were placed on the Panel itself,
+		// the AccessibilityImplementations of the Panel's children
+		// would be ignored.
+		var titleBar:UIComponent = Panel(component).getTitleBar();
+		titleBar.accessibilityImplementation =
 			new PanelAccImpl(component);
 	}

@@ -97,7 +82,7 @@
 	{
 		super(master);

-		role = 0x09; // ROLE_SYSTEM_WINDOW
+		role = 0x14; // ROLE_SYSTEM_GROUPING
 	}

 	//--------------------------------------------------------------------------
@@ -105,38 +90,6 @@
 	//  Overridden methods: AccessibilityImplementation
 	//
 	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Gets the role for the component.
-	 *
-	 *  @param childID children of the component
-	 */
-	override public function get_accRole(childID:uint):uint
-	{
-		var accRole:uint = role;
-
-		switch (childID)
-		{
-			case 1:
-			{
-				accRole = ROLE_SYSTEM_TITLEBAR;
-				break;
-			}
-
-			case 2:
-			{
-				accRole = ROLE_SYSTEM_DIALOG;
-				break;
-			}
-
-			default:
-				accRole = role;
-				break;
-		}
-
-		return accRole;
-	}

 	/**
 	 *  @private
@@ -151,79 +104,8 @@
 	override public function get_accState(childID:uint):uint
 	{
 		var accState:uint = getState(childID);
-
-		switch (childID)
-		{
-			case 1:
-			{
-				break;
-			}
-
-			case 2:
-			{
-				accState |= STATE_SYSTEM_FOCUSED;
-				break;
-			}
-
-			default:
-			{
-				break;
-			}
-		}
-
+
 		return accState;
-	}
-
-	/**
-	 *  @private
-	 *  Method to return an array of childIDs of Panel component
-	 *
-	 *  @return Array
-	 */
-	override public function getChildIDArray():Array
-	{
-		var childIDs:Array = [];
-
-		for (var i:int = 0; i < 2; ++i)
-		{
-			childIDs[i] = i + 1;
-		}
-
-		return childIDs;
-	}
-	/**
-	 *  @private
-	 *  IAccessible method for returning the bounding box of the Panel.
-	 *
-	 *  @param childID:uint
-	 *
-	 *  @return Location:Object
-	 */
-	override public function accLocation(childID:uint):*
-	{
-		var location:Object = master;
-
-		switch (childID)
-		{
-			case 1:
-			{
-				location = Panel(master).getTitleBar();
-				break;
-			}
-
-			case 2:
-			{
-				location = Panel(master).contentPane;
-				break;
-			}
-
-			default:
-			{
-				break;
-			}
-		}
-
-		return location;
 	}

 	//--------------------------------------------------------------------------
@@ -244,30 +126,7 @@
 	 */
 	override protected function getName(childID:uint):String
 	{
-		var name:String = Panel(master).title;
-
-		switch (childID)
-		{
-			case 1:
-			{
-				name = "";
-				break;
-			}
-
-			case 2:
-			{
-				name = "";
-				break
-			}
-
-			default:
-			{
-				name = Panel(master).title + " " + Panel(master).className;
-				break;
-			}
-		}
-
-		return name;
+		return Panel(master).title;
 	}
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6019
Author:   hmuller@adobe.com
Date:     2009-04-08T15:59:11.761852Z

Log Message:
-----------
The fix for sdk-20141 was inadvertently merged out (by yours truly) during the big rename cutover.   Restored it.

QE Notes:
Doc Notes:
Bugs: sdk-20141
Reviewer: Ryan reviewed the original change

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -656,7 +656,16 @@
         _layeringFlags &= ~LAYERING_DIRTY;

         var len:int = numElements;
-        for (var i:int = 0; i < len; i++)
+        var startIndex:int = 0;
+        var endIndex:int = numElements - 1;
+
+        if (layout && layout.useVirtualLayout && (virtualLayoutStartIndex != -1))
+        {
+            startIndex = virtualLayoutStartIndex;
+            endIndex = virtualLayoutEndIndex;
+        }
+
+        for (var i:int = startIndex; i <= endIndex; i++)
         {
             var myItemRenderer:IVisualElement = getElementAt(i);
             var layer:Number = myItemRenderer.layer;


Transferred from the Adobe Open Source Subversion Repository

Revision: 13356
Author:   stshongr@adobe.com
Date:     2010-01-08T00:59:38.186389Z

Log Message:
-----------
Removed contentJustify from the metadata for TileGroup.horizontalAlign.  Added defaultValue to the metadata for TileLayout.horizontalAlign and TileLayout.verticalAlign.  Updated the metadata of other TileGroup properties that have become out of sync with TileLayout.

QE notes: None
Doc notes: None
Bugs: SDK-24882
Reviewer: Evtim
Tests run: checkintests, mustella: TileGroup, TileLayout
Is noteworthy for integration: No

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

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

--- frameworks/projects/spark/src/spark/components/TileGroup.as
+++ frameworks/projects/spark/src/spark/components/TileGroup.as
@@ -157,7 +157,7 @@
     //----------------------------------

     [Bindable("propertyChange")]
-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  @copy spark.layouts.TileLayout#columnWidth
@@ -186,7 +186,7 @@
     //  horizontalAlign
     //----------------------------------

-    [Inspectable(category="General", enumeration="left,center,right,justify,contentJustify", defaultValue="left")]
+    [Inspectable(category="General", enumeration="left,right,center,justify", defaultValue="justify")]

     /**
      *  @copy spark.layouts.TileLayout#horizontalAlign
@@ -274,7 +274,7 @@
     //  requestedColumnCount
     //----------------------------------

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="-1")]

     /**
      *  @copy spark.layouts.TileLayout#requestedColumnCount
@@ -303,7 +303,7 @@
     //  requestedRowCount
     //----------------------------------

-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="-1")]

     /**
      *  @copy spark.layouts.TileLayout#requestedRowCount
@@ -384,7 +384,7 @@
     //----------------------------------

     [Bindable("propertyChange")]
-    [Inspectable(category="General")]
+    [Inspectable(category="General", minValue="0.0")]

     /**
      *  @copy spark.layouts.TileLayout#rowHeight


assetPathToOutputPath: removed unnecessary console.log()

--- src/com/nextgenactionscript/asconfigc/utils/assetPathToOutputPath.as
+++ src/com/nextgenactionscript/asconfigc/utils/assetPathToOutputPath.as
@@ -43,7 +43,6 @@
 			var sourcePath:String = sourcePaths[i];
 			//get the absolute path for each of the source paths
 			sourcePath = path.resolve(sourcePath);
-			console.log()
 			if(assetPath.startsWith(sourcePath))
 			{
 				relativePath = path.relative(sourcePath, assetPath);


ConditionalOperator: Adds support for "null" arguments

--- src/skein/binding/operators/conditional/ConditionalOperator.as
+++ src/skein/binding/operators/conditional/ConditionalOperator.as
@@ -40,7 +40,7 @@

     private function get isAllOperandsDefined():Boolean
     {
-        return this.temp[0] != undefined && this.temp[1] != undefined && this.temp[2] != undefined;
+        return this.temp[0] !== undefined && this.temp[1] !== undefined && this.temp[2] !== undefined;
     }

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


Same as previous log.

Same as previous log.

--- src/aerys/minko/scene/controller/debug/WireframeDebugController.as
+++ src/aerys/minko/scene/controller/debug/WireframeDebugController.as
@@ -79,7 +79,8 @@
 		private function targetRemovedHandler(ctrl		: WireframeDebugController,
 											  target	: Mesh) : void
 		{
-			target.added.remove(addedHandler);
+			if (target.added.hasCallback(addedHandler))
+				target.added.remove(addedHandler);
 			target.removed.remove(removedHandler);
 			removeWireframes(target);
 		}


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20267
Author:   smgilson@adobe.com
Date:     2011-02-10T16:21:16.560038Z

Log Message:
-----------
Add note to Application splashscreen properties about using the mobile swc.

Remove @playerversion Flash tags from Mobile content since it is AIR only

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/BusyIndicator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.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@1264209 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -295,7 +295,6 @@
      *  @param event The Keyboard Event encountered
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 20645
Author:   smgilson@adobe.com
Date:     2011-03-07T18:55:33.807951Z

Log Message:
-----------
ASDoc updates

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/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableContainerBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
@@ -98,9 +98,14 @@

     /**
      *  Called before a bitmap capture is made for this skin. The default implementation
-     *  excludes items in the focusSkinExclusions array.
+     *  excludes items in the focusSkinExclusions array.
      *
-     *   @return true if the component must be redrawn. Otherwise, false.
+     *  @return true if the component must be redrawn. Otherwise, false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function beginHighlightBitmapCapture():Boolean
     {
@@ -163,9 +168,14 @@

     /**
      *  Called after a bitmap capture is made for this skin. The default implementation
-     *  restores the items in the focusSkinExclusions array.
+     *  restores the items in the focusSkinExclusions array.
      *
-     *   @return true if the component must be redrawn. Otherwise, false.
+     *  @return true if the component must be redrawn. Otherwise, false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     public function endHighlightBitmapCapture():Boolean
     {


Run genservice with my last change to placate Bamboo.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@6639 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/main/as/com/threerings/crowd/data/LocationMarshaller.as
+++ src/main/as/com/threerings/crowd/data/LocationMarshaller.as
@@ -44,7 +44,6 @@
     public function leavePlace () :void
     {
         sendRequest(LEAVE_PLACE, [
-
         ]);
     }


FLEX-24764 number formatter was incorrectly round numbers with the correct number of digits

--- frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/NumberFormatter.as
@@ -602,7 +602,7 @@
         var numArrTemp:Array = numStr.split(".");
         var numFraction:int = numArrTemp[1] ? String(numArrTemp[1]).length : 0;

-        if (precision <= numFraction)
+        if (precision < numFraction)
         {
             if (rounding != NumberBaseRoundType.NONE)
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7079
Author:   cframpto@adobe.com
Date:     2009-05-19T17:43:53.967947Z

Log Message:
-----------
-Move init of heightInLines out to skin.
-Handle constrained width in RichEditableText for both the autoSize and !autoSize case.
-For autoSize, width/height/minWidth/minHeight are ignored.  If lineBreak="toFit", maxWidth determines where wrap will occur (unless it is constrained in which case that width trumps).  The default maxWidth, if not specified is 160.  If lineBreak="explicit" the text determines the width.  When autoSizing, height is not bounded and there is no scrolling.

QA Notes:
Doc Notes:
Bugs: SDK-21115, SDK-20400, SDK-21125
Reviewers: Gordon

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -17,6 +17,7 @@
 import flash.events.Event;
 import flash.events.FocusEvent;
 import flash.events.KeyboardEvent;
+import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.system.IME;
 import flash.system.IMEConversionMode;
@@ -430,11 +431,6 @@

     /**
      *  @private
-     */
-    private var lastUnscaledWidth:Number = NaN;
-
-    /**
-     *  @private
      *  True if TextOperationEvent.CHANGING should be dispatched at
      *  operationEnd.
      */
@@ -493,6 +489,13 @@
      *  released.
      */
     private var priorEditingMode:String;
+
+    /**
+     *  @private
+     *  Cache the width constraint as set by the layout in setLayoutBoundsSize()
+     *  so that text reflow can be calculated during a subsequent measure pass.
+     */
+    private var widthConstraint:Number = NaN;

     //--------------------------------------------------------------------------
     //
@@ -540,39 +543,21 @@
     }

     //----------------------------------
-    //  explicitWidth
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function set explicitWidth(value:Number):void
-    {
-        if (value == explicitWidth)
-            return;
-
-        super.explicitWidth = value;
-
-        // Re-measure.  The width change could impact the height.
-        invalidateSize();
-    }
-
-    //----------------------------------
-    //  percentWidth
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function set percentWidth(value:Number):void
-    {
-        if (value == percentWidth)
-            return;
-
-        super.percentWidth = value;
-
-        // Re-measure.
-        invalidateSize();
+    //  maxWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function get maxWidth():Number
+    {
+        if (!_autoSize || !isNaN(explicitMaxWidth))
+            return super.maxWidth;
+
+        // The default for maxWidth is 10000 which isn't a
+        // reasonable default for the autoSize width so use the default
+        // measured width which is 160 instead.
+        return  UIComponent.DEFAULT_MEASURED_WIDTH;
     }

     //--------------------------------------------------------------------------
@@ -619,8 +604,13 @@
     /**
      *  @private
      */
-    private var _clipAndEnableScrolling:Boolean = true;
-
+    private var _clipAndEnableScrolling:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var clipAndEnableScrollingChanged:Boolean = false;
+
     /**
      *  @copy mx.layout.LayoutBase#clipAndEnableScrolling
      *
@@ -643,6 +633,9 @@
             return;

         _clipAndEnableScrolling = value;
+
+        clipAndEnableScrollingChanged = true;
+
         // TBD implement this
     }

@@ -1609,6 +1602,18 @@
             selectableChanged = false;
         }

+        // If this component is in a scroller, then we can't autoSize.  Every
+        // time we autoSize, the scroller responds to the size change, which
+        // causes us to remeasure, which causes the scroller to respond to the
+        // size change, and ask us to remeasure, etc.
+        if (clipAndEnableScrollingChanged)
+        {
+            if (_clipAndEnableScrolling)
+                autoSize = false;
+
+            clipAndEnableScrollingChanged = false;
+        }
+
         if (autoSizeChanged)
         {
             var value:String = _autoSize ? "off" : "auto";
@@ -1645,6 +1650,69 @@

     /**
      *  @private
+     *  We override the setLayoutBoundsSize to determine whether to perform
+     *  text reflow. This is a convenient place, as the layout passes NaN
+     *  for a dimension not constrained to the parent.
+     */
+    override public function setLayoutBoundsSize(
+                                width:Number, height:Number,
+                                postLayoutTransform:Boolean = true):void
+    {
+        //trace("setLayoutBoundsSize", width, height);
+
+        super.setLayoutBoundsSize(width, height, postLayoutTransform);
+
+        // Only autoSize cares about the real measured width.
+        if (!_autoSize)
+            return;
+
+        // TODO Possible optimization - if we reflow the text
+        // immediately, we'll be able to detect whether the constrained
+        // width causes the measured height to change.
+        // Also certain layouts like vertical/horizontal will
+        // be able to get the better performance as subsequent elements
+        // will not go through updateDisplayList twice. This also has the
+        // potential of avoiding text compositing during measure.
+
+        // Did we already constrain the width?
+        if (widthConstraint == width)
+            return;
+
+        // No reflow for explicit lineBreak
+        if (getStyle("lineBreak") == "explicit")
+            return;
+
+        // If we don't measure
+        if (skipMeasure())
+            return;
+
+        if (!isNaN(explicitHeight))
+            return;
+
+        // We support reflow only in the case of constrained width and
+        // unconstrained height. Note that we compare with measuredWidth,
+        // as for example the RichEditableText can be
+        // constrained by the layout with "left" and "right", but the
+        // container width itself may not be constrained and it would depend
+        // on the element's measuredWidth.
+        var constrainedWidth:Boolean =
+                !isNaN(width) && (width != measuredWidth) && (width != 0);
+        if (!constrainedWidth)
+            return;
+
+        // We support reflow only when we don't have a transform.
+        // We could add support for scale, but not skew or rotation.
+        var matrix:Matrix = postLayoutTransform ? nonDeltaLayoutMatrix() : null;
+        if (matrix != null)
+            return;
+
+        widthConstraint = width;
+
+        invalidateSize();
+    }
+
+    /**
+     *  @private
      */
     override protected function skipMeasure():Boolean
     {
@@ -1667,34 +1735,13 @@

         if (_autoSize)
         {
-            // percentWidth is a special case for autoSize since we need
-            // updateDisplay() to first tell us the unscaledWidth that has
-            // been calculated from the percentWidth.
-            if (isSpecialCase())
-            {
-                if (!isNaN(lastUnscaledWidth))
-                {
-                    // second time thru - max width is known
-                    measureUsingWidth(lastUnscaledWidth);
-                }
-                else
-                {
-                    // first time thru - can't determine width
-                    measuredWidth = 0;
-                    measuredHeight = 0;
-                }
-            }
-            else
-            {
-                // Normal autoSize.  If toFit will compose up to maxWidth
-                // width.  If explicit, will compose entire width of text.
-                measureUsingWidth(!isNaN(explicitWidth) ? explicitWidth : maxWidth);
-            }
+            measureForAutoSize();
         }
         else
         {
             measuredWidth = Math.round(calculateWidthInChars());
-            measuredHeight = Math.ceil(calculateHeightInLines());
+
+            measuredHeight = Math.round(calculateHeightInLines());
         }

         //trace("measure", measuredWidth, measuredHeight);
@@ -1709,18 +1756,6 @@
         //trace("updateDisplayList", unscaledWidth, unscaledHeight);

         super.updateDisplayList(unscaledWidth, unscaledHeight);
-
-        if (isSpecialCase())
-        {
-            var firstTime:Boolean = isNaN(lastUnscaledWidth) ||
-            						lastUnscaledWidth != unscaledWidth;
-            lastUnscaledWidth = unscaledWidth;
-            if (firstTime)
-            {
-                invalidateSize();
-                return;
-            }
-        }

         if (!_autoSize)
         {
@@ -2033,18 +2068,24 @@

     /**
      *  @private
-     */
-    private function measureUsingWidth(maxComposeWidth:Number):void
-    {
-        // Never compose over the max width because the width will always
-        // be adjusted down to this and it's easy to get into an infinite
-        // measure/update display loop.
-        var composeWidth:Number;
+     *  If the explicit widths and heights are not set to NaN, the
+     *  measuredWidth and measuredHeight are clamped down to these values
+     *  when measure() returns to UIComponent.measureSizes().
+     */
+    private function measureForAutoSize():void
+    {
+        var composeWidth:Number;
+
         if (hostFormat.lineBreak == "toFit")
         {
-            // Need to set a width to cause a wrap if text rather than
-            // formatted content.
-            composeWidth = maxComposeWidth;
+            // Need to set a width to cause a wrap.  Never compose over the
+            // max width because the width will always be adjusted down to this
+            // and it's easy to get into an infinite measure/update display
+            // loop.
+            if (!isNaN(widthConstraint) && widthConstraint <= maxWidth)
+                composeWidth = widthConstraint
+            else
+                composeWidth = maxWidth;
             explicitMinWidth = NaN;
         }
         else
@@ -2070,23 +2111,20 @@

         // If it's an empty text flow, there is one line with one
         // character so the height is good for the line.
-        measuredHeight = Math.ceil(contentBounds.height);
-
-        if (_inputManager.getText().length > 1)
-        {
-            // Non-empty text flow.
-            measuredWidth = Math.ceil(contentBounds.width);
+        measuredHeight = Math.round(contentBounds.height);
+
+        if (_inputManager.getText().length > 0)
+        {
+            // Text flow with a terminator (which has width).
+            measuredWidth = Math.round(contentBounds.width);
         }
         else
         {
-            // Empty text flow.  One Em wide with padding.
-            measuredWidth = Math.ceil(getStyle("fontSize") +
-                                      contentBounds.width);
+            // Empty text flow.  One Em wide so there
+            // is a place to put the insertion cursor.
+            measuredWidth = Math.round(contentBounds.width +
+                                       getStyle("fontSize"));
        }
-
-        // Lock in the compose area so all text is visible.
-        measuredMinWidth = measuredWidth;
-        measuredMinHeight = measuredHeight;
     }

     /**
@@ -2172,9 +2210,9 @@

     	// Without the explicit casts, if padding values are non-zero, the
     	// returned width is a very large number.
-    	return Number(getStyle("paddingLeft")) +
+    	return getStyle("paddingLeft") +
     		   widthInChars * em +
-    		   Number(getStyle("paddingRight"));
+    		   getStyle("paddingRight");
     }

     /**
@@ -2184,8 +2222,7 @@
      */
     private function calculateHeightInLines():Number
     {
-        var height:Number = Number(getStyle("paddingTop")) +
-                            Number(getStyle("paddingBottom"));
+        var height:Number = getStyle("paddingTop") + getStyle("paddingBottom");

         if (heightInLines == 0)
             return height;
@@ -2443,8 +2480,8 @@

     /**
-     *  Sets the selection range and.  If the text is not editable or selectable
-     *  this will also implicitly make the text selectable.
+     *  Sets the selection range.  By default, the entire range is selected.
+     *  If you pass negative numbers for the position, it will deselect.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -2888,7 +2925,9 @@
      */
     private function updateCompleteHandler(event:FlexEvent):void
     {
-        lastUnscaledWidth = NaN;
+        // Make sure that if we did a double pass, next time around we'll
+        // measure normally
+        widthConstraint = NaN;
     }

     /**


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

--- frameworks/projects/spark/src/spark/events/ElementExistenceEvent.as
+++ frameworks/projects/spark/src/spark/events/ElementExistenceEvent.as
@@ -19,6 +19,11 @@
 /**
  *  Represents events that are dispatched when an element of a Group
  *  is created or destroyed.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class ElementExistenceEvent extends Event
 {
@@ -55,6 +60,11 @@
 	 *  </table>
 	 *
      *  @eventType elementAdd
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public static const ELEMENT_ADD:String = "elementAdd";

@@ -83,6 +93,11 @@
 	 *  </table>
 	 *
      *  @eventType elementRemove
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public static const ELEMENT_REMOVE:String = "elementRemove";

@@ -104,6 +119,11 @@
 	 *  @param element Reference to the element that was added or removed.
 	 *
 	 *  @param index The index where the element was added or removed.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function ElementExistenceEvent(
 								type:String, bubbles:Boolean = false,
@@ -129,6 +149,11 @@

     /**
      *  The index where the element was added or removed
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var index:int;

@@ -138,6 +163,11 @@

 	/**
 	 *  Reference to the visual element that was added or removed.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public var element:IVisualElement;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4009
Author:   jimurphy@adobe.com
Date:     2008-11-04T15:10:34.970681Z

Log Message:
-----------
Merged alpha_gumbo revisions 3929,3936-3937,3945,3956,3971,3986,3994,4002,4006 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_component_icon.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.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/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_container_icon_small.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_container_icon.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/src/flash_component_icon_small.png</path>

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

--- frameworks/projects/framework/src/mx/effects/Effect.as
+++ frameworks/projects/framework/src/mx/effects/Effect.as
@@ -246,6 +246,24 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  autoReverse
+    //----------------------------------
+
+    private var _autoReverse:Boolean = false;
+
+    /**
+     * @inheritDoc
+     */
+    public function get autoReverse():Boolean
+    {
+        return _autoReverse;
+    }
+    public function set autoReverse(value:Boolean):void
+    {
+        _autoReverse = value;
+    }
+
+    //----------------------------------
     //  className
     //----------------------------------

@@ -306,6 +324,18 @@
      */
     public function get duration():Number
     {
+        // Instance classes like Parallel or Sequence may have something more
+        // interesting to return for duration
+        if (_instances)
+        {
+            // Return duration of first valid instance
+            for (var i:int = 0; i < _instances.length; ++i)
+            {
+                var instance:IEffectInstance = IEffectInstance(_instances[i]);
+                if (instance)
+                    return instance.duration;
+            }
+        }
         return _duration;
     }

@@ -466,6 +496,58 @@
                 }
             }
         }
+    }
+
+    //----------------------------------
+    //  fromState
+    //----------------------------------
+
+    private var _fromState:String;
+    /**
+     *  The state that the effect is animating from, when played as a
+     *  state transition effect. This information will be set by the component
+     *  setting the state that causes the transition. It is not intended for
+     *  use outside of the Flex framework classes internally.
+     *
+     *  @default null
+     */
+    public function get fromState():String
+    {
+        return _fromState;
+    }
+
+    /**
+     *  @private
+     */
+    public function set fromState(value:String):void
+    {
+        _fromState = value;
+    }
+
+    //----------------------------------
+    //  toState
+    //----------------------------------
+
+    private var _toState:String;
+    /**
+     *  The state that the effect is animating to, when played as a
+     *  state transition effect. This information will be set by the component
+     *  setting the state that causes the transition. It is not intended for
+     *  use outside of the Flex framework classes internally.
+     *
+     *  @default null
+     */
+    public function get toState():String
+    {
+        return _toState;
+    }
+
+    /**
+     *  @private
+     */
+    public function set toState(value:String):void
+    {
+        _toState = value;
     }

     //----------------------------------
@@ -780,6 +862,31 @@
     //--------------------------------------------------------------------------

     /**
+     * @inheritDoc
+     */
+    public function seek(seekTime:Number):void
+    {
+        for (var i:int = 0; i < _instances.length; i++)
+        {
+            if (_instances[i])
+                IEffectInstance(_instances[i]).seek(seekTime);
+        }
+    }
+
+    /**
+     * @inheritDoc
+     */
+    public function get playheadTime():Number
+    {
+        for (var i:int = 0; i < _instances.length; i++)
+        {
+            if (_instances[i])
+                return IEffectInstance(_instances[i]).playheadTime;
+        }
+        return 0;
+    }
+
+    /**
      *  @copy mx.effects.IEffect#getAffectedProperties()
      */
     public function getAffectedProperties():Array /* of String */


Transferred from the Adobe Open Source Subversion Repository

Revision: 8233
Author:   smgilson@adobe.com
Date:     2009-06-25T15:55:19.890382Z

Log Message:
-----------
ASDoc updates post PARB

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

Modified Paths:
--------------
<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/spark/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -538,8 +538,8 @@
      */
     override protected function itemShowingCaret(index:int, showsCaret:Boolean):void
     {
-    	super.itemShowingCaret(index, showsCaret);
-
+        super.itemShowingCaret(index, showsCaret);
+
         var renderer:Object = dataGroup ? dataGroup.getElementAt(index) : null;

         if (renderer is IItemRenderer)
@@ -843,6 +843,9 @@
      *  removed from this component.
      *
      *  @param index The new index.
+     *
+     *  @param add true if an item was added to the component,
+     *  and false if an item was removed.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -955,7 +958,7 @@
             // caretIndex backing variable.
             var oldIndex:Number = caretIndex;
             _caretIndex = getLastItemValue(newInterval);
-
+
             e = new IndexChangedEvent(IndexChangedEvent.CARET_CHANGE);
             e.oldIndex = oldIndex;
             e.newIndex = caretIndex;


yet another tiny fix for WeavePromise

yet another tiny fix for WeavePromise

--- WeaveCore/src/weave/utils/WeavePromise.as
+++ WeaveCore/src/weave/utils/WeavePromise.as
@@ -101,7 +101,7 @@
 				handle_(handler);
 		}

-		public function depend(...linkableObjects):Promise
+		public function depend(...linkableObjects):WeavePromise
 		{
 			if (linkableObjects.length)
 			{


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

--- frameworks/projects/framework/src/mx/managers/CursorManagerPriority.as
+++ frameworks/projects/framework/src/mx/managers/CursorManagerPriority.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2006 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: 21225
Author:   jszeto@adobe.com
Date:     2011-05-07T00:12:54.123878Z

Log Message:
-----------
TextArea text overflow fix

SDK-30404 - Second press in TextArea with long text shows text outside of TextArea

Added null check for oldCaretBounds. It is getting set to null because we shrink the TextField and the caret position is outside the bounds of the new TextField size. This particular issue will get resolved in a later fix.

QE notes: none
Doc notes: none
Bugs: SDK-30404
Reviewer: Tom K
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
@@ -565,7 +565,7 @@
                 // Dispatch an event for an ancestor Scroller
                 // It will scroll the TextArea so the caret is in view
                 convertBoundsToLocal(caretBounds);
-                if (caretBounds.bottom != oldCaretBounds.bottom || caretBounds.top != oldCaretBounds.top)
+                if (oldCaretBounds == null || caretBounds.bottom != oldCaretBounds.bottom || caretBounds.top != oldCaretBounds.top)
                 {
                     //trace("TAS.layoutContents send caret CHANGE");
                     dispatchEvent(new CaretBoundsChangeEvent(CaretBoundsChangeEvent.CARET_BOUNDS_CHANGE,true,true,oldCaretBounds,caretBounds));
@@ -754,7 +754,7 @@

             if (oldCaretBounds != newCaretBounds)
             {
-                //trace("TAS.SK ACTIVATE",keyboardRect,"dispatch caret CHANGE");
+                //trace("TAS.SK ACTIVATE",keyboardRect,"dispatch caret CHANGE","newCaretBounds",newCaretBounds);
                 dispatchEvent(new CaretBoundsChangeEvent(CaretBoundsChangeEvent.CARET_BOUNDS_CHANGE,true,true,oldCaretBounds,newCaretBounds));
                 oldCaretBounds = newCaretBounds;
             }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9178
Author:   jimurphy@adobe.com
Date:     2009-08-07T22:01:37.208193Z

Log Message:
-----------
Fix the build.  removed duplicate line left in comment

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as

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

--- frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLEncoder.as
@@ -125,7 +125,6 @@
      *  @param parentNode An XMLNode under which to put the encoded
      *  value.
      *
-     *  @return The XMLNode object.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9


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

--- frameworks/projects/spark/src/spark/effects/easing/Sine.as
+++ frameworks/projects/spark/src/spark/effects/easing/Sine.as
@@ -1,11 +1,19 @@
-		////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package spark.effects.easing


Fixed an issue with the foxhole themes overriding console look.

--- src/justpinegames/Logi/Console.as
+++ src/justpinegames/Logi/Console.as
@@ -17,6 +17,7 @@
 	import starling.core.Starling;
 	import starling.display.Quad;
 	import starling.events.Event;
+	import starling.events.Event;
 	import starling.text.BitmapFont;
 	import starling.textures.TextureSmoothing;

@@ -123,8 +124,20 @@
 			_copyButton = new Button();
 			_copyButton.labelProperties.smoothing = TextureSmoothing.NONE;
 			_copyButton.label = "Copy All";
-			_copyButton.defaultTextFormat = new BitmapFontTextFormat(_defaultFont, 16, _consoleSettings.textColor);
-			_copyButton.downTextFormat = new BitmapFontTextFormat(_defaultFont, 16, _consoleSettings.highlightColor);
+			_copyButton.addEventListener(starling.events.Event.ADDED, function(e:starling.events.Event):void
+			{
+				_copyButton.defaultTextFormat = new BitmapFontTextFormat(_defaultFont, 16, _consoleSettings.textColor);
+				_copyButton.downTextFormat = new BitmapFontTextFormat(_defaultFont, 16, _consoleSettings.highlightColor);
+
+				_copyButton.disabledSkin = null;
+				_copyButton.defaultSkin = null;
+				_copyButton.upSkin = null;
+				_copyButton.downSkin = null;
+				_copyButton.hoverSkin = null;
+
+				_copyButton.width = 150;
+				_copyButton.height = 40;
+			});
 			_copyButton.onPress.add(copy);
 			_consoleContainer.addChild(_copyButton);

@@ -166,8 +179,8 @@
 			_quad.width = width;
 			_quad.height = _consoleHeight;

-			_copyButton.x = width - 68 - HORIZONTAL_PADDING;
-			_copyButton.y = _consoleHeight - 20 - VERTICAL_PADDING;
+			_copyButton.x = width - 110 - HORIZONTAL_PADDING;
+			_copyButton.y = _consoleHeight - 33 - VERTICAL_PADDING;

 			_list.width = this.stage.stageWidth - HORIZONTAL_PADDING * 2;
 			_list.height = _consoleHeight - VERTICAL_PADDING * 2;
@@ -247,7 +260,10 @@
 			var createLabel:Function = function(text:String, format:BitmapFontTextFormat):Label
 			{
 				var label:Label = new Label();
-				label.textFormat = format;
+				label.addEventListener(starling.events.Event.ADDED, function(e:starling.events.Event):void
+				{
+					label.textFormat = format;
+				});
 				label.smoothing = TextureSmoothing.NONE;
 				label.text = text;
 				label.validate();


fixed null pointer error

fixed null pointer error

Change-Id: I8b1e6e3ebed502e9d532d2cd818d8af46c012987

--- WeaveData/src/weave/data/DataSources/DBFDataSource.as
+++ WeaveData/src/weave/data/DataSources/DBFDataSource.as
@@ -311,6 +311,9 @@
 		}
 		public function getColumnMetadata(columnName:String):Object
 		{
+			if (!columnName)
+				return null;
+
 			var meta:Object = {};
 			meta[DBF_COLUMN_NAME] = columnName;
 			meta[ColumnMetadata.KEY_TYPE] = getKeyType();
@@ -321,7 +324,7 @@
 				meta[ColumnMetadata.DATA_TYPE] = DataType.GEOMETRY;
 				return meta;
 			}
-			else
+			else if (dbfHeader)
 			{
 				meta[ColumnMetadata.TITLE] = columnName;
 				for each (var field:DbfField in dbfHeader.fields)


#SUP-90 #comment unescape input #time 1h

--- plugins/annotationsPlugin/src/com/kaltura/kdpfl/view/AnnotationsBox.as
+++ plugins/annotationsPlugin/src/com/kaltura/kdpfl/view/AnnotationsBox.as
@@ -267,7 +267,7 @@
 				kalturaAnnotation.parentId = parentId;
 				for each(var property : XML in annotationXML.children())
 				{
-					kalturaAnnotation[property.localName().toString()] = property.children()[0] ? property.children()[0].toString() : "";
+					kalturaAnnotation[property.localName().toString()] = property.children()[0] ? unescape(property.children()[0].toString()) : "";
 				}

 				annotation = new Annotation (AnnotationStrings.VIEW_MODE, -1,"","",kalturaAnnotation, initialTabIndex);


Fix incorrect class name in class description

--- src/org/flintparticles/common/initializers/DictionaryInitializer.as
+++ src/org/flintparticles/common/initializers/DictionaryInitializer.as
@@ -34,7 +34,7 @@
 	import org.flintparticles.common.particles.Particle;

 	/**
-	 * The DictionaryInit Initializer copies properties from an initializing object to a particle's dictionary.
+	 * The Dictionary Initializer copies properties from an initializing object to a particle's dictionary.
 	 */
 	public class DictionaryInitializer extends InitializerBase
 	{


add MasterAnimationController

add MasterAnimationController

--- src/aerys/minko/scene/controller/SkeletonController.as
+++ src/aerys/minko/scene/controller/SkeletonController.as
@@ -1,6 +1,8 @@
 package aerys.minko.scene.controller
 {
-	/**
+import aerys.minko.scene.controller.animation.AnimationController;
+
+/**
 	 * The SkeletonController aggregates AnimationController objects
 	 * and control them in order to start/stop playing animations on
 	 * multiple scene nodes at the same time and control a whole


FEC-4467

FEC-4467

update the main mediator with currentBufferLength

--- KalturaHLSPlugin/src/com/kaltura/kdpfl/plugin/KalturaHLSMediator.as
+++ KalturaHLSPlugin/src/com/kaltura/kdpfl/plugin/KalturaHLSMediator.as
@@ -31,6 +31,7 @@
 		public static const HLS_END_LIST:String = "hlsEndList";
 		public static const HLS_TRACK_SWITCH:String = "doTextTrackSwitch";

+		private var _kMediator:KMediaPlayerMediator;
 		private var _mediaProxy:MediaProxy;
 		private var _subtitleTrait:SubtitleTrait;
 		private var _loadTrait:NetStreamLoadTrait;
@@ -41,8 +42,8 @@
 		private var _currentBitrateValue:Number;
 		private var _currentFPS:Number = -1;
 		private var _currentTime:Number = -1;
-
-		public function KalturaHLSMediator( viewComponent:Object=null)
+
+		public function KalturaHLSMediator(viewComponent:Object=null)
 		{
 			super(NAME, viewComponent);
 		}
@@ -50,6 +51,7 @@
 		override public function onRegister():void
 		{
 			_mediaProxy = facade.retrieveProxy(MediaProxy.NAME) as MediaProxy;
+			_kMediator = facade.retrieveMediator(KMediaPlayerMediator.NAME) as KMediaPlayerMediator;
 			super.onRegister();

@@ -106,6 +108,7 @@
 					break;

 				case NotificationType.PLAYER_UPDATE_PLAYHEAD:
+					updateBufferLength();
 					sendCurrentTime();
 					break;
 			}
@@ -255,5 +258,10 @@
 			}
 		}

+		protected function updateBufferLength():void
+		{
+			_kMediator.setCurrentBufferLength(_loadTrait.netStream.bufferLength);
+		}
+
 	}
 }