Transferred from the Adobe Open Source Subversion Repository

Revision: 20135
Author:   cframpto@adobe.com
Date:     2011-02-04T17:17:14.255516Z

Log Message:
-----------
Fixup ASdoc for text styles and properties in TextArea/TextInput/SkinnableTextBase which are common to spark and mobile text but have different descriptions/values.  We are restricted to how we can format the doc since there can only be one @copy and it must be last.  In addition, we do not want the summary line to be "Not supported for the mobile theme".  Stephen Gilson and I worked out a template which uses @see rather than @copy since there can be multiple @see tags.  Look at SkinnableTextBase.editable for an example when mobile supports the property and SkinnableTextBase.typicalText for an example when mobile does not support the property.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
@@ -10,10 +10,15 @@
 ////////////////////////////////////////////////////////////////////////////////

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#blockProgression
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Specifies a vertical or horizontal progression of line placement.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.blockProgression

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#blockProgression
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -22,9 +27,15 @@
 [Style(name="blockProgression", type="String", enumeration="tb,rl", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#breakOpportunity
- *
- *
This style is not supported in the mobile theme.

+ *  Controls where lines are allowed to break when breaking wrapping text into multiple
+ *  lines.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.breakOpportunity

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#breakOpportunity
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -34,10 +45,15 @@
 [Style(name="breakOpportunity", type="String", enumeration="auto,all,any,none", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#clearFloats
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Controls how text wraps around a float.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.clearFloats

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#clearFloats
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -46,10 +62,15 @@
 [Style(name="clearFloats", type="String", enumeration="start,end,left,right,both,none", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#firstBaselineOffset
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Specifies the baseline position of the first line in the container.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.firstBaselineOffset

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#firstBaselineOffset
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -58,10 +79,16 @@
 [Style(name="firstBaselineOffset", type="Object", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#leadingModel
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Specifies the leading model, which is a combination of leading basis and leading
+ *  direction.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.leadingModel

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#leadingModel
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -70,10 +97,16 @@
 [Style(name="leadingModel", type="String", enumeration="auto,romanUp,ideographicTopUp,ideographicCenterUp,ideographicTopDown,ideographicCenterDown,ascentDescentUp,box", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#listAutoPadding
- *
- *
This style is not supported in the mobile theme.

- *
+ *  This specifies an auto indent for the start edge of lists when the padding value of
+ *  the list on that side is auto.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.listAutoPadding

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#listAutoPadding
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -82,10 +115,15 @@
 [Style(name="listAutoPadding", type="Number", format="length", inherit="yes", minValue="-1000", maxValue="1000")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#listStylePosition
- *
- *
This style is not supported in the mobile theme.

- *
+ *  This controls the placement of a list item marker relative to the list item.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.listStylePosition

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#listStylePosition
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 2.5
@@ -94,10 +132,15 @@
 [Style(name="listStylePosition", type="String", enumeration="inside,outside", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#listStyleType
- *
- *
This style is not supported in the mobile theme.

- *
+ *  This controls the appearance of items in a list.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.listStyleType

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#listStyleType
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 2.5
@@ -106,10 +149,15 @@
 [Style(name="listStyleType", type="String", enumeration="upperAlpha,lowerAlpha,upperRoman,lowerRoman,none,disc,circle,square,box,check,diamond,hyphen,arabicIndic,bengali,decimal,decimalLeadingZero,devanagari,gujarati,gurmukhi,kannada,persian,thai,urdu,cjkEarthlyBranch,cjkHeavenlyStem,hangul,hangulConstant,hiragana,hiraganaIroha,katakana,katakanaIroha,lowerGreek,lowerLatin,upperGreek,upperLatin", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#paragraphEndIndent
- *
- *
This style is not supported in the mobile theme.

- *
+ *  The amount to indent the paragraph's end edge.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphEndIndent

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#paragraphEndIndent
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -118,10 +166,15 @@
 [Style(name="paragraphEndIndent", type="Number", format="length", inherit="yes", minValue="0.0")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#paragraphSpaceAfter
- *
- *
This style is not supported in the mobile theme.

- *
+ *  The amount of space to leave after the paragraph.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceAfter

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#paragraphSpaceAfter
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -130,10 +183,15 @@
 [Style(name="paragraphSpaceAfter", type="Number", format="length", inherit="yes", minValue="0.0")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#paragraphSpaceBefore
- *
- *
This style is not supported in the mobile theme.

- *
+ *  The amount of space to leave before the paragraph.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphSpaceBefore

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#paragraphSpaceBefore
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -142,10 +200,15 @@
 [Style(name="paragraphSpaceBefore", type="Number", format="length", inherit="yes", minValue="0.0")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#paragraphStartIndent
- *
- *
This style is not supported in the mobile theme.

- *
+ *  The amount to indent the paragraph's start edge.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.paragraphStartIndent

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#paragraphStartIndent
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -154,10 +217,15 @@
 [Style(name="paragraphStartIndent", type="Number", format="length", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#tabStops
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Specifies the tab stops associated with the paragraph.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.tabStops

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#tabStops
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -166,14 +234,16 @@
 [Style(name="tabStops", type="String", inherit="yes")]

 /**
- *  Offset of first line of text from the left side of the container, in pixels.
+ *  Offset of first line of text from the left side of the container.
  * .
- *
For the Mobile theme, this property defaults to 0 and cannot be a negative
- *  number.

- *
- *
For the Spark theme:

- *
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#textIndent
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.textIndent

+ *
+ *
For the Mobile theme, see
+ *  spark.components.supportClasses.StyleableTextField Style textIndent

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#textIndent
+ *  @see spark.components.supportClasses.StyleableTextField#style:textIndent
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -183,10 +253,15 @@
 [Style(name="textIndent", type="Number", format="Length", inherit="yes", minValue="0.0")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#textRotation
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Determines the number of degrees to rotate this text.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.textRotation

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#textRotation
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -195,10 +270,15 @@
 [Style(name="textRotation", type="String", enumeration="auto,rotate0,rotate90,rotate180,rotate270", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#whiteSpaceCollapse
- *
- *
This style is not supported in the mobile theme.

- *
+ *  Collapses or preserves whitespace when importing text into a TextFlow.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.whiteSpaceCollapse

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#whiteSpaceCollapse
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -206,12 +286,16 @@
  */
 [Style(name="whiteSpaceCollapse", type="String", enumeration="collapse,preserve", inherit="yes")]

-
-/**
- *  @copy flashx.textLayout.formats.ITextLayoutFormat#wordSpacing
- *
- *
This style is not supported in the mobile theme.

- *
+/**
+ *  Specifies the spacing between words to use during justification.
+ *
+ *
For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.wordSpacing

+ *
+ *
For the Mobile theme, this is not supported.

+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#wordSpacing
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10.5
  *  @playerversion AIR 2.0


Transferred from the Adobe Open Source Subversion Repository

Revision: 4960
Author:   gosmith@adobe.com
Date:     2009-02-14T02:23:27.721068Z

Log Message:
-----------
Decreased the number of Gumbo style buckets.

Combined AdvancedCharacterFormatTextStyles.as, AdvancedParagraphFormatTextStyles.as, and AdvancedContainerFormatTextStyles.as into AdvancedTextLayoutFormatStyles.as.

Combined BasicCharacterFormatTextStyles.as, BasicParagraphFormatTextStyles.as, and BasicContainerFormatTextStyles.as into BasicTextLayoutFormatStyles.as.

The reason for doing this is that TLF combined its CharacterFormat, ParagraphFormat, and ContainerFormat classes into a single TextLayoutFormat.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None; no functional change

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicContainerFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedParagraphFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicParagraphFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedContainerFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
@@ -0,0 +1,75 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#blockProgression
+ */
+[Style(name="blockProgression", type="String", enumeration="rl,tb", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#columnCount
+ */
+[Style(name="columnCount", type="Object", inherit="no")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#columnGap
+ */
+[Style(name="columnGap", type="Number", format="Length", inherit="no")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#columnWidth
+ */
+[Style(name="columnWidth", type="Object", inherit="no")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#firstBaselineOffset
+ */
+[Style(name="firstBaselineOffset", type="Object", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#firstBaselineOffsetBasis
+ */
+[Style(name="firstBaselineOffsetBasis", type="String", enumeration="roman,ascent,descent,ideographicTop,ideographicCenter,ideographicBottom", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#leadingModel
+ */
+[Style(name="leadingModel", type="String", enumeration="auto,romanUp,ideographicCenterDown,ideographicCenterUp,ideographicTopDown,ideographicTopUp", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginBottom
+ */
+[Style(name="marginBottom", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginLeft
+ */
+[Style(name="marginLeft", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginRight
+ */
+[Style(name="marginRight", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#marginTop
+ */
+[Style(name="marginTop", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#textIndent
+ */
+[Style(name="textIndent", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#whiteSpaceCollapse
+ */
+[Style(name="whiteSpaceCollapse", type="String", enumeration="preserve,collapse", inherit="yes")]


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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


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

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

 package spark.automation.delegates.components
 {


Uniformed states to new version library

Uniformed states to new version library

--- source/actionscript/agnostic/src/eu/alebianco/air/extensions/expansion/enum/DownloaderClientState.as
+++ source/actionscript/agnostic/src/eu/alebianco/air/extensions/expansion/enum/DownloaderClientState.as
@@ -20,18 +20,21 @@

 		public static const PAUSED_WIFI_DISABLED_NEED_CELLULAR_PERMISSION:DownloaderClientState = new DownloaderClientState();
 		public static const PAUSED_NEED_CELLULAR_PERMISSION:DownloaderClientState = new DownloaderClientState();
+
+		public static const PAUSED_WIFI_DISABLED:DownloaderClientState = new DownloaderClientState();
+		public static const PAUSED_NEED_WIFI:DownloaderClientState = new DownloaderClientState();
 		public static const PAUSED_ROAMING:DownloaderClientState = new DownloaderClientState();
-
+
 		public static const PAUSED_NETWORK_SETUP_FAILURE:DownloaderClientState = new DownloaderClientState();
 		public static const PAUSED_SDCARD_UNAVAILABLE:DownloaderClientState = new DownloaderClientState();
-
+
 		public static const FAILED_UNLICENSED:DownloaderClientState = new DownloaderClientState();
 		public static const FAILED_FETCHING_URL:DownloaderClientState = new DownloaderClientState();
 		public static const FAILED_SDCARD_FULL:DownloaderClientState = new DownloaderClientState();
 		public static const FAILED_CANCELED:DownloaderClientState = new DownloaderClientState();

 		public static const FAILED:DownloaderClientState = new DownloaderClientState();
-
+
 		// Constant query.

 		public static function getConstants():Vector.<DownloaderClientState>


Transferred from the Adobe Open Source Subversion Repository

Revision: 20267
Author:   smgilson@adobe.com
Date:     2011-02-10T16:21:16.560038Z

Log Message:
-----------
Add note to Application splashscreen properties about using the mobile swc.

Remove @playerversion Flash tags from Mobile content since it is AIR only

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/ContainerDestructionPolicy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/BusyIndicator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewMenu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as
@@ -17,7 +17,6 @@
  *  of the defaultButtonAppearance style of ActionBar.
  *
  *  @langversion 3.0
- *  @playerversion Flash 10
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
@@ -34,7 +33,6 @@
      *  navigation and action content groups.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -45,7 +43,6 @@
      *  navigation and action content groups.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */


Transferred from the Adobe Open Source Subversion Repository

Revision: 19931
Author:   jasonsj@adobe.com
Date:     2011-01-25T19:19:28.281950Z

Log Message:
-----------
Part 1 Mobile Theme P-ARB

MobileSkin removes beginChromeColorFill and drawChromeColor. updateDisplayList instead calls layoutContents and drawBackground. Skins implement chromeColor logic in drawBackground.

ActionBar adds defaultButtonAppearance style with values normal|beveled. Use beveled for iOS-styled buttons.

Refactored concrete skins to spark.skins.mobile. All other base/support classes are moved to spark.skins.mobile.supportClasses.

ButtonSkinBase adds useCenterAlignment for ascent and icon centering. Buttons that use iconPlacement top/bottom should disable useCenterAlignment for proper constraining of icons and labels to top and bottom constraints.

CheckBox and RadioButton now left align.

QE notes: Custom skins based on MobileSkin will need to be updated.
Height of Buttons using iconPlacement top/bottom will be shorter.
Height of Buttons with icons greater than the minHeight per DPI at 240 will be 1px taller.
Doc notes: API changes in spark.skins.mobile.MobileSkin and sub-classes
Bugs:
SDK-29167 Adding padding styles to ActionBar for easier platform-specific styling
SDK-29093 CheckBox and RadioButton should always left align
SDK-29187 Incorrect label alignment in mobile Button skin with iconPlacement="top"
SDK-29193 Button label should be ascent centered when using iconPlacement top and bottom when no icon is present
SDK-29167 Adding padding styles to ActionBar for easier platform-specific styling
Reviewer: mcho, gruehle, rfrishbe
Tests run: checkintests, mobile cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/MobileComponentsClasses.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBarDefaultButtonAppearance.as
@@ -0,0 +1,54 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2010 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package spark.components
+{
+
+/**
+ *  The ActionBarDefaultButtonAppearance class defines the constants for the allowed values
+ *  of the defaultButtonAppearance style of ActionBar.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 2.5
+ *  @productversion Flex 4.5
+ */
+public final class ActionBarDefaultButtonAppearance
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Specifies transparent button skins be used for Buttons in
+     *  navigation and action content groups.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const NORMAL:String = "normal";
+
+    /**
+     *  Specifies beveled and opaque button skins be used for Buttons in
+     *  navigation and action content groups.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
+    public static const BEVELED:String = "beveled";
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 23090
Author:   chiedozi@adobe.com
Date:     2011-10-21T22:42:16.774357Z

Log Message:
-----------
backKeyUpHandler is now public on ViewNavigatorBase

QE notes:
Doc notes:
Bugs: SDK-31895
Reviewer: Glenn
Tests run:
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -418,20 +418,14 @@
     //--------------------------------------------------------------------------

     /**
-     *  @private
+     *  This method executes the default back key behavior for a ViewNavigator.
      *
      *  @langversion 3.0
-     *  @playerversion AIR 2.5
-     *  @productversion Flex 4.5
-     */
-    override protected function getCurrentSkinState():String
-    {
-        var finalState:String = FlexGlobals.topLevelApplication.aspectRatio;
-
-        if (_overlayControls)
-            finalState += "AndOverlay";
-
-        return finalState;
+     *  @playerversion AIR 3.1
+     *  @productversion Flex 4.6
+     */
+    public function backKeyUpHandler():void
+    {
     }

     /**
@@ -521,15 +515,20 @@
     //--------------------------------------------------------------------------

     /**
-     *  If the navigator is the main navigator of the ViewNavigatorApplication or
-     *  class, this method is called when the back device key is pressed.
+     *  @private
      *
      *  @langversion 3.0
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    mx_internal function backKeyUpHandler():void
-    {
+    override protected function getCurrentSkinState():String
+    {
+        var finalState:String = FlexGlobals.topLevelApplication.aspectRatio;
+
+        if (_overlayControls)
+            finalState += "AndOverlay";
+
+        return finalState;
     }

     /**


Wait for both the SWF and the XFL before succeeding.

--- exporter/src/main/as/flump/export/XflLoader.as
+++ exporter/src/main/as/flump/export/XflLoader.as
@@ -30,23 +30,32 @@
         _library = new XflLibrary(name);
         listLibrary(file);

+        const swfExecutor :Executor = new Executor();
+        const future :VisibleFuture = new VisibleFuture();
+
         // TODO - construct the swf path for realz
-        const swfFile :Future = Files.load(new File(file.nativePath + ".swf"), _loader);
+        const swfFile :Future = Files.load(new File(file.nativePath + ".swf"), swfExecutor);
         swfFile.succeeded.add(function (file :File) :void {
             _library.md5 = MD5.hashBytes(file.data);

-            const loadSwf :Future = new SwfLoader().loadFromBytes(file.data, _loader);
+            const loadSwf :Future = new SwfLoader().loadFromBytes(file.data, swfExecutor);
             loadSwf.succeeded.add(function (swf :LoadedSwf) :void { _library.swf = swf; });
             loadSwf.failed.add(function (error :Object) :void {
                 _library.addError(ParseError.CRIT, "Unable to load swf " + file.nativePath, error);
             });
+
+            swfExecutor.shutdown();
         });

-        const future :VisibleFuture = new VisibleFuture();
-        _loader.terminated.add(function (..._) :void {
-            _library.finishLoading();
-            future.succeed(_library);
-        });
+        const maybeSucceed :Function = function (..._) :void {
+            if (swfExecutor.isShutdown && _loader.isShutdown) {
+                _library.finishLoading();
+                future.succeed(_library);
+            }
+        };
+        _loader.terminated.add(maybeSucceed);
+        swfExecutor.terminated.add(maybeSucceed);
+
         return future;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4307
Author:   dloverin@adobe.com
Date:     2008-12-15T19:58:22.615045Z

Log Message:
-----------
Change use of Application.application to ApplicationGlobals.application.

QE Notes: None
Doc Notes: None
Bugs: N/A
Reviewer: Alex
tests: checkintests

Modified Paths:
--------------
<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/framework/src/mx/controls/Menu.as</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/controls/SWFLoader.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/haloclassic/src/haloclassic/ActivatorSkin.as</path>

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

--- frameworks/projects/mx/src/mx/controls/Menu.as
+++ frameworks/projects/mx/src/mx/controls/Menu.as
@@ -37,7 +37,7 @@
 import mx.controls.menuClasses.MenuItemRenderer;
 import mx.controls.menuClasses.MenuListData;
 import mx.controls.treeClasses.DefaultDataDescriptor;
-import mx.core.Application;
+import mx.core.ApplicationGlobals;
 import mx.core.ClassFactory;
 import mx.core.EdgeMetrics;
 import mx.core.EventPriority;
@@ -458,7 +458,7 @@
     {
         var menu:Menu = new Menu();
         menu.tabEnabled = false;
-        menu.owner = DisplayObjectContainer(Application.application);
+        menu.owner = DisplayObjectContainer(ApplicationGlobals.application);
         menu.showRoot = showRoot;
         popUpMenu(menu, parent, mdp);
         return menu;
@@ -487,7 +487,7 @@
     {
         menu.parentDisplayObject = parent ?
                                    parent :
-                                   DisplayObject(Application.application);
+                                   DisplayObject(ApplicationGlobals.application);

         if (!mdp)
             mdp = new XML();


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package spark.automation.delegates.components
 {


slight speed improvement for getObject() and getPath()

--- WeaveAPI/src/WeaveAPI.as
+++ WeaveAPI/src/WeaveAPI.as
@@ -255,8 +255,11 @@
 		{
 			if (!_classRegistry)
 				ClassRegistry;
-			var sm:ISessionManager = _classRegistry.singletonInstances[ISessionManager] || _classRegistry.getSingletonInstance(ISessionManager);
-			return sm.getObject(globalHashMap, path);
+			var sm:ISessionManager = _classRegistry.singletonInstances[ISessionManager]
+				|| _classRegistry.getSingletonInstance(ISessionManager);
+			var lhm:ILinkableHashMap = _classRegistry.singletonInstances[ILinkableHashMap]
+				|| _classRegistry.getSingletonInstance(ILinkableHashMap);
+			return sm.getObject(lhm, path);
 		}
 		/**
 		 * A shortcut for WeaveAPI.SessionManager.getPath(WeaveAPI.globalHashMap, object).
@@ -266,8 +269,11 @@
 		{
 			if (!_classRegistry)
 				ClassRegistry;
-			var sm:ISessionManager = _classRegistry.singletonInstances[ISessionManager] || _classRegistry.getSingletonInstance(ISessionManager);
-			return sm.getPath(globalHashMap, object);
+			var sm:ISessionManager = _classRegistry.singletonInstances[ISessionManager]
+				|| _classRegistry.getSingletonInstance(ISessionManager);
+			var lhm:ILinkableHashMap = _classRegistry.singletonInstances[ILinkableHashMap]
+				|| _classRegistry.getSingletonInstance(ILinkableHashMap);
+			return sm.getPath(lhm, object);
 		}
 		/**************************************/


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

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

 package mx.automation.codec
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9779
Author:   chaase@adobe.com
Date:     2009-08-29T01:17:24.968838Z

Log Message:
-----------
Fixed bug with transform effects acting on optimized FXG objects. We did not have some of the required functionality on SpriteVisualElement that would allow objects of that type (optimized FXG objects) to be animated by the flex 4 transform effects. We have added that functionality and pushed that common property (postLayoutTransformOffsets) and function (transformAround()) into interfaces implemented by  the objects that can be so transformed.
Also fixed some unrelated bugs lurking in the transformAround() and AnimateTransform code.

QE notes: None
Doc notes: None
Bugs: sdk-22576
Reviewer: Ely
Tests run: checkintests, Mustella (tests/spark/effects/AnimateTransform, Move, Rotate, Rotate3D)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as
@@ -581,7 +581,6 @@
         // translation property as a structure instead of separate values
         switch(property)
         {
-
             case "translationX":
             case "translationY":
             case "translationZ":
@@ -638,7 +637,7 @@
                 return (target.postLayoutTransformOffsets == null)?
                     1 :
                     target.postLayoutTransformOffsets.scaleZ;
-             default:
+            default:
                 return super.getCurrentValue(property);
         }
     }


fix asdoc

fix asdoc

--- source/com/kemsky/Stream.as
+++ source/com/kemsky/Stream.as
@@ -1185,7 +1185,7 @@
         }

         /**
-         * Creates a new Vector.<Object> from items of current stream
+         * Creates a new Vector.<Object< from items of current stream
          * @example
          * <pre>
          *     var s:Stream = $(1, 2, 3);


FLEX-34119 Running the over 10,000 parameterized tests in the ant test runner takes over an hour! (On my computer it only takes a bit above three minutes.) I'm ignoring this for now.

--- frameworks/projects/advancedgrids/tests/mx/collections/HierarchicalCollectionViewCursor_FLEX_34119_Tests.as
+++ frameworks/projects/advancedgrids/tests/mx/collections/HierarchicalCollectionViewCursor_FLEX_34119_Tests.as
@@ -136,7 +136,8 @@
 			assertEquals(secondCompany, _sut.current);
 			assertTrue(_noErrorsThrown);
 		}
-
+
+        [Ignore]
        	[Test(dataProvider="positionAndOperation")]
         public function testReproduce_FLEX_34119_Comprehensive(selectedItemIndex:int, operationIndex:int, operation:int):void
         {


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

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

 package spark.automation.delegates.components
 {


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

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

 package spark.automation.delegates
 {


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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 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: 14483
Author:   smgilson@adobe.com
Date:     2010-03-01T19:01:18.459430Z

Log Message:
-----------
merge 14456: Adding ASDoc version tags classes

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPanelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkNavigatorContentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTrackBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/events/EventDetails.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableContainerBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkMuteButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSpinnerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkLabelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkBorderContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableComponentAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as
@@ -11,65 +11,75 @@

 package spark.automation.delegates.components
 {
-	import flash.display.DisplayObject;
-
-	import mx.automation.Automation;
-	import mx.core.mx_internal;
-
-	import spark.components.TileGroup;
-
-	use namespace mx_internal;
-
-	[Mixin]
-
-	/**
-	 *
-	 *  Defines methods and properties required to perform instrumentation for the
-	 *  TileGroup control.
-	 *
-	 *  @see spark.components.TileGroup
-	 *
-	 */
-	public class SparkTileGroupAutomationImpl extends SparkGroupAutomationImpl
-	{
-		include "../../../core/Version.as";
-
-		//--------------------------------------------------------------------------
-		//
-		//  Class methods
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  Registers the delegate class for a component class with automation manager.
-		 *
-		 *  @param root The SystemManger of the application.
-		 */
-		public static function init(root:DisplayObject):void
-		{
-			Automation.registerDelegateClass(spark.components.TileGroup, SparkGroupAutomationImpl);
-		}
-
-		//--------------------------------------------------------------------------
-		//
-		//  Constructor
-		//
-		//--------------------------------------------------------------------------
-
-		/**
-		 *  Constructor.
-		 * @param obj ButtonBar object to be automated.
-		 *
-		 *  @langversion 3.0
-		 *  @playerversion Flash 9
-		 *  @playerversion AIR 1.1
-		 *  @productversion Flex 4
-		 */
-		public function SparkTileGroupAutomationImpl(obj:spark.components.TileGroup)
-		{
-			super(obj);
-		}
-
-
-	}
+    import flash.display.DisplayObject;
+
+    import mx.automation.Automation;
+    import mx.core.mx_internal;
+
+    import spark.components.TileGroup;
+
+    use namespace mx_internal;
+
+    [Mixin]
+
+    /**
+     *
+     *  Defines methods and properties required to perform instrumentation for the
+     *  TileGroup control.
+     *
+     *  @see spark.components.TileGroup
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     *
+     */
+    public class SparkTileGroupAutomationImpl extends SparkGroupAutomationImpl
+    {
+        include "../../../core/Version.as";
+
+        //--------------------------------------------------------------------------
+        //
+        //  Class methods
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Registers the delegate class for a component class with automation manager.
+         *
+         *  @param root The SystemManger of the application.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public static function init(root:DisplayObject):void
+        {
+            Automation.registerDelegateClass(spark.components.TileGroup, SparkGroupAutomationImpl);
+        }
+
+        //--------------------------------------------------------------------------
+        //
+        //  Constructor
+        //
+        //--------------------------------------------------------------------------
+
+        /**
+         *  Constructor.
+         * @param obj ButtonBar object to be automated.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function SparkTileGroupAutomationImpl(obj:spark.components.TileGroup)
+        {
+            super(obj);
+        }
+
+
+    }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17246
Author:   ealimam@adobe.com
Date:     2010-08-10T00:21:27.836950Z

Log Message:
-----------
(CheckBox Skin) Updating FXG per Scott's new designs for Beta. Also added some code to ToggleButtonSkinBase to force pixel boundry alignment of strokes along with some other housekeeping changes in MobileThemeClasses.

Reviewed by: Scott Amaya, Jason Szeto

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/Checkbox_bg_normal.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/Checkbox_bg_selected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleButtonSkinBase.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/SelectableButtonSkinBase.as
@@ -109,7 +109,9 @@
         graphics.drawRect(0,0,unscaledWidth, unscaledHeight);
         graphics.endFill();

-
+		// Force strokes to be aligned on the pixel boundries.
+		iconDisplay.x += .5;
+		iconDisplay.y += .5;
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 9385
Author:   cframpto@adobe.com
Date:     2009-08-19T15:54:55.821661Z

Log Message:
-----------
SkinnableTextBase.as - remove code to redispatch UPDATE_COMPLETE event from RET.  For each property setter, even though they are just proxies to RET, call invalidateProperties() to generate UPDATE_COMPLETE events and add handler for the TextOperationEvent.CHANGE and call invalidateDisplayList() to generate UPDATE_COMPLETE events for RET size and display list changes.  SDK-22705

TextArea.as - remove code to set scroller horizontalScrollPosition to off if "toFit".  Need to do it "virtually" rather than actually change the scroller property.  SDK-22680

RichEditableText.as
Changes to rememasureText() and measure() since not all combinations of constrainted width/height worked correctly, particularly if auto sizing.  SDK-22727
Changes to textContainerManager_compositionCompleteHandler() to try to keep "contentWidth" seen by scroller constant if lineBreak="toFit" so the scroller doesn't think it needs to add a horizontal scroll bar.  If the text is "toFit" there should never be a hsb.  SDK-22680
Change to updateDisplayList() to scroll after updating the container if it was delayed when EditManager.updateAllContainers() last ran. SDK-22705
Removed default params from scrollToRange() since they don't make sense.  SDK-22696.
Some cleanup based on TLF cleanup.

RichEditableTextContainerManager.as - in drawBackgroundAndSetScrollRect(), if auto sizing, should use the display list width and height for the scroll rect and background for the text rather than the content width and height.   SDK-22727 and SDK-22678 ended up fixed too.

RichEditableTextEditManager.as - flag to know if scroll is needed after updating the container in updateDisplayList.  SDK-22696

QE notes: be sure to make automated tests for SDK-22727, SDK-22705, SDK-22678 please
Doc notes:
Bugs: SDK-22727, SDK-22626, SDK-22680, SDK-22705, SDK-22696, SDK-22678
Reviewer: Gordon
Tests run: basictests, checkintests, TextArea, TextInput, NumericSteeper
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -97,20 +97,23 @@
     override public function drawBackgroundAndSetScrollRect(
                                     scrollX:Number, scrollY:Number):Boolean
     {
-        var width:Number = compositionWidth;
-        var height:Number = compositionHeight;
+        // If not auto-sizing these are the same as the compositionWidth/Height.
+        // If auto-sizing, the compositionWidth/Height may be NaN.  If no
+        // constraints this will reflect the actual size of the text.
+        var width:Number = textDisplay.width;
+        var height:Number = textDisplay.height;

         if (!textDisplay.autoSize && (isNaN(width) || isNaN(height)))
             return false;  // just measuring!

         var contentBounds:Rectangle = getContentBounds();

-        // If autoSize, there should never be a scroll rect.
-        if (textDisplay.autoSize ||
-           (scrollX == 0 &&
-            scrollY == 0 &&
+        // If autoSize, and lineBreak="toFit there should never be
+        // a scroll rect but if lineBreak="explicit" the text may need
+        // to be clipped.
+        if (scrollX == 0 && scrollY == 0 &&
             contentBounds.width <= width &&
-            contentBounds.height <= height))
+            contentBounds.height <= height)
         {
             // skip the scrollRect
             if (hasScrollRect)
@@ -148,10 +151,7 @@
         g.clear();
         g.lineStyle();
         g.beginFill(color, alpha);
-        if (textDisplay.autoSize)
-            g.drawRect(scrollX, scrollY, contentBounds.width, contentBounds.height);
-        else
-            g.drawRect(scrollX, scrollY, width, height);
+        g.drawRect(scrollX, scrollY, width, height);
         g.endFill();

         return hasScrollRect;


fix IndexStram.invalidate() to set _hasChanged = true when locked

--- src/aerys/minko/render/geometry/stream/IndexStream.as
+++ src/aerys/minko/render/geometry/stream/IndexStream.as
@@ -17,6 +17,9 @@
 		private var _resource	: IndexBuffer3DResource	= null;
 		private var _length		: uint					= 0;

+		private var _hasChanged	: Boolean				= false;
+		private var _locked		: Boolean				= false;
+
 		private var _changed	: Signal				= new Signal('IndexStream.changed');

 		public function get usage() : uint
@@ -57,7 +60,11 @@
 		minko_stream function invalidate() : void
 		{
 			_length = _data.length;
-			_changed.execute(this);
+
+			if (_locked)
+				_hasChanged = true;
+			else
+				_changed.execute(this);
 		}

 		private function initialize(indices : Vector.<uint>,
@@ -201,12 +208,30 @@
 			_resource.dispose();
 		}

+		public function lock() : Vector.<uint>
+		{
+			checkReadUsage(this);
+			checkWriteUsage(this);
+
+			_hasChanged = false;
+			_locked = true;
+
+			return _data;
+		}
+
+		public function unlock(hasChanged : Boolean = true) : void
+		{
+			if (_hasChanged && hasChanged)
+				_changed.execute(this);
+
+			_hasChanged = false;
+		}
+
 		private static function checkReadUsage(stream : IndexStream) : void
 		{
 			if (!(stream._usage & StreamUsage.READ))
 				throw new Error(
-					'Unable to read from vertex stream: stream usage '
-					+ 'is not set to StreamUsage.READ.'
+					'Unable to read from vertex stream: stream usage is not set to StreamUsage.READ.'
 				);
 		}

@@ -214,12 +239,12 @@
 		{
 			if (!(stream._usage & StreamUsage.WRITE))
 				throw new Error(
-					'Unable to write in vertex stream: stream usage '
-					+ 'is not set to StreamUsage.WRITE.'
+					'Unable to write in vertex stream: stream usage is not set to StreamUsage.WRITE.'
 				);
 		}

-		public static function dummyData(size : uint, offset : uint = 0) : Vector.<uint>
+		public static function dummyData(size 	: uint,
+										 offset : uint = 0) : Vector.<uint>
 		{
 			var indices : Vector.<uint> = new Vector.<uint>(size);


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

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

 package spark.automation.delegates.components
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 14124
Author:   cframpto@adobe.com
Date:     2010-02-11T17:53:35.882363Z

Log Message:
-----------
Merge 14123 from 4.x branch to trunk.

Log Message:
***********
Two additions/corrections to 14076.  Add key mappings for layoutDirection="rtl" for spark list components.  Correct type of keyCode variable so it is an uint rather than an int to match event.keyCode.

BitmapImage has a hard-coded layout direction="ltr".

QE notes: For layoutDirection="rtl" need to test LEFT, RIGHT, UP and DOWN keys.
Doc notes: None
Bugs: SDK-25330
Reviewed By: Hans
Tests run: checkintests
Is noteworthy for integration: No

Ticket Links:
***********
    http://bugs.adobe.com/jira/browse/SDK-25330

Modified Paths:
**************
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ButtonBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/CalendarLayout.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/ColorPicker.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Menu.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/MenuBar.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Tree.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/Container.as
    flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/UIComponent.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/List.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/RadioButton.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
    flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/primitives/BitmapImage.as

Property Changed:
****************
    flex/sdk/branches/4.x/frameworks/

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.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/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.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/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.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/sliderClasses/SliderThumb.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/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>

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

--- frameworks/projects/mx/src/mx/controls/ButtonBar.as
+++ frameworks/projects/mx/src/mx/controls/ButtonBar.as
@@ -1064,9 +1064,9 @@
         if (event.eventPhase != EventPhase.AT_TARGET)
             return;

-        // If rtl layout, need to swap LEFT/UP for RIGHT/DOWN so correct action
+        // If rtl layout, need to swap LEFT and RIGHT so correct action
         // is done.
-        var keyCode:int = mapKeycodeForLayoutDirection(event, true);
+        var keyCode:uint = mapKeycodeForLayoutDirection(event, true);

         switch (keyCode)
         {


ButtonList adjusts ButtonManager.moused

ButtonList adjusts ButtonManager.moused

--- src/UI/ButtonList.as
+++ src/UI/ButtonList.as
@@ -107,13 +107,16 @@

 			if (FlxG.mouse.justPressed() && updatedOnce &&
 				(justDie ||
-				(closesOnClickOutside && !bg.overlapsPoint(FlxG.mouse))))
+				(closesOnClickOutside && bg.overlapsPoint(FlxG.mouse, true))))
 				exists = false;
 			else if (ControlSet.CANCEL_KEY.justPressed() && updatedOnce)
 				exists = false;
 			if (!exists && onDeath != null)
 				onDeath();
 			updatedOnce = true;
+
+			if (exists && U.buttonManager && !U.buttonManager.moused && bg.overlapsPoint(FlxG.mouse, true))
+				U.buttonManager.moused = true;
 		}

 		protected const BG_BORDER:int = 5;


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

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

 package mx.controls.advancedDataGridClasses
 {


Added a clock to the Latch

Added a clock to the Latch

--- src/Modules/Latch.as
+++ src/Modules/Latch.as
@@ -6,11 +6,14 @@
 	import flash.geom.Point;
 	import UI.HighlightFormat;
 	import UI.ColorText;
+	import Displays.DClockModule;
+	import Displays.DModule;
+
 	/**
 	 * ...
 	 * @author Nicholas "PleasingFungus" Feinberg
 	 */
-	public class Latch extends Module {
+	public class Latch extends Module implements Clockable {

 		public var values:Vector.<Value>;
 		public var width:int;
@@ -56,22 +59,39 @@
 		}

 		override protected function generateLayout():ModuleLayout {
-			var layout:ModuleLayout = new DefaultLayout(this, 2, 3);
-			for (var i:int = 0; i < layout.ports.length; i++)
-				layout.ports[i].offset.y -= 1;
+			var layout:ModuleLayout = new DefaultLayout(this, 2, 5);
 			return layout;
 		}

 		override protected function generateInternalLayout():InternalLayout {
 			var nodes:Array = [];
+			var tuples:Array = [];
 			for (var i:int = 0; i < width; i++) {
 				var outPort:PortLayout = layout.ports[i + width];
-				var dataNode:InternalNode = new StandardNode(this, new Point(outPort.offset.x - 2, outPort.offset.y), [layout.ports[i], outPort], [],
-													 outputs[i].getValue /*?*/, width > 1 ? "Stored value " + i : "Stored value", true);
+				var dataNode:InternalNode = new StandardNode(this, new Point(outPort.offset.x - (U.state && U.state.level.delay ? 2 : 3), outPort.offset.y),
+															 [layout.ports[i], outPort], [], outputs[i].getValue /*?*/, width > 1 ? "Stored value " + i : "Stored value", true);
 				//dataNode.type = NodeType.STORAGE;
 				nodes.push(dataNode);
+				tuples.push(new NodeTuple(layout.ports[i], dataNode, writeOK));
 			}
+
+			var valueText:String = width == 1 ? "value" : "values";
+			var controlText:String = "Stored " +valueText + " will be set to input " + valueText +" in";
+			var controlNode:StandardNode = new StandardNode(this, new Point(layout.ports[0].offset.x + 2, layout.ports[0].offset.y - 2), [],
+															tuples, function ticksUntilWrite():IntegerValue {
+																return new IntegerValue(U.state.time.clockPeriod - (U.state.time.moment % U.state.time.clockPeriod));
+															}, controlText);
+			//controlNode.type = NodeType.TOGGLE;
+			nodes.push(controlNode);
 			return new InternalLayout(nodes);
+		}
+
+		public function getClockNode():InternalNode {
+			return internalLayout.nodes[internalLayout.nodes.length - 1];
+		}
+
+		override public function generateDisplay():DModule {
+			return new DClockModule(this, this);
 		}

 		override public function renderDetails():String {
@@ -106,7 +126,7 @@
 		}

 		protected function statefulUpdate():Boolean {
-			if ((U.state.time.moment % U.state.time.clockPeriod) != U.state.time.clockPeriod - 1)
+			if (!writeOK())
 				return false;

 			var changed:Boolean = false;
@@ -122,12 +142,20 @@
 			return changed;
 		}

+		private function writeOK():Boolean {
+			return (U.state.time.moment % U.state.time.clockPeriod) == U.state.time.clockPeriod - 1;
+		}
+
 		override public function revertTo(oldValue:Value):void {
 			var indexedOldValue:IndexedValue = oldValue as IndexedValue;
 			values[indexedOldValue.index] = indexedOldValue.subValue;
 			lastMomentStored = -1;
 		}

+		public function getClockFraction():Number {
+			return 1.0 / U.state.time.clockPeriod;
+		}
+
 		[Embed(source = "../../lib/art/modules/symbol_box_unlocked_24.png")] private const _symbol:Class;
 	}


rm unneeded. and corrected coding conv

rm unneeded. and corrected coding conv

--- src/org/hola/ZErr.as
+++ src/org/hola/ZErr.as
@@ -3,13 +3,9 @@
     import flash.external.ExternalInterface;
     public class ZErr
     {
-        public function ZErr()
-        {
-            super();
-        }
         public static function log(msg:String, ...rest:Array):void{
             if (!ExternalInterface.available)
-                    return;
+                return;
             ExternalInterface.call.apply(ExternalInterface,
                 ['console.log', msg].concat(rest))
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12825
Author:   jon.avila@ssbbartgroup.com
Date:     2009-12-11T03:01:33.624758Z

Log Message:
-----------
Removed the WindowAccImpl.  It is likely not needed.  In its current state it would prevent child components accessibility from being exposed.  Accessible name will likely be display from title attribute of Window.
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 8520
Author:   jszeto@adobe.com
Date:     2009-07-10T23:53:09.928669Z

Log Message:
-----------
BitmapFill and BitmapImage bug fixes

http://bugs.adobe.com/jira/browse/SDK-17477 - only edge pixels expand when resize this bitmapGraphic

If repeat mode is false, the Player will extend the edge pixels of the bitmap to fill the empty space. The fix is to limit the fill area to the size of the bitmap.

http://bugs.adobe.com/jira/browse/SDK-21980 - BitmapFill repeat property behaves differently than BitmapImage

If repeat mode is false, the Player will extend the edge pixels of the bitmap to fill the empty space. The fix is to draw the transformed bitmapData into a new bitmapData that is two pixels wider and taller than the source bitmap if repeat is false. There is a caching mechanism that keeps the new bitmapData around unless the source, one of the transform properties or the bounds size have changed.

There is an additional optimization which only uses the extra bitmapData if it is larger than the bounds or if it has been transformed.

Unfortunately this means that the BitmapFill will keep around an extra bitmapData object in certain circumstances. This situation will most frequently happen when the bitmap is smaller than the shape being filled and repeat is set to false.

QE Notes: Add tests where the BitmapFill shape or BitmapImage size is larger than the bitmap itself and repeat = false
Doc Notes: None
Bugs: SDK-17477, SDK-21980
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>

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

--- frameworks/projects/framework/src/mx/graphics/BitmapFill.as
+++ frameworks/projects/framework/src/mx/graphics/BitmapFill.as
@@ -18,11 +18,13 @@
 import flash.display.Graphics;
 import flash.events.EventDispatcher;
 import flash.geom.Matrix;
+import flash.geom.Point;
 import flash.geom.Rectangle;
 import flash.utils.getDefinitionByName;

 import mx.events.PropertyChangeEvent;
 import mx.geom.CompoundTransform;
+import mx.utils.MatrixUtil;

 /**
@@ -70,7 +72,10 @@

 	private static const RADIANS_PER_DEGREES:Number = Math.PI / 180;
 	private static var transformMatrix:Matrix = new Matrix();
-
+    private var nonRepeatSource:BitmapData;
+    private var regenerateNonRepeatSource:Boolean = true;
+    private var lastBoundsWidth:Number = 0;
+    private var lastBoundsHeight:Number = 0;

 	//--------------------------------------------------------------------------
 	//
@@ -298,7 +303,7 @@
 		var oldValue:Boolean = _repeat;
 		if (value != oldValue)
 		{
-			_repeat = value;
+			_repeat = value;
 			dispatchFillChangedEvent("repeat", oldValue, value);
 		}
 	}
@@ -474,8 +479,8 @@
 			var tmpSprite:DisplayObject;
 			var oldValue:Object = _source;

-			var bitmapData:BitmapData;
-
+			var bitmapData:BitmapData;
+
 			if (value is Class)
 			{
 				var cls:Class = Class(value);
@@ -723,8 +728,11 @@
 	public function begin(target:Graphics, bounds:Rectangle):void
 	{
 		if (!source)
-			return;
-
+			return;
+
+        var bd:BitmapData;
+        var sourceAsBitmapData:BitmapData = source as BitmapData;
+
         if (compoundTransform)
         {
             transformMatrix = compoundTransform.matrix;
@@ -738,7 +746,75 @@
             transformMatrix.rotate(rotation * RADIANS_PER_DEGREES);
             transformMatrix.translate(x + bounds.left + transformX, y + bounds.top + transformY);
         }
-		target.beginBitmapFill(source as BitmapData, transformMatrix, repeat, smooth);
+
+        // If repeat is true or if the source bitmap size equals or exceeds the bounds,
+        // just use the source bitmap
+        if (repeat ||
+            (MatrixUtil.isDeltaIdentity(transformMatrix) &&
+             transformMatrix.tx == bounds.left &&
+             transformMatrix.ty == bounds.top &&
+             bounds.width <= sourceAsBitmapData.width &&
+             bounds.height <= sourceAsBitmapData.height))
+        {
+            if (nonRepeatSource)
+                nonRepeatSource.dispose();
+
+            bd = sourceAsBitmapData;
+        }
+        else
+        {
+            // Regenerate the nonRepeatSource if it wasn't previously created or if the bounds
+            // dimensions have changed.
+            if (regenerateNonRepeatSource ||
+                lastBoundsWidth != bounds.width ||
+                lastBoundsHeight != bounds.height)
+            {
+                // Release the old bitmap data
+                if (nonRepeatSource)
+                    nonRepeatSource.dispose();
+
+                var bitmapTopLeft:Point = new Point();
+                // We want the top left corner of the bitmap to be at (0,0) when we copy it.
+                // Save the translation and reapply it after the we have copied the bitmap
+                var tx:Number = transformMatrix.tx;
+                var ty:Number = transformMatrix.ty;
+
+                transformMatrix.tx = 0;
+                transformMatrix.ty = 0;
+
+                // Get the bounds of the transformed bitmap (minus translation)
+                var bitmapSize:Point = MatrixUtil.transformBounds(
+                                        new Point(sourceAsBitmapData.width, sourceAsBitmapData.height),
+                                        transformMatrix,
+                                        bitmapTopLeft);
+
+                // Get the size of the bitmap using the bounds
+                // Pad the new bitmap size so that the borders are empty
+                var newW:Number = Math.ceil(bitmapSize.x) + 2;
+                var newY:Number = Math.ceil(bitmapSize.y) + 2;
+
+                // Translate a rotated bitmap to ensure that the top left post-transformed corner is at (1,1)
+                transformMatrix.translate(1 - bitmapTopLeft.x, 1 - bitmapTopLeft.y);
+
+                // Draw the transformed bitmapData into a new bitmapData that is the size of the bounds
+                // This will prevent the edge pixels getting repeated to fill the empty space
+                nonRepeatSource = new BitmapData(newW, newY);
+                nonRepeatSource.draw(sourceAsBitmapData, transformMatrix);
+
+                // The transform matrix has already been applied to the source, so just use identity
+                // for the beginBitmapFill call
+                transformMatrix.identity();
+                // We need to restore both the matrix translation and the rotation translation
+                transformMatrix.translate(tx + bitmapTopLeft.x - 1, ty + bitmapTopLeft.y - 1);
+                // Save off the bounds so we can compare it the next time this function is called
+                lastBoundsWidth = bounds.width;
+                lastBoundsHeight = bounds.height;
+            }
+
+            bd = nonRepeatSource;
+        }
+
+		target.beginBitmapFill(bd, transformMatrix, repeat, smooth);
 	}

 	/**
@@ -757,6 +833,7 @@
 	{
         dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, prop,
 															oldValue, value));
+        regenerateNonRepeatSource = true;
 	}
 }