Transferred from the Adobe Open Source Subversion Repository

Revision: 3970
Author:   smgilson@adobe.com
Date:     2008-10-30T18:29:45.702912Z

Log Message:
-----------
Mark classes as @private that are also [ExcludeClass]

QE Notes: None
Doc Notes: None
Bugs: -

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/PlaceholderData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/RemotePopUp.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.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/managers/systemClasses/StageEventProxy.as</path>

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

--- frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as
+++ frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as
@@ -37,6 +37,7 @@
 [ExcludeClass]

 /**
+ *  @private
  *  This class provides an implementation of the IResourceManager interface.
  *  The IResourceManager and IResourceBundle interfaces work together
  *  to provide internationalization support for Flex applications.
@@ -95,7 +96,7 @@
     public function ResourceManagerImpl()
     {
         super();
-	}
+    }

     //--------------------------------------------------------------------------
     //
@@ -321,9 +322,9 @@
     }

     /**
-	 *  @copy mx.resources.IResourceManager#initializeLocaleChain()
-	 */
-	public function initializeLocaleChain(compiledLocales:Array):void
+     *  @copy mx.resources.IResourceManager#initializeLocaleChain()
+     */
+    public function initializeLocaleChain(compiledLocales:Array):void
     {
         localeChain = LocaleSorter.sortLocalesByPreference(
             compiledLocales, getSystemPreferredLocales(), null, true);
@@ -491,7 +492,7 @@
         return locales;
     }

-	/**
+    /**
      *  @copy mx.resources.IResourceManager#getPreferredLocaleChain()
      */
     public function getPreferredLocaleChain():Array /* of String */
@@ -745,14 +746,14 @@
      */
     private function getSystemPreferredLocales():Array /* of String */
     {
-    	var systemPreferences:Array;
+        var systemPreferences:Array;

         // Capabilities.languages was added in AIR 1.1,
         // so this API may not exist.
         if (Capabilities["languages"])
-        	systemPreferences = Capabilities["languages"];
+            systemPreferences = Capabilities["languages"];
         else
-        	systemPreferences = [ Capabilities.language ];
+            systemPreferences = [ Capabilities.language ];

         return systemPreferences;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18550
Author:   egeorgie@adobe.com
Date:     2010-11-12T00:59:06.859716Z

Log Message:
-----------
Add SkinnablePopUpContainer

- Add SkinnablePopUpContainer
- Add two new events on UIComponent - state transition complete & interrupted
- Switch ViewMenut to extend SkinnablePopUpContainer

QE notes: Testing can begin, do a pass on ViewMenu as well
Doc notes:
Bugs:
Reviewer: Corey, Jason
Tests run: manual
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/PopUpCloseEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as
@@ -29,6 +29,10 @@

 [DefaultProperty("items")]

+//--------------------------------------
+//  States
+//--------------------------------------
+
 /**
  *  Normal and landscape state.
  *
@@ -39,6 +43,15 @@
 [SkinState("normalAndLandscape")]

 /**
+ *  Closed and landscape state.
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("closedAndLandscape")]
+
+/**
  *  Disabled and landscape state.
  *
  *  @langversion 3.0
@@ -46,6 +59,16 @@
  *  @productversion Flex 4.5
  */
 [SkinState("disabledAndLandscape")]
+
+/**
+ *  Disabled and closed and landscape state.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+[SkinState("disabledAndClosedAndLandscape")]

 /**
  *  The ViewMenu container defines a menu in a View container.
@@ -91,18 +114,8 @@
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
-
-/*
-
-TODO:
-
-- add transitions
-- use PopUpAnchor instead of PopUpManager
-- Investigate performance impact of View.viewMenuItems being instances
-  instead of getting created when the menu is opened.
-*/
-
-public class ViewMenu extends SkinnableContainer implements IFocusManagerComponent
+public class ViewMenu extends SkinnablePopUpContainer
+                      implements IFocusManagerComponent
 {
     //--------------------------------------------------------------------------
     //
@@ -215,7 +228,6 @@
         }

         mxmlContent = elements;
-
     }

     //--------------------------------------------------------------------------
@@ -260,24 +272,23 @@
         adjustSelectionAndCaretUponNavigation(event);
     }

-     /**
+    /**
      *  @private
      */
-   override protected function getCurrentSkinState():String
-    {
-        // TODO (jszeto): Just concat "AndLandscape" with super call if in landscape orientation
+    override protected function getCurrentSkinState():String
+    {
+        var skinState:String = super.getCurrentSkinState();
         if (FlexGlobals.topLevelApplication.aspectRatio == "portrait")
             return super.getCurrentSkinState();
         else
-            return enabled ? "normalAndLandscape" : "disabledAndLandscape";
-    }
-
+            return skinState + "AndLandscape";
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Methods
     //
     //--------------------------------------------------------------------------
-

     /**
      *  Adjusts the selection based on what keystroke or
@@ -292,11 +303,10 @@
      *
      *  @param event The Keyboard Event encountered
      *
-     *
      *  @langversion 3.0
      *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
      */
     private function adjustSelectionAndCaretUponNavigation(event:KeyboardEvent):void
     {
@@ -331,9 +341,11 @@
             setShowsCaret(caretIndex, true);
         }
     }
-

-    // Called when a particular item is selected using the ENTER or SPACE key
+    /**
+     *  Called when a particular item is selected using the ENTER or SPACE key
+     *  @private
+     */
     private function selectItemAt(index:int):void
     {
         if (index < 0 || !items || index >= items.length)
@@ -345,7 +357,10 @@
             item.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
     }

-    // Helper function which updates the item's caret state
+    /**
+     *  Helper function which updates the item's caret state
+     *  @private
+     */
     private function setShowsCaret(index:int, showsCaret:Boolean):void
     {
         if (index < 0 || !items || index >= items.length)
@@ -376,12 +391,9 @@
         systemManager.stage.removeEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChangeHandler, true);
     }

-    // Update the size and display if orientation has changed
     private function orientationChangeHandler(event:StageOrientationEvent):void
     {
         invalidateSkinState();
-        invalidateSize();
-        invalidateDisplayList();
     }

     private function mouseDownHandler(event:MouseEvent):void


Set initial stream to be played to first entry in M3U8 playlist

According to HLS especficiation we should play initially the first item
in the m3u8 playlist:
"The first entry in the variant playlist is played when a user joins
the stream and is used as part of a test to determine which stream is
most appropriate. The order of the other entries is irrelevant."
from:
https://developer.apple.com/library/mac/documentation/networkinginternet
/conceptual/streamingmediaguide/UsingHTTPLiveStreaming/UsingHTTPLiveStre
aming.html#//apple_ref/doc/uid/TP40008332-CH102-SW18

--- HLSPlugin/src/org/denivip/osmf/elements/m3u8Classes/M3U8PlaylistParser.as
+++ HLSPlugin/src/org/denivip/osmf/elements/m3u8Classes/M3U8PlaylistParser.as
@@ -52,6 +52,7 @@
 			var tempStreamingRes:StreamingURLResource = null;
 			var tempDynamicRes:DynamicStreamingResource = null;
 			var alternateStreams:Vector.<StreamingItem> = null;
+			var initialStreamName:String = '';
 			for(var i:int = 1; i < lines.length; i++){
 				var line:String = String(lines[i]).replace(/^([\s|\t|\n]+)?(.*)([\s|\t|\n]+)?$/gm, "$2");

@@ -98,7 +99,10 @@

 					var name:String = lines[i+1];
 					streamItems.push(new DynamicStreamingItem(name, bw, width, height));
-
+					// store stream name of first stream encountered
+					if(initialStreamName == ''){
+						initialStreamName = name;
+					}
 					DynamicStreamingResource(result).streamItems = streamItems;
 				}

@@ -144,9 +148,14 @@
 							tempStreamingRes.drmContentData
 						);
 					}
-				}else if(baseResource.getMetadataValue(MetadataNamespaces.RESOURCE_INITIAL_INDEX) != null){
-					var initialIndex:int = baseResource.getMetadataValue(MetadataNamespaces.RESOURCE_INITIAL_INDEX) as int;
-					tempDynamicRes.initialIndex = initialIndex < 0 ? 0 : (initialIndex >= tempDynamicRes.streamItems.length) ? (tempDynamicRes.streamItems.length-1) : initialIndex;
+				}else{
+					if(baseResource.getMetadataValue(MetadataNamespaces.RESOURCE_INITIAL_INDEX) != null){
+						var initialIndex:int = baseResource.getMetadataValue(MetadataNamespaces.RESOURCE_INITIAL_INDEX) as int;
+						tempDynamicRes.initialIndex = initialIndex < 0 ? 0 : (initialIndex >= tempDynamicRes.streamItems.length) ? (tempDynamicRes.streamItems.length-1) : initialIndex;
+					}else{
+						// set initialIndex to index of first stream name encountered
+						tempDynamicRes.initialIndex = tempDynamicRes.indexFromName(initialStreamName);
+					}
 				}
 			}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

 package mx.automation.delegates.charts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17360
Author:   chiedozi@adobe.com
Date:     2010-08-18T00:07:57.520197Z

Log Message:
-----------
ViewNavigator now executes navigation operations a frame later to allow renderers to properly redraw themselves before creating a view (SDK-27068).
Refactored some of the session persistence logic out of the application classes into ViewNavigatorBase.
The label, icon and activeView properties now exist on ViewNavigatorBase

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</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/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -39,7 +39,7 @@
     // allows us to properly store these set properties if the navigator skin
     // changes.

-    // TODO (Chiedozi): Just in a var
+    // TODO (chiedozi): Just use a variable instead of a bitfield
     /**
      *  @private
      */
@@ -97,6 +97,17 @@
     //--------------------------------------------------------------------------

     //----------------------------------
+    //  canCancelBackKeyBehavior
+    //----------------------------------
+    /**
+     *  @private
+     */
+    override public function get canCancelBackKeyBehavior():Boolean
+    {
+        return navigator && navigator.canCancelBackKeyBehavior;
+    }
+
+    //----------------------------------
     //  navigators
     //----------------------------------
     /**
@@ -136,7 +147,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  @inheritDoc
+     *  @private
      */
     override protected function backKeyHandler():void
     {
@@ -145,16 +156,7 @@
     }

     /**
-     *  @inheritDoc
-     */
-    // TODO (chiedozi): make a getter (PARB)
-    override public function canCancelDefaultBackKeyBehavior():Boolean
-    {
-        return  navigator && navigator.canCancelDefaultBackKeyBehavior();
-    }
-
-    /**
-     *  @inheritDoc
+     *  @private
      */
     override protected function orientationChangeHandler(event:StageOrientationEvent):void
     {
@@ -163,16 +165,19 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      */
     // TODO (chiedozi): PARB
     override protected function persistApplicationState():void
     {
         super.persistApplicationState();
-    }
-
-    /**
-     *  @inheritDoc
+
+        if (navigators.length > 0)
+            persistenceManager.setProperty("navigatorState", navigator.saveViewData());
+    }
+
+    /**
+     *  @private
      */
     override protected function registerPeristenceClassAliases():void
     {
@@ -185,11 +190,19 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      */
     override protected function restoreApplicationState():void
     {
         super.restoreApplicationState();
+
+        if (persistenceManager.enabled)
+        {
+            var savedState:Object = persistenceManager.getProperty("navigatorState");
+
+            if (savedState)
+                navigator.restoreViewData(savedState);
+        }
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 17827
Author:   chiedozi@adobe.com
Date:     2010-09-23T22:26:49.287708Z

Log Message:
-----------
Replaced the active property setter in View and ViewNavigator with an mx_internal method
TabbedViewNavigator and TabbedMobileApplication now use their creationPolicy property to determine if the top views for all their child navigators should be created or not
ViewNavigator now has a destructionPolicy property that determines whether the active view should be destroyed when the navigator is deactivated
TabbedViewNavigator now pops to the first view if the selected tab is clicked
ViewNavigator can now indicate whether it wants to save its navigation history when it is deactivated using the maintainNavigationStack property

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</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/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -14,6 +14,7 @@
 import flash.events.StageOrientationEvent;
 import flash.net.registerClassAlias;

+import mx.core.ContainerCreationPolicy;
 import mx.utils.BitFlagUtil;

 import spark.components.supportClasses.MobileApplicationBase;
@@ -108,9 +109,47 @@
     }

     //----------------------------------
+    //  creationPolicy
+    //----------------------------------
+    private var _explicitCreationPolicy:String = ContainerCreationPolicy.AUTO;
+
+    /**
+     *  @inheritDoc
+     *
+     *
TabbedMobileApplication can not have visual elements
+     *  added to it, so the creationPolicy concept use by the framework
+     *  doesn't necessarily make sense.  Instead, this property repurposed to
+     *  control whether the application's child navigators create their children
+     *  when the application initializes.

+     */
+    override public function get creationPolicy():String
+    {
+        return _explicitCreationPolicy;
+    }
+
+    /**
+     *  @private
+     */
+    override public function set creationPolicy(value:String):void
+    {
+        // Don't want to change real creationPolicy property
+        if (value != _explicitCreationPolicy)
+        {
+            _explicitCreationPolicy = value;
+
+            if (navigator)
+                navigator.creationPolicy = _explicitCreationPolicy;
+        }
+    }
+
+    //----------------------------------
     //  navigators
     //----------------------------------
     /**
+     *  The list of navigators that are being managed by the application.
+     *  Each navigator in the list will be represented by a item on the tab
+     *  bar.
+     *
      *  @default null
      *
      *  @langversion 3.0
@@ -219,6 +258,9 @@
         {
             var newNavigatorProperties:uint = 0;

+            navigator.creationPolicy = _explicitCreationPolicy;
+            navigator.landscapeOrientation = landscapeOrientation;
+
             if (navigatorProperties.navigators !== undefined)
             {
                 navigator.navigators = navigatorProperties.navigators;
@@ -226,8 +268,6 @@
                     NAVIGATORS_PROPERTY_FLAG, true);
             }

-            navigator.landscapeOrientation = landscapeOrientation;
-
             // Set the stage focus to the navigator
             systemManager.stage.focus = navigator;
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 6273
Author:   dloverin@adobe.com
Date:     2009-04-25T01:28:50.060772Z

Log Message:
-----------
Minor WindowedApplication and Window fixes.

WindowedApplicationSkin:
•	Add statusBar back into the skin.

WindowedApplication/Window:
•	Fix a problem where the title set in the Initial Settings xml (see below) did not show up the when using FlexChrome.

<!-- Settings for the application's initial window. Required. -->
      <initialWindow>

            <!-- The title of the main window. Optional. -->
            <title>Initial window title</title>

            …

•	Change mouseDownHandler to allow a gripper to be functional on a skin when SystemChrome is “standard”. Using a gripper with SystemChrome is not in how we recommend using our skins but I didn’t think we should exclude it from working. Someone may want to do it.
•	Change hitTestResizeEdge from private to mx_internal so it could be called from an application that overrode mouseDownHandler.

QE Notes: None.
Doc Notes: None.
Bugs: NA
Reviewer: Glen
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/default/WindowedApplicationSkin.mxml</path>

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

--- frameworks/projects/airspark/src/spark/components/Window.as
+++ frameworks/projects/airspark/src/spark/components/Window.as
@@ -1798,7 +1798,16 @@
         if (instance == titleBar)
         {
             if (!nativeWindow.closed)
-                systemManager.stage.nativeWindow.title = _title;
+            {
+                // If the initial title is the default and the native window is set
+                // from the initial window settings,
+                // then use the initial window settings title.
+                if (_title == "" && systemManager.stage.nativeWindow.title != null)
+                    _title = systemManager.stage.nativeWindow.title;
+                else
+                    systemManager.stage.nativeWindow.title = _title;
+            }
+
             titleBar.title = _title;
             titleChanged = false;
         }
@@ -2550,21 +2559,20 @@
      */
     protected function mouseDownHandler(event:MouseEvent):void
     {
+        if (event.target == gripper)
+        {
+            startResize(NativeWindowResize.BOTTOM_RIGHT);
+            event.stopPropagation();
+        }
+
         if (systemManager.stage.nativeWindow.systemChrome != "none")
             return;
-        if (event.target == gripper)
-        {
-            startResize(NativeWindowResize.BOTTOM_RIGHT);
+
+        var edgeOrCorner:String = mx_internal::hitTestResizeEdge(event);
+        if (edgeOrCorner != NativeWindowResize.NONE)
+        {
+            startResize(edgeOrCorner);
             event.stopPropagation();
-        }
-        else
-        {
-            var edgeOrCorner:String = hitTestResizeEdge(event);
-            if (edgeOrCorner != NativeWindowResize.NONE)
-            {
-                startResize(edgeOrCorner);
-                event.stopPropagation();
-            }
         }
     }

@@ -2670,7 +2678,7 @@
      *   the NativeWindowResize to indicate the edit or corner that was clicked. If
      *   no edge or corner were clicked then return NativeWindowResize.NONE.
      */
-    private function hitTestResizeEdge(event:MouseEvent):String
+    mx_internal function hitTestResizeEdge(event:MouseEvent):String
     {
         // If we clicked on a child of the contentGroup, then don't resize
         if (event.target is DisplayObject && event.target != contentGroup)


Transferred from the Adobe Open Source Subversion Repository

Revision: 4357
Author:   egreenfi@adobe.com
Date:     2008-12-18T23:52:27.017290Z

Log Message:
-----------
UIComponent now implements ILayoutElement directly

ILayoutElement was moved to mx.core.ILayoutElement, as it is now a core interface required by UIComponent.

Further phases to follow:
1) IVlisualElement to extend ILayoutElement, pending resolution of a compiler bug.
2) remove LayoutElementUIC, pending UIMovieclip implementing ILayoutElement
3) remove LayoutElementFactory, once all IVisualElements implement ILayoutElement directly.
4) remove ITransformable, moving transform properties onto IVisualElement.

Reviewer: Evtim
QA: yes.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/layout/layout_tester.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LinearLayoutVector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/MatrixUtil.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutElementUIComponentUtils.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/utils/MatrixUtil.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/ILayoutElement.as" copyfrom-rev="4249" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutElementUIC.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/framework/src/mx/core/IVisualElement.as
+++ frameworks/projects/framework/src/mx/core/IVisualElement.as
@@ -10,8 +10,8 @@
 ////////////////////////////////////////////////////////////////////////////////
 package mx.core
 {
-import flash.display.DisplayObjectContainer;
-
+import flash.display.DisplayObjectContainer;
+
 import mx.geom.ITransformable;
 import mx.geom.TransformOffsets;

@@ -390,5 +390,6 @@
      */
     function get explicitMaxHeight():Number;
     function set explicitMaxHeight(value:Number):void;
+
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5293
Author:   hmuller@adobe.com
Date:     2009-03-13T15:04:38.488437Z

Log Message:
-----------
Fixed a copy-and-pasteo in DataGroup::itemRemoved(): splice(index, 0, null) should have been splice(index, 1).

Attempting to create an MXML element with more than one parent now produces a sensible error message.

QE Notes: Mustella tests pass.
Doc Notes:
Bugs: sdk-19843, sdk-19332
Reviewer: Evtim, Ryan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/bundles/en_US/components.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -1002,7 +1002,7 @@
             }
         }
         else
-            indexToRenderer.splice(index, 0, null);
+            indexToRenderer.splice(index, 1);

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8576
Author:   cframpto@adobe.com
Date:     2009-07-15T12:19:18.531995Z

Log Message:
-----------
RichEditableText will dispatch all the FlexEvent.COMMIT_VALUE events and SkinnableTextBase will redispatch them for TextInput and TextArea.  Dispatched on focusOut, set text/content/textFlow, and for the insertText() and appendText() API calls.

Also changed a few validateNow() calls to validateProperties() because that is all that is needed and it is a much safer call.

QA Notes:
Doc Notes: SDK-21991
Reviewers: Alex

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -179,9 +179,6 @@

         // Trigger bindings to textChanged.
         dispatchEvent(new Event("textChanged"));
-
-        // The default event to trigger a validator.
-        dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 3973
Author:   rfrishbe@adobe.com
Date:     2008-10-30T20:30:13.007923Z

Log Message:
-----------
Adding IVisualContainer interface.  Group, FxContainer, and FxScroller implement this interface now.  Added owner and parent to IVisualItem.  GraphicElement and UIComponent implement this interface--work had to be done in GraphicElement to do this.  In doing so, elementHost is going to be renamed to parent.  For now, I added parent in GraphicElement and left elementHost in there; however, it is removed from IGraphicElement.  I’ve removed all references to elementHost in our code; however, I think mustella needs to be updated as do mustella tests, so I’m not going to remove elementHost until later.

Most of the changes here are name changes dealing with "elementHost" -> "parent".  If we decide that Gumbo components only support IVisualItems, we should clean up some of the code, but for now, I kept any assumptions that were in the original code (meaning we may be able to support DisplayObjects and old definitions of UIComponents/IUIComponents that aren’t IVisualItems).

I ran checkin tests, Group mustella tests, DataGroup mustella tests, FxContainer mustella tests, graphic tags tests, and all effects Mustella tests.

QE Notes: We will need to update mustella and mustella tests to use elementHost rather than parent.  We can also update mustella to use IVisualContainer rather than what it's doing now.  However, let's wait on these changes for now.  I'll send out an email when we're ready to make these changes and remove elementHost from GraphicElement.
Doc Notes: None
Bugs: -
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElement.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElement.as
@@ -11,13 +11,11 @@
 package mx.graphics
 {
 import flash.display.DisplayObject;
+import flash.display.DisplayObjectContainer;
 import flash.display.Graphics;
-
 import flash.geom.Matrix;
 import flash.geom.Rectangle;
 import flash.geom.Transform;
-
-import mx.components.baseClasses.GroupBase;

 /**
  *  The IGraphicElement interface is implemented by all child tags of Graphic and Group.
@@ -32,14 +30,14 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  elementHost
+    //  parent
     //----------------------------------

     /**
      *  @private
      */
-    function get elementHost():GroupBase;
-    function set elementHost(value:GroupBase):void;
+    function get parent():DisplayObjectContainer;
+    function set parent(value:DisplayObjectContainer):void;

     //----------------------------------
     //  alpha


Removed unnecessary imports from NativeSignal and tweaked the eventClass logic to default to flash.events.Event.

--- src/com/robertpenner/signals/NativeSignal.as
+++ src/com/robertpenner/signals/NativeSignal.as
@@ -3,8 +3,6 @@
 	import flash.events.Event;
 	import flash.utils.Dictionary;
 	import flash.events.IEventDispatcher;
-	import com.robertpenner.signals.IEvent;
-	import com.robertpenner.signals.IEventBubbler;

 	/**
 	 * The NativeSignal class uses an ISignal interface as a facade for an IEventDispatcher.
@@ -26,7 +24,7 @@
 		{
 			_target = IEventDispatcher(target);
 			_name = name;
-			_eventClass = eventClass;
+			_eventClass = eventClass || Event;
 			listeners = [];
 			onceListeners = new Dictionary();
 		}
@@ -79,7 +77,7 @@
 		public function dispatch(eventObject:Object = null):void
 		{
 			var event:Event = Event(eventObject);
-			if (_eventClass && !(event is _eventClass))
+			if (!(event is _eventClass))
 				throw new ArgumentError('Event object '+eventObject+' is not an instance of '+_eventClass+'.');

 			_target.dispatchEvent(event);


Update welcome.as

Update welcome.as

--- www/demos/welcome.as
+++ www/demos/welcome.as
@@ -1,5 +1,64 @@
-;
-; P3JS
-; Write some assembly code.
+; Write some assembly code here.
 ; Then click 'Assemble and Run' to run it on the P3 simulator.
-;
+
+; For more information check 'About P3JS'.
+
+
+; Try the Demos ----->  ----->  ----->  ----->  ----->  ----->  ----->  ----->
+
+
+; This is a very short program that fills the memory with ac5fh!
+; Click 'Assemble and Run' to test.
+
+                ORIG    8000h
+
+                MOV     R1, M[PC]
+                MOV     M[PC], R1
+
+; How does it work? Why is the value at the address 8000h not ac5fh?
+
+
+
+; HINT
+;  ||
+;  ||
+;  \/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+; HINT: Notice that ac5fh is the binary code for 'MOV M[PC], R1'.


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/events/ChildExistenceChangedEvent.as
+++ frameworks/projects/framework/src/mx/events/ChildExistenceChangedEvent.as
@@ -0,0 +1,168 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+import flash.display.DisplayObject;
+import flash.events.Event;
+
+/**
+ *  Represents events that are dispatched when a the child of a control
+ *  is created or destroyed.
+ */
+public class ChildExistenceChangedEvent extends Event
+{
+    include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  The ChildExistenceChangedEvent.CHILD_ADD constant
+	 *  defines the value of the type property of the event
+	 *  object for a childAdd event.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

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

+	 *
relatedObject	Contains a reference
+     *         to the child object that was created.

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

+	 *

+	 *
+     *  @eventType childAdd
+	 */
+	public static const CHILD_ADD:String = "childAdd";
+
+	/**
+	 *  The ChildExistenceChangedEvent.CHILD_REMOVE constant
+	 *  defines the value of the type property of the event
+	 *  object for a childRemove event.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

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

+	 *
relatedObject	Contains a reference
+     *        to the child object that is about to be removed.

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

+	 *

+	 *
+     *  @eventType childRemove
+	 */
+	public static const CHILD_REMOVE:String = "childRemove";
+
+	/**
+	 *  The ChildExistenceChangedEvent.OVERLAY_CREATED constant
+	 *  defines the value of the type property of the event object
+	 *  for a overlayCreated event.
+	 *
+     *
The properties of the event object have the following values:

+	 *

+	 *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

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

+	 *
relatedObject	Contains a reference
+     *        to the child object whose overlay was created.

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

+	 *

+	 *
+     *  @eventType overlayCreated
+	 */
+	public static const OVERLAY_CREATED:String = "overlayCreated";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that caused the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
+	 *
+	 *  @param relatedObject Reference to the child object that was created or destroyed.
+	 */
+	public function ChildExistenceChangedEvent(
+								type:String, bubbles:Boolean = false,
+								cancelable:Boolean = false,
+								relatedObject:DisplayObject = null)
+	{
+		super(type, bubbles, cancelable);
+
+		this.relatedObject = relatedObject;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  relatedObject
+	//----------------------------------
+
+	/**
+	 *  Reference to the child object that was created or destroyed.
+	 */
+	public var relatedObject:DisplayObject;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Event
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function clone():Event
+	{
+		return new ChildExistenceChangedEvent(type, bubbles, cancelable,
+											  relatedObject);
+	}
+}
+
+}


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/AxisRendererAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/AxisRendererAutomationImpl.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.automation.delegates.charts
 {


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

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