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

--- frameworks/projects/mx/src/mx/skins/halo/ScrollTrackSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/ScrollTrackSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-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.skins.halo
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4894
Author:   hmuller@adobe.com
Date:     2009-02-07T17:17:54.948626Z

Log Message:
-----------
I10 Bug fixes: FxScroller mouse wheel scrolling, FxScrollerSkin.

QE Notes: Mustella tests pass
Doc Notes: None
Bugs:
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxScrollBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -675,9 +675,16 @@

         if (virtualLayoutUnderway)
         {
-            if (virtualLayoutStartIndex == -1)
+            if (virtualLayoutStartIndex == -1)  // initialized in updateDisplayList()
+            {
                 virtualLayoutStartIndex = index;
-            virtualLayoutEndIndex = index;
+                virtualLayoutEndIndex = index;
+            }
+            else
+            {
+                virtualLayoutStartIndex = Math.min(index, virtualLayoutStartIndex);
+                virtualLayoutEndIndex = Math.max(index, virtualLayoutEndIndex);
+            }

             var createdIR:Boolean = false;
             var recycledIR:Boolean = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17632
Author:   cframpto@adobe.com
Date:     2010-09-09T17:21:50.205953Z

Log Message:
-----------
CHB and DataGrid - remove unnecessay code

DataGroup - fix RTE in removeRendererAt which can happen if the renderer has already been recycled

Grid - fix interaction of generatedColumns with typicalItem and/or dataProvider changing, fix interaction of variableRowHeight and rowHeight, selection methods need to force validation before they can be done since pending dataProvider or column changes will reset the selection, update CHB when dp changes

GridDimension - add comment

QE notes:
Doc notes:
Bugs: sDK-27691, SDK-27393, SDK-27592, SDK-27590 SDK-27529
Reviewer:  Hans
Tests run: many many cyclones
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.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/components/supportClasses/GridDimensions.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -616,13 +616,16 @@
         // just the event with have the wrong item associated with it

         const renderer:IVisualElement = indexToRenderer[index] as IVisualElement;
-        var item:Object;
-
-        if (renderer is IDataRenderer && (itemRenderer != null || itemRendererFunction != null))
-            item = IDataRenderer(renderer).data;
-        else
-            item = renderer;
-        itemRemoved(item, index);
+        if (renderer)
+        {
+            var item:Object;
+
+            if (renderer is IDataRenderer && (itemRenderer != null || itemRendererFunction != null))
+                item = IDataRenderer(renderer).data;
+            else
+                item = renderer;
+            itemRemoved(item, index);
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 2672
Author:   egeorgie@adobe.com
Date:     2008-07-30T22:52:27.741630Z

Log Message:
-----------
Remove GraphicElement.bounds APIs in favor of measure

Reviewed by Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Path.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Ellipse.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Rect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/graphics/GraphicTags_checkintests.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElementHostImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/Line.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/BitmapGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElement.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElement.as
@@ -61,16 +61,6 @@
 	function get blendMode():String;
 	function set blendMode(value:String):void;

- 	//----------------------------------
-	//  bounds
-	//----------------------------------
-
-    /**
-     *  Returns the pre-transform measured or explicit bounds,
-     *  excluding stroke, as drawn at position (0,0). This is read-only property.
-     */
-    function get bounds():Rectangle;
-
 	//----------------------------------
 	//  filters
 	//----------------------------------


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


widevine: fix tests, support flavor tags

--- plugins/wvPlugin/src/widevinePluginCode.as
+++ plugins/wvPlugin/src/widevinePluginCode.as
@@ -1,5 +1,6 @@
 package
 {
+	import com.kaltura.kdpfl.model.ConfigProxy;
 	import com.kaltura.kdpfl.model.LayoutProxy;
 	import com.kaltura.kdpfl.model.MediaProxy;
 	import com.kaltura.kdpfl.plugin.IPlugin;
@@ -20,14 +21,15 @@
 		//Alerts texts, can be overriden from uiconf XML or flashvars.
 		public var alert_title:String	= "Error";
 		public var warning_title:String	= "Warning";
-		public var alert_emm_falied:String = "We're sorry, you don’t have a license to play this video.";
-		public var alert_emm_error:String = "We're sorry, we failed to obtain a license for playing this video.";
-		public var alert_emm_expired:String = "We're sorry, the license to play this video has expired.";
-		public var alert_log_error:String = "Message Logging Error (error code: {0})";
-		public var alert_dcp_stop:String = "Playback is stopping due to detection of an illegal content copying attempt.";
-		public var alert_dcp_alert:String = "An illegal attempt for content copying was detected.";
+		public var alert_emm_falied:String = "We're sorry, you don’t have a valid license for this video.";
+		public var alert_emm_error:String = "We're sorry, a license request for this video failed.";
+		public var alert_emm_expired:String = "We're sorry, you don’t have a valid license for this video.";
+		public var alert_log_error:String = "Message logging failed (error code: {0})";
+		public var alert_dcp_stop:String = "Playback stopped due to the detection of copying attempt.";
+		public var alert_dcp_alert:String = "A copying attempt was detected.";
 		public var alert_missing_plugin:String = "Widevine Video Optimizer plugin is needed for enabling video playback in this player.";

+		public var flavorTags:String;

 		public function widevinePluginCode()
 		{
@@ -59,6 +61,11 @@

 			var wvm:WvMediator = new WvMediator(this, wvPluginInfo);
 			facade.registerMediator(wvm);
+
+			if (flavorTags)
+			{
+				(facade.retrieveProxy(ConfigProxy.NAME) as ConfigProxy).vo.flashvars.flavorTags = flavorTags;
+			}
 		}
 		/**
 		 * Listener for the LOAD_COMPLETE event.


fix embedded captions with rtmp and wowza

--- plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
+++ plugins/closedCaptionsPlugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
@@ -24,8 +24,13 @@
 	import flash.events.SecurityErrorEvent;
 	import flash.net.SharedObject;

+	import org.osmf.events.LoadEvent;
+	import org.osmf.events.MediaElementEvent;
+	import org.osmf.traits.LoadTrait;
+	import org.osmf.traits.MediaTraitType;
 	import org.puremvc.as3.interfaces.INotification;
 	import org.puremvc.as3.patterns.mediator.Mediator;
+	import org.osmf.traits.LoadState;

 	public class ClosedCaptionsMediator extends Mediator
 	{
@@ -243,10 +248,28 @@

 		private function addTextHandler () : void
 		{
-			if (_mediaProxy.videoElement && _mediaProxy.videoElement.client)
-				_mediaProxy.videoElement.client.addHandler( "onTextData" , onTextData );
-		}
-
+			if (_mediaProxy.videoElement) {
+				if (_mediaProxy.videoElement.client) {
+					_mediaProxy.videoElement.client.addHandler( "onTextData" , onTextData );
+				} else {
+					var loadTrait:LoadTrait = _mediaProxy.vo.media.getTrait(MediaTraitType.LOAD) as LoadTrait;
+					if ( loadTrait ) {
+						loadTrait.addEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoadStateChange);
+					}
+				}
+			}
+
+		}
+
+		private function onLoadStateChange(e:LoadEvent) : void {
+			if (e.loadState == LoadState.READY) {
+				e.target.removeEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoadStateChange);
+				if (_mediaProxy.videoElement.client) {
+					_mediaProxy.videoElement.client.addHandler( "onTextData" , onTextData );
+				}
+			}
+		}
+
 		private function onTextData (info : Object) : void
 		{
 			if (_showingEmbeddedCaptions || _closedCaptionsDefs.showEmbeddedCaptions)


removing unused imports

removing unused imports

--- WeaveData/src/weave/services/collaboration/CollaborationService.as
+++ WeaveData/src/weave/services/collaboration/CollaborationService.as
@@ -27,30 +27,18 @@

 package weave.services.collaboration
 {
-	import com.modestmaps.extras.ui.FullScreenButton;
-
-	import flash.events.ErrorEvent;
-	import flash.events.Event;
 	import flash.events.EventDispatcher;
 	import flash.net.registerClassAlias;
-	import flash.text.engine.BreakOpportunity;
 	import flash.utils.ByteArray;
-	import flash.utils.Dictionary;
-	import flash.utils.Endian;
 	import flash.utils.getQualifiedClassName;

-	import mx.charts.renderers.BoxItemRenderer;
 	import mx.collections.ArrayCollection;
 	import mx.controls.Alert;
 	import mx.events.CloseEvent;
-	import mx.events.FlexEvent;
-	import mx.managers.PopUpManager;
-	import mx.messaging.messages.ErrorMessage;
 	import mx.utils.Base64Decoder;
 	import mx.utils.Base64Encoder;
 	import mx.utils.ObjectUtil;
 	import mx.utils.StringUtil;
-	import mx.validators.StringValidator;

 	import org.igniterealtime.xiff.auth.*;
 	import org.igniterealtime.xiff.bookmark.*;


reverting unnecessary change to function signature.

Change-Id: Ife1ce69110eb0644bac55503649bc297d2b21c81

--- WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
+++ WeaveUI/src/weave/visualization/layers/InteractiveVisualization.as
@@ -484,12 +484,12 @@
 			if (dragReleased)
 				mouseDragActive = false;

-			updateSelectionRectangleGraphics(event.stageX, event.stageY);
+			updateSelectionRectangleGraphics();
 			//updateMouseCursor();
 		}

 		private var _selectionRectangleGraphicsCleared:Boolean = true;
-		protected function updateSelectionRectangleGraphics(currentX:Number, currentY:Number):void
+		protected function updateSelectionRectangleGraphics():void
 		{
 			var mouseMode:String = _temporaryMouseMode ? _temporaryMouseMode : defaultMouseMode.value;


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5389
Author:   mhorn@adobe.com
Date:     2009-03-18T16:09:24.692896Z

Log Message:
-----------
various ASDoc updates

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/CollectionEventKind.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/GradientBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Text.as
+++ frameworks/projects/mx/src/mx/controls/Text.as
@@ -94,7 +94,7 @@
  *           0 pixels.
  *

  *

- *           ChMaximum sizear03
+ *           Maximum size
  *           10000 by 10000 pixels
  *

  *


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

--- frameworks/projects/charts/src/mx/charts/PieChart.as
+++ frameworks/projects/charts/src/mx/charts/PieChart.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.charts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11027
Author:   dloverin@adobe.com
Date:     2009-10-20T15:50:09.018295Z

Log Message:
-----------
Changes to enable using multiple style managers.

Multiple style managers are not the default yet. Can be enabled by compiling with -create-style-manager.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</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/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceGenerator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexChangeEvent.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/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</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/css/StyleModule.java</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/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/as3/binding/DataBindingExtension.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/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSMergedStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java</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/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/mx/src/mx/containers/FormItem.as
+++ frameworks/projects/mx/src/mx/containers/FormItem.as
@@ -486,7 +486,7 @@
             if (labelStyleName)
             {
                 var styleDecl:CSSStyleDeclaration =
-                	styleManager.getStyleDeclaration("." + labelStyleName);
+                	styleManager.getMergedStyleDeclaration("." + labelStyleName);

                 if (styleDecl)
                     labelObj.styleDeclaration = styleDecl;
@@ -1263,7 +1263,7 @@
 	            if (labelStyleName)
 	            {
 	                var styleDecl:CSSStyleDeclaration =
-	                	styleManager.getStyleDeclaration("." + labelStyleName);
+	                	styleManager.getMergedStyleDeclaration("." + labelStyleName);

 	                if (styleDecl)
 	                {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5383
Author:   jimurphy@adobe.com
Date:     2009-03-18T13:08:33.865663Z

Log Message:
-----------
Merge 3.x revisions 5326-5327,5329,5343 -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkButton.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>

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

--- frameworks/projects/mx/src/mx/controls/LinkButton.as
+++ frameworks/projects/mx/src/mx/controls/LinkButton.as
@@ -215,6 +215,19 @@
 	 */
     override public function set emphasized(value:Boolean):void
     {
+    }
+
+    //----------------------------------
+    //  enabled
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set enabled(value:Boolean):void
+    {
+        super.enabled = value;
+        buttonMode = value;
     }

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


Fix for end-of-VOD detection.

Fix for end-of-VOD detection.

Verbose time logic logging.

--- HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
+++ HLSPlugin/src/org/osmf/net/httpstreaming/HLSHTTPNetStream.as
@@ -481,6 +481,8 @@
 		// Used to suppress repopulating time cache spam.
 		private static var _timeCache_logLatch:Boolean = false;

+		public static var enableTimeVerboseLog:Boolean = false;
+
 		/**
 		 * @inheritDoc
 		 */
@@ -524,17 +526,21 @@
 								_timeCache_liveEdgeMinusWindowDuration = _timeCache_liveEdge - indexHandler.windowDuration;
 							else
 								_timeCache_liveEdgeMinusWindowDuration = 0;
-							//trace("   o Perceived live stream (" + _timeCache_liveEdge + ", " + _timeCache_liveEdgeMinusWindowDuration + ")");
+
+							if(enableTimeVerboseLog)
+								trace("   o Perceived live stream (" + _timeCache_liveEdge + ", " + _timeCache_liveEdgeMinusWindowDuration + ")");
 							didValidUpdate = true;
 						}
 						else
 						{
-							//trace("   o Failed to perceive live stream, will retry later.");
+							if(enableTimeVerboseLog)
+								trace("   o Failed to perceive live stream, will retry later.");
 						}
 					}
 					else
 					{
-						//trace("   o Perceived VOD stream.");
+						if(enableTimeVerboseLog)
+							trace("   o Perceived VOD stream.");
 						_timeCache_liveEdge = 0;
 						_timeCache_liveEdgeMinusWindowDuration = 0;
 						didValidUpdate = true;
@@ -550,7 +556,11 @@
 				else
 				{
 					// Failed to cache so can't return a real value.
-					//trace("Failed to updated time cache so aborting.");
+					if(enableTimeVerboseLog)
+					{
+						trace("Failed to updated time cache so aborting.");
+						trace("A " + _lastValidTimeTime);
+					}
 					return _lastValidTimeTime;
 				}
 			}
@@ -558,7 +568,8 @@
 			// First determine our absolute time.
 			var potentialNewTime:Number = super.time + _initialTime;

-			//trace(" super.time (" + super.time + ") + " + _initialTime + " = " + potentialNewTime);
+			if(enableTimeVerboseLog)
+				trace(" super.time (" + super.time + ") + " + _initialTime + " = " + potentialNewTime);

 			// If we are VOD, then offset time so 0 seconds is the start of the stream.
 			if(indexHandler)
@@ -573,7 +584,8 @@
 			// of N seconds in length).
 			if(_timeCache_liveEdge != Number.MAX_VALUE)
 			{
-				//trace(" minus " + _timeCache_liveEdgeMinusWindowDuration);
+				if(enableTimeVerboseLog)
+					trace(" minus " + _timeCache_liveEdgeMinusWindowDuration);
 				potentialNewTime -= _timeCache_liveEdgeMinusWindowDuration;
 			}

@@ -590,6 +602,11 @@
 				_lastValidTimeTime = potentialNewTime;
 			}

+			if(_lastValidTimeTime > lastWrittenTime)
+				return 0;
+
+			if(enableTimeVerboseLog)
+				trace("B " + _lastValidTimeTime);
 			return _lastValidTimeTime;
 		}

@@ -603,6 +620,9 @@
 				else
 					pubTime += indexHandler.streamStartAbsoluteTime;
 			}
+
+			// Round to nearest millisecond to match timestamp resolution.
+			pubTime = Math.floor(pubTime * 1000) / 1000;

 			return pubTime;
 		}
@@ -951,8 +971,10 @@
 			CONFIG::LOGGING
 			{
 				logger.debug("NetStatus event:" + event.info.code);
-			}
-
+				trace("" + (new Error()).getStackTrace());
+				trace("end time is " + indexHandler.getStreamEndTime() + " duration = " + indexHandler.getStreamDuration() + " time= " + time);
+			}
+
 			switch(event.info.code)
 			{
 				case NetStreamCodes.NETSTREAM_BUFFER_EMPTY:
@@ -2697,6 +2719,17 @@
 					logger.debug("FIRING STREAM END");
 				}

+				// Forcibly fire a duration event that will end with the last tag we wrote.
+				// This ensures that we will properly terminate and trigger rewind logic in
+				// kdp/OSMF. If you come up short and end then it restarts erroneously.
+				var metadata:Object = new Object();
+				metadata.duration = (lastWrittenTime - indexHandler.getStreamStartTime()) - 0.5;
+				var durationTag:FLVTagScriptDataObject = new FLVTagScriptDataObject();
+				durationTag.objects = ["onMetaData", metadata];
+				dispatchEvent(new HTTPStreamingEvent(HTTPStreamingEvent.SCRIPT_DATA, false, false, 0, durationTag, FLVTagScriptDataMode.IMMEDIATE));
+				trace("Fired artificial duration of " + metadata.duration);
+
+
 				// For us, ending means ending the sequence, firing an onPlayStatus event,
 				// and then really ending.
 				appendBytesAction(NetStreamAppendBytesAction.END_SEQUENCE);
@@ -2708,7 +2741,7 @@

 				var playCompleteInfoSDOTag:FLVTagScriptDataObject = new FLVTagScriptDataObject();
 				playCompleteInfoSDOTag.objects = ["onPlayStatus", playCompleteInfo];
-
+				trace("Writing final play complete event at " + playCompleteInfoSDOTag.timestamp);
 				var tagBytes:ByteArray = new ByteArray();
 				playCompleteInfoSDOTag.write(tagBytes);
 				appendBytes(tagBytes);


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4958
Author:   rfrishbe@adobe.com
Date:     2009-02-13T23:07:46.243121Z

Log Message:
-----------
Change the initialization sequence of FxComponent and Group.  Basically now children (including the skin) should get created at createChildren() time and follow the correct lifecycle pattern.  Unfortunately, this change got mingled in with all my PARB changes, so I'm submitting a bunch of PARB changes for Group, DataGroup, FxContainer, and FxDataContainer, outlined below:

1.     New event classes/names for Group/FxContainer and DataGroup ("elementAdd" and "elementRemove" event of type ElementExistenceEvent for Group/FxContainer and "rendererAdd" and "rendererRemove" event of type RendererExistenceEvent for DataGroup). It was just one event class of ItemExistenceChangedEvent before.
2.     LayoutBase.clipContent->clipAndEnableScrolling (same with IViewport.clipContent and GroupBase.clipContent)
3.     GroupBase.getLayoutELementAt()->getElementAt()
4.     GroupBase.numLayoutElements -> numElements.
5.     LayoutBase.virtualLayout -> useVirtualLayout
6.     ScrollUnit constants are now changed to be uints instead of typed as ScrollUnit.  This means the signature for getHorizontalScrollPositionDelta(unit:ScrollUnit):Number has changed to getHorizontalScrollPositionDelta(scrollUnit:uint):Number (and ditto for getVerticalScrollPositionDelta())
7.  DataGroup.getRendererForItemAt() -> getElementAt()
8.  DataGroup.getItemIndexForRenderer() -> getElementIndex()

Other changes:
 - Change IVisualElement interface so that it's smaller now.  It also extends ILayoutElement now.  The properties removed from IVisualElement are: rotation, rotationX, rotationY, rotationZ, transformX, transformY, offsets, x, y, z, scaleX, scaleY, scaleZ, explicitWidth, explicitMinWidth, explicitMaxWidth, explicitHeight, explicitMinHeight, explicitMaxHeight)
-  Fix in DataGroup so we don’t remove/add elements if we’re gonna do it later anyways.  I also need to do some other work in here around cleaning up of renderers.
- AddItems fix around handling IVisualElementContainers more effeciently
- get mxmlContent now returns a copy of the Array rather than the one we're using internally
- Had to update mustella since there was special case logic for dealing with getLayoutElementAt().  I added this logic for getElementAt(), which replaces that method.

QE Notes: Thanks for changing all the tests and working on the cyclone
Doc Notes: Made some ASDoc changes to some core classes to move the comments into the interfaces.  I did update the comments a bit as well.
Bugs: SDK-18115, SDK-19004
Reviewer: Jason, Glenn, Hans for initialization sequence change and Hans for all PARB changes
tests: checkintests, all mustella tests

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ItemExistenceChangedEvent.as" copyfrom-rev="4812" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ElementExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxHScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/RendererExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/events/ItemExistenceChangedEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/states/AddItems.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/components/FxList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/mustella.swc</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -325,31 +325,31 @@
     //--------------------------------------------------------------------------

     //----------------------------------
-    //  clipContent
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    private var _clipContent:Boolean = true;
-
-    /**
-     *  @copy mx.layout.LayoutBase#clipContent
-     */
-    public function get clipContent():Boolean
-    {
-        return _clipContent;
-    }
-
-    /**
-     *  @private
-     */
-    public function set clipContent(value:Boolean):void
-    {
-        if (value == _clipContent)
+    //  clipAndEnableScrolling
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _clipAndEnableScrolling:Boolean = true;
+
+    /**
+     *  @copy mx.layout.LayoutBase#clipAndEnableScrolling
+     */
+    public function get clipAndEnableScrolling():Boolean
+    {
+        return _clipAndEnableScrolling;
+    }
+
+    /**
+     *  @private
+     */
+    public function set clipAndEnableScrolling(value:Boolean):void
+    {
+        if (value == _clipAndEnableScrolling)
             return;

-        _clipContent = value;
+        _clipAndEnableScrolling = value;
         // TBD implement this
     }

@@ -630,7 +630,7 @@
     /**
      *  @copy mx.layout.LayoutBase#getHorizontalScrollPositionDelta
      */
-    public function getHorizontalScrollPositionDelta(unit:ScrollUnit):Number
+    public function getHorizontalScrollPositionDelta(scrollUnit:uint):Number
     {
         // TBD: replace provisional implementation
         var scrollR:Rectangle = scrollRect;
@@ -640,7 +640,7 @@
         var maxDelta:Number = contentWidth - scrollR.width - scrollR.x;
         var minDelta:Number = -scrollR.x;

-        switch (unit)
+        switch (scrollUnit)
         {
             case ScrollUnit.UP:
                 return (scrollR.x <= 0) ? 0 : -1;
@@ -1010,7 +1010,7 @@
     /**
      *  @copy mx.layout.LayoutBase#getVerticalScrollPositionDelta
      */
-    public function getVerticalScrollPositionDelta(unit:ScrollUnit):Number
+    public function getVerticalScrollPositionDelta(scrollUnit:uint):Number
     {
         // TBD: replace provisional implementation
         var scrollR:Rectangle = scrollRect;
@@ -1022,7 +1022,7 @@

         var flowComposer:IFlowComposer = textFlow.flowComposer;

-        switch (unit)
+        switch (scrollUnit)
         {
             case ScrollUnit.UP:
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8514
Author:   gosmith@adobe.com
Date:     2009-07-10T21:44:48.340284Z

Log Message:
-----------
TLF's CompositionCompletionEvent has been renamed to CompositionCompleteEvent. TLF temporarily still has both classes, so I hadn't realized that I needed to update the Spark code. Now TLF can remove the old class.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol to review

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -44,7 +44,7 @@
 import flashx.textLayout.elements.Configuration;
 import flashx.textLayout.elements.InlineGraphicElementStatus;
 import flashx.textLayout.elements.TextFlow;
-import flashx.textLayout.events.CompositionCompletionEvent;
+import flashx.textLayout.events.CompositionCompleteEvent;
 import flashx.textLayout.events.DamageEvent;
 import flashx.textLayout.events.FlowOperationEvent;
 import flashx.textLayout.events.SelectionEvent;
@@ -422,7 +422,7 @@
         // Add event listeners on its TextContainerManager.

         _textContainerManager.addEventListener(
-            CompositionCompletionEvent.COMPOSITION_COMPLETE,
+            CompositionCompleteEvent.COMPOSITION_COMPLETE,
             textContainerManager_compositionCompleteHandler);

         _textContainerManager.addEventListener(
@@ -3215,7 +3215,7 @@
      *  event when it has recomposed the text into TextLines.
      */
     private function textContainerManager_compositionCompleteHandler(
-                                    event:CompositionCompletionEvent):void
+                                    event:CompositionCompleteEvent):void
     {
         //trace("compositionComplete");


Transferred from the Adobe Open Source Subversion Repository

Revision: 6590
Author:   gosmith@adobe.com
Date:     2009-05-04T17:57:36.391413Z

Log Message:
-----------
RichEditableText now extends UIComponent rather than the experimental class TextBaseClassWithStylesAndFocus.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/RichEditableText.as

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -75,6 +75,7 @@
 import mx.core.IIMESupport;
 import mx.core.IUIComponent;
 import mx.core.Singleton;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.managers.ISystemManager;
@@ -85,7 +86,6 @@
 import spark.core.CSSTextLayoutFormat;
 import spark.core.IViewport;
 import spark.core.ScrollUnit;
-import spark.core.TextBaseClassWithStylesAndFocus;
 import spark.events.TextOperationEvent;
 import spark.primitives.Rect;
 import spark.utils.TextUtil;
@@ -187,7 +187,7 @@
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class RichEditableText extends TextBaseClassWithStylesAndFocus
+public class RichEditableText extends UIComponent
 	implements IViewport, IFontContextComponent, IIMESupport
 {
     include "../core/Version.as";
@@ -2790,7 +2790,7 @@
     /**
      *  @private
      */
-    protected function focusOutHandler(event:FocusEvent):void
+    override protected function focusOutHandler(event:FocusEvent):void
     {
         // By default, we clear the undo history when a TextView loses focus.
         if (mx_internal::clearUndoOnFocusOut && mx_internal::undoManager)
@@ -2814,7 +2814,7 @@
     /**
      *  @private
      */
-    protected function keyDownHandler(event:KeyboardEvent):void
+    override protected function keyDownHandler(event:KeyboardEvent):void
     {
         if (editingMode != EditingMode.READ_WRITE)
         	return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 17348
Author:   cframpto@adobe.com
Date:     2010-08-17T17:26:57.671456Z

Log Message:
-----------
TLF Build 139.

Build 139
  * Remove TextContainerManager.delayedOperations property added earlier.  Instead clients will override createEditManager and supply their own values as needed.
  * API CHANGE -- Fix 2449209, "EditManager creation methods should return FlowElements". IEditManager applyLink, applyTCY. createList, insertInlineGraphic now
  all return the FlowElement that was created. These functions were void before. In addition, the operations now each have a public getter method to return the
  FlowElement created.
Build 136
  * Fix 2610219, "TextFlow paddingLeft not working when using RTL and dynamic width".
  * Fix unreported bug in floats where with measurement on floats should default to inlines,
  but were disappearing instead. Added test to FloatTest, measureWidth, to catch this error in future.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/air-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/CreateListOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/EscapeListEditingOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/container/TextContainerManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/InsertInlineGraphicOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/compose/BaseCompose.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/edit/EditManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/ApplyLinkOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/ReleaseNotes.txt</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/ApplyTCYOperation.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextEditManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/BuildInfo.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/rsls/textLayout_2.0.0.135.swf</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/edit/IEditManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/operations/PromoteParagraphOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/src/flashx/textLayout/container/ColumnState.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/rsls/textLayout_2.0.0.139.swf</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/bundles/en_US/docs/flashx.textLayout.container.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/bundles/en_US/docs/flashx.textLayout.operations.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/flex-config.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/bundles/en_US/docs/flashx.textLayout.edit.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/libs/textLayout.swc</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -304,7 +304,13 @@
     override protected function createEditManager(
                         undoManager:flashx.undo.IUndoManager):IEditManager
     {
-        return new RichEditableTextEditManager(textDisplay, undoManager);
+        var editManager:IEditManager = super.createEditManager(undoManager);
+
+        // Default is to batch text input.  If the component, like ComboBox
+        // wants to act on each keystroke then set this to false.
+        editManager.delayedOperations = textDisplay.batchTextInput;
+
+        return editManager;
     }

     /**


Move enumerate buttons to separate container

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -30,7 +30,8 @@
 		public var Steamworks:FRESteamWorks = new FRESteamWorks();
 		public var tf:TextField;

-		private var _buttonPos:int = 0;
+		private var _buttonContainer:Sprite;
+		private var _enumerateContainer:Sprite;
 		private var _appId:uint;

 		public function FRESteamWorksTest()
@@ -41,19 +42,25 @@
 			tf.height = stage.stageHeight;
 			addChild(tf);

-			addButton("Check stats/achievements", checkAchievements);
-			addButton("Toggle achievement", toggleAchievement);
-			addButton("Toggle cloud enabled", toggleCloudEnabled);
-			addButton("Toggle file", toggleFile);
-			addButton("Publish file", publishFile);
-			addButton("Delete published file", deletePublishedFile);
-			addButton("Toggle fullscreen", toggleFullscreen);
-			addButton("Show Friends overlay", activateOverlay);
-			addButton("List subscribed files", enumerateSubscribedFiles);
-			addButton("List published files", enumerateUserPublishedFiles)
-			addButton("List shared files", enumerateSharedFiles);
-			addButton("List workshop files", enumerateWorkshopFiles);
-			addButton("Update file", updateFile);
+			_buttonContainer = new Sprite();
+			addChild(_buttonContainer);
+
+			addButton("Check stats/achievements", checkAchievements, _buttonContainer);
+			addButton("Toggle achievement", toggleAchievement, _buttonContainer);
+			addButton("Toggle cloud enabled", toggleCloudEnabled, _buttonContainer);
+			addButton("Toggle file", toggleFile, _buttonContainer);
+			addButton("Publish file", publishFile, _buttonContainer);
+			addButton("Delete published file", deletePublishedFile, _buttonContainer);
+			addButton("Toggle fullscreen", toggleFullscreen, _buttonContainer);
+			addButton("Show Friends overlay", activateOverlay, _buttonContainer);
+			addButton("Update file", updateFile, _buttonContainer);
+			addButton("Enumerate workshop", toggleEnumerateButtons, _buttonContainer);
+
+			_enumerateContainer = new Sprite();
+			addButton("User subscribed files", enumerateSubscribedFiles, _enumerateContainer);
+			addButton("User published files", enumerateUserPublishedFiles, _enumerateContainer);
+			addButton("User shared files", enumerateSharedFiles, _enumerateContainer);
+			addButton("All published files", enumerateWorkshopFiles, _enumerateContainer);

 			Steamworks.addEventListener(SteamEvent.STEAM_RESPONSE, onSteamResponse);
 			Steamworks.addOverlayWorkaround(stage, true);
@@ -197,19 +204,32 @@
 			log("isOverlayEnabled() == " + Steamworks.isOverlayEnabled());
 		}

+		private function toggleEnumerateButtons(e:Event = null):void {
+			if (_enumerateContainer.parent) {
+				removeChild(_enumerateContainer);
+				addChild(_buttonContainer);
+			} else {
+				removeChild(_buttonContainer);
+				addChild(_enumerateContainer);
+			}
+		}
+
 		private function enumerateSubscribedFiles(e:Event = null):void {
+			toggleEnumerateButtons();
 			if(!Steamworks.isReady) return;

 			log("enumerateUserSubscribedFiles(0) == " + Steamworks.enumerateUserSubscribedFiles(0));
 		}

 		private function enumerateUserPublishedFiles(e:Event = null):void {
+			toggleEnumerateButtons();
 			if(!Steamworks.isReady) return;

 			log("enumerateUserPublishedFiles(0) == " + Steamworks.enumerateUserPublishedFiles(0));
 		}

 		private function enumerateSharedFiles(e:Event = null):void {
+			toggleEnumerateButtons();
 			if(!Steamworks.isReady) return;

 			var userID:String = Steamworks.getUserID();
@@ -218,6 +238,7 @@
 		}

 		private function enumerateWorkshopFiles(e:Event = null):void {
+			toggleEnumerateButtons();
 			if(!Steamworks.isReady) return;

 			var res:Boolean = Steamworks.enumeratePublishedWorkshopFiles(
@@ -409,7 +430,7 @@
 			Steamworks.dispose();
 		}

-		private function addButton(label:String, callback:Function):void {
+		private function addButton(label:String, callback:Function, container:Sprite):void {
 			var button:Sprite = new Sprite();
 			button.graphics.beginFill(0xaaaaaa);
 			button.graphics.drawRoundRect(0, 0, 150, 25, 5, 5);
@@ -418,8 +439,7 @@
 			button.useHandCursor = true;
 			button.addEventListener(MouseEvent.CLICK, callback);
 			button.x = 5;
-			button.y = _buttonPos;
-			_buttonPos += button.height + 5;
+			button.y = container.height + 5;

 			button.addEventListener(MouseEvent.MOUSE_OVER, function(e:MouseEvent):void {
 				button.graphics.clear();
@@ -444,7 +464,7 @@
 			text.mouseEnabled = false;

 			button.addChild(text);
-			addChild(button);
+			container.addChild(button);
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 13046
Author:   hneelu@adobe.com
Date:     2009-12-17T12:34:07.695337Z

Log Message:
-----------
Updating automation sources..

Modified Paths:
--------------
451 paths were modified

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

--- frameworks/projects/automation_air/src/mx/automation/delegates/containers/WindowsAutomationImpl.as
+++ frameworks/projects/automation_air/src/mx/automation/delegates/containers/WindowsAutomationImpl.as
@@ -99,7 +99,7 @@
 		override public function get automationName():String
 		{
 			var am:IAutomationManager2 = Automation.automationManager2;
-			return am.getAirWindowUniqueId(window);
+			return am.getAIRWindowUniqueID(window);
 		}

 		/**


add SplinePath check for length

add SplinePath check for length

--- bin/Data/Scripts/Editor/EditorViewDebugIcons.as
+++ bin/Data/Scripts/Editor/EditorViewDebugIcons.as
@@ -161,39 +161,40 @@
                     {
                         SplinePath@ sp = cast<SplinePath>(component);
                         if(sp !is null)
-                        {
-                            for(int step=0; step < splinePathResolution; step++)
+                            if(sp.length > 0.01f)
                             {
-                                int index = (i * splinePathResolution) + step;
-                                Vector3 splinePoint = sp.GetPoint(splineStep * step);
-                                Billboard@ bb = debugIconsSet[ICON_SPLINE_PATH].billboards[index];
-                                float stepDistance = (camPos - splinePoint).length;
-                                if (isOrthographic) stepDistance = debugIconsOrthoDistance;
-
-                                if(step == 0) // SplinePath start
+                                for(int step=0; step < splinePathResolution; step++)
                                 {
-                                    bb.color = debugIconsColors[ICON_COLOR_SPLINE_PATH_BEGIN];
-                                    bb.size = ClampToIconMaxSize(Max(debugIconsSize * stepDistance, debugIconsSize));
-                                    bb.position = splinePoint;
+                                    int index = (i * splinePathResolution) + step;
+                                    Vector3 splinePoint = sp.GetPoint(splineStep * step);
+                                    Billboard@ bb = debugIconsSet[ICON_SPLINE_PATH].billboards[index];
+                                    float stepDistance = (camPos - splinePoint).length;
+                                    if (isOrthographic) stepDistance = debugIconsOrthoDistance;
+
+                                    if(step == 0) // SplinePath start
+                                    {
+                                        bb.color = debugIconsColors[ICON_COLOR_SPLINE_PATH_BEGIN];
+                                        bb.size = ClampToIconMaxSize(Max(debugIconsSize * stepDistance, debugIconsSize));
+                                        bb.position = splinePoint;
+                                    }
+                                    else if((step+1) >= (splinePathResolution - splineStep)) // SplinePath end
+                                    {
+                                        bb.color = debugIconsColors[ICON_COLOR_SPLINE_PATH_END];
+                                        bb.size = ClampToIconMaxSize(Max(debugIconsSize * stepDistance, debugIconsSize));
+                                        bb.position = splinePoint;
+                                    }
+                                    else // SplinePath middle points
+                                    {
+                                        bb.color = finalIconColor;
+                                        bb.size = ClampToIconMaxSize(Max(debugIconsSizeSmall * stepDistance, debugIconsSizeSmall));
+                                        bb.position = splinePoint;
+                                    }
+                                    bb.enabled = sp.enabled;
+                                    // Blend Icon relatively by distance to it
+                                    bb.color = Color(bb.color.r, bb.color.g, bb.color.b, 1.2f - 1.0f / (debugIconsMaxSize.x / bb.size.x));
+                                    if (bb.color.a < 0.25f) bb.enabled = false;
                                 }
-                                else if((step+1) >= (splinePathResolution - splineStep)) // SplinePath end
-                                {
-                                    bb.color = debugIconsColors[ICON_COLOR_SPLINE_PATH_END];
-                                    bb.size = ClampToIconMaxSize(Max(debugIconsSize * stepDistance, debugIconsSize));
-                                    bb.position = splinePoint;
-                                }
-                                else // SplinePath middle points
-                                {
-                                    bb.color = finalIconColor;
-                                    bb.size = ClampToIconMaxSize(Max(debugIconsSizeSmall * stepDistance, debugIconsSizeSmall));
-                                    bb.position = splinePoint;
-                                }
-                                bb.enabled = sp.enabled;
-                                // Blend Icon relatively by distance to it
-                                bb.color = Color(bb.color.r, bb.color.g, bb.color.b, 1.2f - 1.0f / (debugIconsMaxSize.x / bb.size.x));
-                                if (bb.color.a < 0.25f) bb.enabled = false;
                             }
-                        }
                     }
                     else
                     {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


FLEX-34945 SOLUTION: when the property contains a dot, we use ObjectUtil to extract the property from the property chain.

--- frameworks/projects/framework/src/mx/validators/Validator.as
+++ frameworks/projects/framework/src/mx/validators/Validator.as
@@ -29,6 +29,7 @@
     import mx.events.ValidationResultEvent;
     import mx.resources.IResourceManager;
     import mx.resources.ResourceManager;
+    import mx.utils.ObjectUtil;

 //--------------------------------------
 //  Events
@@ -937,7 +938,7 @@

         if (_source && _property)
         {
-            return _source[_property];
+            return _property.indexOf(".") == -1 ? _source[_property] : ObjectUtil.getValue(_source, _property.split("."));
         }

         else if (!_source && _property)


Attempted to set vscroll for TextArea - still not 100% correct

git-svn-id: 00225d326fbeb9978ee2ea3564602c0fe18eb5d2@1446184 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
+++ frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
@@ -132,8 +132,15 @@

 		private function textScrollHandler(event:Event):void
 		{
+			/* This needs work. the calculation is still off. Reverting to basic
+			   values for scrolling and scroll position.
+			*/
+			//trace("numLines="+textField.numLines+", scrollV="+textField.scrollV+", bottom="+textField.bottomScrollV+", max="+textField.maxScrollV);
+			var visibleLines:int = textField.bottomScrollV - textField.scrollV + 1;
+			var scrollableLines:int = textField.numLines - visibleLines + 1;
+			//trace("-- scrollableLines="+scrollableLines+", visibleLines="+visibleLines);
 			var vsbm:ScrollBarModel = ScrollBarModel(vScrollBar.model);
-			vsbm.maximum = textField.numLines;
+			vsbm.maximum = textField.numLines;//scrollableLines;
 			vsbm.value = textField.scrollV;
 		}


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package spark.skins.mobile
 {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


Try to figure out movie sizing

Try to figure out movie sizing

--- src/CameraMan.as
+++ src/CameraMan.as
@@ -29,13 +29,10 @@
         private var movieSize:Point;

         public function CameraMan() {
-            stage.scaleMode = StageScaleMode.NO_SCALE;
             stage.align = StageAlign.TOP_LEFT;

-            sendto = stage.loaderInfo.parameters.sendto;
-            movieSize = new Point(stage.loaderInfo.width, stage.loaderInfo.height);
-
-            this.initCamera();
+            trace("START ME UP");
+            this.loaderInfo.addEventListener("init", init);

             if (ExternalInterface.available) {
                 ExternalInterface.addCallback("takePhoto", takePhoto);
@@ -43,12 +40,25 @@
             }
         }

+        public function init(event:Event) : void {
+            trace("initizing");
+
+            sendto = this.loaderInfo.parameters.sendto;
+            trace("Sending to " + sendto);
+            movieSize = new Point(this.loaderInfo.width, this.loaderInfo.height);
+            trace("Movie size is " + this.loaderInfo.width + ", " + this.loaderInfo.height);
+
+            this.initCamera();
+        }
+
         public function initCamera() : void {
             videoface = new Video(movieSize.x, movieSize.y);
-            this.addChild(this.videoface);
+            this.addChild(videoface);
+            trace("Video is " + videoface.videoWidth + ", " + videoface.videoHeight);
             cam = Camera.getCamera();
-            cam.setMode(width, height, 15);
+            cam.setMode(movieSize.x, movieSize.y, 15);
             videoface.attachCamera(cam);
+            trace("Video w/ camera is " + videoface.videoWidth + ", " + videoface.videoHeight);
         }

         public function takePhoto() : void {


simplified loop code

simplified loop code

Change-Id: Ifbf5aaf2a06583b6f94d95c03d54040d17224b3b

--- WeaveCore/src/weave/core/UIUtils.as
+++ WeaveCore/src/weave/core/UIUtils.as
@@ -462,11 +462,11 @@
 				return;
 			}

-			var i:int;
 			var uiChild:DisplayObject;
 			// get all child DisplayObjects we are interested in
-			var uiChildren:Array = hashMap.getObjects();
-			for (i = uiChildren.length; i--;)
+			var uiChildren:Array = hashMap.getObjects();
+			var i:int = uiChildren.length;
+			while (i-- > 0)
 			{
 				var wrapper:ILinkableDisplayObject = uiChildren[i] as ILinkableDisplayObject;
 				if (wrapper)


added more spark_* convenience functions

--- WeaveCore/src/weave/core/UIUtils.as
+++ WeaveCore/src/weave/core/UIUtils.as
@@ -455,6 +455,14 @@
 				spark_addChild(uiParent, uiChild);
 		}

+		public static function spark_numChildren(parent:DisplayObjectContainer):int
+		{
+			if (parent is IVisualElementContainer)
+				return (parent as IVisualElementContainer).numElements;
+			else
+				return parent.numChildren;
+		}
+
 		public static function spark_addChild(parent:DisplayObjectContainer, child:DisplayObject):DisplayObject
 		{
 			if (parent is IVisualElementContainer)
@@ -502,6 +510,14 @@
 				return parent.removeChildAt(index);
 		}

+		public static function spark_getChildAt(parent:DisplayObjectContainer, index:int):DisplayObject
+		{
+			if (parent is IVisualElementContainer)
+				return (parent as IVisualElementContainer).getElementAt(index) as DisplayObject;
+			else
+				return parent.getChildAt(index);
+		}
+
 		public static function spark_getChildIndex(parent:DisplayObjectContainer, child:DisplayObject):int
 		{
 			if (parent is IVisualElementContainer && child is IVisualElement)


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

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


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

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

 package spark.skins.mobile.supportClasses
 {


-updated version number -added version to native log into init method for reference

--- actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -15,7 +15,7 @@

 public class Facebook extends EventDispatcher {

-    public static const VERSION:String = "4.5.1";
+    public static const VERSION:String = "4.5.2";

     private var _initialized:Boolean;

@@ -107,6 +107,7 @@
         if (isSupported && _context != null) {

             _context.call("setNativeLogEnabled", Facebook.nativeLogEnabled);
+            log("ANE Facebook version: " + VERSION);
             // iOS is synchronous but we will simulate async to have consistent API
             _context.call("initFacebook", appID, getNewCallbackName(onInitialized));
         } else {
@@ -574,7 +575,7 @@

     /**
      * Do not use this method outside this class. It may be removed anytime!
-     *
+     *
      * @param message
      */
     public function log(message:String):void


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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


:memo:

:memo:

--- index.as
+++ index.as
@@ -1,6 +1,7 @@
 // [ ] Pass: Declare
+// [ ] Unary Operators
+// [ ] Binary Operators: Relational
+// [ ] Binary Operators: Bitwise
+// [ ] Select (if)
+// [ ] Loop (while)
 // [ ] Main!
-
-// let m: int8 = 3.12;
-// let m: float32 = 3 + 4.12;
-let m: bool = false + true;


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

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

 package mx.olap.aggregators


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

--- frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ModifiedCollectionView.as
@@ -1,4 +1,16 @@
-
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+// AdobePatentID="B518"
+// AdobePatentID="B519"

 package mx.collections
 {