Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/framework/src/mx/states/State.as
+++ frameworks/projects/framework/src/mx/states/State.as
@@ -28,6 +28,11 @@
  *  Dispatched after a view state has been entered.
  *
  *  @eventType mx.events.FlexEvent.ENTER_STATE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="enterState", type="mx.events.FlexEvent")]

@@ -37,6 +42,11 @@
  *  to the default view state have been removed.
  *
  *  @eventType mx.events.FlexEvent.EXIT_STATE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="exitState", type="mx.events.FlexEvent")]

@@ -83,6 +93,11 @@
  *  @see mx.states.Transition
  *
  *  @includeExample examples/StatesExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class State extends EventDispatcher
 {
@@ -96,6 +111,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function State(properties:Object=null)
     {
@@ -140,6 +160,11 @@
      *  children that you define for a component without using a State class.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var basedOn:String;

@@ -153,6 +178,11 @@
      *  The name of the view state.
      *  State names must be unique for a given component.
      *  This property must be set.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var name:String;

@@ -182,6 +212,11 @@
      *  State class. You can omit the <mx:overrides> tag
      *  and its child <mx:Array>tag if you use MXML tag
      *  syntax to define the overrides.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var overrides:Array /* of IOverride */ = [];

@@ -194,6 +229,11 @@

     /**
      *  The state groups that this view state belongs to as an array of String.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var stateGroups:Array /* of String */ = [];


Transferred from the Adobe Open Source Subversion Repository

Revision: 2743
Author:   jimurphy@adobe.com
Date:     2008-08-05T19:28:29.575474Z

Log Message:
-----------
Merged 3.0.x revisions [2649,2652,2670,2694,2699-2700,2713,2721-2723,2729,2731-2732] -> trunk

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLibrary.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nUtils.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</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/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/modules/compiler/src/java/flex2/tools/SwcChecksums.java" copyfrom-rev="2732" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/SwcChecksums.java</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/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.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/modules/compiler/src/java/flex2/tools/oem/Application.java</path>

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

--- frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/XMLEncoder.as
@@ -838,6 +838,10 @@
         var maxOccurs:uint = getMaxOccurs(definition);
         var minOccurs:uint = getMinOccurs(definition);

+        // If the maximum occurence is 0 this element must not be present.
+        if (maxOccurs == 0)
+            return true;
+
         isRequired = isRequired && minOccurs > 0;

         // <element ref="..."> may be used to point to a top-level element definition
@@ -850,10 +854,6 @@
                 throw new Error("Cannot resolve element definition for ref '" + ref + "'");
         }

-        // If the maximum occurence is 0 this element must not be present.
-        if (maxOccurs == 0)
-            return true;
-
         var elementName:String = definition.@name.toString();
         var elementQName:QName = schemaManager.getQNameForElement(elementName, getAttributeFromNode("form", definition));

@@ -870,6 +870,10 @@
             if (encodedElement != null)
                 appendValue(siblings, encodedElement);

+            // If we found our element by reference, we now release the schema scope
+            if (ref != null)
+                schemaManager.releaseScope();
+
             // if required, but no value was encoded, the definition is not
             // satisfied
             if (isRequired  && encodedElement == null)
@@ -879,9 +883,6 @@
             return true;
         }

-
-
-
         // We treat maxOccurs="1" as a special case and not check the
         // occurence because we need to pass through values to SOAP
         // encoded Arrays which do not rely on minOccurs/maxOccurs


throw error in fromVector() when the size of the data and the vertex format do not match

--- src/aerys/minko/render/geometry/stream/VertexStream.as
+++ src/aerys/minko/render/geometry/stream/VertexStream.as
@@ -706,6 +706,9 @@
 										  format 	: VertexFormat,
 										  data 		: Vector.<Number>) : VertexStream
 		{
+            if (data.length % (format.numBytesPerVertex >> 2))
+                throw new Error('Invalid data length.');
+
 			var numValues 	: uint 			= data.length;
 			var stream		: VertexStream	= new VertexStream(usage, format);
 			var bytes		: ByteArray 	= stream._data;


Hook Screen to Flash's Mouse events

Hook Screen to Flash's Mouse events

The menu appears on the screen when touched and held for 2 seconds.
The timer resets if the user lifts or moves their finger


--- src/org/igniterealtime/xiff/core/XMPPBOSHConnection.as
+++ src/org/igniterealtime/xiff/core/XMPPBOSHConnection.as
@@ -261,8 +261,18 @@

 		override protected function sendXML( someData:* ):void
 		{
+			var thisData:XMLNode;
+			if (someData is XML)
+			{
+				var x : XML = someData as XML;
+				thisData = new XMLDocument( x.toXMLString() );
+			}
+			else
+			{
+				thisData = someData as XMLNode;
+			}
 			// XMLNode
-			sendQueuedRequests( someData );
+			sendQueuedRequests( thisData );
 		}

 		/**


http://www.igniterealtime.org/community/thread/40816

git-svn-id: c197267f952b24206666de142881703007ca05d5@11544 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/igniterealtime/xiff/data/ExtensionContainer.as
+++ src/org/igniterealtime/xiff/data/ExtensionContainer.as
@@ -70,7 +70,7 @@
 		{
 			for (var i:String in _exts[ns])
 			{
-				_exts[ns][i].ns();
+				removeExtension( _exts[ns][i] );
 			}
 			_exts[ns] = [];
 		}
@@ -82,8 +82,10 @@

 		public function getExtension( name:String ):Extension
 		{
-			return getAllExtensions().filter(function(obj:IExtension, idx:int, arr:Array):Boolean
-		{ return obj.getElementName() == name; })[0];
+			return getAllExtensions().filter( function(obj:IExtension, idx:int, arr:Array):Boolean
+			{
+				return obj.getElementName() == name;
+			})[0];
 		}

 		public function getAllExtensions():Array


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -51,6 +51,8 @@
 import spark.events.VideoEvent;
 import spark.primitives.VideoElement;
 import spark.primitives.supportClasses.TextGraphicElement;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Events
@@ -1008,7 +1010,7 @@
         var currentState:String;

         if (videoElement)
-            currentState = videoElement.mx_internal::videoPlayer.state;
+            currentState = videoElement.videoPlayer.state;

         // only push certain video player states to our skins.
         // Resizing, rewinding, and execQueuedCmd are ignored,
@@ -1461,7 +1463,7 @@
         }

         scrubBar.bufferedStart = 0;
-        scrubBar.bufferedEnd = videoElement.mx_internal::videoPlayer.bytesLoaded/videoElement.mx_internal::videoPlayer.bytesTotal * videoElement.totalTime;
+        scrubBar.bufferedEnd = videoElement.videoPlayer.bytesLoaded/videoElement.videoPlayer.bytesTotal * videoElement.totalTime;
     }

    /**
@@ -1689,8 +1691,8 @@
                                     y: this.y,
                                     width: this.getPreferredBoundsWidth(false),
                                     height: this.getPreferredBoundsHeight(false),
-                                    smoothing: videoElement.mx_internal::videoPlayer.smoothing,
-                                    deblocking: videoElement.mx_internal::videoPlayer.deblocking,
+                                    smoothing: videoElement.videoPlayer.smoothing,
+                                    deblocking: videoElement.videoPlayer.deblocking,
                                     includeInLayout: this.includeInLayout};
             includeInLayout = false;

@@ -1721,8 +1723,8 @@
             this.y = 0;

             // this is for video performance reasons
-            videoElement.mx_internal::videoPlayer.smoothing = false;
-            videoElement.mx_internal::videoPlayer.deblocking = 0;
+            videoElement.videoPlayer.smoothing = false;
+            videoElement.videoPlayer.deblocking = 0;

             this.validateNow();

@@ -1821,8 +1823,8 @@
         this.y = beforeFullScreenInfo.y;
         this.setLayoutBoundsSize(beforeFullScreenInfo.width, beforeFullScreenInfo.height);

-        videoElement.mx_internal::videoPlayer.smoothing = beforeFullScreenInfo.smoothing;
-        videoElement.mx_internal::videoPlayer.deblocking = beforeFullScreenInfo.deblocking;
+        videoElement.videoPlayer.smoothing = beforeFullScreenInfo.smoothing;
+        videoElement.videoPlayer.deblocking = beforeFullScreenInfo.deblocking;

         if (beforeFullScreenInfo.parent is IVisualElementContainer)
             beforeFullScreenInfo.parent.addElementAt(this, beforeFullScreenInfo.childIndex);
@@ -1960,10 +1962,10 @@
     {
         if (scrubBarMouseCaptured)
         {
-            videoElement.mx_internal::videoPlayer.flvplayback_internal::flushQueuedCmds();
+            videoElement.videoPlayer.flvplayback_internal::flushQueuedCmds();

             // check if streaming and play()...then don't seek to last value
-            if (videoElement.mx_internal::videoPlayer.isRTMP && !(source is StreamingVideoSource) && scrubBar.value == totalTime)
+            if (videoElement.videoPlayer.isRTMP && !(source is StreamingVideoSource) && scrubBar.value == totalTime)
             {
                 seek(Math.max(0, scrubBar.value-0.5));
             }
@@ -1980,4 +1982,4 @@
         scrubBarChanging = false;
     }
 }
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 2846
Author:   hmuller@adobe.com
Date:     2008-08-14T18:55:21.991879Z

Log Message:
-----------
Partial commit of the "Group as Viewport" feature.  Enables
simple scrolling for Groups with VerticalLayout.

Doc: No
Checkintests: Pass
Reviewer: Evtim

- Group.as
Adde vertical,horizontalScrollPosition properties.
They're default 0 and they're mapped to the origin of the Group's
scrollRect.  Added Number type contentWidth,Height properties.

Changed the layout property type and implementation.  The type is now
Object (was Class) to allow one to specify one of the predefined
layout class names, or a layout instance.

Currently only flex.layout.Basic,Horizontal,VerticalLayout can be
named using the (string class name valued) layout attribute.

- ItemsComponent.as
Changed the type of the layout property to Object to match the
similar change in Group.

- VerticalLayout.as
Replaced private static GAP:int constant with a similar "gap"
property.  Gap is the vertical space between rows, default is 6.

Added a rowCount:int property and a protected explicitRowCount var.
The rowCount property specifies the number of visible rows, which
implies the layoutTarget's height.  The default is -1 which means
that all rows should be visible.

Added rowHeight:Number and colWidth:Number properties, along with
their protected explicitFoo counterparts.  Currently unused.

Changed the measure function: if rowCount wasn't explicitly set
to -1, then the layoutTarget's height is the height of the first
rowCount items (plus the gap).  The layoutTarget's contentHeight
is set to the items' total height.

Changed the updateDisplayList function to set the scrollRect
to the layoutTarget's width/height.

- manifests
Added the layout classes to frameworks/projejcts/flex4/manifest.xml and to
frameworks/gumbo-manifest.xml, mxml-2009-manifest.xml.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ItemsComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
@@ -12,11 +12,14 @@
 package flex.layout
 {

+import flash.geom.Rectangle;
+
 import flex.core.Group;
 import flex.intf.ILayout;
 import flex.intf.ILayoutItem;

 import mx.containers.utilityClasses.Flex;
+

 /**
  *  Documentation is not currently available.
@@ -24,17 +27,6 @@
 public class VerticalLayout implements ILayout
 {
     include "../core/Version.as";
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-	 *  @private
-	 */
-	private static const GAP:int = 6;

     //--------------------------------------------------------------------------
     //
@@ -92,6 +84,265 @@
         _target = value;
     }

+
+    /**
+     *  @private
+     */
+    private var _gap:int = 6;
+
+    /**
+     *  @private
+     */
+    private var gapChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Vertical space between rows.
+     *
+     *  @default 6
+     */
+    public function get gap():int
+    {
+        return _gap;
+    }
+
+    /**
+     *  @private
+     */
+    public function set gap(value:int):void
+    {
+        if (_gap != value)
+        {
+			_gap = value;
+ 		   	var layoutTarget:Group = target;
+        	if (layoutTarget != null) {
+				gapChanged = true;
+            	layoutTarget.invalidateSize();
+	            layoutTarget.invalidateDisplayList();
+        	}
+        }
+    }
+
+    //----------------------------------
+    //  explicitRowCount
+    //----------------------------------
+
+    /**
+     *  The row count requested by explicitly setting
+     *  rowCount.
+     */
+    protected var explicitRowCount:int = -1;
+
+    //----------------------------------
+    //  rowCount
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _rowCount:int = -1;
+
+    /**
+     *  @private
+     */
+    private var rowCountChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  Number of rows to be displayed.
+     *  If the height of the component has been explicitly set,
+     *  this property might not have any effect.
+     *
+     *  @default -1
+     */
+    public function get rowCount():int
+    {
+        return _rowCount;
+    }
+
+    /**
+     *  @private
+     */
+    public function set rowCount(value:int):void
+    {
+        explicitRowCount = value;
+
+        if (_rowCount != value)
+        {
+            setRowCount(value);
+ 		   	var layoutTarget:Group = target;
+        	if (layoutTarget != null) {
+        		rowCountChanged = true;
+            	layoutTarget.invalidateSize();
+	            layoutTarget.invalidateDisplayList();
+        	}
+
+/*
+            rowCountChanged = true;
+            invalidateProperties();
+            invalidateSize();
+            itemsSizeChanged = true;
+            invalidateDisplayList();
+            dispatchEvent(new Event("rowCountChanged"));
+*/
+        }
+    }
+
+    /**
+     *  Sets the rowCount property without causing
+     *  invalidation or setting the explicitRowCount
+     *  property, which permanently locks in the number of rows.
+     *
+     *  @param v The row count.
+     */
+    protected function setRowCount(v:int):void
+    {
+        _rowCount = v;
+    }
+
+    //----------------------------------
+    //  explicitRowHeight
+    //----------------------------------
+
+    /**
+     *  The row height requested by explicitly setting
+     *  rowHeight.
+     */
+    protected var explicitRowHeight:Number;
+
+    //----------------------------------
+    //  rowHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _rowHeight:Number = 20;
+
+    /**
+     *  @private
+     */
+    private var rowHeightChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The height of the rows in pixels.
+     *  Unless the variableRowHeight property is
+     *  true, all rows are the same height.
+     *  If not specified, the row height is based on
+     *  the font size and other properties of the renderer.
+     */
+    public function get rowHeight():Number
+    {
+        return _rowHeight;
+    }
+
+    /**
+     *  @private
+     */
+    public function set rowHeight(value:Number):void
+    {
+        explicitRowHeight = value;
+
+        if (_rowHeight != value)
+        {
+            setRowHeight(value);
+ 		   	var layoutTarget:Group = target;
+        	if (layoutTarget != null) {
+        		rowHeightChanged = true;
+            	layoutTarget.invalidateSize();
+	            layoutTarget.invalidateDisplayList();
+        	}
+         /*
+            invalidateSize();
+            itemsSizeChanged = true;
+            invalidateDisplayList();
+            dispatchEvent(new Event("rowHeightChanged"));
+          */
+        }
+    }
+
+    /**
+     *  Sets the rowHeight property without causing invalidation or
+     *  setting of explicitRowHeight which
+     *  permanently locks in the height of the rows.
+     *
+     *  @param v The row height, in pixels.
+     */
+    protected function setRowHeight(v:Number):void
+    {
+        _rowHeight = v;
+    }
+
+    //----------------------------------
+    //  explicitColWidth
+    //----------------------------------
+
+    /**
+     *  The column width requested by explicitly setting
+     *  colWidth.
+     */
+    protected var explicitColWidth:Number;
+
+    //----------------------------------
+    //  colWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _colWidth:Number = 20;
+
+    /**
+     *  @private
+     */
+    private var colWidthChanged:Boolean = false;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  The width of the (one) column in pixels.
+     */
+    public function get colWidth():Number
+    {
+        return _colWidth;
+    }
+
+    /**
+     *  @private
+     */
+    public function set colWidth(value:Number):void
+    {
+        explicitColWidth = value;
+
+        if (_colWidth != value)
+        {
+            setColWidth(value);
+ 		   	var layoutTarget:Group = target;
+        	if (layoutTarget != null) {
+        		colWidthChanged = true;
+            	layoutTarget.invalidateSize();
+	            layoutTarget.invalidateDisplayList();
+        	}
+        }
+    }
+
+    /**
+     *  Sets the colWidth property without causing invalidation or
+     *  setting of explicitColWidth which
+     *  permanently locks in width of the (one) column.
+     *
+     *  @param v The row height, in pixels.
+     */
+    protected function setColWidth(v:Number):void
+    {
+        _colWidth = v;
+    }
+
+
     public function measure():void
     {
     	var layoutTarget:Group = target;
@@ -102,6 +353,8 @@
         var minHeight:Number = 0;
         var preferredWidth:Number = 0;
         var preferredHeight:Number = 0;
+        var visibleHeight:Number = 0;
+        var visibleRows:uint = 0;

         var count:uint = layoutTarget.numLayoutItems;
         var totalCount:uint = count; // How many items will be laid out
@@ -121,21 +374,31 @@
             var itemMinHeight:Number = hasPercentHeight(layoutItem) ? layoutItem.minSize.y : layoutItem.preferredSize.y;
             minWidth = Math.max(minWidth, itemMinWidth);
             minHeight += itemMinHeight;
+
+            if ((explicitRowCount != -1) && (visibleRows < explicitRowCount)) {
+            	visibleHeight = preferredHeight;
+            	visibleRows += 1;
+            }
         }

         if (totalCount > 1)
         {
-            var gapSpace:Number = GAP * (totalCount - 1);
+            var gapSpace:Number = gap * (totalCount - 1);
             minHeight += gapSpace;
-            preferredHeight += gapSpace;
+            preferredHeight += gapSpace;
+            visibleHeight += (visibleRows < 2) ? 0 : ((visibleRows - 1) * gap);
         }

         layoutTarget.measuredWidth = preferredWidth;
-        layoutTarget.measuredHeight = preferredHeight;
+        layoutTarget.measuredHeight = (explicitRowCount == -1) ? preferredHeight : visibleHeight;
+
+        layoutTarget.contentWidth = preferredWidth;
+        layoutTarget.contentHeight = preferredHeight;

         layoutTarget.measuredMinWidth = minWidth;
         layoutTarget.measuredMinHeight = minHeight;
     }
+

     public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
@@ -160,7 +423,7 @@

         var totalHeightToDistribute:Number = unscaledHeight;
         if (totalCount > 1)
-            totalHeightToDistribute -= (totalCount - 1) * GAP;
+            totalHeightToDistribute -= (totalCount - 1) * gap;

         distributeHeight(layoutItemArray, unscaledWidth, totalHeightToDistribute);

@@ -175,10 +438,25 @@

             lo.setActualPosition(x, y);
             y += lo.actualSize.y;
-            y += GAP;
-        }
-    }
-
+            y += gap;
+        }
+
+        var r:Rectangle = layoutTarget.scrollRect; // returns a copy
+        if (r != null)
+        {
+            r.width = unscaledWidth;
+            r.height = unscaledHeight;
+            layoutTarget.scrollRect = r;
+        }
+        else
+        {
+        	var rx:Number = layoutTarget.horizontalScrollPosition;
+        	var ry:Number = layoutTarget.verticalScrollPosition;
+        	layoutTarget.scrollRect = new Rectangle(rx, ry, unscaledWidth, unscaledHeight);
+        }
+    }
+
+
     /**
      *  This function sets the height of each child
      *  so that the heights add up to height.
@@ -248,75 +526,6 @@
         }
         return spaceToDistribute;
     }
-
-
-    /*
-    public function fill(unscaledWidth:Number, unscaledHeight:Number):void
-    {
-        var maxWidth:Number = 0;
-        var maxHeight:Number = 0;
-        var vTarget:VirtualizedContainer = _target as VirtualizedContainer;
-
-        if (!vTarget)
-            return;
-
-        var index:Number = vTarget.firstVisibleChildIndex;
-
-        while (maxHeight < unscaledHeight)
-        {
-            var child:DisplayObject = vTarget.getOrCreateChildSkin(index++);
-
-            if (!child)
-                break;
-
-            var fdoChild:IFlexDisplayObject = child as IFlexDisplayObject;
-            var uicChild:IUIComponent = child as IUIComponent;
-            if((fdoChild as UIComponent == null) || UIComponent(fdoChild).includeInLayout)
-            {
-                if (child is UIComponent)
-                    UIComponent(child).validateNow();
-
-                var childWidth:Number = uicChild ? uicChild.getExplicitOrMeasuredWidth() : fdoChild ? Math.max(fdoChild.measuredWidth, 0) : child.width;
-                var childHeight:Number = uicChild ? uicChild.getExplicitOrMeasuredHeight() : fdoChild ? Math.max(fdoChild.measuredHeight, 0) : child.height;
-
-                maxWidth = Math.max(maxWidth, childWidth);
-                maxHeight += childHeight + GAP;
-            }
-        }
-    }
-
-    public function get maxHScrollPosition():Number
-    {
-        return 0;
-    }
-
-    public function get maxVScrollPosition():Number
-    {
-        var targetVirtualizedContainer:VirtualizedContainer = _target as VirtualizedContainer;
-
-        if (targetVirtualizedContainer)
-            return targetVirtualizedContainer.children.length - target.numChildren;
-        else
-            return target.numChildren;
-    }
-
-    public function get horizontalPageSize():Number
-    {
-        return 0;
-    }
-
-    public function get verticalPageSize():Number
-    {
-        // Should calculate this somehow....
-        return 10;
-    }
-
-    public function scrollPositionToChildIndex(hScrollPosition:Number, vScrollPosition:Number):Number
-    {
-        // For vertical layout, vertical scroll position == child index
-        return vScrollPosition;
-    }
-    */
 }
 }


added more type info

added more type info

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -121,7 +121,7 @@
 		 * Shortcut for WeaveAPI.SessionManager.getPath()
 		 * @copy weave.api.core.ISessionManager#getPath()
 		 */
-		public static function findPath(root:ILinkableObject, descendant:ILinkableObject):Array
+		public static function findPath(root:ILinkableObject, descendant:ILinkableObject):Array/*/<string>/*/
 		{
 			return WeaveAPI.SessionManager.getPath(root, descendant);
 		}
@@ -130,7 +130,7 @@
 		 * Shortcut for WeaveAPI.SessionManager.getObject()
 		 * @copy weave.api.core.ISessionManager#getObject()
 		 */
-		public static function followPath(root:ILinkableObject, path:Array):ILinkableObject
+		public static function followPath(root:ILinkableObject, path:Array/*/<string|number>/*/):ILinkableObject
 		{
 			return WeaveAPI.SessionManager.getObject(root, path);
 		}
@@ -430,7 +430,7 @@
 		 * @param definition
 		 * @param additionalInterfaces An Array of interfaces (Class objects) that the definition implements in addition to ILinkableObject.
 		 */
-		public static function registerClass(qualifiedName:String, definition:Class, additionalInterfaces:Array = null):void
+		public static function registerClass(qualifiedName:String, definition:Class, additionalInterfaces:Array/*/<new()=>any>/*/ = null):void
 		{
 			WeaveAPI.ClassRegistry.registerClass(qualifiedName, definition, [ILinkableObject].concat(additionalInterfaces || []));
 		}


alwaysInFront=true

alwaysInFront=true

--- Exporter/src/harayoki/app/bitmapfont/MainSprite.as
+++ Exporter/src/harayoki/app/bitmapfont/MainSprite.as
@@ -51,6 +51,8 @@
 			_app  = NativeApplication.nativeApplication;
 			_nativeWindow = stage.nativeWindow;

+			_nativeWindow.alwaysInFront = true;
+
 			addChild(_panel);
 			_panel.btnClose.addEventListener(MouseEvent.CLICK,function(ev:MouseEvent):void{
 				_app.exit();


Comment unnecessary import

Comment unnecessary import

--- HLSPlugin/src/org/denivip/osmf/plugins/HLSPluginInfo.as
+++ HLSPlugin/src/org/denivip/osmf/plugins/HLSPluginInfo.as
@@ -1,7 +1,7 @@
 package org.denivip.osmf.plugins
 {
 	import org.denivip.osmf.elements.M3U8Element;
-	import org.denivip.osmf.logging.GALogHandler;
+	//import org.denivip.osmf.logging.GALogHandler;
 	import org.denivip.osmf.logging.HLSLoggerFactory;
 	import org.denivip.osmf.logging.LogHandler;
 	import org.denivip.osmf.logging.TraceLogHandler;
@@ -66,4 +66,4 @@
 			return new M3U8Element();
 		}
 	}
-}+}


In pause() if we don't have a NetStream object yet, set autoPlay to false.

--- src/SoundManager2_AS3.as
+++ src/SoundManager2_AS3.as
@@ -961,6 +961,8 @@
           if (s.ns) {
             s.lastValues.position = s.ns.time;
             s.ns.pause();
+          } else if (s.autoPlay) {
+            s.setAutoPlay(false);
           }
         } else {
           if (s.soundChannel) {


water

water

--- examples/src/Water3D.as
+++ examples/src/Water3D.as
@@ -6,6 +6,7 @@

 // forked from saharan's 3D水面 / Water 3D
 package {
+	import flash.__native.WebGLRenderer;
     import flash.system.LoaderContext;
     import flash.display.*;
     import flash.events.*;
@@ -59,6 +60,11 @@
         private var m00:Number, m01:Number, m02:Number, m10:Number, m11:Number, m12:Number, m20:Number, m21:Number, m22:Number;

         function Water3D() : void {
+			CONFIG::js_only{
+				SpriteFlexjs.wmode = "gpu batch";
+				SpriteFlexjs.renderer = new WebGLRenderer;
+			}
+
             if (stage) init();
             else addEventListener(Event.ADDED_TO_STAGE, init);
         }


ensure that hls.level reports the correct value after manifest is loaded

--- src/org/mangui/hls/stream/FragmentLoader.as
+++ src/org/mangui/hls/stream/FragmentLoader.as
@@ -125,10 +125,14 @@
                 // check if first fragment after seek has been already loaded
                 if (_fragment_first_loaded == false) {
                     // select level for first fragment load
-                    if (_manifest_just_loaded) {
-                        level = _hls.startlevel;
+                    if (_manual_level == -1) {
+                        if (_manifest_just_loaded) {
+                            level = _hls.startlevel;
+                        } else {
+                            level = _hls.seeklevel;
+                        }
                     } else {
-                        level = _hls.seeklevel;
+                        level = _manual_level;
                     }
                     if (level != _level || _manifest_just_loaded) {
                         _level = level;
@@ -714,7 +718,11 @@
         /** Store the manifest data. **/
         private function _manifestLoadedHandler(event : HLSEvent) : void {
             _levels = event.levels;
-            _level = 0;
+            if (_manual_level == -1) {
+                _level = _hls.startlevel;
+            } else {
+                _level = _manual_level = Math.min(_manual_level, _levels.length - 1);
+            }
             _manifest_just_loaded = true;
         };


added location to GeoFacetValue

added location to GeoFacetValue

--- src/eu/stefaner/elasticlists/data/GeoFacetValue.as
+++ src/eu/stefaner/elasticlists/data/GeoFacetValue.as
@@ -1,5 +1,6 @@
 package eu.stefaner.elasticlists.data {
 	import com.modestmaps.core.MapExtent;
+	import com.modestmaps.geo.Location;

 	import org.osflash.thunderbolt.Logger;

@@ -14,6 +15,7 @@
 		//--------------------------------------
 		public var lat : Number;
 		public var long : Number;
+		public var location : Location;

 		/**
 		 *	@Constructor
@@ -32,6 +34,7 @@
 					Logger.warn("could not read geofacetvalue coords");
 				}
 			}
+			this.location = new Location(this.lat, this.long);
 		}

 		public function isInRegion(b : MapExtent) : Boolean {


XIFF-110: download method

XIFF-110: download method

git-svn-id: c197267f952b24206666de142881703007ca05d5@13252 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/igniterealtime/xiff/data/message/OutOfBoundDataExtension.as
+++ src/org/igniterealtime/xiff/data/message/OutOfBoundDataExtension.as
@@ -25,6 +25,10 @@
  */
 package org.igniterealtime.xiff.data.message
 {
+	import flash.net.URLLoader;
+	import flash.net.URLRequest;
+	import flash.events.Event;
+
 	import org.igniterealtime.xiff.data.Extension;
 	import org.igniterealtime.xiff.data.IExtension;

@@ -73,6 +77,18 @@
 		}

 		/**
+		 * Download the data from the URL defined in this extension.
+		 * @param	callback	onComplete handler,
+		 *   function(event:Event):void, where event.target is URLLoader
+		 */
+		public function download(callback:Function):void
+		{
+			var loader:URLLoader = new URLLoader();
+			loader.addEventListener(Event.COMPLETE, callback);
+			loader.load(new URLRequest(url));
+		}
+
+		/**
 		 * Required address of the content.
 		 */
 		public function get url():String


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.rpc.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7090
Author:   hmuller@adobe.com
Date:     2009-05-19T21:51:14.747318Z

Log Message:
-----------
Improved support for fixed scrollbar thumb size: if the explicit size of the thumb is set
fixedThumbSize will use it.  H,VScrollBar::sizeThumb() now use setLayoutBoundsSize(), deal
with thumb==null.

QE Notes: Mustella scrollbar tests pass
Doc Notes:
Bugs: sdk-21129
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -135,12 +135,11 @@
      */
     override protected function positionThumb(thumbPos:Number):void
     {
-        if (thumb)
-        {
-            var trackPos:Number = track ? track.y : 0;
-            thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(),
-                                          Math.round(trackPos + thumbPos));
-        }
+        if (!thumb)
+            return;
+
+        var trackPos:Number = track ? track.y : 0;
+        thumb.setLayoutBoundsPosition(thumb.getLayoutBoundsX(), Math.round(trackPos + thumbPos));
     }

     /**
@@ -148,17 +147,28 @@
      */
     override protected function calculateThumbSize():Number
     {
+        if (!thumb)
+            return super.calculateThumbSize();
+
         var size:Number = (fixedThumbSize) ? thumb.getPreferredBoundsHeight() : super.calculateThumbSize();
         return Math.max(thumb.minHeight, size);
     }

     /**
      *  @private
+     *  Note: we're comparing the "calculated", not fixed, size of the thumb with the trackSize
+     *  to decide if the thumb should be visible.  We want to know if the thumb needs to be visible,
+     *  and the comparison would fail if we always compared the track size and the fixed thumb size.
+     *  See calculateThumbSize().
      */
     override protected function sizeThumb(thumbSize:Number):void
     {
-        thumb.height = thumbSize;
-        thumb.visible = thumbSize < trackSize;
+        if (!thumb)
+            return;
+
+        thumb.setLayoutBoundsSize(NaN, thumbSize);
+        var calculatedThumbSize:Number = (fixedThumbSize) ? super.calculateThumbSize() : thumbSize;
+        thumb.visible = calculatedThumbSize < trackSize;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/effects/easing/Linear.as
+++ frameworks/projects/spark/src/spark/effects/easing/Linear.as
@@ -8,7 +8,7 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package mx.effects.interpolation
+package spark.effects.easing
 {
 /**
  * Provides easing functionality with three phases during


git-svn-id: http://svn.rails2u.com/as3rails2u/trunk@47 96db6a20-122f-0410-8d9f-89437bbe4005

--- src/log.as
+++ src/log.as
@@ -22,15 +22,19 @@
     if (ExternalInterface.available) {
         var arg:* = args.length == 1 ? args[0] : args;

-        ExternalInterface.call(<><![CDATA[
-            (function(obj, klassName) {
-                obj.toString = function() { return klassName };
-                console.log(obj);
-            ;})
-        ]]></>.toString(),
-            ObjectInspecter.serialize(arg),
-            getQualifiedClassName(arg)
-        );
+        try {
+            ExternalInterface.call(<><![CDATA[
+                (function(obj, klassName) {
+                    obj.toString = function() { return klassName };
+                    console.log(obj);
+                ;})
+            ]]></>.toString(),
+                ObjectInspecter.serialize(arg),
+                getQualifiedClassName(arg)
+            );
+        } catch(e:Error) {
+            ExternalInterface.call('console.log', r);
+        }
     }
     return r;
   }


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

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

Modified Paths:
--------------
147 paths were modified

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

--- frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as
+++ frameworks/projects/rpc/src/mx/netmon/NetworkMonitor.as
@@ -25,6 +25,11 @@
  *  will or return false or null as appropriate.
  *  We don't use a singleton or an instance object at the moment to simplify
  *  the code that calls the monitor.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class NetworkMonitor
 {
@@ -36,31 +41,61 @@

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var isMonitoringImpl:Function;

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var adjustURLRequestImpl:Function;

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var monitorEventImpl:Function;

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var monitorInvocationImpl:Function;

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var monitorResultImpl:Function;

     /**
 	 *  To be assigned by mix-in.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static var monitorFaultImpl:Function;

@@ -72,6 +107,11 @@

     /**
      *  Returns true if the monitor is linked and monitoring.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function isMonitoring():Boolean
     {
@@ -94,6 +134,11 @@
 	 *
      *  @param correlationID The correlationID that may be used
 	 *  for associated events.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static function adjustURLRequest(urlRequest:URLRequest,
 											rootURL:String,
@@ -114,6 +159,11 @@
 	 *
      *  @param correlationID The correlationID to associate with other events
 	 *  or the request.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function monitorEvent(event:Event,
 										correlationID:String):void
@@ -130,6 +180,11 @@
 	 *
      *  @param invocationMessage The Message that will be sent across the wire.
      *  (It is untyped here to avoid linking in the dependency.)
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function monitorInvocation(id:String,
 											 invocationMessage:Object):void
@@ -145,6 +200,11 @@
      *  (It is untyped here to avoid linking in the dependency.)
 	 *
      *  @param actualResult the decoded result
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function monitorResult(resultMessage:Object,
 										 actualResult:Object):void
@@ -162,6 +222,11 @@
 	 *
      *  @param actualFault The Fault that occurred.
      *  (It is untyped here to avoid linking in the dependency.)
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static function monitorFault(faultMessage:Object,
 										actualFault:Object):void


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5293
Author:   hmuller@adobe.com
Date:     2009-03-13T15:04:38.488437Z

Log Message:
-----------
Fixed a copy-and-pasteo in DataGroup::itemRemoved(): splice(index, 0, null) should have been splice(index, 1).

Attempting to create an MXML element with more than one parent now produces a sensible error message.

QE Notes: Mustella tests pass.
Doc Notes:
Bugs: sdk-19843, sdk-19332
Reviewer: Evtim, Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/bundles/en_US/components.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -31,6 +31,7 @@
 import mx.styles.IStyleClient;
 import mx.styles.StyleProtoChain;
 import mx.graphics.baseClasses.ISharedGraphicsDisplayObject;
+import mx.core.Container;

 use namespace mx_internal;

@@ -300,6 +301,7 @@

     /**
+     *  @private
      *  Adds the elements in mxmlContent to the Group.
      *  Flex calls this method automatically; you do not call it directly.
      *
@@ -329,8 +331,15 @@
         {
             var n:int = _mxmlContent.length;
             for (i = 0; i < n; i++)
-            {
-                elementAdded(_mxmlContent[i], i);
+            {
+                var elt:IVisualElement = _mxmlContent[i];
+
+                // A common mistake is to bind the viewport property of an FxScroller
+                // to a group that was defined in the MXML file with a different parent
+                if (elt.parent && (elt.parent != this))
+                    throw new Error(resourceManager.getString("components", "mxmlElementNoMultipleParents", [elt]));
+
+                elementAdded(elt, i);
             }
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3483
Author:   rfrishbe@adobe.com
Date:     2008-10-04T00:27:35.945772Z

Log Message:
-----------
Few different changes, most to Group and DataGroup:

1.  GroupBase - added simple class ASDoc so it'll hopefully be included in the nightly ASDoc builds

2.  Group - Removed support for ILists from Group.

3.  ToggleButton - Moved around a method from skinLoaded to the constructor since it was just adding an event listener to the object and not the skin instance

4.  DataGroup - Cleaned up a lot of the logic when a collectionChange event happens so that we don't just remove everything and add everything all the time. This also fixes a bug.  Will work with QA to make sure this gets tested for all scenarios.

QE: Yes
Doc: Yes
Bugs: SDK-17179
Reviewer: Evtim, Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -66,7 +66,6 @@

     private var _content:*;
     private var _contentType:int;
-    private var contentCollection:ICollectionView;
     private var layeringMode:uint = ITEM_ORDERED_LAYERING;

     private static const ITEM_ORDERED_LAYERING:uint = 0;
@@ -74,7 +73,6 @@

     private static const CONTENT_TYPE_UNKNOWN:int = 0;
     private static const CONTENT_TYPE_ARRAY:int = 1;
-    private static const CONTENT_TYPE_ILIST:int = 2;

     //----------------------------------
     //  alpha
@@ -157,25 +155,13 @@

     public function set content(value:*):void
     {
-        if (contentCollection)
-        {
-            contentCollection.removeEventListener(CollectionEvent.COLLECTION_CHANGE, collectionChangeHandler);
-            contentCollection = null;
-        }
-
         _content = value;

         // Need to convert null to undefined here, since subsequent content checks test for undefined
         if (_content === null)
             _content = undefined;

-        if (_content is IList)
-        {
-            _contentType = CONTENT_TYPE_ILIST;
-            contentCollection = new ListCollectionView(IList(_content));
-            contentCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE, collectionChangeHandler, false, 0, true);
-        }
-        else if (_content is Array)
+        if (_content is Array)
             _contentType = CONTENT_TYPE_ARRAY;
         else
             _contentType = CONTENT_TYPE_UNKNOWN;
@@ -325,13 +311,8 @@
         if (_content === undefined)
             return 0;

-        switch (_contentType)
-        {
-            case CONTENT_TYPE_ARRAY:
-            case CONTENT_TYPE_ILIST:
-                return _content.length;
-                break;
-        }
+        if (_contentType == CONTENT_TYPE_ARRAY)
+            return _content.length;

         return 1;
     }
@@ -341,16 +322,8 @@
         if (_content === undefined)
             return null;

-        switch (_contentType)
-        {
-            case CONTENT_TYPE_ARRAY:
-                return _content[index];
-                break;
-
-            case CONTENT_TYPE_ILIST:
-                return _content.length > index ? _content.getItemAt(index) : null;
-                break;
-        }
+        if (_contentType == CONTENT_TYPE_ARRAY)
+            return _content[index];

         return _content;
     }
@@ -376,16 +349,8 @@
             _content = [_content];
         }

-        switch (_contentType)
-        {
-            case CONTENT_TYPE_ARRAY:
-                _content.splice(index, 0, item);
-                break;
-
-            case CONTENT_TYPE_ILIST:
-                _content.addItemAt(item, index);
-                break;
-        }
+        if (_contentType == CONTENT_TYPE_ARRAY)
+            _content.splice(index, 0, item);

         itemAdded(item, index);

@@ -421,10 +386,6 @@
                     item = removed[0];
                 break;
             }
-
-            case CONTENT_TYPE_ILIST:
-                item = _content.removeItemAt(index);
-                break;

             case CONTENT_TYPE_UNKNOWN:
             {
@@ -445,16 +406,8 @@
         if (_content === undefined)
             return -1;

-        switch (_contentType)
-        {
-            case CONTENT_TYPE_ARRAY:
-                return _content.indexOf(item);
-                break;
-
-            case CONTENT_TYPE_ILIST:
-                return _content.getItemIndex(item);
-                break;
-        }
+        if (_contentType == CONTENT_TYPE_ARRAY)
+            return _content.indexOf(item);

         return 0;
     }
@@ -594,48 +547,6 @@

         invalidateSize();
         invalidateDisplayList();
-    }
-
-    protected function collectionChangeHandler(event:Event):void
-    {
-        if (event is CollectionEvent)
-        {
-            var ce:CollectionEvent = CollectionEvent(event);
-
-            /* if (ce.kind == CollectionEventKind.ADD)
-            {
-
-            }
-            else if (ce.kind == CollectionEventKind.REPLACE)
-            {
-
-            }
-            else if (ce.kind == CollectionEventKind.REMOVE)
-            {
-
-            }
-            else if (ce.kind == CollectionEventKind.MOVE)
-            {
-
-            }
-            else if (ce.kind == CollectionEventKind.REFRESH)
-            {
-
-            }
-            else if (ce.kind == CollectionEventKind.RESET)
-            {
-            }
-            else if (ce.kind == CollectionEventKind.UPDATE)
-            {
-
-            } */
-
-            // TODO!! Fow now, always reapply the content. This needs to
-            // be optimized in the future
-           contentChanged = true;
-           invalidateProperties();
-        }
-
     }

     // Returns true if the Group's display object can be shared with graphic elements


Transferred from the Adobe Open Source Subversion Repository

Revision: 9399
Author:   aharui@adobe.com
Date:     2009-08-19T20:39:10.836192Z

Log Message:
-----------
Check in prototypes of ControlBars in Panel and Application, Spark Containers in Halo Navigators, Halo ViewStack in Spark ButtonBar.  APIs should match spec but are subject to change from PARB.  Skins are subject to tweaking after XD review

QE Notes: The following tests will fail and need updating:
gumbo/containers/Panel/Properties/Panel_Properties_position Panel_Properties_rotate
apollo/spark/components/Window/properties/window_properties_titleIcon_tests titleIcon_test8

Doc Notes: None
Bugs: None
Reviewer: Darrell, Glenn, Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Application, gumbo/components/ButtonBar, gumbo/containers/Panel, apollo/gumbo/spark/Window, containers/ViewStack, containers/Accordion,

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</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/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/Panel.as
+++ frameworks/projects/spark/src/spark/components/Panel.as
@@ -12,7 +12,13 @@
 package spark.components
 {

+import mx.core.mx_internal;
+import mx.utils.BitFlagUtil;
+
 import spark.primitives.supportClasses.TextGraphicElement;
+import spark.layouts.supportClasses.LayoutBase;
+
+use namespace mx_internal;

 [IconFile("Panel.png")]

@@ -52,6 +58,22 @@

     //--------------------------------------------------------------------------
     //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static const CONTROLS_PROPERTY_FLAG:uint = 1 << 0;
+
+    /**
+     *  @private
+     */
+    private static const LAYOUT_PROPERTY_FLAG:uint = 1 << 1;
+
+    //--------------------------------------------------------------------------
+    //
     //  Constructor
     //
     //--------------------------------------------------------------------------
@@ -74,6 +96,102 @@
     //  Properties
     //
     //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Several properties are proxied to controlGroup.  However, when controlGroup
+     *  is not around, we need to store values set on SkinnableContainer.  This object
+     *  stores those values.  If controlGroup is around, the values are stored
+     *  on the controlGroup directly.  However, we need to know what values
+     *  have been set by the developer on the SkinnableContainer (versus set on
+     *  the controlGroup or defaults of the controlGroup) as those are values
+     *  we want to carry around if the controlGroup changes (via a new skin).
+     *  In order to store this info effeciently, controlGroupProperties becomes
+     *  a uint to store a series of BitFlags.  These bits represent whether a
+     *  property has been explicitely set on this SkinnableContainer.  When the
+     *  controlGroup is not around, controlGroupProperties is a typeless
+     *  object to store these proxied properties.  When controlGroup is around,
+     *  controlGroupProperties stores booleans as to whether these properties
+     *  have been explicitely set or not.
+     */
+    private var controlGroupProperties:Object = {};
+
+    //----------------------------------
+    //  controlGroup
+    //----------------------------------
+
+    [SkinPart(required="false")]
+
+    /**
+     *  The skin part that defines the appearance of the
+     *  control bar in the container.
+     *
+     *  @see spark.skins.spark.PanelSkin
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var controlGroup:Group;
+
+    //----------------------------------
+    //  controls
+    //----------------------------------
+
+    [ArrayElementType("mx.core.IVisualElement")]
+
+    /**
+     *  The set of items that become the content of
+     *  the controlGroup
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function set controls(value:Array):void
+    {
+        if (controlGroup)
+        {
+            controlGroup.mxmlContent = value;
+            controlGroupProperties = BitFlagUtil.update(controlGroupProperties as uint,
+                                                        CONTROLS_PROPERTY_FLAG, true);
+        }
+        else
+            controlGroupProperties.controls = value;
+    }
+
+    //----------------------------------
+    //  controlLayout
+    //----------------------------------
+
+    /**
+     *  An optional Layout assigned to the control bar.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get controlLayout():LayoutBase
+    {
+        return (controlGroup)
+            ? controlGroup.layout
+            : controlGroupProperties.layout;
+    }
+
+    public function set controlLayout(value:LayoutBase):void
+    {
+        if (controlGroup)
+        {
+            controlGroup.layout = value;
+            controlGroupProperties = BitFlagUtil.update(controlGroupProperties as uint,
+                                                        LAYOUT_PROPERTY_FLAG, true);
+        }
+        else
+            controlGroupProperties.layout = value;
+    }

     //----------------------------------
     //  titleField
@@ -158,6 +276,83 @@
         {
             titleDisplay.text = title;
         }
+        else if (instance == controlGroup)
+        {
+            // copy proxied values from controlGroupProperties (if set) to contentGroup
+            var newControlGroupProperties:uint = 0;
+
+            if (controlGroupProperties.controls !== undefined)
+            {
+                controlGroup.mxmlContent = controlGroupProperties.controls;
+                newControlGroupProperties = BitFlagUtil.update(newControlGroupProperties,
+                                                               CONTROLS_PROPERTY_FLAG, true);
+            }
+
+            if (controlGroupProperties.layout !== undefined)
+            {
+                controlGroup.layout = controlGroupProperties.layout;
+                newControlGroupProperties = BitFlagUtil.update(newControlGroupProperties,
+                                                               LAYOUT_PROPERTY_FLAG, true);
+            }
+
+            controlGroupProperties = newControlGroupProperties;
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override protected function partRemoved(partName:String, instance:Object):void
+    {
+        super.partRemoved(partName, instance);
+
+        if (instance == controlGroup)
+        {
+            // copy proxied values from contentGroup (if explicitely set) to contentGroupProperties
+
+            var newControlGroupProperties:Object = {};
+
+            if (BitFlagUtil.isSet(controlGroupProperties as uint, CONTROLS_PROPERTY_FLAG))
+                newControlGroupProperties.controls = controlGroup.getMXMLContent();
+
+            if (BitFlagUtil.isSet(controlGroupProperties as uint, LAYOUT_PROPERTY_FLAG))
+                newControlGroupProperties.layout = controlGroup.layout;
+
+            controlGroupProperties = newControlGroupProperties;
+
+            controlGroup.mxmlContent = null;
+            controlGroup.layout = null;
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override protected function getCurrentSkinState():String
+    {
+        var state:String = enabled ? "normal" : "disabled";
+        if (controlGroup)
+        {
+            if (BitFlagUtil.isSet(controlGroupProperties as uint, CONTROLS_PROPERTY_FLAG))
+                state += "WithControls";
+        }
+        else
+        {
+            if (controlGroupProperties.controls)
+                state += "WithControls";
+        }
+
+        return state;
     }
 }


def: 2786 support in image duration

def: 2786 support in image duration

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

--- plugins/relatedEntriesPlugin/src/relatedEntriesPluginCode.as
+++ plugins/relatedEntriesPlugin/src/relatedEntriesPluginCode.as
@@ -136,6 +136,8 @@
 			_facade = facade;
 			_mediator = new RelatedEntriesMediator(this);
 			_facade.registerMediator(_mediator);
+			var mediaProxy:MediaProxy = _facade.retrieveProxy(MediaProxy.NAME) as MediaProxy;
+			mediaProxy.vo.supportImageDuration = true;
 		}

 		public function setSkin(styleName:String, setSkinSize:Boolean=false):void


Getting mouse position from wrong graphics in World.

--- src/sentinel/gameplay/world/World.as
+++ src/sentinel/gameplay/world/World.as
@@ -208,7 +208,7 @@
 		public function get ui():UI { return (parent as GameplayState).ui }
 		public function get engine():Engine { return _engine; }
 		public function get graphics():IGraphicsContainer { return _graphics; }
-		public function get mouseContainer():IGraphics{ return _graphics; }
+		public function get mouseContainer():IGraphics{ return _content; }
 		public function get camera():Camera { return _camera; }
 		public function get ticks():uint { return _ticks; }
 		public function get totalBeings():int { return children.length; }


Dump circular referenced object in Flash test.

--- tests/flashtest.as
+++ tests/flashtest.as
@@ -3,48 +3,58 @@
 	import flash.net.registerClassAlias;
 	import flash.text.TextField;
 	import flash.utils.ByteArray;
+	import flash.utils.Dictionary;

-	[SWF(width="400", height="400")]
+	[SWF(width="450", height="400")]
 	public class flashtest extends Sprite {
 		private var tf:TextField;
 		public function flashtest() {
 			tf = new TextField();
-			tf.width = tf.height = 400;
+			tf.width = tf.height = 450;
 			tf.wordWrap = true;
 			addChild(tf);

 			dumpValues();
+			readValues();
 		}

 		private function dumpValues():void {
 			tf.text = "";
 			var b:ByteArray = new ByteArray();
-			var a:Array = [undefined, null, [], "foo"];
-			a.foo = "qux";
-			a.bar = [];
+			var a:Dictionary = new Dictionary();
+			var o:Object = {"bar": 1};
+			a[o] = "foo";
+			a["qux"] = o;
 			b.writeObject(a);
 			dumpByteArray(b);
 		}

 		private function readValues():void {
+			/*
 			var data:Array = [
-				0x0d, 0x07, 0x00,
-				0x00, 0x00, 0x00, 0x01,
-				0x00, 0x00, 0x00, 0x02,
-				0x00, 0x00, 0x00, 0x03
+				0x11, 0x07, 0x00,
+					0x0a, 0x0b, 0x01,
+						0x07, 0x62, 0x61, 0x72,
+						0x04, 0x01,
+						0x01,
+					0x06, 0x07, 0x66, 0x6f, 0x6f,
+					0x0a, 0x0b, 0x01,
+						0x07, 0x62, 0x61, 0x72,
+						0x04, 0x02,
+						0x01,
+					0x06, 0x07, 0x66, 0x6f, 0x6f,
+					0x06, 0x07, 0x71, 0x75, 0x78,
+					0x0a, 0x00
+			];
+			*/
+			var data:Array = [
+				0x0a, 0x00
 			];
 			var b:ByteArray = createByteArray(data);

 			var o:* = b.readObject();
 			tf.appendText(o + "\n");
-			var a:Vector.<int> =  o as Vector.<int>;
-			if(a != null) {
-				tf.appendText("Vector with " + a.length + " elements\n");
-				for(var j:int = 0; j < a.length; ++j)
-					tf.appendText(j + ": " + a[j] + "\n");
-			} else {
-				tf.appendText("Vector is null\n");
-			}
+			tf.appendText(o.f + "\n");
 		}

 		private function testExternalizable():void {
@@ -66,6 +76,7 @@
 		private function dumpByteArray(b:ByteArray):void {
 			b.position = 0;
 			tf.appendText(b.bytesAvailable + "\n");
+			tf.appendText("\tv8 data {\n\t\t");
 			var cnt:int = 0;
 			while(b.bytesAvailable) {
 				var c:String = b.readUnsignedByte().toString(16);
@@ -74,12 +85,12 @@
 				if (b.bytesAvailable == 0) break;
 				if (++cnt == 12) {
 					cnt = 0;
-					tf.appendText(",\n");
+					tf.appendText(",\n\t\t");
 				} else {
 					tf.appendText(", ");
 				}
 			}
-			tf.appendText("\n");
+			tf.appendText("\n\t};\n");
 		}

 		private function createByteArray(data:Array):ByteArray {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20690
Author:   mhorn@adobe.com
Date:     2011-03-08T20:26:51.755036Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/Legend.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/items/LineSeriesSegment.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/InstanceCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/Series.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartElement.as</path>

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

--- frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as
+++ frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as
@@ -55,143 +55,145 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  Constructor.
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public function SeriesZoom(target:Object = null)
-	{
-		super(target);
+    /**
+     *  Constructor.
+     *
+     *  @param target The target of the effect.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function SeriesZoom(target:Object = null)
+    {
+        super(target);

-		instanceClass = SeriesZoomInstance;
-	}
-
+        instanceClass = SeriesZoomInstance;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Properties
     //
     //--------------------------------------------------------------------------

- 	//----------------------------------
-	//  horizontalFocus
-	//----------------------------------
+    //----------------------------------
+    //  horizontalFocus
+    //----------------------------------

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

-	/**
-	 *  Defines the location of the focul point of the zoom.
-	 *
-	 *
Valid values of the horizontalFocus property are "left",
-	 *  "center", "right",
-	 *  and null.

-	 *
-	 *
You combine the horizontalFocus and
-	 *  verticalFocus properties to define
-	 *  where the data series zooms in and out from.
-	 *  For example, set the horizontalFocus property to "left"
-	 *  and the verticalFocus property to "top" to zoom
-	 *  the series data to and from the top left corner of either
-	 *  the element or the chart (depending on the setting of the
-	 *  relativeTo property).

-	 *
-	 *
If you specify only one of these two properties,
-	 *  then the focus is a horizontal or vertical line rather than a point.
-	 *  For example, when you set horizontalFocus
-	 *  to "left" but verticalFocus
-	 *  to null, the element zooms to and from
-	 *  a vertical line along the left edge of its bounding box.
-	 *  Set the verticalFocus property to "center"
-	 *  to zoom chart elements to and from a horizontal line
-	 *  along the middle of the chart's bounding box.

-	 *
-	 *  @default "center"
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public var horizontalFocus:String;
-
- 	//----------------------------------
-	//  relativeTo
-	//----------------------------------
+    /**
+     *  Defines the location of the focul point of the zoom.
+     *
+     *
Valid values of the horizontalFocus property are "left",
+     *  "center", "right",
+     *  and null.

+     *
+     *
You combine the horizontalFocus and
+     *  verticalFocus properties to define
+     *  where the data series zooms in and out from.
+     *  For example, set the horizontalFocus property to "left"
+     *  and the verticalFocus property to "top" to zoom
+     *  the series data to and from the top left corner of either
+     *  the element or the chart (depending on the setting of the
+     *  relativeTo property).

+     *
+     *
If you specify only one of these two properties,
+     *  then the focus is a horizontal or vertical line rather than a point.
+     *  For example, when you set horizontalFocus
+     *  to "left" but verticalFocus
+     *  to null, the element zooms to and from
+     *  a vertical line along the left edge of its bounding box.
+     *  Set the verticalFocus property to "center"
+     *  to zoom chart elements to and from a horizontal line
+     *  along the middle of the chart's bounding box.

+     *
+     *  @default "center"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var horizontalFocus:String;
+
+    //----------------------------------
+    //  relativeTo
+    //----------------------------------

-	[Inspectable(category="General", enumeration="series,chart", defaultValue="series")]
+    [Inspectable(category="General", enumeration="series,chart", defaultValue="series")]

-	/**
-	 *  Controls the bounding box that Flex uses to calculate
-	 *  the focal point of the zooms.
-	 *
-	 *
Valid values for the relativeTo property are
-	 *  "series" and "chart".

-	 *
-	 *
Set to "series" to zoom each element
-	 *  relative to itself.
-	 *  For example, each column of a ColumnChart zooms from the top left
-	 *  of the column, the center of the column, and so on.

-	 *
-	 *
Set to "chart" to zoom each element
-	 *  relative to the chart area.
-	 *  For example, each column zooms from the top left of the axes,
-	 *  the center of the axes, and so on.

-	 *
-	 *  @default "series"
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public var relativeTo:String = "series";
+    /**
+     *  Controls the bounding box that Flex uses to calculate
+     *  the focal point of the zooms.
+     *
+     *
Valid values for the relativeTo property are
+     *  "series" and "chart".

+     *
+     *
Set to "series" to zoom each element
+     *  relative to itself.
+     *  For example, each column of a ColumnChart zooms from the top left
+     *  of the column, the center of the column, and so on.

+     *
+     *
Set to "chart" to zoom each element
+     *  relative to the chart area.
+     *  For example, each column zooms from the top left of the axes,
+     *  the center of the axes, and so on.

+     *
+     *  @default "series"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var relativeTo:String = "series";

- 	//----------------------------------
-	//  verticalFocus
-	//----------------------------------
+    //----------------------------------
+    //  verticalFocus
+    //----------------------------------

-	[Inspectable(category="General", enumeration="top,center,bottom")]
+    [Inspectable(category="General", enumeration="top,center,bottom")]

-	/**
-	 *  Defines the location of the focal point of the zoom.
-	 *  For more information, see the description of the
-	 *  horizontalFocus property.
-	 *
-	 *
Valid values of verticalFocus are
-	 *  "top", "center", "bottom",
-	 *  and null.

-	 *
-	 *  @default "center"
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	public var verticalFocus:String;
-
+    /**
+     *  Defines the location of the focal point of the zoom.
+     *  For more information, see the description of the
+     *  horizontalFocus property.
+     *
+     *
Valid values of verticalFocus are
+     *  "top", "center", "bottom",
+     *  and null.

+     *
+     *  @default "center"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var verticalFocus:String;
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 */
-	override protected function initInstance(instance:IEffectInstance):void
-	{
-		super.initInstance(instance);
+    /**
+     *  @private
+     */
+    override protected function initInstance(instance:IEffectInstance):void
+    {
+        super.initInstance(instance);

-		var seriesZoomInstance:SeriesZoomInstance =
-			SeriesZoomInstance(instance);
-		seriesZoomInstance.horizontalFocus = horizontalFocus;
-		seriesZoomInstance.verticalFocus = verticalFocus;
-		seriesZoomInstance.relativeTo = relativeTo;
-	}
+        var seriesZoomInstance:SeriesZoomInstance =
+            SeriesZoomInstance(instance);
+        seriesZoomInstance.horizontalFocus = horizontalFocus;
+        seriesZoomInstance.verticalFocus = verticalFocus;
+        seriesZoomInstance.relativeTo = relativeTo;
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17017
Author:   aharui@adobe.com
Date:     2010-07-22T17:31:23.322805Z

Log Message:
-----------
Re-commit LayoutManager changes from 16970

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/LayoutManager.as
+++ frameworks/projects/framework/src/mx/managers/LayoutManager.as
@@ -294,6 +294,13 @@
      */
     private var systemManager:ISystemManager;

+	/**
+	 *  @private
+	 *  the current object being validated
+	 *  it could be wrong if the validating object calls validateNow on something.
+	 */
+	private var currentObject:ILayoutManagerClient;
+
     //--------------------------------------------------------------------------
     //
     //  Properties
@@ -583,13 +590,16 @@
                 var token:int = perfUtil.markStart();
             }

-            obj.validateProperties();
-            if (!obj.updateCompletePendingFlag)
-            {
-                updateCompleteQueue.addObject(obj, obj.nestLevel);
-                obj.updateCompletePendingFlag = true;
-            }
-
+			if (obj.nestLevel)
+			{
+				currentObject = obj;
+	            obj.validateProperties();
+	            if (!obj.updateCompletePendingFlag)
+	            {
+	                updateCompleteQueue.addObject(obj, obj.nestLevel);
+	                obj.updateCompletePendingFlag = true;
+	            }
+			}
             CONFIG::performanceInstrumentation
             {
                 perfUtil.markEnd(".validateProperties()", token, 2 /*tolerance*/, obj);
@@ -642,13 +652,17 @@
         {
             // trace("LayoutManager calling validateSize() on " + Object(obj));

-            obj.validateSize();
-            if (!obj.updateCompletePendingFlag)
-            {
-                updateCompleteQueue.addObject(obj, obj.nestLevel);
-                obj.updateCompletePendingFlag = true;
-            }
-
+			if (obj.nestLevel)
+			{
+				currentObject = obj;
+		        obj.validateSize();
+		        if (!obj.updateCompletePendingFlag)
+		        {
+		            updateCompleteQueue.addObject(obj, obj.nestLevel);
+		            obj.updateCompletePendingFlag = true;
+		        }
+			}
+
             // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight);

             obj = ILayoutManagerClient(invalidateSizeQueue.removeLargest());
@@ -698,13 +712,16 @@
         {
             // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-            obj.validateDisplayList();
-            if (!obj.updateCompletePendingFlag)
-            {
-                updateCompleteQueue.addObject(obj, obj.nestLevel);
-                obj.updateCompletePendingFlag = true;
-            }
-
+			if (obj.nestLevel)
+			{
+				currentObject = obj;
+	            obj.validateDisplayList();
+	            if (!obj.updateCompletePendingFlag)
+	            {
+	                updateCompleteQueue.addObject(obj, obj.nestLevel);
+	                obj.updateCompletePendingFlag = true;
+	            }
+			}
             // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

             // Once we start, don't stop.
@@ -792,9 +809,9 @@
         {
             usePhasedInstantiation = false;

-            listenersAttached = false;
-
-            var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest());
+			listenersAttached = false;
+
+			var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest());
             while (obj)
             {
                 if (!obj.initialized && obj.processedDescriptors)
@@ -875,6 +892,8 @@
             var token:int = perfUtil.markStart();
         }

+		var lastCurrentObject:ILayoutManagerClient = currentObject;
+
         var obj:ILayoutManagerClient;
         var i:int = 0;
         var done:Boolean = false;
@@ -908,13 +927,17 @@
             {
                 // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-                obj.validateProperties();
-                if (!obj.updateCompletePendingFlag)
-                {
-                    updateCompleteQueue.addObject(obj, obj.nestLevel);
-                    obj.updateCompletePendingFlag = true;
-                }
-
+				if (obj.nestLevel)
+				{
+					currentObject = obj;
+	                obj.validateProperties();
+	                if (!obj.updateCompletePendingFlag)
+	                {
+	                    updateCompleteQueue.addObject(obj, obj.nestLevel);
+	                    obj.updateCompletePendingFlag = true;
+	                }
+				}
+
                 // Once we start, don't stop.
                 obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target));
             }
@@ -934,13 +957,16 @@
             {
                 // trace("LayoutManager calling validateSize() on " + Object(obj));

-                obj.validateSize();
-                if (!obj.updateCompletePendingFlag)
-                {
-                    updateCompleteQueue.addObject(obj, obj.nestLevel);
-                    obj.updateCompletePendingFlag = true;
-                }
-
+				if (obj.nestLevel)
+				{
+					currentObject = obj;
+	                obj.validateSize();
+	                if (!obj.updateCompletePendingFlag)
+	                {
+	                    updateCompleteQueue.addObject(obj, obj.nestLevel);
+	                    obj.updateCompletePendingFlag = true;
+	                }
+				}

                 // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight);

@@ -977,13 +1003,16 @@
                 {
                     // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

-                    obj.validateDisplayList();
-                    if (!obj.updateCompletePendingFlag)
-                    {
-                        updateCompleteQueue.addObject(obj, obj.nestLevel);
-                        obj.updateCompletePendingFlag = true;
-                    }
-
+					if (obj.nestLevel)
+					{
+						currentObject = obj;
+	                    obj.validateDisplayList();
+	                    if (!obj.updateCompletePendingFlag)
+	                    {
+	                        updateCompleteQueue.addObject(obj, obj.nestLevel);
+	                        obj.updateCompletePendingFlag = true;
+	                    }
+					}
                     // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height);

                     if (invalidateClientPropertiesFlag)
@@ -1044,10 +1073,13 @@
             }
         }

+		currentObject = lastCurrentObject;
+
         CONFIG::performanceInstrumentation
         {
             perfUtil.markEnd(" validateClient()", token, 2 /*tolerance*/, target);
         }
+
         // trace("<--- LayoutManager: validateClient --- target = " + target);
     }

@@ -1086,7 +1118,7 @@
         // trace("<<LayoutManager:WaitAFrame");
     }

-    private function attachListeners(systemManager:ISystemManager):void
+    public function attachListeners(systemManager:ISystemManager):void
     {
         if (!waitedAFrame)
         {
@@ -1117,7 +1149,7 @@
             return;

         systemManager.removeEventListener(Event.ENTER_FRAME, doPhasedInstantiationCallback);
-        systemManager.removeEventListener(Event.RENDER, doPhasedInstantiationCallback);
+        systemManager.removeEventListener(Event.RENDER, doPhasedInstantiationCallback);

         if (!UIComponentGlobals.catchCallLaterExceptions)
         {
@@ -1136,9 +1168,11 @@
                 var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
                 callLaterErrorEvent.error = e;
                 callLaterErrorEvent.source = this;
+				callLaterErrorEvent.object = currentObject;
                 systemManager.dispatchEvent(callLaterErrorEvent);
             }
         }
+		currentObject = null;
     }

     private var _usingBridge:int = -1;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7250
Author:   aharui@adobe.com
Date:     2009-05-23T03:13:54.405578Z

Log Message:
-----------
Pick which downloadprogressbar to use based on compatibilityversion (unless specified in MXML)

QE Notes: None
Doc Notes: Probably want to make a note of that
Bugs: SDK-20730
Reviewer: farland
tests: checkintests

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

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -59,7 +59,6 @@
 import mx.events.EventListenerRequest;
 import mx.events.FlexEvent;
 import mx.events.ResizeEvent;
-import mx.preloaders.SparkDownloadProgressBar;
 import mx.preloaders.Preloader;
 import mx.utils.LoaderUtil;

@@ -1799,8 +1798,6 @@
             usePreloader = info()["usePreloader"];

 		var preloaderDisplayClass:Class = info()["preloader"] as Class;
-        if (usePreloader && !preloaderDisplayClass)
-            preloaderDisplayClass = SparkDownloadProgressBar;

         // Put cross-domain RSL information in the RSL list.
         var rslList:Array = [];


Transferred from the Adobe Open Source Subversion Repository

Revision: 12537
Author:   smgilson@adobe.com
Date:     2009-12-04T17:41:47.951816Z

Log Message:
-----------
Fix for FLEXDOCS-1157 - Spark List-based comps have documenation saying they don't support BasicLayout

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/DropDownList.as
+++ frameworks/projects/spark/src/spark/components/DropDownList.as
@@ -51,6 +51,11 @@
  *      clicking on a data item while pressing the Control key deselects
  *      the item and closes the drop-down list.

  *

+ *
+ *
Note: The Spark list-based controls (the Spark ListBase class and its subclasses
+ *  such as ButtonBar, ComboBox, DropDownList, List, and TabBar) do not support the BasicLayout class
+ *  as the value of the layout property.
+ *  Do not use BasicLayout with the Spark list-based controls.

  *
  *
The DropDownList control has the following default characteristics:

  *