Transferred from the Adobe Open Source Subversion Repository

Revision: 9577
Author:   clucier@adobe.com
Date:     2009-08-25T17:05:48.329759Z

Log Message:
-----------
Application now uses % width/height of its owning SystemManager when considering percentWidth/Height.

QE notes: None
Doc notes:  None
Bugs: SDK-20556
Reviewer: Alex, Darrell
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/components/Application.as
+++ frameworks/projects/spark/src/spark/components/Application.as
@@ -1061,7 +1061,7 @@
         // the application will not resize.
         // If developer has specified percent width/height,
         // application will resize to the required value
-        // based on the current stage width/height.
+        // based on the current SystemManager's width/height.
         // If developer has specified min/max values,
         // then application will not resize beyond those values.

@@ -1078,7 +1078,7 @@
             {
                 super.percentWidth = Math.max(percentWidth, 0);
                 super.percentWidth = Math.min(percentWidth, 100);
-                w = percentWidth*screen.width/100;
+                w = percentWidth*DisplayObject(systemManager).width/100;
             }

             if (!isNaN(explicitMaxWidth))
@@ -1102,7 +1102,7 @@
             {
                 super.percentHeight = Math.max(percentHeight, 0);
                 super.percentHeight = Math.min(percentHeight, 100);
-                h = percentHeight*screen.height/100;
+                h = percentHeight*DisplayObject(systemManager).height/100;
             }

             if (!isNaN(explicitMaxHeight))


Transferred from the Adobe Open Source Subversion Repository

Revision: 5173
Author:   cframpto@adobe.com
Date:     2009-03-05T16:35:06.161722Z

Log Message:
-----------
When a radio button is added or remove from a radio button group also invalidate the radio button skin since the radio button can become enabled or disabled as a result of it's radio button group membership.

QE Notes: tests: gumbo/RadioButton and checkintests passed
Doc Notes:
Bugs: SDK-19712
Reviewers: Darrell

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

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

--- frameworks/projects/spark/src/spark/components/RadioButton.as
+++ frameworks/projects/spark/src/spark/components/RadioButton.as
@@ -425,18 +425,9 @@
      *  radio button group was enabled/disabled.  All of these events can impact
      *  the skin state.
      */
-    mx_internal function invalidateRadioButtonState(always:Boolean = false):void
+    mx_internal function invalidateSkinState():void
     {
-        // Either always do the invalidate or check if the state of the button
-        // combined with the group state is different.  If different,
-        // invalidate the button which will cause the skin to be changed by
-        // FxComponent.commitProperties() which uses skinStateIsDirty, enabled
-        // and selected to determine if the skin should be changed.
-        if (always || super.enabled != enabled)
-        {
-            invalidateProperties();
-            invalidateSkinState();
-        }
+        invalidateSkinState();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 6443
Author:   rfrishbe@adobe.com
Date:     2009-04-30T22:46:07.257552Z

Log Message:
-----------
Renaming SkinnableComponent's loadSkin() and unloadSkin() skinning lifecycle methods to createSkin() and destroySkin() as no loading actually occurs here.

Also fixing up a few ASDoc bugs in the videoplayer stuff.  Also, checking in modifications to TrackBase, which was a file I missed yesterday when checking in.  The changes add 3 new events to TrackBase and clean it up so the setters don't do any extra work if it's being set to the same value as it was before.

QE Notes: -
Doc Notes: -
Bugs: SDK-19779
Reviewer: Jason
tests: checkintests, mustella SkinnableComponent tests

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/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBarMuteButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayerVolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/VideoPlayer.as
+++ frameworks/projects/spark/src/spark/components/VideoPlayer.as
@@ -31,6 +31,7 @@
 import spark.components.supportClasses.ButtonBase;
 import spark.components.supportClasses.Range;
 import spark.components.supportClasses.SkinnableComponent;
+import spark.components.supportClasses.ToggleButtonBase;
 import spark.events.TrackBaseEvent;
 import spark.events.VideoEvent;
 import spark.primitives.VideoElement;
@@ -140,16 +141,6 @@
 //--------------------------------------

 /**
- *  Buffering State of the VideoPlayer
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("buffering")]
-
-/**
  *  Connection Error State of the VideoPlayer
  *
  *  @langversion 3.0
@@ -180,14 +171,70 @@
 [SkinState("disconnected")]

 /**
- *  FullScreen State of the VideoPlayer
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("fullScreen")]
+ *  Connection Error State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenConnectionError")]
+
+/**
+ *  Disabled State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenDisabled")]
+
+/**
+ *  Disconnected State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenDisconnected")]
+
+/**
+ *  Loading State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenLoading")]
+
+/**
+ *  Playing State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenPlaying")]
+
+/**
+ *  Stopped State of the VideoPlayer when
+ *  in full screen mode.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("fullScreenStopped")]

 /**
  *  Loading State of the VideoPlayer
@@ -200,16 +247,6 @@
 [SkinState("loading")]

 /**
- *  Pause State of the VideoPlayer
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("paused")]
-
-/**
  *  Playing State of the VideoPlayer
  *
  *  @langversion 3.0
@@ -218,16 +255,6 @@
  *  @productversion Flex 4
  */
 [SkinState("playing")]
-
-/**
- *  Seeking State of the VideoPlayer
- *
- *  @langversion 3.0
- *  @playerversion Flash 10
- *  @playerversion AIR 1.5
- *  @productversion Flex 4
- */
-[SkinState("seeking")]

 /**
  *  Stopped State of the VideoPlayer
@@ -308,9 +335,9 @@
      *  Constructor.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function VideoPlayer()
     {
@@ -372,7 +399,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var muteButton:ToggleButton;
+    public var muteButton:ToggleButtonBase;

     [SkinPart(required="false")]

@@ -411,7 +438,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var playPauseButton:ToggleButton;
+    public var playPauseButton:ToggleButtonBase;

     [SkinPart(required="false")]

@@ -424,7 +451,7 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public var scrubBar:Range;
+    public var scrubBar:VideoPlayerScrubBar;

     [SkinPart(required="false")]


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11472
Author:   mhorn@adobe.com
Date:     2009-11-05T19:21:49.242148Z

Log Message:
-----------
ASDoc edits for l10n bug fixes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Image.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>

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

--- frameworks/projects/framework/src/mx/core/IToggleButton.as
+++ frameworks/projects/framework/src/mx/core/IToggleButton.as
@@ -14,9 +14,9 @@

 /**
  *  The IToggleButton interface is a marker interface that indicates that a
- *  component acts as a toggleable button.  It is used primarily as a filter
- *  by the framework's default button logic.  This interface is *only* used
- *  by legacy Halo components.
+ *  component acts as a toggleable button. It is used primarily as a filter
+ *  by the framework's default button logic. This interface is only used
+ *  by legacy MX components.
  *
  *  @langversion 3.0
  *  @playerversion Flash 9


Transferred from the Adobe Open Source Subversion Repository

Revision: 19111
Author:   hmuller@adobe.com
Date:     2010-12-07T20:43:25.708042Z

Log Message:
-----------
Removed the IGridItemRendererOwner interface since it wasn't used.

Added or @privatized missing ASDoc in: DataGridSkin, DefaultGridHeaderRenderer, DefaultGridItemRenderer (TextFieldGridItemRendererInclude.as), UITexFieldGridItemRenderer (TextFieldGridItemRendererInclude.as), GridColumnHeaderGroup

QE notes:
Doc notes:
Bugs: SDK-28575, SDK-28574
Reviewer:
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/IGridItemRendererOwner.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -47,7 +47,6 @@
 import spark.components.gridClasses.IDataGridElement;
 import spark.components.gridClasses.IGridItemEditor;
 import spark.components.gridClasses.IGridItemRenderer;
-import spark.components.gridClasses.IGridItemRendererOwner;
 import spark.components.supportClasses.SkinnableContainerBase;
 import spark.core.NavigationUnit;
 import spark.events.GridCaretEvent;
@@ -531,9 +530,8 @@
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
-public class DataGrid extends SkinnableContainerBase implements IFocusManagerComponent,
-                                                                IGridItemRendererOwner,
-                                                                IIMESupport
+public class DataGrid extends SkinnableContainerBase
+    implements IFocusManagerComponent, IIMESupport
 {
     include "../core/Version.as";

@@ -3227,27 +3225,6 @@
     {
         grid.caretRowIndex = newCaretRowIndex;
         grid.caretColumnIndex = newCaretColumnIndex;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  IGridItemRendererOwner Methods
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    public function prepareItemRenderer(renderer:IGridItemRenderer, willBeRecycled:Boolean):void
-    {
-        renderer.owner = this;
-    }
-
-    /**
-     *  @private
-     */
-    public function discardItemRenderer(renderer:IGridItemRenderer, hasBeenRecycled:Boolean):void
-    {
     }

     //--------------------------------------------------------------------------


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

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

 package spark.filters
 {


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

--- frameworks/projects/advancedgrids/src/mx/olap/CubeNodeBuilder.as
+++ frameworks/projects/advancedgrids/src/mx/olap/CubeNodeBuilder.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.olap


Return null if get() is called before we have our game data, rather than NPE.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@207 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/EZGameControl.as
+++ src/as/com/threerings/ezgame/EZGameControl.as
@@ -165,6 +165,10 @@
      */
     public function get (propName :String, index :int = -1) :Object
     {
+        if (_gameData == null) {
+            return null;
+        }
+
         var value :Object = _gameData[propName];
         if (index >= 0) {
             if (value is Array) {


Fix from develop branch, rev 1445779.  FLEX-33384. When RET is in the inactive state there should not be a cursor showing. Any selection will still show if selectionHighlighting='always'.

git-svn-id: 00b6dcb2dede7a80dae14104af09e1bf5a758690@1446760 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -30,6 +30,14 @@
 import flash.ui.ContextMenu;
 import flash.ui.Keyboard;

+import mx.core.mx_internal;
+import mx.events.SandboxMouseEvent;
+import mx.styles.IStyleClient;
+
+import spark.components.RichEditableText;
+import spark.components.TextSelectionHighlighting;
+
+import flashx.textLayout.tlf_internal;
 import flashx.textLayout.container.ContainerController;
 import flashx.textLayout.container.TextContainerManager;
 import flashx.textLayout.edit.EditManager;
@@ -52,16 +60,8 @@
 import flashx.textLayout.operations.ApplyFormatOperation;
 import flashx.textLayout.operations.InsertTextOperation;
 import flashx.textLayout.property.Property;
-import flashx.textLayout.tlf_internal;
 import flashx.undo.IUndoManager;
 import flashx.undo.UndoManager;
-
-import mx.core.mx_internal;
-import mx.events.SandboxMouseEvent;
-import mx.styles.IStyleClient;
-
-import spark.components.RichEditableText;
-import spark.components.TextSelectionHighlighting;

 use namespace mx_internal;
 use namespace tlf_internal;
@@ -294,23 +294,22 @@
         var inactiveSelectionColor:* = textDisplay.getStyle(
                                             "inactiveTextSelectionColor");

-        var inactivePointAlpha:Number =
-            editingMode == EditingMode.READ_WRITE ?
-            1.0 :
-            0.0;
-
-        var inactiveAlpha:Number =
+        var inactivePointAlpha:Number = 0.0;
+
+        var inactiveRangeAlpha:Number =
             textDisplay.selectionHighlighting ==
             TextSelectionHighlighting.ALWAYS ?
             1.0 :
             0.0;

-        // Inactive is not unfocused so show an insertion point if there is one.
-        // This is consistent with TextField.
+
+        // This doesn't really matter since inactivePointAlpha is 0.
+        var pointBlinkRate:Number = 0.0;

         return new SelectionFormat(
-            inactiveSelectionColor, inactiveAlpha, BlendMode.NORMAL,
-            inactiveSelectionColor, inactivePointAlpha, BlendMode.INVERT);
+            inactiveSelectionColor, inactiveRangeAlpha, BlendMode.NORMAL,
+            inactiveSelectionColor, inactivePointAlpha, BlendMode.INVERT,
+            pointBlinkRate);
     }

     /**


optimized worldToLocal retrieval in MeshController

--- src/aerys/minko/scene/controller/mesh/MeshController.as
+++ src/aerys/minko/scene/controller/mesh/MeshController.as
@@ -67,7 +67,7 @@
 		private function localToWorldChangedHandler(mesh : Mesh, localToWorld : Matrix4x4) : void
 		{
 			_data.setProperty('localToWorld', localToWorld);
-			_data.setProperty('worldToLocal', _worldToLocal.copyFrom(localToWorld).invert());
+            mesh.getWorldToLocalTransform(false, _worldToLocal);
 		}
 	}
 }


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPDimension.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPDimension.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.olap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4111
Author:   chaase@adobe.com
Date:     2008-11-14T16:39:46.711628Z

Log Message:
-----------
Makes auto-reversal of transitions work more completely and correctly, fixing some API issues and other related animation/effect issues along the way. Seeking behavior in effects is improved (although still far from perfect, especially for non-playing effects), and dynamic behavior of effects (picking up values dynamically from the environment) is improved.

QE Notes: better seek() behavior, can just call it on non-playing effects and it will automatically play/pause the effect if necessary
Doc Notes: None
Bugs: sdk-17294, sdk-16595, sdk-18104, sdk-18105, sdk-18106, sdk-18107
Reviewer: Jason
tests: checkintests, Mustella: tests/Effects, tests/gumbo/effects tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/Transition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxMoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Parallel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Sequence.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/flex4/src/mx/effects/AddAction.as</path>

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

--- frameworks/projects/framework/src/mx/effects/IEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/IEffectInstance.as
@@ -302,8 +302,6 @@
      *  would be a MouseEvent with type equal to MouseEvent.MOUSEDOWN.
      */
     function initEffect(event:Event):void;
-
-    function seek(seekTime:Number):void;

     /**
      *  Plays the effect instance on the target after the


Transferred from the Adobe Open Source Subversion Repository

Revision: 7862
Author:   jszeto@adobe.com
Date:     2009-06-15T22:06:23.250745Z

Log Message:
-----------
GraphicElement PARB Changes

mx.core.AdvancedLayoutFeatures
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets

mx.core.IVisualElement
•	Rename layer -> depth

mx.core.UIComponent
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

mx.graphics.GradientBase
•	Remove scaleX

mx.graphics.GradientStroke
•	Add apply(g:Graphics, bounds:Rectangle)

mx.graphics.IStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.LinearGradient
•	Add scaleX

mx.graphics.LinearGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.RadialGradient
•	Add scaleX

mx.graphics.RadialGradientStroke
•	Add scaleX
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.graphics.SolidColorStroke
•	Remove draw
•	Change apply(g:Graphics) -> apply(g:Graphics, bounds:Rectangle)

mx.flash.UIMovieClip
•	Rename offsets -> postLayoutTransformOffsets
•	Rename layer -> depth

spark.components.PopUpAnchor
•	Change popUp type from UIComponent -> IFlexDisplayObject
•	Rename positionPopUp -> calculatePopUpPosition
•	Rename autoSizePopUpWidth -> popUpWidthMatchesAnchorWidth
•	Rename autoSizePopUpHeight -> popUpHeightMatchesAnchorHeight

spark.core.RelativePosition
•	Rename and move spark.core.RelativePosition -> spark.components.PopUpPosition
•	Rename EXACT -> TOP_LEFT (topLeft)

spark.core.SpriteVisualElement
•	Rename layer -> depth
•	Remove computeMatrix

spark.primitives.BitmapImage
•	Change _NORMAL_UINT from protected -> private
•	Change _REPEAT_UINT from protected -> private
•	Change _SCALE_UINT from protected -> private
•	Change resizeModeToUINT from protected -> private
•	Rename drawElement -> draw

spark.primitives.Line
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw

spark.primitives.Path
•	Change graphicsPath fro protected -> mx_internal
•	Rename skipMeasure -> canSkipMeasurement
•	Rename drawElement -> draw
•	Rename renderGraphicsAtScale -> generateGraphicsPath
•	Change generateGraphicsPath from protected -> mx_internal
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing

spark.primitives.Rect
•	Rename drawElement -> draw

spark.primitives.supportClasses.GraphicElement
•	Rename layer -> depth
•	Rename offsets -> postLayoutTransformOffsets
•	Rename getBitmapData -> captureBitmapData
•	Rename notifyElementLayerChanged -> invalidateDisplayObjectSharing
•	Rename skipMeasure -> canSkipMeasurement
•	Add protected hasComplexLayoutMatrix:Boolean getter
•	Remove target
•	Remove computeMatrix
•	Change DEFAULT_MAX_WIDTH from public -> private
•	Change DEFAULT_MAX_HEIGHT from public -> private
•	Change DEFAULT_MIN_WIDTH from public -> private
•	Change DEFAULT_MIN_HEIGHT from public -> private
•	Change allocateLayoutFeatures from protected -> mx_internal
•	Change invalidateTransform from protected -> private
•	Change captureBitmapData from public -> mx_internal
•	Change applyMaskType from protected -> mx_internal
•	Change dispatchPropertyChangeEvent from protected -> private
•	Change applyComputedTransform from protected -> mx_internal
•	Change filterChangedHandler from protected -> private

spark.supportClasses.StrokedElement
•	Rename drawElement -> draw
•	Remove getStroke()
•	Add getStrokeExtents() override

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/TransformOffsets.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.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/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</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/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IFill.as</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/framework/src/mx/graphics/RadialGradientStroke.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/SolidColor.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/framework/src/mx/graphics/RadialGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/IStroke.as</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/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/LinearGradient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/GradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/GradientStroke.as
@@ -1,12 +1,12 @@
 package mx.graphics
 {
-import flash.display.CapsStyle;
+import flash.display.CapsStyle;
 import flash.display.Graphics;
-import flash.display.GraphicsGradientFill;
+import flash.display.GraphicsGradientFill;
 import flash.display.GraphicsStroke;
-import flash.display.JointStyle;
+import flash.display.JointStyle;
 import flash.geom.Rectangle;
-
+
 import mx.core.mx_internal;

 use namespace mx_internal;
@@ -420,33 +420,23 @@
     //--------------------------------------------------------------------------

     /**
-     *  Applies the properties to the specified Graphics object.
-     *
-     *  @param g The Graphics object to which the LinearGradientStroke styles
-     *  are applied.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function apply(g:Graphics):void
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    public function apply(g:Graphics, bounds:Rectangle = null):void
     {
         // Sub-classes must implement
     }

+
     /**
      *  @inheritDoc
      */
-    public function draw(g:Graphics, rc:Rectangle):void
-    {
-       // Sub-classes must implement
-    }
-
-    /**
-     *  @inheritDoc
-     */
-    public function generateGraphicsStroke(rc:Rectangle):GraphicsStroke
+    public function createGraphicsStroke(bounds:Rectangle):GraphicsStroke
     {
         // Construct a new GraphicsStroke object and set all of
         // its properties to match the gradient stroke's
@@ -480,4 +470,4 @@

 }

-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 9072
Author:   jszeto@adobe.com
Date:     2009-08-04T20:12:13.651800Z

Log Message:
-----------
http://bugs.adobe.com/jira/browse/SDK-22453 - [Gumbo_priority] there is no updateComplete event after a fxg component moves

SpriteVisualElement, the root class of an fxg component, will notify its parent when its width/height or constraint styles have changed. This change will notify the parent when the x/y position, rotation or scale have changed. This fixes some issues with an fxg component properly participating in layout. Also, it fixes the tooling issue of receiving an update if the layout of the fxg component has changed.

QE notes: Need to add tests for these use cases
Doc notes: None
Bugs: SDK-22453
Reviewer: Ryan
Tests run: spark/primitives
Is noteworthy for integration: Yes. Fix is for Catalyst. Should not need any modifications to the Catalyst code.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

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

--- frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
+++ frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
@@ -21,6 +21,7 @@
 import mx.core.IInvalidating;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
+import mx.events.FlexEvent;
 import mx.utils.MatrixUtil;

 use namespace mx_internal;
@@ -464,6 +465,114 @@
     }

     //----------------------------------
+    //  rotation
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set rotation(value:Number):void
+    {
+        if (rotation == value)
+            return;
+
+        super.rotation = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  rotationX
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set rotationX(value:Number):void
+    {
+        if (rotationX == value)
+            return;
+
+        super.rotationX = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  rotationY
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set rotationY(value:Number):void
+    {
+        if (rotationY == value)
+            return;
+
+        super.rotationY = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  rotationZ
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set rotationZ(value:Number):void
+    {
+        rotation = value;
+    }
+
+    //----------------------------------
+    //  scaleX
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set scaleX(value:Number):void
+    {
+        if (scaleX == value)
+            return;
+
+        super.scaleX = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  scaleY
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set scaleY(value:Number):void
+    {
+        if (scaleY == value)
+            return;
+
+        super.scaleY = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  scaleZ
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set scaleZ(value:Number):void
+    {
+        if (scaleZ == value)
+            return;
+
+        super.scaleZ = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
     //  top
     //----------------------------------

@@ -602,6 +711,38 @@
     protected function set viewHeight(value:Number):void
     {
         _viewHeight = value;
+    }
+
+    //----------------------------------
+    //  x
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set x(value:Number):void
+    {
+        if (x == value)
+            return;
+
+        super.x = value;
+        invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  y
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set y(value:Number):void
+    {
+        if (y == value)
+            return;
+
+        super.y = value;
+        invalidateParentSizeAndDisplayList();
     }

     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 6957
Author:   jimurphy@adobe.com
Date:     2009-05-15T16:11:59.737851Z

Log Message:
-----------
Merged beta1 revisions 6898,6906,6913,6915,6917,6926,6930 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ImageHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.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/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java</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/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/framework/src/mx/controls/HRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/filters/GlowFilterNode.java</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/flash-integration/FlexComponentKit.mxi</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/TypeHelper.java</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -504,6 +504,8 @@
 [IconFile("Window.png")]

 [ResourceBundle("core")]
+
+[Alternative(replacement="spark.components.Window", since="4.0")]

 /**
  *  The Window is a top-level container for additional windows


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

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

 package mx.rpc.soap
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19872
Author:   rfrishbe@adobe.com
Date:     2011-01-21T21:49:53.747868Z

Log Message:
-----------
Fixing up issues with selecting the caretted item in single-select and multi-select mode.  You can now multi-select and de-select by pressing the spacebar or the 5-way button.

QE notes: -
Doc notes:
Bugs: SDK-28636
Reviewer: Jason SZ
Tests run: checkintests, mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -914,8 +914,11 @@
      *
      *  @param dispatchChangeEvent if true, the component will dispatch a "change" event if the
      *  value has changed. Otherwise, it will dispatch a "valueCommit" event.
-     */
-    mx_internal function setSelectedIndices(value:Vector.<int>, dispatchChangeEvent:Boolean = false):void
+     *
+     *  @param changeCaret if true, the caret will be set to the selectedIndex as a side-effect of calling
+     *  this method.  If false, caretIndex won't change.
+     */
+    mx_internal function setSelectedIndices(value:Vector.<int>, dispatchChangeEvent:Boolean = false, changeCaret:Boolean = true):void
     {
         // TODO (jszeto) Do a deep compare of the vectors
         if (_proposedSelectedIndices == value ||
@@ -926,7 +929,8 @@
             // this should short-circuit, but we should check to make sure
             // that caret doesn't need to be changed either, as that's a side
             // effect of setting selectedIndex
-            setCurrentCaretIndex(selectedIndex);
+            if (changeCaret)
+                setCurrentCaretIndex(selectedIndex);

             return;
         }
@@ -938,7 +942,8 @@
             _proposedSelectedIndices = value;
         else
             _proposedSelectedIndices = new Vector.<int>();
-        multipleSelectionChanged = true;
+        multipleSelectionChanged = true;
+        changeCaretOnSelection = changeCaret;
         invalidateProperties();
     }

@@ -1133,6 +1138,9 @@
         if (!isEmpty(_proposedSelectedIndices))
             _proposedSelectedIndex = getFirstItemValue(_proposedSelectedIndices);

+        // need to store changeCaretOnSelection since super.commitSelection() may change it
+        var currentChangeCaretOnSelection:Boolean = changeCaretOnSelection;
+
         // Let ListBase handle the validating and commiting of the single-selection
         // properties.
         var retVal:Boolean = super.commitSelection(false);
@@ -1155,7 +1163,8 @@
         commitMultipleSelection();

         // Set the caretIndex based on the current selection
-        setCurrentCaretIndex(selectedIndex);
+        if (currentChangeCaretOnSelection)
+            setCurrentCaretIndex(selectedIndex);

         // And dispatch change and caretChange events so that all of
         // the bindings update correctly.
@@ -1174,10 +1183,13 @@

             dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));

-            e = new IndexChangeEvent(IndexChangeEvent.CARET_CHANGE);
-            e.oldIndex = oldCaretIndex;
-            e.newIndex = caretIndex;
-            dispatchEvent(e);
+            if (currentChangeCaretOnSelection)
+            {
+                e = new IndexChangeEvent(IndexChangeEvent.CARET_CHANGE);
+                e.oldIndex = oldCaretIndex;
+                e.newIndex = caretIndex;
+                dispatchEvent(e);
+            }
         }

         return retVal;
@@ -1485,7 +1497,7 @@

         if (!shiftKey)
         {
-            // FIXME (rfrishbe): make this part a style, like "multipleSelectionRequiresModifierKey"
+            // TODO (rfrishbe): make this part a style, like "multipleSelectionRequiresModifierKey"
             if (ctrlKey || getStyle("interactionMode") == InteractionMode.TOUCH)
             {
                 if (!isEmpty(selectedIndices))
@@ -2699,22 +2711,38 @@
         // be an editable input control.
         if (isEditableTarget(event.target))
             return;
-
-        // 1. Was the space bar hit?
+
+		var touchMode:Boolean = (getStyle("interactionMode") == InteractionMode.TOUCH);
+
+        // 1. Was the space bar hit? or was the enter key hit and we're in 5-way mode
         // Hitting the space bar means the current caret item,
         // that is the item currently in focus, is being
-        // selected.
-        if (event.keyCode == Keyboard.SPACE)
-        {
-            setSelectedIndex(caretIndex, true);
-            event.preventDefault();
-            return;
-        }
-
-        // FIXME (rfrishbe): hack for 5-way
-        if (getStyle("interactionMode") == InteractionMode.TOUCH && event.keyCode == Keyboard.ENTER)
-        {
-            setSelectedIndex(caretIndex, true);
+        // selected or de-selected.
+        if (event.keyCode == Keyboard.SPACE ||
+			(touchMode && event.keyCode == Keyboard.ENTER))
+        {
+			if (allowMultipleSelection)
+            {
+                // Need to set "changeCaret" to false below so that we
+                // don't change the caret to an item in the selectedIndices
+                // if we are currently deselecting an item
+				setSelectedIndices(calculateSelectedIndices(caretIndex, event.shiftKey, event.ctrlKey), true, false);
+            }
+			else
+            {
+                // check to see if we're de-selecting the current item
+                if (caretIndex == selectedIndex && (event.ctrlKey || touchMode))
+                {
+                    // Unselect it, but don't change the caret
+                    setSelectedIndex(NO_SELECTION, true, false);
+                }
+                else
+                {
+                    // select the current item
+                    setSelectedIndex(caretIndex, true, false);
+                }
+
+            }
             event.preventDefault();
             return;
         }
@@ -2804,7 +2832,7 @@
             ensureIndexIsVisible(proposedNewIndex);
         }
         // Entering the caret state with the Ctrl key down
-        // FIXME (rfrishbe): shouldn't just check interactionMode but should depend on
+        // TODO (rfrishbe): shouldn't just check interactionMode but should depend on
         // either the platform or whether it was a 5-way button or whether
         // soem other keyboardSelection style.
         else if (event.ctrlKey || getStyle("interactionMode") == InteractionMode.TOUCH)


toString

toString

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/TimeProxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/model/proxy/TimeProxy.as
@@ -1,14 +1,20 @@
-/**
- * Generated by Gas3 v2.2.0 (Granite Data Services).
- *
- * NOTE: this file is only generated if it does not exist. You may safely put
- * your custom code here.
- */
-
-package org.openforis.collect.model.proxy {
-
-    [Bindable]
-    [RemoteClass(alias="org.openforis.collect.model.proxy.TimeProxy")]
-    public class TimeProxy extends TimeProxyBase {
-    }
+/**
+ * Generated by Gas3 v2.2.0 (Granite Data Services).
+ *
+ * NOTE: this file is only generated if it does not exist. You may safely put
+ * your custom code here.
+ */
+
+package org.openforis.collect.model.proxy {
+	import org.openforis.collect.util.StringUtil;
+
+    [Bindable]
+    [RemoteClass(alias="org.openforis.collect.model.proxy.TimeProxy")]
+    public class TimeProxy extends TimeProxyBase {
+
+		public function toString():String {
+			return StringUtil.concat(":", hour, minute);
+		}
+
+	}
 }


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

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

 package mx.core
 {


Added missing type declarations in RCContour.

--- as3_lib/src/recastnavigation/recast/contour/RCContour.as
+++ as3_lib/src/recastnavigation/recast/contour/RCContour.as
@@ -23,7 +23,7 @@

 		/** Simplified contour vertex and connection data. */
 		public function getVert(index:int):int { return CModule.read32(CModule.read32(ptr + OFFSET_VERTS) + 4 * index); }
-		public function setVert(index:int, value):void { CModule.write32(CModule.read32(ptr + OFFSET_VERTS) + 4 * index, value); }
+		public function setVert(index:int, value:int):void { CModule.write32(CModule.read32(ptr + OFFSET_VERTS) + 4 * index, value); }

 		/** The number of vertices in the simplified contour. */
 		public function get nverts():int { return CModule.read32(ptr + OFFSET_NVERTS); }
@@ -31,7 +31,7 @@

 		/** Raw contour vertex and connection data. */
 		public function getRVert(index:int):int { return CModule.read32(CModule.read32(ptr + OFFSET_RVERTS) + 4 * index); }
-		public function setRVert(index:int, value):void { CModule.write32(CModule.read32(ptr + OFFSET_RVERTS) + 4 * index, value); }
+		public function setRVert(index:int, value:int):void { CModule.write32(CModule.read32(ptr + OFFSET_RVERTS) + 4 * index, value); }

 		/** The number of vertices in the raw contour.  */
 		public function get nrverts():int { return CModule.read32(ptr + OFFSET_NRVERTS); }


add LOADING state

add LOADING state

--- src/org/mangui/hls/HLSJS.as
+++ src/org/mangui/hls/HLSJS.as
@@ -5,6 +5,7 @@
     import org.hola.JSAPI;
     import org.hola.HSettings;
     import org.mangui.hls.event.HLSEvent;
+    import org.mangui.hls.constant.HLSPlayStates;

     public class HLSJS
     {
@@ -12,6 +13,7 @@
         private static var _duration:Number;
         private static var _bandwidth:Number = -1;
         private static var _url:String;
+        private static var _state:String;
         private static var _hls:HLS;

         public static function init():void{
@@ -40,6 +42,14 @@

         public static function HLSnew(hls:HLS):void{
             _hls = hls;
+            _state = HLSPlayStates.IDLE;
+            // track duration events
+            hls.addEventListener(HLSEvent.MANIFEST_LOADED, on_manifest_loaded);
+            hls.addEventListener(HLSEvent.PLAYLIST_DURATION_UPDATED,
+                on_playlist_duration_updated);
+            // track playlist-url/state
+            hls.addEventListener(HLSEvent.MANIFEST_LOADING, on_manifest_loading);
+            hls.addEventListener(HLSEvent.PLAYBACK_STATE, on_playback_state);
             // notify js events
             hls.addEventListener(HLSEvent.MANIFEST_LOADING, on_event);
             hls.addEventListener(HLSEvent.MANIFEST_PARSED, on_event);
@@ -76,12 +86,6 @@
             hls.addEventListener(HLSEvent.FPS_DROP_SMOOTH_LEVEL_SWITCH,
                 on_event);
             hls.addEventListener(HLSEvent.LIVE_LOADING_STALLED, on_event);
-            // track duration events
-            hls.addEventListener(HLSEvent.MANIFEST_LOADED, on_manifest_loaded);
-            hls.addEventListener(HLSEvent.PLAYLIST_DURATION_UPDATED,
-                on_playlist_duration_updated);
-            // track playlist url
-            hls.addEventListener(HLSEvent.MANIFEST_LOADING, on_manifest_loading);
             JSAPI.postMessage2({id: 'flashls.hlsNew', hls_id: hls.id});
         }

@@ -90,6 +94,7 @@
             _duration = 0;
             _bandwidth = -1;
             _url = null;
+            _state = HLSPlayStates.IDLE;
             _hls = null;
         }

@@ -107,6 +112,12 @@

         private static function on_manifest_loading(e:HLSEvent):void{
             _url = e.url;
+            _state = "LOADING";
+            on_event(new HLSEvent(HLSEvent.PLAYBACK_STATE, _state));
+        }
+
+        private static function on_playback_state(e:HLSEvent):void{
+            _state = e.state;
         }

         private static function on_event(e:HLSEvent):void{
@@ -141,7 +152,7 @@
         }

         private static function hola_hls_get_state():String{
-            return _hls.playbackState;
+            return _state;
         }

         private static function hola_hls_get_levels():Object{


documentation fix

documentation fix

--- WeaveCore/src/weave/core/StageUtils.as
+++ WeaveCore/src/weave/core/StageUtils.as
@@ -454,7 +454,7 @@
 		 * @return A single iterative task function that invokes the other tasks to completion in order.
 		 *         The function will accept a stopTime:int parameter which when set to -1 will
 		 *         reset the task counter to zero so the compound task will start from the first task again.
-		 * @see #startTask
+		 * @see #startTask()
 		 */
 		public static function generateCompoundIterativeTask(...iterativeTasks):Function
 		{


Added back code that attempts to fix the combo box dataProvider bug.

Change-Id: Ib43be0a112d7b43c9d21d64c98ae0717ef4a2cec

--- WeaveUI/src/weave/ui/CustomComboBox.as
+++ WeaveUI/src/weave/ui/CustomComboBox.as
@@ -20,8 +20,10 @@
 package weave.ui
 {
 	import mx.collections.CursorBookmark;
+	import mx.controls.Alert;
 	import mx.controls.ComboBox;

+	import weave.core.ErrorManager;
 	import weave.core.SessionManager;
 	import weave.core.StageUtils;

@@ -46,15 +48,27 @@
 		 */
 		override public function set dataProvider(value:Object):void
 		{
-			// TEMPORARY SOLUTION
-			// Sometimes this code crashes with a null reference error.
-			// So, until this is fully debugged, only attempt this fix when running the debug player.
-//			if (SessionManager.runningDebugFlashPlayer)
-//			{
-//				// The dropdown will not be properly reset unless it is currently shown.
-//				validateNow();
-//				downArrowButton_buttonDownHandler(null);
-//			}
+			// The dropdown will not be properly reset unless it is currently shown.
+
+			if (SessionManager.runningDebugFlashPlayer)
+			{
+				// when running debug player, allow the code to crash so developers take notice.
+				// If this ever crashes, please send the stack trace to andy.dufilie@gmail.com
+				validateNow();
+				downArrowButton_buttonDownHandler(null);
+			}
+			else
+			{
+				// when not running debug player, ignore error
+				try
+				{
+					validateNow();
+					downArrowButton_buttonDownHandler(null);
+				}
+				catch (e:Error)
+				{
+				}
+			}
 			super.dataProvider = value;
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/airframework/src/mx/controls/HTML.as
+++ frameworks/projects/airframework/src/mx/controls/HTML.as
@@ -36,6 +36,8 @@
 import mx.styles.StyleManager
 import mx.styles.CSSStyleDeclaration;
 import mx.managers.IFocusManagerComponent;
+
+use namespace mx_internal;

 //--------------------------------------
 //  Events
@@ -361,8 +363,8 @@
     {
         super();

-        mx_internal::_horizontalScrollPolicy = ScrollPolicy.AUTO;
-        mx_internal::_verticalScrollPolicy = ScrollPolicy.AUTO;
+        _horizontalScrollPolicy = ScrollPolicy.AUTO;
+        _verticalScrollPolicy = ScrollPolicy.AUTO;

         tabEnabled = false;
         tabChildren = true;


Transferred from the Adobe Open Source Subversion Repository

Revision: 3610
Author:   rfrishbe@adobe.com
Date:     2008-10-14T00:33:25.128654Z

Log Message:
-----------
Fixing bug SDK-17173: Setting rotate to a large number doesn't work anymore.

The Flash Player clamps rotate between -180 and 180.  We should do the same now that we're doing some of the calculations ourselves.  This clamping logic was added to CompoundTransform.as.  Also, clamping logic was added to UIComponent.  This is because FP10 doesn't handle values greater than 2^15-1; FP 9 used to handle these values fine.  I filed a FP bug for this (FP-749).

QE: Yes - Please look out for any rotation failures
Doc: No
Bugs: SDK-17173
Reviewer: Ely

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/CompoundTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -1664,7 +1664,24 @@
             return;

         if(_layoutFeatures == null)
+        {
+            // clamp the rotation value between -180 and 180.  This is what
+            // the Flash player does and what we mimic in CompoundTransform;
+            // however, the Flash player doesn't handle values larger than
+            // 2^15 - 1 (FP-749), so we need to clamp even when we're
+            // just setting super.rotation.
+            if (value > 180 || value < -180)
+            {
+                value = value % 360;
+
+                if (value > 180)
+                    value = value - 360;
+                else if (value < -180)
+                    value = value + 360;
+            }
+
 	        super.rotation = value;
+	    }
 	   	else
 	   	{
 	   		_layoutFeatures.layoutRotationZ = value;
@@ -9757,7 +9774,7 @@
 		_layoutFeatures.updatePending = false;
 		if(_layoutFeatures.is3D)
 		{
-			super.transform.matrix3D = _layoutFeatures.computedMatrix3D;
+			super.transform.matrix3D = _layoutFeatures.computedMatrix3D;
 		}
 		else
 		{


Transferred from the Adobe Open Source Subversion Repository

Revision: 17065
Author:   chiedozi@adobe.com
Date:     2010-07-26T22:24:42.162194Z

Log Message:
-----------
MobileApplication now exposes applicationPersist and applicationRestore events to allow developers to respond to persistence operations
Added APPLICATION_RESTORE and APPLICATION_PERSIST events to FlexEvent
Persistence data is now only written to disk when the app exits, and not after every view change
Desktop applications now only persist view history when the app is exited and not when the window is deactivated.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>

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

--- frameworks/projects/framework/src/mx/events/FlexEvent.as
+++ frameworks/projects/framework/src/mx/events/FlexEvent.as
@@ -121,7 +121,63 @@
      *  @productversion Flex 3
      */
     public static const APPLICATION_COMPLETE:String = "applicationComplete";
-
+
+    /**
+     *  The FlexEvent.APPLICATION_PERSIST constant defines the value of the
+     *  type property of the event object for a applicationPersist event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
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.

+     *
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.

+     *

+     *
+     *  @eventType applicationPersist
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const APPLICATION_PERSIST:String = "applicationPersist";
+
+    /**
+     *  The FlexEvent.APPLICATION_RESTORE constant defines the value of the
+     *  type property of the event object for a applicationRestore event.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
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.

+     *
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.

+     *

+     *
+     *  @eventType applicationRestore
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static const APPLICATION_RESTORE:String = "applicationRestore";
+
     /**
      *  The FlexEvent.BUTTON_DOWN constant defines the value of the
      *  type property of the event object for a buttonDown event.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

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

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

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

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

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

--- frameworks/projects/framework/src/mx/resources/Locale.as
+++ frameworks/projects/framework/src/mx/resources/Locale.as
@@ -0,0 +1,233 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.resources
+{
+
+import mx.managers.ISystemManager;
+
+/**
+ *  The Locale class can be used to parse a locale String such as "en_US_MAC"
+ *  into its three parts: a language code, a country code, and a variant.
+ *
+ *
The localization APIs in the IResourceManager and IResourceBundle
+ *  interfaces use locale Strings rather than Locale instances,
+ *  so this class is seldom used in an application.

+ *
+ *  @see mx.resources.IResourceBundle
+ *  @see mx.resources.IResourceManager
+ */
+public class Locale
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static var currentLocale:Locale;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    [Deprecated(replacement="ResourceManager.localeChain", since="3.0")]
+
+    /**
+     *  Returns a Locale object, if you compiled your application
+     *  for a single locale. Otherwise, it returns null.
+     *
+     *
This method has been deprecated because the Flex framework
+     *  now supports having resource bundles for multiple locales
+     *  in the same application.
+     *  You can use the getLocale() method of IResourceManager
+     *  to find out which locales the ResourceManager has resource bundles for.
+     *  You can use the localeChain property of IResourceManager
+     *  to determine which locales the ResourceManager searches for
+     *  resources.

+     *
+     *  @param sm The current SystemManager.
+     */
+    public static function getCurrent(sm:ISystemManager):Locale
+    {
+        if (!currentLocale)
+        {
+            var compiledLocales:Array = sm.info()["compiledLocales"];
+            if (compiledLocales != null && compiledLocales.length == 1)
+                currentLocale = new Locale(compiledLocales[0]);
+        }
+
+        return currentLocale;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param localeString A 1-, 2-, or 3-part locale String,
+     *  such as "en", "en_US", or "en_US_MAC".
+     *  The parts are separated by underscore characters.
+     *  The first part is a two-letter lowercase language code
+     *  as defined by ISO-639, such as "en" for English.
+     *  The second part is a two-letter uppercase country code
+     *  as defined by ISO-3166, such as "US" for the United States.
+     *  The third part is a variant String, which can be used
+     *  to optionally distinguish multiple locales for the same language and country.
+     *  It is sometimes used to indicate the operating system
+     *  that the locale should be used with, such as "MAC", "WIN", or "UNIX".
+     */
+    public function Locale(localeString:String)
+    {
+        super();
+
+        this.localeString = localeString;
+
+        var parts:Array = localeString.split("_");
+
+        if (parts.length > 0)
+            _language = parts[0];
+
+        if (parts.length > 1)
+            _country = parts[1];
+
+        if (parts.length > 2)
+            _variant = parts.slice(2).join("_");
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var localeString:String;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  language
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the language property.
+     */
+    private var _language:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  The language code of this Locale instance. [Read-Only]
+     *
+     *  @example
+     *

+     *  var locale:Locale = new Locale("en_US_MAC");
+     *  trace(locale.language); // outputs "en"
+     *

+     */
+    public function get language():String
+    {
+        return _language;
+    }
+
+    //----------------------------------
+    //  country
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the country property.
+     */
+    private var _country:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  The country code of this Locale instance. [Read-Only]
+     *
+     *  @example
+     *

+     *  var locale:Locale = new Locale("en_US_MAC");
+     *  trace(locale.country); // outputs "US"
+     *

+     */
+    public function get country():String
+    {
+        return _country
+    }
+
+    //----------------------------------
+    //  variant
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the variant property.
+     */
+    private var _variant:String;
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  The variant part of this Locale instance. [Read-Only]
+     *
+     *  @example
+     *

+     *  var locale:Locale = new Locale("en_US_MAC");
+     *  trace(locale.variant); // outputs "MAC"
+     *

+     */
+    public function get variant():String
+    {
+        return _variant;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Returns the locale String that was used to construct
+     *  this Locale instance. For example:
+     *
+     *

+     *  var locale:Locale = new Locale("en_US_MAC");
+     *  trace(locale.toString()); // outputs "en_US_MAC"
+     *

+     */
+    public function toString():String
+    {
+        return localeString;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12479
Author:   gruehle@adobe.com
Date:     2009-12-04T01:22:02.791182Z

Log Message:
-----------
Reverting 12472, which breaks the build on Windows.

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/LoaderUtil.as

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

--- frameworks/projects/framework/src/mx/utils/LoaderUtil.as
+++ frameworks/projects/framework/src/mx/utils/LoaderUtil.as
@@ -113,7 +113,7 @@
             }
         }

-        return encodeURI(url);
+        return url;
     }

     /**


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

--- frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
+++ frameworks/projects/mx/src/mx/events/ColorPickerEvent.as
@@ -18,6 +18,11 @@
  *  Represents events that are specific to the ColorPicker control,
  *  such as when the user rolls the mouse over or out of a swatch in
  *  the swatch panel.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ColorPickerEvent extends Event
 {
@@ -54,6 +59,11 @@
 	 *  </table>
 	 *
      *  @eventType change
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
     public static const CHANGE:String = "change";

@@ -81,6 +91,11 @@
 	 *  </table>
 	 *
      *  @eventType enter
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ENTER:String = "enter";

@@ -110,6 +125,11 @@
 	 *  </table>
 	 *
      *  @eventType itemRollOut
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ITEM_ROLL_OUT:String = "itemRollOut";

@@ -139,6 +159,11 @@
 	 *  </table>
 	 *
      *  @eventType itemRollOver
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ITEM_ROLL_OVER:String = "itemRollOver";

@@ -163,6 +188,11 @@
 	 *
 	 *  @param color The RGB color that was rolled over, rolled out of,
 	 *  selected, or entered.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function ColorPickerEvent(
 						type:String, bubbles:Boolean = false,
@@ -188,6 +218,11 @@
     /**
 	 *  The RGB color that was rolled over, rolled out of, selected, or
 	 *  entered.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var color:uint;

@@ -202,6 +237,11 @@
 	 *  will have default value -1; it is not set in this case because
 	 *  the user can enter an RGB string that doesn't match any color
 	 *  in the data provider.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var index:int;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8031
Author:   egeorgie@adobe.com
Date:     2009-06-20T01:10:03.288554Z

Log Message:
-----------
Scrub the TODOs in the framework, convert to FIXMEs in the new convention and assigning an owner.

Doc Notes: N/A
Bugs: N/A
Reviewer: Deepa
tests: build, checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.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/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Slider.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/effects/animation/Timeline.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HSlider.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/framework/src/mx/collections/ModifiedCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/spark/ErrorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.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/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.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/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.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/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/utils/BitmapUtil.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/skins/spark/FocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.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/framework/src/mx/effects/CompositeEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutElementHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.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/flex4/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/mediaClasses/StreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/PropertyChanges.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/pathSegments/LineSegment.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/flex4/src/spark/components/VideoPlayer.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/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</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/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VSlider.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/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AddAction.as
+++ frameworks/projects/spark/src/spark/effects/AddAction.as
@@ -346,7 +346,7 @@
         {
             if (target.parent)
             {
-                // TODO : workaround for current situation of mis-match between
+                // FIXME (chaase): workaround for current situation of mis-match between
                 // Group having 'item's and Flex3 components having 'parent's
                 if (target.parent is IVisualElementContainer)
                     IVisualElementContainer(target.parent).removeElement(target as IVisualElement);


Space  object - Video

Space  object - Video

When the space object is converted to a video, it now is set to button
mode to let the user know he can play and pause the video with a click.

--- src/sfxworks/SpaceObject.as
+++ src/sfxworks/SpaceObject.as
@@ -115,6 +115,7 @@

 				v = new Video();
 				v.attachNetStream(ns);
+				this.buttonMode = true;
 				addChild(v);

 				//Add args to handle pause and play


Added contants for fullscreen events

Added contants for fullscreen events

--- src/Player.as
+++ src/Player.as
@@ -29,6 +29,9 @@
   [SWF(backgroundColor="#efefef")]

   public class Player extends Sprite {
+    private static const EVENT_FULLSCREEN_ENTERED:String  = "fullscreenEntered";
+    private static const EVENT_FULLSCREEN_EXITED:String  = "fullscreenExited";
+
     private var config:Object = {
       'buffer': 1,
       'scaleUp': false,
@@ -112,7 +115,7 @@
       if (config.allowFullscreen) {
         this.stage.displayState = (StageDisplayState.NORMAL === stage.displayState) ?
           StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
-          (StageDisplayState.NORMAL === stage.displayState) ? this.callAPI("fullscreenExited") : this.callAPI("fullscreenEntered");
+          (StageDisplayState.NORMAL === stage.displayState) ? this.callAPI(EVENT_FULLSCREEN_EXITED) : this.callAPI(EVENT_FULLSCREEN_ENTERED);
       }
     }


create game defaults show player on map to true

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -96,6 +96,7 @@
 			game.playerCreateComments = true;
 			game.playerLikesNotes = true;
 			game.allowtrading = true;
+			game.showPlayerOnMap = true;
 			r = AppDAO.getInstance().getGameServer().createGame(SecurityModel.getInstance().getUserId(),
 																game.name, game.description,
 																game.pcMediaId, game.iconMediaId, game.mediaId,