Transferred from the Adobe Open Source Subversion Repository

Revision: 3057
Author:   jimurphy@adobe.com
Date:     2008-09-02T15:18:38.819662Z

Log Message:
-----------
Merged 3.0.x revisions [2966,2969,2995,3004,3018-3019,3023,3029-3030,3046,3049,3052] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.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/framework/src/mx/managers/dragClasses/DragProxy.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/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/PopUpRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</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/controls/sliderClasses/SliderThumb.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.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/managers/DragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SizeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.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/branches/3.0.x/frameworks/projects/framework/src/mx/events/InterManagerRequest.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/wsdl/WSDL.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/scrollClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/dividedBoxClasses/BoxDivider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootDragEvent.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/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as" copyfrom-rev="3052" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxMouseEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.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/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/EventUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxRootMouseEvent.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/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.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/events/SWFBridgeRequest.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Panel.as
+++ frameworks/projects/mx/src/mx/containers/Panel.as
@@ -45,7 +45,7 @@
 import mx.core.mx_internal;
 import mx.effects.EffectManager;
 import mx.events.CloseEvent;
-import mx.events.SandboxRootMouseEvent;
+import mx.events.SandboxMouseEvent;
 import mx.managers.ISystemManager;
 import mx.styles.ISimpleStyleClient;
 import mx.styles.IStyleClient;
@@ -1779,7 +1779,7 @@
             MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);

         sbRoot.addEventListener(
-            SandboxRootMouseEvent.MOUSE_UP_SOMEWHERE, stage_mouseLeaveHandler);
+            SandboxMouseEvent.MOUSE_UP_SOMEWHERE, stage_mouseLeaveHandler);

         // add the mouse shield so we can drag over untrusted applications.
         systemManager.deployMouseShields(true);
@@ -1799,7 +1799,7 @@
             MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);

         sbRoot.removeEventListener(
-            SandboxRootMouseEvent.MOUSE_UP_SOMEWHERE, stage_mouseLeaveHandler);
+            SandboxMouseEvent.MOUSE_UP_SOMEWHERE, stage_mouseLeaveHandler);

         regX = NaN;
         regY = NaN;


Put MX dependencies in skin

Put MX dependencies in skin

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@4281 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Skin.as
+++ src/laml/display/Skin.as
@@ -2,7 +2,18 @@
 	import flash.display.DisplayObject;
 	import flash.display.Sprite;

+	import mx.core.BitmapAsset;
+	import mx.core.FontAsset;
+	import mx.core.IFlexAsset;
+	import mx.core.IFlexDisplayObject;
+	import mx.core.SpriteAsset;
+
 	public class Skin extends Sprite implements ISkin {
+ 		private var bitmapAsset:BitmapAsset;
+		private var fontAsset:FontAsset;
+		private var iFlexAsset:IFlexAsset;
+		private var iFlexDisplayObject:IFlexDisplayObject;
+		private var spriteAsset:SpriteAsset;

 		public function getBitmapByName(alias:String):DisplayObject {
 			if(hasOwnProperty(alias)) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4884
Author:   aharui@adobe.com
Date:     2009-02-06T23:50:54.358881Z

Log Message:
-----------
sdk-19010  Handle null dataprovider in FxButtonBar.as and add invalidateProperties and other logic to FxListBase

sdk-19006  Fix focus ring bugs in FxButtonBar.

QE Notes: None
Doc Notes: None
Bugs: sdk-19006, sdk-19010.
Reviewer: Glenn
tests: checkintests mustella:FxButtonBar

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -108,6 +108,7 @@
         doingWholesaleChanges = true;

         super.dataProvider = value;
+        invalidateProperties();

         if (dataProvider)
             dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE, collectionChangeHandler);
@@ -364,6 +365,8 @@
             // or should we preserve selectedIndex
             if (selectedIndex >= 0 && dataProvider && selectedIndex < dataProvider.length)
                itemSelected(selectedIndex, true);
+            else if (requiresSelection)
+               _proposedSelectedIndex = 0;
             else
                selectedIndex = -1;
         }
@@ -489,7 +492,10 @@
             _proposedSelectedIndex = maxIndex;
         if (requiresSelection && _proposedSelectedIndex == NO_SELECTION &&
             dataProvider && dataProvider.length > 0)
+        {
+            _proposedSelectedIndex = NO_PROPOSED_SELECTION;
             return false;
+        }

         // Step 2: dispatch the "selectionChanging" event. If preventDefault() is called
         // on this event, the selection change will be cancelled.


Transferred from the Adobe Open Source Subversion Repository

Revision: 9349
Author:   preilly@adobe.com
Date:     2009-08-17T18:32:37.403687Z

Log Message:
-----------
* Added support for using getStyle() in Mxml data binding expressions.
  In addition to the existing "function return watcher" data binding
  functionality, we register to listen for style related change events
  when we see a function marked with [Bindable(style="true")].
  UIComponent's and TextGraphicElement's styleChanged() will now
  dispatch events for "getStyle()" FunctionReturnWatchers to handle.
  When null or "styleName" is passed into styleChanged(), we dispatch
  an "allStylesChanged" event.

QE notes: mxunit test to follow
Doc notes:
Bugs: SDK-20394
Reviewer: Glenn, Pete F, Peter D
Tests run: checkintests, mxunit databinding
Is noteworthy for integration: only if you want to start using it.
Code-level description of changes:

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java

    Modified generateWatcher() to do the AST equivalent of the
    WatcherSetupUtil.vm change.

  modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher.java

    Removed unused isNew variable and added isStyleWatcher variable.

    Modified shouldWriteSelf() to return true if isStyleWatcher is true.

  modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm

    Modified writeFunctionReturnWatcher macro to add a true arg to the
    FunctionReturnWatcher constructor call when isStyleWatcher() is
    true.

  modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java

    Modified evaluate(Context, MetaDataNode) to skip reporting an
    error for no events when style is true.

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java

    Replaced insideCallExpression boolean with callExpressionStack
    Stack.  The "!insideCallExpression" checks were replaced with
    callExpressionStack.isEmpty().

    Modified addBindables() to handle [Bindable(style="true")].

    Made argumentListStack and resetSet more strongly typed.

  frameworks/projects/framework/src/mx/core/UIComponent.as

    Modified styleChanged() to dispatch a "<styleName>Changed" event.

    Added Bindable metadata to getStyle().

  frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as

    Added isStyle variable.

    Modified setupParentObj() to remove the listener for
    "<styleName>Changed" and "allStylesChanged" from the previous
    parent and add listeners to the new parent when isStyle is true.

    Modified eventHandler to notifyListeners() when isStyle is true.

  frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as

    Similar changes to UIComponent.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -983,6 +983,11 @@
         StyleProtoChain.styleChanged(this, styleProp);

         invalidateTextLines();
+
+        if (styleProp && (styleProp != "styleName"))
+            dispatchEvent(new Event(styleProp + "Changed"));
+        else
+            dispatchEvent(new Event("allStylesChanged"));
     }

     //--------------------------------------------------------------------------
@@ -991,6 +996,7 @@
     //
     //--------------------------------------------------------------------------

+    [Bindable(style="true")]
     /**
      *  @inheritDoc
      *


FLEX-34625 Adding some asserts in order to debug the type of UIImpersonator.testDisplay, which seems to be different than when the test runs locally.

--- frameworks/projects/spark/src/tests/spark/skins/spark/FLEX_34625_Tests.as
+++ frameworks/projects/spark/src/tests/spark/skins/spark/FLEX_34625_Tests.as
@@ -18,15 +18,22 @@
 ////////////////////////////////////////////////////////////////////////////////

 package tests.spark.skins.spark {
+    import flash.display.Sprite;
     import flash.events.Event;
     import flash.events.EventDispatcher;
+
+    import mx.core.Container;

     import mx.managers.FocusManager;
     import mx.managers.IFocusManagerContainer;

+    import org.flexunit.asserts.assertNotNull;
+
     import org.flexunit.asserts.assertTrue;
     import org.flexunit.async.Async;
     import org.fluint.uiImpersonation.UIImpersonator;
+
+    import spark.components.Group;

     import spark.components.TextInput;

@@ -40,15 +47,7 @@
         [Before]
         public function setUp():void
         {
-            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
-            focusManager.showFocusIndicator = true;

-            _textInput = new TextInput();
-            _textInput.width = 0;
-            _textInput.height = 0;
-            _textInput.focusManager = focusManager;
-
-            _finishNotifier = new EventDispatcher();
         }

         [After]
@@ -61,6 +60,22 @@
         [Test(async, timeout=500)]
         public function test_focus_skin_with_zero_focus_thickness():void
         {
+            //from setUp(), for debugging
+            assertNotNull("UIImpersonator is not available!", UIImpersonator.testDisplay);
+            assertTrue(UIImpersonator.testDisplay is Sprite);
+            assertTrue(UIImpersonator.testDisplay is Container);
+            assertTrue(UIImpersonator.testDisplay is Group);
+
+            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
+            focusManager.showFocusIndicator = true;
+
+            _textInput = new TextInput();
+            _textInput.width = 0;
+            _textInput.height = 0;
+            _textInput.focusManager = focusManager;
+
+            _finishNotifier = new EventDispatcher();
+
             //given
             UIImpersonator.addChild(_textInput);

@@ -77,6 +92,17 @@
         [Test(async, timeout=500)]
         public function test_focus_skin_with_NaN_focus_thickness():void
         {
+            //from setUp(), for debugging
+            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as IFocusManagerContainer);
+            focusManager.showFocusIndicator = true;
+
+            _textInput = new TextInput();
+            _textInput.width = 0;
+            _textInput.height = 0;
+            _textInput.focusManager = focusManager;
+
+            _finishNotifier = new EventDispatcher();
+
             //given
             UIImpersonator.addChild(_textInput);


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 9419
Author:   aharui@adobe.com
Date:     2009-08-20T16:19:04.456854Z

Log Message:
-----------
2nd attempt to check in prototypes of ControlBars in Panel and Application, Spark Containers in Halo Navigators, Halo ViewStack in Spark ButtonBar.  APIs should match spec but are subject to change from PARB.  Skins are subject to tweaking after XD review

QE Notes: The following tests will fail and need updating:
gumbo/containers/Panel/Properties/Panel_Properties_position Panel_Properties_rotate
apollo/spark/components/Window/properties/window_properties_titleIcon_tests titleIcon_test8

Doc Notes: None
Bugs: None
Reviewer: Darrell, Glenn, Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Application, gumbo/components/ButtonBar, gumbo/containers/Panel, apollo/gumbo/spark/Window, containers/ViewStack, containers/Accordion,
states/Integration/TabNavApp, states/Reparent

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as" copyfrom-rev="9399" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as" copyfrom-rev="9399" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as" copyfrom-rev="9399" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as" copyfrom-rev="9399" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/controls/NavBar.as
+++ frameworks/projects/mx/src/mx/controls/NavBar.as
@@ -23,7 +23,7 @@
 import mx.containers.BoxDirection;
 import mx.containers.ViewStack;
 import mx.core.ClassFactory;
-import mx.core.Container;
+import mx.core.INavigatorContent;
 import mx.core.FlexVersion;
 import mx.core.IFactory;
 import mx.core.IFlexDisplayObject;
@@ -251,7 +251,7 @@
                 if (targetStack)
                 {
                     Button(getChildAt(i)).enabled = value &&
-                            Container(targetStack.getChildAt(i)).enabled;
+                            UIComponent(targetStack.getChildAt(i)).enabled;
                 }
                 else
                 {
@@ -1069,11 +1069,11 @@
                 IndexChangedEvent.CHILD_INDEX_CHANGE, childIndexChangeHandler);

             var numViews:int = targetStack.numChildren;
-            var child:Container;
+            var child:INavigatorContent;

             for (var i:int = 0; i < numViews; i++)
 	        {
-                child = Container(targetStack.getChildAt(i));
+                child = INavigatorContent(targetStack.getChildAt(i));

                 child.removeEventListener("labelChanged", labelChangedHandler);
                 child.removeEventListener("iconChanged", iconChangedHandler);
@@ -1106,7 +1106,7 @@

         for (i = 0; i < numViews; i++)
         {
-            child = Container(targetStack.getChildAt(i));
+            child = INavigatorContent(targetStack.getChildAt(i));
             var item:Button = Button(createNavItem(itemToLabel(child), child.icon));

@@ -1180,7 +1180,7 @@
         if (event.relatedObject.parent != targetStack)
             return;

-        var newChild:Container = Container(event.relatedObject);
+        var newChild:INavigatorContent = INavigatorContent(event.relatedObject);
         var item:Button = Button(createNavItem(itemToLabel(newChild), newChild.icon));
         var index:int = newChild.parent.getChildIndex(DisplayObject(newChild));
         setChildIndex(item, index);
@@ -1259,7 +1259,7 @@
         var itemIndex:int =
             targetStack.getChildIndex(DisplayObject(event.target));

-        updateNavItemLabel(itemIndex, Container(event.target).label);
+        updateNavItemLabel(itemIndex, INavigatorContent(event.target).label);
     }

     /**
@@ -1272,7 +1272,7 @@
         var itemIndex:int =
             targetStack.getChildIndex(DisplayObject(event.target));

-        updateNavItemIcon(itemIndex, Container(event.target).icon);
+        updateNavItemIcon(itemIndex, INavigatorContent(event.target).icon);
     }

     /**


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

--- frameworks/projects/rpc/src/mx/rpc/IResponder.as
+++ frameworks/projects/rpc/src/mx/rpc/IResponder.as
@@ -15,6 +15,11 @@
 /**
  *  This interface provides the contract for any service
  *  that needs to respond to remote or asynchronous calls.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public interface IResponder
 {
@@ -26,6 +31,11 @@
          *
          * @param data Although typed as Object, data is often (but not always)
          * an mx.rpc.events.ResultEvent.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function result(data:Object):void;

@@ -36,6 +46,11 @@
          *
          * @param info Although typed as Object, info is often (but not always)
          * an mx.rpc.events.FaultEvent.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	function fault(info:Object):void;
 }


[feat] add label to likes summary

[feat] add label to likes summary

--- src/main/actionscript/com/dotfold/dotvimstat/view/summary/LikesSummary.as
+++ src/main/actionscript/com/dotfold/dotvimstat/view/summary/LikesSummary.as
@@ -7,6 +7,7 @@

 	import modena.core.Element;
 	import modena.core.ElementContent;
+	import modena.ui.Label;
 	import modena.ui.Stack;

 	/**
@@ -17,6 +18,8 @@
 	public class LikesSummary extends Stack implements IView
 	{
 		public static const ELEMENT_NAME:String = "likesSummary";
+
+		private var _label:Label;

 		/**
 		 * Constructor.
@@ -30,12 +33,27 @@
 		{
 			var content:ElementContent = super.createElementContent();

+			_label = new Label("summaryCount");
+			content.addChild(_label)
+
 			return content;
+		}
+
+		/**
+		 *
+		 */
+		public function set likesCount(value:int):void
+		{
+			_label.text = value.toString();
+			invalidateRender();
 		}

 		override public function validateRender():void
 		{
 			super.validateRender();
+
+			_label.x = (width - _label.width) / 2;
+			_label.y = (height - _label.height) / 2;
 		}
 	}
 }


Don't expect winepath to exist.

Don't expect winepath to exist.

	* build-aux/wine-ld-library-path.as: Get out asap.
	(add_directory): Remove, replaced by $dirs.
	($windirs): Now part of create_wine_directory.

--- build-aux/wine-ld-library-path.as
+++ build-aux/wine-ld-library-path.as
@@ -1,6 +1,14 @@
 						-*- shell-script -*-
 m4_pattern_allow([^URBI_SERVER_FLAGS$])
 URBI_INIT()[
+
+# Exit asap.
+host=@host@
+case $host in
+  (*pw32*|*mingw32*);;
+  (*) error 0 "nothing to do on $host";;
+esac
+

 ## --------------------- ##
 ## Auxiliary functions.  ##
@@ -10,7 +18,7 @@
 [  (-h|--help)    usage;;
    (-t|--to)      shift; where=$1;;
    (-w|--wrapper) shift; process_wrapper "$1";;
-   (*)            add_directory "$1";;
+   (*)            dirs+=" $1";;
 ])[

 # Print usage
@@ -40,17 +48,6 @@
     exit 0
 }

-# add_directory DIR
-# -----------------
-# Add DIR to the output path.
-add_directory ()
-{
-  local dir=$1
-  if test -d "$dir"; then
-    dir=$(winepath -w "$dir")
-    windirs="$windirs;$dir"
-  fi
-}

 # process_wrapper WRAPPER
 # -----------------------
@@ -67,7 +64,7 @@
   for p in $path
   do
     IFS=$save_IFS
-    add_directory "$p"
+    dirs+=" $p"
   done
 }

@@ -85,6 +82,16 @@
       ln -s $f "$WINEPREFIX"
     fi
   done
+
+  # Convert the directories into a format that windows like.
+  local windirs=
+  local dir
+  for dir in $dirs
+  do
+    test ! -d "$dir" ||
+      windirs+=";$(winepath -w "$dir")"
+  done
+
   # Add all the added path to the Path variable in user.reg config
   # file.  That idiotic file may have multiple "Path=".  Only one
   # will have ';'.
@@ -96,12 +103,10 @@
     -e 's/"Path"="(.*;.*)"/"Path"="\1$dirs"/' "$WINEPREFIX/user.reg"
 }

-# By default, installed this here.
+# List of directories to add to the Path.
+dirs=
+# By default, installed this here (--to).
 where=$(pwd)
-# List of directories to add to the Path.
-windirs=
-# If we need wine, setup it.
-host=@host@

 get_options $WINE_LD_LIBRARY_PATH_ARGS "$@"
 verbose "host: $host"
@@ -109,15 +114,11 @@
 # We used to check that we are not running Cygwin underneath.  Does
 # not seem to make any sense here, and MN does not remember why he
 # checked that.  So this check is removed.
-case $host in
-  (*pw32*|*mingw32*)
-    export WINEPREFIX=$where/wine
-    test -d "$WINEPREFIX" ||
-      create_wine_directory
-    verbose "WINEPREFIX='$WINEPREFIX'"
-    echo "WINEPREFIX='$WINEPREFIX'"
-    ;;
-esac
+export WINEPREFIX=$where/wine
+test -d "$WINEPREFIX" ||
+  create_wine_directory
+verbose "WINEPREFIX='$WINEPREFIX'"
+echo "WINEPREFIX='$WINEPREFIX'"

 exit 0
 ]


Log a warning for unhandled commands.

Log a warning for unhandled commands.

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

--- src/as/com/threerings/crowd/client/PlaceController.as
+++ src/as/com/threerings/crowd/client/PlaceController.as
@@ -195,6 +195,8 @@
      */
     public function handleAction (cmd :String, arg :Object) :Boolean
     {
+        Log.getLog(this).warning("Unhandled controller command [cmd=" + cmd +
+            ", arg=" + arg + "].");
         return false; // by default, no action is handled
     }


Fixed spurious warnings about sockets on bureau shut down:
* socketClosed was issuing a warning, presumably because whirled doesn't normally disconnect flash client. Anyway, seems like overkill since the server can disconnect whenever it choosed
* Accoring to adobe, calling Socket.close after the Socket.close event should throw an IOError. Thane holds to this, while flash apparently does not. Make our code neutral by checking for connected prior to calling close

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

--- src/as/com/threerings/presents/client/Communicator.as
+++ src/as/com/threerings/presents/client/Communicator.as
@@ -145,10 +145,12 @@
     protected function shutdown (logonError :Error) :void
     {
         if (_socket != null)  {
-            try {
-                _socket.close();
-            } catch (err :Error) {
-                Log.getLog(this).warning("Error closing failed socket [error=" + err + "].");
+            if (_socket.connected) {
+                try {
+                    _socket.close();
+                } catch (err :Error) {
+                    Log.getLog(this).warning("Error closing failed socket [error=" + err + "].");
+                }
             }
             removeListeners();
             _socket = null;
@@ -288,7 +290,7 @@
      */
     protected function socketClosed (event :Event) :void
     {
-        Log.getLog(this).warning("socket was closed: " + event);
+        Log.getLog(this).info("socket was closed: " + event);
         _client.notifyObservers(ClientEvent.CLIENT_CONNECTION_FAILED);
         logoff();
     }


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPHierarchy.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPHierarchy.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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: 13198
Author:   aharui@adobe.com
Date:     2009-12-23T19:03:31.096958Z

Log Message:
-----------
Resubmit (it was reverted without case): Needed to add masking code to ListBase as well.

QE Notes: I saw 5 bitmap failures in gumbo/components/MXItemRenderer.  The baselines show a few pixels of text that were not properly clipped.  There could be other bitmaps like that wherever DG or List were used.

Doc Notes: None
Bugs: SDK-24794
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/DataGrid mustella/gumbo/components/MXItemRenderer

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

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -6349,10 +6349,10 @@
         {
             var item:DisplayObject = lastRowItems[i];
             var yOffset:Number = item.y - rowY;
-            if (item is IUITextField)
-                item.height = rowHeight - yOffset;
+            if (item is IUITextField && !IUITextField(item).embedFonts)
+                item.height = Math.max(rowHeight - yOffset, 0);
             else
-                item.mask = createItemMask(0, rowY + yOffset, rowWidth, rowHeight - yOffset);
+                item.mask = createItemMask(0, rowY + yOffset, rowWidth, Math.max(rowHeight - yOffset, 0));
         }
     }

@@ -6432,7 +6432,7 @@
         for (var i:int = 0; i < numColumns; i++)
         {
             var item:DisplayObject = lastRowItems[i];
-            if (item is IUITextField)
+            if (item is IUITextField && !IUITextField(item).embedFonts)
             {
                 if (item.height != rowHeight - (item.y - lastRowInfo.y))
                     item.height = rowHeight - (item.y - lastRowInfo.y);


Transferred from the Adobe Open Source Subversion Repository

Revision: 17108
Author:   chiedozi@adobe.com
Date:     2010-07-28T23:12:04.976302Z

Log Message:
-----------
Renamed rootView and initalData properties on MobileApplication, ViewNavigator and ViewNavigatorSection to firstView and firstViewData due to PARB requests.
Renamed ViewData to ViewHistoryData due to PARB request.
Updated performance tests to match api changes

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/tests/performance/mobile/TwitterSearch/src/TwitterSearchMXMLLabel.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedASTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedMXMLLabel.mxml</path>
<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/tests/performance/mobile/TwitterSearch/src/TwitterSearchASLabel.mxml</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewData.as" copyfrom-rev="17103" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewHistoryData.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchMXMLTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedASLabel.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/ComponentCatalog.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchVirtualizedMXMLTextField.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorSection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/TwitterSearch/src/TwitterSearchASTextField.mxml</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -12,7 +12,7 @@
 import mx.events.PropertyChangeEventKind;
 import mx.resources.ResourceManager;

-import spark.components.supportClasses.ViewData;
+import spark.components.supportClasses.ViewHistoryData;
 import spark.components.supportClasses.ViewNavigatorSection;
 import spark.effects.SlideViewTransition;
 import spark.effects.ViewTransition;
@@ -160,7 +160,7 @@
     /**
      *
      */
-    private var currentViewData:ViewData = null;
+    private var currentViewData:ViewHistoryData = null;

     /**
      *
@@ -191,7 +191,7 @@
     /**
      *
      */
-    private var pendingViewData:ViewData = null;
+    private var pendingViewData:ViewHistoryData = null;

     /**
      *
@@ -526,13 +526,10 @@

         lastAction = PUSH_ACTION;

-        var newViewData:ViewData = new ViewData();
-        newViewData.data = initializationData;
-        newViewData.factory = viewFactory;
         pendingViewTransition = transition ? transition :
             new SlideViewTransition(400, SlideViewTransition.SLIDE_LEFT);

-        currentSection.push(newViewData);
+        currentSection.push(viewFactory, initializationData);
         currentViewChanged = true;

         if (viewChanging)
@@ -818,15 +815,15 @@
     {
         // If the sections property is not set by this point, ViewNavigator will
         // create a default section to be used by the navigator, and initialize it
-        // with the rootView and initialData defined by the application
+        // with the firstView and firstViewData defined by the application
         if (sections == null || sections.length == 0)
         {
-            // TODO: ViewNavigator should have a rootView and rootData convenience property
+            // TODO: ViewNavigator should have a firstView and rootData convenience property
             // Create the empty screen stack and initialize it with the
-            // desired rootView and initial data
+            // desired firstView and initial data
             var section:ViewNavigatorSection = new ViewNavigatorSection();
-            section.rootView = null;
-            section.initialData = null;
+            section.firstView = null;
+            section.firstViewData = null;

             // Set the stacks of the navigator
             var newSections:Vector.<ViewNavigatorSection> = Vector.<ViewNavigatorSection>([section]);
@@ -851,7 +848,7 @@

         // Check if we need to push the root view
         if (currentSection && currentSection.length == 0)
-            currentSection.push(new ViewData(currentSection.rootView, currentSection.initialData));
+            currentSection.push(currentSection.firstView, currentSection.firstViewData);

         return true;
     }
@@ -940,7 +937,7 @@
         beginViewChange();

         if (currentSection)
-            pendingViewData = currentSection.top;
+            pendingViewData = currentSection.topView;

         if (pendingViewData && pendingViewData.factory != null)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11811
Author:   dsubrama@adobe.com
Date:     2009-11-14T20:14:54.284449Z

Log Message:
-----------
Fixes for FXG 2.0.

SDK-23790 - We now set the blendMode correctly when switching from an AIM blendMode to a native Flash one.

SDK-24039 - We hoisted the AIM blendMode support up to UIComponent as per Catalyst's request.

SDK-23715 - Positioning of radial gradient strokes is now correct.

As part of this change, the spark.primitives.supportClasses.shaders packaged move into the framework swc/project, specifically mx.graphics.shaderClasses.

QE notes: Regression and re-gening of so many bitmaps.
Doc notes: None
Bugs: SDK-23790, SDK-24039, SDK-23715
Reviewer: Jason/Evtim/Pete
Tests run: Checkintests - known failures with bitmaps
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/shaders</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodgeShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/HueShader.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLight.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurn.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ExclusionShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/HueShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/FilledElement.as</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/supportClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SoftLightShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorBurnShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SaturationShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Saturation.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/SoftLightShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ks5792.jpg</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorBurnShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/SaturationShader.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Exclusion.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityShaderExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbj</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Luminosity.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Color.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/ColorDodgeShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbj</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/Hue.pbk</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ColorDodge.pbk</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/graphics/shaderClasses/examples/LuminosityMaskShaderExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/ExclusionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/shaderClasses/LuminosityMaskFilter.pbj</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
@@ -23,6 +23,7 @@
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.PropertyChangeEvent;
+import mx.graphics.shaderClasses.LuminosityMaskShader;

 import spark.components.ResizeMode;
 import spark.core.IViewport;
@@ -30,7 +31,6 @@
 import spark.events.DisplayLayerObjectExistenceEvent;
 import spark.layouts.BasicLayout;
 import spark.layouts.supportClasses.LayoutBase;
-import spark.primitives.supportClasses.shaders.LuminosityMaskShader;

 use namespace mx_internal;


fix video freeze issue with FP 15 / Chrome dont push several times AVCC tags. related to https://github.com/mangui/flashls/issues/66

--- src/org/mangui/hls/demux/TSDemuxer.as
+++ src/org/mangui/hls/demux/TSDemuxer.as
@@ -58,6 +58,8 @@
         private var _curVideoTag : FLVTag;
         /* ADIF tag inserted ? */
         private var _adifTagInserted : Boolean = false;
+        /* AVCC tag inserted ? */
+        private var _avccTagInserted : Boolean = false;

         public static function probe(data : ByteArray) : Boolean {
             var pos : uint = data.position;
@@ -350,7 +352,7 @@
                     ppsvect.push(pps);
                 }
             }
-            if (sps_found && pps_found) {
+            if (sps_found && pps_found && _avccTagInserted == false)  {
                 var avcc : ByteArray = AVCC.getAVCC(sps, ppsvect);
                 var avccTag : FLVTag = new FLVTag(FLVTag.AVC_HEADER, pes.pts, pes.dts, true);
                 avccTag.push(avcc, 0, avcc.length);
@@ -359,6 +361,7 @@
                  * this will fix playback issues with some streams for which there is no IDR NAL unit in same PES packet
                  */
                 _curVideoTag.keyframe = true;
+                _avccTagInserted = true;
             }
         }


refactor

refactor

--- as/main/frame4.as
+++ as/main/frame4.as
@@ -1,82 +1,76 @@
-
-import mx.events.EventDispatcher;
+import mx.events.EventDispatcher;
 import mx.utils.Delegate;
-
 var historia_txt:String = "";
 var baixa_mc:MovieClip;
 var puja_mc:MovieClip;
 var buttonsUI:Array = new Array ("puja_mc", "baixa_mc");

-var formatText:TextFormat = new TextFormat();
-
-var textScrollListener = new Object();
+var textScrollListener = new Object ();

-textScrollListener.click = function(e:Object)
+textScrollListener.click = function (e:Object)
 {
-
-		function textScroll ():Void
+	function textScroll ():Void
+	{
+		this.onPress = this.oOut;
+		this.onRollOver = this.oOver;
+		this.onRollOut = this.oOut;
+		this.onRelease = this.oOut;
+	}
+	function oOver ():Void
+	{
+		var i:Number;
+		for (var i = 0; i < buttonsUI.length; i++)
 		{
-			this.onPress = this.oOut;
-			this.onRollOver = this.oOver;
-			this.onRollOut = this.oOut;
-			this.onRelease = this.oOut;
-		}
-		function oOver ():Void
-		{
-			var i:Number;
-			for (var i = 0; i < buttonsUI.length; i++)
-			{
-				pressing = true;
-				movement = -1;
-				this.updateAfterEvent;
-
-			}
+			pressing = true;
+			movement = -1;
+			this.removeEventListener ();

 		}
-
-		function oOut ():Void
+	}
+	function oOut ():Void
+	{
+		var i:Number;
+		for (var i = 0; i < buttonsUI.length; i++)
 		{
-			var i:Number;
-			for (var i = 0; i < buttonsUI.length; i++)
-			{
-				pressing = false;
-				this.updateAfterEvent;
-			}
+			pressing = false;
+			this.removeEventListener ();
+
 		}
-
+	}
+};
+function startTextApp ():Void
+{
+	buttonsUI[i].addEventListener ("click", textScrollListener);
+	formatText ();
+	this.stop ();
 }

-function startTextApp ():Void
+#initclip
+
+var formatText:TextFormat = new TextFormat ();
+
+function formatText ():Void
 {
-		buttonsUI[i].addEventListener("click", textScrollListener);
-		formatText();
-		this.stop ();
-};
-
-function formatText():Void
-{
-		this.historia_txt.html = true;
-		this.historia.htmlText = true;
-		this.historia_txt.wordWrap = true;
-		this.historia_txt.multiline = true;
+	this.historia_txt.html = true;
+	this.historia.htmlText = true;
+	this.historia_txt.wordWrap = true;
+	this.historia_txt.multiline = true;
 }

 var Privat:LoadVars = new LoadVars ();
-Privat.load ("/assets/tendes.txt?ver=" + Math.floor(Math.random() * 777));
+Privat.load ("/assets/tendes.txt?ver=" + Math.floor (Math.random () * 777));
 Privat.onLoad = function ()
 {
-		this.historia_txt.setTextFormat(formatText);
-		this.historia_txt.htmlText = this.Privat;
-		this.play ();
+	this.historia_txt.setTextFormat (formatText);
+	this.historia_txt.htmlText = this.Privat;
+	this.play ();
 };
+#endinitclip

-function initFrame4():Void
+function initFrame4 ():Void
 {
-		onEnterFrame = startTextApp;
-		EventDispatcher.initialize(this);
-
+	onEnterFrame = startTextApp;
+	EventDispatcher.initialize (this);
 }
-
-initFrame4();
-
+initFrame4 ();


comment out trace statements

comment out trace statements

--- frameworks/projects/experimental/src/spark/components/CallOut.as
+++ frameworks/projects/experimental/src/spark/components/CallOut.as
@@ -535,8 +535,8 @@
 					// Invalidate only when the arrow direction changes
 					var direction:String = determineArrowPosition(actualHorizontalPosition, actualVerticalPosition);

-					trace("direction: "+direction);
-					trace("arrowDirection: "+arrowDirection);
+					// trace("direction: "+direction);
+					// trace("arrowDirection: "+arrowDirection);

 					if (arrowDirection != direction)
 					{
@@ -1116,7 +1116,7 @@

 			regPoint.x += nudgeToFit(calloutBounds.left, calloutBounds.right, screenLeft, screenRight, concatScaleX);

-			trace("regpoint: " + regPoint.toString());
+			// trace("regpoint: " + regPoint.toString());

 			calculateArrowPosition();

@@ -1132,9 +1132,9 @@

 		mx_internal function calculateArrowPosition():void
 		{
-			trace("horizontalPosition: " + horizontalPosition);
-
-			trace("verticalPosition: " + verticalPosition);
+			// trace("horizontalPosition: " + horizontalPosition);
+
+			// trace("verticalPosition: " + verticalPosition);
 		}

 		/**


FLEX-35042 correct minor issue in docs

FLEX-35042 correct minor issue in docs

--- frameworks/projects/framework/src/mx/formatters/DateFormatter.as
+++ frameworks/projects/framework/src/mx/formatters/DateFormatter.as
@@ -599,7 +599,7 @@
      *
O = +7

      *
OO = -08

 	 *
OOO = +4:30

-	 *
OOO = -08:30

+	 *
OOOO = -08:30

      *

      *

 	 *


Allow CommandMenu subclasses to provide their own item renderer.

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

--- src/as/com/threerings/flex/CommandMenu.as
+++ src/as/com/threerings/flex/CommandMenu.as
@@ -138,10 +138,19 @@
     {
         super();

-        itemRenderer = new ClassFactory(CommandMenuItemRenderer);
+        itemRenderer = new ClassFactory(getItemRenderer());

         verticalScrollPolicy = ScrollPolicy.OFF;
         addEventListener(MenuEvent.ITEM_CLICK, itemClicked);
+    }
+
+    /**
+     * Called in the CommandMenu constructor, this should return the item rendering class for this
+     * CommandMenu.
+     */
+    protected function getItemRenderer () :Class
+    {
+        return CommandMenuItemRenderer;
     }

     /**


Make our measured size the size of the thing we're wrapping.
Half the places we use FlexWrapper we do something like this anyway.
Note that you can still override this by setting the width and height
(which sets the explicitWidth, explicitHeight).

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

--- src/as/com/threerings/flex/FlexWrapper.as
+++ src/as/com/threerings/flex/FlexWrapper.as
@@ -34,7 +34,16 @@
     {
         // don't capture mouse events in this wrapper
         mouseEnabled = false;
+        _obj = object;
         addChild(object);
     }
+
+    override protected function measure () :void
+    {
+        measuredWidth = _obj.width;
+        measuredHeight = _obj.height;
+    }
+
+    protected var _obj :DisplayObject;
 }
 }


StringUtil whitespace clean

StringUtil whitespace clean

--- raw/src/org/yellcorp/lib/core/StringUtil.as
+++ raw/src/org/yellcorp/lib/core/StringUtil.as
@@ -171,14 +171,14 @@
             return str;
         }
     }
-
-
+
+
     /**
      * Replaces a range of characters in a string with another string. The range
-     * can be zero-length to insert a string, or the replacement string call be
+     * can be zero-length to insert a string, or the replacement string call be
      * null or empty to delete characters.
      */
-    public static function splice(string:String, rangeStart:int, rangeEnd:int,
+    public static function splice(string:String, rangeStart:int, rangeEnd:int,
             stringToInsert:String):String
     {
         return string.slice(0, rangeStart) + (stringToInsert || "") +


boolean filters

boolean filters

--- src/com/kemsky/impl/filters/comparator.as
+++ src/com/kemsky/impl/filters/comparator.as
@@ -8,6 +8,7 @@
      * @param a first item
      * @param b second item
      * @param options combination of Stream.CASEINSENSITIVE | Stream.DESCENDING | Stream.NUMERIC
+     * @param equals compare is used to check equality
      * @return -1, 0, 1
      */
     public function comparator(a:Object, b:Object, options:uint = 0, equals:Boolean = false):int
@@ -48,31 +49,31 @@
                     {
                         case TypeCache.BOOLEAN:
                         {
-                            result = Comparator.numericCompare(a, b);
+                            result = Comparator.numericCompare(Number(a), Number(b));
                             break;
                         }

                         case TypeCache.NUMBER:
                         {
-                            result = Comparator.numericCompare(a, b);
+                            result = Comparator.numericCompare(a as Number, b as Number);
                             break;
                         }

                         case TypeCache.STRING:
                         {
-                            result = Comparator.stringCompare(a, b, caseInsensitive);
+                            result = Comparator.stringCompare(a as String, b as String, caseInsensitive);
                             break;
                         }

                         case TypeCache.DATE:
                         {
-                            result = Comparator.dateCompare(a, b);
+                            result = Comparator.dateCompare(a as Date, b as Date);
                             break;
                         }

                         case TypeCache.XML_TYPE:
                         {
-                            result = Comparator.xmlCompare(a, b, numeric, caseInsensitive);
+                            result = Comparator.xmlCompare(a as XML, b as XML, numeric, caseInsensitive);
                             break;
                         }
                         default:
@@ -106,29 +107,8 @@

 class Comparator
 {
-    /**
-     * Pull the numbers from the objects and call the implementation.
-     */
-    public static function numericCompare(a:Object, b:Object):int
+    public static function numericCompare(fa:Number, fb:Number):int
     {
-        var fa:Number;
-        try
-        {
-            fa = Number(a);
-        }
-        catch(error:Error)
-        {
-        }
-
-        var fb:Number;
-        try
-        {
-            fb = Number(b);
-        }
-        catch(error:Error)
-        {
-        }
-
         if (isNaNFast(fa) && isNaNFast(fb))
             return 0;

@@ -147,38 +127,8 @@
         return 0;
     }

-    /**
-     * Pull the date objects from the values and compare them.
-     */
-    public static function dateCompare(a:Object, b:Object):int
+    public static function dateCompare(fa:Date, fb:Date):int
     {
-        var fa:Date;
-        try
-        {
-            fa = a as Date;
-        }
-        catch(error:Error)
-        {
-        }
-
-        var fb:Date;
-        try
-        {
-            fb = b as Date;
-        }
-        catch(error:Error)
-        {
-        }
-
-        if (fa == null && fb == null)
-            return 0;
-
-        if (fa == null)
-            return 1;
-
-        if (fb == null)
-            return -1;
-
         var na:Number = fa.getTime();
         var nb:Number = fb.getTime();

@@ -191,38 +141,8 @@
         return 0;
     }

-    /**
-     * Pull the strings from the objects and call the implementation.
-     */
-    public static function stringCompare(a:Object, b:Object, caseInsensitive:Boolean):int
+    public static function stringCompare(fa:String, fb:String, caseInsensitive:Boolean):int
     {
-        var fa:String;
-        try
-        {
-            fa = String(a);
-        }
-        catch(error:Error)
-        {
-        }
-
-        var fb:String;
-        try
-        {
-            fb = String(b);
-        }
-        catch(error:Error)
-        {
-        }
-
-        if (fa == null && fb == null)
-            return 0;
-
-        if (fa == null)
-            return 1;
-
-        if (fb == null)
-            return -1;
-
         // Convert to lowercase if we are case insensitive.
         if (caseInsensitive)
         {
@@ -240,12 +160,7 @@
         return result;
     }

-    /**
-     * Pull the values out fo the XML object, then compare
-     * using the string or numeric comparator depending
-     * on the numeric flag.
-     */
-    public static function xmlCompare(a:Object, b:Object, numeric:Boolean, caseInsensitive:Boolean):int
+    public static function xmlCompare(a:XML, b:XML, numeric:Boolean, caseInsensitive:Boolean):int
     {
         var sa:String;
         try


Added a centerTrackSkin property

Added a centerTrackSkin property


Fixed typo "MapppingConfig" in MediatorFactory.

--- src/org/robotlegs/mvcs/MediatorFactory.as
+++ src/org/robotlegs/mvcs/MediatorFactory.as
@@ -91,7 +91,7 @@
 				logger.error(message);
 				throw new ContextError(message);
 			}
-			var config:MapppingConfig = new MapppingConfig();
+			var config:MappingConfig = new MappingConfig();
 			config.mediatorClass = mediatorClass;
 			config.autoRegister = autoRegister;
 			config.autoRemove = autoRemove;
@@ -109,7 +109,7 @@
 		public function mapModuleMediator(moduleClassName:String, localModuleClass:Class, mediatorClass:Class, autoRegister:Boolean = true, autoRemove:Boolean = true):void
 		{
 			mapMediator(moduleClassName, mediatorClass, autoRegister, autoRemove);
-			var config:MapppingConfig = mappingConfigByViewClassName[moduleClassName];
+			var config:MappingConfig = mappingConfigByViewClassName[moduleClassName];
 			config.typedViewClass = localModuleClass;
 			logger.info('Module Mapping: (' + mediatorClass + ') will be injected with local type (' + localModuleClass + ')');
 		}
@@ -123,7 +123,7 @@
 			if (mediator == null)
 			{
 				var viewClassName:String = reflector.getFQCN(viewComponent);
-				var config:MapppingConfig = mappingConfigByViewClassName[viewClassName];
+				var config:MappingConfig = mappingConfigByViewClassName[viewClassName];
 				if (config)
 				{
 					mediator = new config.mediatorClass();
@@ -217,7 +217,7 @@

 		protected function onViewAdded(e:Event):void
 		{
-			var config:MapppingConfig = mappingConfigByViewClassName[reflector.getFQCN(e.target)];
+			var config:MappingConfig = mappingConfigByViewClassName[reflector.getFQCN(e.target)];
 			if (config && config.autoRegister)
 			{
 				createMediator(e.target);
@@ -226,7 +226,7 @@

 		protected function onViewRemoved(e:Event):void
 		{
-			var config:MapppingConfig = mappingConfigByView[e.target];
+			var config:MappingConfig = mappingConfigByView[e.target];
 			if (config && config.autoRemove)
 			{
 				// Flex work-around...
@@ -252,7 +252,7 @@

 }

-class MapppingConfig
+class MappingConfig
 {
 	public var mediatorClass:Class;
 	public var typedViewClass:Class;


update OVV version to 1.2.2

update OVV version to 1.2.2

--- src/org/openvv/OVVAsset.as
+++ src/org/openvv/OVVAsset.as
@@ -102,7 +102,7 @@
          * Hold OVV version. Will past to JavaScript as well $ovv.version
          */

-        public static const RELEASE_VERSION: String = "1.2.1";
+        public static const RELEASE_VERSION: String = "1.2.2";

         ////////////////////////////////////////////////////////////


A bit of commenting touch-up.

A bit of commenting touch-up.

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

--- src/as/com/threerings/util/MultiLoader.as
+++ src/as/com/threerings/util/MultiLoader.as
@@ -28,8 +28,26 @@
 public class MultiLoader
 {
     /**
-     * Super-convenient function! Load multiple sources and have the DisplayObjects returned.
-     *
+     * Load one or more sources and return DisplayObjects.
+     *
+     * @param sources an Array, Dictionary, or Object containing sources as values, or a single
+     * source value. The sources may be Strings (representing urls), URLRequests, ByteArrays,
+     * or a Class that can be instantiated to become a URLRequest or ByteArray. Note that
+     * the format of your sources Object dictates the format of the return Object.
+     * @param completeCallback the function to call when complete. The signature should be:
+     * function (value :Object) :void. Note that the structure of the return Object
+     * is dictated by the sources parameter. If you pass in an Array, you get your results
+     * in an Array. If you use a Dictionary or Object, the results will be returned as the same,
+     * with the same keys used in sources now pointing to the results. If your sources parameter
+     * was just a single source (like a String) then the result will just be a single result,
+     * like a DisplayObject. Each result will be a DisplayObject or an Error
+     * describing the problem.
+     * @param forEach if true, each value or error will be returned as soon as possible. The values
+     * or errors will be returned directly to the completeCallback. Any keys are lost, so you
+     * probably only want to use this with an Array sources.
+     * @param appDom the ApplicationDomain in which to load the contents, or null to specify
+     * that it should load in a child of the current ApplicationDomain.
+     *
      * @example
      * <listing version="3.0">
      * MultiLoader.getContents(EMBED_CONSTANT, addChild);
@@ -74,7 +92,7 @@
     }

     /**
-     * Exactly like getContents() only it returns the Loader objects.
+     * Exactly like getContents() only it returns the Loader objects rather than their contents.
      * @see getContents()
      */
     public static function getLoaders (
@@ -113,12 +131,13 @@
      * Coordinate loading some asynchronous objects.
      *
      * @param sources An Array, Dictionary, or Object of sources, or just a single source.
-     * @param generatorFunciton a function to call to generate the loaders
-     * @param completeCallack the function to call when complete
+     * @param generatorFunciton a function to call to generate the loaders.
+     * @param completeCallack the function to call when complete.
      * @param forEach whether to call the completeCallback for each source, or all-at-once at
-     * the end. If forEach is used, keys will never be return
-     * @param errorTypes an Array of event types that will be dispatched on error
-     * @param completeType, the event complete type.
+     * the end. If forEach is used, keys will never be returned.
+     * @param errorTypes an Array of event types that will be dispatched by the loader.
+     * If unspecifed, all the normal error event types are used.
+     * @param completeType, the event complete type. If unspecifed @default Event.COMPLETE.
      */
     public function MultiLoader (
         sources :Object, generatorFn :Function, completeCallback :Function,
@@ -144,7 +163,6 @@
         } else {
             _result = new Object();
             if (!Util.isPlainObject(sources)) {
-                trace("Sources is not a plain object: " + sources);
                 // stash the singleton source
                 sources = { singleton_key: sources };
             }
@@ -206,7 +224,6 @@

     /**
      * Utility method used in this class.
-     *
      */
     protected static function processProperty (
         retval :Object, testClass :Class, prop :String) :Object


If it's been so long since the last tick that we completely skip one
segment of a composite path, continue onto the next one.  This should
fix part of the problem with trophy windows not sliding back out, but
doesn't explain why they're not being removed from the overlay entirely
(as the path completed functionality should still be called).

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

--- src/as/com/threerings/flash/path/CompositePath.as
+++ src/as/com/threerings/flash/path/CompositePath.as
@@ -46,10 +46,8 @@
         if (_pathIdx >= 0) {
             remain = tickPath(_paths[_pathIdx] as Path, curStamp);
         }
-        if (remain <= 0) {
-            if (++_pathIdx < _paths.length) {
-                return startPath(_paths[_pathIdx] as Path, curStamp, remain);
-            }
+        while (remain <= 0 && ++_pathIdx < _paths.length) {
+            remain = startPath(_paths[_pathIdx] as Path, curStamp, remain);
         }
         return remain;
     }


Add speed improvements to Camera class

Add speed improvements to Camera class

--- src/org/flintparticles/threeD/renderers/Camera.as
+++ src/org/flintparticles/threeD/renderers/Camera.as
@@ -66,6 +66,9 @@
 		private var _pTrack:Vector3D;
 		private var _pFront:Vector3D;

+		private var _realDown:Vector3D;
+		private var _projectionTransform:Matrix3D;
+
 		/**
 		 * The constructor creates a Camera object. Usually, users don't need to create camera
 		 * objects, but will use the camera objects that are properties of Flint's renderers.
@@ -76,6 +79,8 @@
 			_target = new Vector3D( 0, 0, 0, 1 );
 			_down = new Vector3D( 0, 1, 0 );
 			_pDirection = new Vector3D( 0, 0, 1 );
+			_realDown = new Vector3D();
+			_projectionTransform = new Matrix3D;
 		}

 		/**
@@ -159,13 +164,13 @@
 			if( !_spaceTransform || !_transform )
 			{
 				_transform = spaceTransform.clone();
-				var projectionTransform:Matrix3D = new Matrix3D( Vector.<Number>( [
+				_projectionTransform.rawData = Vector.<Number>( [
 					_projectionDistance, 0, 0, 0,
 					0, _projectionDistance, 0, 0,
 					0, 0, 1, 1,
 					0, 0, 0, 0
-				] ) );
-				_transform.append( projectionTransform );
+				] );
+				_transform.append( _projectionTransform );
 			}
 			return _transform;
 		}
@@ -178,10 +183,15 @@
 		{
 			if( !_spaceTransform )
 			{
-				var realDown:Vector3D = _direction.crossProduct( _track );
+				// This is more efficient than
+				//_realDown = _direction.crossProduct( _track );
+				_realDown.x = _direction.y * _track.z - _direction.z * _track.y;
+				_realDown.y = _direction.z * _track.x - _direction.x * _track.z;
+				_realDown.z = _direction.x * _track.y - _direction.y * _track.x;
+
 				_spaceTransform = Matrix3DUtils.newBasisTransform(
 					Vector3DUtils.cloneUnit( _track ),
-					Vector3DUtils.cloneUnit( realDown ),
+					Vector3DUtils.cloneUnit( _realDown ),
 					Vector3DUtils.cloneUnit( _direction ) );
 				_spaceTransform.prependTranslation( -_position.x, -_position.y, -_position.z );
 			}


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

--- frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2003-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.managers.systemClasses
 {


data table tool sort is now case insensitive

Change-Id: Ief4fbba0091eab301aabda01d310a85ed00320c9

--- WeaveUI/src/weave/ui/CustomDataGrid/WeaveDataGridImageColumn.as
+++ WeaveUI/src/weave/ui/CustomDataGrid/WeaveDataGridImageColumn.as
@@ -68,11 +68,15 @@

 		private function customSorter(item1:Object, item2:Object):int
 		{
-			var item1Data:Object = _attrColumn.getValueFromKey(item1[dataField]);
-			var item2Data:Object = _attrColumn.getValueFromKey(item2[dataField]);
+			var data1:Object = _attrColumn.getValueFromKey(item1[dataField]);
+			var data2:Object = _attrColumn.getValueFromKey(item2[dataField]);

-			return ObjectUtil.compare(item1Data, item2Data)
-				|| ObjectUtil.compare(item1[dataField], item2[dataField]);
+			var itemCompare:int;
+			if (data1 is String && data2 is String)
+				itemCompare = ObjectUtil.stringCompare(data1 as String, data2 as String, true);
+			else
+				itemCompare = ObjectUtil.compare(data1, data2);
+			return itemCompare || ObjectUtil.compare(item1[dataField], item2[dataField]);
 		}

 		private var _attrColumn:IAttributeColumn = null;


Transferred from the Adobe Open Source Subversion Repository

Revision: 7765
Author:   rfrishbe@adobe.com
Date:     2009-06-11T22:58:18.082212Z

Log Message:
-----------
Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.

Also, updating the MXP to get latest changes to base classes.

QE Notes: -
Doc Notes: -
Bugs: SDK-21670
Reviewer: No one (just header updates)
tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/MakeFlexComponent.jsfl</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/readme.txt</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/flash-integration/readme.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/FlexComponentKit.mxi</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Component.jsfl</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Container.jsfl</path>

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

--- frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
+++ frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
@@ -556,7 +556,7 @@

 /**
- *  Components created in Adobe Flash CS3 Professional for use in Flex
+ *  Components created in Adobe Flash Professional for use in Flex
  *  are subclasses of the mx.flash.UIMovieClip class.
  *  The UIMovieClip class implements the interfaces necessary for a Flash component
  *  to be used like a normal Flex component. Therefore, a subclass of UIMovieClip
@@ -565,14 +565,14 @@
  *  and work with effects in the same way as can any Flex component.
  *
  *
The following procedure describes the basic process for creating
- *  a Flex component in Flash CS3:

+ *  a Flex component in Flash Professional:

  *
  *

  *
Install the Adobe Flash Workflow Integration Kit.

  *
Create symbols for your dynamic assets in the FLA file.

  *
Run Commands > Make Flex Component to convert your symbol
  *      to a subclass of the UIMovieClip class, and to configure
- *      the Flash CS3 publishing settings for use with Flex.

+ *      the Flash Professional publishing settings for use with Flex.

  *
Publish your FLA file as a SWC file.

  *
Reference the class name of your symbols in your Flex application
  *      as you would any class.


Transferred from the Adobe Open Source Subversion Repository

Revision: 11995
Author:   doug.lee@ssbbartgroup.com
Date:     2009-11-19T18:50:30.831767Z

Log Message:
-----------
Updated all AccImpls that use MSAA constants (except TextLayout) to
use the new AccConst references instead of hard-coding hex numbers and
local copies of the constants.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LabelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/mx/src/mx/accessibility/DateChooserAccImpl.as
+++ frameworks/projects/mx/src/mx/accessibility/DateChooserAccImpl.as
@@ -14,6 +14,7 @@

 import flash.accessibility.Accessibility;
 import flash.events.Event;
+import mx.accessibility.AccConst;
 import mx.controls.DateChooser;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -35,22 +36,6 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_SELECTION:uint = 0x8006;
-
-	//--------------------------------------------------------------------------
-	//
 	//  Class methods
 	//
 	//--------------------------------------------------------------------------
@@ -109,7 +94,7 @@
 	{
 		super(master);

-		role = 0x09; // ROLE_SYSTEM_WINDOW
+		role = AccConst.ROLE_SYSTEM_WINDOW;
 	}

 	//--------------------------------------------------------------------------
@@ -295,11 +280,11 @@

 					Accessibility.sendEvent(master,
 											randomDate + selDate.getDate() + 100,
-											EVENT_OBJECT_FOCUS);
+											AccConst.EVENT_OBJECT_FOCUS);

 					Accessibility.sendEvent(master,
 											randomDate + selDate.getDate() + 100,
-											EVENT_OBJECT_SELECTION);
+											AccConst.EVENT_OBJECT_SELECTION);
 				}
 				lastSelectedDate = selDate;

@@ -312,10 +297,10 @@
 				monthFlag = true;

 				Accessibility.sendEvent(master, randomDate,
-										EVENT_OBJECT_FOCUS);
+										AccConst.EVENT_OBJECT_FOCUS);

 				Accessibility.sendEvent(master, randomDate,
-										EVENT_OBJECT_SELECTION);
+										AccConst.EVENT_OBJECT_SELECTION);

 				break;
 			}


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

--- frameworks/projects/mx/src/mx/events/CalendarLayoutChangeEvent.as
+++ frameworks/projects/mx/src/mx/events/CalendarLayoutChangeEvent.as
@@ -21,6 +21,11 @@
  *
  *  @see mx.controls.DateChooser
  *  @see mx.controls.DateField
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class CalendarLayoutChangeEvent extends Event
 {
@@ -56,6 +61,11 @@
 	 *

 	 *
      *  @eventType change
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const CHANGE:String = "change";

@@ -80,6 +90,11 @@
 	 *
 	 *  @param triggerEvent The event that triggered this change event;
 	 *       usually a change event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function CalendarLayoutChangeEvent(type:String,
 										      bubbles:Boolean = false,
@@ -102,6 +117,11 @@

 	/**
 	 *  The selected date of the control.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var newDate:Date;

@@ -112,6 +132,11 @@
 	/**
 	 *  The event that triggered the change of the date;
 	 *  usually a change event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var triggerEvent:Event;


Fixed line endings

Fixed line endings

--- src/main/flex/org/servebox/cafe/core/modularity/LocalApplicationUnitImpl.as
+++ src/main/flex/org/servebox/cafe/core/modularity/LocalApplicationUnitImpl.as
@@ -1,14 +1,23 @@
 package org.servebox.cafe.core.modularity
 {
+	import org.servebox.cafe.core.Container;
+	import org.servebox.cafe.core.application.ApplicationInitializer;
+	import org.servebox.cafe.core.layout.LayoutAreaManager;
 	import org.servebox.cafe.core.spring.ApplicationContext;
+	import org.servebox.cafe.core.spring.ApplicationContextListener;
+	import org.servebox.cafe.core.util.ApplicationUnitUtils;
+

-	public class LocalApplicationUnitImpl implements ApplicationUnit
+	public class LocalApplicationUnitImpl implements ApplicationUnit, ApplicationContextListener
 	{
 		private var _id : String;
 		private var _loadAtStartup  :Boolean = false;
+		private var _configLocations : Array;
+		private var _context : ApplicationContext;

 		public function LocalApplicationUnitImpl()
 		{
+			super();
 		}

 		public function get id():String
@@ -33,19 +42,48 @@

 		public function get configLocations():Array
 		{
-			return null;
+			if( _configLocations == null )
+			{
+				_configLocations = [ApplicationUnitUtils.getDefaultContextLocation( this )];
+			}
+			return _configLocations;
 		}

 		public function set configLocations(value:Array):void
 		{
+			_configLocations = value;
+		}
+
+		protected function getContext() : ApplicationContext
+		{
+			return _context;
+		}
+
+		protected function initializeContext( parentContext : ApplicationContext ) : void
+		{
+			_context = ApplicationInitializer.getContextInstance( configLocations, parentContext );
 		}

 		public function prepare(parentContext:ApplicationContext):void
 		{
+			initializeContext( parentContext );
+			// Should we do that ? I guess so
+			getContext().setListener( this );
+			getContext().load();
+		}
+
+		public function applicationContextReady() : void
+		{
+			start();
+		}
+
+		public function getLayoutAreaManager() : LayoutAreaManager
+		{
+			return Container.getInstance().getLayoutAreaManager();
 		}

 		public function start():void
 		{
 		}
 	}
-}+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5009
Author:   rfrishbe@adobe.com
Date:     2009-02-19T06:06:50.044936Z

Log Message:
-----------
Adding events in AIR for automation so they'll know when a new window is created or when a FlexNativeMenu is created.  The window event is dispatched on the top level application when a new window is opened or closed.  The menu events are dispatched on the window when it's assigned or on the component if it's a context menu.  These events are just used for automation purposes.

QE Notes: -
Doc Notes: -
Bugs: SDK-18744, SDK-18985
Reviewer: Darrell
tests: checkintests, air menu/window tests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/core/Window.as
+++ frameworks/projects/airframework/src/mx/core/Window.as
@@ -35,6 +35,7 @@
 import mx.events.AIREvent;
 import mx.events.FlexEvent;
 import mx.events.FlexNativeWindowBoundsEvent;
+import mx.events.WindowExistenceEvent;
 import mx.managers.CursorManagerImpl;
 import mx.managers.FocusManager;
 import mx.managers.ICursorManager;
@@ -1964,8 +1965,7 @@
             _nativeWindow.addEventListener("deactivate", nativeWindow_deactivateHandler, false, 0, true);

  			addEventListener(Event.ENTER_FRAME, enterFrameHandler);
- 			//debug
- 			var x:Object = StyleManager.stylesRoot;
+
  			//'register' with WindowedSystemManager so it can cleanup when done.
  			sm.addWindow(this);
         }
@@ -2044,6 +2044,8 @@
 		    	if (NativeWindow.supportsMenu)
 		    		nativeWindow.menu = menu.nativeMenu;
 		    }
+
+		    dispatchEvent(new Event("menuChanged"));
         }

         if (titleBarFactoryChanged)
@@ -2667,18 +2669,28 @@
      */
     private function enterFrameHandler(e:Event):void
     {
-    	if (frameCounter == 2)
-    	{
-	    	removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
-	    	_nativeWindow.visible = _nativeWindowVisible;
-	    	dispatchEvent(new AIREvent(AIREvent.WINDOW_COMPLETE));
-	    	if (_nativeWindow.visible)
-	    	{
-	    		if (openActive)
-	    			_nativeWindow.activate();
-	    	}
-    	}
-    	frameCounter++;
+        if (frameCounter == 2)
+        {
+            removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
+            _nativeWindow.visible = _nativeWindowVisible;
+            dispatchEvent(new AIREvent(AIREvent.WINDOW_COMPLETE));
+
+            // Event for Automation so we know when windows
+            // are created or destroyed.
+            if (ApplicationGlobals.application)
+            {
+                ApplicationGlobals.application.dispatchEvent(
+                    new WindowExistenceEvent(WindowExistenceEvent.WINDOW_CREATE,
+                                             false, false, this));
+            }
+
+            if (_nativeWindow.visible)
+            {
+                if (openActive)
+                    _nativeWindow.activate();
+            }
+        }
+        frameCounter++;
     }

 	/**
@@ -3085,6 +3097,15 @@
     private function window_closeHandler(event:Event):void
     {
         dispatchEvent(new Event("close"));
+
+        // Event for Automation so we know when windows
+        // are created or destroyed.
+        if (ApplicationGlobals.application)
+        {
+            ApplicationGlobals.application.dispatchEvent(
+                new WindowExistenceEvent(WindowExistenceEvent.WINDOW_CLOSE,
+                                         false, false, this));
+        }
     }

     /**


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7538
Author:   smgilson@adobe.com
Date:     2009-06-03T20:51:37.995308Z

Log Message:
-----------
fix broken ASDoc comment

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

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

--- frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
+++ frameworks/projects/rpc/src/mx/messaging/ChannelSet.as
@@ -700,7 +700,7 @@
      *

      *  If the currently connected underlying Channel issues poll requests to
      *  the remote host, heartbeats are suppressed because the periodic poll
-     *  requests effectively take their place.
+     *  requests effectively take their place.

      */
     public function get heartbeatInterval():int
     {