Transferred from the Adobe Open Source Subversion Repository

Revision: 10672
Author:   dloverin@adobe.com
Date:     2009-09-29T11:43:11.672658Z

Log Message:
-----------
Use styleManager instance instead of the StyleManager singleton (airframework, halo, and spark projects)

A couple updates in the framework project as well.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex
Tests run: checkintests
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/TLFDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/SetActionInstance.as
@@ -12,6 +12,8 @@
 package spark.effects.supportClasses
 {

+import mx.core.IFlexModule;
+import mx.core.IFlexModuleFactory;
 import mx.core.mx_internal;

 import mx.effects.effectClasses.ActionEffectInstance;
@@ -192,7 +194,11 @@
             else if (currentVal is Number &&
                 propName.toLowerCase().indexOf("color") != -1)
             {
-                val = StyleManager.getColorName(value);
+                var moduleFactory:IFlexModuleFactory = null;
+                if (target is IFlexModule)
+                    moduleFactory = target.moduleFactory;
+
+                val = StyleManager.getStyleManager(moduleFactory).getColorName(value);
             }
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18635
Author:   aharui@adobe.com
Date:     2010-11-17T00:18:36.469040Z

Log Message:
-----------
Add estimatedSizes to the layout infrastructure to better deal with text reflow.
Add new events to layout infrastructure to deal with caching of size information

QE notes: New APIs and Interfaces
Doc notes: New APIs and interfaces
Bugs: SDK-27226, SDK-26155, SDK-25483, SDK-23621, SDK-27225, SDK-26993, SDK-25535, SDK-25521
Reviewer: Evtim
Tests run: checkintests mustella full run
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.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/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
+++ frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as
@@ -542,6 +542,68 @@

         _bottom = value;
         invalidateParentSizeAndDisplayList();
+    }
+
+    //----------------------------------
+    //  estimatedHeight
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the estimatedHeight property.
+     */
+    private var _estimatedHeight:Number;
+
+    /**
+     *  The height a component is likely to be given at layout time.  It is
+     *  determined by examining the parent's estimatedHeight, and the
+     *  component's percentHeight, explicitHeight, top and bottom constraints.
+     *  It is NaN if there isn't enough information to compute the height.
+     *  The component can use this information in calculating its
+     *  measuredWidth if the measuredWidth is dependent on the layout
+     *  height.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get estimatedHeight():Number
+    {
+        return _estimatedHeight;
+    }
+
+    //----------------------------------
+    //  estimatedWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the estimatedWidth property.
+     */
+    private var _estimatedWidth:Number;
+
+    /**
+     *  The width a component is likely to be given at layout time.  It is
+     *  determined by examining the parent's estimatedWidth, and the
+     *  component's percentWidth, explicitWidth, left and right constraints.
+     *  It is NaN if there isn't enough information to compute the width.
+     *  The component can use this information in calculating its
+     *  measuredHeight if the measuredHeight is dependent on the layout
+     *  width.
+     *
+     *  @default NaN
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+    public function get estimatedWidth():Number
+    {
+        return _estimatedWidth;
     }

     //----------------------------------
@@ -4329,6 +4391,22 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.5
+     */
+	public function setEstimatedSize(estimatedWidth:Number = NaN,
+                                     estimatedHeight:Number = NaN,
+									 invalidateSize:Boolean = true):void
+    {
+        _estimatedWidth = estimatedWidth;
+        _estimatedHeight = estimatedHeight;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4


Oops, stray debug line got left in

Oops, stray debug line got left in

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

--- src/as/com/threerings/presents/client/Communicator.as
+++ src/as/com/threerings/presents/client/Communicator.as
@@ -293,7 +293,6 @@
         _outq.length = 0;

         // well that's great! let's logon
-        log.info("Posting auth request");
         postMessage(new AuthRequest(_client.getCredentials(), _client.getVersion(),
                                     _client.getBootGroups()));
     }


Chat control's child elements can now have a different height than their container.

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

--- src/as/com/threerings/flex/ChatControl.as
+++ src/as/com/threerings/flex/ChatControl.as
@@ -48,7 +48,8 @@
     }

     public function ChatControl (
-        ctx :CrowdContext, sendButtonLabel :String = "send", height :Number = NaN)
+        ctx :CrowdContext, sendButtonLabel :String = "send",
+        height :Number = NaN, controlHeight :Number = NaN)
     {
         _ctx = ctx;
         _chatDtr = _ctx.getChatDirector();
@@ -62,9 +63,9 @@
         _but = new CommandButton(sendButtonLabel, sendChat);
         addChild(_but);

-        if (!isNaN(height)) {
-            _txt.height = height;
-            _but.height = height;
+        if (!isNaN(controlHeight)) {
+            _txt.height = controlHeight;
+            _but.height = controlHeight;
         }

         addEventListener(Event.ADDED_TO_STAGE, handleAddRemove);


Fixed bug where equation column titles wouldn't update in hierarchy on initial session state load.

--- WeaveData/src/weave/data/DataSources/MultiDataSource.as
+++ WeaveData/src/weave/data/DataSources/MultiDataSource.as
@@ -46,15 +46,9 @@
 	{
 		public function MultiDataSource()
 		{
-			var sources:Array = _root.getObjects(IDataSource);
-
-			for each(var source:IDataSource in sources)
-			{
-				if(!(source is MultiDataSource))
-				{
-					getCallbackCollection(source.attributeHierarchy).addImmediateCallback(this, handleHierarchyChange);
-				}
-			}
+			var dependencies:Array = _root.getObjects(IDataSource).concat(_root.getObjects(EquationColumn), _root.getObjects(CSVColumn));
+			for each (var obj:ILinkableObject in dependencies)
+				addDependency(obj);

 			_root.childListCallbacks.addImmediateCallback(this, handleWeaveChildListChange);
 			handleHierarchyChange();
@@ -78,20 +72,21 @@
 			return _attributeHierarchy;
 		}

-
+		private function addDependency(obj:ILinkableObject):void
+		{
+			if (!(obj is MultiDataSource) && (obj is IDataSource || obj is IAttributeColumn))
+			{
+				if (obj is IDataSource)
+					obj = (obj as IDataSource).attributeHierarchy;
+
+				registerLinkableChild(this, obj);
+				getCallbackCollection(obj).addGroupedCallback(this, handleHierarchyChange);
+			}
+		}
 		private function handleWeaveChildListChange():void
 		{
 			// add callback to new IDataSource or IAttributeColumn so we refresh the hierarchy when it changes
-			var newObj:ILinkableObject = _root.childListCallbacks.lastObjectAdded;
-			if (!(newObj is MultiDataSource))
-			{
-				if (newObj is IDataSource || newObj is IAttributeColumn)
-				{
-					registerLinkableChild(this, newObj);
-					getCallbackCollection(newObj).addImmediateCallback(this, handleHierarchyChange);
-				}
-			}
-
+			addDependency(_root.childListCallbacks.lastObjectAdded);
 			handleHierarchyChange();
 		}


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

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

 package mx.controls.menuClasses
 {


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

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

 package mx.controls.treeClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as
@@ -11,15 +11,30 @@

 /**
  *  Documentation is not currently available.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="selectionColor", type="uint", format="Color", inherit="yes")]

 /**
  *  Documentation is not currently available.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="inactiveSelectionColor", type="uint", format="Color", inherit="yes")]

 /**
  *  Documentation is not currently available.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="unfocusedSelectionColor", type="uint", format="Color", inherit="yes")]


astar

astar

--- test/src/pathfind/AStar.as
+++ test/src/pathfind/AStar.as
@@ -42,7 +42,7 @@
 			return x.f < y.f;
 		}

-		public function findPath(startX:int, startY:int, endX:int, endY:int,maxStep:int=1000000):Boolean
+		public function findPath(startX:int, startY:int, endX:int, endY:int,maxStep:int=0):Boolean
 		{
 			nowVersion++;
 			var step:int = 0;
@@ -119,7 +119,7 @@
 						}
 					}
 				}
-				if (open.a.length == 1||step>maxStep)
+				if (open.a.length == 1||(maxStep!=0&&step>maxStep))
 				{
 					isFind = false;
 					break;


fixed performance bug in getSelectableAttributeNames()

--- WeaveUI/src/weave/visualization/tools/SimpleVisTool.as
+++ WeaveUI/src/weave/visualization/tools/SimpleVisTool.as
@@ -32,6 +32,7 @@
 	import weave.api.data.ISimpleGeometry;
 	import weave.api.getCallbackCollection;
 	import weave.api.getLinkableDescendants;
+	import weave.api.getLinkableOwner;
 	import weave.api.newLinkableChild;
 	import weave.api.registerLinkableChild;
 	import weave.api.ui.IInitSelectableAttributes;
@@ -177,8 +178,10 @@

 			var descendants:Array = getLinkableDescendants(this, ISelectableAttributes);
 			return [].concat.apply(null, descendants.map(function(descendant:ISelectableAttributes, i:int, a:Array):Array {
-				var path:Array = WeaveAPI.SessionManager.getPath(WeaveAPI.globalHashMap, descendant);
-				var descendantName:String = path[path.length - 1];
+				var owner:ILinkableHashMap = getLinkableOwner(descendant);
+				if (!owner)
+					return [];
+				var descendantName:String = owner.getName(descendant);
 				return descendant.getSelectableAttributeNames().map(function(attrName:String, i:int, a:Array):String {
 					if (descendants.length == 1)
 						return attrName;


fix unit test so that travis will not fail

--- snowplow-as3-tracker-tests/src/TrackerPayloadTest.as
+++ snowplow-as3-tracker-tests/src/TrackerPayloadTest.as
@@ -91,10 +91,13 @@
 			payload.addMap(foo, true, "cx", "co");

 			var res1:String = "{\"cx\":\"eyJteUtleSI6Im15IFZhbHVlIiwibWVoaCI6WyJzb21lYmFyIiwic29tZWJhcjIiXX0=\"}";
-			var res2:String = "{\"cx\":\"eyJtZWhoIjpbInNvbWViYXIiLCJzb21lYmFyMiJdLCJteUtleSI6Im15IFZhbHVlIn0=\"}";
+			var res2:String = "{\"cx\":\"eyJteUtleSI6Im15IFZhbHVlIiwibWVoaCI6WyJzb21lYmFyIiwic29tZWJhcjIiXX0\"}";
+			var res3:String = "{\"cx\":\"eyJtZWhoIjpbInNvbWViYXIiLCJzb21lYmFyMiJdLCJteUtleSI6Im15IFZhbHVlIn0=\"}";
+			var res4:String = "{\"cx\":\"eyJtZWhoIjpbInNvbWViYXIiLCJzb21lYmFyMiJdLCJteUtleSI6Im15IFZhbHVlIn0\"}";
+
 			var payloadString:String = payload.toString();

-			Assert.assertTrue(payloadString == res1 || payloadString == res2);
+			Assert.assertTrue(payloadString == res1 || payloadString == res2 || payloadString == res3 || payloadString == res4);
 		}

 		[Test]


urls fixed

urls fixed

--- Arguments/src/ValueObjects/AGORAParameters.as
+++ Arguments/src/ValueObjects/AGORAParameters.as
@@ -95,9 +95,9 @@
 			loginURL = "http://agora.gatech.edu/dev/login.php";
 			registrationURL = "http://agora.gatech.edu/dev/register.php";
 			mapRemoveURL = "http://agora.gatech.edu/release/remove_map.php";
-			deleteURL = "http://agora.gatech.edu/release/remove.php";
-			insertURL = "http://agora.gatech.edu/release/insert.php";
-			loadMapURL = "http://agora.gatech.edu/release/load_map.php";
+			deleteURL = "http://agora.gatech.edu/rework/remove.php";
+			insertURL = "http://agora.gatech.edu/dev/insert.php";
+			loadMapURL = "http://agora.gatech.edu/rework/load_map.php";

 			MAP_LOADING_FAILED = "Error occured when loading map";
 			STATEMENT_TOGGLE_FAILED = "Error occurred when trying to toggle the type of statement";


Re-designed Player Game Object

Re-designed Player Game Object

--- DroneAnarchy/Resources/Scripts/GameObjects.as
+++ DroneAnarchy/Resources/Scripts/GameObjects.as
@@ -28,11 +28,49 @@
 {
 	float maximumHealth_;
 	float currentHealth_;
+	WeaponObjectBase@ weapon_;

 	PlayerObject()
 	{
 		maximumHealth_ = currentHealth_ = 100;
+	}
+
+	void DelayedStart()
+	{
+		SubscribeToEvent("ActivateWeapon", "HandleActivateWeapon");
+		SubscribeToEvent("PlayerMouseMove","HandleMouseMove");
+		Initialise();
+	}
+
+	void Initialise()
+	{
+		RigidBody@ playerBody  = node.CreateComponent("RigidBody");
+		playerBody.SetCollisionLayerAndMask(PLAYER_COLLISION_LAYER, DRONE_COLLISION_LAYER);
+		CollisionShape@ playerColShape = node.CreateComponent("CollisionShape");
+		playerColShape.SetSphere(2);
+		SetWeapon(OrdinaryWeapon(node.GetChild("CameraNode")));
+	}
+
+	void HandleActivateWeapon(StringHash eventType, VariantMap& eventData)
+	{
+		weapon_.Fire();
+	}
+
+	void HandleMouseMove(StringHash eventType, VariantMap& eventData)
+	{
+		int dx = eventData["DX"].GetInt();
+		int dy = eventData["DY"].GetInt();
+
+		Node@ cameraNode = node.GetChild("CameraNode");
+
+		float playerYaw = node.rotation.yaw + (dx * 0.25f);
+		float camPitch = cameraNode.rotation.pitch + (dy * 0.25f);
+
+		camPitch = Clamp(camPitch, -20.0f, 70.0f);
+
+		cameraNode.rotation = Quaternion(camPitch, 0.0f, 0.0f);
+		node.rotation = Quaternion(0.0f, playerYaw, 0.0f);
 	}

 	void OnHit(float damagePoint)
@@ -40,13 +78,32 @@
 		currentHealth_ -= damagePoint;
 		if(currentHealth_ < 0.0f )
 		{
+			//if health is equal to or below zero notify that the player
+			//has been destroyed
 			currentHealth_ = 0.0f;
+			VariantMap eventData;
+
+			Node@ cameraNode = node.GetChild("CameraNode");
+			eventData["CamPosition"] = cameraNode.worldPosition;
+			eventData["CamRotation"] = cameraNode.worldRotation;
+
+			eventData["PlayerPosition"] = node.worldPosition;
+			eventData["PlayerRotation"] = node.worldRotation;
+
+			SendEvent("PlayerDestroyed",eventData);
+
+			//node.GetChild("DirectionalLight").enabled = false;
 		}

 		float healthFraction = currentHealth_ / maximumHealth_;
 		VariantMap eventData;
 		eventData["CurrentHealthFraction"] = healthFraction;
 		SendEvent("PlayerHit", eventData);
+	}
+
+	void SetWeapon(WeaponObjectBase@ weapon)
+	{
+		weapon_ = weapon;
 	}
 }


Added new implementation for Bullet Object

--- DroneAnarchy/Resources/Scripts/GameObjects.as
+++ DroneAnarchy/Resources/Scripts/GameObjects.as
@@ -7,6 +7,13 @@
 	DT_TOKEN_DRONE
 }

+//Bullet Type Enum
+enum BulletObjectType
+{
+	BOT_LOW,
+	BOT_NORMAL,
+	BOT_POWERFUL
+}

 ///Player Object

@@ -79,7 +86,7 @@
 }

-///Drone Object
+///Low Level Drone Object
 class LowLevelDrone : DroneObjectBase
 {
 	int killPoint_;
@@ -190,56 +197,64 @@
 }

-///Bullet Object Class
-class BulletObject : ScriptObject
+///Bullet Base Class
+abstract class BulletObjectBase : ScriptObject
 {
 	float termTime_;
 	float termTimeCounter_;
-
-
-	BulletObject()
-	{
+	BulletObjectType bulletObjectType_;
+	float damagePoint_;
+
+
+	void Start()
+	{
+		SubscribeToEvent(node, "NodeCollision", "HandleNodeCollision");
+	}
+
+
+	void FixedUpdate(float timestep)
+	{
+		termTimeCounter_ += timestep;
+
+		if(termTimeCounter_ >= termTime_)
+		{
+			Destroy();
+		}
+	}
+
+
+	void HandleNodeCollision(StringHash eventType, VariantMap& eventData)
+	{
+		Node@ otherNode = eventData["OtherNode"].GetPtr();
+		DroneObjectBase@ droneObj = cast<DroneObjectBase>(otherNode.scriptObject);
+
+
+		if(droneObj !is null)
+		{
+			droneObj.OnHit(damagePoint_);
+		}
+
+		Destroy();
+	}
+
+	void Destroy()
+	{
+		node.Remove();
+	}
+
+}
+
+///Low Level Bullet Object
+class LowLevelBullet : BulletObjectBase
+{
+	LowLevelBullet()
+	{
+		bulletObjectType_ = BOT_LOW;
 		termTime_ = 1;
 		termTimeCounter_ = 0;
-	}
-
-
-	void Start()
-	{
-		SubscribeToEvent(node, "NodeCollision", "HandleNodeCollision");
-	}
-
-
-	void FixedUpdate(float timestep)
-	{
-		termTimeCounter_ += timestep;
-
-		if(termTimeCounter_ >= termTime_)
-		{
-			Destroy();
-		}
-	}
-
-
-	void HandleNodeCollision(StringHash eventType, VariantMap& eventData)
-	{
-		Node@ otherNode = eventData["OtherNode"].GetPtr();
-		DroneObject@ droneObj = cast<DroneObject>(otherNode.scriptObject);
-
-
-		if(droneObj !is null)
-		{
-			droneObj.OnHit();
-			SendEvent("DroneHit");
-		}
-
-		Destroy();
-	}
-
-	void Destroy()
-	{
-		node.Remove();
-	}
+		damagePoint_ = 1;
+	}
+
 }


Editor: presidence screwing up grid showing up

--- Bin/Data/Scripts/Editor/EditorView.as
+++ Bin/Data/Scripts/Editor/EditorView.as
@@ -87,7 +87,7 @@
         viewport = Viewport(editorScene, camera, viewRect);
         index = index_;
         viewportId = viewportId_;
-        camera.viewMask = 0x80000000 + 1 << index; // It's easier to only have 1 gizmo active this viewport is shared with the gizmo
+        camera.viewMask = 0x80000000 + (1 << index); // It's easier to only have 1 gizmo active this viewport is shared with the gizmo
     }

     void ResetCamera()


Updated JSON parser to accept '0xff' styled hex numbers

git-svn-id: 6aa7ccb0a2048310a30f08a72aaff4ca39d980ed@216 91848ab2-c4ae-4e4f-8e6a-6a52ea0dccc3

--- flare/lib/com/adobe/serialization/json/JSONTokenizer.as
+++ flare/lib/com/adobe/serialization/json/JSONTokenizer.as
@@ -337,6 +337,14 @@
 					input += ch;
 					nextChar();
 				}
+			} else if ( ch == 'x' || ch == 'X' ) {
+				input += 'x';
+				nextChar();
+				// read more numbers to get the hexadecimal value
+				while ( isHexDigit( ch ) ) {
+					input += ch;
+					nextChar();
+				}
 			}

 			//Application.application.show( "number = " + input );


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

--- frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLEncoding.as
+++ frameworks/projects/rpc/src/mx/rpc/wsdl/WSDLEncoding.as
@@ -0,0 +1,230 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2006-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.rpc.wsdl
+{
+
+import mx.rpc.soap.SOAPConstants;
+
+[ExcludeClass]
+
+/**
+ * SOAP specific WSDL bindings that describe how to encode messages
+ * for a given operation.
+ *
+ * @private
+ */
+public class WSDLEncoding
+{
+    public function WSDLEncoding()
+    {
+        super();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Currently only SOAP 1.1 encoding is supported. The default
+     * encoding style is
+     * "http://schemas.xmlsoap.org/soap/encoding/".
+     *
+     *

+     * From the WSDL 1.1 specification:
+     *

+     *

+     * "The value of the encodingStyle attribute is a list of
+     * URIs, each separated by a single space. The URI's represent encodings
+     * used within the message, in order from most restrictive to least
+     * restrictive (exactly like the encodingStyle attribute defined in the
+     * SOAP specification).
+     *

+     */
+    public function get encodingStyle():String
+    {
+        if (_encodingStyle == null)
+            _encodingStyle = soapConstants.encodingURI;
+
+        return _encodingStyle;
+    }
+
+    public function set encodingStyle(value:String):void
+    {
+        _encodingStyle = value ? value : soapConstants.encodingURI;
+    }
+
+    /**
+     * The SOAP header and header fault extensions for WSDL bindings define
+     * a message attribute to target a WSDL message that contains
+     * the specified part.
+     *

+     * From the WSDL 1.1 specification:
+     *

+     *

+     * "Together, the message attribute (of type QName) and the part
+     * attribute (of type nmtoken) reference the message part that defines the
+     * header type. The referenced message need not be the same as the message
+     * that defines the SOAP Body."
+     *

+     */
+    public function get message():QName
+    {
+        return _message;
+    }
+
+    public function set message(value:QName):void
+    {
+        _message = value;
+    }
+
+
+    /**
+     * The SOAP body extension for WSDL bindings using the rpc style may define
+     * a namespace attribute that is used to create a qualified
+     * wrapper element within the body.
+     *

+     * From the WSDL 1.1 specification:
+     *

+     *

+     * "The wrapper element is named identically to the operation name and
+     * its namespace is the value of the namespace attribute."
+     *

+     */
+    public function get namespaceURI():String
+    {
+        return _namespaceURI;
+    }
+
+    public function set namespaceURI(value:String):void
+    {
+        _namespaceURI = value;
+    }
+
+    /**
+     * The SOAP body extension for WSDL bindings may define a parts
+     * attribute to select which message parts appear in the SOAP Body. The SOAP
+     * header and header fault extensions for WSDL bindings may define a
+     * part attribute to select a single message part to appear
+     * as the header content.
+     *

+     * From the WSDL 1.1 specification:
+     *

+     *

+     * "The optional parts attribute of type nmtokens indicates which parts
+     * appear somewhere within the SOAP Body portion of the message (other
+     * parts of a message may appear in other portions of the message such as
+     * when SOAP is used in conjunction with the multipart/related MIME
+     * binding). If the parts attribute is omitted, then all parts defined by
+     * the message are assumed to be included in the SOAP Body portion."
+     *

+     */
+    public function get parts():Array
+    {
+        return _parts;
+    }
+
+    /**
+     * The SOAPConstants associated with this set of encoding rules
+     * for the WSDL binding of a messsage for a particular operation.
+     */
+    public function get soapConstants():SOAPConstants
+    {
+        if (_soapConstants == null)
+            _soapConstants = SOAPConstants.getConstants(null);
+
+        return _soapConstants;
+    }
+
+    /**
+     *

+     * Expected use style values are literal or
+     * encoded. The default is encoded.
+     *

+     * From the WSDL 1.1 specification:
+     *
+     *

+     * "The required use attribute indicates whether the message parts are
+     * encoded using some encoding rules, or whether the parts define the
+     * concrete schema of the message."
+     *

+     */
+    public function get useStyle():String
+    {
+        return _useStyle;
+    }
+
+    public function set useStyle(value:String):void
+    {
+        _useStyle = value;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Determines whether a part should be included when encoding this message.
+     */
+    public function hasPart(name:String):Boolean
+    {
+        if (_parts != null && _parts.length > 0)
+        {
+            for each (var part:String in _parts)
+            {
+                if (part == name)
+                    return true;
+            }
+            return false;
+        }
+
+        // No parts defined means that we include all by default.
+        return true;
+    }
+
+    /**
+     * Establishes a subset of parts that should be included in the message.
+     * If a subset is not defined, the default is to include all parts in a
+     * message.
+     */
+    public function setParts(value:String):void
+    {
+        if (value != null && value.length > 0)
+        {
+            _parts = [];
+            var array:Array = value.split(" ");
+            for each (var part:String in array)
+            {
+                if (part.length > 0)
+                {
+                    _parts.push(part);
+                }
+            }
+        }
+        else
+        {
+            _parts = null;
+        }
+    }
+
+    private var _encodingStyle:String = SOAPConstants.SOAP_ENCODING_URI;
+    private var _message:QName;
+    private var _namespaceURI:String;
+    private var _parts:Array;
+    private var _soapConstants:SOAPConstants;
+    private var _useStyle:String = SOAPConstants.DEFAULT_USE;
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7390
Author:   rfrishbe@adobe.com
Date:     2009-05-28T21:48:59.963797Z

Log Message:
-----------
Adding wireframe skins for VideoPlayer.

Also fixing up some other VideoPlayer bugs around fullscreen (going into normal mode wouldn't stop the timer to hide the controls correctly).  Fixed the pause() and stop() methods so that when we're not connected to a source to do nothing instead of RTEing.

Also updated the underlyign FLVPlayback control to the newest version.

Fixed some ASDoc issues in various files.

QE Notes: -
Doc Notes: -
Bugs: SDK-21435
Reviewer: Glenn
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerVolumeBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerScrubBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerScrubBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/WireframeClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/fl/video/DynamicStream.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerVolumeBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerFullScreenFullScreenButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerVolumeBarMuteButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/VideoPlayerFullScreenFullScreenButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/fl/video/ComponentVersion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerScrubBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerVolumeBarSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerVolumeBarThumbSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerFullScreenButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerPlayPauseButtonSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -374,7 +374,7 @@
      *  at a time.

      *
      *
If the content is an Array, do not modify the Array
-     *  directly. Use the methods defined by Group class instead.

+     *  directly. Use the methods defined by the Group class instead.

      *
      *  @default null
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 6132
Author:   rfrishbe@adobe.com
Date:     2009-04-10T18:54:23.401493Z

Log Message:
-----------
Adding copyright headers to some files.  Also removing numChildren, getChildAt, getChildIndex() from the ASDocs where they dont' make sense.

QE Notes: -
Doc Notes: -
Bugs: -
Reviewer: -
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -79,6 +79,9 @@
 [Exclude(name="setChildIndex", kind="method")]
 [Exclude(name="swapChildren", kind="method")]
 [Exclude(name="swapChildrenAt", kind="method")]
+[Exclude(name="numChildren", kind="property")]
+[Exclude(name="getChildAt", kind="method")]
+[Exclude(name="getChildIndex", kind="method")]

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 22217
Author:   mhorn@adobe.com
Date:     2011-08-25T18:07:03.696931Z

Log Message:
-----------
minor asdoc change

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/controls/ToolTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ToggleButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mx/src/mx/controls/ProgressBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/BorderContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Panel.as
+++ frameworks/projects/spark/src/spark/components/Panel.as
@@ -141,7 +141,7 @@
  * Because this component does not define a skin for the mobile theme, Adobe
  * recommends that you not use it in a mobile application. Alternatively, you
  * can define your own mobile skin for the component. For more information,
- * see Spark Skinning.
+ * see Basics of mobile skinning.
  */
 [DiscouragedForProfile("mobileDevice")]


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 153
Author:   proberts@adobe.com
Date:     2008-01-10T20:22:23.867658Z

Log Message:
-----------
Severity: ignore
Description: docs update -- added @productVersion tag to Flex AIR classes' class descriptions.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>

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

--- frameworks/projects/airframework/src/mx/core/IWindow.as
+++ frameworks/projects/airframework/src/mx/core/IWindow.as
@@ -18,6 +18,8 @@
  *  The IWindow interface defines the API for components that serve as top-level
  *  containers in Flex-based AIR applications (containers that represent operating
  *  system windows).
+ *
+ *  @productversion Apollo 1.0
  */
 public interface IWindow
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11163
Author:   dloverin@adobe.com
Date:     2009-10-26T20:35:33.260693Z

Log Message:
-----------
Changes to turn on the per-module style feature by default.

The feature can be turned off by compiling with -isolateStyles=false.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex, Paul
Tests run: checkintests, all mustella
Is noteworthy for integration: Yes.

Summary of changes:

frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
Propagate the module factory in setFlexContent.

frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
Implement IFlexModule

frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/Alert.as
Set moduleFactory to parent if parent is an IFlexModuleFactory.

frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/RadioButton.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/SWFLoader.as
Handle the “get parent module factory” request from an embedded swf.

frameworks/projects/framework/src/mx/core/Container.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/core/UIComponent.as
Defer setting styles until a module factory is set.

frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
Set the module factory of an added child.

frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
Set the module factory of the tooltip to be the same as the target.

frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
Rename parameter based on PARB feedback.

frameworks/projects/framework/src/mx/styles/IStyleModule.as
Add setStyleDeclarations per spec.

frameworks/projects/framework/src/mx/styles/StyleManager.as
Deprecate old static StyleManager API.

frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
Use IStyleModule.setStyleDeclarations.

frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/spark/components/Group.as
Propagate moduleFactory in elementAdded().

modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
Rename –create-style-manager option to –isloateStyles. The option has been changed from hidden to advanced.

modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
Fix bug to not add a default factory that is not needed.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
Initialize styles in a module factory setter override.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
Generate code to match ClassDef.vm and ClassDefLib.vm changes.

modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
Add IFlexModuleFactory to standard imports.

modules/compiler/src/java/flex2/configuration_en.properties
Rename –create-style-manager option to –isloateStyles.

modules/compiler/src/java/flex2/tools/PreLink.java
Rename –create-style-manager option to –isloateStyles.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</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/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/spark/src/spark/components/Group.as
+++ frameworks/projects/spark/src/spark/components/Group.as
@@ -16,6 +16,7 @@
 import flash.display.DisplayObject;
 import flash.geom.Rectangle;

+import mx.core.IFlexModule;
 import mx.core.IFontContextComponent;
 import mx.core.IUIComponent;
 import mx.core.IUITextField;
@@ -1343,6 +1344,20 @@
         if (element.depth != 0)
             invalidateLayering();

+        // Set the moduleFactory to the child, but don't overwrite an existing moduleFactory.
+        // Propagate moduleFactory to the child, but don't overwrite an existing moduleFactory.
+        if (element is IFlexModule && IFlexModule(element).moduleFactory == null)
+        {
+            if (moduleFactory != null)
+                IFlexModule(element).moduleFactory = moduleFactory;
+
+            else if (document is IFlexModule && document.moduleFactory != null)
+                IFlexModule(element).moduleFactory = document.moduleFactory;
+
+            else if (parent is IFlexModule && IFlexModule(element).moduleFactory != null)
+                IFlexModule(element).moduleFactory = IFlexModule(parent).moduleFactory;
+        }
+
         // Set the font context in non-UIComponent children.
         // UIComponent children use moduleFactory.
         if (element is IFontContextComponent && !(element is UIComponent) &&


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

--- frameworks/projects/advancedgrids/src/mx/olap/IOLAPCubeImpl.as
+++ frameworks/projects/advancedgrids/src/mx/olap/IOLAPCubeImpl.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: 12865
Author:   aharui@adobe.com
Date:     2009-12-11T21:51:27.725470Z

Log Message:
-----------
Fix mx.controls.HTML and mx.core.FlexHTMLLoader so the participate in the current IME scheme

QE Notes: None
Doc Notes: None
Bugs: SDK-24391
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/apollo/HTML

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>

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

--- frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
+++ frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
@@ -30,7 +30,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-public class FlexHTMLLoader extends HTMLLoader implements IFocusManagerComplexComponent
+public class FlexHTMLLoader extends HTMLLoader implements IFocusManagerComplexComponent, IIMESupport
 {
     include "../core/Version.as";

@@ -79,6 +79,8 @@
             // In this case, we ignore the error and toString() will
             // use the name assigned in the Flash authoring tool.
         }
+
+        addEventListener(Event.HTML_RENDER, htmlRenderHandler);
     }

     //--------------------------------------------------------------------------
@@ -86,6 +88,28 @@
     //  Methods
     //
     //--------------------------------------------------------------------------
+
+    // AIR 1.5 unexpectedly changes hasFocusableContent during interaction
+    // so we cache it on RENDER.  It seems to be correct then.
+    private var _hasFocusableContent:Boolean;
+
+    //----------------------------------
+    //  enableIME
+    //----------------------------------
+
+    /**
+     *  A flag that indicates whether the IME should
+     *  be enabled when the component receives focus.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get enableIME():Boolean
+    {
+        return _hasFocusableContent;
+    }

     //----------------------------------
     //  focusEnabled
@@ -171,6 +195,41 @@
             _hasFocusableChildren = value;
             dispatchEvent(new Event("hasFocusableChildrenChange"));
         }
+    }
+
+    //----------------------------------
+    //  imeMode
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _imeMode:String = null;
+
+    /**
+     *  This is just a stub to support the interface.
+     *  The parent mx.controls.HTML contains the conversionMode and
+     *  applies it.
+     */
+    public function get imeMode():String
+    {
+        return _imeMode;
+    }
+
+    /**
+     *  @private
+     */
+    public function set imeMode(value:String):void
+    {
+        _imeMode = value;
+        // We don't call IME.conversionMode here. We call it
+        // only on focusIn. Thus fringe cases like setting
+        // imeMode dynamically without moving focus, through
+        // keyboard events, wouldn't change the mode. Also
+        // getting imeMode asynch. from the server which gets
+        // delayed and set later after focusIn is not handled
+        // as having the text partly in one script and partly
+        // in another is not desirable.
     }

     //----------------------------------
@@ -314,6 +373,20 @@

     //--------------------------------------------------------------------------
     //
+    //  Event Handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private  function htmlRenderHandler(event:Event):void
+    {
+        _hasFocusableContent = hasFocusableContent;
+    }
+
+    //--------------------------------------------------------------------------
+    //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------


Transferred from the Adobe Open Source Subversion Repository

Revision: 19855
Author:   mcho@adobe.com
Date:     2011-01-21T00:28:09.087498Z

Log Message:
-----------
Replace itemMinimumHeight with minHeight

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as
@@ -292,18 +292,18 @@
 		{
 			case DPIClassification.DPI_320:
 			{
-				itemMinimumHeight = 88;
+				minHeight = 88;
 				break;
 			}
 			case DPIClassification.DPI_240:
 			{
-				itemMinimumHeight = 66;
+				minHeight = 66;
 				break;
 			}
 			default:
 			{
 				// default PPI160
-				itemMinimumHeight = 44;
+				minHeight = 44;
 				break;
 			}
 		}
@@ -674,23 +674,6 @@
 		return FlexGlobals.topLevelApplication.applicationDPI;
 	}

-
-	//--------------------------------------------------------------------------
-	//
-	//  Protected Properties
-	//
-	//--------------------------------------------------------------------------
-	/**
-	 *  Minimum height of the item renderer
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 2.5
-	 *  @productversion Flex 4.5
-	 */
-	protected var itemMinimumHeight:uint = 0;
-
-
     //--------------------------------------------------------------------------
     //
     //  Overridden methods: UIComponent
@@ -769,11 +752,7 @@
             measuredHeight = getElementPreferredHeight(labelDisplay) + verticalPadding;
 		}

-        // enforce minimum height
-        measuredHeight = Math.max(measuredHeight, itemMinimumHeight);
-
         measuredMinWidth = 0;
-        measuredMinHeight = itemMinimumHeight;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3983
Author:   hmuller@adobe.com
Date:     2008-10-31T19:10:19.937648Z

Log Message:
-----------
Fixed 17820, 17834, various small improvements to the viewport et al ASDoc.

QE Notes: viewport and scroller mustella tests pass
Doc Notes: None
Bugs: sdk-17820, sdk-17834
Reviewer:

Modified Paths:
--------------
<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/components/baseClasses/FxScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.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/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -190,11 +190,28 @@
     private var _viewport:IViewport;

     /**
-     *  The ViewPort object associated with the scroll bars.
-     *  A viewport is a UIComponent that implements the IViewport interface,
-     *  such as the Group component.
-     *
-     *  @see mx.components.Group
+     *  The viewport controlled by this scrollbar.
+     *
+     *  If a viewport is specified, then changes to its actual size, content
+     *  size, and scroll position, cause the corresponding ScrollBar methods to
+     *  run:
+     *

+     *
viewportResizeHandler()

+     *
contentWidthChangeHandler()

+     *
contentHeightChangeHandler()

+     *
viewportVerticalScrollPositionChangeHandler()

+     *
viewportHorizontalScrollPositionChangeHandler()

+     *

+     *
+     *
The FxVScrollBar and FxHScrollBar classes override these methods to
+     *  keep their pageSize, maximum, and value properties in sync with the
+     *  viewport.   Similarly, they override their page and step methods to
+     *  use the viewport's scrollPositionDelta methods to compute page and
+     *  and step offsets.

+     *
+     *  @default null
+     *  @see mx.components.FxVScrollBar
+     *  @see mx.components.FxHScrollBar
      *
      */
     public function get viewport():IViewport


不在 for 中使用 const 以便兼容旧版本的 mxmlc

不在 for 中使用 const 以便兼容旧版本的 mxmlc

--- as3/com/netease/protobuf/VarintWriter.as
+++ as3/com/netease/protobuf/VarintWriter.as
@@ -16,8 +16,8 @@
 				this[0] &= 0x7F
 			} else {
 				for (var i:uint = length; i > 0;) {
-					const l:uint = i - 1
-					const byte:uint = this[l]
+					var l:uint = i - 1
+					var byte:uint = this[l]
 					if (byte != 0x80) {
 						this[l] = byte & 0x7F
 						length = i


code cleanup

code cleanup

Change-Id: Icd7fd7f02a43175ccfcdc3d9ae637c7e7590715a

--- WeaveData/src/weave/data/ProjectionManager.as
+++ WeaveData/src/weave/data/ProjectionManager.as
@@ -21,7 +21,6 @@
 {
 	import flash.geom.Point;
 	import flash.utils.ByteArray;
-	import flash.utils.Dictionary;

 	import org.openscales.proj4as.Proj4as;
 	import org.openscales.proj4as.ProjConstants;
@@ -33,9 +32,11 @@
 	import weave.api.data.IProjectionManager;
 	import weave.api.data.IProjector;
 	import weave.api.newDisposableChild;
+	import weave.api.objectWasDisposed;
 	import weave.api.primitives.IBounds2D;
 	import weave.data.AttributeColumns.ProxyColumn;
 	import weave.primitives.Bounds2D;
+	import weave.utils.Dictionary2D;

 	/**
 	 * An interface for reprojecting columns of geometries and individual coordinates.
@@ -80,10 +81,9 @@

 		/**
-		 * This is a multi-dimensional lookup:   unprojectedColumn -> Object, destinationSRS -> ProxyColumn
-		 * Example: _reprojectedColumnCache[column][destinationSRS] is a ProxyColumn containing geometries reprojected to the given SRS.
+		 * This is a multi-dimensional lookup for ProxyColumn objects containing reprojected geometries:   (unprojectedColumn, destinationSRS) -> ProxyColumn
 		 */
-		private const _reprojectedColumnCache:Dictionary = new Dictionary(true); // weak links to be gc-friendly
+		private const _reprojectedColumnCache_d2d_col_srs:Dictionary2D = new Dictionary2D(true); // weak links to be gc-friendly

 		/**
 		 * @inheritDoc
@@ -97,27 +97,17 @@
 			if (destinationProjectionSRS == null || destinationProjectionSRS == '')
 				return geometryColumn;

-			// check the cache
-			var srsCache:Object = _reprojectedColumnCache[geometryColumn] as Object;
-			if (srsCache == null)
-			{
-				srsCache = new Object(); // destinationSRS -> ProxyColumn
-				_reprojectedColumnCache[geometryColumn] = srsCache;
+			// check the cache
+			var worker:WorkerThread = _reprojectedColumnCache_d2d_col_srs.get(geometryColumn, destinationProjectionSRS);
+
+			// if worker doesn't exist yet or was disposed, (re)create it
+			if (!worker || objectWasDisposed(worker))
+			{
+				worker = new WorkerThread(this, geometryColumn, destinationProjectionSRS);
+				_reprojectedColumnCache_d2d_col_srs.set(geometryColumn, destinationProjectionSRS, worker);
 			}
-			var reprojectedColumn:ProxyColumn = srsCache[destinationProjectionSRS] as ProxyColumn;
-
-			// if reprojected column is cached, return it
-			if (reprojectedColumn)
-				return reprojectedColumn;
-
-			// otherwise, create a proxy that will provide the reprojected shapes and save it in the cache
-			reprojectedColumn = newDisposableChild(this, ProxyColumn);
-			srsCache[destinationProjectionSRS] = reprojectedColumn;
-
-			// create a WorkerThread that will reproject the geometries
-			new WorkerThread(this, geometryColumn, reprojectedColumn, destinationProjectionSRS);
-
-			return reprojectedColumn;
+
+			return worker.reprojectedColumn;
 		}

 		/**
@@ -315,12 +305,15 @@
 import org.openscales.proj4as.ProjProjection;

 import weave.api.WeaveAPI;
+import weave.api.core.IDisposableObject;
 import weave.api.data.ColumnMetadata;
 import weave.api.data.DataTypes;
 import weave.api.data.IAttributeColumn;
 import weave.api.data.IColumnWrapper;
 import weave.api.data.IProjector;
 import weave.api.data.IQualifiedKey;
+import weave.api.newDisposableChild;
+import weave.api.registerDisposableChild;
 import weave.data.AttributeColumns.GeometryColumn;
 import weave.data.AttributeColumns.ProxyColumn;
 import weave.data.AttributeColumns.StreamedGeometryColumn;
@@ -331,21 +324,32 @@
 import weave.utils.BLGTreeUtils;
 import weave.utils.ColumnUtils;

-internal class WorkerThread
+internal class WorkerThread implements IDisposableObject
 {
-	public function WorkerThread(projectionManager:ProjectionManager, unprojectedColumn:IAttributeColumn, reprojectedColumn:ProxyColumn, destinationProjectionSRS:String)
+	public function WorkerThread(projectionManager:ProjectionManager, unprojectedColumn:IAttributeColumn, destinationProjectionSRS:String)
 	{
+		registerDisposableChild(unprojectedColumn, this);
 		this.projectionManager = projectionManager;
 		this.unprojectedColumn = unprojectedColumn;
-		this.reprojectedColumn = reprojectedColumn;
 		this.destinationProjSRS = destinationProjectionSRS;
+		this.reprojectedColumn = newDisposableChild(this, ProxyColumn);
 		unprojectedColumn.addImmediateCallback(this, asyncStart, true);
+	}
+
+	public function dispose():void
+	{
+		projectionManager = null;
+		unprojectedColumn = null;
+		reprojectedColumn = null;
+		destinationProjSRS = null;
 	}
-
-	// values passed to the constructor -- these will not change.
-	private var projectionManager:ProjectionManager;
+
+	// provides access to reprojected geometries
+	public var reprojectedColumn:ProxyColumn;
+
+	// values passed to the constructor -- these will not change.
+	private var projectionManager:ProjectionManager;
 	private var unprojectedColumn:IAttributeColumn;
-	private var reprojectedColumn:ProxyColumn;
 	private var destinationProjSRS:String;

 	// these values may change as the geometries are processed.


Transferred from the Adobe Open Source Subversion Repository

Revision: 13965
Author:   build@adobe.com
Date:     2010-02-03T20:37:12.428300Z

Log Message:
-----------
Version update to 4.5.0

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/datavisualization/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_flashflexkit/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_dmv/src/mx/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/build.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airspark/src/spark/core/Version.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/VersionInfo.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Version.as</path>

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

--- frameworks/projects/airspark/src/spark/core/Version.as
+++ frameworks/projects/airspark/src/spark/core/Version.as
@@ -15,4 +15,4 @@
  *  @private
  *  Version string for this class.
  */
-mx_internal static const VERSION:String = "4.0.0.0";
+mx_internal static const VERSION:String = "4.5.0.13964";


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

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

 package mx.controls
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

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:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -28,26 +28,51 @@

 /**
  *  @copy mx.components.baseClasses.GroupBase#alternatingItemColors
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes")]

 /**
  *  @copy mx.components.baseClasses.GroupBase#contentBackgroundColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="contentBackgroundColor", type="uint", format="Color", inherit="yes")]

 /**
  *  @copy mx.components.baseClasses.GroupBase#rollOverColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="rollOverColor", type="uint", format="Color", inherit="yes")]

 /**
  *  @copy mx.components.baseClasses.GroupBase#selectionColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="selectionColor", type="uint", format="Color", inherit="yes")]

 /**
  *  @copy mx.components.baseClasses.GroupBase#symbolColor
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 [Style(name="symbolColor", type="uint", format="Color", inherit="yes")]

@@ -71,6 +96,11 @@
  *  on the value of the allowMultipleSelection property.
  *
  *  @includeExample examples/FxListExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxList extends FxListBase implements IFocusManagerComponent
 {
@@ -90,6 +120,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxList()
     {
@@ -111,11 +146,21 @@
      *  TODO: description of how single selection properties
      *  work when multiple selection is enabled. multiple selection
      *  doesn't support selectionChanging event. etc.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     /**
      *  true if the list supports multiple selection.
      *
      *  @default false
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var allowMultipleSelection:Boolean = false;

@@ -140,6 +185,11 @@
      *  is true, the property is set to the first selected item.

      *
      *  @default -1
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override public function get selectedIndex():int
     {
@@ -183,11 +233,21 @@
      *  TODO: describe
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     /**
      *  Selected indices for this component.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get selectedIndices():Array
     {
@@ -219,11 +279,21 @@
      *  TODO: describe
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     /**
      *  Selected items for this component.
      *
      *  @default null
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get selectedItems():Array
     {
@@ -311,6 +381,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function partAdded(partName:String, instance:Object):void
     {
@@ -326,6 +401,11 @@

     /**
      *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function partRemoved(partName:String, instance:Object):void
     {


FLEX-26808 Improved asdocs and comment.

FLEX-26808
Improved asdocs and comment.

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -937,8 +937,9 @@
     /**
      *  @private
      *  Used internally to specify whether the selectedIndices changed programmatically or due to
-     *  user interaction.
-     *
+     *  user interaction.
+     *
+     *  @param value the new indices.
      *  @param dispatchChangeEvent if true, the component will dispatch a "change" event if the
      *  value has changed. Otherwise, it will dispatch a "valueCommit" event.
      *
@@ -2011,7 +2012,7 @@
                     (mouseDownObject is DisplayObjectContainer &&
                         DisplayObjectContainer(mouseDownObject).contains(event.target as DisplayObject)));

-                // check to make sure they clciked on an item and selection should change
+                // check to make sure they clicked on an item and selection should change
                 if (selectionChange)
                 {
                     // now handle the cases where the item is being selected or de-selected


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/primitives/Line.as
+++ frameworks/projects/spark/src/spark/primitives/Line.as
@@ -9,7 +9,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////

-package flex.graphics
+package mx.graphics
 {

 import flash.display.Graphics;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4645
Author:   egeorgie@adobe.com
Date:     2009-01-23T18:20:18.212166Z

Log Message:
-----------
Fix bug http://bugs.adobe.com/jira/browse/SDK-18714 minWidth & minHeight not respected for GraphicElements (Ellipse, etc.)

The fix is to make sure measureWidth and measuredHeight for GraphicElement are restricted by the explicit min/max limits during the measure phase, the same way it works for UIComponent.  This also resulted in a small change to Path, since there we were assuming the measuredWidth and measuredHeight were the natural bounds of the Path.

QE Notes: None
Doc Notes: None
Bugs: SDK-18714
Reviewer: Ryan
tests: mustella(layout), checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/primitives/Path.as
+++ frameworks/projects/spark/src/spark/primitives/Path.as
@@ -484,8 +484,9 @@
      */
     private function getBoundingBox(width:Number, height:Number, m:Matrix):Rectangle
     {
-        var sx:Number = measuredWidth == 0 ? 1 : width / measuredWidth;
-        var sy:Number = measuredHeight == 0 ? 1 : height / measuredHeight;
+        var naturalBounds:Rectangle = getBounds();
+        var sx:Number = naturalBounds.width == 0 ? 1 : width / naturalBounds.width;
+        var sy:Number = naturalBounds.height == 0 ? 1 : height / naturalBounds.height;

         var currentSubPathStartIndex:int = 0;
         var prevSegment:PathSegment;
@@ -571,8 +572,10 @@
         // invisible fill.

         // Adjust the position by the internal scale factor
-        var bounds:Rectangle = new Rectangle(drawX + (measuredX * width / measuredWidth),
-        									 drawY + (measuredY * height / measuredHeight),
+        var naturalBounds:Rectangle = getBounds();
+
+        var bounds:Rectangle = new Rectangle(drawX + (measuredX * width / naturalBounds.width),
+        									 drawY + (measuredY * height / naturalBounds.height),
         									 width,
         									 height);
         if (stroke)


applied TequilaProxy functionality to FabricationProxy. When injecting proxy that is NOT registered we will try to register proxy first. This should work only if proxy class constructor has no params or has default params

--- src/org/puremvc/as3/multicore/utilities/fabrication/injection/ProxyInjector.as
+++ src/org/puremvc/as3/multicore/utilities/fabrication/injection/ProxyInjector.as
@@ -45,11 +45,29 @@
         override protected function getPatternElementForInjection(elementName:String, elementClass:Class):Object
         {

-            var proxy:IProxy = facade.retrieveProxy( elementName ) as IProxy;
+            /*var proxy:IProxy = facade.retrieveProxy( elementName ) as IProxy;
             if( proxy && ( proxy is elementClass ) )
 			    return proxy;
             else
-                return null;
+                return null;*/
+
+            // in first place, try to retrieve proxy from facade
+            var proxy:IProxy = facade.retrieveProxy(elementName);
+
+            // if it fails, we can create proxy and register it in facade.This could work
+            // if proxy constructor does not need params or accept optional params
+            if (null == proxy) {
+
+                try {
+                    proxy = new elementClass() as IProxy;
+                }
+                catch(error:Error) {
+                }
+
+                if ( proxy )
+                    facade.registerProxy(proxy);
+            }
+            return proxy;
         }


now checking if something changed before admin console auto save

Change-Id: I283bc4abdb2e2f73d46544e942e530c1b1b62ae4

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -58,6 +58,7 @@
 	import weave.api.core.ILinkableObject;
 	import weave.api.data.ICSVExportable;
 	import weave.api.data.IDataSource;
+	import weave.api.detectLinkableObjectChange;
 	import weave.api.getCallbackCollection;
 	import weave.api.reportError;
 	import weave.api.ui.IVisTool;
@@ -534,9 +535,12 @@
 		private static const RECOVER_SHARED_OBJECT:String = "WeaveAdminConsoleRecover";
 		private function saveRecoverPoint(event:Event = null):void
 		{
-			var cookie:SharedObject = SharedObject.getLocal(RECOVER_SHARED_OBJECT);
-			cookie.data[RECOVER_SHARED_OBJECT] = Weave.createWeaveFileContent();
-			cookie.flush();
+			if (detectLinkableObjectChange(saveRecoverPoint, WeaveAPI.globalHashMap))
+			{
+				var cookie:SharedObject = SharedObject.getLocal(RECOVER_SHARED_OBJECT);
+				cookie.data[RECOVER_SHARED_OBJECT] = Weave.createWeaveFileContent();
+				cookie.flush();
+			}
 		}
 		private function getRecoverPoint():ByteArray
 		{


Change 20080814-bargull-COE by bargull@dell--p4--2-53 on 2008-08-14 00:26:17
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: swf9 debugloader

New Features:

Bugs Fixed: LPP-6840

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
If there are multiple calls to LFCApplication#consoleInputHandler(), only the last Loader will be saved in LFCApplication#debugloader. Could be an issue when unloading the movieclip in LFCApplication#debugEvalListener().

Tests:

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

--- WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
+++ WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
@@ -135,11 +135,9 @@

     }

-    var debugloader:Loader;
-
     // Debugger loader completion handler
     function debugEvalListener (e:Event):void {
-        debugloader.unload();
+        e.target.loader.unload();
         //DebugExec(e.target.content).doit();
     }

@@ -150,7 +148,7 @@
             write(expr);
             consoleinputtext.text = "";

-            debugloader = new Loader();
+            var debugloader:Loader = new Loader();
             debugloader.contentLoaderInfo.addEventListener(Event.INIT, debugEvalListener);

             // Send EVAL request to LPS server


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

--- frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
 {


fixed null pointer error

fixed null pointer error

--- WeaveData/src/weave/data/DataSources/CSVDataSource.as
+++ WeaveData/src/weave/data/DataSources/CSVDataSource.as
@@ -352,7 +352,7 @@
 					csvData.setSessionState(null);
 					if (servletParams.value)
 					{
-						if (urlChanged)
+						if (!_servlet || _servlet.servletURL != url.value)
 						{
 							disposeObject(_servlet);
 							_servlet = registerLinkableChild(this, new AMF3Servlet(url.value));


Modules now initialized

Modules now initialized

--- src/LevelState.as
+++ src/LevelState.as
@@ -108,6 +108,7 @@

 			m.FIXED = fixed;
 			m.register();
+			m.initialize();
 			modules.push(m);

 			var displayModule:DModule = m.generateDisplay();
@@ -255,6 +256,7 @@
 							currentModule = new moduleType( -1, -1, archetype.configuration.value);
 						else
 							currentModule = new moduleType( -1, -1);
+						currentModule.initialize();

 						modules.push(currentModule);
 						displayModules.push(midLayer.add(new DModule(currentModule)));


Autoload predecessor success if present

Autoload predecessor success if present

--- src/LevelState.as
+++ src/LevelState.as
@@ -174,8 +174,6 @@
 		}

 		protected function makeSaveButtons():void {
-			if (!findSuccessSave()) return;
-
 			loadButton = new GraphicButton(90, 50, _success_load_sprite, loadFromSuccess, new Key("S"));
 			upperLayer.add(loadButton);

@@ -541,8 +539,11 @@
 		protected function checkMenuState():void {
 			undoButton.exists = actionStack.length > 0;
 			redoButton.exists = reactionStack.length > 0;
-			loadButton.exists = findSuccessSave() != savedString && findSuccessSave() != null;
-			resetButton.exists = savedString && savedString != RESET_SAVE;
+			if (loadButton) {
+				var successSave:String = findSuccessSave();
+				loadButton.exists = successSave != savedString && successSave != null;
+				resetButton.exists = savedString && savedString != RESET_SAVE;
+			}

 			checkCursorState();

@@ -816,6 +817,8 @@

 			if (saveString == null)
 				saveString = U.save.data[level.name];
+			if (saveString == null)
+				saveString = findSuccessSave();
 			if (saveString) {
 				var saveArray:Array = saveString.split(U.SAVE_DELIM + U.SAVE_DELIM);

@@ -835,7 +838,7 @@
 				savedString = saveString;
 			}

-			for each (var module:Module in level.modules)
+			for each (module in level.modules)
 				addModule(module);
 		}


abcdump: add support for OP_getouterscope (r=tharwood+)

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -493,6 +493,7 @@
                         case OP_setslot:
                         case OP_pushshort:
                         case OP_newcatch:
+                        case OP_getouterscope:
                             s += readU32()
                             break
                         case OP_debug:


Add missing SWF versions to abcdump. (r=virgilp)