Transferred from the Adobe Open Source Subversion Repository

Revision: 5331
Author:   dloverin@adobe.com
Date:     2009-03-16T20:29:20.872892Z

Log Message:
-----------
FxApplication related API changes.

1. Rename ApplicationGlobals.application -> FlexGlobals.topLevelApplication
2. Application.application will be deprecated. FlexGlobals.topLevelApplication will be the recommend alternative.
3. Application.application will return null if the top-level application is not of type Application or a subclass of Application.
4. Change the FxApplication.backgroundColor property from type Object to uint.

QE Notes: None
Doc Notes: None
Bugs: sdk-19677
Reviewer: Ryan
tests: checkintests, Application mustella tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ActivatorSkin.as</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/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/src/haloclassic/ActivatorSkin.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/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.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/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ResizeInstance.as</path>
<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/halo/src/mx/skins/halo/ActivatorSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/checkinapp/ProductDetail.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.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/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ApplicationGlobals.as" copyfrom-rev="5314" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexGlobals.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -3101,7 +3101,7 @@
         {
             var mainApp:* = parentApplication ?
                             parentApplication :
-                            ApplicationGlobals.application;
+                            FlexGlobals.topLevelApplication;

             if ("addToCreationQueue" in mainApp)
                 mainApp.addToCreationQueue(this, creationIndex, null, this);


Transferred from the Adobe Open Source Subversion Repository

Revision: 3411
Author:   egeorgie@adobe.com
Date:     2008-09-29T23:44:01.337941Z

Log Message:
-----------
* Change layout-related width/height, explicit width/height, measured width/height properties from post-scale to pre-transform. yay!
* Flex3 containers are updated to support the new behavior.
* Repeatedly scaling a component can differ from before, since we no longer accumulate rounding errors.
* The change is gated by a version flag, in compatibility mode these properties don't change.

Reviewed by Glenn, Ely

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/BoxLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/PostScaleAdapter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.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/flex/layout/LayoutItemUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -30,6 +30,7 @@
 import flash.utils.getDefinitionByName;

 import mx.binding.BindingManager;
+import mx.containers.utilityClasses.PostScaleAdapter;
 import mx.controls.Button;
 import mx.controls.HScrollBar;
 import mx.controls.VScrollBar;
@@ -358,6 +359,11 @@
     //  Class methods
     //
     //--------------------------------------------------------------------------
+
+    mx_internal function getLayoutChildAt(index:int):IUIComponent
+    {
+        return PostScaleAdapter.getCompatibleIUIComponent(getChildAt(index));
+    }

     //--------------------------------------------------------------------------
     //
@@ -4208,20 +4214,39 @@
         var n:int = numChildren;
         for (var i:int = 0; i < n; i++)
         {
+            var x:Number;
+            var y:Number;
+            var width:Number;
+            var height:Number;
+
             var child:DisplayObject = getChildAt(i);
-
-            if (child is IUIComponent && !IUIComponent(child).includeInLayout)
-                continue;
-
-            left = Math.min(left, child.x);
-            top = Math.min(top, child.y);
+            if (child is IUIComponent)
+            {
+                if (!IUIComponent(child).includeInLayout)
+                    continue;
+                var uic:IUIComponent = PostScaleAdapter.getCompatibleIUIComponent(child);
+                width = uic.width;
+                height = uic.height;
+                x = uic.x;
+                y = uic.y;
+            }
+            else
+            {
+                width = child.width;
+                height = child.height;
+                x = child.x;
+                y = child.y;
+            }
+
+            left = Math.min(left, x);
+            top = Math.min(top, y);

             // width/height can be NaN if using percentages and
             // hasn't been layed out yet.
-            if (!isNaN(child.width))
-                right = Math.max(right, child.x + child.width);
-            if (!isNaN(child.height))
-                bottom = Math.max(bottom, child.y + child.height);
+            if (!isNaN(width))
+                right = Math.max(right, x + width);
+            if (!isNaN(height))
+                bottom = Math.max(bottom, y + height);
         }

         // Add in the right/bottom margins and view metrics.


Transferred from the Adobe Open Source Subversion Repository

Revision: 16033
Author:   cframpto@adobe.com
Date:     2010-05-11T14:26:21.400105Z

Log Message:
-----------
Merge rev 16032 from 4.x to trunk.  Fix metadata on Container creationPolicy.

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

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -1226,12 +1226,12 @@
     //  creationPolicy
     //----------------------------------

-    [Inspectable(enumeration="all,auto,none")]
-
     // Internal flag used when creationPolicy="none".
     // When set, the value of the backing store _creationPolicy
     // style is "auto" so descendants inherit the correct value.
     private var creationPolicyNone:Boolean = false;
+
+    [Inspectable(enumeration="all,auto,none")]

     /**
      *  The child creation policy for this MX Container.


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 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.skins.mobile
 {
 import flash.display.Graphics;


Transferred from the Adobe Open Source Subversion Repository

Revision: 11015
Author:   egeorgie@adobe.com
Date:     2009-10-19T23:11:47.299750Z

Log Message:
-----------
Drag and Drop - add "dragging" state to item renderer.

QE notes: ItemRenderer "dragging" state ready for testing.
Doc notes: None
Bugs: None
Reviewer: Hans
Tests run: checkintests, mustella (ListDragDrop, List)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListItemDragProxy.as
@@ -120,8 +120,8 @@
                 }
             }

-            var clone:IVisualElement = cloneItemRenderer(IItemRenderer(element), list);
-            // FIXME (egeorgie): update the clone's state to "dragging"
+            var clone:IItemRenderer = cloneItemRenderer(IItemRenderer(element), list);
+            clone.dragging = true;

             // Add the clone as a child
             clone.x -= offsetX;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18023
Author:   aharui@adobe.com
Date:     2010-10-05T22:09:32.510025Z

Log Message:
-----------
Initial implementation of prompts in TextInput, TextArea, ComboBox.

QE notes: XD input still pending so don't take bitmaps just yet.
Doc notes: see new APIs
Bugs: SDK-20959
Reviewer: Corey
Tests run: checkintests mustella/gumbo/ComboBox, TextInput, TextArea
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/TextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/ComboBoxTextInputSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/TextAreaSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/defaults.css</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -34,6 +34,7 @@

 import spark.components.RichEditableText;
 import spark.components.TextSelectionHighlighting;
+import spark.core.IDisplayText;
 import spark.core.IEditableText;
 import spark.events.TextOperationEvent;

@@ -271,6 +272,11 @@
      */
     private static const WIDTH_IN_CHARS_PROPERTY_FLAG:uint = 1 << 14;

+    /**
+     *  @private
+     */
+    private static const PROMPT_TEXT_PROPERTY_FLAG:uint = 1;
+
     //--------------------------------------------------------------------------
     //
     //  Constructor
@@ -297,6 +303,42 @@
     //
     //--------------------------------------------------------------------------

+    //----------------------------------
+    //  promptDisplay
+    //----------------------------------
+
+    [SkinPart(required="false")]
+
+    /**
+     *  The Label or other IDisplayText that may be present
+     *  in any skin assigned to this component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public var promptDisplay:IDisplayText;
+
+    /**
+     *  @private
+     *  Properties are proxied to promptDisplay.  However, when
+     *  promptDisplay is not around, we need to store values set on
+     *  SkinnableTextBase.  This object stores those values.  If promptDisplay is
+     *  around, the values are  stored  on the promptDisplay directly.  However,
+     *  we need to know what values have been set by the developer on
+     *  TextInput/TextArea (versus set on the promptDisplay or defaults of the
+     *  promptDisplay) as those are values we want to carry around if the
+     *  promptDisplay changes (via a new skin). In order to store this info
+     *  efficiently, promptDisplayProperties becomes a uint to store a series of
+     *  BitFlags.  These bits represent whether a property has been explicitly
+     *  set on this SkinnableTextBase.  When the promptDisplay is not around,
+     *  promptDisplayProperties is a typeless object to store these proxied
+     *  properties.  When promptDisplay is around, promptDisplayProperties stores
+     *  booleans as to whether these properties have been explicitly set or not.
+     */
+    private var promptDisplayProperties:Object = {};
+
     //----------------------------------
     //  textDisplay
     //----------------------------------
@@ -555,6 +597,34 @@
         invalidateProperties();
     }

+    //----------------------------------
+    //  prompt
+    //----------------------------------
+
+    /**
+     *  @default null
+     *
+     *  Text to be displayed if/when the actual
+     *  text property is a null or empty string.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get prompt():String
+    {
+        return getPrompt();
+    }
+
+    /**
+     *  @private
+     */
+    public function set prompt(value:String):void
+    {
+        setPrompt(value);
+    }
+
 	//----------------------------------
 	//  tabIndex
 	//----------------------------------
@@ -1083,6 +1153,18 @@
     {
         super.partAdded(partName, instance);

+        if (instance == promptDisplay)
+        {
+            var newPromptDisplayProperties:uint = 0;
+            if (promptDisplayProperties.prompt !== undefined)
+            {
+                promptDisplay.text = promptDisplayProperties.prompt;
+                newPromptDisplayProperties = BitFlagUtil.update(
+                    uint(newPromptDisplayProperties), PROMPT_TEXT_PROPERTY_FLAG, true);
+            }
+            promptDisplayProperties = newPromptDisplayProperties;
+        }
+
         if (instance == textDisplay)
         {
             // Copy proxied values from textDisplayProperties (if set) to
@@ -1142,6 +1224,19 @@
             textDisplay.removeEventListener(FlexEvent.VALUE_COMMIT,
                                             textDisplay_valueCommitHandler);
         }
+
+        if (instance == promptDisplay)
+        {
+            var newPromptDisplayProperties:Object = {};
+
+            if (BitFlagUtil.isSet(uint(promptDisplayProperties),
+                PROMPT_TEXT_PROPERTY_FLAG))
+            {
+                newPromptDisplayProperties.prompt =
+                    textDisplay.text;
+            }
+            promptDisplayProperties = newPromptDisplayProperties;
+        }
     }

     /**
@@ -1149,6 +1244,17 @@
      */
     override protected function getCurrentSkinState():String
     {
+        if (focusManager && focusManager.getFocus() != focusManager.findFocusManagerComponent(this) &&
+            prompt != null && prompt != "")
+        {
+            if (text.length == 0)
+            {
+                if (enabled && skin && skin.hasState("normalWithPrompt"))
+                    return "normalWithPrompt";
+                if (!enabled && skin && skin.hasState("disabledWithPrompt"))
+                    return "disabledWithPrompt";
+            }
+        }
         return enabled ? "normal" : "disabled";
     }

@@ -1330,6 +1436,45 @@
         invalidateProperties();
     }

+    /**
+     *  @see #prompt
+     *
+     *  @private
+     */
+    mx_internal function getPrompt():String
+    {
+        if (promptDisplay)
+        {
+            if (BitFlagUtil.isSet(uint(promptDisplayProperties),
+                PROMPT_TEXT_PROPERTY_FLAG))
+                return promptDisplay.text;
+            return null;
+        }
+
+        // want the default to be null
+        var v:* = promptDisplay ? undefined : promptDisplayProperties.prompt;
+        return (v === undefined) ? null : v;
+    }
+
+    /**
+     *  @private
+     */
+    mx_internal function setPrompt(value:String):void
+    {
+        if (promptDisplay)
+        {
+            promptDisplay.text = value;
+            promptDisplayProperties = BitFlagUtil.update(
+                uint(promptDisplayProperties),
+                PROMPT_TEXT_PROPERTY_FLAG, true);
+        }
+        else
+            promptDisplayProperties.prompt = value;
+
+        // Generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
     /**
      *  @private
      */
@@ -1717,9 +1862,24 @@
         if (enabled && editable && focusManager)
             focusManager.showFocusIndicator = true;

+        invalidateSkinState();
+
         super.focusInHandler(event);
     }

+    /**
+     *  @private
+     */
+    override protected function focusOutHandler(event:FocusEvent):void
+    {
+        if (event.target == this)
+            return;
+
+        invalidateSkinState();
+
+        super.focusOutHandler(event);
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Event handlers


Transferred from the Adobe Open Source Subversion Repository

Revision: 20135
Author:   cframpto@adobe.com
Date:     2011-02-04T17:17:14.255516Z

Log Message:
-----------
Fixup ASdoc for text styles and properties in TextArea/TextInput/SkinnableTextBase which are common to spark and mobile text but have different descriptions/values.  We are restricted to how we can format the doc since there can only be one @copy and it must be last.  In addition, we do not want the summary line to be "Not supported for the mobile theme".  Stephen Gilson and I worked out a template which uses @see rather than @copy since there can be multiple @see tags.  Look at SkinnableTextBase.editable for an example when mobile supports the property and SkinnableTextBase.typicalText for an example when mobile does not support the property.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -225,8 +225,10 @@

 /**
  *  The base class for skinnable components, such as the Spark TextInput
- *  and TextArea, that include an instance of RichEditableText in their skin
- *  to provide rich text display, scrolling, selection, and editing.
+ *  and TextArea, that include an instance of IEditableText in their skin
+ *  to provide text display, scrolling, selection, and editing.
+ *  IEditableText is RichEditableText for the Spark theme and StyleableTextField
+ *  for the Mobile theme.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -423,8 +425,10 @@
     [SkinPart(required="false")]

     /**
-     *  The RichEditableText that may be present
+     *  The IEditableText that may be present
      *  in any skin assigned to this component.
+     *  This is RichEditableText for the Spark theme
+     *  and StyleableTextField for the Mobile theme.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -710,6 +714,8 @@
      *

      *

      *
+     *
For the Mobile theme, this is not supported.

+     *
      *  @default null
      *
      *  @langversion 3.0
@@ -767,16 +773,23 @@
     [Inspectable(category="General", defaultValue="null")]

     /**
-     *  @copy spark.components.RichEditableText#typicalText
+     *  Text that is used to determine
+     *  the default width and height of the control,
+     *  without actually being displayed.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.typicalText

      *
+     *
For the Mobile theme, this is not supported.

+     *
+     *  @see spark.components.RichEditableText#typicalText
+     *
      *  @default null
-     *
-     *  @see spark.components.RichEditableText#typicalText
-     *
+     *
      *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.0
-     *  @productversion Flex 4.5
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get typicalText():String
     {
@@ -804,8 +817,10 @@
     [Inspectable(category="General", defaultValue="false")]

     /**
-     *  @copy spark.components.RichEditableText#displayAsPassword
-     *
+     *  @copy flash.text.TextField#displayAsPassword
+     *
+     *  @default false
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -849,8 +864,17 @@
     [Inspectable(category="General", defaultValue="true")]

     /**
-     *  @copy spark.components.RichEditableText#editable
-     *
+     *  Specifies whether the text is editable.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.editable

+     *
+     *
For the Mobile theme, see
+     *  spark.components.supportClasses.StyleableTextField.editable

+     *
+     *  @see spark.components.RichEditableText#editable
+     *  @see spark.components.supportClasses.StyleableTextField#editable
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -891,7 +915,12 @@
     //----------------------------------

     /**
-     *  @copy spark.components.RichEditableText#enableIME
+     *  A flag that indicates whether the IME should
+     *  be enabled when the component receives focus.
+     *
+     *
For the Mobile theme, this is not supported.

+     *
+     *  @see spark.components.RichEditableText#enableIME
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -908,100 +937,14 @@
     //----------------------------------

     /**
-     *  @copy spark.components.RichEditableText#imeMode
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get imeMode():String
-    {
-        var richEditableText:RichEditableText = textDisplay as RichEditableText;
-
-        if (richEditableText)
-            return richEditableText.imeMode;
-
-        // want the default to be null
-        var v:* = textDisplay ? undefined : textDisplayProperties.imeMode;
-        return (v === undefined) ? null : v;
-    }
-
-    /**
-     *  @private
-     */
-    public function set imeMode(value:String):void
-    {
-        var richEditableText:RichEditableText = textDisplay as RichEditableText;
-
-        if (textDisplay)
-        {
-            if (richEditableText)
-                richEditableText.imeMode = value;
-            textDisplayProperties = BitFlagUtil.update(
-                uint(textDisplayProperties), IME_MODE_PROPERTY_FLAG, true);
-        }
-        else
-        {
-            textDisplayProperties.imeMode = value;
-        }
-
-        // Generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    //----------------------------------
-    //  maxChars
-    //----------------------------------
-
-    [Inspectable(category="General", defaultValue="0")]
-
-    /**
-     *  @copy spark.components.RichEditableText#maxChars
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function get maxChars():int
-    {
-        if (textDisplay)
-            return textDisplay.maxChars;
-
-        // want the default to be 0
-        var v:* = textDisplayProperties.maxChars;
-        return (v === undefined) ? 0 : v;
-    }
-
-    /**
-     *  @private
-     */
-    public function set maxChars(value:int):void
-    {
-        if (textDisplay)
-        {
-            textDisplay.maxChars = value;
-            textDisplayProperties = BitFlagUtil.update(
-                uint(textDisplayProperties), MAX_CHARS_PROPERTY_FLAG, true);
-        }
-        else
-        {
-            textDisplayProperties.maxChars = value;
-        }
-
-        // Generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    //----------------------------------
-    //  restrict
-    //----------------------------------
-
-    [Inspectable(category="General", defaultValue="null")]
-
-    /**
-     *  @copy spark.components.RichEditableText#restrict
+     *  Specifies the IME (input method editor) mode.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.imeMode

+     *
+     *
For the Mobile theme, this is not supported.

+     *
+     *  @see spark.components.RichEditableText#imeMode
      *
      *  @default null
      *
@@ -1010,30 +953,35 @@
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get restrict():String
-    {
+    public function get imeMode():String
+    {
+        var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
+        if (richEditableText)
+            return richEditableText.imeMode;
+
+        // want the default to be null
+        var v:* = textDisplay ? undefined : textDisplayProperties.imeMode;
+        return (v === undefined) ? null : v;
+    }
+
+    /**
+     *  @private
+     */
+    public function set imeMode(value:String):void
+    {
+        var richEditableText:RichEditableText = textDisplay as RichEditableText;
+
         if (textDisplay)
-            return textDisplay.restrict;
-
-        // want the default to be null
-        var v:* = textDisplayProperties.restrict;
-        return (v === undefined) ? null : v;
-    }
-
-    /**
-     *  @private
-     */
-    public function set restrict(value:String):void
-    {
-        if (textDisplay)
-        {
-            textDisplay.restrict = value;
+        {
+            if (richEditableText)
+                richEditableText.imeMode = value;
             textDisplayProperties = BitFlagUtil.update(
-                uint(textDisplayProperties), RESTRICT_PROPERTY_FLAG, true);
+                uint(textDisplayProperties), IME_MODE_PROPERTY_FLAG, true);
         }
         else
         {
-            textDisplayProperties.restrict = value;
+            textDisplayProperties.imeMode = value;
         }

         // Generate an UPDATE_COMPLETE event.
@@ -1041,19 +989,125 @@
     }

     //----------------------------------
-    //  selectable
-    //----------------------------------
-
-    [Inspectable(category="General", defaultValue="true")]
-
-    /**
-     *  @copy spark.components.RichEditableText#selectable
+    //  maxChars
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="0")]
+
+    /**
+     *  @copy flash.text.TextField#maxChars
+     *
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get maxChars():int
+    {
+        if (textDisplay)
+            return textDisplay.maxChars;
+
+        // want the default to be 0
+        var v:* = textDisplayProperties.maxChars;
+        return (v === undefined) ? 0 : v;
+    }
+
+    /**
+     *  @private
+     */
+    public function set maxChars(value:int):void
+    {
+        if (textDisplay)
+        {
+            textDisplay.maxChars = value;
+            textDisplayProperties = BitFlagUtil.update(
+                uint(textDisplayProperties), MAX_CHARS_PROPERTY_FLAG, true);
+        }
+        else
+        {
+            textDisplayProperties.maxChars = value;
+        }
+
+        // Generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
+    //----------------------------------
+    //  restrict
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="null")]
+
+    /**
+     *  @copy flash.text.TextField#restrict
+     *
+     *  @default null
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
+    public function get restrict():String
+    {
+        if (textDisplay)
+            return textDisplay.restrict;
+
+        // want the default to be null
+        var v:* = textDisplayProperties.restrict;
+        return (v === undefined) ? null : v;
+    }
+
+    /**
+     *  @private
+     */
+    public function set restrict(value:String):void
+    {
+        if (textDisplay)
+        {
+            textDisplay.restrict = value;
+            textDisplayProperties = BitFlagUtil.update(
+                uint(textDisplayProperties), RESTRICT_PROPERTY_FLAG, true);
+        }
+        else
+        {
+            textDisplayProperties.restrict = value;
+        }
+
+        // Generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
+    //----------------------------------
+    //  selectable
+    //----------------------------------
+
+    [Inspectable(category="General", defaultValue="true")]
+
+    /**
+     *  A flag indicating whether the content is selectable.  On a Desktop, a user can
+     *  select content with the mouse or with the keyboard when the control has
+     *  keyboard focus.  On a touch interaction device, a user can select text with
+     *  their fingers once they've entered into selection mode for the text component.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.selectable

+     *
+     *
For the Mobile theme, see
+     *  spark.components.supportClasses.StyleableTextField.selectable

+     *
+     *  @see spark.components.RichEditableText#selectable
+     *  @see spark.components.supportClasses.StyleableTextField#selectable
+     *
+     *  @default true
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
     public function get selectable():Boolean
     {
         if (textDisplay)
@@ -1094,7 +1148,18 @@
     [Bindable("selectionChange")]

     /**
-     *  @copy spark.components.RichEditableText#selectionActivePosition
+     *  A character position, relative to the beginning of the
+     *  text String, specifying the end of the selection
+     *  that moves when the selection is extended with the arrow keys.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.selectionActivePosition

+     *
+     *
For the Mobile theme, see
+     *  spark.components.supportClasses.StyleableTextField.selectionActivePosition

+     *
+     *  @see spark.components.RichEditableText#selectionActivePosition
+     *  @see spark.components.supportClasses.StyleableTextField#selectionActivePosition
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1116,8 +1181,19 @@
     [Bindable("selectionChange")]

     /**
-     *  @copy spark.components.RichEditableText#selectionAnchorPosition
-     *
+     *  A character position, relative to the beginning of the
+     *  text String, specifying the end of the selection
+     *  that stays fixed when the selection is extended with the arrow keys.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.selectionAnchorPosition

+     *
+     *
For the Mobile theme, see
+     *  spark.components.supportClasses.StyleableTextField.selectionAnchorPosition

+     *
+     *  @see spark.components.RichEditableText#selectionAnchorPosition
+     *  @see spark.components.supportClasses.StyleableTextField#selectionAnchorPosition
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -1135,10 +1211,17 @@
     [Inspectable(category="General", enumeration="always,whenActive,whenFocused", defaultValue="whenFocused")]

     /**
-     *  @copy spark.components.RichEditableText#selectionHighlighting
-     *
+     *  Determines when the text selection is highlighted.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.selectionHighlighting

+     *
+     *
For the Mobile theme, this is not supported.

+     *
+     *  @see spark.components.RichEditableText#selectionHighlighting
+     *
      *  @default TextSelectionHighlighting.WHEN_FOCUSED
-     *
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -1187,7 +1270,18 @@
     [Inspectable(category="General", defaultValue="")]

     /**
-     *  @copy spark.components.RichEditableText#text
+     *  The text displayed by this text component.
+     *
+     *
For the Spark theme, see
+     *  spark.components.RichEditableText.text

+     *
+     *
For the Mobile theme, see
+     *  spark.components.supportClasses.StyleableTextField.text

+     *
+     *  @see spark.components.RichEditableText#text
+     *  @see spark.components.supportClasses.StyleableTextField#text
+     *
+     *  @default ""
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1321,7 +1415,7 @@
             // Focus on this, rather than the inner RET component.
             textDisplay.focusEnabled = false;

-            // Start listening for various events from the RichEditableText.
+            // Start listening for various events from the IEditableText.

             textDisplay.addEventListener(SelectionEvent.SELECTION_CHANGE,
                                          textDisplay_selectionChangeHandler);
@@ -1354,7 +1448,7 @@
             // textDisplayProperties.
             textDisplayRemoved();

-            // Stop listening for various events from the RichEditableText.
+            // Stop listening for various events from the IEditableText.

             textDisplay.removeEventListener(SelectionEvent.SELECTION_CHANGE,
                                             textDisplay_selectionChangeHandler);
@@ -1407,7 +1501,7 @@

     /**
      *  @private
-     *  Focus should always be on the internal RichEditableText.
+     *  Focus should always be on the internal textDisplay.
      */
     override public function setFocus():void
     {


fix upload process

fix upload process

--- src/milkshape/media/flash/src/cc/milkshape/grid/process/SquareProcessController.as
+++ src/milkshape/media/flash/src/cc/milkshape/grid/process/SquareProcessController.as
@@ -25,7 +25,7 @@
 		public function book(posX:int, posY:int, issueSlug:String):void
 		{
 			_responder = new Responder(_book, _onFault);
-			Gateway.getInstance().call("square.book", _responder, posY, posX, issueSlug);
+			Gateway.getInstance().call("square.book", _responder, posX, posY, issueSlug);
 		}

 		private function _book(result:Object):void
@@ -39,7 +39,7 @@
 		public function release(posX:int, posY:int, issueSlug:String):void
 		{
 			_responder = new Responder(_released, _onFault);
-			Gateway.getInstance().call("square.release", _responder, posY, posX, issueSlug);
+			Gateway.getInstance().call("square.release", _responder, posX, posY, issueSlug);
 		}

 		private function _released(result:Object):void
@@ -50,7 +50,7 @@
 		public function loadTemplate(posX:int, posY:int, issueSlug:String):void
 		{
 			_responder = new Responder(_template, _onFault);
-			Gateway.getInstance().call("square.template", _responder, posY, posX, issueSlug);
+			Gateway.getInstance().call("square.template", _responder, posX, posY, issueSlug);
 		}

 		public function template():void
@@ -78,7 +78,7 @@
 					var data:ByteArray = new ByteArray();
 					_fileUpload.data.readBytes(data, 0, _fileUpload.data.length);
 					_responder = new Responder(_uploaded, _onFault);
-					Gateway.getInstance().call("square.fill", _responder, posY, posX, issueSlug, data);
+					Gateway.getInstance().call("square.fill", _responder, posX, posY, issueSlug, data);
 					trace("test");
 					dispatchEvent(new SquareProcessEvent(SquareProcessEvent.UPLOADING2));
 				}


Docs on timestamp encoder.

Docs on timestamp encoder.

--- driver/src/main/flex/org/postgresql/codec/encode/TimestamptzIn.as
+++ driver/src/main/flex/org/postgresql/codec/encode/TimestamptzIn.as
@@ -13,6 +13,11 @@
         private var _dateFormatter:DateFormatter;
         private var _sendUTC:Boolean;

+        /**
+         * Constructor.
+         *
+         * @param sendUTC whether to send incoming timestamps as UTC or local time
+         */
         public function TimestamptzIn(sendUTC:Boolean) {
              _dateFormatter = new DateFormatter();
              // The ISO format is understood regardless of DateStyle
@@ -20,6 +25,9 @@
              _sendUTC = sendUTC;
         }

+        /**
+         * @inheritDoc
+         */
         public function encode(bytes:ICDataOutput, value:Object, format:int, serverParams:Object):void {
             switch (format) {
                 case EncodingFormat.TEXT:
@@ -44,6 +52,9 @@
             }
         }

+        /**
+         * @inheritDoc
+         */
         public function getInputOid(clazz:Class):int {
             return Oid.TIMESTAMPTZ;
         }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -47,7 +47,6 @@
 import mx.events.PopUpRequest;
 import mx.events.SandboxBridgeEvent;
 import mx.events.SandboxBridgeRequest;
-import mx.events.ShowAlertRequest;
 import mx.events.SizeRequest;
 import mx.managers.ISystemManager;
 import mx.managers.SystemManager;
@@ -58,6 +57,7 @@
 import mx.events.MarshalEvent;
 import mx.core.UIComponent;
 import mx.events.MarshalMouseEvent;
+import mx.core.IApplicationLoader;

 use namespace mx_internal;

@@ -258,8 +258,13 @@

         if (!sm)
         {
-            //trace("error: popup root was not SystemManager");
-            return; // and maybe a nice error message
+            // check if parent is our sandbox root
+            sm = ISystemManager2(SystemManagerGlobals.topLevelSystemManagers[0]);
+            if (sm.getSandboxRoot() != parent)
+            {
+                //trace("error: popup root was not SystemManager");
+                return; // and maybe a nice error message
+            }
         }

 		var smp:ISystemManager2 = sm;
@@ -268,11 +273,10 @@
 		// the popup. The System Manager Proxy is the display object
 		// added to the top-level system manager's children, not
 		// the popup itself.
-		var sbRoot:DisplayObject = null;
+		var sbRoot:DisplayObject = sm.getSandboxRoot();
 		var request:PopUpRequest = null;
 		if (sm.useBridge())
 		{
-			sbRoot = sm.getSandboxRoot();
 			if (sbRoot != sm)
 			{
 				smp = new SystemManagerProxy(sm);
@@ -357,8 +361,8 @@
             o._mouseDownOutsideHandler  = nonmodalMouseDownOutsideHandler;
             o._mouseWheelOutsideHandler = nonmodalMouseWheelOutsideHandler;

-            sm.addEventListener(MouseEvent.MOUSE_DOWN,  o.mouseDownOutsideHandler);
-            sm.addEventListener(MouseEvent.MOUSE_WHEEL, o.mouseWheelOutsideHandler, true);
+            sbRoot.addEventListener(MouseEvent.MOUSE_DOWN,  o.mouseDownOutsideHandler);
+            sbRoot.addEventListener(MouseEvent.MOUSE_WHEEL, o.mouseWheelOutsideHandler, true);

 //            SystemManager(smp).addEventListenerToStage(MouseEvent.MOUSE_DOWN,  o.mouseDownOutsideHandler);
 //            SystemManager(smp).addEventListenerToStage(MouseEvent.MOUSE_WHEEL, o.mouseWheelOutsideHandler, true);
@@ -366,8 +370,8 @@
             window.visible = visibleFlag;
         }

-        sm.addEventListener(MarshalMouseEvent.MOUSE_DOWN,  o.marshalMouseOutsideHandler);
-        sm.addEventListener(MarshalMouseEvent.MOUSE_WHEEL, o.marshalMouseOutsideHandler, true);
+        sbRoot.addEventListener(MarshalMouseEvent.MOUSE_DOWN,  o.marshalMouseOutsideHandler);
+        sbRoot.addEventListener(MarshalMouseEvent.MOUSE_WHEEL, o.marshalMouseOutsideHandler, true);

         // Listen for unload so we know to kill the window (and the modalWindow if modal)
         // this handles _all_ cleanup
@@ -430,11 +434,85 @@
         const o:PopUpData = findPopupInfoByOwner(popUp);
         if (o && o.parent)
         {
-            var pt:Point = new Point(0, 0);
+            var systemManager:ISystemManager2 = o.systemManager;
+            var x:Number;
+            var y:Number;
+            var appWidth:Number;
+            var appHeight:Number;
+            var parentWidth:Number;
+            var parentHeight:Number;
+            var s:Rectangle;            // the screen
+            var rect:Rectangle
+            var clippingOffset:Point = new Point();
+            var pt:Point;
+            var isTopLevelRoot:Boolean;
+            var sbRoot:DisplayObject = ISystemManager2(systemManager).getSandboxRoot();
+
+            // Only need to calc the visible rect when the sandbox root is an untrusted application.
+            // Otherwise the alert will float over the entire application.
+            if (systemManager != sbRoot)
+            {
+                var request:MarshalEvent = new MarshalEvent(MarshalEvent.SYSTEM_MANAGER, false, false,
+                                                            "isTopLevelRoot");
+                sbRoot.dispatchEvent(request);
+                isTopLevelRoot = Boolean(request.value);
+            }
+            else
+                isTopLevelRoot = systemManager.isTopLevelRoot();
+
+            if (isTopLevelRoot)
+            {
+                // The sandbox root is the top level root.
+                // The application width is just the screen width.
+                s = systemManager.screen;
+                appWidth = s.width;
+                appHeight = s.height;
+            }
+            else
+            {
+                if (systemManager != sbRoot)
+                {
+                    request = new MarshalEvent(MarshalEvent.SYSTEM_MANAGER, false, false,
+                                            "getVisibleApplicationRect");
+                    sbRoot.dispatchEvent(request);
+                    rect = Rectangle(request.value);
+                }
+                else
+                    rect = ISystemManager2(systemManager).getVisibleApplicationRect();
+
+                // Offset the top, left of the window to bring it into view.
+                clippingOffset = new Point(rect.x, rect.y);
+                clippingOffset = DisplayObject(systemManager).globalToLocal(clippingOffset);
+                appWidth = rect.width;
+                appHeight = rect.height;
+            }
+
+            // If parent is a UIComponent, check for clipping between
+            // the object and its SystemManager
+            if (o.parent is UIComponent)
+            {
+                rect = UIComponent(o.parent).getVisibleRect();
+                var offset:Point = o.parent.globalToLocal(rect.topLeft);
+                clippingOffset.x += offset.x;
+                clippingOffset.y += offset.y;
+                parentWidth = rect.width;
+                parentHeight = rect.height;
+            }
+            else
+            {
+                parentWidth = o.parent.width;
+                parentHeight = o.parent.height;
+            }
+
+            // The appWidth may smaller than parentWidth if the application is
+            // clipped by the parent application.
+            x = Math.max(0, (Math.min(appWidth, parentWidth) - popUp.width) / 2);
+            y = Math.max(0, (Math.min(appHeight, parentHeight) - popUp.height) / 2);
+
+            pt = new Point(clippingOffset.x, clippingOffset.y);
             pt = o.parent.localToGlobal(pt);
             pt = popUp.parent.globalToLocal(pt);
-            popUp.move(Math.round((o.parent.width - popUp.width) / 2) + pt.x,
-                       Math.round((o.parent.height - popUp.height) / 2) + pt.y);
+            popUp.move(Math.round(x) + pt.x, Math.round(y) + pt.y);
         }
     }

@@ -643,6 +721,16 @@
                                                 o:PopUpData,
                                                 visibleFlag:Boolean):void
     {
+        // if our first target is a sandbox root that is the top level root,
+        // then we don't need to send a modal request.
+        if (!o.isRemoteModalWindow && sm != sbRoot)
+        {
+            var request:MarshalEvent = new MarshalEvent(MarshalEvent.SYSTEM_MANAGER, false, false,
+                                                        "isTopLevelRoot");
+            sbRoot.dispatchEvent(request);
+            if (Boolean(request.value))
+                return;
+        }
         var modalRequest:ModalWindowRequest = new ModalWindowRequest(type,
                                                                  !o.isRemoteModalWindow && sm != sbRoot,
                                                                  visibleFlag,
@@ -668,6 +756,8 @@
      *  @param sm The system manager that hosts the modal window
      *  @param modalWindow The base area of the mask
      *  @param exclude The area to exlude from the mask, may be null.
+     *  @param excludeRect An optionally rectangle that is included in the area
+     *  to exclude. The rectangle is in global coordinates.
      *  @param mask A non-null sprite. The mask is rewritten for each call.
      *
      */
@@ -679,16 +769,23 @@
     {
         var modalBounds:Rectangle = modalWindow.getBounds(DisplayObject(sm));
         var excludeBounds:Rectangle;
-
-        if (exclude is UIComponent)
-            excludeBounds = UIComponent(exclude).getVisibleRect(DisplayObject(sm));
+        var pt:Point;
+
+        if (exclude is IApplicationLoader)
+        {
+            excludeBounds = IApplicationLoader(exclude).getVisibleApplicationRect();
+            pt = new Point(excludeBounds.x, excludeBounds.y);
+            pt = DisplayObject(sm).globalToLocal(pt);
+            excludeBounds.x = pt.x;
+            excludeBounds.y = pt.y;
+        }
         else
             excludeBounds = DisplayObject(exclude).getBounds(DisplayObject(sm));

         // apply excludeRect to the result
         if (excludeRect)
         {
-            var pt:Point = new Point(excludeRect.x, excludeRect.y);
+            pt = new Point(excludeRect.x, excludeRect.y);
             pt = DisplayObject(sm).globalToLocal(pt);
             var rect:Rectangle = new Rectangle(pt.x, pt.y, excludeRect.width, excludeRect.height);
             excludeBounds = excludeBounds.intersection(rect);
@@ -947,20 +1044,27 @@
         if (sm.useBridge())
         {
             var sbRoot:DisplayObject = sm.getSandboxRoot();
+
+            // if our first target is a sandbox root that is the top level root,
+            // then we don't need to send a modal request.
+            if (!o.isRemoteModalWindow && sm != sbRoot)
+            {
+                var request:MarshalEvent = new MarshalEvent(MarshalEvent.SYSTEM_MANAGER, false, false,
+                                                            "isTopLevelRoot");
+                sbRoot.dispatchEvent(request);
+                if (Boolean(request.value))
+                    return;
+            }
+
             var modalRequest:ModalWindowRequest = new ModalWindowRequest(ModalWindowRequest.HIDE,
                                                                          !o.isRemoteModalWindow && sm != sbRoot,
+                                                                         false,
                                                                          destroy);
             var bridge:IEventDispatcher = sm.sandboxBridgeGroup.parentBridge;
             var target:IEventDispatcher;
-
             modalRequest.requestor = bridge;

-            if (sm == sbRoot)
-                target = sm.sandboxBridgeGroup.parentBridge;
-            else
-                target = sbRoot;
-
-            target.dispatchEvent(modalRequest);
+            bridge.dispatchEvent(modalRequest);
         }

     }
@@ -997,72 +1101,6 @@
         return null;
     }

-
-    /**
-     *   @private
-     *
-     *   @return true if the message should be processed, false if it has
-     *           been forwarded and no other action is required.
-     */
-    private function preProcessModalWindowRequest(request:ModalWindowRequest,
-                                                  sm:ISystemManager2,
-                                                  sbRoot:DisplayObject):Boolean
-    {
-        // should we process this message?
-        if (request.skip)
-        {
-            // skipping this sandbox,
-            // but don't skip the next one.
-            request.skip = false;
-
-            if (sm.useBridge())
-            {
-                var bridge:IEventDispatcher = sm.sandboxBridgeGroup.parentBridge;
-                request.requestor = bridge;
-                bridge.dispatchEvent(request);
-            }
-            return false;
-        }
-
-        // if we are not the sandbox root, dispatch the message to the sandbox root.
-        if (sm != sbRoot)
-        {
-            var forwardRequest:Boolean = false;
-
-            // convert exclude component into a rectangle and forward to parent bridge.
-            if (request.type == ModalWindowRequest.CREATE ||
-                request.type == ModalWindowRequest.SHOW)
-            {
-                var exclude:IUIComponent = sm.sandboxBridgeGroup.getChildBridgeOwner(request.requestor) as IUIComponent;
-                var excludeRect:Rectangle = UIComponent(exclude).getVisibleRect(DisplayObject(sm));
-                var pt:Point = (DisplayObject(sm).localToGlobal(excludeRect.topLeft));
-                excludeRect.x = pt.x;
-                excludeRect.y = pt.y;
-                request.data = excludeRect;
-                forwardRequest = true;
-            }
-            else if (request.type == ModalWindowRequest.HIDE)
-                forwardRequest = true;
-
-            if (forwardRequest)
-            {
-                bridge = sm.sandboxBridgeGroup.parentBridge;
-                request.requestor = bridge;
-                request.skip = false;
-
-                // The HIDE request does not need to be processed by each
-                // application, so dispatch it directly to the sandbox root.
-                if (request.type == ModalWindowRequest.HIDE)
-                    sbRoot.dispatchEvent(request);
-                else
-                    bridge.dispatchEvent(request);
-                return false;
-            }
-        }
-
-        return true;
-    }
-
     //--------------------------------------------------------------------------
     //
     //  Event handlers
@@ -1086,9 +1124,6 @@
         var sm:ISystemManager2 = getTopLevelSystemManager(DisplayObject(ApplicationGlobals.application));
         var sbRoot:DisplayObject = sm.getSandboxRoot();

-        if (!preProcessModalWindowRequest(request, sm, sbRoot))
-            return;
-
         // process the message
         var popUpData:PopUpData = new PopUpData();
         popUpData.isRemoteModalWindow = true;
@@ -1132,9 +1167,6 @@
         var sm:ISystemManager2 = getTopLevelSystemManager(DisplayObject(ApplicationGlobals.application));
         var sbRoot:DisplayObject = sm.getSandboxRoot();

-        if (!preProcessModalWindowRequest(request, sm, sbRoot))
-            return;
-
         // the highest popUpData in the list is the most recent modal window.
         // sanity check that the popupdata is really a modal window with a null
         // parent and popup window.
@@ -1173,9 +1205,6 @@

         var sm:ISystemManager2 = getTopLevelSystemManager(DisplayObject(ApplicationGlobals.application));
         var sbRoot:DisplayObject = sm.getSandboxRoot();
-
-        if (!preProcessModalWindowRequest(request, sm, sbRoot))
-            return;

         // the highest popUpData in the list is the most recent modal window.
         // sanity check that the popupdata is really a modal window with a null
@@ -1648,8 +1677,11 @@
     /**
      *  @private
      */
-    public function marshalMouseOutsideHandler(event:MarshalMouseEvent):void
-    {
+    public function marshalMouseOutsideHandler(event:Event):void
+    {
+        if (!(event is MarshalMouseEvent))
+            event = MarshalMouseEvent.marshal(event);
+
         if (owner)
             owner.dispatchEvent(event);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2607
Author:   jimurphy@adobe.com
Date:     2008-07-24T14:18:24.312344Z

Log Message:
-----------
Merge 3.0.x revisions [2587,2601] -> trunk

Modified Paths:
--------------
<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/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>

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

--- frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -129,9 +129,9 @@

         if (sbRoot == sm)
         {
-            sbRoot.addEventListener(ModalWindowRequest.CREATE, createModalWindowRequestHandler);
-            sbRoot.addEventListener(ModalWindowRequest.SHOW, showModalWindowRequest);
-            sbRoot.addEventListener(ModalWindowRequest.HIDE, hideModalWindowRequest);
+            sbRoot.addEventListener(ModalWindowRequest.CREATE, createModalWindowRequestHandler, false, 0, true);
+            sbRoot.addEventListener(ModalWindowRequest.SHOW, showModalWindowRequest, false, 0, true);
+            sbRoot.addEventListener(ModalWindowRequest.HIDE, hideModalWindowRequest, false, 0, true);
         }
     }


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

--- frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as
+++ frameworks/projects/rpc/src/mx/messaging/errors/MessagingError.as
@@ -0,0 +1,67 @@
+/*************************************************************************
+ *
+ * ADOBE CONFIDENTIAL
+ * __________________
+ *
+ *  [2002] - [2007] Adobe Systems Incorporated
+ *  All Rights Reserved.
+ *
+ * NOTICE:  All information contained herein is, and remains
+ * the property of Adobe Systems Incorporated and its suppliers,
+ * if any.  The intellectual and technical concepts contained
+ * herein are proprietary to Adobe Systems Incorporated
+ * and its suppliers and may be covered by U.S. and Foreign Patents,
+ * patents in process, and are protected by trade secret or copyright law.
+ * Dissemination of this information or reproduction of this material
+ * is strictly forbidden unless prior written permission is obtained
+ * from Adobe Systems Incorporated.
+ */
+package mx.messaging.errors
+{
+
+/**
+ *  This is the base class for any messaging related error.
+ *  It allows for less granular catch code.
+ */
+public class MessagingError extends Error
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+	 *  Constructs a new instance of a MessagingError with the
+	 *  specified message.
+	 *
+	 *  @param msg String that contains the message that describes the error.
+     */
+    public function MessagingError(msg:String)
+    {
+        super(msg);
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Returns the string "[MessagingError]" by default, and includes the message property if defined.
+     *
+     *  @return String representation of the MessagingError.
+     */
+    public function toString():String
+    {
+        var value:String = "[MessagingError";
+        if (message != null)
+            value += " message='" + message + "']";
+        else
+            value += "]";
+        return value;
+    }
+}
+
+}


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

--- frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.as
+++ frameworks/projects/mx/src/mx/controls/videoClasses/NCManager.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.controls.videoClasses
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as
+++ frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as
@@ -19,6 +19,12 @@
  *  they always contain a SOAP XML envelope request body
  *  that will always be sent using HTTP POST.
  *  They also allow a SOAP action to be specified.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion BlazeDS 4
+ *  @productversion LCDS 3
  */
 public class SOAPMessage extends HTTPRequestMessage
 {
@@ -30,6 +36,12 @@

     /**
      *  The HTTP header that stores the SOAP action for the SOAPMessage.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public static const SOAP_ACTION_HEADER:String = "SOAPAction";

@@ -41,6 +53,12 @@

     /**
      *  Constructs an uninitialized SOAPMessage.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function SOAPMessage()
     {
@@ -61,6 +79,12 @@
      *
      *  @return Returns the name of the remote method/operation that
      *  will be called.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion BlazeDS 4
+     *  @productversion LCDS 3
      */
     public function getSOAPAction():String
     {


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

--- frameworks/projects/automation/src/mx/automation/tabularData/TileBaseTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/TileBaseTabularData.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.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 20083
Author:   cframpto@adobe.com
Date:     2011-02-03T01:30:21.215519Z

Log Message:
-----------
Fix vertical alignment of text in mobile TextInput, update ASdoc for StyleableTextField styles and include StyleableTextFieldStyles.as in StyleableTextField so style metadata is correct.

QE notes:
Doc notes:
Bugs: SDK-29291, SDK-27522
Reviewer: Ryan
Tests run: cyclone
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as
@@ -12,7 +12,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#lineBreak
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -24,7 +24,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#paddingBottom
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -36,7 +36,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#paddingLeft
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -48,7 +48,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#paddingRight
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -60,7 +60,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#paddingTop
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -72,7 +72,7 @@
 /**
  *  @copy flashx.textLayout.formats.ITextLayoutFormat#verticalAlign
  *
- *
TLF styles are not supported in the mobile theme.

+ *
This style is not supported in the mobile theme.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10


fix wrong computation for _computedVisibility because _insideFrustum is always false when frustum culling is disabled

--- src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
+++ src/aerys/minko/scene/controller/mesh/MeshVisibilityController.as
@@ -149,7 +149,7 @@
         private function visiblityChangedHandler(node : ISceneNode, visibility : Boolean) : void
         {
             _computedVisibility = _mesh.visible && _mesh.parent.computedVisibility
-                && _insideFrustum;
+                && (_frustumCulling == FrustumCulling.DISABLED || _insideFrustum);
             _mesh.computedVisibilityChanged.execute(_mesh, _computedVisibility);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17001
Author:   aharui@adobe.com
Date:     2010-07-21T19:28:19.704432Z

Log Message:
-----------
Add new code path for subapp printing with new resizing code.

QE notes: none
Doc notes: none
Bugs: SDK-25591
Reviewer: Darrell
Tests run: checkintests
Is noteworthy for integration: no

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

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

--- frameworks/projects/framework/src/mx/printing/FlexPrintJob.as
+++ frameworks/projects/framework/src/mx/printing/FlexPrintJob.as
@@ -450,9 +450,18 @@
         {
             if (!isNaN(appExplicitWidth)) //&& !isNaN(appExplicitHeight))
             {
-                UIComponent(obj).setActualSize(appExplicitWidth,appExplicitHeight);
-                //UIComponent(obj).explicitWidth = appExplicitWidth;
-                //UIComponent(obj).explicitHeight = appExplicitHeight;
+				// use setActualSize so it doesn't invalidate.
+				// nobody else should be resizing unless it is a sub-app
+				UIComponent(obj).setActualSize(appExplicitWidth,appExplicitHeight);
+
+				// is it a sub-app?
+				if (!obj.systemManager.isTopLevelRoot())
+				{
+					// invalidate for sub-apps since they have to be re-layed out by
+					// the SWFLoader in some cases
+                	UIComponent(obj).explicitWidth = appExplicitWidth;
+                	UIComponent(obj).explicitHeight = appExplicitHeight;
+				}

                 appExplicitWidth = NaN;
                 appExplicitHeight = NaN;


Transferred from the Adobe Open Source Subversion Repository

Revision: 16262
Author:   dloverin@adobe.com
Date:     2010-05-20T18:44:39.210129Z

Log Message:
-----------
Move mx components out of framework.swc into mx.swc

The new mx.swc library lives in the libs/mx directory.

QE notes: Of the 5 failures I saw: 1 was intermittent and 4 are not a bug.
Managers/StyleManager/AdvancedCSS/descendantSelectors/AdvancedCSS_descendantSelectors_Style descendantSelector_combining_nested_style
    This failure was intermittent.

mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ApplicationControlBar_By
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_FromTo
mx/effects/Resize/Containers/Resize_Containers Effects_Resize_Containers_ControlBar_By
    These failures are due to my code changes but I believe the old behavior was incorrect. When a control bar is the last child in a Panel it should appear at the bottom of the Panel. In the test case an ApplicationControlBar/ContorlBar is added to an empty Panel, making it the last child in the Panel. So it should appear at the bottom of the Panel instead of inside the Panel.

Doc notes: new library, mx.swc
Bugs:
Reviewer: Alex
Tests run:
Is noteworthy for integration: Yes

Modified Paths:
--------------
740 paths were modified

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

--- frameworks/projects/mx/src/mx/styles/metadata/BorderStyles.as
+++ frameworks/projects/mx/src/mx/styles/metadata/BorderStyles.as
@@ -0,0 +1,242 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Background color of the component when it is disabled.
+ *  The global default value is undefined.
+ *  The default value for List controls is 0xDDDDDD (light gray).
+ *  If a container is disabled, the background is dimmed, and the degree of
+ *  dimming is controlled by the disabledOverlayAlpha style.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="backgroundDisabledColor", type="uint", format="Color", inherit="yes", theme="halo")]
+
+/**
+ *  Background image of a component.  This can be an absolute or relative
+ *  URL or class.  You can set either the backgroundColor or the
+ *  backgroundImage. The background image is displayed
+ *  on top of the background color.
+ *  The default value is undefined, meaning "not set".
+ *  If this style and the backgroundColor style are undefined,
+ *  the component has a transparent background.
+ *
+ *
The default skins of most Flex controls are partially transparent. As a result, the background image of
+ *  a container partially "bleeds through" to controls that are in that container. You can avoid this by setting the
+ *  alpha values of the control's fillAlphas property to 1, as the following example shows:
+ *

+ *  <mx:Container backgroundColor="0x66CC66"/>
+ *      <mx:ControlName ... fillAlphas="[1,1]"/>
+ *  </mx:Container>

+ *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="backgroundImage", type="Object", format="File", inherit="no", theme="halo")]
+
+/**
+ *  Scales the image specified by backgroundImage
+ *  to different percentage sizes.
+ *  A value of "100%" stretches the image
+ *  to fit the entire component.
+ *  To specify a percentage value, you must include the percent sign (%).
+ *  The default for the Application container is 100%.
+ *  The default value for all other containers is auto, which maintains
+ *  the original size of the image.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="backgroundSize", type="String", inherit="no", theme="halo")]
+
+/**
+ *  Alpha of the border.
+ *  @default 1
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="borderAlpha", type="Number", inherit="no", theme="spark")]
+
+/**
+ *  Color of the border.
+ *  The default value depends on the component class;
+ *  if not overridden for the class, the default value is 0xB7BABC
+ *  for the Halo theme and 0x696969 for the Spark theme.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="borderColor", type="uint", format="Color", inherit="no", theme="halo, spark")]
+
+/**
+ *  Bounding box sides.
+ *  A space-delimited String that specifies the sides of the border to show.
+ *  The String can contain "left", "top",
+ *  "right", and "bottom" in any order.
+ *  The default value is "left top right bottom",
+ *  which shows all four sides.
+ *
+ *  This style is only used when borderStyle is "solid".
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="borderSides", type="String", inherit="no", theme="halo")]
+
+/**
+ *  The border skin class of the component.
+ *  The default value in all components that do not explicitly
+ *  set their own default for the Halo theme is mx.skins.halo.HaloBorder
+ *  and for the Spark theme is mx.skins.spark.BorderSkin.
+ *  The Panel container has a default value of mx.skins.halo.PanelSkin
+ *  for the Halo theme and mx.skins.spark.BorderSkin for the Spark theme.
+ *  To determine the default value for a component, see the default.css file.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="borderSkin", type="Class", inherit="no")]
+
+/**
+ *  Bounding box style.
+ *  The possible values are "none", "solid",
+ *  "inset", and "outset".
+ *  The default value depends on the component class;
+ *  if not overridden for the class, the default value is "inset".
+ *  The default value for most Containers is "none".
+ *  The "inset" and "outset" values are only
+ *  valid with the halo theme.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="borderStyle", type="String", enumeration="inset,outset,solid,none", inherit="no")]
+
+/**
+ *  Bounding box thickness.
+ *  Only used when borderStyle is set to "solid".
+ *
+ *  @default 1
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="borderThickness", type="Number", format="Length", inherit="no", theme="halo")]
+
+/**
+ *  Visibility of the border.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="borderVisible", type="Boolean", inherit="no", theme="spark")]
+
+/**
+ *  Boolean property that specifies whether the component has a visible
+ *  drop shadow.
+ *  This style is used with borderStyle="solid".
+ *  The default value is false.
+ *
+ *
Note: For drop shadows to appear on containers, set
+ *  backgroundColor or backgroundImage properties.
+ *  Otherwise, the shadow appears behind the container because
+ *  the default background of a container is transparent.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="dropShadowEnabled", type="Boolean", inherit="no", theme="halo")]
+
+/**
+ *  Boolean property that specifies whether the component has a visible
+ *  drop shadow.
+ *  The default value is false.
+ *
+ *
Note: For drop shadows to appear on containers, set
+ *  contentBackgroundColor property.
+ *  Otherwise, the shadow appears behind the container because
+ *  the default background of a container is transparent.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="dropShadowVisible", type="Boolean", inherit="no", theme="spark")]
+
+/**
+ *  Color of the drop shadow.
+ *
+ *  @default 0x000000
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="dropShadowColor", type="uint", format="Color", inherit="yes", theme="halo")]
+
+/**
+ *  Direction of the drop shadow.
+ *  Possible values are "left", "center",
+ *  and "right".
+ *
+ *  @default "center"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="shadowDirection", type="String", enumeration="left,center,right", inherit="no", theme="halo")]
+
+/**
+ *  Distance of the drop shadow.
+ *  If the property is set to a negative value, the shadow appears above the component.
+ *
+ *  @default 2
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="shadowDistance", type="Number", format="Length", inherit="no", theme="halo")]
+
+
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 19099
Author:   cframpto@adobe.com
Date:     2010-12-07T17:59:07.657295Z

Log Message:
-----------
Label - SDK-27952
If there is no text, don't report that it has been truncated, for example if the padding doesn't fit.  Truncated text becomes the toolTip which obscures the actual toolTip.

SkinnableComponent - SDK-28525
add metadata to enabled to workaround outstanding compiler issue

CheckBox, RadioButton - SDK-28651
exclude textAlign style since it has no effect

QE notes:
Doc notes:
Bugs: SDK-27952, SDK-28525, SDK-28651
Reviewer: Darrell
Tests run: 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/CheckBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RadioButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/RadioButton.as
+++ frameworks/projects/spark/src/spark/components/RadioButton.as
@@ -48,6 +48,7 @@

 [Exclude(name="cornerRadius", kind="style")]
 [Exclude(name="icon", kind="style")]
+[Exclude(name="textAlign", kind="style")]

 //--------------------------------------
 //  Other metadata