Transferred from the Adobe Open Source Subversion Repository

Revision: 4380
Author:   rfrishbe@adobe.com
Date:     2008-12-23T10:00:21.848800Z

Log Message:
-----------
Mostly rename changes in Group and FxContainer.

1.  GraphicElement.elementHost:GroupBase -> GraphicElement.parent:DisplayObjectContainer (parent already exists in the current code-base...I’m just removing elementHost now)

2.  Group content APIs now use “element” instead of “item.”  The new methods were added a while ago, but the old ones co-existed.  These particular changes remove the old methods and strongly type the new ones to deal with IVisualElements rather than Objects.  Here are the overall changes:

numItems:int -> numElements:int
getItemAt(int):Object -> getElementAt(int):IVisualElement
addItem(Object):Object -> addElement(IVisualElement):IVisualElement
addItemAt(Object, int):Object -> addElementAt(IVisualElement, int):IVisualElement
removeItem(Object):Object -> removeElement(IVisualElement):IVisualElement
removeItemAt(int):Object -> removeElementAt(int):IVisualElement
getItemIndex(Object):int -> getElementIndex(IVisualElement):int
setItemIndex(Object, int):void -> setElementIndex(IVisualElement, int):void
swapItems(Object, Object):void -> swapElements(IVisualElement, IVisualElement):void
swapItemsAt(int, int):void -> swapElementsAt(int, int):void

3.  Group and FxContainer's mxmlContent property is now strongly typed as an Array of IVisualElements instead of an Object

4.  Removing ITransformable...there's no need for it.

5.  Had to update Mustella for these changes (the Perforce changes are checked in, and here's the mustella.swc change for checkintests)

QE Notes: Joan and Steve worked with me on changing all the SDK QA tests.
Doc Notes: None
Bugs: SDK-18063
Reviewer: Jason
tests: checkintests, Mustella FxContainer, Group, and DataGroup (Joan ran all tests on an earlier version of these changes, so hopefully nothing broke in the meantime).  Some of the Group/DataGroup ones were failing for me, but I'm pretty sure they're all excluded (tests don't seem to exclude for me when I VPN in...)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/ITransformable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/flex4/flex4test_testScript.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml</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/wireframe/src/wireframe/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -170,8 +170,8 @@
             {
                 _placeHolderGroup = new Group();

-                if (_mxml_content)
-                    _placeHolderGroup.mxmlContent = _mxml_content;
+                if (_mxmlContent)
+                    _placeHolderGroup.mxmlContent = _mxmlContent;

                 _placeHolderGroup.addEventListener(
                     ItemExistenceChangedEvent.ITEM_ADD, contentGroup_itemAddedHandler);
@@ -185,7 +185,201 @@
             return contentGroup;
         }
     }
-
+
+    //----------------------------------
+    //  creationPolicy
+    //----------------------------------
+
+    private var _creationPolicy:String = "auto";
+
+    /**
+     *  @inheritDoc
+     */
+    public function get creationPolicy():String
+    {
+        return _creationPolicy;
+    }
+
+    /**
+     *  @private
+     */
+    public function set creationPolicy(value:String):void
+    {
+        if (value == _creationPolicy)
+            return;
+
+        _creationPolicy = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties proxied to contentGroup
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  clipContent
+    //----------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function get clipContent():Boolean
+    {
+        return (contentGroup)
+            ? contentGroup.clipContent
+            : contentGroupProperties.clipContent;
+    }
+
+    /**
+     *  @private
+     */
+    public function set clipContent(value:Boolean):void
+    {
+        if (skin)  // TEMPORARY fix for SDK-17751
+            skin.clipContent = value;
+        if (contentGroup)
+        {
+            contentGroup.clipContent = value;
+            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
+                                                        CLIP_CONTENT_PROPERTY_FLAG, true);
+        }
+        else
+            contentGroupProperties.clipContent = value;
+    }
+
+    //----------------------------------
+    //  contentWidth
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  @inheritDoc
+     */
+    public function get contentWidth():Number
+    {
+        return (contentGroup) ? contentGroup.contentWidth : 0;
+    }
+
+    //----------------------------------
+    //  contentHeight
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  @inheritDoc
+     */
+    public function get contentHeight():Number
+    {
+        return (contentGroup) ? contentGroup.contentHeight : 0;
+    }
+
+    //----------------------------------
+    //  horizontalScrollPosition
+    //----------------------------------
+
+    [Bindable("propertyChange")]
+
+    /**
+     *  @inheritDoc
+     */
+    public function get horizontalScrollPosition():Number
+    {
+        return (contentGroup)
+            ? contentGroup.horizontalScrollPosition
+            : contentGroupProperties.horizontalScrollPosition;
+    }
+
+    /**
+     *  @private
+     */
+    public function set horizontalScrollPosition(value:Number):void
+    {
+        if (contentGroup)
+        {
+            contentGroup.horizontalScrollPosition = value;
+            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
+                                                        HORIZONTAL_SCROLL_POSITION_PROPERTY_FLAG, true);
+        }
+        else
+            contentGroupProperties.horizontalScrollPosition = value;
+    }
+
+    //----------------------------------
+    //  layout
+    //----------------------------------
+
+    /**
+     *  @copy mx.components.baseClasses.GroupBase#layout
+     */
+    public function get layout():LayoutBase
+    {
+        return (contentGroup)
+            ? contentGroup.layout
+            : contentGroupProperties.layout;
+    }
+
+    /**
+     * @private
+     */
+    public function set layout(value:LayoutBase):void
+    {
+        if (contentGroup)
+        {
+            contentGroup.layout = value;
+            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
+                                                        LAYOUT_PROPERTY_FLAG, true);
+        }
+        else
+            contentGroupProperties.layout = value;
+
+    }
+
+    //----------------------------------
+    //  mxmlContent
+    //----------------------------------
+
+    private var _mxmlContent:Array;
+
+    /**
+     *  @copy mx.components.Group#content
+     */
+    [ArrayElementType("mx.core.IVisualElement")]
+    [Bindable]
+    public function get mxmlContent():Array
+    {
+        // Make sure deferred content is created, if needed
+        createContentIfNeeded();
+
+        if (contentGroup)
+            return contentGroup.mxmlContent;
+        else if (_placeHolderGroup)
+            return _placeHolderGroup.mxmlContent;
+        else
+            return _mxmlContent;
+    }
+
+    /**
+     *  @private
+     */
+    public function set mxmlContent(value:Array):void
+    {
+        if (value == _mxmlContent)
+            return;
+
+        _mxmlContent = value;
+
+        if (contentGroup)
+            contentGroup.mxmlContent = value;
+        else if (_placeHolderGroup)
+            _placeHolderGroup.mxmlContent = value;
+    }
+
+
     //----------------------------------
     //  mxmlContentFactory
     //----------------------------------
@@ -224,198 +418,6 @@
     }

     //----------------------------------
-    //  creationPolicy
-    //----------------------------------
-
-    private var _creationPolicy:String = "auto";
-
-    /**
-     *  @inheritDoc
-     */
-    public function get creationPolicy():String
-    {
-        return _creationPolicy;
-    }
-
-    /**
-     *  @private
-     */
-    public function set creationPolicy(value:String):void
-    {
-        if (value == _creationPolicy)
-            return;
-
-        _creationPolicy = value;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Properties proxied to contentGroup
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  clipContent
-    //----------------------------------
-
-    /**
-     *  @inheritDoc
-     */
-    public function get clipContent():Boolean
-    {
-        return (contentGroup)
-            ? contentGroup.clipContent
-            : contentGroupProperties.clipContent;
-    }
-
-    /**
-     *  @private
-     */
-    public function set clipContent(value:Boolean):void
-    {
-        if (skin)  // TEMPORARY fix for SDK-17751
-            skin.clipContent = value;
-        if (contentGroup)
-        {
-            contentGroup.clipContent = value;
-            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
-                                                        CLIP_CONTENT_PROPERTY_FLAG, true);
-        }
-        else
-            contentGroupProperties.clipContent = value;
-    }
-
-    //----------------------------------
-    //  content
-    //----------------------------------
-
-    private var _mxml_content:Object;
-
-    /**
-     *  @copy mx.components.Group#content
-     */
-    [Bindable]
-    public function get mxmlContent():Object
-    {
-        // Make sure deferred content is created, if needed
-        createContentIfNeeded();
-
-        if (contentGroup)
-            return contentGroup.mxmlContent;
-        else if (_placeHolderGroup)
-            return _placeHolderGroup.mxmlContent;
-        else
-            return _mxml_content;
-    }
-
-    /**
-     *  @private
-     */
-    public function set mxmlContent(value:Object):void
-    {
-        if (value == _mxml_content)
-            return;
-
-        _mxml_content = value;
-
-        if (contentGroup)
-            contentGroup.mxmlContent = value;
-        else if (_placeHolderGroup)
-            _placeHolderGroup.mxmlContent = value;
-    }
-
-    //----------------------------------
-    //  contentWidth
-    //----------------------------------
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-
-    /**
-     *  @inheritDoc
-     */
-    public function get contentWidth():Number
-    {
-        return (contentGroup) ? contentGroup.contentWidth : 0;
-    }
-
-    //----------------------------------
-    //  contentHeight
-    //----------------------------------
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-
-    /**
-     *  @inheritDoc
-     */
-    public function get contentHeight():Number
-    {
-        return (contentGroup) ? contentGroup.contentHeight : 0;
-    }
-
-    //----------------------------------
-    //  horizontalScrollPosition
-    //----------------------------------
-
-    [Bindable("propertyChange")]
-
-    /**
-     *  @inheritDoc
-     */
-    public function get horizontalScrollPosition():Number
-    {
-        return (contentGroup)
-            ? contentGroup.horizontalScrollPosition
-            : contentGroupProperties.horizontalScrollPosition;
-    }
-
-    /**
-     *  @private
-     */
-    public function set horizontalScrollPosition(value:Number):void
-    {
-        if (contentGroup)
-        {
-            contentGroup.horizontalScrollPosition = value;
-            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
-                                                        HORIZONTAL_SCROLL_POSITION_PROPERTY_FLAG, true);
-        }
-        else
-            contentGroupProperties.horizontalScrollPosition = value;
-    }
-
-    //----------------------------------
-    //  layout
-    //----------------------------------
-
-    /**
-     *  @copy mx.components.baseClasses.GroupBase#layout
-     */
-    public function get layout():LayoutBase
-    {
-        return (contentGroup)
-            ? contentGroup.layout
-            : contentGroupProperties.layout;
-    }
-
-    /**
-     * @private
-     */
-    public function set layout(value:LayoutBase):void
-    {
-        if (contentGroup)
-        {
-            contentGroup.layout = value;
-            contentGroupProperties = BitFlagUtil.update(contentGroupProperties as uint,
-                                                        LAYOUT_PROPERTY_FLAG, true);
-        }
-        else
-            contentGroupProperties.layout = value;
-
-    }
-
-    //----------------------------------
     //  verticalScrollPosition
     //----------------------------------

@@ -463,7 +465,7 @@
     /**
      *  @inheritDoc
      */
-    public function getElementAt(index:int):Object
+    public function getElementAt(index:int):IVisualElement
     {
         return mx_internal::currentContentGroup.getElementAt(index);
     }
@@ -472,7 +474,7 @@
     /**
      *  @inheritDoc
      */
-    public function getElementIndex(element:Object):int
+    public function getElementIndex(element:IVisualElement):int
     {
         return mx_internal::currentContentGroup.getElementIndex(element);
     }
@@ -480,7 +482,7 @@
     /**
      *  @inheritDoc
      */
-    public function addElement(element:Object):Object
+    public function addElement(element:IVisualElement):IVisualElement
     {
         return mx_internal::currentContentGroup.addElement(element);
     }
@@ -488,7 +490,7 @@
     /**
      *  @inheritDoc
      */
-    public function addElementAt(element:Object, index:int):Object
+    public function addElementAt(element:IVisualElement, index:int):IVisualElement
     {
         return mx_internal::currentContentGroup.addElementAt(element, index);
     }
@@ -496,7 +498,7 @@
     /**
      *  @inheritDoc
      */
-    public function removeElement(element:Object):Object
+    public function removeElement(element:IVisualElement):IVisualElement
     {
         return mx_internal::currentContentGroup.removeElement(element);
     }
@@ -504,7 +506,7 @@
     /**
      *  @inheritDoc
      */
-    public function removeElementAt(index:int):Object
+    public function removeElementAt(index:int):IVisualElement
     {
         return mx_internal::currentContentGroup.removeElementAt(index);
     }
@@ -512,7 +514,7 @@
     /**
      *  @inheritDoc
      */
-    public function setElementIndex(element:Object, index:int):void
+    public function setElementIndex(element:IVisualElement, index:int):void
     {
         mx_internal::currentContentGroup.setElementIndex(element, index);
     }
@@ -520,7 +522,7 @@
     /**
      *  @inheritDoc
      */
-    public function swapElements(element1:Object, element2:Object):void
+    public function swapElements(element1:IVisualElement, element2:IVisualElement):void
     {
         mx_internal::currentContentGroup.swapElements(element1, element2);
     }
@@ -531,93 +533,6 @@
     public function swapElementsAt(index1:int, index2:int):void
     {
         mx_internal::currentContentGroup.swapElementsAt(index1, index2);
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  DEPRECATED Methods proxied to contentGroup
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function get numItems():int
-    {
-        return numElements;
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function getItemAt(index:int):Object
-    {
-        return getElementAt(index);
-    }
-
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function getItemIndex(item:Object):int
-    {
-        return getElementIndex(item);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function addItem(item:Object):Object
-    {
-        return addElement(item);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function addItemAt(item:Object, index:int):Object
-    {
-        return addElementAt(item, index);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function removeItem(item:Object):Object
-    {
-        return removeElement(item);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function removeItemAt(index:int):Object
-    {
-        return removeElementAt(index);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function setItemIndex(item:Object, index:int):void
-    {
-        setElementIndex(item, index);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function swapItems(item1:Object, item2:Object):void
-    {
-        swapElements(item1, item2);
-    }
-
-    /**
-     *  This method is deprecated and will be removed from FxContainer.
-     */
-    public function swapItemsAt(index1:int, index2:int):void
-    {
-        swapElementsAt(index1, index2);
     }

     //----------------------------------
@@ -674,12 +589,9 @@
         {
             if (_placeHolderGroup != null)
             {
-                var sourceContent:Array = _placeHolderGroup.mxmlContent as Array;
+                var sourceContent:Array = _placeHolderGroup.mxmlContent;

-                if (sourceContent)
-                    contentGroup.mxmlContent = sourceContent.slice();
-                else
-                    contentGroup.mxmlContent = _placeHolderGroup.mxmlContent;
+                contentGroup.mxmlContent = sourceContent ? sourceContent.slice() : null;

                 // Temporary workaround because copying content from one Group to another throws RTE
                 for (var i:int = _placeHolderGroup.numElements; i > 0; i--)
@@ -688,9 +600,9 @@
                 }

             }
-            else if (_mxml_content != null)
-            {
-                contentGroup.mxmlContent = _mxml_content;
+            else if (_mxmlContent != null)
+            {
+                contentGroup.mxmlContent = _mxmlContent;
             }

             // copy proxied values from contentGroupProperties (if set) to contentGroup
@@ -818,7 +730,14 @@

             if (mxmlContentFactory)
             {
-                mxmlContent = mxmlContentFactory.getInstance();
+                // TODO (rfrishbe): If we have compiler support for deferred content
+                // to do autotype conversion (do I create a single object,
+                // an array, or an IList in the function)
+                var deferredContent:Object = mxmlContentFactory.getInstance();
+                if (deferredContent is Array)
+                    mxmlContent = deferredContent as Array;
+                else
+                    mxmlContent = [deferredContent];
                 dispatchEvent(new FlexEvent(FlexEvent.CONTENT_CREATION_COMPLETE));
             }
         }


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

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

 package spark.events
 {


- added outro to cube views

 - added outro to cube views

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

--- src/reprise/tweens/SimpleTween.as
+++ src/reprise/tweens/SimpleTween.as
@@ -200,10 +200,7 @@
 		 */
 		public function setDirection(direction : int) : void
 		{
-			if (direction != m_direction)
-			{
-				reverse();
-			}
+			m_direction = direction;
 		}

 		/**


Fixed memory leak in Flash.

Fixed memory leak in Flash.

--- src/flash/plupload/src/com/plupload/File.as
+++ src/flash/plupload/src/com/plupload/File.as
@@ -244,8 +244,15 @@
 			var urlStream:URLStream, url:String, file:File = this;

 			// All chunks uploaded?
-			if (this._chunk >= this._chunks)
+			if (this._chunk >= this._chunks) {
+				// Clean up memory
+				fileData.clear();
+				urlStream.close();
+				this._fileRef = null;
+				this._imageData = null;
+
 				return false;
+			}

 			// Slice out a chunk
 			chunkData = new ByteArray();
@@ -294,6 +301,7 @@
 				dispatchEvent(uploadEvt);*/

 				urlStream.close();
+				chunkData.clear();

 				file._chunk++;
 			});
@@ -366,12 +374,5 @@

 			return true;
 		}
-
-		/**
-		 * Cancels the upload of the current file.
-		 */
-		public function cancelUpload():void {
-			this._cancelled = true;
-		}
 	}
 }


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

--- frameworks/projects/framework/src/mx/core/ScrollPolicy.as
+++ frameworks/projects/framework/src/mx/core/ScrollPolicy.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 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: 22217
Author:   mhorn@adobe.com
Date:     2011-08-25T18:07:03.696931Z

Log Message:
-----------
minor asdoc change

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Spinner.as
+++ frameworks/projects/spark/src/spark/components/Spinner.as
@@ -131,7 +131,7 @@
  * Because this component does not define a skin for the mobile theme, Adobe
  * recommends that you not use it in a mobile application. Alternatively, you
  * can define your own mobile skin for the component. For more information,
- * see Spark Skinning.
+ * see Basics of mobile skinning.
  */
 [DiscouragedForProfile("mobileDevice")]


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

--- frameworks/projects/spark/src/spark/filters/BlurFilter.as
+++ frameworks/projects/spark/src/spark/filters/BlurFilter.as
@@ -1,4 +1,4 @@
-package mx.filters
+package spark.filters
 {
 import flash.filters.BitmapFilter;
 import flash.filters.BitmapFilterQuality;


Correct preferred bitrate selection logic to use abs.

--- HLSPlugin/src/com/kaltura/hls/HLSLoader.as
+++ HLSPlugin/src/com/kaltura/hls/HLSLoader.as
@@ -170,7 +170,7 @@
 				for(var k:int=0; k<items.length; k++)
 				{
 					var curItem:DynamicStreamingItem = items[k];
-					var curDist:Number = items[k].bitrate - HLSManifestParser.PREF_BITRATE;
+					var curDist:Number = Math.abs(items[k].bitrate - HLSManifestParser.PREF_BITRATE);

 					/// Reject too low or not improved items.
 					if(curDist < 0 || curDist >= preferredDistance)
@@ -238,4 +238,4 @@
 		}

 	}
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 22434
Author:   aaltman@adobe.com
Date:     2011-09-07T22:53:52.118566Z

Log Message:
-----------
Partial revert of revision 22422 - the runtime change that this focus change needed has not been integrated.
Changed bitmap swapping flag for Design View to a global flag.

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

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as
@@ -321,6 +321,12 @@
     //--------------------------------------------------------------------------

     /**
+     *  Class-global flag set by Design View in Builder to always display
+     *  bitmaps instead of native StageText components.
+     */
+    mx_internal static var alwaysShowProxyImage:Boolean = false;
+
+    /**
      *  A reference to the ActiveWindowManager is necessary for detecting when a
      *  popup is displayed. If that popup obscures any StyleableStageText, the
      *  StageText within needs to be hidden so it doesn't draw on top of the
@@ -354,7 +360,7 @@
      */
     mx_internal static var androidHeightMultiplier:Number = 1.15;
     private static const isAndroid:Boolean = Capabilities.version.indexOf("AND") == 0;
-
+
     //--------------------------------------------------------------------------
     //
     //  Constructor
@@ -466,13 +472,6 @@
     private var textImage:Bitmap = null;
     private var showTextImage:Boolean = false;
     private var numEffectsRunning:int = 0;
-
-    /**
-     *  DesignView need to always display a bitmap instead of a StageText so it
-     *  can draw its adornments and prevent users from interacting with the
-     *  component.
-     */
-    private var _alwaysShowProxyImage:Boolean = false;

     /**
      *  Because StageText exists outside of the display hierarchy, its visiblity
@@ -1307,9 +1306,12 @@
             {
                 // If alwaysShowProxyImage is set, don't dispose the image.
                 // We shouldn't get here in this case; this is just a backstop.
-                if (!_alwaysShowProxyImage)
+                if (!alwaysShowProxyImage)
                     disposeProxyImage();

+                // assignFocus doesn't bring up the soft keyboard. We need to
+                // ask for it.
+                requestSoftKeyboard();
                 stageText.assignFocus();
             }
         }
@@ -1661,27 +1663,6 @@
         }
     }

-    /**
-     *  Flag to always show a bitmap image of the StageText instead of the
-     *  StageText itself. Used by DesignView to prevent users from interacting
-     *  with the stage text and to allow DesignView adornments to be drawn over
-     *  StageText-based componentry.
-     */
-    mx_internal function get alwaysShowProxyImage():Boolean
-    {
-        return _alwaysShowProxyImage;
-    }
-
-    mx_internal function set alwaysShowProxyImage(value:Boolean):void
-    {
-        _alwaysShowProxyImage = value;
-
-        if (_alwaysShowProxyImage)
-            createProxyImage();
-        else
-            disposeProxyImage();
-    }
-
     /**
      *  If a StageText is visible, this will capture a bitmap copy of what it is
      *  displaying. This includes any text visible in the StageText and may
@@ -1783,7 +1764,7 @@
             if (form.focusManager != focusManager)
                 createProxyImage();
                 // If alwaysShowProxyImage is set, don't dispose the image.
-            else if (!_alwaysShowProxyImage)
+            else if (!alwaysShowProxyImage)
                 disposeProxyImage();
         }
     }
@@ -2025,7 +2006,10 @@
         //  Forward the focus event to the StageText. The focusedStageText flag
         //  is modified by the StageText's focus event handlers, not this one.
         if (stageText != null && focusedStageText != stageText && effectiveEnabled)
+        {
+            requestSoftKeyboard();
             stageText.assignFocus();
+        }
     }

     //--------------------------------------------------------------------------
@@ -2175,7 +2159,7 @@
             // The last effect affecting the StageText to end causes us to put
             // the live StageText back and remove the bitmap.
             // If alwaysShowProxyImage is set, don't dispose the image.
-            if (--numEffectsRunning == 0 && !_alwaysShowProxyImage)
+            if (--numEffectsRunning == 0 && !alwaysShowProxyImage)
             {
                 // The effect may have played while a popup is open. If so, we
                 // need to make sure the proxy image stays.
@@ -2266,6 +2250,9 @@

         registerStageTextListeners();

+        if (alwaysShowProxyImage)
+            createProxyImage();
+
         invalidateAncestorsVisibleFlag = true;
         invalidateEffectiveEnabledFlag = true;
         invalidateProperties();


Transferred from the Adobe Open Source Subversion Repository

Revision: 2462
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:13:06.620116Z

Log Message:
-----------
gumbo push to trunk

Modified Paths:
--------------
214 paths were modified

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
@@ -14,7 +14,9 @@

 import flash.display.GradientType;
 import flash.display.Graphics;
-import mx.core.mx_internal;
+import flash.geom.Matrix;
+import flash.geom.Rectangle;
+import mx.skins.RectangularBorder;

 /**
  *  The LinearGradientStroke class lets you specify a gradient filled stroke.
@@ -26,7 +28,7 @@
  *  @see mx.graphics.RadialGradient
  *  @see flash.display.Graphics
  */
-public class LinearGradientStroke extends GradientBase implements IStroke
+public class LinearGradientStroke extends GradientStroke implements IStroke
 {
     include "../core/Version.as";

@@ -60,7 +62,7 @@
      *  LineScaleMode.NONE, LineScaleMode.NORMAL,
      *  and LineScaleMode.VERTICAL.
      *  This parameter is optional,
-     *  with a default value of LineScaleMode.NORMAL.
+     *  with a default value of LineScaleMode.NONE.
      *
      *  @param caps A value from the CapsStyle class
      *  that specifies the type of caps at the end of lines.
@@ -96,437 +98,24 @@
      */
     public function LinearGradientStroke(weight:Number = 0,
                                          pixelHinting:Boolean = false,
-                                         scaleMode:String = "normal",
+                                         scaleMode:String = "none",
                                          caps:String = null,
                                          joints:String = null,
                                          miterLimit:Number = 0)
     {
-        super();
-
-        this.weight = weight;
-        this.pixelHinting = pixelHinting;
-        this.scaleMode = scaleMode;
-        this.caps = caps;
-        this.joints = joints;
-        this.miterLimit = miterLimit;
+        super(weight, pixelHinting, scaleMode, caps, joints, miterLimit);
+
+        matrix = new Matrix();
     }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
-
-    //----------------------------------
-    //  angle
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the angle property.
-     */
-    private var _rotation:Number = 0.0;
-
-    [Inspectable(category="General")]
-
-    /**
-     *  By default, the LinearGradientStroke defines a transition
-     *  from left to right across the control.
-     *  Use the angle property to control the transition direction.
-     *  For example, a value of 180.0 causes the transition
-     *  to occur from right to left, rather than from left to right.
-     *
-     *  @default 0.0
-     */
-    public function get angle():Number
-    {
-        return _rotation / Math.PI * 180;
-    }
-
-    /**
-     *  @private
-     */
-    public function set angle(value:Number):void
-    {
-        var oldValue:Number = _rotation;
-        _rotation = value / 180 * Math.PI;
-
-        mx_internal::dispatchGradientChangedEvent(
-                            "angle", oldValue, _rotation);
-    }
-
-    //----------------------------------
-    //  caps
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the caps property.
-     */
-    private var _caps:String = null;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General", enumeration="round,square,none", defaultValue="round")]
-
-    /**
-     *  A value from the CapsStyle class
-     *  that specifies the type of caps at the end of lines.
-     *
-     *
Valid values are CapsStyle.NONE,
-     *  CapsStyle.ROUND, and CapsStyle.SQUARE.
-     *  A null value is equivalent to
-     *  CapsStyle.ROUND.

-     *
-     *  @default null
-     */
-    public function get caps():String
-    {
-        return _caps;
-    }
-
-    /**
-     *  @private
-     */
-    public function set caps(value:String):void
-    {
-        var oldValue:String = _caps;
-        if (value != oldValue)
-        {
-            _caps = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "caps", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  interpolationMethod
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the interpolationMethod property.
-     */
-    private var _interpolationMethod:String = "rgb";
-
-    [Inspectable(category="General", enumeration="rgb,linearRGB", defaultValue="rgb")]
-
-    /**
-     *  A value from the InterpolationMethod class
-     *  that specifies which interpolation method to use.
-     *
-     *
Valid values are InterpolationMethod.LINEAR_RGB
-     *  and InterpolationMethod.RGB.

-     *
-     *  @default InterpolationMethod.RGB
-     */
-    public function get interpolationMethod():String
-    {
-        return _interpolationMethod;
-    }
-
-    /**
-     *  @private
-     */
-    public function set interpolationMethod(value:String):void
-    {
-        var oldValue:String = _interpolationMethod;
-        if (value != oldValue)
-        {
-            _interpolationMethod = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "interpolationMethod", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  joints
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the joints property.
-     */
-    private var _joints:String = null;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General", enumeration="round,bevel,miter", defaultValue="round")]
-
-    /**
-     *  A value from the JointStyle class that specifies the type
-     *  of joint appearance used at angles.
-     *
-     *
Valid values are JointStyle.BEVEL,
-     *  JointStyle.MITER, and JointStyle.ROUND.
-     *  A null value is equivalent to
-     *  JoinStyle.ROUND.

-     *
-     *  @default null
-     */
-    public function get joints():String
-    {
-        return _joints;
-    }
-
-    /**
-     *  @private
-     */
-    public function set joints(value:String):void
-    {
-        var oldValue:String = _joints;
-        if (value != oldValue)
-        {
-            _joints = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "joints", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  miterLimit
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the miterLimit property.
-     */
-    private var _miterLimit:Number = 0;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-
-    /**
-     *  A number that indicates the limit at which a miter is cut off.
-     *
-     *
Valid values range from 0 to 255
-     *  (and values outside of that range are rounded to 0 or 255).

-     *
-     *
This value is only used if the jointStyle
-     *  is set to JointStyle.MITER.

-     *
-     *
The miterLimit value represents the length that a miter
-     *  can extend beyond the point at which the lines meet to form a joint.
-     *  The value expresses a factor of the line thickness.
-     *  For example, with a miterLimit factor of 2.5
-     *  and a thickness of 10 pixels,
-     *  the miter is cut off at 25 pixels.

-     *
-     *  @default 0
-     */
-    public function get miterLimit():Number
-    {
-        return _miterLimit;
-    }
-
-    /**
-     *  @private
-     */
-    public function set miterLimit(value:Number):void
-    {
-        var oldValue:Number = _miterLimit;
-        if (value != oldValue)
-        {
-            _miterLimit = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "miterLimit", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  pixelHinting
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the pixelHinting property.
-     */
-    private var _pixelHinting:Boolean = false;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-
-    /**
-     *  A Boolean value that specifies whether to hint strokes to full pixels.
-     *
-     *
This affects both the position of anchors of a curve
-     *  and the line stroke size itself.

-     *
-     *
With pixelHinting set to true,
-     *  Flash Player and AIR hint line widths to full pixel widths.
-     *  With pixelHinting set to false,
-     *  disjoints can appear for curves and straight lines.

-     *
-     *  @default false
-     */
-    public function get pixelHinting():Boolean
-    {
-        return _pixelHinting;
-    }
-
-    /**
-     *  @private
-     */
-    public function set pixelHinting(value:Boolean):void
-    {
-        var oldValue:Boolean = _pixelHinting;
-        if (value != oldValue)
-        {
-            _pixelHinting = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "pixelHinting", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  scaleMode
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the scaleMode property.
-     */
-    private var _scaleMode:String = "normal";
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General", enumeration="normal,vertical,horizontal,none", defaultValue="normal")]
-
-    /**
-     *  A value from the LineScaleMode class
-     *  that  specifies which scale mode to use.
-     *  Value valids are:
-     *
-     *

-     *

-     *  LineScaleMode.NORMAL—
-     *  Always scale the line thickness when the object is scaled  (the default).
-     *

-     *

-     *  LineScaleMode.NONE—
-     *  Never scale the line thickness.
-     *

-     *

-     *  LineScaleMode.VERTICAL—
-     *  Do not scale the line thickness if the object is scaled vertically
-     *  only.
-     *

-     *

-     *  LineScaleMode.HORIZONTAL—
-     *  Do not scale the line thickness if the object is scaled horizontally
-     *  only.
-     *

-     *

-     *
-     *  @default LineScaleMode.NORMAL
-     */
-    public function get scaleMode():String
-    {
-        return _scaleMode;
-    }
-
-    /**
-     *  @private
-     */
-    public function set scaleMode(value:String):void
-    {
-        var oldValue:String = _scaleMode;
-        if (value != oldValue)
-        {
-            _scaleMode = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "scaleMode", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  spreadMethod
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the spreadMethod property.
-     */
-    private var _spreadMethod:String = "pad";
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General", enumeration="pad,reflect,repeat", defaultValue="pad")]
-
-    /**
-     *  A value from the SpreadMethod class
-     *  that specifies which spread method to use.
-     *
-     *
Value values are SpreadMethod.PAD,
-     *  SpreadMethod.REFLECT,
-     *  and SpreadMethod.REPEAT.

-     *
-     *  @default SpreadMethod.PAD
-     */
-    public function get spreadMethod():String
-    {
-        return _spreadMethod;
-    }
-
-    /**
-     *  @private
-     */
-    public function set spreadMethod(value:String):void
-    {
-        var oldValue:String = _spreadMethod;
-        if (value != oldValue)
-        {
-            _spreadMethod = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "spreadMethod", oldValue, value);
-        }
-    }
-
-    //----------------------------------
-    //  weight
-    //----------------------------------
-
-    /**
-     *  @private
-     *  Storage for the weight property.
-     */
-    private var _weight:Number;
-
-    [Bindable("propertyChange")]
-    [Inspectable(category="General")]
-
-    /**
-     *  The line weight, in pixels.
-     *  For many charts, the default value is 1 pixel.
-     */
-    public function get weight():Number
-    {
-        return _weight;
-    }
-
-    /**
-     *  @private
-     */
-    public function set weight(value:Number):void
-    {
-        var oldValue:Number = _weight;
-        if (value != oldValue)
-        {
-            _weight = value;
-
-            mx_internal::dispatchGradientChangedEvent(
-                                "weight", oldValue, value);
-        }
-    }
+

     //--------------------------------------------------------------------------
     //
     //  Methods
     //
     //--------------------------------------------------------------------------
+
+	[Deprecated(replacement="draw")]

     /**
      *  Applies the properties to the specified Graphics object.
@@ -538,12 +127,32 @@
     {
         g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                     caps, joints, miterLimit);
-
+
         g.lineGradientStyle(GradientType.LINEAR, mx_internal::colors,
                             mx_internal::alphas, mx_internal::ratios,
                             null /* matrix */, spreadMethod,
                             interpolationMethod);
     }
+
+    public function draw(g:Graphics, rc:Rectangle):void
+    {
+    	g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
+                    caps, joints, miterLimit);
+
+    	var w:Number = !isNaN(scaleX) ? scaleX : rc.width;
+		var bX:Number = !isNaN(x) ? x + rc.left : rc.left;
+		var bY:Number = !isNaN(y) ? y + rc.top : rc.top;
+
+        matrix.createGradientBox(w, rc.height,
+								!isNaN(mx_internal::_angle) ?
+									mx_internal::_angle : mx_internal::rotationInRadians,
+								 bX, bY);
+
+		g.lineGradientStyle(GradientType.LINEAR, mx_internal::colors,
+                            mx_internal::alphas, mx_internal::ratios,
+                            matrix, spreadMethod,
+                            interpolationMethod);
+    }
 }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 21937
Author:   jasonsj@adobe.com
Date:     2011-08-11T16:00:02.732242Z

Log Message:
-----------
SDK-30852 Relocate removedFromStage handling from Callout to CalloutButton
SDK-30926 Enable transition interruption in CalloutSkin

QE notes:
Doc notes:
Bugs:
SDK-30852 android : callout stays visible when the view changes via device's back button
SDK-30926 multiple execution of openDropDown() set to click event puts the button into a strange state
Reviewer: cheidozi
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as
@@ -469,6 +469,15 @@
         {
             isOpen = isNormal || isDisabled;

+            // handle re-opening the Callout while fading out
+            if (fade && fade.isPlaying)
+            {
+                // Do not dispatch a state change complete.
+                // SkinnablePopUpContainer handles state interruptions.
+                fade.removeEventListener(EffectEvent.EFFECT_END, stateChangeComplete);
+                fade.stop();
+            }
+
             if (isNormal)
                 alpha = 1;
             else if (isDisabled)


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package flex.core
+{
+
+/**
+ *  Documentation is not currently available.
+ */
+public class Skin extends Group
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     */
+	public function Skin()
+	{
+		super();
+	}
+}
+
+}


free cmodule memory

free cmodule memory

--- src/as3/com/xfan/amras3/Codec.as
+++ src/as3/com/xfan/amras3/Codec.as
@@ -21,16 +21,8 @@
 			var buff:ByteArray = new ByteArray;
 			CModule.readBytes(destram, len, buff);

-//			var buff:ByteArray = new ByteArray;
-//			var off:int = amras3_encode(src, buff);
-//
-//			var buff1:ByteArray = new ByteArray;
-//			buff1.writeBytes(ram, off, 5);
-//
-//			//var buff:ByteArray = new ByteArray;
-//			//trace(dest);
-//			//ram.position = dest;
-//			//buff.writeBytes(ram, dest, 5);
+			CModule.free(srcram);
+			CModule.free(destram);

 			return buff;
 		}
@@ -50,16 +42,9 @@
 			var buff:ByteArray = new ByteArray;
 			CModule.readBytes(destram, destlen, buff);

-			//			var buff:ByteArray = new ByteArray;
-			//			var off:int = amras3_encode(src, buff);
-			//
-			//			var buff1:ByteArray = new ByteArray;
-			//			buff1.writeBytes(ram, off, 5);
-			//
-			//			//var buff:ByteArray = new ByteArray;
-			//			//trace(dest);
-			//			//ram.position = dest;
-			//			//buff.writeBytes(ram, dest, 5);
+			CModule.free(srcram);
+			CModule.free(destram);
+			CModule.free(valram);

 			return buff;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

--- frameworks/projects/mx/src/mx/core/Version.as
+++ frameworks/projects/mx/src/mx/core/Version.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////

 import mx.core.mx_internal;


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/framework/src/mx/core/EmbeddedFont.as
+++ frameworks/projects/framework/src/mx/core/EmbeddedFont.as
@@ -0,0 +1,94 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import flash.text.FontStyle;
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  Describes the properties that make an embedded font unique.
+ */
+public class EmbeddedFont
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Create a new EmbeddedFont object.
+	 *
+	 *  @param fontName The name of the font.
+	 *
+	 *  @param bold true if the font is bold, false otherwise.
+	 *
+	 *  @param italic true if the fotn is italic, false otherwise,
+	 */
+	public function EmbeddedFont(fontName:String, bold:Boolean, italic:Boolean)
+	{
+		super();
+
+		_fontName = fontName;
+		_fontStyle = EmbeddedFontRegistry.getFontStyle(bold, italic);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  fontName
+    //----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the fontName property.
+	 */
+	private var _fontName:String;
+
+	/**
+	 *  The name of the font.
+	 */
+	public function get fontName():String
+	{
+		return _fontName;
+	}
+
+    //----------------------------------
+    //  fontStyle
+    //----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the fontStyle property.
+	 */
+	private var _fontStyle:String;
+
+	/**
+	 *  The style of the font.
+	 *  The value is one of the values in flash.text.FontStyle.
+	 */
+	public function get fontStyle():String
+	{
+		return _fontStyle;
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21762
Author:   betravis@adobe.com
Date:     2011-08-01T23:28:06.567331Z

Log Message:
-----------
Fixing RTE bug with VSlider and RTL layout

QE notes: None
Doc notes: None
Bugs:
SDK-30743 - Spark VSlider RTEs when layoutDirection is "rtl"
Reviewer: Kevin Lin
Tests run: checkintests, mustella
Is noteworthy for integration: Yes

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VSlider.as

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

--- frameworks/projects/spark/src/spark/components/VSlider.as
+++ frameworks/projects/spark/src/spark/components/VSlider.as
@@ -168,6 +168,9 @@

         if (tipAsDisplayObject && thumb)
         {
+            // Get the tips bounds. We only care about the dimensions.
+            var tipBounds:Rectangle = tipAsDisplayObject.getBounds(tipAsDisplayObject.parent);
+
             // We are working in thumb.parent coordinates and we assume that there's no scale factor
             // between the tooltip and the thumb.parent.
             var relY:Number = thumb.getLayoutBoundsY() +
@@ -175,9 +178,6 @@
             var relX:Number = layoutDirection == LayoutDirection.RTL ?
                               initialPosition.x + tipBounds.width :
                               initialPosition.x;
-
-            // Get the tips bounds. We only care about the dimensions.
-            var tipBounds:Rectangle = tipAsDisplayObject.getBounds(tipAsDisplayObject.parent);

             // Ensure that we don't overlap the screen
             var pt:Point = PopUpUtil.positionOverComponent(thumb.parent,


Transferred from the Adobe Open Source Subversion Repository

Revision: 8389
Author:   gosmith@adobe.com
Date:     2009-07-06T20:19:11.498121Z

Log Message:
-----------
Removed a trace() statement that I left in TextFlowUtil's importFromXML() method.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol to review

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/TextFlowUtil.as

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

--- frameworks/projects/spark/src/spark/utils/TextFlowUtil.as
+++ frameworks/projects/spark/src/spark/utils/TextFlowUtil.as
@@ -277,7 +277,7 @@
      *
      *  @return A new TextFlow instance created from the markup.
      */
-        public static function importFromXML(
+	public static function importFromXML(
         markup:XML, whiteSpaceCollapse:String = "collapse"):TextFlow
     {
         initClass();
@@ -307,8 +307,6 @@
             markup = root;
         }

-        trace(markup);
-
         var importer:ITextImporter = whiteSpaceCollapse == "collapse" ?
             collapsingTextLayoutImporter :
             preservingTextLayoutImporter;


fixed column id bug in RDataSource

fixed column id bug in RDataSource

--- WeaveData/src/weave/data/DataSources/RDataSource.as
+++ WeaveData/src/weave/data/DataSources/RDataSource.as
@@ -25,6 +25,7 @@
 	import weave.api.data.IColumnReference;
 	import weave.api.data.IDataSource;
 	import weave.api.data.IDataSource_Service;
+	import weave.api.data.IKeyFilter;
 	import weave.api.data.IWeaveTreeNode;
 	import weave.api.disposeObject;
 	import weave.api.getCallbackCollection;
@@ -34,16 +35,18 @@
 	import weave.api.newLinkableChild;
 	import weave.api.registerLinkableChild;
 	import weave.api.reportError;
+	import weave.core.LinkableDynamicObject;
 	import weave.core.LinkableHashMap;
 	import weave.core.LinkablePromise;
 	import weave.core.LinkableString;
 	import weave.data.AttributeColumns.ProxyColumn;
 	import weave.data.AttributeColumns.ReferencedColumn;
+	import weave.data.KeySets.KeyFilter;
 	import weave.data.hierarchy.ColumnTreeNode;
 	import weave.services.AMF3Servlet;
 	import weave.services.addAsyncResponder;
 	import weave.utils.ColumnUtils;
-	import weave.utils.VectorUtils;
+	import weave.utils.VectorUtils;

 	public class RDataSource extends AbstractDataSource implements IDataSource_Service
 	{
@@ -61,6 +64,7 @@
 		public const url:LinkableString = registerLinkableChild(this, new LinkableString('/WeaveAnalystServices/ComputationalServlet'), handleURLChange);
 		public const scriptName:LinkableString = newLinkableChild(this, LinkableString);
 		public const inputs:LinkableHashMap = newLinkableChild(this, LinkableHashMap);
+		public const inputKeyFilter:LinkableDynamicObject = registerLinkableChild(this, new LinkableDynamicObject(IKeyFilter));

 		private const promise:LinkablePromise = registerLinkableChild(this, new LinkablePromise(runScript, describePromise));
 		private function describePromise():String { return lang("Running script {0}", scriptName.value); }
@@ -127,7 +131,7 @@
 			for (keyType in columnsByKeyType)
 			{
 				var cols:Array = columnsByKeyType[keyType];
-				var joined:Array = ColumnUtils.joinColumns(cols, null, true);
+				var joined:Array = ColumnUtils.joinColumns(cols, null, true, inputKeyFilter.target);
 				var keys:Array = VectorUtils.pluck(joined.shift() as Array, 'localName');
 				var colMap:Object = {};
 				for (var i:int = 0; i <  joined.length; i++)
@@ -202,7 +206,7 @@
 						var csvRoot:IWeaveTreeNode = outputCSV.getHierarchyRoot();
 						return csvRoot.getChildren().map(function(csvNode:IColumnReference, ..._):IWeaveTreeNode {
 							var meta:Object = csvNode.getColumnMetadata();
-							meta[SCRIPT_OUTPUT_NAME] = meta[CSVDataSource.METADATA_COLUMN_NAME];
+							meta[SCRIPT_OUTPUT_NAME] = meta[CSVDataSource.METADATA_COLUMN_NAME] || meta[CSVDataSource.METADATA_COLUMN_INDEX];
 							return generateHierarchyNode(meta);
 						});
 					}


It now gets command from JavaScript to set resistor color bands.

--- activities/module-2/series-measuring/as/org/concord/sparks/activity/series_measuring/Activity.as
+++ activities/module-2/series-measuring/as/org/concord/sparks/activity/series_measuring/Activity.as
@@ -3,6 +3,7 @@
     import flash.events.Event;
     import flash.events.MouseEvent;
     import flash.external.ExternalInterface;
+    import flash.display.MovieClip;
     import flash.geom.Point;

     import org.concord.sparks.Activity;
@@ -12,12 +13,17 @@
     public class Activity extends org.concord.sparks.Activity {

         public var multimeter:DmmCentech2;
-
+
+        private var breadboard_mc:MovieClip;
+
         public function Activity(name:String, root, topDir):void {
             trace('ENTER Activity: ' + new Date());
             super(name, root, topDir);

-            Debug.traceDisplayList(root);
+            //Debug.traceDisplayList(root);
+
+            breadboard_mc = root.outer_breadboard_mc.breadboard_mc;
+            trace('BREADBOARD_MC=' + breadboard_mc);

             multimeter = new DmmCentech2({ activity: this, root: root });
             multimeter.setDisplayText('  9.0 0');
@@ -31,7 +37,9 @@
             trace('processMessageFromJavaScript args=' + args);
             var command:String = args[0];
             switch (command) {
-                case 'foo':
+                case 'set_resistor_colors':
+                    var resistor = getResistor(args[1]);
+                    resistor.setColorBands(args[2]);
                     return 'OK';
             }
             return 'UNKNOWN';
@@ -69,6 +77,9 @@
         private function handleMouseUp(event:MouseEvent) {
             //trace('ENTER ResistorColors.handleMouseUp');
         }
-
+
+        private function getResistor(id:String) {
+            return breadboard_mc[id];
+        }
     }
 }


Throw an exception if the class couldn't be instantiated.

--- src/org/swiftsuspenders/typedescriptions/ConstructorInjectionPoint.as
+++ src/org/swiftsuspenders/typedescriptions/ConstructorInjectionPoint.as
@@ -37,9 +37,10 @@
 				case 8 : result = new type(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]); break;
 				case 9 : result = new type(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]); break;
 				case 10 : result = new type(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]); break;
+				default: throw new Error("The constructor for " + type + " has too many arguments, maximum is 10");
 			}
 			p.length = 0;
 			return result;
 		}
 	}
-}+}


OFC-261 Add keyboard shortcut Ctrl+S for save

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/DetailPresenter.as
@@ -5,7 +5,9 @@
 	 * */
 	import flash.display.DisplayObject;
 	import flash.events.Event;
+	import flash.events.KeyboardEvent;
 	import flash.events.MouseEvent;
+	import flash.ui.Keyboard;

 	import mx.binding.utils.ChangeWatcher;
 	import mx.core.FlexGlobals;
@@ -51,8 +53,9 @@
 			_view.rejectButton.addEventListener(MouseEvent.CLICK, rejectButtonClickHandler);
 			eventDispatcher.addEventListener(ApplicationEvent.UPDATE_RESPONSE_RECEIVED, updateResponseReceivedHandler);
 			eventDispatcher.addEventListener(ApplicationEvent.RECORD_SAVED, recordSavedHandler);
-
 			eventDispatcher.addEventListener(UIEvent.ACTIVE_RECORD_CHANGED, activeRecordChangedListener);
+
+			_view.stage.addEventListener(KeyboardEvent.KEY_DOWN, stageKeyDownHandler);
 		}

 		/**
@@ -144,6 +147,10 @@
 		}

 		protected function saveButtonClickHandler(event:MouseEvent):void {
+			performSaveActiveRecord();
+		}
+
+		protected function performSaveActiveRecord():void {
 			_dataClient.saveActiveRecord(saveActiveRecordResultHandler, faultHandler);
 		}

@@ -222,5 +229,11 @@
 		protected function updateResponseReceivedHandler(event:ApplicationEvent):void {
 			//update
 		}
+
+		protected function stageKeyDownHandler(event:KeyboardEvent):void {
+			if ( Application.activeRecordEditable && event.ctrlKey && event.keyCode == Keyboard.S ) {
+				performSaveActiveRecord();
+			}
+		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 10336
Author:   aharui@adobe.com
Date:     2009-09-17T01:03:24.093052Z

Log Message:
-----------
Block the player from every handling focus.  Deal with focused item becoming invisible

QE Notes: None
Doc Notes: None
Bugs: SDK-17716, SDK-23201
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/FocusManager

Modified Paths:
--------------
<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/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>

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

--- frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
+++ frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as
@@ -427,29 +427,9 @@

 		// trace("===>DragProxy:mouseMove");
 		var targetList:Array; /* of DisplayObject */
-		var tlr:IEventDispatcher = systemManager.getTopLevelRoot();
-/*		having trouble with getObjectsUnderPoint.  Some things seem to get in list
-		like cursors that shouldn't.  We roll our own for sandboxed apps and it works
-		better for now.
-		if (tlr)
-			targetList = DisplayObjectContainer(tlr).
-							getObjectsUnderPoint(stagePoint);
-		else
-		{
-*
-*  @langversion 3.0
-*  @playerversion Flash 9
-*  @playerversion AIR 1.1
-*  @productversion Flex 3
-*/			targetList = [];
-			DragProxy.getObjectsUnderPoint(DisplayObject(sandboxRoot), stagePoint, targetList);
-/*		}
-*
-*  @langversion 3.0
-*  @playerversion Flash 9
-*  @playerversion AIR 1.1
-*  @productversion Flex 3
-*/
+		targetList = [];
+		DragProxy.getObjectsUnderPoint(DisplayObject(sandboxRoot), stagePoint, targetList);
+
 		var newTarget:DisplayObject = null;
 		// trace("   ", targetList.length, "objects under point");


Transferred from the Adobe Open Source Subversion Repository

Revision: 19360
Author:   smgilson@adobe.com
Date:     2010-12-14T15:55:46.180282Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
@@ -44,7 +44,7 @@
 /**
  *  @copy spark.components.supportClasses.GroupBase#style:accentColor
  *
- *  @default #0099FF
+ *  @default 0x0099FF
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -91,6 +91,8 @@

 /**
  *  @copy spark.components.supportClasses.GroupBase#style:focusColor
+ *
+ *  @default 0x70B2EE
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -102,7 +104,7 @@
 /**
  *  Color of text shadows.
  *
- *  @default #FFFFFF
+ *  @default 0xFFFFFF
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -225,7 +227,7 @@
 [SkinState("titleContentWithActionAndNavigation")]

 /**
- *  The ActionBar class defines a component that includes title, navigation
+ *  The ActionBar class defines a component that includes title, navigation,
  *  and action content groups.
  *  The ActionBar control provides a standard area for navigation and action controls.
  *  It lets you define global controls that can be used from anywhere in the application,
@@ -283,9 +285,29 @@
  *    titleContent="null"
  *    titleLayout="HorizontalLayout"
  *
- *   Styles
+ *   Common Styles
+ *    color="Theme dependent"
+ *    fontFamily="Theme dependent"
+ *    fontSize="Theme dependent"
+ *    fontStyle="normal"
+ *    fontWeight="normal"
+ *    leading="0"
+ *    letterSpacing="0"
+ *    textAlign="center"
+ *    textDecoration="none"
+ *    textIndent="0"
+ *
+ *   Mobile Styles
+ *    accentColor="0x0099FF"
  *    backgroundAlpha="1.0"
- *    titleAlign="left"
+ *    color="Theme dependent"
+ *    contentBackgroundAlpha="1.0"
+ *    contentBackgroundColor="0xFFFFFF"
+ *    focusColor="0x70B2EE"
+ *    textShadowAlpha="0.55"
+ *    textShadowColor="0xFFFFFF"
+ *    titleAlign="center"
+ *
  *  >
  *

  *
@@ -656,12 +678,15 @@
      *  Defines the layout of the titleGroup
      *  and titleDisplay skin parts.
      *
-     *
If titleContent is null, titleDisplay
-     *  is displayed in place of titleGroup.
-     *  In this case, titleDisplay is positioned
+     *
If the titleContent property is null,
+     *  the titleDisplay skin part is displayed
+     *  in place of the titleGroup skin part.
+     *  The titleDisplay skin part is positioned
+     *  in the center of the ActionBar control
      *  by using the padding specified by the
-     *  paddingLeft and paddingRight properties of
-     *  titleLayout, if defined.

+     *  paddingLeft and paddingRight properties
+     *  of the layout class specified by the
+     *  titleLayout property.

      *
      *  @default HorizontalLayout
      *  @see #titleContent


Transferred from the Adobe Open Source Subversion Repository

Revision: 21756
Author:   jszeto@adobe.com
Date:     2011-08-01T18:58:00.702387Z

Log Message:
-----------
SpinnerList Fixes

- Rewrote the LayoutIterator in VerticalSpinnerLayout
- Implemented a smarter algorithm for detecting the closest enabled item
- Lowered padding values
- Updated SelectionIndicator gradient to have less of a contrast between the top and bottom
- DateSpinner is no longer resizable
- Fixed right border bug
- Decreased the minimum width for SpinnerList

QE notes: none
Doc notes: none
Bugs: none
Reviewer: Tom K
Tests run: checkintests, cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/SpinnerListContainerSelectionIndicator.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12793
Author:   mhorn@adobe.com
Date:     2009-12-10T17:16:45.824116Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrow.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadio.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserTodayIndicatorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PopUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderTrackHighlightSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/TextInputBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserSelectionIndicatorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridSortArrow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheckDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserNextMonthSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ContainerBorderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/TabSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridHeaderSeparatorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/AccordionHeaderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/StepperDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserNextYearSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserRollOverIndicatorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrowDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadioDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/LinkButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/PanelBorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/EditableComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserPrevMonthSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ProgressMaskSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ColorPickerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheck.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserPrevYearSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/SparkSkinForHalo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuItemSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuSeparatorSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridHeaderBackgroundSkin.mxml</path>

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

--- frameworks/projects/sparkskins/src/mx/skins/spark/DataGridSortArrow.as
+++ frameworks/projects/sparkskins/src/mx/skins/spark/DataGridSortArrow.as
@@ -17,8 +17,10 @@
 	import mx.skins.ProgrammaticSkin;

 	/**
-	 *  The skin for the sort arrow in a column header in a DataGrid.
+	 *  The skin for the sort arrow in a column header in an MX DataGrid.
 	 *
+     *  @see mx.controls.DataGrid
+     *
 	 *  @langversion 3.0
 	 *  @playerversion Flash 9
 	 *  @playerversion AIR 1.1