Transferred from the Adobe Open Source Subversion Repository

Revision: 4982
Author:   rfrishbe@adobe.com
Date:     2009-02-17T07:31:05.349355Z

Log Message:
-----------
Moving DataGroup from item based lookup to an index based lookup.  Also, we now cleanup old item renderers when the dataProvider changes. This solves some memory leak problems.

Because of this, we should now be able to deal with duplicate items again.

We still need to work on data collection changes in the virtual layout case.

QE Notes: Please add the tests for dup items back in
Doc Notes: -
Bugs: SDK-19245, SDK-18043
Reviewer: Hans
tests: checkintests, DataGroup and FxList mustella tests (some new ones failed, but are really due to SDK-19287, and these tests should be excluded to that bug now)

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -300,12 +300,40 @@
     {
         return _dataProvider;
     }
-
+
     /**
      *  @private
      */
     public function set dataProvider(value:IList):void
     {
+        if (_dataProvider == value)
+            return;
+
+        // if there's an old dataProvider, and we've created the item renderer for
+        // that dataProvider, then we need to clear out all those item renderers
+        if (!dataProviderChanged && _dataProvider)
+        {
+            var vLayout:Boolean = layout && layout.useVirtualLayout;
+            var startIndex:int = vLayout ? virtualLayoutStartIndex : 0;
+            var endIndex:int = vLayout ? virtualLayoutEndIndex : dataProvider.length - 1;
+            for (var index:int = endIndex; index >= startIndex; index--)
+            {
+                mx_internal::itemRemoved(_dataProvider.getItemAt(index), index);
+            }
+
+            if (vLayout)
+            {
+                virtualLayoutStartIndex = virtualLayoutEndIndex = -1;
+                oldVirtualLayoutStartIndex = oldVirtualLayoutEndIndex = -1;
+
+                for (var i:int = freeRenderers.length - 1; i >= 0; i--)
+                {
+                    var myItemRenderer:IVisualElement = freeRenderers.pop() as IVisualElement;
+                    super.removeChild(myItemRenderer as DisplayObject);
+                }
+            }
+        }
+
         if (_dataProvider)
             _dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, dataProvider_collectionChangeHandler);

@@ -323,11 +351,6 @@
      */
     protected function initializeDataProvider():void
     {
-        // Get rid of existing display object children.
-        // !!!!! This should probably be done through change notification
-        for (var idx:int = numChildren; idx > 0; idx--)
-            super.removeChildAt(0);
-
         var vLayout:Boolean = layout && layout.useVirtualLayout;

         // Create all item renderers eagerly
@@ -526,7 +549,7 @@
         return dataProvider ? dataProvider.length : 0;
     }

-    private var itemToRenderer:Dictionary = new Dictionary(true);
+    private var indexToRenderer:Array = [];

     /**
      *  @private
@@ -536,6 +559,8 @@
      */
     private var virtualLayoutStartIndex:int = -1;
     private var virtualLayoutEndIndex:int = -1;
+    private var oldVirtualLayoutStartIndex:int = -1;
+    private var oldVirtualLayoutEndIndex:int = -1;

     /**
      *  @private
@@ -565,31 +590,40 @@
      */
     private function finishVirtualLayout():void
     {
-        var lastValidChildIndex:int = virtualLayoutEndIndex - virtualLayoutStartIndex;
-
-        // At this point, insertion of new IRs has pushed all of the unneeded IRs
-        // past endIndex-startIndex.  Remove or recycle them without invalidating
-        // this DataGroup's size or display list.
-        for(var i:int = super.numChildren - 1; i > lastValidChildIndex; i--)
-        {
-            var elt:IVisualElement = IVisualElement(super.getChildAt(i));
-
-            // Skip IRs that are already on the free list,
-            if (freeRenderers && (freeRenderers.indexOf(elt) != -1))
+        // At this point, we have renderers for the current rendering cycle at
+        // [virtualLayoutStartIndex. virtualLayoutEndIndex], but we may also have old
+        // ones that need to be removed at [oldVirtualLayoutStartIndex, oldVirtualLayoutEndIndex]
+        if (oldVirtualLayoutStartIndex == -1 || oldVirtualLayoutEndIndex == -1)
+            return;
+
+        // We want to remove item renderers at
+        // at [oldVirtualLayoutStartIndex, oldVirtualLayoutEndIndex]
+        // but excluding [virtualLayoutStartIndex. virtualLayoutEndIndex].
+        // Most of the time's we'll be removing one contiguous block
+        // before or after our on-screen item renderers, but sometimes
+        // we may be removing them before and after (in the case of
+        // the list changing heights)
+
+        for (var index:int = oldVirtualLayoutStartIndex; index <= oldVirtualLayoutEndIndex; index++)
+        {
+            // if we encounter an IR in our current list of item renderers,
+            // let's smart-skip to the end.
+            if (index >= virtualLayoutStartIndex && index <= virtualLayoutEndIndex)
+            {
+                index = virtualLayoutEndIndex;
                 continue;
+            }
+
+            var elt:IVisualElement = indexToRenderer[index] as IVisualElement;

             // Remove previously "in view" IRs from the item=>IR table
-            var item:Object = elt;
-            if ((itemToRenderer[item] != elt) && (elt is IDataRenderer))
-            {
-                item = IDataRenderer(elt).data;
-                IDataRenderer(elt).data = null;  // reduce probability of leaks
-            }
-            delete itemToRenderer[item];
-
+            delete indexToRenderer[index];
+
+            var item:Object = dataProvider.getItemAt(index);
             // Free or remove the IR.
             if ((item != elt) && (elt is IDataRenderer))
             {
+                IDataRenderer(elt).data = null;  // reduce probability of leaks
                 elt.visible = false;
                 if (elt is UIComponent)
                     UIComponent(elt).includeInLayout = false;
@@ -597,9 +631,8 @@
             }
             else
             {
-                // TODO (rfrishbe): it's not quite i + startIndex, especially when considering the layer property.
                 dispatchEvent(new RendererExistenceEvent(RendererExistenceEvent.RENDERER_REMOVE,
-                                false, false, elt, i + lastValidChildIndex, item));
+                                false, false, elt, index, item));
                 super.removeChild(DisplayObject(elt));
             }
         }
@@ -637,12 +670,14 @@
         if (layout && layout.useVirtualLayout)
         {
             virtualLayoutUnderway = true;
+            oldVirtualLayoutStartIndex = virtualLayoutStartIndex;
+            oldVirtualLayoutEndIndex = virtualLayoutEndIndex;
             virtualLayoutStartIndex = -1;
             ensureTypicalLayoutElement();
         }

         super.updateDisplayList(unscaledWidth, unscaledHeight);
-
+
         if (virtualLayoutUnderway)
         {
             finishVirtualLayout();
@@ -669,9 +704,8 @@
     {
         if ((index < 0) || (dataProvider == null) || (index >= dataProvider.length))
             return null;
-
-        var item:Object = dataProvider.getItemAt(index);
-        var elt:IVisualElement = itemToRenderer[item];
+
+        var elt:IVisualElement = indexToRenderer[index];

         if (virtualLayoutUnderway)
         {
@@ -698,7 +732,7 @@
                 virtualLayoutEndIndex = index;
             }
             else
-            {
+            {
                 virtualLayoutStartIndex = Math.min(index, virtualLayoutStartIndex);
                 virtualLayoutEndIndex = Math.max(index, virtualLayoutEndIndex);
             }
@@ -708,7 +742,9 @@

             if (!elt)
             {
-                var recyclingOK:Boolean = (itemRendererFunction == null) && (itemRenderer != null);
+                var item:Object = dataProvider.getItemAt(index);
+                var recyclingOK:Boolean = (itemRendererFunction == null) && (itemRenderer != null);
+
                 if (recyclingOK && (freeRenderers.length > 0))
                 {
                     elt = freeRenderers.pop();
@@ -725,7 +761,7 @@
                     createdIR = true;
                 }

-                itemToRenderer[item] = elt;  // weak reference
+                indexToRenderer[index] = elt;
             }

             addItemRendererToDisplayList(DisplayObject(elt), index - virtualLayoutStartIndex);
@@ -782,8 +818,24 @@
      */
     mx_internal function itemAdded(item:Object, index:int):void
     {
+        if (layout && layout.useVirtualLayout)
+        {
+            if (index < virtualLayoutStartIndex)
+            {
+                invalidateSize();
+                invalidateDisplayList();
+                return;
+            }
+            else if (index > virtualLayoutEndIndex)
+            {
+                invalidateSize();
+                return;
+            }
+            // otherwise, we'll add it to the display list
+        }
+
         var myItemRenderer:IVisualElement = createRendererForItem(item);
-        itemToRenderer[item] = myItemRenderer;
+        indexToRenderer.splice(index, 0, myItemRenderer);

         addItemRendererToDisplayList(myItemRenderer as DisplayObject, index);
         dispatchEvent(new RendererExistenceEvent(
@@ -805,9 +857,25 @@
      *  @param index The index of the item that is being removed.
      */
     mx_internal function itemRemoved(item:Object, index:int):void
-    {
-        var myItemRenderer:IVisualElement = itemToRenderer[item];
-        delete itemToRenderer[item];
+    {
+        if (layout && layout.useVirtualLayout)
+        {
+            if (index < virtualLayoutStartIndex)
+            {
+                invalidateSize();
+                invalidateDisplayList();
+                return;
+            }
+            else if (index > virtualLayoutEndIndex)
+            {
+                invalidateSize();
+                return;
+            }
+            // otherwise, we'll add it to the display list
+        }
+
+        var myItemRenderer:IVisualElement = indexToRenderer[index];
+        indexToRenderer.splice(index, 1);

         dispatchEvent(new RendererExistenceEvent(
                       RendererExistenceEvent.RENDERER_REMOVE, false, false,


Transferred from the Adobe Open Source Subversion Repository

Revision: 5573
Author:   jimurphy@adobe.com
Date:     2009-03-26T15:11:59.159776Z

Log Message:
-----------
-more updated package and class names that were missed in the first pass
-remove the mx folder

qa: probably
doc: this updated more asdoc comments so you may want to make sure that this pass made the correct updates
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/HSBInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/IEaser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/DataGroupExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/PathSegment.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButtonExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/WipeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElement.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElement.as
@@ -154,8 +154,8 @@
      *
      *  @return The display object created
      *  @see #displayObject
-     *  @see mx.components.Group#graphicElementLayerChanged
-     *  @see mx.components.Group#discardDisplayObject
+     *  @see spark.components.Group#graphicElementLayerChanged
+     *  @see spark.components.Group#discardDisplayObject
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -189,7 +189,7 @@
      *  to the shared DisplayObject of the sequence.
      *
      *  @see #closeSequence
-     *  @see mx.components.Group#graphicElementLayerChanged
+     *  @see spark.components.Group#graphicElementLayerChanged
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -217,7 +217,7 @@
      *  have more elements appended to its shared sequence.
      *
      *  @see #canDrawToShared
-     *  @see mx.components.Group#graphicElementLayerChanged
+     *  @see spark.components.Group#graphicElementLayerChanged
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


registering VisApplication as a disposable child of Weave.properties.

Change-Id: Iac1637d81e47e2d98b4b4a06cda229b713b9b892

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -70,6 +70,7 @@
 	import weave.api.detectLinkableObjectChange;
 	import weave.api.getCallbackCollection;
 	import weave.api.objectWasDisposed;
+	import weave.api.registerDisposableChild;
 	import weave.api.reportError;
 	import weave.api.ui.IObjectWithSelectableAttributes;
 	import weave.api.ui.IVisTool;
@@ -118,7 +119,7 @@
 	import weave.utils.DebugTimer;
 	import weave.utils.VectorUtils;
 	import weave.utils.fixErrorMessage;
-	import weave.visualization.tools.WeaveAnalyst;
+	import weave.visualization.tools.WeaveAnalyst;

 	internal class VisApplication extends VBox implements ILinkableObject
 	{
@@ -132,6 +133,7 @@
 		public function VisApplication()
 		{
 			super();
+			registerDisposableChild(Weave.properties, this);

 			setStyle("paddingLeft", 0);
 			setStyle("paddingRight", 0);
@@ -542,7 +544,7 @@

 		private function updateWorkspaceSize(..._):void
 		{
-			if (!this.parent)
+			if (!this.parent || !Weave.properties)
 				return;

 			var w:Number = Weave.properties.workspaceWidth.value;


Make opcodes.as also handle ABC_OP_F

Make opcodes.as also handle ABC_OP_F

--- utils/opcodes.as
+++ utils/opcodes.as
@@ -85,7 +85,7 @@

     public static function parse(opCodesText : String) : Array
     {
-        var abcOpCodeRegEx : RegExp = /ABC_(?P<u>(UNUSED_)?)OP\(\s*(?P<oc>-?[0-9]+)\s*,\s*(?P<ct>[01])\s*,\s*(?P<sm>-?[0-9]+)\s*,\s*(?P<internal>[01])\s*,\s*(?P<n>[\S\)]+)\s*\)/g
+        var abcOpCodeRegEx : RegExp = /ABC_(?P<u>(UNUSED_)?)OP(?:_F)?\(\s*(?P<oc>-?[0-9]+)\s*,\s*(?P<ct>[01])\s*,\s*(?P<sm>-?[0-9]+)\s*,\s*(?P<internal>[01])\s*,\s*(?P<n>[\S\)]+)\s*\)/g
         var opCodeValue : uint = 0;
         var match : Object = abcOpCodeRegEx.exec(opCodesText);
         var opCodes : Array = new Array(256);


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/core/IWindow.as
+++ frameworks/projects/airframework/src/mx/core/IWindow.as
@@ -19,6 +19,10 @@
  *  containers in Flex-based AIR applications (containers that represent operating
  *  system windows).
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IWindow
 {
@@ -34,6 +38,10 @@

     /**
      *  Specifies whether the window can be maximized.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get maximizable():Boolean;

@@ -43,6 +51,10 @@

     /**
      *  Specifies whether the window can be minimized.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get minimizable():Boolean;

@@ -52,6 +64,10 @@

     /**
      *  The underlying NativeWindow that the Window component uses.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get nativeWindow():NativeWindow

@@ -61,6 +77,10 @@

     /**
      *  Specifies whether the window can be resized.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get resizable():Boolean;

@@ -70,6 +90,10 @@

     /**
      *  The string that appears in the status bar, if it is visible.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get status():String;

@@ -88,6 +112,10 @@
      *  in the NativeWindowSystemChrome class.
      *
      *  @see flash.display.NativeWindowSystemChrome
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get systemChrome():String;

@@ -98,6 +126,10 @@
     /**
      *  The title text that appears in the window title bar and
      *  the taskbar.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get title():String;

@@ -112,6 +144,10 @@

     /**
      *  The Class (usually an image) used to draw the title bar icon.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get titleIcon():Class;

@@ -126,6 +162,10 @@

     /**
      *  Specifies whether the window is transparent.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get transparent():Boolean;

@@ -139,6 +179,10 @@
      *  in the NativeWindowType class.
      *
      *  @see flash.display.NativeWindowType
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get type():String;

@@ -148,6 +192,10 @@

     /**
      *  Controls the window's visibility.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function get visible():Boolean;

@@ -159,22 +207,38 @@

     /**
      *  Closes the window.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function close():void;

     /**
      *  Maximizes the window, or does nothing if it's already maximized.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function maximize():void

     /**
      *  Minimizes the window.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function minimize():void;

     /**
      *  Restores the window (unmaximizes it if it's maximized, or
      *  unminimizes it if it's minimized).
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     function restore():void;
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4060
Author:   egeorgie@adobe.com
Date:     2008-11-10T20:04:18.301112Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-17266 Scaling Gumbo Button causes corners to be rounded instead of sharp

The fix is to update the skin stroke to scale.

QE Notes: None
Doc Notes: None
Bugs: SDK-16487 FLEXDOCS-533
Reviewer: Glenn
tests: checkintests, Mustella (Button)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColorStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/Stroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarTrackSkin.mxml</path>

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

--- frameworks/projects/framework/src/mx/graphics/Stroke.as
+++ frameworks/projects/framework/src/mx/graphics/Stroke.as
@@ -91,7 +91,7 @@
      *  LineScaleMode.NONE, LineScaleMode.NORMAL,
      *  and LineScaleMode.VERTICAL.
      *  This parameter is optional,
-     *  with a default value of LineScaleMode.NONE.
+     *  with a default value of LineScaleMode.NORMAL.
      *
      *  @param caps Specifies the type of caps at the end of lines.
      *  Valid values are "round", "square",
@@ -107,15 +107,17 @@
      *  Valid values range from 0 to 255.
      *  The default value is 0.
      */
-    public function Stroke(color:uint = 0x000000, weight:Number = 0,
-                           alpha:Number = 1.0, pixelHinting:Boolean = false,
-                           scaleMode:String = "none", caps:String = null,
-                           joints:String = null, miterLimit:Number = 0)
+    public function Stroke(color:uint = 0x000000,
+                           weight:Number = 0,
+                           alpha:Number = 1.0,
+                           pixelHinting:Boolean = false,
+                           scaleMode:String = "normal",
+                           caps:String = null,
+                           joints:String = null,
+                           miterLimit:Number = 0)
     {
         super(color, weight, alpha, pixelHinting,
               scaleMode, caps, joints, miterLimit);
-
-
     }

 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3082
Author:   clucier@adobe.com
Date:     2008-09-03T18:12:36.277296Z

Log Message:
-----------
Adding patent id markers to source files per request from legal.
QA: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/states/AddItems.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetEventHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/StatesGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/State.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/StatesModel.java</path>

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

--- frameworks/projects/framework/src/mx/states/AddItems.as
+++ frameworks/projects/framework/src/mx/states/AddItems.as
@@ -4,6 +4,8 @@
 //  All Rights Reserved. The following is Source Code and is subject to all
 //  restrictions on such code as contained in the End User License Agreement
 //  accompanying this product.
+//
+//  AdobePatentID="B770"
 //
 ////////////////////////////////////////////////////////////////////////////////


Transferred from the Adobe Open Source Subversion Repository

Revision: 10919
Author:   gosmith@adobe.com
Date:     2009-10-07T22:15:33.759089Z

Log Message:
-----------
Integrated TLF Build 517.

This isn't the latest TLF build, but it is the one that introduced a significant API change, so I want to take it before taking other TLF changes. The ITextLineCreator interface, with its createTextLine() and recreateTextLine() methods, has been replaced with an ISWFContext interface with a callInContext() method. This required changes in 11 framework classes and in the MXML compiler's autogenerated code for the module factory classes.

The purpose of both the old and the new interface is to support cross-SWF font embedding, by allowing certain FTE calls such as textBlock.createTextLine() to execute in the SWF where the font you're using is embedded.

QE notes: None
Doc notes: None
Bugs: None
Reviewer: Alex should review
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/TextFlowLine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/IFlowComposer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/FTETextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_edit/src/flashx/textLayout/container/TextContainerManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TextFieldFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/CoreClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/BuildInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/ComposeState.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/ReleaseNotes.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/FlowComposerBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/factory/StringTextLineFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/compose/SimpleCompose.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/elements/FlowLeafElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/factory/TextLineFactoryBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/tlf.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/textLayout/textLayout_core/src/flashx/textLayout/factory/TextFlowTextLineFactory.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -31,7 +31,7 @@
 import flash.text.engine.TextElement;
 import flash.text.engine.TextLine;

-import flashx.textLayout.compose.ITextLineCreator;
+import flashx.textLayout.compose.ISWFContext;
 import flashx.textLayout.compose.TextLineRecycler;

 import mx.core.IEmbeddedFontRegistry;
@@ -877,8 +877,7 @@
 		var nextY:Number = 0;
 		var textLine:TextLine;

-        var textLineCreator:ITextLineCreator =
-        	ITextLineCreator(embeddedFontContext);
+        var swfContext:ISWFContext = ISWFContext(embeddedFontContext);

 		// For truncation, need to know if all lines have been composed.
         var createdAllLines:Boolean = false;
@@ -892,10 +891,11 @@
             var recycleLine:TextLine = TextLineRecycler.getLineForReuse();
             if (recycleLine)
             {
-                if (textLineCreator)
+                if (swfContext)
                 {
-                    nextTextLine = textLineCreator.recreateTextLine(
-                    	textBlock, recycleLine, textLine, maxLineWidth);
+                    nextTextLine = swfContext.callInContext(
+						textBlock["recreateTextLine"], textBlock,
+						[ recycleLine, textLine, maxLineWidth ]);
                 }
                 else
                 {
@@ -905,10 +905,11 @@
 		    }
 		    else
 		    {
-                if (textLineCreator)
+                if (swfContext)
                 {
-                    nextTextLine = textLineCreator.createTextLine(
-               			textBlock, textLine, maxLineWidth);
+                    nextTextLine = swfContext.callInContext(
+						textBlock.createTextLine, textBlock,
+						[ textLine, maxLineWidth ]);
                 }
                 else
                 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11846
Author:   smgilson@adobe.com
Date:     2009-11-16T17:19:05.812812Z

Log Message:
-----------
Move jpg for the shader ASDoc examples to the assets dir

Update ASDoc on Panel.as and GroupBase.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorDodgeShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/HueShaderExample.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SoftLightShaderExample.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ks5792.jpg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorBurnShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/assets/ks5792.jpg</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityMaskShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ExclusionShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SaturationShaderExample.mxml</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/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorShaderExample.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/Panel.as
+++ frameworks/projects/spark/src/spark/components/Panel.as
@@ -27,6 +27,8 @@

 /**
  *  The alpha of the border for this component.
+ *
+ *  @default 0.5
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -37,6 +39,8 @@

 /**
  *  The color of the border for this component.
+ *
+ *  @default 0
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -47,6 +51,8 @@

 /**
  *  Controls the visibility of the border for this component.
+ *
+ *  @default true
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -57,6 +63,8 @@

 /**
  *  The radius of the corners for this component.
+ *
+ *  @default 0
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -67,6 +75,8 @@

 /**
  *  Controls the visibility of the drop shadow for this component.
+ *
+ *  @default true
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -99,6 +109,13 @@
  *    controlBarLayout="HorizontalLayout"
  *    controlBarVisible="true"
  *    title=""
+ *
+ *   Styles
+ *    borderAlpha="0.5"
+ *    borderColor="0"
+ *    borderVisible="true"
+ *    cornerRadius="0"
+ *    dropShadowVisible="true"
  *   >
  *      ...
  *      child tags


Transferred from the Adobe Open Source Subversion Repository

Revision: 19192
Author:   aharui@adobe.com
Date:     2010-12-09T03:17:37.461555Z

Log Message:
-----------
Try to fix build.

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/ListEvent.as

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

--- frameworks/projects/spark/src/spark/events/ListEvent.as
+++ frameworks/projects/spark/src/spark/events/ListEvent.as
@@ -0,0 +1,286 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 spark.events
+{
+
+import flash.display.InteractiveObject;
+import flash.events.Event;
+import flash.events.MouseEvent;
+import spark.components.IItemRenderer;
+
+/**
+ *  ListEvents dispatched by ListBase components like ButtonBar and List
+ *  in response to MouseEvents are constructed with
+ *  the incoming mouse event's properties.   The list event's x,y location, i.e. the value of
+ *  its localX and localY properties, is defined relative to the entire component, not just the
+ *  part of the component that has been scrolled into view.   Similarly, the event's row and column
+ *  indices may correspond to a cell that has not been scrolled into view.
+ *
+ *  @param type Distinguishes the mouse gesture that caused this event to be dispatched.
+ *
+ *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+ *
+ *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+ *
+ *  @param localX The event's x coordinate relative to the ListBase component.
+ *
+ *  @param localY The event's y coordinate relative to ListBase component.
+ *
+ *  @param relatedObject The relatedObject property of the MouseEvent that triggered this ListEvent.
+ *
+ *  @param ctrlKey Whether the Control key is down.
+ *
+ *  @param altKey Whether the Alt key is down.
+ *
+ *  @param shiftKey Whether the Shift key is down.
+ *
+ *  @param buttonDown Whether the Control key is down.
+ *
+ *  @param delta Not used.
+ *
+ *  @param item The data provider item at rowIndex.
+ *
+ *  @param itemIndex The index of the item in the data provider.
+ *
+ *  @param itemRenderer The visible item renderer where the event occurred or null.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public class ListEvent extends MouseEvent
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The ListEvent.ITEM_ROLL_OUT constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemRollOut event, which indicates that the user rolled
+     *  the mouse pointer out of a visual item in the control.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
itemIndex	The data provider index of the item displayed
+     *        by the item renderer where the event occurred.

+     *
item	The data provider item for the item renderer.

+     *
itemRenderer	The The item renderer that displayed
+     *       this item.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
Type	ListEvent.ITEM_ROLL_OUT

+     *

+     *
+     *  @eventType itemRollOut
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const ITEM_ROLL_OUT:String = "itemRollOut";
+
+    /**
+     *  The ListEvent.ITEM_ROLL_OVER constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemRollOver event, which indicates that the user rolled
+     *  the mouse pointer over a visual item in the control.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
currentTarget	The Object that defines the
+     *       event listener that handles the event. For example, if you use
+     *       myButton.addEventListener() to register an event listener,
+     *       myButton is the value of the currentTarget.

+     *
itemIndex	The data provider index of the item displayed
+     *        by the item renderer where the event occurred.

+     *
item	The data provider item for the item renderer.

+     *
itemRenderer	The The item renderer that displayed
+     *       this item.

+     *
target	The Object that dispatched the event;
+     *       it is not always the Object listening for the event.
+     *       Use the currentTarget property to always access the
+     *       Object listening for the event.

+     *
Type	ListEvent.ITEM_ROLL_OVER

+     *

+     *
+     *  @eventType itemRollOver
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const ITEM_ROLL_OVER:String = "itemRollOver";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *  Normally called by the Flex control and not used in application code.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble
+     *  up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior
+     *  associated with the event can be prevented.
+     *
+     *  @param type Distinguishes the mouse gesture that caused this event to be dispatched.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+     *
+     *  @param localX The event's x coordinate relative to the List.
+     *
+     *  @param localY The event's y coordinate relative to the List.
+     *
+     *  @param relatedObject The relatedObject property of the
+     *  MouseEvent that triggered this ListEvent.
+     *
+     *  @param ctrlKey Whether the Control key is down.
+     *
+     *  @param altKey Whether the Alt key is down.
+     *
+     *  @param shiftKey Whether the Shift key is down.
+     *
+     *  @param buttonDown Whether the Control key is down.
+     *
+     *  @param delta Not used.
+     *
+     *  @param itemIndex The index of the item where the event occurred.
+     *
+     *  @param item The data provider item at itemIndex.
+     *
+     *  @param itemRenderer The visible item renderer where the event occurred.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public function ListEvent(type:String, bubbles:Boolean = false,
+                              cancelable:Boolean = false,
+                              localX:Number = NaN,
+                              localY:Number = NaN,
+                              relatedObject:InteractiveObject = null,
+                              ctrlKey:Boolean = false,
+                              altKey:Boolean = false,
+                              shiftKey:Boolean = false,
+                              buttonDown:Boolean = false,
+                              delta:int = 0,
+                              itemIndex:int = -1,
+                              item:Object = null,
+                              itemRenderer:IItemRenderer = null)
+    {
+        super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
+
+        this.itemIndex = itemIndex;
+        this.item = item;
+        this.itemRenderer = itemRenderer;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  item
+    //----------------------------------
+
+    /**
+     *  The data provider item the item renderer is displaying.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var item:Object;
+
+    //----------------------------------
+    //  itemRenderer
+    //----------------------------------
+
+    /**
+     *  The item renderer that is displaying the item.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var itemRenderer:IItemRenderer;
+
+    //----------------------------------
+    //  itemIndex
+    //----------------------------------
+
+    /**
+     *  The index of the data item the item renderer is displaying.
+     *  You can access the data provider item using this property.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public var itemIndex:int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    override public function clone():Event
+    {
+        var cloneEvent:ListEvent = new ListEvent(type, bubbles, cancelable,
+            localX, localY, relatedObject,
+            ctrlKey, altKey, shiftKey, buttonDown, delta,
+            itemIndex, item, itemRenderer);
+
+        cloneEvent.relatedObject = this.relatedObject;
+
+        return cloneEvent;
+    }
+}
+
+}


adjust swf9 textsprite height properly

adjust swf9 textsprite height properly

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@9064 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
@@ -32,7 +32,7 @@
         var font = null;
         public var lineheight = 11;

-        public var colorstring:String = "#000000";
+        public var textcolor = 0;
         public var text:String = "";

         public var resize:Boolean = true;
@@ -72,6 +72,7 @@
         }

         override public function setHeight( h:* ):void {
+            Debug.write('setHeight ', h);
             super.setHeight(h);
             if (h) {
                 this.textfield.height = h;
@@ -216,8 +217,8 @@
          * @param Number c: The color for the text -- from 0x0 (black) to 0xFFFFFF (white)
          */
         public override function setColor ( col:* ):void {
-            if (col) {
-                this.colorstring = "#" + col.toString( 16 );
+            if (col != null) {
+                this.textcolor = col;
                 this.__setFormat();
                 this.setText( this.text );
             }
@@ -267,9 +268,8 @@

             //multiline resizable fields adjust their height
             if (this.sizeToHeight) {
-                this.setHeight(this.textfield.height);
-            }
-
+                this.setHeight(this.textfield.textHeight);
+            }
             //this.textfield.cacheAsBitmap = true;
         }

@@ -292,7 +292,7 @@
             var tf:TextFormat = new TextFormat();
             tf.size = this.fontsize;
             tf.font = (this.font == null ? cfontname : this.font.name);
-            tf.color = this.colorstring;
+            tf.color = this.textcolor;

             // If there is no font found, assume a device font
             if (this.font == null) {


fix missing 'mask' argument when calling Context3D.clear() in Context3DResource.clear()

--- src/aerys/minko/render/resource/Context3DResource.as
+++ src/aerys/minko/render/resource/Context3DResource.as
@@ -68,7 +68,7 @@
 							  stencil	: uint		= 0,
 							  mask		: uint		= 0xffffffff) : void
 		{
-			_context.clear(red, green, blue, alpha, depth, stencil);
+			_context.clear(red, green, blue, alpha, depth, stencil, mask);
 		}

 		public function configureBackBuffer(width					: int,


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

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

 package mx.collections
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17367
Author:   rfrishbe@adobe.com
Date:     2010-08-18T21:09:37.608320Z

Log Message:
-----------
Forgot one file from my last checkin, GestureCaptureReason.

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

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/GestureCaptureReason.as

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

--- frameworks/projects/framework/src/mx/events/TouchInteractionReason.as
+++ frameworks/projects/framework/src/mx/events/TouchInteractionReason.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+/**
+ *  The GestureCaptureReason class defines the constant values
+ *  for the reason property of the GestureCaptureEvent class.
+ *
+ *  @see mx.events.GestureCaptureEvent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public final class GestureCaptureReason
+{
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Indicates that the value of the property changed.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const SCROLL:String = "scroll";
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 88
Author:   open-source-svn-admin@adobe.com
Date:     2008-01-03T22:47:56.499469Z

Log Message:
-----------
Perforce Change 191925 by proberts@proberts-laptop-flex on 2008/01/03 16:47:12 Severity: ignore Details: doc additions/clean up for FlexNativeMenu. Also FLEXDOCS-320 (update documentation for FlexNativeMenuEvent.MENU_SHOW to explain that the index, label, and item properties are null) Affected files ...

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/in/air/air_version.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/NoChannelAvailableError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/DirectHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidChannelError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXContext.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXHeader.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/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/InvalidDestinationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/amfx/AMFXEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/AbstractMessageStore.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as
+++ frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as
@@ -1,3 +1,14 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.messaging
 {

@@ -243,4 +254,4 @@

 }

-}+}


New seek decoder reset logic.

New seek decoder reset logic.

Some log activity cleanup.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -446,7 +446,6 @@
 		{
 			// We will drive this by our own methods (updateBufferTime).
 			return;
-
 		}

 		public function get absoluteTime():Number
@@ -1917,7 +1916,7 @@
 			if(indexHandler && indexHandler.isLiveEdgeValid)
 			{
 				var liveEdgeValue:Number = indexHandler.liveEdge;
-				trace("Seeing live edge of " + liveEdgeValue);
+				//trace("Seeing live edge of " + liveEdgeValue);
 				if(_seekTarget > liveEdgeValue || _enhancedSeekTarget > liveEdgeValue)
 				{
 					CONFIG::LOGGING
@@ -1998,7 +1997,7 @@
 						return false;
 					}
 				}
-			}
+			}

 			if (!isNaN(_enhancedSeekTarget))
 			{
@@ -2016,14 +2015,17 @@
 					if (tag is FLVTagVideo)
 					{
 						if (_flvParserIsSegmentStart)
-						{
+						{
+							// Generate client side seek tag.
 							var _muteTag:FLVTagVideo = new FLVTagVideo();
 							_muteTag.timestamp = tag.timestamp; // may get overwritten, ok
 							_muteTag.codecID = FLVTagVideo(tag).codecID; // same as in use
 							_muteTag.frameType = FLVTagVideo.FRAME_TYPE_INFO;
 							_muteTag.infoPacketValue = FLVTagVideo.INFO_PACKET_SEEK_START;
+
 							// and start saving, with this as the first...
 							_enhancedSeekTags.push(_muteTag);
+
 							_flvParserIsSegmentStart = false;

 						}
@@ -2041,21 +2043,28 @@
 				else
 				{
 					// We've reached the tag whose timestamp is greater
-					// than _enhancedSeekTarget.
-
+					// than _enhancedSeekTarget, so we can stop seeking.
 					_enhancedSeekTarget = NaN;
+
+					// Update _seekTime even though it's not used.
 					if (_seekTime < 0)
-					{
 						_seekTime = currentTime;
-					}

 					if(isNaN(_initialTime))
-					{
 						_initialTime = currentTime;
-					}
-
+
+					// Process any client side seek tags.
 					if (_enhancedSeekTags != null && _enhancedSeekTags.length > 0)
 					{
+						// We do this dance to get the NetStream into a clean state. If we don't
+						// do this, then we can get failed resume in some scenarios - ie, audio
+						// but no picture.
+						super.close();
+						super.play(null);
+						appendBytesAction(NetStreamAppendBytesAction.RESET_SEEK);
+
+						_initialTime = NaN;
+
 						var codecID:int;
 						var haveSeenVideoTag:Boolean = false;

@@ -2071,11 +2080,10 @@
 								if (vTagVideo.codecID == FLVTagVideo.CODEC_ID_AVC && vTagVideo.avcPacketType == FLVTagVideo.AVC_PACKET_TYPE_NALU)
 								{
 									// for H.264 we need to move the timestamp forward but the composition time offset backwards to compensate
-									var adjustment:int = tag.timestamp - vTagVideo.timestamp; // how far we are adjusting
+									var adjustment:int = tag.timestamp - vTagVideo.timestamp; // how far we are adjusting - no need to unwrap since it's a delta
 									var compTime:int = vTagVideo.avcCompositionTimeOffset;
 									compTime -= adjustment; // do the adjustment
-									compTime = Math.max(-100, compTime); // Cap maximum offset to avoid certain situations breaking the decoder.
-									vTagVideo.avcCompositionTimeOffset = 0; //compTime;	// save adjustment
+									vTagVideo.avcCompositionTimeOffset = compTime;	// save adjustment
 								}

 								codecID = vTagVideo.codecID;
@@ -2093,8 +2101,10 @@
 							appendBytes(bytes);
 						}

+						// Emit end of client seek tag if we started client seek.
 						if (haveSeenVideoTag)
 						{
+							trace("Writing end-of-seek tag");
 							var _unmuteTag:FLVTagVideo = new FLVTagVideo();
 							_unmuteTag.timestamp = tag.timestamp;  // may get overwritten, ok
 							_unmuteTag.codecID = codecID;
@@ -2116,13 +2126,20 @@

 						// We are safe to consume the script data tags now.
 						doConsumeAllScriptDataTags(tag.timestamp);
-						needPendingSort = true;
+
 					}

 					// and append this one
 					bytes = new ByteArray();
 					tag.write(bytes);
 					_flvParserProcessed += bytes.length;
+
+					if (isNaN(_initialTime))
+					{
+						trace("Setting new _initialTime of " + currentTime);
+						_initialTime = currentTime;
+					}
+
 					//logger.debug("[1] APPEND BYTES tag.timestamp=" + tag.timestamp + " length=" + bytes.length);
 					attemptAppendBytes(bytes);

@@ -2294,12 +2311,12 @@
 			var leadTime:Number = pendingTags[curTagOffset].timestamp;
 			for(var i:int=curTagOffset; i<pendingTags.length; i++)
 			{
+				// Scan forward through the tags with identical timestamp at start of the
+				// queue, and note the first we encounter of each type.
+
 				// If we stop seeing equal times, stop.
 				if(pendingTags[i].timestamp != leadTime)
 					break;
-
-				// Scan forward through the tags with identical timestamp at start of the
-				// queue, and note the first we encounter of each type.

 				// Classify it by priority.
 				var pendingTag:FLVTag = pendingTags[i];
@@ -2373,7 +2390,12 @@
 		{
 			// Check the actual amount of content present.
 			if(super.bufferLength >= bufferFeedMin)
+			{
 				return;
+			}
+
+			// Sort as needed.
+			ensurePendingSorted();

 			// We want to keep the actual required buffer short so we don't stall with
 			// tags still pending.
@@ -2393,14 +2415,6 @@
 				var buffer:ByteArray = new ByteArray();
 				buffer.length = expectedSize;
 				tag.write(buffer);
-
-
-				// Don't trigger seek logic from script tags.
-				if(tag.tagType == FLVTag.TAG_TYPE_SCRIPTDATAOBJECT && false)
-				{
-					tag.timestamp = lastWrittenTime * 1000.0;
-					continue;
-				}

 				// Look for malformed tags.
 				if(expectedSize != buffer.length)
@@ -2573,7 +2587,7 @@
 				{
 					CONFIG::LOGGING
 					{
-						logger.warn("Skipping audio due to too low time (" + realTimestamp + " < " + getHighestAudioTime() + ".");
+						logger.warn("Skipping audio due to too low time (" + realTimestamp + " < " + highestAudioTime + ")");
 					}
 					return true;
 				}
@@ -2671,7 +2685,7 @@
 					// this frame as normal.
 					for(var i:int=pendingTags.length-1; i>=0 && pendingTags.length > 0; i--)
 					{
-						// Extra sanity.
+						// Extra sanity since we are mutating the list.
 						if(i > pendingTags.length - 1)
 							i = pendingTags.length - 1;


Remove extra operations from ShaderPart.pack() and unpack()

--- src/aerys/minko/render/shader/part/ShaderPart.as
+++ src/aerys/minko/render/shader/part/ShaderPart.as
@@ -379,8 +379,6 @@
 			if (getNode(scalar).size != 1)
 				throw new ArgumentError('Argument of size 1 expected. ' + scalar + ' received');

-			scalar = subtract(saturate(scalar), 0.0001);
-
 			var bitSh	: SFloat = float4(256. * 256. * 256., 256. * 256, 256., 1.);
 			var bitMsk	: SFloat = float4(0., 1. / 256., 1. / 256., 1. / 256.);
 			var comp	: SFloat = fractional(multiply(scalar, bitSh));
@@ -399,7 +397,7 @@
 		{
 			var bitSh : SFloat = float4(1. / (256. * 256. * 256.), 1. / (256. * 256.), 1. / 256., 1.);

-			return saturate(add(0.0001, dotProduct4(packedScalar, bitSh)));
+			return dotProduct4(packedScalar, bitSh);
 		}

 		protected final function rgba(color : uint) : SFloat


Q: why isn't whirled done yet?
A: shit like this.

30 minutes of tweaking and trying things to get it to ACTUALLY snapshot at
specified size. The damn video control always says that videoWidth and
videoHeight are 0, but if you size the Camera correctly and attach the video
it works. Turns out that the video control, when snapshotted into a
bitmapdata, always thinks it's 160x120, but if we scale it up we can see
the pixel data that's really there. What the fuck?!
Oh well, it works now, but why does adobe make these things so difficult?
The only reason I got it working was trial and error and cargo-culting off
the example in Camera's API docs. Jeez.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@465 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/CameraSnapshotter.as
+++ src/as/com/threerings/flash/CameraSnapshotter.as
@@ -6,6 +6,8 @@
 import flash.display.Bitmap;
 import flash.display.BitmapData;
 import flash.display.Sprite;
+
+import flash.geom.Matrix;

 import flash.media.Camera;
 import flash.media.Video;
@@ -79,10 +81,7 @@
             return;
         }

-        _video = new Video(_camera.width, _camera.height);
-        _bitmap = new Bitmap(new BitmapData(_camera.width, _camera.height, false));
-        _video.attachCamera(_camera);
-        addChild(_video);
+        attachVideo();
     }

     public function getCameraName () :String
@@ -96,9 +95,10 @@
      */
     public function setMode (width :int, height :int, fps :Number, favorArea :Boolean = true) :void
     {
+        clearSnapshot();
+        removeChild(_video);
         _camera.setMode(width, height, fps, favorArea);
-        _video.width = _camera.width;
-        _video.height = _camera.height;
+        attachVideo();
     }

     public function takeSnapshot () :void
@@ -107,7 +107,11 @@
             return; // throw exception?
         }

-        _bitmap.bitmapData.draw(_video);
+        // for some reason the video seems to always be locked at 160x120 when we try to
+        // draw it, so we do some scaling...
+        var matrix :Matrix = new Matrix(_camera.width / 160, 0, 0, _camera.height / 120);
+        _bitmap.bitmapData.draw(_video, matrix);
+
         if (_video.parent != null) {
             removeChild(_video);
             addChild(_bitmap);
@@ -133,6 +137,17 @@
         return _bitmap.bitmapData;
     }

+    protected function attachVideo () :void
+    {
+        _video = new Video(_camera.width, _camera.height);
+        // the constructor args don't seem to do dick, so we set the values again...
+        _video.width = _camera.width;
+        _video.height = _camera.height;
+        _video.attachCamera(_camera);
+        addChild(_video);
+        _bitmap = new Bitmap(new BitmapData(_camera.width, _camera.height, false));
+    }
+
     protected var _camera :Camera;

     protected var _video :Video;


Added a function getNewInstance which instantiates and returns an
instance of a class given the qualified name.

Change-Id: Ic135964dd8d445fd94ab1be4f6e8c02ab5f89b5c

--- WeaveCore/src/weave/core/ClassUtils.as
+++ WeaveCore/src/weave/core/ClassUtils.as
@@ -25,6 +25,8 @@
 	import flash.utils.describeType;

 	import mx.controls.SWFLoader;
+	import mx.core.ClassFactory;
+	import mx.core.mx_internal;

 	/**
 	 * ClassUtils
@@ -177,7 +179,18 @@

 			return true; // successfully cached
 		}
-
+
+		/**
+		 * Returns a new instance of a class.
+		 *
+		 * @param classQName The qualified name of the class.
+		 * @return A new instance of the class.
+		 */
+		public static function getNewInstance(classQName:String):Object
+		{
+			var classDef:Class = getClassDefinition(classQName);
+			return new classDef();
+		}
 		/*
 		private function typeEquals(o:*, cls:Class):Boolean
 		{


Added file saving

Added file saving

--- src/flash/ZeroClipboard.as
+++ src/flash/ZeroClipboard.as
@@ -197,6 +197,7 @@
      */
     private function onClick(event:MouseEvent): void {
       var clipData:Object;  // NOPMD
+      var fileData:ByteArray;
       var clipInjectSuccess:Object = {};  // NOPMD

       // Allow for any "UI preparation" work before the "copy" event begins
@@ -204,9 +205,18 @@

       // Request pending clipboard data from the page
       clipData = this.emit("copy");
-
-      // Inject all pending data into the user's clipboard
-      clipInjectSuccess = this.clipboard.inject(clipData);
+
+      if (clipData.filename) {
+        if (clipData.b64) {
+          fileData = b64ToBytes(fileData);
+        } else {
+          fileData = strToBytes(fileData);
+        }
+        clipInjectSuccess = saveFile(clipData.filename, fileData);
+      } else {
+        // Inject all pending data into the user's clipboard
+        clipInjectSuccess = this.clipboard.inject(clipData);
+      }

       // Compose and serialize a results object, send it back to the page
       this.emit(
@@ -217,7 +227,14 @@
         }
       );
     }
-
+
+    private function saveFile(fileName:String, fileData:ByteArray) {
+      var results:Object = {};  // NOPMD
+			var fileRef:FileReference = new FileReference();
+      results.file = true;
+      fileRef.save( fileData, fileName);
+      return results;
+    }

     /**
      * Emit events to JavaScript.
@@ -296,4 +313,44 @@
       return button;
     }
   }
+
+	private static function strToBytes( str:String ):ByteArray {
+		var utf8:ByteArray = new ByteArray();
+
+    utf8.writeByte( 0xEF );
+    utf8.writeByte( 0xBB );
+    utf8.writeByte( 0xBF );
+		utf8.writeUTFBytes( str );
+
+		utf8.position = 0;
+		return utf8;
+	}
+
+  private static const BASE64_CHARS:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+
+  private static function b64ToBytes(data:String):ByteArray {
+		var output:ByteArray = new ByteArray();
+		var dataBuffer:Array = new Array(4);
+		var outputBuffer:Array = new Array(3);
+
+		for (var i:uint = 0; i < data.length; i += 4) {
+			for (var j:uint = 0; j < 4 && i + j < data.length; j++) {
+				dataBuffer[j] = BASE64_CHARS.indexOf(data.charAt(i + j));
+			}
+
+    			// Decode data buffer back into bytes
+			outputBuffer[0] = (dataBuffer[0] << 2) + ((dataBuffer[1] & 0x30) >> 4);
+			outputBuffer[1] = ((dataBuffer[1] & 0x0f) << 4) + ((dataBuffer[2] & 0x3c) >> 2);
+			outputBuffer[2] = ((dataBuffer[2] & 0x03) << 6) + dataBuffer[3];
+
+			// Add all non-padded bytes in output buffer to decoded data
+			for (var k:uint = 0; k < outputBuffer.length; k++) {
+				if (dataBuffer[k+1] == 64) break;
+				output.writeByte(outputBuffer[k]);
+			}
+		}
+
+		output.position = 0;
+		return output;
+  }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 3399
Author:   jimurphy@adobe.com
Date:     2008-09-29T15:51:24.666752Z

Log Message:
-----------
Merged 3.0.x revisions 3361,3364-3365,3367,3370,3381 -> trunk

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/ResultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/SortField.as</path>

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 20411
Author:   dloverin@adobe.com
Date:     2011-02-22T22:36:07.200422Z

Log Message:
-----------
FocusManager TAB handling fix.

The problem is the browserFocusComponent is not reset to null in keyFocusChangeHandler() if the event is cancelled. This leaves the value available to impact the next TAB key. The fix is to initialize browserFocusComponent to null keyFocusChangeHandler() and also in keyDownHandler() in case the keyFocusChange event is stopped.

QE notes: None.
Doc notes: None.
Bugs: SDK-29587
Reviewer: Alex
Tests run: cyclone
Is noteworthy for integration: No.

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/FocusManager.as

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

--- frameworks/projects/framework/src/mx/managers/FocusManager.as
+++ frameworks/projects/framework/src/mx/managers/FocusManager.as
@@ -1613,6 +1613,22 @@
         return Object(form).toString() + ".focusManager";
     }

+    /**
+     *  @private
+     *
+     *  Clear the browser focus component and undo any tab index we may have set.
+     */
+    private function clearBrowserFocusComponent():void
+    {
+        if (browserFocusComponent)
+        {
+            if (browserFocusComponent.tabIndex == LARGE_TAB_INDEX)
+                browserFocusComponent.tabIndex = -1;
+
+            browserFocusComponent = null;
+        }
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers
@@ -1941,6 +1957,10 @@
         showFocusIndicator = true;
 		focusChanged = false;

+        var haveBrowserFocusComponent:Boolean = (browserFocusComponent != null);
+        if (browserFocusComponent)
+            clearBrowserFocusComponent();
+
         // see if we got here from a tab.  We also need to check for
         // keyCode == 0 because in IE sometimes the first time you tab
         // in to the flash player, you get keyCode == 0 instead of TAB.
@@ -1948,13 +1968,8 @@
         if ((event.keyCode == Keyboard.TAB || (browserMode && event.keyCode == 0))
                 && !event.isDefaultPrevented())
         {
-            if (browserFocusComponent)
-            {
-                if (browserFocusComponent.tabIndex == LARGE_TAB_INDEX)
-                    browserFocusComponent.tabIndex = -1;
-
-                browserFocusComponent = null;
-
+            if (haveBrowserFocusComponent)
+            {
                 if (hasEventListener("browserFocusComponent"))
 	    			dispatchEvent(new FocusEvent("browserFocusComponent", false, false, InteractiveObject(event.target)));

@@ -2004,6 +2019,9 @@

         if (browserMode)
         {
+            if (browserFocusComponent)
+                clearBrowserFocusComponent();
+
             if (event.keyCode == Keyboard.TAB && focusableCandidates.length > 0)
             {
                 // get the object that has the focus


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

--- frameworks/projects/framework/src/mx/printing/FlexPrintJob.as
+++ frameworks/projects/framework/src/mx/printing/FlexPrintJob.as
@@ -37,6 +37,11 @@
  *  @includeExample examples/FormPrintView.mxml -noswf
  *  @includeExample examples/PrintDataGridExample.mxml
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class FlexPrintJob
 {
@@ -50,6 +55,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function FlexPrintJob()
     {
@@ -87,6 +97,11 @@
      *  The height  of the printable area on the printer page;
      *  it does not include any user-set margins.
      *  It is set after start() method returns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get pageHeight():Number
     {
@@ -107,6 +122,11 @@
      *  The width of the printable area on the printer page;
      *  it does not include any user-set margins.
      *  This property is set after start() method returns.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get pageWidth():Number
     {
@@ -134,6 +154,11 @@
      *  false.
      *
      *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get printAsBitmap():Boolean
     {
@@ -163,6 +188,11 @@
      *  @return true if the user clicks OK
      *  when the print dialog box appears, or false if the user
      *  clicks Cancel or if an error occurs.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function start():Boolean
     {
@@ -194,6 +224,11 @@
      *  object fits on one or more printed pages.
      *  Must be one of the constant values defined in the FlexPrintJobScaleType
      *  class.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function addObject(obj:IUIComponent,
                               scaleType:String = "matchWidth"):void
@@ -464,6 +499,11 @@
      *  Sends the added objects to the printer to start printing.
      *  Call this method after you have used the addObject()
      *  method to add the print pages.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function send():void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8336
Author:   jszeto@adobe.com
Date:     2009-06-26T21:16:13.987948Z

Log Message:
-----------
Halo Spark Skinning Fix

http://bugs.adobe.com/jira/browse/SDK-19599 - symbolColor does not work on some of our Halo components.

These skins were using .png for their arrow buttons and icons. I created SparkSkin versions of each of these .pngs.

These changes affect the following components:

DateChooser
-	Month and year arrows

ColorPicker
-	Down arrow

Menu
-	Branch icon
-	Check icon
-	Radio icon

QE Notes: None
Doc Notes: None
Bugs: SDK-19599
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrow.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadio.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmall.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeftDown.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DataGridSortArrow.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmallDown.png</path>
<path kind="file" action="A">/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="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeft.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ColorPickerArrow.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridSortArrow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmall.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserNextYearSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/assets/MenuArrow.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuArrowDisabled.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRightDown.png</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/MenuRadioDisabled.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmallOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRight.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/DateChooserPrevMonthSkin.mxml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowLeftOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowUpSmallOver.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/assets/MenuArrow_disabled.png</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/SparkSkinsClasses.as</path>
<path kind="file" action="A">/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/framework/defaults.css</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/ArrowDownSmallDown.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/assets/DateChooserArrowRightOver.png</path>

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 16483
Author:   preilly@adobe.com
Date:     2010-06-07T20:10:21.068761Z

Log Message:
-----------
* Fixed some legitimate errors, which were previously unreported by
  the compiler.  After revision 16213 is unreverted, errors like these
  will be reported.

QE notes:
Doc notes:
Bugs: N/A
Reviewer: rdermer
Tests run: checkintests, full clean of framework projects from FB
Is noteworthy for integration: NO

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/container/TextContainerManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/container/ContainerController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -1149,7 +1149,7 @@
         {
             // make sure we set it back on systemManager b/c it may have been overridden by now
             if (systemManager is InteractiveObject)
-                InteractiveObject(systemManager).contextMenu = contextMenu;
+                InteractiveObject(systemManager).contextMenu = contextMenu as ContextMenu;
             return;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8466
Author:   srahim@adobe.com
Date:     2009-07-08T22:16:20.752266Z

Log Message:
-----------
Added @includeexample tags to include ASDoc examples for RadioButton, RadioButtonGroup

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/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as</path>

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

--- frameworks/projects/spark/src/spark/components/RadioButton.as
+++ frameworks/projects/spark/src/spark/components/RadioButton.as
@@ -107,6 +107,7 @@
  *  @see spark.components.RadioButtonGroup
  *  @see spark.components.RadioButtonGroup
  *  @see spark.skins.spark.RadioButtonSkin
+ *  @includeExample examples/RadioButtonExample.mxml
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


Added hook for getAuthenticatedUser to update activeConnectionName and authentication state.

--- WeaveJS/src/weavejs/net/Admin.as
+++ WeaveJS/src/weavejs/net/Admin.as
@@ -342,6 +342,16 @@
 					entityCache.invalidate(parentId);
 				}
 			);
+
+			service.addHook(
+				service.getAuthenticatedUser,
+				null,
+				function(result:*, _:*):void
+				{
+					activeConnectionName = result as String;
+					userHasAuthenticated = true;
+				}
+			);

 			service.checkDatabaseConfigExists();
 		}


fixed bug reading dateFormat metadata

fixed bug reading dateFormat metadata

--- WeaveData/src/weave/data/AttributeColumns/DateColumn.as
+++ WeaveData/src/weave/data/AttributeColumns/DateColumn.as
@@ -65,7 +65,7 @@
 			if (propertyName == ColumnMetadata.DATA_TYPE)
 				return DataType.DATE;
 			if (propertyName == ColumnMetadata.DATE_FORMAT)
-				return _dateFormat;
+				return _dateFormat || super.getMetadata(propertyName);
 			return super.getMetadata(propertyName);
 		}


update default augbubble icon

update default augbubble icon

--- flexEditor/src/org/arisgames/editor/util/AppConstants.as
+++ flexEditor/src/org/arisgames/editor/util/AppConstants.as
@@ -139,7 +139,7 @@
     public static const DEFAULT_ICON_MEDIA_ID_ITEM:Number = 2;
     public static const DEFAULT_ICON_MEDIA_ID_PLAQUE:Number = 3;
 	public static const DEFAULT_ICON_MEDIA_ID_WEBPAGE:Number = 4;
-	public static const DEFAULT_ICON_MEDIA_ID_AUGBUBBLE:Number = 2;
+	public static const DEFAULT_ICON_MEDIA_ID_AUGBUBBLE:Number = 5;

 	// Palette Tree Stuff
 	public static const PALETTE_TREE_SELF_FOLDER_ID:Number = 0;