z-order now sorts by actual color data instead of rgb values

Change-Id: I7ffe76c8d34cbfe1a23a5f42789a61177c26efc7

--- WeaveUISpark/src/weave/visualization/plotters/ParallelCoordinatesPlotter.as
+++ WeaveUISpark/src/weave/visualization/plotters/ParallelCoordinatesPlotter.as
@@ -38,11 +38,11 @@
 	import weave.api.registerLinkableChild;
 	import weave.api.setSessionState;
 	import weave.api.ui.IPlotterWithGeometries;
-	import weave.core.LinkableWatcher;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableHashMap;
 	import weave.core.LinkableNumber;
 	import weave.core.LinkableString;
+	import weave.core.LinkableWatcher;
 	import weave.data.AttributeColumns.AlwaysDefinedColumn;
 	import weave.data.AttributeColumns.BinnedColumn;
 	import weave.data.AttributeColumns.ColorColumn;
@@ -140,7 +140,8 @@
 			var cc:ColorColumn = lineStyle.color.getInternalColumn() as ColorColumn;
 			var bc:BinnedColumn = cc ? cc.getInternalColumn() as BinnedColumn : null;
 			var fc:FilteredColumn = bc ? bc.getInternalColumn() as FilteredColumn : null;
-			colorDataWatcher.target = fc ? fc.internalDynamicColumn : null;
+			var dc:DynamicColumn = fc ? fc.internalDynamicColumn : null;
+			colorDataWatcher.target = dc || fc || bc || cc;
 		}

 		public function getXValues():Array
@@ -176,7 +177,8 @@
 			else
 			{
 				var list:Array = _columns.concat();
-				list.unshift(lineStyle.color);
+				if (colorDataWatcher.target)
+					list.unshift(colorDataWatcher.target);
 				setColumnKeySources(list);

 				_in_updateFilterEquationColumns = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


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

--- frameworks/projects/framework/src/mx/validators/ValidationResult.as
+++ frameworks/projects/framework/src/mx/validators/ValidationResult.as
@@ -0,0 +1,109 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 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.validators
+{
+
+/**
+ *  The ValidationResult class contains the results of a validation.
+ *
+ *
The ValidationResultEvent class defines the event object
+ *  that is passed to event listeners for the valid
+ *  and invalid validator events.
+ *  The class also defines the results property,
+ *  which contains an Array of ValidationResult objects,
+ *  one for each field examined by the validator.
+ *  This lets you access the ValidationResult objects
+ *  from within an event listener.

+ *
+ *  @see mx.events.ValidationResultEvent
+ */
+public class ValidationResult
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor
+	 *
+     *  @param isError Pass true if there was a validation error.
+     *
+     *  @param subField Name of the subfield of the validated Object.
+     *
+     *  @param errorCode  Validation error code.
+     *
+     *  @param errorMessage Validation error message.
+	 */
+	public function ValidationResult(isError:Boolean, subField:String = "",
+									 errorCode:String = "",
+									 errorMessage:String = "")
+	{
+		super();
+
+		this.isError = isError;
+		this.subField = subField;
+		this.errorMessage = errorMessage;
+		this.errorCode = errorCode;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  errorCode
+	//----------------------------------
+
+	/**
+	 *  The validation error code
+	 *  if the value of the isError property is true.
+	 */
+	public var errorCode:String;
+
+	//----------------------------------
+	//  errorMessage
+	//----------------------------------
+
+	/**
+	 *  The validation error message
+	 *  if the value of the isError property is true.
+	 */
+	public var errorMessage:String;
+
+	//----------------------------------
+	//  isError
+	//----------------------------------
+
+	/**
+	 *  Contains true if the field generated a validation failure.
+	 */
+	public var isError:Boolean;
+
+	//----------------------------------
+	//  subField
+	//----------------------------------
+
+	/**
+	 *  The name of the subfield that the result is associated with.
+	 *  Some validators, such as CreditCardValidator and DateValidator,
+	 *  validate multiple subfields at the same time.
+	 */
+	public var subField:String;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 20802
Author:   smgilson@adobe.com
Date:     2011-03-11T17:44:16.573353Z

Log Message:
-----------
Merge 20799 - ASDoc updates

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="dir" action="M">/private/flex/sdk/trunk</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>

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

--- frameworks/projects/framework/src/mx/preloaders/Preloader.as
+++ frameworks/projects/framework/src/mx/preloaders/Preloader.as
@@ -53,224 +53,227 @@
  */
 public class Preloader extends Sprite
 {
-	include "../core/Version.as";
-
-	//--------------------------------------------------------------------------
-	//
-	//  Constructor
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *	Constructor.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function Preloader()
-	{
-		super()
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Variables
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private var displayClass:IPreloaderDisplay = null;
-
-	/**
-	 *  @private
-	 */
-	private var timer:Timer;
-
-	/**
-	 *  @private
-	 */
-	private var showDisplay:Boolean;
-
-	/**
-	 *  @private
-	 */
-	private var rslListLoader:RSLListLoader;
-
-	/**
-	 *  @private
-	 */
-	private var resourceModuleListLoader:RSLListLoader;
-
-	/**
-	 *  @private
-	 */
-	private var rslDone:Boolean = false;
-
-	/**
-	 *  @private
-	 */
-	private var loadingRSLs:Boolean = false;
-
-	/**
-	 *  @private
-	 */
-	private var waitingToLoadResourceModules:Boolean = false;
-
-	/**
-	 *  @private
-	 */
-	private var sentDocFrameReady:Boolean = false;
-
-	/**
-	 *  @private
-	 */
-	private var app:IEventDispatcher = null;
-
-	/**
-	 *  @private
-	 */
-	private var applicationDomain:ApplicationDomain = null;
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function Preloader()
+    {
+        super()
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var displayClass:IPreloaderDisplay = null;
+
+    /**
+     *  @private
+     */
+    private var timer:Timer;
+
+    /**
+     *  @private
+     */
+    private var showDisplay:Boolean;
+
+    /**
+     *  @private
+     */
+    private var rslListLoader:RSLListLoader;
+
+    /**
+     *  @private
+     */
+    private var resourceModuleListLoader:RSLListLoader;
+
+    /**
+     *  @private
+     */
+    private var rslDone:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var loadingRSLs:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var waitingToLoadResourceModules:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var sentDocFrameReady:Boolean = false;
+
+    /**
+     *  @private
+     */
+    private var app:IEventDispatcher = null;
+
+    /**
+     *  @private
+     */
+    private var applicationDomain:ApplicationDomain = null;

     /**
      *  @private
      */
     private var waitedAFrame:Boolean = false;

-	//--------------------------------------------------------------------------
-	//
-	//  Methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  Called by the SystemManager to initialize a Preloader object.
-	 *
-	 *  @param showDisplay Determines if the display class should be displayed.
-	 *
-	 *  @param displayClassName The IPreloaderDisplay class to use
-	 *  for displaying the preloader status.
-	 *
-	 *  @param backgroundColor Background color of the application.
-	 *
-	 *  @param backgroundAlpha Background alpha of the application.
-	 *
-	 *  @param backgroundImage Background image of the application.
-	 *
-	 *  @param backgroundSize Background size of the application.
-	 *
-	 *  @param displayWidth Width of the application.
-	 *
-	 *  @param displayHeight Height of the application.
-	 *
-	 *  @param libs Array of string URLs for the runtime shared libraries.
-	 *
-	 *  @param sizes Array of uint values containing the byte size for each URL
-	 *  in the libs argument
-	 *
-	 *  @param rslList Array of object of type RSLItem and CdRSLItem.
-	 *  This array describes all the RSLs to load.
-	 *  The libs and sizes parameters are ignored and must be set to null.
-	 *
-	 *  @param resourceModuleURLs Array of Strings specifying URLs
-	 *  from which to preload resource modules.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function initialize(showDisplay:Boolean,
-							   displayClassName:Class,
-							   backgroundColor:uint,
-							   backgroundAlpha:Number,
-							   backgroundImage:Object,
-							   backgroundSize:String,
-							   displayWidth:Number,
-							   displayHeight:Number,
-							   libs:Array = null,
-							   sizes:Array = null,
-							   rslList:Array = null,
-							   resourceModuleURLs:Array = null,
-							   applicationDomain:ApplicationDomain = null):void
-	{
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Called by the SystemManager to initialize a Preloader object.
+     *
+     *  @param showDisplay Determines if the display class should be displayed.
+     *
+     *  @param displayClassName The IPreloaderDisplay class to use
+     *  for displaying the preloader status.
+     *
+     *  @param backgroundColor Background color of the application.
+     *
+     *  @param backgroundAlpha Background alpha of the application.
+     *
+     *  @param backgroundImage Background image of the application.
+     *
+     *  @param backgroundSize Background size of the application.
+     *
+     *  @param displayWidth Width of the application.
+     *
+     *  @param displayHeight Height of the application.
+     *
+     *  @param libs Array of string URLs for the runtime shared libraries.
+     *
+     *  @param sizes Array of uint values containing the byte size for each URL
+     *  in the libs argument
+     *
+     *  @param rslList Array of object of type RSLItem and CdRSLItem.
+     *  This array describes all the RSLs to load.
+     *  The libs and sizes parameters are ignored and must be set to null.
+     *
+     *  @param resourceModuleURLs Array of Strings specifying URLs
+     *  from which to preload resource modules.
+     *
+     *  @param applicationDomain The application domain in which
+     *  your code is executing.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function initialize(showDisplay:Boolean,
+                               displayClassName:Class,
+                               backgroundColor:uint,
+                               backgroundAlpha:Number,
+                               backgroundImage:Object,
+                               backgroundSize:String,
+                               displayWidth:Number,
+                               displayHeight:Number,
+                               libs:Array = null,
+                               sizes:Array = null,
+                               rslList:Array = null,
+                               resourceModuleURLs:Array = null,
+                               applicationDomain:ApplicationDomain = null):void
+    {
         if ((libs != null || sizes != null) && rslList != null)
         {
             // both args can't be used at the same time
             throw new Error("RSLs may only be specified by using libs and sizes or rslList, not both.");  // $NON-NLS-1$
         }

-		this.applicationDomain = applicationDomain;
-
-		root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
-
-		var n:int;
-		var i:int;
-
-		// Store the RSL information.
-		// Keep this code for API backwards compatibility
-		if (libs && libs.length > 0)
-		{
-			if (rslList == null)
-			{
-				rslList = [];
-			}
-
-			n = libs.length;
-			for (i = 0; i < n; i++)
-			{
-			    var node:RSLItem = new RSLItem(libs[i]);
-				rslList.push(node);
-			}
-		}
-
-		var resourceModuleList:Array = [];
-		// Preloading resource modules is similar enough to loading RSLs
-		// that we can simply create ResourceModuleRSLItems for them
-		if (resourceModuleURLs && resourceModuleURLs.length > 0)
-		{
-			n = resourceModuleURLs.length;
-			for (i = 0; i < n; i++)
-			{
-				var resourceModuleNode:ResourceModuleRSLItem =
-					new ResourceModuleRSLItem(resourceModuleURLs[i], applicationDomain);
-				resourceModuleList.push(resourceModuleNode);
-			}
-		}
+        this.applicationDomain = applicationDomain;
+
+        root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
+
+        var n:int;
+        var i:int;
+
+        // Store the RSL information.
+        // Keep this code for API backwards compatibility
+        if (libs && libs.length > 0)
+        {
+            if (rslList == null)
+            {
+                rslList = [];
+            }
+
+            n = libs.length;
+            for (i = 0; i < n; i++)
+            {
+                var node:RSLItem = new RSLItem(libs[i]);
+                rslList.push(node);
+            }
+        }
+
+        var resourceModuleList:Array = [];
+        // Preloading resource modules is similar enough to loading RSLs
+        // that we can simply create ResourceModuleRSLItems for them
+        if (resourceModuleURLs && resourceModuleURLs.length > 0)
+        {
+            n = resourceModuleURLs.length;
+            for (i = 0; i < n; i++)
+            {
+                var resourceModuleNode:ResourceModuleRSLItem =
+                    new ResourceModuleRSLItem(resourceModuleURLs[i], applicationDomain);
+                resourceModuleList.push(resourceModuleNode);
+            }
+        }

         rslListLoader = new RSLListLoader(rslList);
-		if (resourceModuleList.length)
-			resourceModuleListLoader = new RSLListLoader(resourceModuleList);
-
-		this.showDisplay = showDisplay;
-
-		// Create the timer (really should be adding event listeners to root.LoaderInfo)
-		timer = new Timer(10);
-		timer.addEventListener(TimerEvent.TIMER, timerHandler);
-		timer.start();
-
-		// Create a new instance of the display class and attach it to the stage
-		if (showDisplay)
-		{
-			displayClass = new displayClassName();
-			// Listen for when the displayClass no longer needs to be on the stage
-			displayClass.addEventListener(Event.COMPLETE,
-										  displayClassCompleteHandler);
-
-			// Add the display class as a child of the Preloader
-			addChild(DisplayObject(displayClass));
-
-			displayClass.backgroundColor = backgroundColor;
-			displayClass.backgroundAlpha = backgroundAlpha;
-			displayClass.backgroundImage = backgroundImage;
-			displayClass.backgroundSize = backgroundSize;
-			displayClass.stageWidth = displayWidth;
-			displayClass.stageHeight = displayHeight;
-			displayClass.initialize();
-			displayClass.preloader = this;
+        if (resourceModuleList.length)
+            resourceModuleListLoader = new RSLListLoader(resourceModuleList);
+
+        this.showDisplay = showDisplay;
+
+        // Create the timer (really should be adding event listeners to root.LoaderInfo)
+        timer = new Timer(10);
+        timer.addEventListener(TimerEvent.TIMER, timerHandler);
+        timer.start();
+
+        // Create a new instance of the display class and attach it to the stage
+        if (showDisplay)
+        {
+            displayClass = new displayClassName();
+            // Listen for when the displayClass no longer needs to be on the stage
+            displayClass.addEventListener(Event.COMPLETE,
+                                          displayClassCompleteHandler);
+
+            // Add the display class as a child of the Preloader
+            addChild(DisplayObject(displayClass));
+
+            displayClass.backgroundColor = backgroundColor;
+            displayClass.backgroundAlpha = backgroundAlpha;
+            displayClass.backgroundImage = backgroundImage;
+            displayClass.backgroundSize = backgroundSize;
+            displayClass.stageWidth = displayWidth;
+            displayClass.stageHeight = displayHeight;
+            displayClass.initialize();
+            displayClass.preloader = this;

             // Listen for ENTER_FRAME to make sure that we are going to render the displayClass first,
             // before dispatching PRELOADER_DOC_FRAME_READY. This way we the run-time can render
@@ -281,319 +284,319 @@
                 PerfUtil.getInstance().markTime("Preloader.displayClass created");
             }
             this.addEventListener(Event.ENTER_FRAME, waitAFrame);
-		}
-
-		// move below showDisplay so error messages can be displayed
-		if (rslListLoader.getItemCount() > 0)
-		{
-			// Start loading the RSLs.
-			rslListLoader.load(rslProgressHandler,
-							   rslCompleteHandler,
-							   rslErrorHandler,
-							   rslErrorHandler,
-							   rslErrorHandler);
-			loadingRSLs = true;
-		}
-		else if (resourceModuleListLoader && resourceModuleListLoader.getItemCount() > 0)
-		{
-			if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
-			{
-				rslListLoader = resourceModuleListLoader;
-				// Start loading the resourceModules
-				rslListLoader.load(rslProgressHandler,
-								   rslCompleteHandler,
-								   rslErrorHandler,
-								   rslErrorHandler,
-								   rslErrorHandler);
-			}
-			else
-			{
-				waitingToLoadResourceModules = true;
-				rslDone = true;
-			}
-		}
-		else
-		{
-		    rslDone = true;
-		}
-	}
-
-	/**
-	 *  Called by the SystemManager after it has finished instantiating
-	 *  an instance of the application class. Flex calls this method; you
-	 *  do not call it yourself.
-	 *
-	 *  @param app The application object.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function registerApplication(app:IEventDispatcher):void
-	{
-		// Listen for events from the application.
-		app.addEventListener("validatePropertiesComplete", appProgressHandler);
-		app.addEventListener("validateSizeComplete", appProgressHandler);
-		app.addEventListener("validateDisplayListComplete", appProgressHandler);
-		app.addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
+        }
+
+        // move below showDisplay so error messages can be displayed
+        if (rslListLoader.getItemCount() > 0)
+        {
+            // Start loading the RSLs.
+            rslListLoader.load(rslProgressHandler,
+                               rslCompleteHandler,
+                               rslErrorHandler,
+                               rslErrorHandler,
+                               rslErrorHandler);
+            loadingRSLs = true;
+        }
+        else if (resourceModuleListLoader && resourceModuleListLoader.getItemCount() > 0)
+        {
+            if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
+            {
+                rslListLoader = resourceModuleListLoader;
+                // Start loading the resourceModules
+                rslListLoader.load(rslProgressHandler,
+                                   rslCompleteHandler,
+                                   rslErrorHandler,
+                                   rslErrorHandler,
+                                   rslErrorHandler);
+            }
+            else
+            {
+                waitingToLoadResourceModules = true;
+                rslDone = true;
+            }
+        }
+        else
+        {
+            rslDone = true;
+        }
+    }
+
+    /**
+     *  Called by the SystemManager after it has finished instantiating
+     *  an instance of the application class. Flex calls this method; you
+     *  do not call it yourself.
+     *
+     *  @param app The application object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function registerApplication(app:IEventDispatcher):void
+    {
+        // Listen for events from the application.
+        app.addEventListener("validatePropertiesComplete", appProgressHandler);
+        app.addEventListener("validateSizeComplete", appProgressHandler);
+        app.addEventListener("validateDisplayListComplete", appProgressHandler);
+        app.addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);

         // Cache for later cleanup.
         this.app = app;
-	}
-
-
-	/**
-	 *  @private
-	 *  Return the number of bytes loaded and total for the SWF and any RSLs.
-	 */
-	private function getByteValues():Object
-	{
-		var li:LoaderInfo = root.loaderInfo;
-		var loaded:int = li.bytesLoaded;
-		var total:int = li.bytesTotal;
-
-		// Look up the rsl bytes and include those
-		var n:int = rslListLoader ? rslListLoader.getItemCount() : 0;
-		for (var i:int = 0; i < n; i++)
-		{
-			loaded += rslListLoader.getItem(i).loaded;
+    }
+
+
+    /**
+     *  @private
+     *  Return the number of bytes loaded and total for the SWF and any RSLs.
+     */
+    private function getByteValues():Object
+    {
+        var li:LoaderInfo = root.loaderInfo;
+        var loaded:int = li.bytesLoaded;
+        var total:int = li.bytesTotal;
+
+        // Look up the rsl bytes and include those
+        var n:int = rslListLoader ? rslListLoader.getItemCount() : 0;
+        for (var i:int = 0; i < n; i++)
+        {
+            loaded += rslListLoader.getItem(i).loaded;

             // If the rsl total is zero then provide an average rsl size
             // to set rough expectations.
             var rslTotal:int = rslListLoader.getItem(i).total;
             total += rslTotal;
-		}
-
-		return { loaded: loaded, total: total };
-	}
-
-	/**
-	 *  @private
-	 */
-	private function dispatchAppEndEvent(event:Object = null):void
-	{
-		// Dispatch the application initialization end event
-		dispatchEvent(new FlexEvent(FlexEvent.INIT_COMPLETE));
-
-		if (!showDisplay)
-			displayClassCompleteHandler(null);
-	}
-
-	/**
-	 *  @private
-	 *  We don't listen for the events directly
-	 *  because we don't know which RSL is sending the event.
-	 *  So we have the RSLNode listen to the events
-	 *  and then pass them along to the Preloader.
-	 */
-	mx_internal function rslProgressHandler(event:ProgressEvent):void
-	{
-	    var index:int = rslListLoader.getIndex();
-	    var item:RSLItem = rslListLoader.getItem(index);
-
-
-		var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_PROGRESS);
-		rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
-		rslEvent.bytesLoaded = event.bytesLoaded;
-		rslEvent.bytesTotal = event.bytesTotal;
-		rslEvent.rslIndex = index;
-		rslEvent.rslTotal = rslListLoader.getItemCount();
-		rslEvent.url = item.urlRequest;
-		dispatchEvent(rslEvent);
-	}
-
-
-	/**
-	 *  @private
-	 *  Load the next RSL in the list and dispatch an event.
-	 */
-	mx_internal function rslCompleteHandler(event:Event):void
-	{
-	    var index:int = rslListLoader.getIndex();
-	    var item:RSLItem = rslListLoader.getItem(index);
-
-		var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_COMPLETE);
-		rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
-		rslEvent.bytesLoaded = item.total;
-		rslEvent.bytesTotal = item.total;
+        }
+
+        return { loaded: loaded, total: total };
+    }
+
+    /**
+     *  @private
+     */
+    private function dispatchAppEndEvent(event:Object = null):void
+    {
+        // Dispatch the application initialization end event
+        dispatchEvent(new FlexEvent(FlexEvent.INIT_COMPLETE));
+
+        if (!showDisplay)
+            displayClassCompleteHandler(null);
+    }
+
+    /**
+     *  @private
+     *  We don't listen for the events directly
+     *  because we don't know which RSL is sending the event.
+     *  So we have the RSLNode listen to the events
+     *  and then pass them along to the Preloader.
+     */
+    mx_internal function rslProgressHandler(event:ProgressEvent):void
+    {
+        var index:int = rslListLoader.getIndex();
+        var item:RSLItem = rslListLoader.getItem(index);
+
+
+        var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_PROGRESS);
+        rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
+        rslEvent.bytesLoaded = event.bytesLoaded;
+        rslEvent.bytesTotal = event.bytesTotal;
+        rslEvent.rslIndex = index;
+        rslEvent.rslTotal = rslListLoader.getItemCount();
+        rslEvent.url = item.urlRequest;
+        dispatchEvent(rslEvent);
+    }
+
+
+    /**
+     *  @private
+     *  Load the next RSL in the list and dispatch an event.
+     */
+    mx_internal function rslCompleteHandler(event:Event):void
+    {
+        var index:int = rslListLoader.getIndex();
+        var item:RSLItem = rslListLoader.getItem(index);
+
+        var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_COMPLETE);
+        rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
+        rslEvent.bytesLoaded = item.total;
+        rslEvent.bytesTotal = item.total;
         rslEvent.loaderInfo = event.target as LoaderInfo;
         rslEvent.rslIndex = index;
-		rslEvent.rslTotal = rslListLoader.getItemCount();
-		rslEvent.url = item.urlRequest;
-		dispatchEvent(rslEvent);
-
-		if (loadingRSLs && resourceModuleListLoader && index + 1 == rslEvent.rslTotal)
-		{
-			loadingRSLs = false;
-			waitingToLoadResourceModules = true;
-			// timer will switch over to loading resource modules
-		}
-
-		rslDone = (index + 1 == rslEvent.rslTotal);
-	}
-
-
-	/**
-	 *  @private
-	 */
-	mx_internal function rslErrorHandler(event:ErrorEvent):void
-	{
-		// send an error event
-	    var index:int = rslListLoader.getIndex();
-	    var item:RSLItem = rslListLoader.getItem(index);
-		var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR);
-		rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
-		rslEvent.bytesLoaded = 0;
-		rslEvent.bytesTotal = 0;
-		rslEvent.rslIndex = index;
-		rslEvent.rslTotal = rslListLoader.getItemCount();
-		rslEvent.url = item.urlRequest;
-		rslEvent.errorText = decodeURI(event.text);
-		dispatchEvent(rslEvent);
-
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Event handlers
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Listen or poll for progress events and dispatch events
-	 *  describing the current state of the download
-	 */
-	private function timerHandler(event:TimerEvent):void
-	{
-		// loaded swfs may not have root right away
-		if (!root)
-			return;
-
-		var bytes:Object = getByteValues();
-		var loaded:int = bytes.loaded;
-		var total:int = bytes.total;
-
-		// Dispatch a progress event (later we might conditionalize this
-		// so that it isn't sent on a cache load).
-		dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS,
-										false, false, loaded, total));
-
-		if (waitingToLoadResourceModules)
-		{
-			if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
-			{
-				waitingToLoadResourceModules = false;
-				rslListLoader = resourceModuleListLoader;
-				rslDone = false;
-				// Start loading the resourceModules
-				rslListLoader.load(rslProgressHandler,
-								   rslCompleteHandler,
-								   rslErrorHandler,
-								   rslErrorHandler,
-								   rslErrorHandler);
-			}
-		}
-
-		// Check if we are finished
-		if (rslDone &&
-			((loaded >= total && total > 0) || (total == 0 && loaded > 0) || (root is MovieClip && (MovieClip(root).totalFrames > 2) && (MovieClip(root).framesLoaded >= 2)) ))
-		{
-			if (!sentDocFrameReady)
-			{
-				// If there's a displayClass, don't send the PRELOADER_DOC_FRAME_READY
-				// event before we render at least one frame
-				if (showDisplay && !waitedAFrame)
-					return;
-
-				sentDocFrameReady = true;
-				// Dispatch a Frame1 done event.
-				dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DOC_FRAME_READY));
-				return;
-			}
-
-			if (waitingToLoadResourceModules)
-			{
-				if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
-				{
-					waitingToLoadResourceModules = false;
-					rslListLoader = resourceModuleListLoader;
-					rslDone = false;
-					// Start loading the resourceModules
-					rslListLoader.load(rslProgressHandler,
-									   rslCompleteHandler,
-									   rslErrorHandler,
-									   rslErrorHandler,
-									   rslErrorHandler);
-					return;
-				}
-			}
-
-			timer.removeEventListener(TimerEvent.TIMER, timerHandler);
-
-			// Stop the timer.
-			timer.reset();
-
-			// Dispatch a complete event.
-			dispatchEvent(new Event(Event.COMPLETE));
-
-			// Dispatch an initProgress event.
-			dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
-
-		}
-	}
-
-	/**
-	 *  @private
-	 */
-	private function ioErrorHandler(event:IOErrorEvent):void
-	{
-		// Ignore the event
-	}
-
-	/**
-	 *  @private
-	 *	Called when the displayClass has finished animating
-	 *  and no longer needs to be displayed.
-	 */
-	private function displayClassCompleteHandler(event:Event):void
-	{
-	    // Cleanup
-		if (displayClass)
-			displayClass.removeEventListener(Event.COMPLETE, displayClassCompleteHandler);
-
-		if (root)
-		    root.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
-
-		if (app)
-		{
-    		app.removeEventListener("validatePropertiesComplete", appProgressHandler);
-    		app.removeEventListener("validateSizeComplete", appProgressHandler);
-    		app.removeEventListener("validateDisplayListComplete", appProgressHandler);
-    		app.removeEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
-    		app = null;
-    	}
-
-		// Send an event to the SystemManager that we are completely finished
-		dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DONE));
-	}
-
-	/**
-	 *  @private
-	 */
-	private function appCreationCompleteHandler(event:FlexEvent):void
-	{
-		dispatchAppEndEvent();
-	}
-
-	/**
-	 *  @private
-	 */
-	private function appProgressHandler(event:Event):void
-	{
-		dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
-	}
+        rslEvent.rslTotal = rslListLoader.getItemCount();
+        rslEvent.url = item.urlRequest;
+        dispatchEvent(rslEvent);
+
+        if (loadingRSLs && resourceModuleListLoader && index + 1 == rslEvent.rslTotal)
+        {
+            loadingRSLs = false;
+            waitingToLoadResourceModules = true;
+            // timer will switch over to loading resource modules
+        }
+
+        rslDone = (index + 1 == rslEvent.rslTotal);
+    }
+
+
+    /**
+     *  @private
+     */
+    mx_internal function rslErrorHandler(event:ErrorEvent):void
+    {
+        // send an error event
+        var index:int = rslListLoader.getIndex();
+        var item:RSLItem = rslListLoader.getItem(index);
+        var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR);
+        rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
+        rslEvent.bytesLoaded = 0;
+        rslEvent.bytesTotal = 0;
+        rslEvent.rslIndex = index;
+        rslEvent.rslTotal = rslListLoader.getItemCount();
+        rslEvent.url = item.urlRequest;
+        rslEvent.errorText = decodeURI(event.text);
+        dispatchEvent(rslEvent);
+
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Listen or poll for progress events and dispatch events
+     *  describing the current state of the download
+     */
+    private function timerHandler(event:TimerEvent):void
+    {
+        // loaded swfs may not have root right away
+        if (!root)
+            return;
+
+        var bytes:Object = getByteValues();
+        var loaded:int = bytes.loaded;
+        var total:int = bytes.total;
+
+        // Dispatch a progress event (later we might conditionalize this
+        // so that it isn't sent on a cache load).
+        dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS,
+                                        false, false, loaded, total));
+
+        if (waitingToLoadResourceModules)
+        {
+            if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
+            {
+                waitingToLoadResourceModules = false;
+                rslListLoader = resourceModuleListLoader;
+                rslDone = false;
+                // Start loading the resourceModules
+                rslListLoader.load(rslProgressHandler,
+                                   rslCompleteHandler,
+                                   rslErrorHandler,
+                                   rslErrorHandler,
+                                   rslErrorHandler);
+            }
+        }
+
+        // Check if we are finished
+        if (rslDone &&
+            ((loaded >= total && total > 0) || (total == 0 && loaded > 0) || (root is MovieClip && (MovieClip(root).totalFrames > 2) && (MovieClip(root).framesLoaded >= 2)) ))
+        {
+            if (!sentDocFrameReady)
+            {
+                // If there's a displayClass, don't send the PRELOADER_DOC_FRAME_READY
+                // event before we render at least one frame
+                if (showDisplay && !waitedAFrame)
+                    return;
+
+                sentDocFrameReady = true;
+                // Dispatch a Frame1 done event.
+                dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DOC_FRAME_READY));
+                return;
+            }
+
+            if (waitingToLoadResourceModules)
+            {
+                if (applicationDomain.hasDefinition("mx.resources::ResourceManager"))
+                {
+                    waitingToLoadResourceModules = false;
+                    rslListLoader = resourceModuleListLoader;
+                    rslDone = false;
+                    // Start loading the resourceModules
+                    rslListLoader.load(rslProgressHandler,
+                                       rslCompleteHandler,
+                                       rslErrorHandler,
+                                       rslErrorHandler,
+                                       rslErrorHandler);
+                    return;
+                }
+            }
+
+            timer.removeEventListener(TimerEvent.TIMER, timerHandler);
+
+            // Stop the timer.
+            timer.reset();
+
+            // Dispatch a complete event.
+            dispatchEvent(new Event(Event.COMPLETE));
+
+            // Dispatch an initProgress event.
+            dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
+
+        }
+    }
+
+    /**
+     *  @private
+     */
+    private function ioErrorHandler(event:IOErrorEvent):void
+    {
+        // Ignore the event
+    }
+
+    /**
+     *  @private
+     *  Called when the displayClass has finished animating
+     *  and no longer needs to be displayed.
+     */
+    private function displayClassCompleteHandler(event:Event):void
+    {
+        // Cleanup
+        if (displayClass)
+            displayClass.removeEventListener(Event.COMPLETE, displayClassCompleteHandler);
+
+        if (root)
+            root.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
+
+        if (app)
+        {
+            app.removeEventListener("validatePropertiesComplete", appProgressHandler);
+            app.removeEventListener("validateSizeComplete", appProgressHandler);
+            app.removeEventListener("validateDisplayListComplete", appProgressHandler);
+            app.removeEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler);
+            app = null;
+        }
+
+        // Send an event to the SystemManager that we are completely finished
+        dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DONE));
+    }
+
+    /**
+     *  @private
+     */
+    private function appCreationCompleteHandler(event:FlexEvent):void
+    {
+        dispatchAppEndEvent();
+    }
+
+    /**
+     *  @private
+     */
+    private function appProgressHandler(event:Event):void
+    {
+        dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 1262
Author:   jimurphy@adobe.com
Date:     2008-04-16T18:53:40.899270Z

Log Message:
-----------
Merged revisions 1219,1241,1261 via svnmerge from
http://opensource.adobe.com/svn/opensource/flex/sdk/branches/3.0.x

........
  r1219 | gosmith@adobe.com | 2008-04-15 14:00:39 -0400 (Tue, 15 Apr 2008) | 1 line

  Fixed a problem with the bin/asdoc tool. asDocHelper and asDocHelper.linux in asdoc/templates need to have the svn:executable property set.
........
  r1241 | genovese@adobe.com | 2008-04-15 21:55:32 -0400 (Tue, 15 Apr 2008) | 1 line

  ASDoc updates, added missing parameter descriptions, etc.
........
  r1261 | mhorn@adobe.com | 2008-04-16 14:38:28 -0400 (Wed, 16 Apr 2008) | 1 line

  bug fix FlexDocs-420
........

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/asdoc/templates/asDocHelper.linux</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/asdoc/templates/asDocHelper</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/AbstractTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ActionEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as
+++ frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as
@@ -35,6 +35,11 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     * Constructor.
+     *
+     * @param item An Object containing name/value pairs.
+     */
     public function ConfigMap(item:Object = null)
     {
         super();


Transferred from the Adobe Open Source Subversion Repository

Revision: 14941
Author:   cframpto@adobe.com
Date:     2010-03-23T16:14:48.350064Z

Log Message:
-----------
Merge mouseWheel scroller change 14940 from 4.x to trunk.

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

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -15,6 +15,7 @@
 import flash.geom.Point;

 import mx.core.EventPriority;
+import mx.core.IInvalidating;
 import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
 import mx.events.ResizeEvent;
@@ -433,7 +434,11 @@
         {
             var hspDelta:Number = vp.getHorizontalScrollPositionDelta(navigationUnit);
             if (!isNaN(hspDelta))
+            {
                 vp.horizontalScrollPosition += hspDelta;
+                if (vp is IInvalidating)
+                    IInvalidating(vp).validateNow();
+            }
         }

         event.preventDefault();


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

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

 package spark.events
 {


Mute Flash completely to quiet noisy swfs

--- exporter/src/main/as/flump/export/FlumpApp.as
+++ exporter/src/main/as/flump/export/FlumpApp.as
@@ -8,6 +8,8 @@
 import flash.events.Event;
 import flash.events.InvokeEvent;
 import flash.filesystem.File;
+import flash.media.SoundMixer;
+import flash.media.SoundTransform;
 import flash.net.FileFilter;

 import flump.xfl.XflLibrary;
@@ -32,6 +34,10 @@
     }

     public function run () :void {
+        // Disable sound completely. A SWF that plays sound on its stage will be
+        // noisy as soon as we load it.
+        SoundMixer.soundTransform = new SoundTransform(0);
+
         // Setup our global menu if we support it
         setupGlobalMenus();


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3755
Author:   chaase@adobe.com
Date:     2008-10-20T21:09:39.321431Z

Log Message:
-----------
Fixed sdk-17414, sdk-17413, sdk-17409. Also fixed various small asdoc errors (related to recent classname changes).

QE Notes: None
Doc Notes: None
Bugs: sdk-17414, sdk-17413, sdk-17409
Reviewer: Hans

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PauseInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Pause.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/PropertyValuesHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxMove.as</path>

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/PauseInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/PauseInstance.as
@@ -105,7 +105,8 @@
             eventSource.addEventListener(eventName, eventHandler);
         }

-        tween = createTween(this, 0, 0, duration);
+        if (duration >= 0)
+            tween = createTween(this, 0, 0, duration);
     }

     //--------------------------------------------------------------------------
@@ -120,7 +121,19 @@
      */
     private function eventHandler(event:Event):void
     {
-        end();
+        if (duration >= 0)
+        {
+            // Non-negative duration means we must have started
+            // a tween; let it end normally
+            end();
+        }
+        else
+        {
+            // We didn't start a tween, so finish the effect manually
+            if (eventSource)
+                eventSource.removeEventListener(eventName, eventHandler);
+            finishRepeat();
+        }
     }

     /**
@@ -131,9 +144,9 @@
      */
     override public function onTweenEnd(value:Object):void
     {
-        super.onTweenEnd(value);
         if (eventSource)
             eventSource.removeEventListener(eventName, eventHandler);
+        super.onTweenEnd(value);
     }
 }


[VectorCommon] Fixed Shift + KEY issues on editing

git-svn-id: adbdea8fc1759bd16b0eaf24a244a7e5f870a654@106 fe3f0490-d73e-11de-a956-c71e7d3a9d2f

--- VectorCommon/src/org/jbei/components/sequenceClasses/ContentHolder.as
+++ VectorCommon/src/org/jbei/components/sequenceClasses/ContentHolder.as
@@ -1277,7 +1277,7 @@
 	    		shiftKeyDown = true;
 				keysSelectionDirection = 0;
 	    	}
-
+
 	    	if(event.ctrlKey && event.keyCode == Keyboard.LEFT) {
 				tryMoveCaretToPosition((_caretPosition % 10 == 0) ? _caretPosition - 10 : int(_caretPosition / 10) * 10);
 	    	} else if(event.ctrlKey && event.keyCode == Keyboard.RIGHT) {
@@ -1310,7 +1310,7 @@
 				} else {
 					tryMoveCaretToPosition(_caretPosition + numberOfVisibleRows * _bpPerRow);
 				}
-			} else if(!event.ctrlKey && !event.shiftKey && !event.altKey && _caretPosition != -1) {
+			} else if(!event.ctrlKey && !event.altKey && _caretPosition != -1) {
 				if(SequenceUtils.SYMBOLS.indexOf(keyCharacter) >= 0) {
 					if(_safeEditing) {
 						doInsertSequence(new DNASequence(keyCharacter), _caretPosition);


fixed name normalization

fixed name normalization

--- frameworks/projects/XML/as/src/XML.as
+++ frameworks/projects/XML/as/src/XML.as
@@ -378,7 +378,7 @@
 				return this;
 			if(ns.prefix === undefined)
 				return this;
-			if(ns.prefix == "" && _name.uri == "")
+			if(ns.prefix == "" && name().uri == "")
 				return this;
 			var match:Namespace = null;
 			var i:int;
@@ -395,8 +395,8 @@
 			else
 				_namespaces.push(ns);

-			if(ns.prefix == _name.prefix)
-				_name.prefix = undefined;
+			if(ns.prefix == name().prefix)
+				name().prefix = undefined;

 			for(i=0;i<_attributes.length;i++)
 			{
@@ -860,46 +860,47 @@
 		 */
 		public function localName():Object
 		{
+			return name().localName;
+		}
+
+		private var _name:QName;
+
+		/**
+		 * Gives the qualified name for the XML object.
+		 *
+		 * @return
+		 *
+		 */
+		public function name():Object
+		{
+			if(!_name)
+				_name = new QName();
+			return _name;
+		}
+
+		/**
+		 * If no parameter is provided, gives the namespace associated with the qualified name of this XML object.
+		 *
+		 * @param prefix
+		 * @return
+		 *
+		 */
+		public function namespace(prefix:String = null):*
+		{
 			return null;
 		}
-
-		private var _name:QName;
-
-		/**
-		 * Gives the qualified name for the XML object.
-		 *
-		 * @return
-		 *
-		 */
-		public function name():Object
-		{
-			return _name;
+
+		/**
+		 * Lists namespace declarations associated with the XML object in the context of its parent.
+		 *
+		 * @return
+		 *
+		 */
+		public function namespaceDeclarations():Array
+		{
 			return null;
 		}

-		/**
-		 * If no parameter is provided, gives the namespace associated with the qualified name of this XML object.
-		 *
-		 * @param prefix
-		 * @return
-		 *
-		 */
-		public function namespace(prefix:String = null):*
-		{
-			return null;
-		}
-
-		/**
-		 * Lists namespace declarations associated with the XML object in the context of its parent.
-		 *
-		 * @return
-		 *
-		 */
-		public function namespaceDeclarations():Array
-		{
-			return null;
-		}
-
 		private var _nodeKind:String = "element";
 		/**
 		 * Specifies the type of node: text, comment, processing-instruction, attribute, or element.
@@ -919,11 +920,11 @@
 		 */
 		public function normalize():XML
 		{
-			var len:int = this._children.length-1;
+			var len:int = _children.length-1;
 			var lastChild:XML;
 			for(var i:int=len;i>=0;i--)
 			{
-				var child:XML = this.child(i)[0];
+				var child:XML = _children[i];
 				// can we have a null child?

 				if(child.nodeKind() == "element")
@@ -942,7 +943,6 @@
 				}
 				lastChild = child;
 			}
-			for(i=0;i<)
 			return this;
 		}

@@ -1328,7 +1328,7 @@
 			if(_nodeKind == "text" || _nodeKind == "comment" || _nodeKind == "processing-instruction")
 				return;
 			var ns2:Namespace = new Namespace(ns);
-			_name = new QName(ns2,_name);
+			_name = new QName(ns2,name());

 			if(_nodeKind == "attribute")
 			{
@@ -1447,7 +1447,7 @@
 				}
 				else
 				{
-					qname = new QName(_name);
+					qname = new QName(name());
 					if(!qname.uri && defaultNamespace)
 					{
 						qname = new QName(defaultNamespace);
@@ -1574,7 +1574,7 @@
 				return indent + "<!--" +  _value + "-->";

 			if(this.nodeKind() == "processing-instruction")
-				return indent + "<?" + _name.localName + " " + _value + "?>";
+				return indent + "<?" + name().localName + " " + _value + "?>";

 			// We excluded the other types, so it's a normal element
 			//TODO I'm here...


Transferred from the Adobe Open Source Subversion Repository

Revision: 20254
Author:   egeorgie@adobe.com
Date:     2011-02-09T22:21:31.480031Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-29364 Flash Component and Container should be possible to be used in mobile project

In this change:
- remove references to Canvas and Image, replace with custom container and SWFLoader respectively.

QE notes:
Doc notes:
Bugs: SDK-29364
Reviewer: Ryan
Tests run: build, manual
Is noteworthy for integration: Yes, FB-28507 depends on this one

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/authoringsupport/src/FlashComponentPlaceholder.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as</path>

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

--- frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
+++ frameworks/projects/authoringsupport/src/FlashContainerPlaceholder.as
@@ -13,15 +13,15 @@
 {
 import flash.display.Shape;

-import mx.containers.Canvas;
-import mx.controls.Image;
+import mx.controls.SWFLoader;
+import mx.core.UIComponent;
 import mx.flash.ContainerMovieClip;
 import mx.flash.FlexContentHolder;

 [IconFile("flash_container_icon_small.png")]
 public class FlashContainerPlaceholder extends ContainerMovieClip
 {
-    protected var image1:Image;
+    protected var image1:SWFLoader;

     public function FlashContainerPlaceholder()
     {
@@ -37,28 +37,21 @@

         var fch:FlexContentHolder = new MyFlexContentHolder();

-        var canvas1:Canvas = new Canvas();
-        canvas1.horizontalScrollPolicy = "off";
-        canvas1.verticalScrollPolicy = "off";
-        canvas1.setStyle('borderStyle', 'solid');
-        canvas1.setStyle('borderThickness', '2');
-        canvas1.setStyle('borderColor', '0xCCCCCC');
-        canvas1.percentHeight = 100;
-        canvas1.percentWidth = 100;
-        canvas1.addChild(createImage());
+        var imageHolder:UIComponent = new SimpleUIComponentContainer();
+		imageHolder.percentHeight = 100;
+		imageHolder.percentWidth = 100;
+		imageHolder.addChild(createImage());

         this.addChild(fch);

-        this.content = canvas1;
+        this.content = imageHolder;
     }

-    protected function createImage():Image
+    protected function createImage():SWFLoader
     {
-        image1 = new Image();
+        image1 = new SWFLoader();
         image1.source = _embed_mxml_flash_container_icon_png;
         image1.scaleContent = false;
-        image1.percentHeight = 100;
-        image1.percentWidth = 100;
         image1.setStyle('horizontalAlign' , 'center');
         image1.setStyle('verticalAlign' , 'middle');
         return image1;
@@ -79,4 +72,42 @@
     [Embed(source='flash_container_icon.png')]
     private var _embed_mxml_flash_container_icon_png:Class;
 }
+
+}
+import mx.core.UIComponent;
+
+class SimpleUIComponentContainer extends UIComponent
+{
+	override protected function measure():void
+	{
+		super.measure();
+
+		// we know we always have one child and it should take up the whole width/height
+		var child:UIComponent = UIComponent(getChildAt(0));
+
+		measuredWidth = child.getPreferredBoundsWidth();
+		measuredHeight = child.getPreferredBoundsHeight();
+	}
+
+	override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+	{
+		graphics.clear();
+
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		// draw border
+		graphics.lineStyle(2, 0xCCCCCC);
+		graphics.beginFill(0x000000, 0); // transparent fill for hit testing
+		graphics.drawRect(1, 1, unscaledWidth - 2, unscaledHeight - 2); // adjust for stroke
+		graphics.endFill();
+
+		// position the one child.  we know we always have
+		// only one child, and it's a SWFLoader.  To center it,
+		// we just need to set the width/height to take up the whole
+		// thing...the centering will happen inside of SWFLoader
+		var child:UIComponent = UIComponent(getChildAt(0));
+
+		child.setLayoutBoundsSize(unscaledWidth, unscaledHeight);
+		child.setLayoutBoundsPosition(0, 0);
+	}
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as
+++ frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as
@@ -11,12 +11,13 @@

 package mx.messaging.config
 {
-
+import flash.display.DisplayObject;
 import mx.core.mx_internal;

 use namespace mx_internal;

 [ExcludeClass]
+[Mixin]

 /**
  *  @private
@@ -29,6 +30,22 @@
 {
     include "../../core/Version.as";

+    //--------------------------------------------------------------------------
+    //
+    //  class initialization
+    //
+    //--------------------------------------------------------------------------
+
+    public static function init(root:DisplayObject):void
+    {
+        // if somebody has set this in our applicationdomain hierarchy, don't overwrite it
+        if (!_url)
+        {
+            _url = root.loaderInfo.url;
+            _parameters = root.loaderInfo.parameters;
+        }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Constructor


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

--- frameworks/projects/framework/src/mx/utils/DescribeTypeCacheRecord.as
+++ frameworks/projects/framework/src/mx/utils/DescribeTypeCacheRecord.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 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.utils
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22118
Author:   jasonsj@adobe.com
Date:     2011-08-19T22:45:54.903069Z

Log Message:
-----------
SDK-31259 CalloutSkin graphic ordering
SDK-29673 default button skins for ActionBar buttons.

Update CalloutArrow to match spec, useBackgroundGradient should be protected.

Update mobile skins test app with emphasized examples and fix Callout examples to use to contentBackgroundAppearance.

QE notes: Fixed regression from contentBackgroundAppearance. Update baselines for ActionBar accentColor tests.
Doc notes: ActionBar buttons now support emphasized (i.e. accentColor)
Bugs:
SDK-31259 slight difference in callout content for 320 and 240/160 runs
SDK-29673 accentColor not working inside ActionBarsdk
Reviewer: tkraikit, betravis
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/CalloutContentBackground.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
@@ -363,11 +363,14 @@
         if (contentBackgroundAppearance == ContentBackgroundAppearance.INSET)
         {
             // create the contentBackgroundGraphic
-            if (contentBackgroundInsetClass && !contentBackgroundGraphic)
+            if (!contentBackgroundGraphic && contentBackgroundInsetClass)
+            {
                 contentBackgroundGraphic = new contentBackgroundInsetClass() as SpriteVisualElement;
-
-            if (contentBackgroundGraphic)
-                addChildAt(contentBackgroundGraphic, getChildIndex(contentGroup));
+
+                // with the current skin structure, contentBackgroundGraphic is
+                // always the last child
+                addChild(contentBackgroundGraphic);
+            }
         }
         else if (contentBackgroundGraphic)
         {


Fixed errors in ZoomBounds.

Fixed errors in ZoomBounds.

Change-Id: Ibc81a53378075604cdeab6b6636a4596eb297ac0

--- WeaveData/src/weave/primitives/ZoomBounds.as
+++ WeaveData/src/weave/primitives/ZoomBounds.as
@@ -28,6 +28,7 @@
 	import weave.api.primitives.IBounds2D;
 	import weave.api.registerLinkableChild;
 	import weave.api.setSessionState;
+	import weave.compiler.MathLib;
 	import weave.core.LinkableBoolean;
 	import weave.core.LinkableNumber;
 	import weave.core.SessionManager;
@@ -35,6 +36,7 @@
 	/**
 	 * This object defines the data bounds of a visualization, either directly with
 	 * absolute coordinates or indirectly with center coordinates and a scale value.
+	 * Screen coordinates are never directly specified in the session state.
 	 *
 	 * @author adufilie
 	 */
@@ -46,9 +48,12 @@

 		private const _dataBounds:Bounds2D = new Bounds2D();
 		private const _screenBounds:Bounds2D = new Bounds2D();
-		private const _useCenterCoords:Boolean = false;
-		private const _cc:ICallbackCollection = getCallbackCollection(this);
+		private var _useCenterCoords:Boolean = false;

+		/**
+		 * The session state has two modes: absolute coordinates and center/scale coordinates.
+		 * @return The current session state.
+		 */
 		public function getSessionState():Object
 		{
 			return null;
@@ -64,20 +69,26 @@
 			else
 			{
 				return {
-					xCenter: _dataBounds.getXCenter(),
-					yCenter: _dataBounds.getXCenter(),
-					areaPerPixel: _dataBounds.getArea() / _screenBounds.getArea()
+					xCenter: MathLib.roundSignificant(_dataBounds.getXCenter()),
+					yCenter: MathLib.roundSignificant(_dataBounds.getXCenter()),
+					areaPerPixel: MathLib.roundSignificant(_dataBounds.getArea() / _screenBounds.getArea())
 				};
 			}
 		}

+		/**
+		 * The session state can be specified in two ways: absolute coordinates and center/scale coordinates.
+		 * @param The new session state.
+		 */
 		public function setSessionState(state:Object):void
 		{
-			_cc.delayCallbacks();
+			var cc:ICallbackCollection = getCallbackCollection(this);
+			cc.delayCallbacks();
+
 			if (state == null)
 			{
 				if (!_dataBounds.isUndefined())
-					_cc.triggerCallbacks();
+					cc.triggerCallbacks();
 				_dataBounds.reset();
 			}
 			else
@@ -85,28 +96,29 @@
 				var usedCenterCoords:Boolean = false;
 				if (state.hasOwnProperty("xCenter"))
 				{
-					if (_dataBounds.getXCenter() != state.xCenter)
+					if (MathLib.roundSignificant(_dataBounds.getXCenter()) != state.xCenter)
 					{
 						_dataBounds.setXCenter(state.xCenter);
-						_cc.triggerCallbacks();
+						cc.triggerCallbacks();
 					}
 					usedCenterCoords = true;
 				}
 				if (state.hasOwnProperty("yCenter"))
 				{
-					if (_dataBounds.getYCenter() != state.yCenter)
+					if (MathLib.roundSignificant(_dataBounds.getYCenter()) != state.yCenter)
 					{
 						_dataBounds.setYCenter(state.yCenter);
-						_cc.triggerCallbacks();
+						cc.triggerCallbacks();
 					}
 					usedCenterCoords = true;
 				}
 				if (state.hasOwnProperty("areaPerPixel"))
 				{
-					if (_dataBounds.getArea() / _screenBounds.getArea() != state.areaPerPixel)
+					if (MathLib.roundSignificant(_dataBounds.getArea() / _screenBounds.getArea()) != state.areaPerPixel)
 					{
-						_dataBounds.setXCenter(state.xCenter);
-						_cc.triggerCallbacks();
+						var scale:Number = Math.sqrt(state.areaPerPixel);
+						_dataBounds.centeredResize(_screenBounds.getXCoverage() * scale, _screenBounds.getYCoverage() * scale);
+						cc.triggerCallbacks();
 					}
 					usedCenterCoords = true;
 				}
@@ -119,20 +131,28 @@
 						if (state.hasOwnProperty(name) && _dataBounds[name] != state[name])
 						{
 							_dataBounds[name] = state[name];
-							_cc.triggerCallbacks();
+							cc.triggerCallbacks();
 						}
 					}
 				}
 			}

-			_cc.resumeCallbacks();
+			cc.resumeCallbacks();
 		}

+		/**
+		 * This function will copy the internal dataBounds to another IBounds2D.
+		 * @param outputScreenBounds The destination.
+		 */
 		public function getDataBounds(outputDataBounds:IBounds2D):void
-		{
-			outputDataBounds.copyFrom(_dataBounds);
-		}
+		{
+			outputDataBounds.copyFrom(_dataBounds);
+		}

+		/**
+		 * This function will copy the internal screenBounds to another IBounds2D.
+		 * @param outputScreenBounds The destination.
+		 */
 		public function getScreenBounds(outputScreenBounds:IBounds2D):void
 		{
 			outputScreenBounds.copyFrom(_screenBounds);
@@ -146,15 +166,17 @@
 		 */
 		public function setBounds(dataBounds:Bounds2D, screenBounds:IBounds2D, useCenterCoords:Boolean):void
 		{
-			_cc.delayCallbacks();
+			var cc:ICallbackCollection = getCallbackCollection(this);
+			cc.delayCallbacks();
+
 			if (_useCenterCoords != useCenterCoords || !_dataBounds.equals(dataBounds) || (useCenterCoords && !_screenBounds.equals(screenBounds)))
-				_cc.triggerCallbacks();
+				cc.triggerCallbacks();

 			_dataBounds.copyFrom(dataBounds);
 			_screenBounds.copyFrom(screenBounds);
 			_useCenterCoords = useCenterCoords;

-			_cc.resumeCallbacks();
+			cc.resumeCallbacks();
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/ViewStackAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/ViewStackAutomationImpl.as
@@ -0,0 +1,96 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.containers
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObject;
+	import mx.automation.delegates.core.ContainerAutomationImpl;
+	import mx.containers.ViewStack;
+	import mx.core.mx_internal;
+	import mx.events.ChildExistenceChangedEvent;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  ViewStack class.
+	 *
+	 *  @see mx.containers.ViewStack
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class ViewStackAutomationImpl extends ContainerAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(ViewStack, ViewStackAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj ViewStack object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ViewStackAutomationImpl(obj:ViewStack)
+		{
+			super(obj);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get viewStack():ViewStack
+		{
+			return uiComponent as ViewStack;
+		}
+
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 3095
Author:   matamel@adobe.com
Date:     2008-09-04T15:50:31.000858Z

Log Message:
-----------
Feature: Message throttling - message frequency limits subfeature.
QA: Yes
Doc: Not yet
Checkintests: Pass

Details: This is the BlazeDS client part of the message frequency limits sub-feature of Message throttling feature. This check-in adds the ability for the Consumer to specify a maxFrequency globally or per-subscription.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/CommandMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as
+++ frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as
@@ -19,15 +19,22 @@
 public class SubscriptionInfo
 {
     /**
-     * The subtopic - if null, represents a subscription for messages directed to the
+     * The subtopic. If null, represents a subscription for messages directed to the
      * destination with no subtopic.
      */
     public var subtopic:String;

     /**
-     * The selector.  If null, indicates all messages should be sent.
+     * The selector. If null, indicates all messages should be sent.
      */
     public var selector:String;
+
+    /**
+     * The maximum number of messages per second the subscription wants to receive.
+     * Zero means the subscription has no preference for the number of messages
+     * it receives.
+     */
+    public var maxFrequency:uint;

     /** Builds a new SubscriptionInfo with the specified subtopic and selector.
      *
@@ -35,11 +42,15 @@
      *  for messages directed to the destination with no subtopic.
      *
      *  @param sel The selector. If null, inidcates all messages should be sent.
+     *
+     *  @param mi The maximum number of messages per second the subscription wants
+     *  to receive. Zero means no preference.
      */
-    public function SubscriptionInfo(st:String, sel:String)
+    public function SubscriptionInfo(st:String, sel:String, mf:uint = 0)
     {
         subtopic = st;
         selector = sel;
+        maxFrequency = mf;
     }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3048
Author:   jvroom@adobe.com
Date:     2008-08-29T22:40:17.623182Z

Log Message:
-----------
Always map urls through the rootURL property, even for the non-proxy case.  This might
change the behavior slightly if you set rootURL on HTTPService for the non-proxy case
as that would have been ignored in the current code path but it seem less consistent.
If rootURL is not set, it defaults to the swf's URL which should give the same relative
URL semantics we get today by default when rootURL is not set.

blazeDS checkintests pass

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -687,7 +687,7 @@
                     asyncRequest.channelSet = dcs;
             }

-            message.url = url;
+            message.url = URLUtil.getFullURL(rootURL, url);
         }

         message.contentType = ctype;


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

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


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

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

 package mx.automation.delegates.controls
 {


Code clean

Code clean

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/EntityProxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/EntityProxy.as
@@ -37,17 +37,7 @@
 		}

 		public function getChildren(nodeName:String):IList {
-			var result:ArrayCollection;
-			if(nodeName == null) {
-				result = new ArrayCollection();
-				var listOfChildren:ArrayCollection = childrenByName.values;
-				for each (var nodes:IList in listOfChildren) {
-					result.addAll(nodes);
-				}
-			} else {
-				result = childrenByName.get(nodeName);
-			}
-			return result;
+			return childrenByName.get(nodeName);
 		}

 		public function getChild(nodeName:String, index:int):NodeProxy {


Transferred from the Adobe Open Source Subversion Repository

Revision: 6801
Author:   smgilson@adobe.com
Date:     2009-05-11T20:42:31.171280Z

Log Message:
-----------
ASDoc updates for AIR comps

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacMinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/RestoreButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacMaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/CloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/MacTitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/GripperSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as
+++ frameworks/projects/airspark/src/spark/components/windowClasses/TitleBar.as
@@ -29,7 +29,8 @@
 import spark.skins.default.TitleBarSkin;

 /**
- *  The default title bar for a WindowedApplication or a Window.
+ *  The TitleBar class defines the default title bar for a
+ *  WindowedApplication or a Window container.
  *
  *  @see mx.core.Window
  *  @see mx.core.WindowedApplication
@@ -103,7 +104,7 @@
     //----------------------------------

     /**
-     *  The Button object that defines the close button.
+     *  The skin part that defines the Button control that corresponds to the close button.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -117,7 +118,7 @@
     //----------------------------------

     /**
-     *  The Button object that defines the maximize button.
+     *  The skin part that defines the Button control that corresponds to the maximize button.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -131,7 +132,7 @@
     //----------------------------------

     /**
-     *  The Button object that defines the minimize button.
+     *  The skin part that defines the Button control that corresponds to the minimize button.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -159,7 +160,7 @@
     //----------------------------------

     /**
-     *  The UITextField in the title bar that displays the application title.
+     *  The skin part that defines the UITextField control that displays the application title text.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1
@@ -461,7 +462,9 @@
     }

     /**
-     *  Handles a doubleClick event in a platform-appropriate manner.
+     *  The method that handles a doubleClick event in a platform-appropriate manner.
+     *
+     *  @param event The event object.
      *
      *  @langversion 3.0
      *  @playerversion AIR 1.1