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

--- frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as
+++ frameworks/projects/framework/src/mx/graphics/codec/JPEGEncoder.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////

 package mx.graphics.codec
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</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/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.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/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="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/skins/halo/ScrollThumbSkin.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/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.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/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.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/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.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/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.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/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.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/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.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/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.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/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
@@ -145,7 +145,7 @@
 		var cornerRadius:Number = getStyle("cornerRadius");
 		var fillAlphas:Array = getStyle("fillAlphas");
 		var fillColors:Array = getStyle("fillColors");
-		StyleManager.getColorNames(fillColors);
+        styleManager.getColorNames(fillColors);
 		var themeColor:uint = getStyle("themeColor");

 		// Derivative styles.


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
+++ frameworks/projects/mx/src/mx/skins/halo/NumericStepperDownSkin.as
@@ -20,6 +20,11 @@

 /**
  *  The skin for all the states of the down button in a NumericStepper.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class NumericStepperDownSkin extends Border
 {
@@ -80,6 +85,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function NumericStepperDownSkin()
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 17512
Author:   smgilson@adobe.com
Date:     2010-08-30T16:04:15.201504Z

Log Message:
-----------
fix broken ASDoc comments

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

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -31,7 +31,7 @@
     import flash.ui.Keyboard;

     import flashx.textLayout.compose.ISWFContext;
-	import flashx.textLayout.compose.TextLineRecycler;
+    import flashx.textLayout.compose.TextLineRecycler;
     import flashx.textLayout.container.TextContainerManager;
     import flashx.textLayout.conversion.ConversionType;
     import flashx.textLayout.conversion.ITextExporter;
@@ -52,8 +52,8 @@
     import flashx.textLayout.events.FlowOperationEvent;
     import flashx.textLayout.events.SelectionEvent;
     import flashx.textLayout.events.StatusChangeEvent;
-	import flashx.textLayout.factory.StringTextLineFactory;
-	import flashx.textLayout.factory.TextFlowTextLineFactory;
+    import flashx.textLayout.factory.StringTextLineFactory;
+    import flashx.textLayout.factory.TextFlowTextLineFactory;
     import flashx.textLayout.formats.BlockProgression;
     import flashx.textLayout.formats.Category;
     import flashx.textLayout.formats.ITextLayoutFormat;
@@ -316,8 +316,8 @@
      *
The widthInChars and heightInLines
      *  properties provide a convenient way to specify the width and height
      *  in a way that scales with the font size.
-	 *  You can use the typicalText property as well.
-	 *  Note that if you use typicalText, the
+     *  You can use the typicalText property as well.
+     *  Note that if you use typicalText, the
      *  widthInChars and heightInLines
      *  are ignored.
      *  You can also specify an explicit width or height in pixels,
@@ -532,23 +532,23 @@
          */
         private static var staticConfiguration:Configuration;

-		/**
-		 *  @private
-		 *  This TLF object composes TextLines from a text String.
-		 *  We use it when the 'typicalText' property is set to a String
-		 *  that doesn't contain linebreaks.
-		 */
-		private static var staticStringFactory:StringTextLineFactory;
-
-		/**
-		 *  @private
-		 *  This TLF object composes TextLines from a TextFlow.
-		 *  We use it when the 'typicalText is set to a String
-		 *  that contains linebreaks (and therefore is interpreted
-		 *  as multiple paragraphs).
-		 */
-		private static var staticTextFlowFactory:TextFlowTextLineFactory;
-
+        /**
+         *  @private
+         *  This TLF object composes TextLines from a text String.
+         *  We use it when the 'typicalText' property is set to a String
+         *  that doesn't contain linebreaks.
+         */
+        private static var staticStringFactory:StringTextLineFactory;
+
+        /**
+         *  @private
+         *  This TLF object composes TextLines from a TextFlow.
+         *  We use it when the 'typicalText is set to a String
+         *  that contains linebreaks (and therefore is interpreted
+         *  as multiple paragraphs).
+         */
+        private static var staticTextFlowFactory:TextFlowTextLineFactory;
+
         /**
          *  @private
          *  This TLF object is used to import a 'text' String
@@ -618,7 +618,7 @@

             // Add event listeners on this component.
             addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
-
+
             // The focusInHandler is called by the TCMContainer focusInHandler.
             // The focusOutHandler is called by the TCMContainer focusOutHandler.
             // The keyDownHandler is called by the TCMContainer keyDownHandler.
@@ -662,12 +662,12 @@
         //
         //--------------------------------------------------------------------------

-		/**
-		 *  @private
-		 *  The composition bounds used when creating the TextLines.
-		 */
-		mx_internal var unbounded:Rectangle = new Rectangle(0, 0, NaN, NaN);
-
+        /**
+         *  @private
+         *  The composition bounds used when creating the TextLines.
+         */
+        mx_internal var unbounded:Rectangle = new Rectangle(0, 0, NaN, NaN);
+
         /**
          *  @private
          *  The hostFormat object in the _textContainerManager determines the
@@ -726,11 +726,11 @@
          */
         private var inMeasureMethod:Boolean = false;

-		/**
-		 *  @private
-		 */
-		private var inUpdateDLMethod:Boolean = false;
-
+        /**
+         *  @private
+         */
+        private var inUpdateDLMethod:Boolean = false;
+
         /**
          *  @private
          */
@@ -1522,9 +1522,9 @@
          *  a percent height, or both top and bottom
          *  constraints.

          *
-		 *
This property will also be ignored if the typicalText
-		 *  property is specified.

-		 *
+         *
This property will also be ignored if the typicalText
+         *  property is specified.

+         *
          *
RichEditableText's measure() method uses
          *  widthInChars and heightInLines
          *  to determine the measuredWidth
@@ -2166,7 +2166,7 @@
                 {
                     _textFlow = staticPlainTextImporter.importToFlow(_text);
                 }
-				textFlowChanged = true;
+                textFlowChanged = true;
             }

             // Make sure the interactionManager and controller are added to this textFlow.
@@ -2223,70 +2223,70 @@
             dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
         }

-		//----------------------------------
-		//  typicalText
-		//----------------------------------
-
-		/**
-		 *  @private
-		 */
-		private var typicalTextChanged:Boolean;
-
-		/**
-		 *  @private
-		 */
-		private var _typicalText:String;
-
-		/**
-		 *  @private
-		 *  Used when _typicalText is multiline
-		 */
-		private var _typicalTextFlow:TextFlow;
-
-		/**
-		 *  Text that is used to determine
-		 *  the default width and height of the control,
-		 *  without actually being displayed.
-		 *
-		 *
This property will be ignored if you specify an explicit width,
-		 *  a percent width, or both left and right
-		 *  constraints.

-		 *
-		 *
Use of this property causes the widthInChars
-		 *  and heightInLines properties to be ignored.
-		 *
-		 *  @default null
-		 *
-		 *  @see spark.primitives.heightInLines
-		 *  @see spark.primitives.widthInChars
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.0
-		 *  @productversion Flex 4.5
-		 */
-		public function get typicalText():String
-		{
-			return _typicalText;
-		}
-
-		/**
-		 *  @private
-		 */
-		public function set typicalText(value:String):void
-		{
-			if (value == _typicalText)
-				return;
-
-			_typicalText = value;
-
-			typicalTextChanged = true;
-
-			invalidateProperties();
-			invalidateSize();
-			invalidateDisplayList();
-		}
-
+        //----------------------------------
+        //  typicalText
+        //----------------------------------
+
+        /**
+         *  @private
+         */
+        private var typicalTextChanged:Boolean;
+
+        /**
+         *  @private
+         */
+        private var _typicalText:String;
+
+        /**
+         *  @private
+         *  Used when _typicalText is multiline
+         */
+        private var _typicalTextFlow:TextFlow;
+
+        /**
+         *  Text that is used to determine
+         *  the default width and height of the control,
+         *  without actually being displayed.
+         *
+         *
This property will be ignored if you specify an explicit width,
+         *  a percent width, or both left and right
+         *  constraints.

+         *
+         *
Use of this property causes the widthInChars
+         *  and heightInLines properties to be ignored.

+         *
+         *  @default null
+         *
+         *  @see spark.primitives.heightInLines
+         *  @see spark.primitives.widthInChars
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.0
+         *  @productversion Flex 4.5
+         */
+        public function get typicalText():String
+        {
+            return _typicalText;
+        }
+
+        /**
+         *  @private
+         */
+        public function set typicalText(value:String):void
+        {
+            if (value == _typicalText)
+                return;
+
+            _typicalText = value;
+
+            typicalTextChanged = true;
+
+            invalidateProperties();
+            invalidateSize();
+            invalidateDisplayList();
+        }
+
         //----------------------------------
         //  widthInChars
         //----------------------------------
@@ -2324,9 +2324,9 @@
          *  a percent width, or both left and right
          *  constraints.

          *
-		 *
This property will also be ignored if the typicalText
-		 *  property is specified.

-		 *
+         *
This property will also be ignored if the typicalText
+         *  property is specified.

+         *
          *
RichEditableText's measure() method uses
          *  widthInChars and heightInLines
          *  to determine the measuredWidth
@@ -2603,8 +2603,8 @@
          */
         override protected function measure():void
         {
-			var bounds:Rectangle;
-
+            var bounds:Rectangle;
+
             // If the damage handler is called while measuring text, this means
             // the text lines are damaged and the display needs to be updated.
             // This flag tells the handler to invalidate just the display list.
@@ -2625,80 +2625,80 @@
             if (isMeasureFixed())
             {
                 autoSize = false;
-
-				if (typicalText)
-				{
-					if (typicalTextChanged)
-					{
-						// If the text has linebreaks (CR, LF, or CF+LF)
-						// create a multi-paragraph TextFlow from it
-						// and use the TextFlowTextLineFactory to render it.
-						// Otherwise the StringTextLineFactory will put
-						// all of the lines into a single paragraph
-						// and FTE performance will degrade on a large paragraph.
-						if (_typicalText.indexOf("\n") != -1 || _typicalText.indexOf("\r") != -1)
-						{
-							_typicalTextFlow = staticPlainTextImporter.importToFlow(_typicalText);
-							// this helped get the factory to generate the same bounds as the
-							// composer
-							_typicalTextFlow.hostFormat = _textContainerManager.hostFormat;
-						}
-						else
-							_typicalTextFlow = null;
-						typicalTextChanged = false;
-					}
-					// if multiline...
-					if (_typicalTextFlow)
-					{
-						// create the factory if needed
-						if (!staticTextFlowFactory)
-						{
-							staticTextFlowFactory = new TextFlowTextLineFactory();
-							// set bounds to natural bounds
-							staticTextFlowFactory.compositionBounds = unbounded;
-						}
-						if (_typicalTextFlow.flowComposer)
-						{
-							_typicalTextFlow.flowComposer.swfContext =
-								ISWFContext(embeddedFontContext);
-						}
-						staticTextFlowFactory.swfContext = ISWFContext(embeddedFontContext);
-						// create the textlines
-						staticTextFlowFactory.createTextLines(tossTextLine, _typicalTextFlow);
-						// get the bounds
-						bounds = staticTextFlowFactory.getContentBounds();
-					}
-					else // single line
-					{
-						// create the factory if needed
-						if (!staticStringFactory)
-						{
-							staticStringFactory = new StringTextLineFactory();
-							// set bounds to natural bounds
-							staticStringFactory.compositionBounds = unbounded;
-						}
-						// create the textlines
-						staticStringFactory.text = _typicalText;
-						staticStringFactory.textFlowFormat = _textContainerManager.hostFormat;
-						staticStringFactory.swfContext = ISWFContext(embeddedFontContext);
-						staticStringFactory.createTextLines(tossTextLine);
-						// get the bounds
-						bounds = staticStringFactory.getContentBounds();
-					}
-
-					measuredWidth = Math.ceil(bounds.width);
-					measuredHeight = Math.ceil(bounds.height);
-				}
-				else
-				{
-	                // Go large.  For performance reasons, want to avoid a scrollRect
-	                // whenever possible in drawBackgroundAndSetScrollRect().  This is
-	                // particularly true for 1 line TextInput components.
-	                measuredWidth = !isNaN(explicitWidth) ? explicitWidth :
-	                    Math.ceil(calculateWidthInChars());
-	                measuredHeight = !isNaN(explicitHeight) ? explicitHeight :
-	                    Math.ceil(calculateHeightInLines());
-				}
+
+                if (typicalText)
+                {
+                    if (typicalTextChanged)
+                    {
+                        // If the text has linebreaks (CR, LF, or CF+LF)
+                        // create a multi-paragraph TextFlow from it
+                        // and use the TextFlowTextLineFactory to render it.
+                        // Otherwise the StringTextLineFactory will put
+                        // all of the lines into a single paragraph
+                        // and FTE performance will degrade on a large paragraph.
+                        if (_typicalText.indexOf("\n") != -1 || _typicalText.indexOf("\r") != -1)
+                        {
+                            _typicalTextFlow = staticPlainTextImporter.importToFlow(_typicalText);
+                            // this helped get the factory to generate the same bounds as the
+                            // composer
+                            _typicalTextFlow.hostFormat = _textContainerManager.hostFormat;
+                        }
+                        else
+                            _typicalTextFlow = null;
+                        typicalTextChanged = false;
+                    }
+                    // if multiline...
+                    if (_typicalTextFlow)
+                    {
+                        // create the factory if needed
+                        if (!staticTextFlowFactory)
+                        {
+                            staticTextFlowFactory = new TextFlowTextLineFactory();
+                            // set bounds to natural bounds
+                            staticTextFlowFactory.compositionBounds = unbounded;
+                        }
+                        if (_typicalTextFlow.flowComposer)
+                        {
+                            _typicalTextFlow.flowComposer.swfContext =
+                                ISWFContext(embeddedFontContext);
+                        }
+                        staticTextFlowFactory.swfContext = ISWFContext(embeddedFontContext);
+                        // create the textlines
+                        staticTextFlowFactory.createTextLines(tossTextLine, _typicalTextFlow);
+                        // get the bounds
+                        bounds = staticTextFlowFactory.getContentBounds();
+                    }
+                    else // single line
+                    {
+                        // create the factory if needed
+                        if (!staticStringFactory)
+                        {
+                            staticStringFactory = new StringTextLineFactory();
+                            // set bounds to natural bounds
+                            staticStringFactory.compositionBounds = unbounded;
+                        }
+                        // create the textlines
+                        staticStringFactory.text = _typicalText;
+                        staticStringFactory.textFlowFormat = _textContainerManager.hostFormat;
+                        staticStringFactory.swfContext = ISWFContext(embeddedFontContext);
+                        staticStringFactory.createTextLines(tossTextLine);
+                        // get the bounds
+                        bounds = staticStringFactory.getContentBounds();
+                    }
+
+                    measuredWidth = Math.ceil(bounds.width);
+                    measuredHeight = Math.ceil(bounds.height);
+                }
+                else
+                {
+                    // Go large.  For performance reasons, want to avoid a scrollRect
+                    // whenever possible in drawBackgroundAndSetScrollRect().  This is
+                    // particularly true for 1 line TextInput components.
+                    measuredWidth = !isNaN(explicitWidth) ? explicitWidth :
+                        Math.ceil(calculateWidthInChars());
+                    measuredHeight = !isNaN(explicitHeight) ? explicitHeight :
+                        Math.ceil(calculateHeightInLines());
+                }
             }
             else
             {
@@ -2729,13 +2729,13 @@
                     // except if we're using the explicitWidth.
                     bounds = measureTextSize(composeWidth);

-					// The measured width shouldn’t be pinned to the composeWidth if
-					// the composeWidth is set by %, otherwise the measuredWidth
-					// can keep stretching
-					if (!isNaN(explicitWidth) || !isNaN(widthInChars))
-						measuredWidth = textContainerManager.compositionWidth;
-					else
-                    	measuredWidth = Math.ceil(bounds.width);
+                    // The measured width shouldn’t be pinned to the composeWidth if
+                    // the composeWidth is set by %, otherwise the measuredWidth
+                    // can keep stretching
+                    if (!isNaN(explicitWidth) || !isNaN(widthInChars))
+                        measuredWidth = textContainerManager.compositionWidth;
+                    else
+                        measuredWidth = Math.ceil(bounds.width);
                     measuredHeight = Math.ceil(bounds.bottom);
                 }
                 else if (!isNaN(heightConstraint) || !isNaN(explicitHeight) ||
@@ -2805,8 +2805,8 @@
         override protected function updateDisplayList(unscaledWidth:Number,
                                                       unscaledHeight:Number):void
         {
-			inUpdateDLMethod = true;
-
+            inUpdateDLMethod = true;
+
             //trace("updateDisplayList", unscaledWidth, unscaledHeight, "autoSize", autoSize);

             // Styles can be changed in event handlers while in the middle
@@ -2818,15 +2818,15 @@
             // to be remeasured.  If one of the dimension changes, the text may
             // compose differently and have a different size which the layout
             // manager needs to know.
-			// Don't exit early if we have changed size.  We may have to run
-			// drawBackgroundAndSetScrollRect
+            // Don't exit early if we have changed size.  We may have to run
+            // drawBackgroundAndSetScrollRect
             if (autoSize &&
-				lastUnscaledHeight == unscaledHeight && lastUnscaledWidth == unscaledWidth &&
-				remeasureText(unscaledWidth, unscaledHeight))
-			{
-				inUpdateDLMethod = false;
-				return;
-			}
+                lastUnscaledHeight == unscaledHeight && lastUnscaledWidth == unscaledWidth &&
+                remeasureText(unscaledWidth, unscaledHeight))
+            {
+                inUpdateDLMethod = false;
+                return;
+            }

             super.updateDisplayList(unscaledWidth, unscaledHeight);

@@ -2877,8 +2877,8 @@

             lastUnscaledWidth = unscaledWidth;
             lastUnscaledHeight = unscaledHeight;
-
-			inUpdateDLMethod = false;
+
+            inUpdateDLMethod = false;
          }

         /**
@@ -2906,42 +2906,42 @@

             super.setLayoutBoundsSize(width, height, postLayoutTransform);

-			// Did we already constrain the width?
-			if (widthConstraint == width)
-				return;
-
-			// No reflow for explicit lineBreak
-			if (getStyle("lineBreak") == "explicit")
-				return;
-
-			// If we don't measure.
-			// Call super so we don't call the override
-			// and set autoSize to false;
-			if (super.canSkipMeasurement())
-				return;
-
-			if (!isNaN(explicitHeight))
-				return;
-
-			// We support reflow only in the case of constrained width and
-			// unconstrained height. Note that we compare with measuredWidth,
-			// as for example the RichEditableText can be
-			// constrained by the layout with "left" and "right", but the
-			// container width itself may not be constrained and it would depend
-			// on the element's measuredWidth.
-			var constrainedWidth:Boolean = !isNaN(width) && (width != measuredWidth) && (width != 0);
-			if (!constrainedWidth)
-				return;
-
-			// We support reflow only when we don't have a transform.
-			// We could add support for scale, but not skew or rotation.
-			if (postLayoutTransform && hasComplexLayoutMatrix)
-				return;
-
-			widthConstraint = width;
+            // Did we already constrain the width?
+            if (widthConstraint == width)
+                return;
+
+            // No reflow for explicit lineBreak
+            if (getStyle("lineBreak") == "explicit")
+                return;
+
+            // If we don't measure.
+            // Call super so we don't call the override
+            // and set autoSize to false;
+            if (super.canSkipMeasurement())
+                return;
+
+            if (!isNaN(explicitHeight))
+                return;
+
+            // We support reflow only in the case of constrained width and
+            // unconstrained height. Note that we compare with measuredWidth,
+            // as for example the RichEditableText can be
+            // constrained by the layout with "left" and "right", but the
+            // container width itself may not be constrained and it would depend
+            // on the element's measuredWidth.
+            var constrainedWidth:Boolean = !isNaN(width) && (width != measuredWidth) && (width != 0);
+            if (!constrainedWidth)
+                return;
+
+            // We support reflow only when we don't have a transform.
+            // We could add support for scale, but not skew or rotation.
+            if (postLayoutTransform && hasComplexLayoutMatrix)
+                return;
+
+            widthConstraint = width;

-			invalidateSize();
-
+            invalidateSize();
+
         }

         /**
@@ -3596,9 +3596,9 @@
                 return true;
             }

-			if (typicalText != null)
-				return true;
-
+            if (typicalText != null)
+                return true;
+
             // Is there some sort of width and some sort of height?
             return  (!isNaN(explicitWidth) || !isNaN(_widthInChars) ||
                 !isNaN(widthConstraint)) &&
@@ -3616,28 +3616,28 @@
                                          composeHeight:Number=NaN):Rectangle
         {
             // Adjust for explicit min/maxWidth so the measurement is accurate.
-			// If no explicitWidth or widthInChars
+            // If no explicitWidth or widthInChars
             if (isNaN(explicitWidth) && isNaN(widthInChars))
             {
-				// then if there is an explicit minWidth and
-				// a specified composeWidth and the composeWidth
-				// is less than the minWidth, use the minWidth
+                // then if there is an explicit minWidth and
+                // a specified composeWidth and the composeWidth
+                // is less than the minWidth, use the minWidth
                 if (!isNaN(explicitMinWidth) &&
-					!isNaN(composeWidth) && composeWidth < minWidth)
+                    !isNaN(composeWidth) && composeWidth < minWidth)
                 {
                     composeWidth = minWidth;
                 }
-				// if composeWidth is NaN, just compose and see what happens
-				// and fix up the measurements afterwards.  See final check
-				// at the end of the method
-
-				// On the other hand, if there is an explicit maxWidth and
-				// no specified composeWidth then use maxWidth,
-				// or if there is a a specified composeWidth
-				// and the composeWidth is greater than maxWidth, use the maxWidth.
+                // if composeWidth is NaN, just compose and see what happens
+                // and fix up the measurements afterwards.  See final check
+                // at the end of the method
+
+                // On the other hand, if there is an explicit maxWidth and
+                // no specified composeWidth then use maxWidth,
+                // or if there is a a specified composeWidth
+                // and the composeWidth is greater than maxWidth, use the maxWidth.
                 if (!isNaN(explicitMaxWidth) &&
                     isNaN(composeWidth) ||
-					composeWidth > maxWidth)
+                    composeWidth > maxWidth)
                 {
                     composeWidth = maxWidth;
                 }
@@ -3659,9 +3659,9 @@
             {
                 _textContainerManager.convertToTextFlowWithComposer();
             }
-
-			// Compose only.  The display should not be updated.
-			_textContainerManager.compose();
+
+            // Compose only.  The display should not be updated.
+            _textContainerManager.compose();

             // Adjust width and height for text alignment.
             var bounds:Rectangle = _textContainerManager.getContentBounds();
@@ -3679,19 +3679,19 @@

             //trace("measureTextSize", composeWidth, "->", bounds.width, composeHeight, "->", bounds.height);

-			// one final check:  If there is no explicitWidth...
-			if (isNaN(explicitWidth) && isNaN(widthInChars))
-			{
-				// but there is a minWidth, and no specified composeWidth
-				// and we measure out to be less than the minWidth
-				// report the minWidth anyway.
-				if (!isNaN(explicitMinWidth) &&
-					isNaN(composeWidth) &&
-					bounds.width < minWidth)
-				{
-					bounds.width = minWidth;
-				}
-			}
+            // one final check:  If there is no explicitWidth...
+            if (isNaN(explicitWidth) && isNaN(widthInChars))
+            {
+                // but there is a minWidth, and no specified composeWidth
+                // and we measure out to be less than the minWidth
+                // report the minWidth anyway.
+                if (!isNaN(explicitMinWidth) &&
+                    isNaN(composeWidth) &&
+                    bounds.width < minWidth)
+                {
+                    bounds.width = minWidth;
+                }
+            }
             return bounds;
         }

@@ -3718,10 +3718,10 @@
             // there is no room for text.
             if (width == 0 || height == 0)
                 return false;
-
-			// if we're using typical text, no need to remeasure
-			if (typicalText != null)
-				return false;
+
+            // if we're using typical text, no need to remeasure
+            if (typicalText != null)
+                return false;

             if (!isNaN(widthConstraint))
             {
@@ -4260,18 +4260,18 @@
                          systemManager_mouseUpHandler, true /*useCapture*/);
         }

-		/**
-		 *  @private
-		 *  call a TLF method so we don't leak
-		 */
-		private function removedFromStageHandler(event:Event):void
-		{
-			if (event.target == this)
-			{
-				TextContainerManager.releaseReferences();
-			}
-		}
-
+        /**
+         *  @private
+         *  call a TLF method so we don't leak
+         */
+        private function removedFromStageHandler(event:Event):void
+        {
+            if (event.target == this)
+            {
+                TextContainerManager.releaseReferences();
+            }
+        }
+
         /**
          *  @private
          *  If the textFlow hasn't changed the generation remains the same.
@@ -4394,9 +4394,9 @@
             if (event.damageLength == 0)
                 return;

-			if (inUpdateDLMethod)
-				return;
-
+            if (inUpdateDLMethod)
+                return;
+
             // Text that is being measured is damaged so update the display.
             if (inMeasureMethod)
             {
@@ -4714,16 +4714,16 @@
                 invalidateDisplayList();
             }
         }
-
-		/**
-		 *  @private
-		 *  release the textline as it is temporary.
-		 */
-		private function tossTextLine(textLine:DisplayObject):void
-		{
-			TextLineRecycler.addLineForReuse(TextLine(textLine));
-		}
-
+
+        /**
+         *  @private
+         *  release the textline as it is temporary.
+         */
+        private function tossTextLine(textLine:DisplayObject):void
+        {
+            TextLineRecycler.addLineForReuse(TextLine(textLine));
+        }
+
     }

 }


fix LightController to sort lights directly when a the its target light is removed from the scene

--- src/aerys/minko/scene/controller/light/LightController.as
+++ src/aerys/minko/scene/controller/light/LightController.as
@@ -74,8 +74,9 @@
 		{
 			_lightData.changed.remove(lightDataChangedHandler);

-			if (!scene.enterFrame.hasCallback(sceneEnterFrameHandler))
-				scene.enterFrame.add(sceneEnterFrameHandler);
+            sortLights(scene);
+//			if (!scene.enterFrame.hasCallback(sceneEnterFrameHandler))
+//				scene.enterFrame.add(sceneEnterFrameHandler);
 		}

 		protected function lightDataChangedHandler(lightData	: LightDataProvider,


Add function reader in function fromByteArray to VertexStream

M Argument reader change the data type read when the function is going over the byteArray

--- src/aerys/minko/type/stream/VertexStream.as
+++ src/aerys/minko/type/stream/VertexStream.as
@@ -150,10 +150,12 @@
 									dynamic);
 		}

+
 		public static function fromByteArray(data 		: ByteArray,
 											 count		: int,
 											 format		: VertexFormat,
-											 dynamic	: Boolean	= false) : VertexStream
+											 dynamic	: Boolean	= false,
+											 reader 	: Function 	= null) : VertexStream
 		{
 			var numFormats		: int				= format.components.length;
 			var nativeFormats	: Vector.<int>		= new Vector.<int>(numFormats, true);
@@ -164,7 +166,8 @@
 			for (var k : int = 0; k < numFormats; k++)
 				nativeFormats[k] = format.components[k].nativeFormat;

-			stream._data = tmp;
+			if (reader == null)
+				reader = data.readFloat;

 			tmp = new Vector.<Number>(format.dwordsPerVertex * count, true);

@@ -175,18 +178,21 @@
 					switch (nativeFormats[i])
 					{
 						case VertexComponentType.FLOAT_4 :
-							tmp[int(length++)] = data.readFloat();
+							tmp[int(length++)] = reader();
 						case VertexComponentType.FLOAT_3 :
-							tmp[int(length++)] = data.readFloat();
+							tmp[int(length++)] = reader();
 						case VertexComponentType.FLOAT_2 :
-							tmp[int(length++)] = data.readFloat();
+							tmp[int(length++)] = reader();
 						case VertexComponentType.FLOAT_1 :
-							tmp[int(length++)] = data.readFloat();
+							tmp[int(length++)] = reader();
 							break ;
 					}
 				}
 			}

+			stream._data = tmp;
+			stream.invalidate();
+
 			return stream;
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 19918
Author:   chiedozi@adobe.com
Date:     2011-01-24T22:01:49.187902Z

Log Message:
-----------
Fixed an issue where tabBar and actionBar hide and show animations weren't played after orientation changes.
Fixed an issue where the explicitWidth and explicitHeight properties of a navigator's contentGroup weren't properly restored after the tabBar or actionBar was hidden or shown.

QE notes:
Doc notes:
Bugs: SDK-29217
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/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -18,6 +18,7 @@
 import flash.utils.getQualifiedClassName;

 import mx.core.FlexGlobals;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.PropertyChangeEvent;
@@ -584,6 +585,36 @@
         return true;
     }

+
+    /**
+     *  @private
+     *  Captures the important animation values of component to use
+     *  when animating the actionBar's visiblity.
+     *
+     *  @param component The component to capture the values from
+     *
+     *  @return Returns an object that contains the properties
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    mx_internal function captureAnimationValues(component:UIComponent):Object
+    {
+        var values:Object = {   x:component.x,
+                                y:component.y,
+                                width:component.width,
+                                height:component.height,
+                                explicitWidth:component.explicitWidth,
+                                explicitHeight:component.explicitHeight,
+                                visible: component.visible,
+                                includeInLayout: component.includeInLayout,
+                                cacheAsBitmap: component.cacheAsBitmap };
+
+        return values;
+    }
+
     /**
      *  @private
      *  Creates the top view of the navigator and adds it to the


Transferred from the Adobe Open Source Subversion Repository

Revision: 19890
Author:   chiedozi@adobe.com
Date:     2011-01-22T00:54:17.832168Z

Log Message:
-----------
PARB Changes for TabbedViewNavigator.

TabbedViewNavigator
The activeNavigator property has been renamed to selectedNavigator
The following properties and methods have been made mx_internal, thus don't need to be tested:
maintainNaigationStack
tabBarRenderer_clickHandler

TabbedViewNavigatorApplication
The navigator skinpart has been renamed to tabbedNavigator
The creationPolicy and destructionPolicy properties on ViewNavigatorBase have been removed.
The maintainNavigationStack and creationPolicy properties have been removed

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/src/ScriptRunner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/.flexProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/tests/performance/mobile/ComponentCatalog/.actionScriptProperties</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -198,41 +198,6 @@
     }

     //----------------------------------
-    //  destructionPolicy
-    //----------------------------------
-
-    private var _destructionPolicy:String = ContainerDestructionPolicy.AUTO;
-
-    [Inspectable(category="General", enumeration="auto,never", defaultValue="auto")]
-    /**
-     *  Sets the destruction policy for the view navigator.
-     *  If set to auto, the default, the contents of the view navigator
-     *  are destroyed when the navigator is deactivated by another component.
-     *  If set to never, the navigator is never destroyed.
-     *
-     *  @default auto
-     *
-     *  @see spark.core.ContainerDestructionPolicy
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    public function get destructionPolicy():String
-    {
-        return _destructionPolicy;
-    }
-
-    /**
-     *  @private
-     */
-    public function set destructionPolicy(value:String):void
-    {
-        _destructionPolicy = value;
-    }
-
-    //----------------------------------
     //  icon
     //----------------------------------


fixed problem the ane was causing on ios notifications

--- actionscript/mobile/src/com/freshplanet/ane/AirFacebook/Facebook.as
+++ actionscript/mobile/src/com/freshplanet/ane/AirFacebook/Facebook.as
@@ -1,4 +1,4 @@
-//////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////
 //
 //  Copyright 2012 Freshplanet (http://freshplanet.com | opensource@freshplanet.com)
 //
@@ -245,8 +245,9 @@
 			{
 				if (event.arguments != null && event.arguments.length > 0)
 				{
+					// if the invoke event arguments consist in a Referer begining with 'fb'
 					var url:String = event.arguments[0] as String;
-					if (url.indexOf("fb") == 0) // only handle invoke that starts with fb
+					if ( url != null && url.indexOf("fb") == 0)
 					{
 						_context.call("handleOpenURL", url);
 					}


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

--- frameworks/projects/charts/src/mx/charts/AxisRenderer.as
+++ frameworks/projects/charts/src/mx/charts/AxisRenderer.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: 17028
Author:   clucier@adobe.com
Date:     2010-07-22T23:43:03.554864Z

Log Message:
-----------
Following up with additional mirroring related fixes.

QE notes: None
Doc notes: None
Bugs: SDK-26972
Reviewer: Kevin
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/SpriteAsset.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/BitmapAsset.as</path>

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

--- frameworks/projects/framework/src/mx/core/SpriteAsset.as
+++ frameworks/projects/framework/src/mx/core/SpriteAsset.as
@@ -680,7 +680,8 @@
             if (p is ILayoutDirectionElement)
             {
                 // mirror is true if our layoutDirection differs from our parent's.
-                var mirror:Boolean = (_layoutDirection != null) &&
+                var mirror:Boolean = _layoutDirection != null &&
+                    ILayoutDirectionElement(p).layoutDirection != null &&
                     (_layoutDirection != ILayoutDirectionElement(p).layoutDirection);

                 // If our layoutDirection is different from our parent's and if it used to


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/core/UIComponent.as
+++ frameworks/projects/framework/src/mx/core/UIComponent.as
@@ -3649,7 +3649,7 @@
                 continue;

             if (child.document == _document ||
-                child.document == ApplicationGlobals.application)
+                child.document == FlexGlobals.topLevelApplication)
             {
                 child.document = value;
             }
@@ -6437,7 +6437,7 @@
         {
             IUIComponent(child).document = document ?
                                            document :
-                                           ApplicationGlobals.application;
+                                           FlexGlobals.topLevelApplication;
         }

         // Propagate moduleFactory to the child, but don't overwrite an existing moduleFactory.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8721
Author:   aharui@adobe.com
Date:     2009-07-21T22:11:37.692397Z

Log Message:
-----------
Hopefully final implementation of IME support.

QE Notes: None
Doc Notes: new API in IIMESupport
Bugs: SDK-22267, SDK-18516
Reviewer: Gordon
API Change: Yes
Is noteworthy for integration: Yes, new API in IIMESupport
tests: checkintests mustella/gumbo/components/TextInput mustella/gumbo/components/TextArea

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.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/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IIMESupport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>

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

--- frameworks/projects/framework/src/mx/core/UITextField.as
+++ frameworks/projects/framework/src/mx/core/UITextField.as
@@ -722,18 +722,19 @@
     }

     //----------------------------------
-    //  editable
-    //----------------------------------
-
-    /**
-     *  Specifies whether the user is allowed to edit the text in this control.
-     *
+    //  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 editable():Boolean
+    public function get enableIME():Boolean
     {
         return type == TextFieldType.INPUT;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17099
Author:   clucier@adobe.com
Date:     2010-07-28T16:00:01.556499Z

Log Message:
-----------
ContentCache - Fixes stale cache entries which were complete but never notified
the cache client that they were complete.

QE notes: None
Doc notes: None
Bugs: SDK-27089
Reviewer: Darrell
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/ContentCache.as

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

--- frameworks/projects/spark/src/spark/core/ContentCache.as
+++ frameworks/projects/spark/src/spark/core/ContentCache.as
@@ -697,27 +697,32 @@
     private function loader_completeHandler(e:Event):void
     {
         var loaderInfo:LoaderInfo = e.target as LoaderInfo;
-
+
+        // Lookup our cache entry for this loader. We can't lookup by key since
+        // loaderInfo.url may have been sanitized/modified by the player (or for
+        // example converted to a fully qualified form since our initial request).
+        var cachedRequest:CacheEntryNode = cacheEntries.find(loaderInfo) as CacheEntryNode;
+
         if (e.type == Event.COMPLETE && loaderInfo)
         {
-            // Mark cache entry as complete.
-            var entry:CacheEntryNode = cachedData[loaderInfo.url];
-            if (entry)
-                entry.complete = true;
-
-            if (!loaderInfo.childAllowsParent)
+            // Mark cache entry as complete.
+            if (cachedRequest)
             {
+                cachedRequest.complete = true;
+
                 // Detected that our loader cannot be shared or cached. Mark
                 // as such and notify and possibly active content requests.
-                addCacheEntry(loaderInfo.url, UNTRUSTED);
-                dispatchEvent(new LoaderInvalidationEvent(LoaderInvalidationEvent.INVALIDATE_LOADER, loaderInfo));
+                if (!loaderInfo.childAllowsParent)
+                {
+                    addCacheEntry(cachedRequest.source, UNTRUSTED);
+                    dispatchEvent(new LoaderInvalidationEvent(LoaderInvalidationEvent.INVALIDATE_LOADER, loaderInfo));
+                }
             }
         }
         else if (e.type == IOErrorEvent.IO_ERROR || e.type == SecurityErrorEvent.SECURITY_ERROR)
         {
             // Not suitable for caching.  Lookup our loader info in our cache since
             // the ioError event does not provide us the original url.
-            var cachedRequest:CacheEntryNode = cacheEntries.find(e.target) as CacheEntryNode;
             if (cachedRequest)
                 removeCacheEntry(cachedRequest.source);
         }


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

--- frameworks/projects/spark/src/spark/effects/CrossFade.as
+++ frameworks/projects/spark/src/spark/effects/CrossFade.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package spark.effects


removed 'tradeable' until reflected on server

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -216,12 +216,14 @@
         if (isNaN(item.itemId) || item.itemId == 0)
         {
             trace("This item doesn't have an itemId, so call create Item.");
-            r = AppDAO.getInstance().getItemServer().createItem(gid, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.tradeable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
+			//r = AppDAO.getInstance().getItemServer().createItem(gid, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.tradeable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
+			r = AppDAO.getInstance().getItemServer().createItem(gid, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
         }
         else
         {
             trace("This item has an itemId (" + item.itemId + "), so call update Item.");
-            r = AppDAO.getInstance().getItemServer().updateItem(gid, item.itemId, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.tradeable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
+			//r = AppDAO.getInstance().getItemServer().updateItem(gid, item.itemId, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.tradeable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
+			r = AppDAO.getInstance().getItemServer().updateItem(gid, item.itemId, item.name, item.description, item.iconMediaId, item.mediaId, item.dropable, item.destroyable, item.isAttribute, item.maxQty, item.weight, item.url, item.type);
         }
         r.addResponder(resp);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 20690
Author:   mhorn@adobe.com
Date:     2011-03-08T20:26:51.755036Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/Legend.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PieChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/PlotChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/items/LineSeriesSegment.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/ColumnSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/CandlestickChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/HLOCChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/InstanceCache.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/series/BarSeries.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/Series.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/LineChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BubbleChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/effects/SeriesZoom.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/ColumnChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/PolarDataCanvas.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/BarChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/AreaChart.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/charts/src/mx/charts/chartClasses/ChartElement.as</path>

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

--- frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/PolarChart.as
@@ -90,11 +90,11 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 */
-	private var _moduleFactoryInitialized:Boolean = false;
-
+    /**
+     *  @private
+     */
+    private var _moduleFactoryInitialized:Boolean = false;
+
     /**
      *  @private
      */
@@ -195,48 +195,48 @@
     //
     //--------------------------------------------------------------------------

-	/**
-	 *  @private
-	 */
-	private function initStyles():Boolean
-	{
-		HaloDefaults.init(styleManager);
-
-		var polarChartStyle:CSSStyleDeclaration =
-			HaloDefaults.createSelector("mx.charts.chartClasses.PolarChart", styleManager);
-
-		polarChartStyle.defaultFactory = function():void
-		{
-			this.dataTipRenderer = DataTip;
-			this.fill = new SolidColor(0xFFFFFF, 0);
-			this.calloutStroke = new Stroke(0x888888,2);
-			this.fontSize = 10;
-		}
-
-		return true;
-	}
-
-	/**
-	 *  @inheritDoc
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	override public function set moduleFactory(factory:IFlexModuleFactory):void
-	{
-		super.moduleFactory = factory;
-
-		if (_moduleFactoryInitialized)
-			return;
-
-		_moduleFactoryInitialized = true;
-
-		// our style settings
-		initStyles();
-	}
-
+    /**
+     *  @private
+     */
+    private function initStyles():Boolean
+    {
+        HaloDefaults.init(styleManager);
+
+        var polarChartStyle:CSSStyleDeclaration =
+            HaloDefaults.createSelector("mx.charts.chartClasses.PolarChart", styleManager);
+
+        polarChartStyle.defaultFactory = function():void
+        {
+            this.dataTipRenderer = DataTip;
+            this.fill = new SolidColor(0xFFFFFF, 0);
+            this.calloutStroke = new Stroke(0x888888,2);
+            this.fontSize = 10;
+        }
+
+        return true;
+    }
+
+    /**
+     *   A module factory is used as context for using embedded fonts and for finding the style manager that controls the styles for this component.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    override public function set moduleFactory(factory:IFlexModuleFactory):void
+    {
+        super.moduleFactory = factory;
+
+        if (_moduleFactoryInitialized)
+            return;
+
+        _moduleFactoryInitialized = true;
+
+        // our style settings
+        initStyles();
+    }
+
     /**
      *  @inheritDoc
      *
@@ -253,7 +253,7 @@
         // as they might be using the same axes as the chart's
         if (_axisDirty == true)
         {
-        	var n:int = series.length;
+            var n:int = series.length;
             for (var i:int = 0; i < n; i++)
             {
                 series[i].invalidateProperties();
@@ -362,7 +362,7 @@
         axisLayoutDirty = false;
         advanceEffectState();
     }
-
+
     /**
      *  @inheritDoc
      *
@@ -569,7 +569,7 @@
         var m:int;
         for (var i:int = 0; i < n; i++)
         {
-        	m = _transforms[i].elements.length;
+            m = _transforms[i].elements.length;
             for (var j:int = 0; j < m; j++)
             {
                 if (_transforms[i].elements[j] is Series && getSeriesTransformState(_transforms[i].elements[j]) == true)


Transferred from the Adobe Open Source Subversion Repository

Revision: 4245
Author:   shodgson@adobe.com
Date:     2008-12-05T22:00:27.962223Z

Log Message:
-----------
Bugs: Assorted LCDS reliable messaging bugs
QA: Yes
Doc: No
Checkintests Pass: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as
+++ frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as
@@ -19,6 +19,7 @@
 import mx.core.mx_internal;
 import mx.logging.Log;
 import mx.messaging.Channel;
+import mx.messaging.ChannelSet;
 import mx.messaging.ConsumerMessageDispatcher;
 import mx.messaging.MessageAgent;
 import mx.messaging.MessageResponder;
@@ -28,6 +29,7 @@
 import mx.messaging.messages.IMessage;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
+import mx.messaging.Consumer;

 use namespace mx_internal;

@@ -128,6 +130,38 @@
     // Properties
     //
     //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  connected
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Reset polling state following a transient disconnect if possible.
+     *
+     *  @param value The new connected state.
+     */
+    override protected function setConnected(value:Boolean):void
+    {
+        if (connected != value)
+        {
+            if (value) // Potentially a transient reconnect; check for subscribed Consumers.
+            {
+                for each (var channelSet:ChannelSet in channelSets)
+                {
+                    for each (var agent:MessageAgent in channelSet.messageAgents)
+                    {
+                        if (agent is Consumer && (agent as Consumer).subscribed)
+                        {
+                            enablePolling();
+                        }
+                    }
+                }
+            }
+
+            super.setConnected(value);
+        }
+    }

     //----------------------------------
 	//  piggybackingEnabled
@@ -477,7 +511,7 @@

         _pollingRef = -1;
         _shouldPoll = false;
-        pollOutstanding = false;
+        pollOutstanding = false;
     }

@@ -539,17 +573,17 @@
             if (timerRunning)
                 _timer.stop();

-            var msg:CommandMessage = new CommandMessage();
-            msg.operation = CommandMessage.POLL_OPERATION;
+            var poll:CommandMessage = new CommandMessage();
+            poll.operation = CommandMessage.POLL_OPERATION;
             // Pass a null clientId - this indicates that we're polling for
             // any subscriptions for this client as opposed to receive()'ing
             // messages for a single Consumer instance subscribed to a specific destination.
             if (Log.isDebug())
-                _log.debug("'{0}' channel sending poll message\n{1}\n", id, msg.toString());
+                _log.debug("'{0}' channel sending poll message\n{1}\n", id, poll.toString());

             try
             {
-                internalSend(new PollCommandMessageResponder(null, msg, this, _log));
+                internalSend(new PollCommandMessageResponder(null, poll, this, _log));
                 pollOutstanding = true;
             }
             catch(e:Error)
@@ -706,7 +740,7 @@
      */
     override protected function resultHandler(msg:IMessage):void
     {
-        PollingChannel(channel).pollOutstanding = false;
+        var pollingChannel:PollingChannel = channel as PollingChannel;

         if (suppressHandlers)
         {
@@ -719,8 +753,10 @@
             return;
         }

-        if ((msg is CommandMessage))
+        if (msg is CommandMessage) // Poll response containing pushed messages.
         {
+            pollingChannel.pollOutstanding = false;
+
             // Return early if the response is tagged as a no-op poll.
             if (msg.headers[CommandMessage.NO_OP_POLL_HEADER] == true)
                 return;
@@ -750,15 +786,14 @@
                 }
             }
         }
-        else if (msg is AcknowledgeMessage)
-        {
+        else if (msg is AcknowledgeMessage) // Empty response (no messages to push).
+        {
+            pollingChannel.pollOutstanding = false;
             // The server returns an empty ack if there are no messages to return.
             // We don't need to do anything here.
         }
-        else
-        {
-            // This should never happen.
-            // If it does, treat it as a status (error) and return.
+        else // Generally, the result of a connection failure while the poll was on the network.
+        {
         	var errMsg:ErrorMessage = new ErrorMessage();
         	errMsg.faultDetail = resourceManager.getString(
 				"messaging", "receivedNull");
@@ -766,6 +801,7 @@
         	return;
        	}

+       	// If no errors, continue the polling interval.
        	if (msg.headers[CommandMessage.POLL_WAIT_HEADER] != null)
        	{
        	    doPoll(msg.headers[CommandMessage.POLL_WAIT_HEADER]);


Transferred from the Adobe Open Source Subversion Repository

Revision: 6215
Author:   smgilson@adobe.com
Date:     2009-04-23T17:12:57.259499Z

Log Message:
-----------
ASDoc updates for effect classes

Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/KeyFrame.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/WipeDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/CrossFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
+++ frameworks/projects/spark/src/spark/effects/animation/MotionPath.as
@@ -22,16 +22,34 @@
 [DefaultProperty("keyframes")]

 /**
- * This class holds information on a property to be animated
- * and the values that the property should animate between.
+ *  The MotionPath class defines the collection of KeyFrames objects for an effect,
+ *  and the name of the property on the target to animate.
+ *  Each KeyFrame object defines the value of the property at a specific time during an effect.
+ *  The effect then calculates the value of the target property
+ *  by interpolating between the values specified by two key frames.
+ *
+ *  @mxml
+ *
+ *
The <mx:MotionPath> tag
+ *  inherits the tag attributes of its superclass,
+ *  and adds the following tag attributes:

+ *
+ *

+ *  <mx:MotionPath
+ *    id="ID"
+ *    interpolator="NumberInterpolator"
+ *    keyframes="val"
+ *    property="val"
+ *  />
+ *

  *
- *
The 'path' of values that the property will take on during
- * the animation is specified as a set of keyframes, each of which
- * specifies the value at a particular time during the animation.
- * Values in between keyframes are calculated by interpolating
- * between the values of the bounding keyframes.

+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  *
- * @see KeyFrame
+ *  @see KeyFrame
+ *  @see spark.effects.interpolation.NumberInterpolator
  */
 public class MotionPath
 {
@@ -44,7 +62,9 @@
     //--------------------------------------------------------------------------

     /**
-     * Constructor.
+     *  Constructor.
+     *
+     *  @param property The name of the property on the target to animate.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -63,68 +83,96 @@
     //--------------------------------------------------------------------------

     /**
-     * The name of the property to be animated.
+     *  The name of the property on the effect target to be animated.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var property:String;

     /**
-     * The interpolator determines how in-between values in an animation
-     * are calculated. By default, MotionPath assumes that the values are
-     * of type Number and can calculate in-between Number values automatically.
-     * If MotionPath is given keyframes with non-Number values, or if the
-     * desired behavior should use a different approach to interpolation
-     * (such as per-channel color interpolation), then an interpolator
-     * should be supplied.
+     *  The interpolator determines how in-between values in an animation
+     *  are calculated. By default, the MotionPath class assumes that the values are
+     *  of type Number and can calculate in-between Number values automatically.
+     *  If the MotionPath class is given keyframes with non-Number values, or if the
+     *  desired behavior should use a different approach to interpolation
+     *  (such as per-channel color interpolation), then an interpolator
+     *  should be supplied.
+     *
+     *
Flex supplies predefined interpolators in the spark.effects.interpolation package.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var interpolator:IInterpolator = NumberInterpolator.getInstance();

     [Inspectable(category="General", arrayType="spark.effects.KeyFrame")]
     /**
-     * A sequence of KeyFrame objects that represent the time/value pairs
-     * that the property should take on during the animation. Each successive
-     * pair of keyframes controls the animation during the time interval
-     * between them, with the optional easer and valueBy
-     * properties of the later keyframe used to help determine the behavior
-     * during that interval. The sequence of keyframes must be sorted in
-     * order of increasing time values.
+     *  A sequence of KeyFrame objects that represent the time/value pairs
+     *  that the property takes during the animation. Each successive
+     *  pair of keyframes controls the animation during the time interval
+     *  between them.
+     *  The optional easer and valueBy
+     *  properties of the later keyframe are used to determine the behavior
+     *  during that interval. The sequence of keyframes must be sorted in
+     *  order of increasing time values.
      *
-     *
Animations will always start at time 0 and will last for a duration
-     * equal to the time value in the final keyframe. If no keyframe at time 0
-     * is provided, that keyframe will be implicit, using the value of the
-     * target property at the time the animation begins. Because keyframes
-     * explicitly define the times involved in an animation, the duration for
-     * an effect using keyframes will be set according to the maximum time
-     * of the final keyframe of all MotionPaths in the effect.
-     * For example, if an effect has keyframes
-     * at times 0, 500, 1000, and 2000, then the effective duration of that
-     * effect will be 2000, regardless of any duration value set on the
-     * effect itself. Because the final keyframe determines the duration, there
-     * must always be a final keyframe in any MotionPath. That is,
-     * it is implicit that the time in the final keyframe is the
-     * duration of the MotionPath.

+     *
Animations always start at time=0 and will last for a duration
+     *  equal to the time value in the final keyframe.
+     *  If no keyframe is defined at time=0,
+     *  that keyframe is implicit, using the value of the
+     *  target property at the time the animation begins.

+     *
+     *
Because keyframes explicitly define the times involved in an animation,
+     *  the duration for an effect using keyframes is set according to the maximum time
+     *  of the final keyframe of all MotionPaths in the effect.
+     *  For example, if an effect has keyframes
+     *  at times 0, 500, 1000, and 2000, then the effective duration of that
+     *  effect will be 2000 ms, regardless of any duration property set on the
+     *  effect itself.
+     *  Because the final keyframe determines the duration, there
+     *  must always be a final keyframe in any MotionPath. That is,
+     *  it is implicit that the time in the final keyframe is the
+     *  duration of the MotionPath.

      *
-     *
Any keyframe may leave its value undefined (either unset, set to
-     * null, or set to NaN), in which case the
-     * value will be determined dynamically when the animation starts.
-     * Any such undefined value will be determined as follows: (1) if it
-     * is the first keyframe, it will be calculated from the next keyframe
-     * if that keyframe has both a value and valueBy,
-     * as the difference of those values, otherwise it will get the
-     * current value of the property on the target, (2) if it is the final
-     * keyframe and the animation is running in a transition, it will
-     * use the value in the state being transitioned to, (3) otherwise,
-     * any keyframe will calculate its unset value by using the previous
-     * keyframe's value, adding the current keyframe's valueBy
-     * to it, if valueBy is set.

-     *
-     * @see KeyFrame
+     *
Any keyframe may leave its value undefined (either unset, set to
+     *  null, or set to NaN).
+     *  In that case, the value is determined dynamically when the animation starts.
+     *  Any undefined value is determined as follows:

+     *

+     *
If it is the first keyframe, it is calculated from the next keyframe
+     *      if that keyframe has both a value and valueBy property set,
+     *      as the difference of those values. Otherwise it gets the
+     *      current value of the property from the target.

+     *
If it is the final keyframe and the animation is running in a transition, it
+     *      uses the value in the destination view state of the transition.

+     *
Otherwise, any keyframe calculates its value by using the previous
+     *      keyframe's value and adding the current keyframe's valueBy
+     *      to it, if valueBy is set.

+     *

+     *
+     *  @see KeyFrame
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var keyframes:Array;

     /**
-     * Returns a copy of this MotionPath object, including copies
-     * of each keyframe
+     *  Returns a copy of this MotionPath object, including copies
+     *  of each keyframe
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function clone():MotionPath
     {
@@ -140,15 +188,15 @@
     }

     /**
-     * @private
+     *  @private
      *
-     * Calculates the timeFraction values for
-     * each KeyFrame in a MotionPath KeyFrame sequence.
-     * To calculate these values, the time on each KeyFrame
-     * is divided by the supplied duration parameter.
-     *
-     * @param duration the duration of the animation that the
-     * keyframes should be scaled against.
+     *  Calculates the timeFraction values for
+     *  each KeyFrame in a MotionPath KeyFrame sequence.
+     *  To calculate these values, the time on each KeyFrame
+     *  is divided by the supplied duration parameter.
+     *
+     *  @param duration the duration of the animation that the
+     *  keyframes should be scaled against.
      */
     mx_internal function scaleKeyframes(duration:Number):void
     {
@@ -167,11 +215,21 @@
     }

     /**
-     * Calculates and returns an interpolated value, given the elapsed
-     * time fraction. The function determines the keyframe interval
-     * that the fraction falls within and then interpolates within
-     * that interval between the values of the bounding keyframes on that
-     * interval.
+     *  Calculates and returns an interpolated value, given the elapsed
+     *  time fraction. The function determines the keyframe interval
+     *  that the fraction falls within and then interpolates within
+     *  that interval between the values of the bounding keyframes on that
+     *  interval.
+     *
+     *  @param fraction The fraction of the overall duration of the effect,
+     *  (a value from 0.0 to 1.0).
+     *
+     *  @return The interpolated value.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function getValue(fraction:Number):Object
     {


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

--- frameworks/projects/airframework/src/mx/events/FileEvent.as
+++ frameworks/projects/airframework/src/mx/events/FileEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  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.
+//  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: 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@1262546 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/framework/src/mx/styles/IStyleClient.as
+++ frameworks/projects/framework/src/mx/styles/IStyleClient.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.styles
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/mx/src/mx/skins/halo/TitleBackground.as
+++ frameworks/projects/mx/src/mx/skins/halo/TitleBackground.as
@@ -20,6 +20,11 @@

 /**
  *  The skin for a title bar area of a Panel.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TitleBackground extends ProgrammaticSkin
 {
@@ -33,6 +38,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function TitleBackground()
 	{