Transferred from the Adobe Open Source Subversion Repository

Revision: 20839
Author:   mhorn@adobe.com
Date:     2011-03-14T14:04:15.007456Z

Log Message:
-----------
merge 20790 and 20805

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionViewCursor.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ArrayList.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="M">/private/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>

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

--- frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
+++ frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
@@ -487,6 +487,8 @@
      *  Determines whether this style declaration applies to the given component
      *  based on a match of the selector chain.
      *
+     *  @param object The component to match the style declaration against.
+     *
      *  @return true if this style declaration applies to the component,
      *  otherwise false.
      *
@@ -689,7 +691,7 @@
             for (i = 0; i < n; i++)
             {
                 sm = sms[i];
-			    cm = sm.getImplementation("mx.managers::ISystemManagerChildManager");
+                cm = sm.getImplementation("mx.managers::ISystemManagerChildManager");
                 cm.regenerateStyleCache(true);
             }
         }
@@ -697,7 +699,7 @@
         for (i = 0; i < n; i++)
         {
             sm = sms[i];
-		    cm = sm.getImplementation("mx.managers::ISystemManagerChildManager");
+            cm = sm.getImplementation("mx.managers::ISystemManagerChildManager");
             cm.notifyStyleChangeInChildren(styleProp, true);
         }
     }


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

--- frameworks/projects/framework/src/mx/validators/StringValidator.as
+++ frameworks/projects/framework/src/mx/validators/StringValidator.as
@@ -38,6 +38,11 @@
  *

  *
  *  @includeExample examples/StringValidatorExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class StringValidator extends Validator
 {
@@ -67,6 +72,11 @@
 	 *  ValidationResult  object for each field examined by the validator.
 	 *
 	 *  @see mx.validators.ValidationResult
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static function validateString(validator:StringValidator,
 										  value:Object,
@@ -107,6 +117,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function StringValidator()
 	{
@@ -141,6 +156,11 @@
 	 *  A value of NaN means this property is ignored.
 	 *
 	 *  @default NaN
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get maxLength():Object
 	{
@@ -182,6 +202,11 @@
 	 *  A value of NaN means this property is ignored.
 	 *
 	 *  @default NaN
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get minLength():Object
 	{
@@ -229,6 +254,11 @@
 	 *  than the maxLength property.
 	 *
 	 *  @default "This string is longer than the maximum allowed length. This must be less than {0} characters long."
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get tooLongError():String
 	{
@@ -270,6 +300,11 @@
 	 *  than the minLength property.
 	 *
 	 *  @default "This string is shorter than the minimum allowed length. This must be at least {0} characters long."
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get tooShortError():String
 	{
@@ -321,6 +356,11 @@
      *
 	 *  @return An Array of ValidationResult objects, with one ValidationResult
 	 *  object for each field examined by the validator.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	override protected function doValidation(value:Object):Array
     {


Remove some trailing whitespace.

Remove some trailing whitespace.


Fixed bug handling CKAN sites with API not available at host root.

Change-Id: I351b57f8f1e3997b5dd77b120044d5af8f9a2ada

--- WeaveData/src/weave/data/DataSources/CKANDataSource.as
+++ WeaveData/src/weave/data/DataSources/CKANDataSource.as
@@ -259,6 +259,8 @@
 		var i:int = url.lastIndexOf('/api');
 		if (i >= 0)
 			url = url.substr(0, i);
+		if (url.charAt(url.length - 1) != '/')
+			url += '/';

 		// append api command to url
 		var request:URLRequest;


added support for more numeric field types

Change-Id: Ice8a78e30af1fe195c5110f52ec61751f7b86e28

--- WeaveData/src/weave/data/DataSources/CKANDataSource.as
+++ WeaveData/src/weave/data/DataSources/CKANDataSource.as
@@ -195,7 +195,7 @@
 						datastore.metadata.setSessionState(
 							result['fields'].map(function(field:Object, i:*, a:*):Object {
 								var type:String = field['type'];
-								if (type == 'numeric' || type == 'int4')
+								if (type == 'numeric' || type == 'int4' || type == 'int' || type == 'float' || type == 'double')
 									type = DataTypes.NUMBER;
 								if (type == 'text')
 									type = DataTypes.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@1273571 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.messaging
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8385
Author:   smgilson@adobe.com
Date:     2009-07-06T19:38:43.090419Z

Log Message:
-----------
ASDoc updates for Spark layouts and core

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

Modified Paths:
--------------
<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/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/RowAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/MaskType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/ColumnAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileOrientation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/MaskType.as
+++ frameworks/projects/spark/src/spark/core/MaskType.as
@@ -13,7 +13,10 @@
 {

 /**
- *  Defines the mask types available for a GraphicElement.
+ *  The MaskType class defines the possible values for the
+ *  maskType property of the GraphicElement class.
+ *
+ *  @see spark.primitives.supportClasses.GraphicElement#maskType
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -25,7 +28,8 @@
     include "../core/Version.as";

     /**
-     *  The mask either displays the pixel or doesn't. Strokes and bitmap filters are not used.
+     *  The mask either displays the pixel or does not.
+     *  Strokes and bitmap filters are not used.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Refactored (naming)

Refactored (naming)

--- src/ahhenderson/core/starling/controls/core/StarlingApplication.as
+++ src/ahhenderson/core/starling/controls/core/StarlingApplication.as
@@ -142,7 +142,7 @@

 			Starling.handleLostContext = _handleLostContext;
 			Starling.multitouchEnabled = _multitouchEnabled; //DeviceCapabilities.handleLostContextOnDevice();
-			this._starling = new Starling(rootScreen(), this.stage, null, null, _renderMode, _defaultProfile);
+			this._starling = new Starling(rootContainer(), this.stage, null, null, _renderMode, _defaultProfile);
 			this._starling.enableErrorChecking = _enableErrorChecking;
 			this._starling.showStats = true;
 			this._starling.showStatsAt(HAlign.RIGHT, VAlign.BOTTOM);
@@ -176,18 +176,18 @@
 				this.stage.autoOrients = this._savedAutoOrients;
 			}

-			onRootCreated(event, rootView);
-		}
-
-		protected function rootScreen():Class{
+			onRootContainerCreated(event, rootView);
+		}
+
+		protected function rootContainer():Class{

 			throw new Error( "Override StarlingApplication rootScreen() method" );

 		}

-		protected function onRootCreated(event:Object, rootView:*):void{
-
-			throw new Error( "Override StarlingApplication startUp() method" );
+		protected function onRootContainerCreated(event:Object, rootView:*):void{
+
+			throw new Error( "Override StarlingApplication onRootContainerCreated() method" );

 		}


Make it possible to create and populate a TypedArray in a single expression.

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

--- src/as/com/threerings/io/TypedArray.as
+++ src/as/com/threerings/io/TypedArray.as
@@ -75,12 +75,15 @@
      * Adds all of the elements of the supplied array to this typed array. The types of the
      * elements of the target array must, of course, be of the type specified for this array
      * otherwise badness will ensue.
+     *
+     * @return this array instance for handy call chainability.
      */
-    public function addAll (other :Array) :void
+    public function addAll (other :Array) :TypedArray
     {
         for (var ii :int = 0; ii < other.length; ii++) {
             push(other[ii]);
         }
+        return this;
     }

     public function getJavaType () :String


Change /movies to /videos in API.

Change /movies to /videos in API.

--- src/goplayer/StreamioAPI.as
+++ src/goplayer/StreamioAPI.as
@@ -54,7 +54,7 @@
     // -----------------------------------------------------

     private function getMoviePath(id : String) : String
-    { return "/movies/" + id + "/public_show.json" }
+    { return "/videos/" + id + "/public_show.json" }

     private function get statsPath() : String
     { return "/stats" }


FLEX-26048 check if date range actually contains dates

--- frameworks/projects/mx/src/mx/controls/DateChooser.as
+++ frameworks/projects/mx/src/mx/controls/DateChooser.as
@@ -3120,14 +3120,14 @@
         else if (value is Object)
         {
             var range:Object = {};
-            if (value.rangeStart)
+            if (value.hasOwnProperty("rangeStart") && value.rangeStart is Date)
             {
                 range.rangeStart = new Date(value.rangeStart.getFullYear(),
                                             value.rangeStart.getMonth(),
                                             value.rangeStart.getDate());
             }

-            if (value.rangeEnd)
+            if (value.hasOwnProperty("rangeEnd") && value.rangeEnd is Date)
             {
                 range.rangeEnd = new Date(value.rangeEnd.getFullYear(),
                                           value.rangeEnd.getMonth(),


Transferred from the Adobe Open Source Subversion Repository

Revision: 121
Author:   jszeto@adobe.com
Date:     2008-01-08T08:08:26.009559Z

Log Message:
-----------
Flex SDK Bug Fix

SDK-13812 - Scale grid behavior on Button, etc. to reopen

Changed IBorder references to IRectangularBorder.

Bugs: SDK-13812
QA: Yes
Doc: No

[ private comments below ]

Code Review: Alex Harui

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>

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

--- frameworks/projects/mx/src/mx/controls/PopUpButton.as
+++ frameworks/projects/mx/src/mx/controls/PopUpButton.as
@@ -23,8 +23,8 @@
 import flash.utils.getTimer;
 import mx.controls.listClasses.IListItemRenderer;
 import mx.core.EdgeMetrics;
-import mx.core.IBorder;
 import mx.core.IFlexDisplayObject;
+import mx.core.IRectangularBorder;
 import mx.core.IUIComponent;
 import mx.core.FlexVersion;
 import mx.core.UIComponent;
@@ -816,8 +816,8 @@
         }
         else
         {
-	        if (currentSkin is IBorder)
-	        	bm = IBorder(currentSkin).borderMetrics;
+	        if (currentSkin is IRectangularBorder)
+	        	bm = IRectangularBorder(currentSkin).borderMetrics;
 	        else
 				bm = new EdgeMetrics(3, 3, 3, 3);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13347
Author:   gruehle@adobe.com
Date:     2010-01-07T22:09:20.708340Z

Log Message:
-----------
Change FIXME to TODO.

QE notes: No
Doc notes: No
Bugs: N/A
Reviewer: Me - only comment changes, no code changes.
Tests run: Checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as

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

--- frameworks/projects/mx/src/mx/controls/ProgressBar.as
+++ frameworks/projects/mx/src/mx/controls/ProgressBar.as
@@ -1455,7 +1455,7 @@
         //trace("_content x",_content.x,"y",_content.y,"w",_content.width,"h",_content.height);

         _labelField.text = getFullLabelText();
-        // FIXME (gruehle): redundant? the IF below does this
+        // TODO: redundant? the IF below does this
         _indeterminateBar.visible = _indeterminate;

         if (indeterminateChanged || visibleChanged)


Transferred from the Adobe Open Source Subversion Repository

Revision: 10158
Author:   chaase@adobe.com
Date:     2009-09-11T16:47:12.296074Z

Log Message:
-----------
Reverting the styles-related change in commit 10131. The fix broke several Mustella tests because of the change in checkbox/radiobutton padding. Verifying that this is the new look we want, also adjusting the code to make sure that we only do it for spark-skin cases.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>

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

--- frameworks/projects/mx/src/mx/controls/RadioButton.as
+++ frameworks/projects/mx/src/mx/controls/RadioButton.as
@@ -24,8 +24,6 @@
 import mx.events.ItemClickEvent;
 import mx.managers.IFocusManager;
 import mx.managers.IFocusManagerGroup;
-import mx.core.UITextField;
-import flash.text.TextLineMetrics;

 use namespace mx_internal;

@@ -500,18 +498,7 @@
     {
         super.measure();

-        if (!label &&
-            FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
-        {
-            // Adjust the height to account for text height, even when there
-            // is no label. super.measure() handles non-null label case, so we just
-            // handle null label case here
-            var lineMetrics:TextLineMetrics  = measureText(label);
-            var textH:Number = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
-            textH += getStyle("paddingTop") + getStyle("paddingBottom");
-            measuredMinHeight = measuredHeight = Math.max(textH, measuredMinHeight);
-        }
-        else if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
         {
 	        var textHeight:Number = measureText(label).height;
 	        var iconHeight:Number = currentIcon ? currentIcon.height : 0;


Transferred from the Adobe Open Source Subversion Repository

Revision: 12344
Author:   gruehle@adobe.com
Date:     2009-12-01T23:53:43.397377Z

Log Message:
-----------
Add icon for ModuleLoader and update icon for RichEditableText.

QE notes: None
Doc notes: None
Bugs: SDK-24331
Reviewer: -
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.png</path>

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

--- frameworks/projects/mx/src/mx/modules/ModuleLoader.as
+++ frameworks/projects/mx/src/mx/modules/ModuleLoader.as
@@ -129,6 +129,7 @@
  *
  */
 [ResourceBundle("containers")]
+[IconFile("ModuleLoader.png")]

 /**
  *  ModuleLoader is a component that behaves much like a SWFLoader except


- fully closes stream to stop downloading when changing files

--- src/flash/htmlelements/VideoElement.as
+++ src/flash/htmlelements/VideoElement.as
@@ -204,21 +204,23 @@
 		}

 		public function load():void {
-			// as far as I know there is no way to start downloading a file without playing it (preload="auto" in HTML5)
-			// so this "load" just begins a Flash connection
+			// disconnect existing stream and connection
 			if (_isConnected && _stream) {
 				_stream.pause();
+				_stream.close();
+				_connection.close();
 			}
 			_isConnected = false;

+			// start new connection
 			if (_isRTMP) {
 				_connection.connect(_currentUrl.replace(/\/[^\/]+$/,"/"));
 			} else {
 				_connection.connect(null);
 			}
+
 			// in a few moments the "NetConnection.Connect.Success" event will fire
 			// and call createConnection which finishes the "load" sequence
-
 			sendEvent(HtmlMediaEvent.LOADSTART);
 		}

@@ -240,13 +242,14 @@

 			_video.attachNetStream(_stream);

-			// attempt to start downloading without playing
+			// start downloading without playing )based on preload and play() hasn't been called)
+			// I wish flash had a load() command to make this less awkward
 			if (_preload != "none" && !_playWhenConnected) {
 				_stream.play(_currentUrl, 0, 0);

 				_stream.pause();
 				_isPaused = true;
-				sendEvent(HtmlMediaEvent.PAUSE);
+				sendEvent(HtmlMediaEvent.PAUSE); // have to send this because the "playing" event gets sent via event handlers
 			}

 			_isConnected = true;


fixed compiler warning

fixed compiler warning

--- src/main/actionscript/com/castlabs/dash/DashContext.as
+++ src/main/actionscript/com/castlabs/dash/DashContext.as
@@ -255,7 +255,8 @@
         return new MediaDataSegment(internalRepresentationId, url, range, startTimestamp, endTimestamp);
     }

-    public function buildReflexiveSegment(internalRepresentationId:Number, url:String, range:String, callback:Function) {
+    public function buildReflexiveSegment(internalRepresentationId:Number, url:String, range:String,
+                                          callback:Function):ReflexiveSegment {
         return new ReflexiveSegment(internalRepresentationId, url, range, callback);
     }


104 HTMLReference public access to inline and block tag db

--- raw/src/org/yellcorp/markup/html/HTMLReference.as
+++ raw/src/org/yellcorp/markup/html/HTMLReference.as
@@ -39,12 +39,27 @@

     public function isHTMLTag(tagName:String):Boolean
     {
-        return allTags.contains(tagName.toLowerCase());
-    }
-
-    public function isEmptyTag(tag:String):Boolean
-    {
-        return empty.contains(tag.toLowerCase());
+        return inTagSet(allTags, tagName);
+    }
+
+    public function isEmptyTag(tagName:String):Boolean
+    {
+        return inTagSet(empty, tagName);
+    }
+
+    public function isBlockTag(tagName:String):Boolean
+    {
+        return inTagSet(block, tagName);
+    }
+
+    public function isInlineTag(tagName:String):Boolean
+    {
+        return inTagSet(inline, tagName);
+    }
+
+    public function isAttrOptionalTag(tagName:String):Boolean
+    {
+        return inTagSet(attrOptionalTags, tagName);
     }

     public function isTagClosedBy(openTag:String, nextTag:String):Boolean
@@ -55,11 +70,6 @@
             return false;
         }
         return matcher.match(nextTag.toLowerCase());
-    }
-
-    public function isAttrOptionalTag(tagName:String):Boolean
-    {
-        return attrOptionalTags.contains(tagName.toLowerCase());
     }

     public function isTextEntity(query:String):Boolean
@@ -154,8 +164,7 @@
         block.addIterable(heading);
         block.addIterable(list);

-        inline = fontstyle.clone();
-        inline.addIterable(phrase);
+        inline = Set.union(fontstyle, phrase);
         inline.addIterable(special);
         inline.addIterable(formctrl);

@@ -202,6 +211,11 @@
         attrOptionalTags.addIterable(phrase);
     }

+    private static function inTagSet(tagSet:Set, tagName:String):Boolean
+    {
+        return tagSet.contains(tagName.toLowerCase());
+    }
+

     private static var _instance:HTMLReference;
     public static function get instance():HTMLReference


Patch inspired by one from Case Seibert on ignite to fix XHTMLExtension. Thanks :). reviewed by Armando

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

--- src/org/jivesoftware/xiff/data/xhtml/XHTMLExtension.as
+++ src/org/jivesoftware/xiff/data/xhtml/XHTMLExtension.as
@@ -23,11 +23,13 @@
 	 *
 	 */

+	import flash.xml.XMLDocument;
+	import flash.xml.XMLNode;
+
 	import org.jivesoftware.xiff.data.Extension;
 	import org.jivesoftware.xiff.data.ExtensionClassRegistry;
 	import org.jivesoftware.xiff.data.IExtension;
-	import flash.xml.XMLNode;
-	import flash.xml.XMLDocument;
+	import org.jivesoftware.xiff.data.ISerializable;

 	/**
 	 * This class provides an extension for XHTML body text in messages.
@@ -39,7 +41,7 @@
 	 * @toc-path Extensions/HTML
 	 * @toc-sort 1/2
 	 */
-	public class XHTMLExtension extends Extension implements IExtension
+	public class XHTMLExtension extends Extension implements IExtension, ISerializable
 	{
 		// Static class variables to be overridden in subclasses;
 		public static var NS:String = "http://www.w3.org/1999/xhtml";
@@ -51,6 +53,16 @@
 		{
 			super(parent);
 		}
+
+		public function serialize( parent:XMLNode ):Boolean
+        {
+             return true;
+        }
+
+        public function deserialize( node:XMLNode ):Boolean
+        {
+        	return true;
+        }

 		/**
 		 * Gets the namespace associated with this extension.
@@ -95,29 +107,17 @@
 		 */
 		public function get body():String
 		{
-			// XXX This kinda sucks becuase the accessor gets called
-			// every time it appears in code, rather than being smart
-			// about when to call it
-
-			var html:Array = new Array();
-
-			// XXX Some tests need to be done to determine if
-			// for (... in ...); reverse() is faster than for (...; ...; ...)
-			// typically there will only be 1-5 nodeValues to join
-
-			var children:Array = getNode().childNodes;
-			for (var i:String in children) {
-				html.push(children[i].toString());
+			var html:Array = [];
+			for each(var child:XMLNode in getNode().childNodes) {
+				html.unshift(child.toString());
 			}
-			html.reverse();
 			return html.join();
 		}

 		public function set body(theBody:String):void
 		{
-			var children:Array = getNode().childNodes;
-			for (var i:String in children) {
-				children[i].removeNode();
+			for each(var child:XMLNode in getNode().childNodes) {
+				child.removeNode();
 			}
 			getNode().appendChild(new XMLDocument(theBody));
 		}


fix base64 decode bug

fix base64 decode bug

--- source/fairygui/utils/ToolSet.as
+++ source/fairygui/utils/ToolSet.as
@@ -226,14 +226,14 @@
 				code += (BASE64_CHARS.indexOf(bstr.charAt(i + 2)) & 0x3F) << 6;
 				code += (BASE64_CHARS.indexOf(bstr.charAt(i + 3)) & 0x3F);

-				ba.writeByte(code >> 16 & 0xFF);
-				ba.writeByte(code >> 8 & 0xFF);
+				ba.writeByte((code >> 16) & 0xFF);
+				ba.writeByte((code >> 8) & 0xFF);
 				ba.writeByte(code & 0xFF);
 			}

-			if ((code & 0x3F) == 0)
+			if ((code & 0x3F) == 0x3F)
 				ba.length -= 1;
-			if (((code >> 8) & 0x3F) == 0)
+			if (((code >> 6) & 0x3F) == 0x3F)
 				ba.length -= 1;
 			ba.pos = 0;
 			return ba;


iOS only: use invoke url only if it starts with fb

--- actionscript/mobile/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/mobile/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -246,7 +246,10 @@
 				if (event.arguments != null && event.arguments.length > 0)
 				{
 					var url:String = event.arguments[0] as String;
-					_context.call("handleOpenURL", url);
+					if (url.indexOf("fb") == 0) // only handle invoke that starts with fb
+					{
+						_context.call("handleOpenURL", url);
+					}
 				}
 			}
 		}


Updating feathers core lib, adding new renderers

--- src/ahhenderson/core/starling/controls/core/StarlingApplication.as
+++ src/ahhenderson/core/starling/controls/core/StarlingApplication.as
@@ -102,6 +102,7 @@

 		protected var _splashImg_Default_2x:String ="Default@2x.png";

+		// iOS 5,5c,5s Res.
 		protected var _splashImg_568h_2x:String ="Default-568h@2x.png";

 		// iOS 6 Res.
@@ -138,8 +139,13 @@
 		protected function determineScreenResolution():void{

 			const device:DeviceInfo = DeviceCapabilities.deviceInformation();
-			const viewPort:Rectangle = new Rectangle(0,0,device.width, device.height);
-
+
+			//TonyNote:
+			trace( "XRes: " + Capabilities.screenResolutionX );
+			trace( "YRes: " + Capabilities.screenResolutionY );
+
+			//const viewPort:Rectangle = new Rectangle(0,0,device.width, device.height);
+			const viewPort:Rectangle = new Rectangle(0,0,Capabilities.screenResolutionX, Capabilities.screenResolutionY);
 			trace("Viewport Width: ", viewPort.width);
 			trace("Viewport Height: ", viewPort.height);


missing a ;

missing a ;

--- frameworks/projects/framework/src/mx/collections/SortField.as
+++ frameworks/projects/framework/src/mx/collections/SortField.as
@@ -601,7 +601,7 @@
             if (left is Date || right is Date)
             {
                 found = true;
-                _compareFunction = dateCompare
+                _compareFunction = dateCompare;
             }
         }
         else if (typeLeft == "xml" || typeRight == "xml")


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

--- frameworks/projects/mx/src/mx/styles/metadata/LeadingStyle.as
+++ frameworks/projects/mx/src/mx/styles/metadata/LeadingStyle.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: 3308
Author:   jvroom@adobe.com
Date:     2008-09-23T03:19:51.589238Z

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

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

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

--- frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/remoting/mxml/Operation.as
@@ -13,17 +13,8 @@
 {

 import mx.core.mx_internal;
-import mx.managers.CursorManager;
-import mx.messaging.events.MessageEvent;
-import mx.messaging.messages.AsyncMessage;
-import mx.messaging.messages.IMessage;
-import mx.resources.IResourceManager;
-import mx.resources.ResourceManager;
-import mx.rpc.AbstractService;
 import mx.rpc.AsyncToken;
 import mx.rpc.AsyncDispatcher;
-import mx.rpc.Fault;
-import mx.rpc.events.FaultEvent;
 import mx.rpc.mxml.Concurrency;
 import mx.rpc.mxml.IMXMLSupport;
 import mx.rpc.remoting.RemoteObject;
@@ -53,20 +44,8 @@
     {
         super(remoteObject, name);

-        this.remoteObject = mx.rpc.remoting.mxml.RemoteObject(remoteObject);
     }

-    //--------------------------------------------------------------------------
-    //
-    // Variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private var resourceManager:IResourceManager =
-									ResourceManager.getInstance();

     //--------------------------------------------------------------------------
     //
@@ -74,101 +53,12 @@
     //
     //--------------------------------------------------------------------------

-    [Inspectable(enumeration="multiple,single,last", defaultValue="multiple", category="General")]
-    /**
-     * The concurrency for this Operation.  If it has not been explicitly set the setting from the RemoteObject
-     * will be used.
-     */
-    public function get concurrency():String
-    {
-        if (_concurrencySet)
-        {
-            return _concurrency;
-        }
-        //else
-        return remoteObject.concurrency;
-    }
-
-    /**
-     *  @private
-     */
-    public function set concurrency(c:String):void
-    {
-        _concurrency = c;
-        _concurrencySet = true;
-    }
-
-    override mx_internal function setService(ro:AbstractService):void
-    {
-        super.setService(ro);
-        remoteObject = mx.rpc.remoting.mxml.RemoteObject(ro);
-    }
-
-    /**
-     * Whether this operation should show the busy cursor while it is executing.
-     * If it has not been explicitly set the setting from the RemoteObject
-     * will be used.
-     */
-    public function get showBusyCursor():Boolean
-    {
-        if (_showBusyCursorSet)
-        {
-            return _showBusyCursor;
-        }
-        //else
-        return remoteObject.showBusyCursor;
-    }
-
-    public function set showBusyCursor(sbc:Boolean):void
-    {
-        _showBusyCursor = sbc;
-        _showBusyCursorSet = true;
-    }
-

     //--------------------------------------------------------------------------
     //
     // Methods
     //
     //--------------------------------------------------------------------------
-
-    /**
-     * @inheritDoc
-     */
-    override public function cancel(id:String = null):AsyncToken
-    {
-        if (showBusyCursor)
-        {
-            CursorManager.removeBusyCursor();
-        }
-        return super.cancel(id);
-    }
-
-    /**
-     * @inheritDoc
-     */
-    override public function send(... args:Array):AsyncToken
-    {
-        if (Concurrency.SINGLE == concurrency && activeCalls.hasActiveCalls())
-        {
-            var token:AsyncToken = new AsyncToken(null);
-			var message:String = resourceManager.getString(
-				"rpc", "pendingCallExists");
-            var fault:Fault = new Fault("ConcurrencyError", message);
-            var faultEvent:FaultEvent = FaultEvent.createEvent(fault, token);
-            new AsyncDispatcher(dispatchRpcEvent, [faultEvent], 10);
-            return token;
-        }
-
-        // We delay endpoint initialization until now because MXML codegen may set
-        // the destination attribute after the endpoint and will clear out the
-        // channelSet.
-        if (asyncRequest.channelSet == null && remoteObject.endpoint != null)
-        {
-            remoteObject.mx_internal::initEndpoint();
-        }
-        return super.send.apply(null, args);
-    }

     //--------------------------------------------------------------------------
@@ -187,52 +77,6 @@
     }

-    override mx_internal function invoke(message:IMessage, token:AsyncToken = null):AsyncToken
-    {
-        if (showBusyCursor)
-        {
-            CursorManager.setBusyCursor();
-        }
-
-        return super.invoke(message, token);
-    }
-
-    /*
-     * Kill the busy cursor, find the matching call object and pass it back
-     */
-    override mx_internal function preHandle(event:MessageEvent):AsyncToken
-    {
-        if (showBusyCursor)
-        {
-            CursorManager.removeBusyCursor();
-        }
-
-        var wasLastCall:Boolean = activeCalls.wasLastCall(AsyncMessage(event.message).correlationId);
-        var token:AsyncToken = super.preHandle(event);
-
-        if (Concurrency.LAST == concurrency && !wasLastCall)
-        {
-            return null;
-        }
-        //else
-        return token;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    // Private Variables
-    //
-    //--------------------------------------------------------------------------
-
-    private var _concurrency:String;
-
-	private var _concurrencySet:Boolean;
-
-	private var remoteObject:mx.rpc.remoting.mxml.RemoteObject;
-
-	private var _showBusyCursor:Boolean;
-
-	private var _showBusyCursorSet:Boolean;
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 9416
Author:   aharui@adobe.com
Date:     2009-08-20T02:15:38.365755Z

Log Message:
-----------
Revert 9399.  The prototypes broke mustella states tests.  Will try again later.

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="D">/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" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.as" copyfrom-rev="9398" action="A">/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="D">/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="D">/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="D">/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@1278199 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -33,9 +33,7 @@
 import mx.managers.ISystemManager;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;
-import mx.utils.BitFlagUtil;
 import mx.utils.LoaderUtil;
-import spark.layouts.supportClasses.LayoutBase;

 use namespace mx_internal;

@@ -144,22 +142,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private static const CONTROLS_PROPERTY_FLAG:uint = 1 << 0;
-
-    /**
-     *  @private
-     */
-    private static const LAYOUT_PROPERTY_FLAG:uint = 1 << 1;
-
-    //--------------------------------------------------------------------------
-    //
     //  Class properties
     //
     //--------------------------------------------------------------------------
@@ -326,102 +308,6 @@
             sm.stage.colorCorrection = value;
     }

-    /**
-     *  @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;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Compile-time pseudo-properties
@@ -852,67 +738,6 @@
         }
     }

-    /**
-     *  @private
-     */
-    override protected function partAdded(partName:String, instance:Object):void
-    {
-        super.partAdded(partName, instance);
-
-        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;
-        }
-    }
-
     //----------------------------------
     //  unscaledHeight
     //----------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 8393
Author:   jszeto@adobe.com
Date:     2009-07-06T20:46:27.558863Z

Log Message:
-----------
Updated FIXME comments

Changed some to TODOs, removed some and filed bugs for the remainder

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.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/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -207,7 +207,7 @@
             return;

         _displayPopUp = value;
-        updatePopUpState();
+        addOrRemovePopUp();
     }

     /**
@@ -228,7 +228,7 @@

         _popUpFactory = value;

-        updatePopUpState();
+        addOrRemovePopUp();
     }

     public function get popUpFactory():ITransientDeferredInstance
@@ -466,12 +466,11 @@
     //  Private Methods
     //
     //--------------------------------------------------------------------------
-
-    // FIXME (jszeto): Rename to not use 'state'
+
     /**
      *  @private
      */
-    private function updatePopUpState():void
+    private function addOrRemovePopUp():void
     {
         if (!addedToStage)
             return;
@@ -635,7 +634,7 @@
     private function addedToStageHandler(event:Event):void
     {
         addedToStage = true;
-        updatePopUpState();
+        addOrRemovePopUp();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 8481
Author:   smgilson@adobe.com
Date:     2009-07-09T17:28:31.741329Z

Log Message:
-----------
First of several checkins to update the namespace in ASDoc MXML syntax descriptions for Spark components

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as</path>

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

--- frameworks/projects/spark/src/spark/components/PopUpAnchor.as
+++ frameworks/projects/spark/src/spark/components/PopUpAnchor.as
@@ -67,7 +67,7 @@
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

- *  <PopUpAnchor
+ *  <s:PopUpAnchor
  *
  *    Properties
  *    displayPopUp="false"
@@ -406,7 +406,7 @@
             var adjustedRegPoint:Point = new Point();
             var adjustedBounds:Rectangle = new Rectangle();
             determinePosition(adjustedPosition, popUpAsDisplayObject.width,
-            				  popUpAsDisplayObject.height,
+                              popUpAsDisplayObject.height,
                               matrix, adjustedRegPoint, adjustedBounds);

             if (screen)
@@ -490,9 +490,9 @@
             popUpIsDisplayed = true;
             if (popUp is UIComponent)
             {
-            	popUpWidth = UIComponent(popUp).explicitWidth;
-            	popUpHeight = UIComponent(popUp).explicitHeight;
-			}
+                popUpWidth = UIComponent(popUp).explicitWidth;
+                popUpHeight = UIComponent(popUp).explicitHeight;
+            }

             applyPopUpTransform(width, height);
         }
@@ -512,8 +512,8 @@

         if (popUp is UIComponent)
         {
-        	UIComponent(popUp).explicitWidth = popUpWidth;
-        	UIComponent(popUp).explicitHeight = popUpHeight;
+            UIComponent(popUp).explicitWidth = popUpWidth;
+            UIComponent(popUp).explicitHeight = popUpHeight;
         }

         /*if (popUpFactory)
@@ -588,16 +588,16 @@
         // measured / explicit dimensions if they are parented by the SystemManager.
         if (popUp is UIComponent)
         {
-	        if (popUpWidthMatchesAnchorWidth)
-	            UIComponent(popUp).width = unscaledWidth;
-	        if (popUpHeightMatchesAnchorHeight)
-	            UIComponent(popUp).height = unscaledHeight;
+            if (popUpWidthMatchesAnchorWidth)
+                UIComponent(popUp).width = unscaledWidth;
+            if (popUpHeightMatchesAnchorHeight)
+                UIComponent(popUp).height = unscaledHeight;
         }
         else
         {
-        	var w:Number = popUpWidthMatchesAnchorWidth ? unscaledWidth : popUp.measuredWidth;
-        	var h:Number = popUpHeightMatchesAnchorHeight ? unscaledHeight : popUp.measuredHeight;
-        	popUp.setActualSize(w, h);
+            var w:Number = popUpWidthMatchesAnchorWidth ? unscaledWidth : popUp.measuredWidth;
+            var h:Number = popUpHeightMatchesAnchorHeight ? unscaledHeight : popUp.measuredHeight;
+            popUp.setActualSize(w, h);
         }

         var popUpPoint:Point = calculatePopUpPosition();
@@ -614,9 +614,9 @@
         m.tx = popUpPoint.x;
         m.ty = popUpPoint.y;
         if (popUp is UIComponent)
-        	UIComponent(popUp).setLayoutMatrix(m,false);
+            UIComponent(popUp).setLayoutMatrix(m,false);
         else if (popUp is DisplayObject)
-        	DisplayObject(popUp).transform.matrix = m;
+            DisplayObject(popUp).transform.matrix = m;

         // apply the color transformation
         DisplayObject(popUp).transform.colorTransform = $transform.concatenatedColorTransform


Transferred from the Adobe Open Source Subversion Repository

Revision: 11966
Author:   aharui@adobe.com
Date:     2009-11-19T00:21:41.792188Z

Log Message:
-----------
Move focusSkinExclusions into Skin (from SparkSkin) and add suggestedFocusSkinExclusions to SkinnableComponent.

QE Notes: None
Doc Notes: new API (suggestedFocusSkinExclusions)
Bugs: SDK-19255
Reviewer: Glenn
API Change: Yes
Is noteworthy for integration: Yes
tests: checkintests mustella/gumbo/components/TextInput, TextArea, CheckBox, RadioButton

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCaptureSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as</path>

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

--- frameworks/projects/spark/src/spark/components/RadioButton.as
+++ frameworks/projects/spark/src/spark/components/RadioButton.as
@@ -212,6 +212,22 @@
                radioButtonGroup.enabled;
     }

+    //----------------------------------
+    //  suggestedFocusSkinExclusions
+    //----------------------------------
+    /**
+     * @private
+     */
+    private static const focusExclusions:Array = ["labelDisplay"];
+
+    /**
+     *  @private
+     */
+    override public function get suggestedFocusSkinExclusions():Array
+    {
+        return focusExclusions;
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Properties