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

--- frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
+++ frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as
@@ -36,6 +36,11 @@
 	 *  For example, .25 sets a transparency value of 25%.
 	 *
 	 *  @default 1
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get alpha():Number
 	{
@@ -63,6 +68,11 @@
 	 *  appear brighter.
 	 *
 	 *  @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get bias():Number
 	{
@@ -92,6 +102,11 @@
 	 *  as specified in the color and alpha properties.
 	 *
 	 *  @default true
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get clamp():Boolean
 	{
@@ -117,6 +132,11 @@
 	 *  The color of the glow. Valid values are in the hexadecimal format
 	 * 	0xRRGGBB.
 	 *  @default 0xFF0000
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get color():uint
 	{
@@ -143,6 +163,11 @@
 	 * A divisor that is the sum of all the matrix values smooths out the overall
 	 * color intensity of the result. A value of 0 is ignored and the default is
 	 * used instead.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get divisor():Number
 	{
@@ -169,6 +194,11 @@
 	 *  or less means that the original image is copied as is. The default
 	 *  value is 4. Values that are a power of 2 (such as 2, 4, 8, 16, and 32)
 	 *  are optimized to render more quickly than other values.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get matrix():Array
 	{
@@ -193,6 +223,11 @@
 	/**
 	 * The x dimension of the matrix (the number of columns in the matrix).
 	 * @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get matrixX():Number
 	{
@@ -217,6 +252,11 @@
 	/**
 	 * The y dimension of the matrix (the number of columns in the matrix).
 	 * @default 0
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get matrixY():Number
 	{
@@ -246,6 +286,11 @@
 	 *  the convolution applies only to the color channels.
 	 *
 	 *  @default true
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10
+	 *  @playerversion AIR 1.5
+	 *  @productversion Flex 4
 	 */
 	public function get preserveAlpha():Boolean
 	{


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/Move.as
+++ frameworks/projects/spark/src/spark/effects/Move.as
@@ -83,12 +83,12 @@
         ["translationX", "translationY",
          "postLayoutTranslationX","postLayoutTranslationY",
          "left", "right", "top", "bottom",
-         "horizontalCenter", "verticalCenter",
+         "horizontalCenter", "verticalCenter", "baseline",
          "width", "height"];

     private static var RELEVANT_STYLES:Array =
         ["left", "right", "top", "bottom",
-         "horizontalCenter", "verticalCenter"];
+         "horizontalCenter", "verticalCenter", "baseline"];

     //--------------------------------------------------------------------------
     //
@@ -252,8 +252,11 @@
         return AFFECTED_PROPERTIES;
     }

-    // FIXME (chaase): Can we remove this override? It exists only to create motionPaths,
-    // which we should be able to do somewhere else
+    // TODO (chaase): Should try to remove this override. At a minimum, we could
+    // put the motionPaths creation at the start of initInstance(). Ideally, we'd
+    // remove that logic entirely, but there's a need to create motionPaths fresh
+    // for every call to create/initInstance() or else multi-instance effects
+    // will inherit the one motionPaths object created elsewhere.
     /**
      * @private
      */


Nicer logging.

Nicer logging.

--- src/swf2png.as
+++ src/swf2png.as
@@ -52,7 +52,7 @@
 		private function loadSwf():void {

 			loader = new Loader();
-			outfield.appendText("\nLoading " + inputFilePath);
+			log("Loading " + inputFilePath);
 			loader.load(new URLRequest("file://" + inputFilePath));
 			loader.contentLoaderInfo.addEventListener(Event.INIT, startLoop);

@@ -63,9 +63,9 @@
 			loadedSwf = MovieClip(ev.target.content);
 			outputWidth = Math.ceil(ev.target.width);
 			outputHeight = Math.ceil(ev.target.height);
-			outfield.appendText("\nLoaded!");
+			log("Loaded!");
 			totalFrames = loadedSwf.totalFrames;
-			outfield.appendText("\nFrame count: " + totalFrames);
+			log("Frame count: " + totalFrames);

 			calculateBBox();

@@ -110,7 +110,7 @@
 				Math.ceil(boundsArray.h[0])
 			);

-			outfield.appendText("\nBounding box: " + bBox)
+			log("Bounding box: " + bBox)

 			outputWidth = bBox.width;
 			outputHeight = bBox.height;
@@ -129,7 +129,7 @@
 			}
 			else {
 				timer.stop();
-				outfield.appendText("\nDone!");
+				log("Done!");
 				exit(0);
 				return;
 			}
@@ -143,8 +143,7 @@
 			var outfileName:String = outputDirPath + File.separator + prefix + separator + counter + ".png"
 			var file:File = new File(outfileName);

-			outfield.appendText("\nPrefix: " + prefix);
-			outfield.appendText("\nWriting: " + outfileName);
+			log("Writing: " + outfileName);
 			var stream:FileStream = new FileStream();
 			stream.open(file, "write");
 			stream.writeBytes(bytearr);
@@ -194,10 +193,11 @@
 					return "";
 				}
 				prefix = matches[1];
+				log("Prefix: " + prefix);
 				var f:File = new File(ev.currentDirectory.nativePath);
 				f = f.resolvePath(inputFileName);
 				if(!f.exists) {
-					outfield.appendText("\nInput file not found!");
+					log("Input file not found!");
 					//Input file not found
 					exit(3);
 					return "";
@@ -223,7 +223,7 @@
 					exit(4);
 					return "";
 				}
-				outfield.appendText("\ninpt: " + d.nativePath);
+				log("inpt: " + d.nativePath);
 				return d.nativePath;
 			}
 			else {
@@ -238,20 +238,25 @@
 					}
 				}
 				else {
-					outfield.appendText("\ncwd: " + ev.currentDirectory.nativePath);
+					log("cwd: " + ev.currentDirectory.nativePath);
 					return ev.currentDirectory.nativePath;
 				}
 				return "";
 			}
 		}
+
+		private function log(message:String="", add_new_line:Boolean=true):void {
+			outfield.appendText((add_new_line ? "\n" : "") + message);
+		}
+
 		//Invoke handler called when started
 		private function onInvoke(ev:InvokeEvent):void {

 			inputFilePath = getInputFile(ev);
 			outputDirPath = getOutputDir(ev);

-			outfield.appendText("\nInput file: " + inputFilePath);
-			outfield.appendText("\nOutput directory: " + outputDirPath);
+			log("Input file: " + inputFilePath);
+			log("Output directory: " + outputDirPath);
 			loadSwf();
 		}


LineShader listen to triangleCulling, depthWriteEnabled and depthTest mesh bindings

--- src/aerys/minko/render/material/line/LineShader.as
+++ src/aerys/minko/render/material/line/LineShader.as
@@ -1,13 +1,13 @@
 package aerys.minko.render.material.line
 {
 	import aerys.minko.render.RenderTarget;
+	import aerys.minko.render.geometry.primitive.LineGeometry;
 	import aerys.minko.render.material.basic.BasicProperties;
 	import aerys.minko.render.shader.SFloat;
 	import aerys.minko.render.shader.Shader;
 	import aerys.minko.render.shader.ShaderSettings;
-	import aerys.minko.type.enum.SamplerFormat;
+	import aerys.minko.type.enum.DepthTest;
 	import aerys.minko.type.enum.TriangleCulling;
-	import aerys.minko.render.geometry.primitive.LineGeometry;

 	public class LineShader extends Shader
 	{
@@ -20,8 +20,17 @@
 		override protected function initializeSettings(settings : ShaderSettings) : void
 		{
 			super.initializeSettings(settings);
+			// depth test
+			settings.depthWriteEnabled = meshBindings.getProperty(
+				BasicProperties.DEPTH_WRITE_ENABLED, true
+			);
+			settings.depthTest = meshBindings.getProperty(
+				BasicProperties.DEPTH_TEST, DepthTest.LESS
+			);

-			settings.triangleCulling = TriangleCulling.NONE;
+			settings.triangleCulling = meshBindings.getProperty(
+				BasicProperties.TRIANGLE_CULLING, TriangleCulling.NONE
+			);
 		}

 		override protected function getVertexPosition():SFloat


Remove .constructor from scope name logic

--- src/asfac/src/com/thedevstop/asfac/AsFactory.as
+++ src/asfac/src/com/thedevstop/asfac/AsFactory.as
@@ -34,9 +34,9 @@
 		 */
 		public function register(instance:*, type:Class, scope:* = DefaultScopeName, asSingleton:Boolean=false):void
 		{
-			var scopeName:String = scope is Class
-				? getQualifiedClassName(scope)
-				: scope is String ? scope : getQualifiedClassName(scope.constructor);
+			var scopeName:String = scope is String
+				? scope
+				: getQualifiedClassName(scope);

 			if (instance is Class)
 				registerType(instance, type, scopeName, asSingleton);
@@ -126,9 +126,9 @@
 		{
 			var registrationsByScope:Dictionary = _registrations[type];

-			var scopeName:String = scope is Class
-				? getQualifiedClassName(scope)
-				: scope is String ? scope : getQualifiedClassName(scope.constructor);
+			var scopeName:String = scope is String
+				? scope
+				: getQualifiedClassName(scope);

 			if (registrationsByScope)
 			{


Added title to uload limit warning

Added title to uload limit warning

--- flexEditor/src/org/arisgames/editor/components/ItemEditorMediaPickerUploadFormView.as
+++ flexEditor/src/org/arisgames/editor/components/ItemEditorMediaPickerUploadFormView.as
@@ -188,9 +188,9 @@
 					fileOK = true;
 				}
 				else {
-					Alert.show("Sorry!\n"+fileChosen.name+" is too large...\n\n"+
+					Alert.show("Sorry! The file you chose is too large...\n\n"+
 						fileChosen.name+": "+Math.round(((fileChosen.size)/1024)/1024)+" MB\n"+
-						"Max Filesize: "+Math.round(((AppConstants.MAX_UPLOAD_SIZE)/1024)/1024)+" MB");
+						"Max Filesize: "+Math.round(((AppConstants.MAX_UPLOAD_SIZE)/1024)/1024)+" MB", "File Size Too Large");
 				}
             }
         }


The event needs to be cancellable now.

The event needs to be cancellable now.

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

--- src/as/com/threerings/mx/events/CommandEvent.as
+++ src/as/com/threerings/mx/events/CommandEvent.as
@@ -39,7 +39,7 @@
      */
     public function CommandEvent (command :String, arg :Object)
     {
-        super(TYPE, true);
+        super(TYPE, true, true);
         if (_blockConstructor) {
             throw new IllegalOperationError();
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5113
Author:   jimurphy@adobe.com
Date:     2009-02-27T20:48:28.618768Z

Log Message:
-----------
Merge 3.x revisions 5042,5072-5073,5090-5091 -> trunk
This includes the latest released player 10.0.22.87

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 Plugin.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/flashplayer.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Install Flash Player 10 UB.dmg</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/install_flash_player_10_linux.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/Install Flash Player 10 ActiveX.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/Base64Encoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/lnx/libflashplayer.so.tar.gz</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/win/FlashPlayer.exe</path>
<path kind="file" action="M">/flex/sdk/trunk/in/player/10/mac/Flash Player.app.zip</path>

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

--- frameworks/projects/mx/src/mx/controls/ComboBase.as
+++ frameworks/projects/mx/src/mx/controls/ComboBase.as
@@ -819,7 +819,7 @@
         //2 code paths: one for before collection, one after
         if (!collection || collection.length == 0)
         {
-            _selectedItem = value;
+           _selectedItem = data;
             selectedItemChanged = true;
             invalidateDisplayList();
             return;
@@ -1334,18 +1334,18 @@
             }
         }

+        if (selectedItemChanged)
+        {
+            selectedItem = selectedItem;
+            selectedItemChanged = false;
+            selectedIndexChanged = false;
+        }

         if (selectedIndexChanged)
         {
             selectedIndex = selectedIndex;
             selectedIndexChanged = false;
-        }
-
-        if (selectedItemChanged)
-        {
-            selectedItem = selectedItem;
-            selectedItemChanged = false;
-        }
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 17012
Author:   matamel@adobe.com
Date:     2010-07-22T12:39:40.302991Z

Log Message:
-----------
Bug: SDK-16648 - code assistant of Producer/Consumer shows wrong event value
QA: Yes
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/Channel.as
+++ frameworks/projects/rpc/src/mx/messaging/Channel.as
@@ -46,7 +46,7 @@
  *
  *  @eventType mx.messaging.events.ChannelEvent.CONNECT
  */
-[Event(name="channelConnect", type="mx.messaging.events.ChannelEvent")]
+[Event(name="connect", type="mx.messaging.events.ChannelEvent")]

 /**
  *  Dispatched after the channel has disconnected from its endpoint.
@@ -59,7 +59,7 @@
  *  @productversion BlazeDS 4
  *  @productversion LCDS 3
  */
-[Event(name="channelDisconnect", type="mx.messaging.events.ChannelEvent")]
+[Event(name="disconnect", type="mx.messaging.events.ChannelEvent")]

 /**
  *  Dispatched after the channel has faulted.
@@ -72,7 +72,7 @@
  *  @productversion BlazeDS 4
  *  @productversion LCDS 3
  */
-[Event(name="channelFault", type="mx.messaging.events.ChannelFaultEvent")]
+[Event(name="fault", type="mx.messaging.events.ChannelFaultEvent")]

 /**
  *  Dispatched when a channel receives a message from its endpoint.


Transferred from the Adobe Open Source Subversion Repository

Revision: 7918
Author:   chaase@adobe.com
Date:     2009-06-17T16:55:30.271215Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move.as
+++ frameworks/projects/spark/src/spark/effects/Move.as
@@ -13,10 +13,19 @@
 {
 import flash.geom.Vector3D;

+import mx.core.mx_internal;
 import mx.effects.IEffectInstance;

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

 /**
  *  The Move effect move the target object
@@ -83,25 +92,6 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  affectLayout
-    //----------------------------------
-    [Inspectable(category="General")]
-    /**
-     *  Specifies whether the parent container of the effect target
-     *  updates its layout based on changes to the effect target
-     *  while the effect plays.
-     *
-     *  @default true
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public var affectLayout:Boolean = true;
-
-
-    //----------------------------------
     //  yBy
     //----------------------------------

@@ -233,7 +223,7 @@
      */
     override protected function initInstance(instance:IEffectInstance):void
     {
-       if(affectLayout)
+        if (!applyChangesPostLayout)
         {
             addMotionPath("translationX", xFrom, xTo, xBy);
             addMotionPath("translationY", yFrom, yTo, yBy);


Adjust watermark logic to be typesafe for wrapping.

--- HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
+++ HLSPlugin/src/com/kaltura/hls/m2ts/M2TSFileHandler.as
@@ -45,11 +45,10 @@
 		public var isBestEffort:Boolean = false;

 		private var _parser:TSPacketParser;
-		private var _curTimeOffset:uint;
 		private var _buffer:ByteArray;
 		private var _fragReadBuffer:ByteArray;
 		private var _encryptedDataBuffer:ByteArray;
-		private var _timeOrigin:uint;
+		private var _timeOrigin:Number;
 		private var _timeOriginNeeded:Boolean;
 		private var _segmentBeginSeconds:Number;
 		private var _segmentLastSeconds:Number;
@@ -407,24 +406,24 @@
 			return basicProcessFileSegment(input || new ByteArray(), true);
 		}

-		public var flvLowWaterAudio:uint = 0;
-		public var flvLowWaterVideo:uint = 0;
+		public var flvLowWaterAudio:int = int.MIN_VALUE;
+		public var flvLowWaterVideo:int = int.MIN_VALUE;
 		public var flvRecoveringIFrame:Boolean = false;
-		public const filterThresholdMs:uint = 64;
+		public const filterThresholdMs:int = 64;

 		private function clearFLVWaterMarkFilter():void
 		{
-			flvLowWaterAudio = 0;
-			flvLowWaterVideo = 0;
+			flvLowWaterAudio = int.MIN_VALUE;
+			flvLowWaterVideo = int.MIN_VALUE;
 			flvRecoveringIFrame = false;
 		}

-		private function handleFLVMessage(timestamp:uint, message:ByteArray, duration:uint):void
+		private function handleFLVMessage(timestamp:int, message:ByteArray, duration:int):void
 		{
 			var timestampSeconds:Number = timestamp / 1000.0;
 			var endTimestampSeconds:Number = (timestamp + duration) / 1000.0;

-			if(_segmentBeginSeconds < 0)
+			if(timestampSeconds < _segmentBeginSeconds)
 			{
 				_segmentBeginSeconds = timestampSeconds;

@@ -493,7 +492,7 @@
 				{
 					CONFIG::LOGGING
 					{
-						logger.debug("SKIPPING TOO LOW FLV VID TS @ " + timestamp);
+						logger.debug("SKIPPING TOO LOW FLV VID TS @ " + timestamp + " flvLowWaterVideo=" + flvLowWaterVideo);
 					}

 					if(SEND_LOGS)
@@ -543,9 +542,9 @@
 				_timeOrigin = timestamp;

 			// Encode the timestamp.
+			message[4] = (timestamp >> 16) & 0xff;
+			message[5] = (timestamp >>  8) & 0xff;
 			message[6] = (timestamp      ) & 0xff;
-			message[5] = (timestamp >>  8) & 0xff;
-			message[4] = (timestamp >> 16) & 0xff;
 			message[7] = (timestamp >> 24) & 0xff;

 			// If timer was reset due to seek, reset last subtitle time


Transferred from the Adobe Open Source Subversion Repository

Revision: 6197
Author:   preilly@adobe.com
Date:     2009-04-22T18:38:17.547459Z

Log Message:
-----------
* Data binding optimization, which sets the Binding's source function
  to null and uses the source String to lookup the source value when
  the source is a public Document property or variable.  This should
  reduce compile time and runtime memory usage.

tests Passed: checkintests, mxunit databinding with and without AST gen

Needs QA: YES

Needs DOC: NO

API Change: NO

Reviewer: Pete F.

Code-level description of changes:

  frameworks/projects/framework/src/mx/binding/Binding.as

    Added srcString variable and param to constructor.

    Added defaultSrcFunc().

    Modified constructor to use defaultSrcFunc() when srcFunc is null.

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java

    Modified evaluate(Context, FunctionCommonNode) to use srcString,
    when srcFunc is null.

  modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java

    Added getSkeletonClass().

  modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java

    Added getSourceAsProperty() and isSourcePublicProperty().

  modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm

    Modified emitBindingsSetup macro to output null for the srcFunc
    and output a srcString, when isSourcePublicProperty() is true.

  modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

    Modified generateBinding() to do the AST gen equivalent of the
    ClassDefLib.vm changes.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Repeater.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/Binding.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/binding/Binding.as
+++ frameworks/projects/framework/src/mx/binding/Binding.as
@@ -53,7 +53,8 @@
      *  @productversion Flex 3
      */
     public function Binding(document:Object, srcFunc:Function,
-						    destFunc:Function, destString:String)
+						    destFunc:Function, destString:String,
+							srcString:String = null)
     {
 		super();

@@ -61,6 +62,12 @@
         this.srcFunc = srcFunc;
         this.destFunc = destFunc;
         this.destString = destString;
+        this.srcString = srcString;
+
+        if (this.srcFunc == null)
+        {
+            this.srcFunc = defaultSrcFunc;
+        }

         if (this.destFunc == null)
         {
@@ -210,6 +217,16 @@
      *  @productversion Flex 3
      */
     mx_internal var destString:String;
+
+	/**
+     *  The source represented as a String.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    mx_internal var srcString:String;

 	/**
 	 * 	@private
@@ -243,6 +260,11 @@
         }

         element[chain[i]] = value;
+    }
+
+    private function defaultSrcFunc():Object
+    {
+        return document[srcString];
     }

     /**


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

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

 package spark.collections
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4607
Author:   rfrishbe@adobe.com
Date:     2009-01-21T18:45:20.590199Z

Log Message:
-----------
Change the way we handle setItemAt in DataGroup..we now do it synchronously again.  However, this has the consequence that, even temporarily, you are not allowed to have the save visual element listed twice in the data collection.

Get parity with Halo behavior and Flash behavior by allowing addElement()/addElementAt() to be called on an element already in the list.  When this happens just shift the indices around.

Small ASDoc fix in GroupBase.  Also, change the way we handle data being set int he default complex item renderer...this way we're not using binding, and the code is also easier to understand.

QE Notes: Write tests for addElement/addElementAt on items already in the group.
Doc Notes: None
Bugs: SDK-17909, SDK-18189
Reviewer: Hans
tests: checkintests, mustella DataGroup, List, Group, FxContainer, FxDataContainer

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.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/skins/spark/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -500,7 +500,15 @@
      */
     public function addElement(element:IVisualElement):IVisualElement
     {
-        return addElementAt(element, numElements);
+        var index:int = numElements;
+
+        // This handles the case where we call addElement on something
+        // that already is in the list.  Let's just handle it silently
+        // and not throw up any errors.
+        if (element.parent == this)
+            index = numElements-1;
+
+        return addElementAt(element, index);
     }

     /**
@@ -514,6 +522,15 @@
         // check for RangeError:
         checkForRangeError(index, true);

+        // This handles the case where we call addElement on something
+        // that already is in the list.  Let's just handle it silently
+        // and not throw up any errors.
+        if (element.parent == this)
+        {
+            setElementIndex(element, index);
+            return element;
+        }
+
         // If we don't have any content yet, initialize it to an empty array
         if (_mxmlContent == null)
             _mxmlContent = [];
@@ -574,7 +591,7 @@
     public function setElementIndex(element:IVisualElement, index:int):void
     {
         // check for RangeError...this is done in addItemAt
-        // but we want to do it before removing the item
+        // but we want to do it before removing the element
         checkForRangeError(index);

         removeElement(element);


Transferred from the Adobe Open Source Subversion Repository

Revision: 7054
Author:   gosmith@adobe.com
Date:     2009-05-19T04:55:28.921976Z

Log Message:
-----------
TextGraphicElement now exposes non-inheriting backgroundColor and backgroundAlpha styles for drawing a background within the entire bounding rectangle of the component. We're adding this because TLF supports backgroundColor and backgroundAlpha on pieces of text.

QE Notes: None
Doc Notes: None
Bugs: Part of SDK-19818
Reviewer: Carol

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -49,14 +49,18 @@

 use namespace mx_internal;

-[DefaultProperty("text")]
-
 //--------------------------------------
 //  Styles
 //--------------------------------------

 include "../styles/metadata/BasicTextLayoutFormatStyles.as"
 include "../styles/metadata/NonInheritingTextLayoutFormatStyles.as"
+
+//--------------------------------------
+//  Other metadata
+//--------------------------------------
+
+[DefaultProperty("text")]

 [IconFile("SimpleText.png")]

@@ -166,14 +170,6 @@
      */
     private static var recreateTextLine:Function;

-    /**
-     *  @private
-     *  Used for debugging.
-     *  Set this to an RGB uint to draw an opaque background
-     *  so that you can see the bounds of the component.
-     */
-    mx_internal static var backgroundColor:Object = null;
-
 	//--------------------------------------------------------------------------
     //
     //  Class properties
@@ -305,32 +301,6 @@
         _fontContext = value;
     }

-    //--------------------------------------------------------------------------
-    //
-    //  Overridden methods: UIComponent
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    override protected function updateDisplayList(unscaledWidth:Number,
-    											  unscaledHeight:Number):void
-    {
-    	super.updateDisplayList(unscaledWidth, unscaledHeight);
-
-    	// Draw an optional background for debugging.
-    	var bc:Object = backgroundColor;
-    	if (bc != null)
-    	{
-	    	var g:Graphics = Sprite(drawnDisplayObject).graphics;
-	        g.lineStyle();
-	        g.beginFill(uint(bc));
-	       	g.drawRect(drawX, drawY, unscaledWidth, unscaledHeight);
-	        g.endFill();
-	    }
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Methods


Transferred from the Adobe Open Source Subversion Repository

Revision: 12685
Author:   klin@adobe.com
Date:     2009-12-09T03:23:32.740879Z

Log Message:
-----------
Fix for RTE in VideoPlayer when trying to capture bitmaps. Put try-catch block around bitmapData.draw() and use a Rectangle if it throws an error. Also, added some documentation in BitmapUtil for getSnapshot since it may throw the same type of error.

QE notes: No
Doc notes: No
Bugs: SDK-24574
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/skins/spark/HighlightBitmapCaptureSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/BitmapUtil.as</path>

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

--- frameworks/projects/spark/src/spark/utils/BitmapUtil.as
+++ frameworks/projects/spark/src/spark/utils/BitmapUtil.as
@@ -45,7 +45,12 @@
      *  @param target The object to capture in the resulting BitmapData
      *
      *  @return A BitmapData object containing the image.
-     *
+     *
+     *  @throws SecurityError The target object and  all of its child
+     *  objects do not come from the same domain as the caller,
+     *  or are not in a content that is accessible to the caller by having called the
+     *  Security.allowDomain() method.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5


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

--- frameworks/projects/framework/src/FrameworkClasses.as
+++ frameworks/projects/framework/src/FrameworkClasses.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
 {


Revert change as test is failing - it's likely that change is OK and test is incorrect but this is holding up the release candidate

--- frameworks/projects/spark/src/mx/core/FTETextField.as
+++ frameworks/projects/spark/src/mx/core/FTETextField.as
@@ -179,7 +179,7 @@
          *  which control what work validateNow() needs to do.
          */
         private static const FLAG_TEXT_SET:uint = 1 << 6;
-        public static const FLAG_HTML_TEXT_SET:uint = 1 << 7;
+        private static const FLAG_HTML_TEXT_SET:uint = 1 << 7;
         private static const FLAG_TEXT_LINES_INVALID:uint = 1 << 8;
         private static const FLAG_GRAPHICS_INVALID:uint = 1 << 9;

@@ -2437,7 +2437,7 @@
         /**
          *  @private
          */
-        public function clearFlag(mask:uint):void
+        private function clearFlag(mask:uint):void
         {
             flags &= ~mask;
         }
@@ -3653,10 +3653,7 @@
         // and needs to be regenerated on demand,
         // because with htmlText what-you-set-is-not-what-you-get.
         if (!styleSheet)
-		{
             htmlText = null;
-			textField.clearFlag(FTETextField.FLAG_HTML_TEXT_SET);
-		}

         if (!textFlow)
             return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7501
Author:   rfrishbe@adobe.com
Date:     2009-06-03T00:33:34.079861Z

Log Message:
-----------
Fixing a bug in Flex Component Kit for Flash where flash components weren't being sized correctly inside of a Halo Canvas or a Panel with absolute positioning.

PARB Changes: "trackSizeChanges" -> "autoUpdateMeasuredSize" and "trackStateChanges" -> "autoUpdateCurrentState"

QE Notes: -
Doc Notes: -
Bugs: SDK-21546
Reviewer: Deepa
tests: mustella FCK

Modified Paths:
--------------
<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>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -680,13 +680,13 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  trackSizeChanges
+    //  autoUpdateMeasuredSize
     //----------------------------------

     /**
      * @private
      */
-    private var _trackSizeChanges:Boolean = false;
+    private var _autoUpdateMeasuredSize:Boolean = false;

     [Inspectable(category="General")]

@@ -707,39 +707,39 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-    public function get trackSizeChanges():Boolean
-    {
-        return _trackSizeChanges;
-    }
-
-    /**
-     *  @private
-     */
-    public function set trackSizeChanges(value:Boolean):void
-    {
-        if (_trackSizeChanges == value)
+    public function get autoUpdateMeasuredSize():Boolean
+    {
+        return _autoUpdateMeasuredSize;
+    }
+
+    /**
+     *  @private
+     */
+    public function set autoUpdateMeasuredSize(value:Boolean):void
+    {
+        if (_autoUpdateMeasuredSize == value)
             return;

-        _trackSizeChanges = value;
-
-        if(_trackSizeChanges)
-        {
-            addEventListener(Event.ENTER_FRAME, trackSizeChangesEnterFrameHandler, false, 0, true);
+        _autoUpdateMeasuredSize = value;
+
+        if(_autoUpdateMeasuredSize)
+        {
+            addEventListener(Event.ENTER_FRAME, autoUpdateMeasuredSizeEnterFrameHandler, false, 0, true);
         }
         else
         {
-            removeEventListener(Event.ENTER_FRAME, trackSizeChangesEnterFrameHandler);
-        }
-    }
-
-    //----------------------------------
-    //  trackStateChanges
+            removeEventListener(Event.ENTER_FRAME, autoUpdateMeasuredSizeEnterFrameHandler);
+        }
+    }
+
+    //----------------------------------
+    //  autoUpdateCurrentState
     //----------------------------------

     /**
      * @private
      */
-    private var _trackStateChanges:Boolean = false;
+    private var _autoUpdateCurrentState:Boolean = false;

     [Inspectable(category="General")]

@@ -760,28 +760,28 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-    public function get trackStateChanges():Boolean
-    {
-        return _trackStateChanges;
-    }
-
-    /**
-     *  @private
-     */
-    public function set trackStateChanges(value:Boolean):void
-    {
-        if (_trackStateChanges == value)
+    public function get autoUpdateCurrentState():Boolean
+    {
+        return _autoUpdateCurrentState;
+    }
+
+    /**
+     *  @private
+     */
+    public function set autoUpdateCurrentState(value:Boolean):void
+    {
+        if (_autoUpdateCurrentState == value)
             return;

-        _trackStateChanges = value;
-
-        if(_trackStateChanges)
-        {
-            addEventListener(Event.ENTER_FRAME, trackStateChangesEnterFrameHandler, false, 0, true);
+        _autoUpdateCurrentState = value;
+
+        if(_autoUpdateCurrentState)
+        {
+            addEventListener(Event.ENTER_FRAME, autoUpdateCurrentStateEnterFrameHandler, false, 0, true);
         }
         else
         {
-            removeEventListener(Event.ENTER_FRAME, trackStateChangesEnterFrameHandler);
+            removeEventListener(Event.ENTER_FRAME, autoUpdateCurrentStateEnterFrameHandler);
         }
     }

@@ -2630,7 +2630,7 @@
      */
     public function getConstraintValue(constraintName:String):*
     {
-        return this[constraintName];
+        return this["_"+constraintName];
     }

     /**
@@ -4344,7 +4344,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-    protected function trackSizeChangesEnterFrameHandler(event:Event):void
+    protected function autoUpdateMeasuredSizeEnterFrameHandler(event:Event):void
     {
         // Size check.
         var currentBounds:Rectangle = bounds;
@@ -4376,7 +4376,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 4
      */
-    protected function trackStateChangesEnterFrameHandler(event:Event):void
+    protected function autoUpdateCurrentStateEnterFrameHandler(event:Event):void
     {
         // Check for the current state.  This is really only checked for if
         // trackStateChanged == true.  This is so that if we magically land


Fixed TestScene.as not saving the scene correctly if working directory was not Bin.

--- Bin/Data/Scripts/TestScene.as
+++ Bin/Data/Scripts/TestScene.as
@@ -319,13 +319,13 @@

         if (input.keyPress[KEY_F5])
         {
-            File@ xmlFile = File("Data/Scene.xml", FILE_WRITE);
+            File@ xmlFile = File(fileSystem.programDir + "Data/Scene.xml", FILE_WRITE);
             testScene.SaveXML(xmlFile);
         }

         if (input.keyPress[KEY_F7])
         {
-            File@ xmlFile = File("Data/Scene.xml", FILE_READ);
+            File@ xmlFile = File(fileSystem.programDir + "Data/Scene.xml", FILE_READ);
             if (xmlFile.open)
                 testScene.LoadXML(xmlFile);
         }


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

--- frameworks/projects/spark/src/spark/components/BorderContainer.as
+++ frameworks/projects/spark/src/spark/components/BorderContainer.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: 11804
Author:   klin@adobe.com
Date:     2009-11-13T23:37:14.037258Z

Log Message:
-----------
Fix for https://bugs.adobe.com/jira/browse/SDK-24205. ComboBox checked to see if the focusOut target was itself, but if the ComboBox is editable then the target is actually the TextField. I altered it to check if the target is contained by the ComboBox instead. This allows the dropDown to close if the user tabs out of the ComboBox with the dropDown open. Same fix in DateField.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -2466,7 +2466,8 @@
      */
     override protected function focusOutHandler(event:FocusEvent):void
     {
-        if (showingDropdown && event != null && event.target == this)
+        if (showingDropdown && event != null &&
+            this.contains(DisplayObject(event.target)))
             displayDropdown(false);

         super.focusOutHandler(event);


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

--- frameworks/projects/mx/src/mx/skins/halo/TabSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/TabSkin.as
@@ -0,0 +1,435 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.skins.halo
+{
+
+import flash.display.DisplayObjectContainer;
+import flash.display.GradientType;
+import flash.utils.getQualifiedClassName;
+import flash.utils.describeType;
+import mx.core.EdgeMetrics;
+import mx.core.UIComponent;
+import mx.skins.Border;
+import mx.styles.IStyleClient;
+import mx.styles.StyleManager;
+import mx.utils.ColorUtil;
+
+/**
+ *  The skin for all the states of a Tab in a TabNavigator or TabBar.
+ */
+public class TabSkin extends Border
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static var cache:Object = {};
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Several colors used for drawing are calculated from the base colors
+	 *  of the component (themeColor, borderColor and fillColors).
+	 *  Since these calculations can be a bit expensive,
+	 *  we calculate once per color set and cache the results.
+	 */
+	private static function calcDerivedStyles(themeColor:uint,
+											  borderColor:uint,
+											  falseFillColor0:uint,
+											  falseFillColor1:uint,
+											  fillColor0:uint,
+											  fillColor1:uint):Object
+	{
+		var key:String = HaloColors.getCacheKey(themeColor, borderColor,
+												falseFillColor0,
+												falseFillColor1,
+												fillColor0, fillColor1);
+
+		if (!cache[key])
+		{
+			var o:Object = cache[key] = {};
+
+			// Cross-component styles.
+			HaloColors.addHaloColors(o, themeColor, fillColor0, fillColor1);
+
+			// Tab-specific styles.
+			o.borderColorDrk1 =
+				ColorUtil.adjustBrightness2(borderColor, 10);
+			o.falseFillColorBright1 =
+				ColorUtil.adjustBrightness(falseFillColor0, 15);
+			o.falseFillColorBright2 =
+				ColorUtil.adjustBrightness(falseFillColor1, 15);
+		}
+
+		return cache[key];
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function TabSkin()
+	{
+		super();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  borderMetrics
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the borderMetrics property.
+	 */
+	private var _borderMetrics:EdgeMetrics = new EdgeMetrics(1, 1, 1, 1);
+
+	/**
+	 *  @private
+	 */
+	override public function get borderMetrics():EdgeMetrics
+	{
+		return _borderMetrics;
+	}
+
+	//----------------------------------
+	//  measuredWidth
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function get measuredWidth():Number
+	{
+		return UIComponent.DEFAULT_MEASURED_MIN_WIDTH;
+	}
+
+	//----------------------------------
+	//  measuredHeight
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function get measuredHeight():Number
+	{
+		return UIComponent.DEFAULT_MEASURED_MIN_HEIGHT;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function updateDisplayList(w:Number, h:Number):void
+	{
+		super.updateDisplayList(w, h);
+
+		// User-defined styles.
+		var backgroundAlpha:Number = getStyle("backgroundAlpha");
+		var backgroundColor:Number = getStyle("backgroundColor");
+		var borderColor:uint = getStyle("borderColor");
+		var cornerRadius:Number = getStyle("cornerRadius");
+		var fillAlphas:Array = getStyle("fillAlphas");
+		var fillColors:Array = getStyle("fillColors");
+		StyleManager.getColorNames(fillColors);
+		var highlightAlphas:Array = getStyle("highlightAlphas");
+		var themeColor:uint = getStyle("themeColor");
+
+		// Placehold styles stub.
+		var falseFillColors:Array = []; /* of Number*/ // added style prop
+		falseFillColors[0] = ColorUtil.adjustBrightness2(fillColors[0], -5);
+		falseFillColors[1] = ColorUtil.adjustBrightness2(fillColors[1], -5);
+
+		// Derivative styles.
+		var derStyles:Object = calcDerivedStyles(themeColor, borderColor,
+												 falseFillColors[0],
+												 falseFillColors[1],
+												 fillColors[0], fillColors[1]);
+
+		var parentedByTabNavigator:Boolean = parent != null &&
+												parent.parent != null &&
+												parent.parent.parent != null &&
+												isTabNavigator(parent.parent.parent);
+
+		var tabOffset:Number = 1;
+		if (parentedByTabNavigator)
+			tabOffset = Object(parent.parent.parent).borderMetrics.top;
+
+		var drawBottomLine:Boolean =
+			parentedByTabNavigator &&
+			IStyleClient(parent.parent.parent).getStyle("borderStyle") != "none" &&
+			tabOffset >= 0;
+
+		var cornerRadius2:Number = Math.max(cornerRadius - 2, 0);
+		var cr:Object = { tl: cornerRadius, tr: cornerRadius, bl: 0, br: 0 };
+		var cr2:Object = { tl: cornerRadius2, tr: cornerRadius2, bl: 0, br: 0 };
+
+		graphics.clear();
+
+		switch (name)
+		{
+			case "upSkin":
+			{
+   				var upFillColors:Array =
+					[ falseFillColors[0], falseFillColors[1] ];
+
+				var upFillAlphas:Array = [ fillAlphas[0], fillAlphas[1] ];
+
+				// outer edge
+				drawRoundRect(
+					0, 0, w, h - 1, cr,
+					[ derStyles.borderColorDrk1, borderColor], 1,
+					verticalGradientMatrix(0, 0, w, h),
+					GradientType.LINEAR, null,
+					{ x: 1, y: 1, w: w - 2, h: h - 2, r: cr2 });
+
+				// tab fill
+				drawRoundRect(
+					1, 1, w - 2, h - 2, cr2,
+					upFillColors, upFillAlphas,
+					verticalGradientMatrix(0, 2, w - 2, h - 6));
+
+				// tab highlight
+				drawRoundRect(
+					1, 1, w - 2, (h - 2) / 2, cr2,
+					[ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+					verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2));
+
+				// tab bottom line
+				if (drawBottomLine)
+				{
+					drawRoundRect(
+						0, h - tabOffset, w, tabOffset, 0,
+						borderColor, fillAlphas[1]);
+				}
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 2, w, 1, 0,
+					0x000000, 0.09);
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 3, w, 1, 0,
+					0x000000, 0.03);
+
+				break;
+			}
+
+			case "overSkin":
+			{
+				var overFillColors:Array;
+				if (fillColors.length > 2)
+					overFillColors = [ fillColors[2], fillColors[3] ];
+				else
+					overFillColors = [ fillColors[0], fillColors[1] ];
+
+				var overFillAlphas:Array;
+				if (fillAlphas.length > 2)
+					overFillAlphas = [ fillAlphas[2], fillAlphas[3] ];
+  				else
+					overFillAlphas = [ fillAlphas[0], fillAlphas[1] ];
+
+				// outer edge
+				drawRoundRect(
+					0, 0, w, h - 1, cr,
+					[ themeColor, derStyles.themeColDrk2 ], 1,
+					verticalGradientMatrix(0, 0, w, h - 6),
+					GradientType.LINEAR, null,
+					{ x: 1, y: 1, w: w - 2, h: h - 2, r: cr2 });
+
+				// tab fill
+				drawRoundRect(
+					1, 1, w - 2, h - 2, cr2,
+					[ derStyles.falseFillColorBright1,
+					  derStyles.falseFillColorBright2 ], overFillAlphas,
+					verticalGradientMatrix(2, 2, w - 2, h - 2));
+
+				// tab highlight
+				drawRoundRect(
+					1, 1, w - 2, (h - 2) / 2, cr2,
+					[ 0xFFFFFF, 0xFFFFFF ], highlightAlphas,
+					verticalGradientMatrix(1, 1, w - 2, (h - 2) / 2));
+
+				// tab bottom line
+				if (drawBottomLine)
+				{
+					drawRoundRect(
+						0, h - tabOffset, w, tabOffset, 0,
+						borderColor, fillAlphas[1]);
+				}
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 2, w, 1, 0,
+					0x000000, 0.09);
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 3, w, 1, 0,
+					0x000000, 0.03);
+
+				break;
+			}
+
+			case "disabledSkin":
+			{
+   				var disFillColors:Array = [ fillColors[0], fillColors[1] ];
+
+   				var disFillAlphas:Array =
+					[ Math.max( 0, fillAlphas[0] - 0.15),
+					  Math.max( 0, fillAlphas[1] - 0.15) ];
+
+				// outer edge
+				drawRoundRect(
+					0, 0, w, h - 1, cr,
+					[ derStyles.borderColorDrk1, borderColor], 0.5,
+					verticalGradientMatrix(0, 0, w, h - 6));
+
+				// tab fill
+				drawRoundRect(
+					1, 1, w - 2, h - 2, cr2,
+					disFillColors, disFillAlphas,
+					verticalGradientMatrix(0, 2, w - 2, h - 2));
+
+				// tab bottom line
+				if (drawBottomLine)
+				{
+					drawRoundRect(
+						0, h - tabOffset, w, tabOffset, 0,
+						borderColor, fillAlphas[1]);
+				}
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 2, w, 1, 0,
+					0x000000, 0.09);
+
+				// tab shadow
+				drawRoundRect(
+					0, h - 3, w, 1, 0,
+					0x000000, 0.03);
+
+				break;
+			}
+
+			case "downSkin":
+			case "selectedUpSkin":
+			case "selectedDownSkin":
+			case "selectedOverSkin":
+			case "selectedDisabledSkin":
+			{
+				if (isNaN(backgroundColor))
+				{
+					// Walk the parent chain until we find a background color
+					var p:DisplayObjectContainer = parent;
+
+					while (p)
+					{
+						if (p is IStyleClient)
+							backgroundColor = IStyleClient(p).getStyle("backgroundColor");
+
+						if (!isNaN(backgroundColor))
+							break;
+
+						p = p.parent;
+					}
+
+					// Still no backgroundColor? Use white.
+					if (isNaN(backgroundColor))
+						backgroundColor = 0xFFFFFF;
+				}
+
+ 				// outer edge
+				drawRoundRect(
+					0, 0, w, h - 1, cr,
+					[ derStyles.borderColorDrk1, borderColor], 1,
+					verticalGradientMatrix(0, 0, w, h - 2),
+					GradientType.LINEAR, null,
+					{ x: 1, y: 1, w: w - 2, h: h - 2, r: cr2 });
+
+				// tab fill color
+				drawRoundRect(
+					1, 1, w - 2, h - 2, cr2,
+					backgroundColor, backgroundAlpha);
+
+				// tab bottom line
+				if (drawBottomLine)
+				{
+					drawRoundRect(
+						1, h - tabOffset, w - 2, tabOffset, 0,
+						backgroundColor, backgroundAlpha);
+				}
+
+				break;
+			}
+		}
+	}
+
+	static private var tabnavs:Object = {};
+
+	static private function isTabNavigator(parent:Object):Boolean
+	{
+		var s:String = getQualifiedClassName(parent);
+		if (tabnavs[s] == 1)
+			return true;
+
+		if (tabnavs[s] == 0)
+			return false;
+
+		if (s == "mx.containers::TabNavigator")
+		{
+			tabnavs[s] == 1;
+			return true;
+		}
+
+		var x:XML = describeType(parent);
+		var xmllist:XMLList = x.extendsClass.(@type == "mx.containers::TabNavigator");
+		if (xmllist.length() == 0)
+		{
+			tabnavs[s] = 0;
+			return false;
+		}
+
+		tabnavs[s] = 1;
+		return true;
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 8483
Author:   smgilson@adobe.com
Date:     2009-07-09T17:52:48.367800Z

Log Message:
-----------
Second 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/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Wipe.as
+++ frameworks/projects/spark/src/spark/effects/Wipe.as
@@ -44,7 +44,7 @@
  *  and adds the following tag attributes:

  *
  *

- *  <mx:Wipe
+ *  <s:Wipe
  *    Properties
  *    id="ID"
  *    direction="right"


ready to merge with rectangles branch

ready to merge with rectangles branch

--- src/Main.as
+++ src/Main.as
@@ -1,28 +0,0 @@
-package  {
-	import flash.display.Sprite;
-	import flash.geom.Rectangle;
-
-	/**
-	 * ...
-	 * @author ...
-	 */
-	public class Main extends Sprite {
-
-		public function Main() {
-
-		}
-
-
-
-		public function createTarget(bounds:Rectangle, color:uint):Sprite {
-			var sp:Sprite = new Sprite ();
-			sp.graphics.beginFill(color);
-			sp.graphics.drawRect (0, 0, bounds.width, bounds.height);
-			sp.graphics.endFill();
-			sp.x = bounds.x;
-			sp.y = bounds.y;
-			return sp;
-		}
-	}
-
-}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19820
Author:   hmuller@adobe.com
Date:     2011-01-20T04:00:37.828850Z

Log Message:
-----------
Change the way ColumnGridHeaderGroupLayout computes renderers' owners.

Remove unnecessary contraints from TextAreaSkin textDisplay viewport.

QE notes:
Doc notes:
Bugs:
Reviewer: Carol, Jason
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as
@@ -21,6 +21,7 @@
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;

+import spark.components.DataGrid;
 import spark.components.Grid;
 import spark.components.GridColumnHeaderGroup;
 import spark.components.Group;
@@ -646,8 +647,10 @@

         const columnHeaderGroup:GridColumnHeaderGroup = columnHeaderGroup;

-        if (columnHeaderGroup.dataGrid)
-            renderer.owner = grid.dataGrid;
+        const dataGrid:DataGrid = columnHeaderGroup.dataGrid;
+        if (dataGrid)
+            renderer.owner = dataGrid;
+
         renderer.hovered = columnIndex == columnHeaderGroup.hoverColumnIndex;
         renderer.down = columnIndex == columnHeaderGroup.downColumnIndex;
     }


Allow for root objects that are pure byRef

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLEncoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLEncoder.as
@@ -210,6 +210,12 @@
         qname = xobj.elements[0].qname;
         }
         }*/
+
+        // allow for a root object marked byReference only
+        if (!referenceOnly && ("isByReference" in obj))
+        {
+            referenceOnly = obj["isByReference"];
+        }

         // we want to make sure the type we use for root node is type of object
         var tag:String = tagForType(obj);


fix big memory leak/performances leak because of trailing callbacks by calling DataProvider.dispose() in MeshController.removedHandler()

--- src/aerys/minko/scene/controller/mesh/MeshController.as
+++ src/aerys/minko/scene/controller/mesh/MeshController.as
@@ -43,7 +43,7 @@
 			_data = new DataProvider(
 				null, target.name + '_transforms', DataProviderUsage.EXCLUSIVE
 			);
-			_data.setProperty('localToWorld', target.getLocalToWorldTransform());
+			_data.setProperty('localToWorld', target.getLocalToWorldTransform(true));
 			_data.setProperty('worldToLocal', target.getWorldToLocalTransform(false, _worldToLocal));

 			target.bindings.addProvider(_data);
@@ -60,13 +60,13 @@
 			target.localToWorldTransformChanged.remove(localToWorldChangedHandler);

 			target.bindings.removeProvider(_data);
-
+			_data.dispose();
 			_data = null;
 		}

 		private function localToWorldChangedHandler(mesh : Mesh, localToWorld : Matrix4x4) : void
 		{
-			_data.setProperty('localToWorld', localToWorld);
+			_data.setProperty('localToWorld', mesh.getLocalToWorldTransform());
             mesh.getWorldToLocalTransform(false, _worldToLocal);
 		}
 	}


syntax cleanup in FastMath#atan2

syntax cleanup in FastMath#atan2

--- apparat-ersatz/src/main/as3/apparat/math/FastMath.as
+++ apparat-ersatz/src/main/as3/apparat/math/FastMath.as
@@ -95,16 +95,12 @@
 			var r:Number
 			var sign:Number = 1.0 - (int(y < 0.0) << 1)
 			var absY:Number = y * sign + 2.220446049250313e-16
-
 			var partSignX:Number = (int(x < 0.0) << 1) // [0.0/2.0]
 			var signX:Number = 1.0 - partSignX // [1.0/-1.0]

 			r = (x - signX * absY) / (signX * x + absY)
-			angle = (partSignX + 1.0) * 0.7853981634
-
-			angle += (0.1821 * r * r - 0.9675) * r
-
-			return angle * sign
+
+			return (((partSignX + 1.0) * 0.7853981634) + ((0.1821 * r * r - 0.9675) * r)) * sign
 		}

 		/**


F Fix bug in 'pack' shader part operation

--- src/aerys/minko/render/shader/part/ShaderPart.as
+++ src/aerys/minko/render/shader/part/ShaderPart.as
@@ -386,12 +386,12 @@
 		 */
 		protected final function pack(scalar : Object) : SFloat
 		{
-			if (scalar.size != 1)
+			if (getNode(scalar).size != 1)
 				throw new ArgumentError('Argument of size 1 expected. ' + scalar + ' received');

 			var bitSh	: SFloat = float4(256. * 256. * 256., 256. * 256, 256., 1.);
 			var bitMsk	: SFloat = float4(0., 1. / 256., 1. / 256., 1. / 256.);
-			var comp	: SFloat = fractional(multiply(getNode(scalar), bitSh));
+			var comp	: SFloat = fractional(multiply(scalar, bitSh));

 			return subtract(comp, multiply(comp.xxyz, bitMsk));
 		}


Re-instated commented out timer/interval fixtures

--- source/RxAsTests/src/rx/tests/operators/creation/CreationSuite.as
+++ source/RxAsTests/src/rx/tests/operators/creation/CreationSuite.as
@@ -17,13 +17,13 @@
 		public var fromEvent : FromEventFixture;
 		public var fromEvents : FromEventsFixture;
 		public var ifElse : IfElseFixture;
-		//public var interval : IntervalFixture;
+		public var interval : IntervalFixture;
 		public var lookup : LookupFixture;
 		public var never : NeverFixture;
 		public var queue : QueueFixture;
 		public var range : RangeFixture;
 		public var throwError : ThrowErrorFixture;
-		//public var timer : TimerFixture;
+		public var timer : TimerFixture;
 		public var uncaughtErrors : UncaughtErrorsFixture;
 		public var urlLoader : URLLoaderFixture;
 		public var xml : XMLFixture;


Add function to rename or change a timelabel

--- src/aerys/minko/scene/controller/animation/AnimationController.as
+++ src/aerys/minko/scene/controller/animation/AnimationController.as
@@ -1,15 +1,16 @@
 package aerys.minko.scene.controller.animation
 {
-import aerys.minko.scene.controller.*;
-	import aerys.minko.render.Viewport;
-	import aerys.minko.scene.node.Group;
-	import aerys.minko.scene.node.ISceneNode;
-	import aerys.minko.scene.node.Scene;
-	import aerys.minko.type.Signal;
-	import aerys.minko.type.animation.timeline.ITimeline;
-
-	import flash.display.BitmapData;
-	import flash.utils.getTimer;
+import flash.display.BitmapData;
+import flash.utils.getTimer;
+
+import aerys.minko.render.Viewport;
+import aerys.minko.scene.controller.AbstractController;
+import aerys.minko.scene.controller.EnterFrameController;
+import aerys.minko.scene.node.Group;
+import aerys.minko.scene.node.ISceneNode;
+import aerys.minko.scene.node.Scene;
+import aerys.minko.type.Signal;
+import aerys.minko.type.animation.timeline.ITimeline;

 	/**
 	 * The AnimationController uses timelines to animate properties of scene nodes.
@@ -308,6 +309,30 @@
             return this;
         }

+		public function changeLabel(oldName : String, newName : String) : IAnimationController
+		{
+			var index : int = _labelNames.indexOf(oldName);
+
+			if (index < 0)
+				throw new Error('The time label named \'' + oldName + '\' does not exist.');
+
+			_labelNames[index] = newName;
+
+			return this;
+		}
+
+		public function setTimeForLabel(name : String, newTime : Number) : IAnimationController
+		{
+			var index : int = _labelNames.indexOf(name);
+
+			if (index < 0)
+				throw new Error('The time label named \'' + name + '\' does not exist.');
+
+			_labelTimes[index] = newTime;
+
+			return this;
+		}
+
         public function removeLabel(name : String) : IAnimationController
         {
             var index : int = _labelNames.indexOf(name);


use _frustumCulling private property directly instead of protected frustumCulling protected getter for better performances

--- src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
+++ src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
@@ -60,7 +60,7 @@

         public function get computedVisibility() : Boolean
         {
-            return frustumCulling == FrustumCulling.DISABLED || _computedVisibility;
+            return _frustumCulling == FrustumCulling.DISABLED || _computedVisibility;
         }

 		public function MeshVisibilityController()


removed [Bindable]

removed [Bindable]

--- WeaveJS/src/weavejs/core/Scheduler.as
+++ WeaveJS/src/weavejs/core/Scheduler.as
@@ -108,7 +108,7 @@
 		/**
 		 * When the current frame elapsed time reaches this threshold, callLater processing will be done in later frames.
 		 */
-		[Bindable] public var maxComputationTimePerFrame:uint = 100;
+		public var maxComputationTimePerFrame:uint = 100;
 		private var maxComputationTimePerFrame_noActivity:uint = 250;

 		/**


fixed bug migrating state via WeavePath

fixed bug migrating state via WeavePath

--- WeaveJS/src/weavejs/path/WeavePath.as
+++ WeaveJS/src/weavejs/path/WeavePath.as
@@ -688,16 +688,16 @@
 			{
 				for each (typedState in state)
 				{
-					var name:String = typedState[DynamicState.OBJECT_NAME];
-					if (name)
-						_setTypedState(path.push(name), typedState, delayedCallbacks);
+					type = typedState[DynamicState.CLASS_NAME];
+					if (type === "Array")
+						path.state(typedState[DynamicState.SESSION_STATE]);
 					else
-						path.state(typedState);
+						_setTypedState(path.push(typedState[DynamicState.OBJECT_NAME]), typedState, delayedCallbacks);
 				}
 			}
 			else
 			{
-				path.state(typedState);
+				path.state(state);
 			}
 		}
 	}


Fixed bug in ProjectionManager for projections that read the Z value.

Change-Id: I29b8b7990f6655815827cb69cdf59bf3fd7c5f79

--- WeaveData/src/weave/data/ProjectionManager.as
+++ WeaveData/src/weave/data/ProjectionManager.as
@@ -157,7 +157,8 @@
 			var destinationProj:ProjProjection = getProjection(destinationSRS);

 			_tempProjPoint.x = inputAndOutput.x;
-			_tempProjPoint.y = inputAndOutput.y;
+			_tempProjPoint.y = inputAndOutput.y;
+			_tempProjPoint.z = NaN; // this is important in case the projection reads the z value.

 			if (Proj4as.transform(sourceProj, destinationProj, _tempProjPoint))
 			{
@@ -450,7 +451,8 @@
 						var currentNode:BLGNode = part[iNode];

 						_tempProjPoint.x = currentNode.x;
-						_tempProjPoint.y = currentNode.y;
+						_tempProjPoint.y = currentNode.y;
+						_tempProjPoint.z = NaN; // this is important in case the projection reads the z value.
 						if (Proj4as.transform(sourceProj, destinationProj, _tempProjPoint) == null)
 							continue;


Fix doc comments.

Fix doc comments.

--- runtime/src/main/as/flump/display/LibraryLoader.as
+++ runtime/src/main/as/flump/display/LibraryLoader.as
@@ -29,7 +29,7 @@
      *
      * @param scaleFactor the desired scale factor of the textures to load. If the Library contains
      * textures with multiple scale factors, loader will load the textures with the scale factor
-     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
+     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
      * used.
      *
      * @return a Future to use to track the success or failure of loading the resources out of the
@@ -55,7 +55,7 @@
      *
      * @param scaleFactor the desired scale factor of the textures to load. If the Library contains
      * textures with multiple scale factors, loader will load the textures with the scale factor
-     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
+     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
      * used.
      *
      * @return a Future to use to track the success or failure of loading the resources from the
@@ -130,8 +130,8 @@
      *
      * @param scaleFactor the desired scale factor of the textures to load. If the Library contains
      * textures with multiple scale factors, loader will load the textures with the scale factor
-     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will be
-     * used.
+     * closest to this value. If scaleFactor <= 0 (the default), Starling.contentScaleFactor will
+     * be used.
      */
     public function setScaleFactor (scaleFactor :Number) :LibraryLoader {
         _scaleFactor = scaleFactor;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5099
Author:   gauravj@adobe.com
Date:     2009-02-27T03:43:02.639229Z

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:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/rpc/http/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/Operation.as
@@ -35,6 +35,11 @@
  *
  *
The exact way in which the HTTP operation arguments is put into the HTTP body is determined
  * by the serializationFilter used.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Operation extends AbstractOperation
 {
@@ -44,6 +49,11 @@

     /**
      * Creates a new Operation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Operation(service:HTTPMultiService = null, name:String = null)
     {
@@ -56,18 +66,33 @@

     /**
      * Stores the parent service which controls this operation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _multiService:HTTPMultiService;

     /**
      * Keep track of whether or not this has been set explicitly on the
      * operation.  If not, we'll inherit this value from the service level.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     private var _makeObjectsBindableSet:Boolean;

     [Inspectable(defaultValue="true", category="General")]
     /**
      * When this value is true, anonymous objects returned are forced to bindable objects.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function get makeObjectsBindable():Boolean
     {
@@ -127,6 +152,11 @@
      * directly whereas rootURL specifies the name of a file whose directory name is
      * prepended.  If neither rootURL nor baseURL are set explicitly, the directory name
      * of the .swf file is prepended to relative paths.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function get rootURL():String
     {
@@ -197,6 +227,11 @@
      * @return AsyncToken Call using the asynchronous completion token pattern.
      * The same object is available in the result and
      * fault events from the token property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override public function send(... args:Array):AsyncToken
     {
@@ -292,6 +327,11 @@

     /**
      * Use the asyncRequest from the parent service
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override mx_internal function get asyncRequest():AsyncRequest
     {


commented out api bug workaround code

commented out api bug workaround code

--- WeaveData/src/weave/data/DataSources/HealthIndicatorsDataSource.as
+++ WeaveData/src/weave/data/DataSources/HealthIndicatorsDataSource.as
@@ -47,7 +47,7 @@
 			if (!params)
 				params = {};
 			params.Key = apiKey.value;
-			return cache.getJsonPromise(this, JsonCache.buildURL(baseUrl + method, params) + "&{}")
+			return cache.getJsonPromise(this, JsonCache.buildURL(baseUrl + method, params))
 				.then(function(result:Object):Object {
 					if (result.Status != 'Success')
 					{
@@ -63,7 +63,7 @@
 		{
 			var output:Array = [];

-			if (method.substr(-5) == '/Data')
+			/*if (method.substr(-5) == '/Data')
 			{
 				// backup if PageCount request fails - request each page until no data is returned
 				var page:int = 0;
@@ -79,7 +79,7 @@
 						.then(handlePage);
 				}
 				return handlePage();
-			}
+			}*/

 			return getJson(method + '/PageCount', params)
 				.then(function(result:Object):* {


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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -64,6 +64,11 @@
 /**
  *  Alpha of the title bar, control bar and sides of the Panel.
  *  The default value is 0.4.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderAlpha", type="Number", inherit="no")]

@@ -75,6 +80,11 @@
  *  of the left border.
  *
  *  @default NaN
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderThicknessBottom", type="Number", format="Length", inherit="no")]

@@ -82,6 +92,11 @@
  *  Thickness of the left border of the Panel.
  *
  *  @default 10
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderThicknessLeft", type="Number", format="Length", inherit="no")]

@@ -89,6 +104,11 @@
  *  Thickness of the right border of the Panel.
  *
  *  @default 10
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderThicknessRight", type="Number", format="Length", inherit="no")]

@@ -96,6 +116,11 @@
  *  Thickness of the top border of the Panel.
  *
  *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="borderThicknessTop", type="Number", format="Length", inherit="no")]

@@ -104,6 +129,11 @@
  *  any control bar child subcontrol.
  *
  *  @default null
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="controlBarStyleName", type="String", inherit="no")]

@@ -111,6 +141,11 @@
  *  Radius of corners of the window frame.
  *
  *  @default 4
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="cornerRadius", type="Number", format="Length", inherit="no")]

@@ -119,6 +154,11 @@
  *  of the Panel container's drop shadow.
  *
  *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="dropShadowEnabled", type="Boolean", inherit="no")]

@@ -132,6 +172,11 @@
  *  the panel background.
  *
  *  @default null
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="footerColors", type="Array", arrayType="uint", format="Color", inherit="yes")]

@@ -144,12 +189,22 @@
  *  panel background.
  *
  *  @default null
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="headerColors", type="Array", arrayType="uint", format="Color", inherit="yes")]

 /**
  *  Height of the header.
  *  The default value is based on the style of the title text.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="headerHeight", type="Number", format="Length", inherit="no")]

@@ -157,6 +212,11 @@
  *  Alphas used for the highlight fill of the header.
  *
  *  @default [0.3,0]
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no")]

@@ -165,6 +225,11 @@
  *  and its content area.
  *
  *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="paddingBottom", type="Number", format="Length", inherit="no")]

@@ -173,6 +238,11 @@
  *  and its content area.
  *
  *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="paddingTop", type="Number", format="Length", inherit="no")]

@@ -183,6 +253,11 @@
  *  set cornerRadius to 0.
  *
  *  @default false
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="roundedBottomCorners", type="Boolean", inherit="no")]

@@ -192,6 +267,11 @@
  *  and "right".
  *
  *  @default "center"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="shadowDirection", type="String", enumeration="left,center,right", inherit="no")]

@@ -200,6 +280,11 @@
  *  Negative values move the shadow above the panel.
  *
  *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="shadowDistance", type="Number", format="Length", inherit="no")]

@@ -207,6 +292,11 @@
  *  Style declaration name for the status in the title bar.
  *
  *  @default "windowStatus"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */

 [Style(name="statusStyleName", type="String", inherit="no")]
@@ -215,6 +305,11 @@
  *  The title background skin.
  *
  *  @default mx.skins.halo.TitleBackground
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="titleBackgroundSkin", type="Class", inherit="no")]

@@ -224,6 +319,11 @@
  *  which causes the title to have boldface text.
  *
  *  @default "windowStyles"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="titleStyleName", type="String", inherit="no")]

@@ -238,6 +338,11 @@
  *  resizeEndEffect property to "none".
  *
  *  @default "Dissolve"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Effect(name="resizeEndEffect", event="resizeEnd")]

@@ -248,6 +353,11 @@
  *  resizeStartEffect property to "none".
  *
  *  @default "Dissolve"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Effect(name="resizeStartEffect", event="resizeStart")]

@@ -358,6 +468,11 @@
  *  @see mx.components.Panel
  *  @see mx.containers.ControlBar
  *  @see mx.containers.VBox
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class Panel extends Container
     implements IConstraintLayout, IFontContextComponent
@@ -395,6 +510,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function Panel()
     {
@@ -591,6 +711,11 @@
      *  The set of styles to pass from the Panel to the close button.
      *  @see mx.styles.StyleProxy
      *  @review
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function get closeButtonStyleFilters():Object
     {
@@ -612,6 +737,11 @@

     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintColumns
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get constraintColumns():Array
     {
@@ -652,6 +782,11 @@

     /**
      *  @copy mx.containers.utilityClasses.IConstraintLayout#constraintRows
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get constraintRows():Array
     {
@@ -683,11 +818,21 @@

     /**
      *  A reference to this Panel container's control bar, if any.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var controlBar:IUIComponent;

     /**
      *  Proxy to the controlBar property which is protected and can't be accessed externally
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     mx_internal function get _controlBar():IUIComponent
     {
@@ -700,6 +845,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get fontContext():IFlexModuleFactory
     {
@@ -739,6 +889,11 @@
      *  explicitly define the location of each child component.
      *
      *  @default "vertical"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get layout():String
     {
@@ -804,6 +959,11 @@
      *  Text in the status area of the title bar.
      *
      *  @default ""
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get status():String
     {
@@ -832,6 +992,11 @@
      *  The status field is a child of the titleBar sub-control.
      *
      *  @see #titleBar
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var statusTextField:IUITextField;

@@ -860,6 +1025,11 @@
      *
      *  @tiptext Gets or sets the title/caption displayed in the title bar
      *  @helpid 3991
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get title():String
     {
@@ -887,6 +1057,11 @@

     /**
      *  The TitleBar sub-control that displays the Panel container's title bar.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var titleBar:UIComponent;

@@ -912,6 +1087,11 @@
      *  The icon displayed in the title bar.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get titleIcon():Class
     {
@@ -941,6 +1121,11 @@
      *  The title field is a child of the titleBar sub-control.
      *
      *  @see #titleBar
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var titleTextField:IUITextField;

@@ -1219,6 +1404,11 @@
      *  to display the title and the ControlBar.

      *
      *  @see mx.core.UIComponent#measure()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function measure():void
     {
@@ -1711,6 +1901,11 @@
      *  Returns the height of the header.
      *
      *  @return The height of the header, in pixels.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function getHeaderHeight():Number
     {
@@ -1788,6 +1983,11 @@
     /**
      *  Called when the user starts dragging a Panel
      *  that has been popped up by the PopUpManager.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function startDragging(event:MouseEvent):void
     {
@@ -1811,6 +2011,11 @@
     /**
      *  Called when the user stops dragging a Panel
      *  that has been popped up by the PopUpManager.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function stopDragging():void
     {


Go go invisible unicode characters.

Go go invisible unicode characters.

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

--- src/as/com/threerings/util/HashMap.as
+++ src/as/com/threerings/util/HashMap.as
@@ -1,4 +1,4 @@
-//
+//
 // $Id$
 //
 // Narya library - tools for developing networked games


bump version

bump version

--- src/jp/promotal/ssplayer/starling/SSSPlayer.as
+++ src/jp/promotal/ssplayer/starling/SSSPlayer.as
@@ -15,7 +15,7 @@

 	public class SSSPlayer extends Sprite {

-		public static const VERSION:String = "0.0.1";
+		public static const VERSION:String = "0.1.0";

 		private var project:SSProject;


Moved pause event for RTSPClient

Moved pause event for RTSPClient

--- src/com/axis/rtspclient/RTSPClient.as
+++ src/com/axis/rtspclient/RTSPClient.as
@@ -306,6 +306,7 @@
       case STATE_PAUSE:
         trace("RTSPClient: STATE_PAUSE");
         state = STATE_PAUSED;
+        dispatchEvent(new ClientEvent(ClientEvent.PAUSED, { 'reason': 'user' }));
         break;

       case STATE_TEARDOWN:
@@ -477,8 +478,6 @@
         auth.authorizationHeader("PAUSE", authState, authOpts, urlParsed, digestNC++) +
         "\r\n";
       handle.writeUTFBytes(req);
-
-      dispatchEvent(new ClientEvent(ClientEvent.PAUSED));
     }

     private function sendTeardownReq():void {