coding

coding

--- src/org/mangui/hls/HLS.as
+++ src/org/mangui/hls/HLS.as
@@ -90,15 +90,24 @@
             if (!hola_api_inited && ZExternalInterface.avail())
             {
                 hola_api_inited = true;
-                ExternalInterface.addCallback("hola_hls_call", HLS.hola_hls_call);
-                ExternalInterface.addCallback("hola_version", HLS.hola_version);
-                ExternalInterface.addCallback("hola_hls_get_video_url", HLS.hola_hls_get_video_url);
-                ExternalInterface.addCallback("hola_hls_get_position", HLS.hola_hls_get_position);
-                ExternalInterface.addCallback("hola_hls_get_duration", HLS.hola_hls_get_duration);
-                ExternalInterface.addCallback("hola_hls_get_buffer_sec", HLS.hola_hls_get_buffer_sec);
-                ExternalInterface.addCallback("hola_hls_get_state", HLS.hola_hls_get_state);
-                ExternalInterface.addCallback("hola_hls_get_levels", HLS.hola_hls_get_levels);
-                ExternalInterface.addCallback("hola_hls_get_level", HLS.hola_hls_get_level);
+                ExternalInterface.addCallback("hola_hls_call",
+                    HLS.hola_hls_call);
+                ExternalInterface.addCallback("hola_version",
+                    HLS.hola_version);
+                ExternalInterface.addCallback("hola_hls_get_video_url",
+                    HLS.hola_hls_get_video_url);
+                ExternalInterface.addCallback("hola_hls_get_position",
+                    HLS.hola_hls_get_position);
+                ExternalInterface.addCallback("hola_hls_get_duration",
+                    HLS.hola_hls_get_duration);
+                ExternalInterface.addCallback("hola_hls_get_buffer_sec",
+                    HLS.hola_hls_get_buffer_sec);
+                ExternalInterface.addCallback("hola_hls_get_state",
+                    HLS.hola_hls_get_state);
+                ExternalInterface.addCallback("hola_hls_get_levels",
+                    HLS.hola_hls_get_levels);
+                ExternalInterface.addCallback("hola_hls_get_level",
+                    HLS.hola_hls_get_level);
                 FlashFetchBin.init();
             }
             g_curr_id++;


Transferred from the Adobe Open Source Subversion Repository

Revision: 2743
Author:   jimurphy@adobe.com
Date:     2008-08-05T19:28:29.575474Z

Log Message:
-----------
Merged 3.0.x revisions [2649,2652,2670,2694,2699-2700,2713,2721-2723,2729,2731-2732] -> trunk

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManagerBridge.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLibrary.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nUtils.java</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/modules/compiler/src/java/flex2/tools_en.properties</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/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager2.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.0.x/modules/compiler/src/java/flex2/tools/SwcChecksums.java" copyfrom-rev="2732" action="A">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/SwcChecksums.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.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/rpc/src/mx/rpc/xml/XMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ShowAlertRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemChildrenList.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/modules/compiler/src/java/flex2/tools/Mxmlc.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SandboxBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java</path>

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

--- frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as
@@ -95,7 +95,7 @@
 		if (systemManager)
 			this.systemManager = systemManager as ISystemManager2;
 		else
-			this.systemManager = ApplicationGlobals.application.systemManager as ISystemManager2;
+			this.systemManager = SystemManagerGlobals.topLevelSystemManagers[0] as ISystemManager2;

 		sandboxRoot = this.systemManager.getSandboxRoot();
 		sandboxRoot.addEventListener(MarshalEvent.CURSOR_MANAGER, marshalCursorManagerHandler, false, 0, true);


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

--- frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
+++ frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
@@ -1,25 +1,4 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- *  Color of text in the component, including the component label.
- *
- *  The default value for the Halo theme is 0x0B333C.
- *  The default value for the Spark theme is 0x000000.
- *
- *  @langversion 3.0
- *  @playerversion Flash 9
- *  @playerversion AIR 1.1
- *  @productversion Flex 3
- */
+
 [Style(name="color", type="uint", format="Color", inherit="yes")]

 /**


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

--- frameworks/projects/framework/src/mx/validators/RegExpValidator.as
+++ frameworks/projects/framework/src/mx/validators/RegExpValidator.as
@@ -72,6 +72,11 @@
  *  @see mx.validators.RegExpValidationResult
  *  @see mx.validators.ValidationResult
  *  @see RegExp
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class RegExpValidator extends Validator
 {
@@ -85,6 +90,11 @@

     /**
      *  Constructor
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function RegExpValidator()
     {
@@ -127,6 +137,11 @@

     /**
      *  The regular expression to use for validation.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get expression():String
     {
@@ -160,6 +175,11 @@

     /**
      *  The regular expression flags to use when matching.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get flags():String
     {
@@ -205,6 +225,11 @@
     /**
      *  Error message when there is no regular expression specifed.
      *  The default value is "The expression is missing."
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function get noExpressionError():String
 	{
@@ -244,6 +269,11 @@
     /**
      *  Error message when there are no matches to the regular expression.
      *  The default value is "The field is invalid."
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
 	public function get noMatchError():String
 	{
@@ -292,6 +322,11 @@
      *
      *  @return For an invalid result, an Array of ValidationResult objects,
      *  with one ValidationResult object for each field examined by the validator.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     override protected function doValidation(value:Object):Array
     {


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/rpc/src/mx/messaging/events/MessageAckEvent.as
+++ frameworks/projects/rpc/src/mx/messaging/events/MessageAckEvent.as
@@ -0,0 +1,182 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.messaging.events
+{
+
+import flash.events.Event;
+import mx.messaging.events.MessageEvent;
+import mx.messaging.messages.AcknowledgeMessage;
+import mx.messaging.messages.IMessage;
+
+/**
+ *  The MessageAckEvent class is used to propagate acknowledge messages within the messaging system.
+ */
+public class MessageAckEvent extends MessageEvent
+{
+    //--------------------------------------------------------------------------
+    //
+    // Static Constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The ACKNOWLEDGE event type; dispatched upon receipt of an acknowledgement.
+     *
The value of this constant is "acknowledge".

+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
acknowledgeMessage	 Utility property to get
+     *       the message property from MessageEvent as an AcknowledgeMessage.

+     *
bubbles	false

+     *
cancelable	false

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

+     *
correlate	 The original Message correlated with
+     *       this acknowledgement.

+     *
message	The Message associated with this event.

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

+     *

+     *  @eventType acknowledge
+     *
+     */
+    public static const ACKNOWLEDGE:String = "acknowledge";
+
+    //--------------------------------------------------------------------------
+    //
+    // Static Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Utility method to create a new MessageAckEvent that doesn't bubble and
+     *  is not cancelable.
+     *
+     *  @param ack The AcknowledgeMessage this event should dispatch.
+     *
+     *  @param correlation The Message correlated with this acknowledgement.
+     *
+     *  @return New MessageAckEvent.
+     */
+    public static function createEvent(ack:AcknowledgeMessage = null, correlation:IMessage = null):MessageAckEvent
+    {
+        return new MessageAckEvent(MessageAckEvent.ACKNOWLEDGE, false, false, ack, correlation);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructs an instance of this event with the specified acknowledge
+     *  message and original correlated message.
+     *
+     *  @param type The type for the MessageAckEvent.
+     *
+     *  @param bubbles Specifies whether the event can bubble up the display
+     *  list hierarchy.
+     *
+     *  @param cancelable Indicates whether the behavior associated with the
+     *  event can be prevented.
+     *
+     *  @param ack The AcknowledgeMessage this event should dispatch.
+     *
+     *  @param correlation The message correlated with this acknowledgement.
+     */
+    public function MessageAckEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
+            ack:AcknowledgeMessage = null, correlation:IMessage = null)
+    {
+        super(type, bubbles, cancelable, ack);
+
+        this.correlation = correlation;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The original Message correlated with this acknowledgement.
+     */
+    public var correlation:IMessage;
+
+    //--------------------------------------------------------------------------
+    //
+    // Properties
+    //
+    //--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  acknowledgeMessage
+	//----------------------------------
+
+    /**
+     *  Utility property to get the message property from the MessageEvent as an AcknowledgeMessage.
+     */
+    public function get acknowledgeMessage():AcknowledgeMessage
+    {
+        return message as AcknowledgeMessage;
+    }
+
+	//----------------------------------
+	//  correlationId
+	//----------------------------------
+
+    /**
+     *  @private
+     */
+    public function get correlationId():String
+    {
+        if (correlation != null)
+        {
+            return correlation.messageId;
+        }
+        return null;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    // Overridden Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Clones the MessageAckEvent.
+     *
+     *  @return Copy of this MessageAckEvent.
+     */
+    override public function clone():Event
+    {
+        return new MessageAckEvent(type, bubbles, cancelable, message as AcknowledgeMessage, correlation);
+    }
+
+    /**
+     *  Returns a string representation of the MessageAckEvent.
+     *
+     *  @return String representation of the MessageAckEvent.
+     */
+    override public function toString():String
+    {
+        return formatToString("MessageAckEvent", "messageId", "correlationId", "type", "bubbles", "cancelable", "eventPhase");
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 7119
Author:   gosmith@adobe.com
Date:     2009-05-20T06:23:33.213267Z

Log Message:
-----------
RichEditableText now exposes non-inheriting backgroundColor and backgroundAlpha styles for drawing a background within the entire bounding rectangle of the component. We're adding this because TLF supports backgroundColor and backgroundAlpha on pieces of text.

QE Notes: None
Doc Notes: None
Bugs: Part of SDK-19818
Reviewer: Carol

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -156,6 +156,37 @@
 include "../styles/metadata/NonInheritingTextLayoutFormatStyles.as"
 include "../styles/metadata/SelectionFormatTextStyles.as"

+/**
+ *  The alpha level of the color defined by
+ *  the backgroundColor style.
+ *  Valid values range from 0.0 to 1.0.
+ *
+ *  @default 1.0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundAlpha", type="Number", inherit="no", theme="halo")]
+
+/**
+ *  The color of the background of the entire
+ *  bounding rectangle of this component.
+ *  If this style is undefined,
+ *  no background is drawn.
+ *  Otherwise, this RGB color is drawn with an alpha level
+ *  determined by the backgroundAlpha style.
+ *
+ *  @default undefined
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundColor", type="uint", format="Color", inherit="no")]
+
 //--------------------------------------
 //  Other metadata
 //--------------------------------------
@@ -271,16 +302,6 @@
      */
     mx_internal static var debug:Boolean = false;

-    /**
-     *  @private
-     *  Used for debugging.
-     *  Set this to an RGB uint to draw an opaque background
-     *  so that you can see the bounds of the component.
-     *  If it is null, the background is black pixels at 0 alpha,
-     *  to be transparent but catch mouse events.
-     */
-    mx_internal static var backgroundColor:Object = null; // 0xDDDDDD;
-
     //--------------------------------------------------------------------------
     //
     //  Class properties


Transferred from the Adobe Open Source Subversion Repository

Revision: 7799
Author:   cframpto@adobe.com
Date:     2009-06-12T20:48:31.644129Z

Log Message:
-----------
- Reproduced and fixed the ENTER key issue that Gordon found a few weeks ago that neither Peter or I could reproduce at the time.  I believe there is a bug in TLF that it doesn't always observe the manageEnter configuration setting.  My fix will work whether or not TLF is fixed since the ENTER key never gets to TLF.
- Moved the keyDownHandler and the focusOutHandler from RET to RETCM so it would be symmetric with the focusInHandler already there.
- Can't select in the numeric stepper if not editable or selectable.  The text APIs ignore the visual selectable and editable properties so the caller must check these first.

QA Notes: test enter in multiline TextArea single line TextInput/NumericStepper components
Doc Notes:SDK-21783
Reviewers: Gordon

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

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

--- frameworks/projects/spark/src/spark/components/RichEditableText.as
+++ frameworks/projects/spark/src/spark/components/RichEditableText.as
@@ -372,11 +372,9 @@
         // Add event listeners on this component.

         // The focusInHandler is called by the TCMContainer focusInHandler.
-
-        addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
-
-        addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
-
+        // The focusOutHandler is called by the TCMContainer focusOutHandler.
+        // The keyDownHandler is called by the TCMContainer keyDownHandler.
+
         addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler);

         // Add event listeners on its TextContainerManager.
@@ -1528,6 +1526,15 @@
         	selectionFormatsChanged = false;
         }

+        if (enabledChanged || selectableChanged || editableChanged)
+        {
+            updateEditingMode();
+
+            enabledChanged = false;
+            editableChanged = false;
+            selectableChanged = false;
+        }
+
         if (textChanged)
         {
         	if (debug)
@@ -1562,7 +1569,7 @@
             // If the text or content changed, there is no selection.  If we
             // already have focus, set the selection, since we've already
             // executed our focusIn handler where this is normally done.
-            if (getFocus() == this)
+            if (editingMode != EditingMode.READ_ONLY && getFocus() == this)
                 setSelectionBasedOnScrolling();
         }

@@ -1596,15 +1603,6 @@
             displayAsPasswordChanged = false;
         }

-        if (enabledChanged || selectableChanged || editableChanged)
-        {
-        	updateEditingMode();
-
-            enabledChanged = false;
-            editableChanged = false;
-            selectableChanged = false;
-        }
-
         if (clipAndEnableScrollingChanged)
         {
             // Not sure if there is any real difference between on and auto.
@@ -2914,8 +2912,10 @@

     /**
      *  @private
-     */
-    override protected function focusOutHandler(event:FocusEvent):void
+     *  RichEditableTextContainerManager overrides focusOutHandler and calls
+     *  this before executing it's own focusOutHandler.
+     */
+    mx_internal function focusOutHandler(event:FocusEvent):void
     {
         // By default, we clear the undo history when a TextView loses focus.
         if (clearUndoOnFocusOut && undoManager)
@@ -2938,8 +2938,10 @@

     /**
      *  @private
+     *  RichEditableTextContainerManager overrides keyDownHandler and calls
+     *  this before executing it's own keyDownHandler.
      */
-    override protected function keyDownHandler(event:KeyboardEvent):void
+    mx_internal function keyDownHandler(event:KeyboardEvent):void
     {
         if (editingMode != EditingMode.READ_WRITE)
         	return;
@@ -2948,8 +2950,12 @@
         {
             if (multiline)
             {
+                // This is the same code that is in the EditManager for handling
+                // the enter key.
         		getEditManager().splitParagraph();
         		releaseEditManager();
+                event.preventDefault();
+                event.stopImmediatePropagation();
             }
             else
             {


Fixed error on complete

Fixed error on complete

--- frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
+++ frameworks/projects/Network/src/main/flex/org/apache/flex/net/URLStream.as
@@ -200,7 +200,7 @@
 			{
 				dispatchEvent(new org.apache.flex.events.Event(HTTPConstants.COMPLETE));
 				if(onComplete)
-					onComplete();
+					onComplete(this);

 			}
 			else


Transferred from the Adobe Open Source Subversion Repository

Revision: 20157
Author:   jszeto@adobe.com
Date:     2011-02-05T00:00:00.317113Z

Log Message:
-----------
ViewMenu and SoftKeyboard interaction bug fixes

http://bugs.adobe.com/jira/browse/SDK-29144 - Incorrect ViewMenu and Softkeyboard interraction

FocusManager listens for the VIEW_HIDE event and will clear focus if the lastFocus is contained in the View about to be hidden.

Small updates to Application to make sure the isSoftKeyboardActive flag is set in all use cases.

http://bugs.adobe.com/jira/browse/SDK-29384 - SoftKeybord does not appear onTextArea tap in some test cases

In mouseDown handler, if we are already in focus, then make sure the soft keyboard appears on mouseUp

QE notes: none
Doc notes: none
Bugs: SDK-29144
Reviewer: Alex
Tests run: checkintests
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/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.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/framework/src/mx/managers/FocusManager.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@1264291 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -1278,6 +1278,9 @@

         delayedNavigationActions.push({action:action, viewClass:viewClass,
             data:data, transition:transition, context:context});
+
+        if (activeView)
+            activeView.dispatchEvent(new FlexEvent(FlexEvent.VIEW_HIDE));
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 18769
Author:   clucier@adobe.com
Date:     2010-11-22T13:37:11.326971Z

Log Message:
-----------
View transition bug fixes and some changes to help address some performance regression.

QE notes: None
Doc notes: None
Bugs: SDK-28634, SDK-28633.
Reviewer: Chiedo
Tests run: Checkin
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.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@1264274 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as
@@ -145,7 +145,7 @@
      *  @private
      *  The animation duration used when running a default view transition.
      */
-    private static const DEFAULT_VIEW_TRANSITION_DURATION:Number = 250;
+    private static const DEFAULT_VIEW_TRANSITION_DURATION:Number = 300;

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19252
Author:   tkraikit@adobe.com
Date:     2010-12-10T00:43:43.941901Z

Log Message:
-----------
Merging in revisions 19178, 19182, 19189, 19194 from hero_skin_sandbox to hero_private.

Minor last-minute touch-ups to HSliderSkin visuals per visual reviews from NJ.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/HSliderThumb_pressed.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/HSliderThumb_pressed.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HSliderThumb_pressed.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile320/assets/HSliderThumb_normal.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile240/assets/HSliderThumb_normal.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile160/assets/HSliderThumb_normal.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as
@@ -74,9 +74,9 @@
                 hitZoneSideLength = 80;

 				// chromeColor ellipse goes up to the thumb border
-				chromeColorEllipseWidth = chromeColorEllipseHeight = 54;
-				chromeColorEllipseX = 2;
-				chromeColorEllipseY = 2;
+				chromeColorEllipseWidth = chromeColorEllipseHeight = 56;
+				chromeColorEllipseX = 1;
+				chromeColorEllipseY = 1;

 				break;
 			}
@@ -110,8 +110,8 @@
                 hitZoneSideLength = 40;

 				// chromeColor ellipse goes up to the thumb border
-                chromeColorEllipseWidth = chromeColorEllipseHeight = 27;
-                chromeColorEllipseX = chromeColorEllipseY = 1;
+                chromeColorEllipseWidth = chromeColorEllipseHeight = 29;
+                chromeColorEllipseX = chromeColorEllipseY = 0;

                 break;
             }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
@@ -0,0 +1,559 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.listClasses
+{
+
+import flash.display.DisplayObject;
+import flash.display.Sprite;
+import flash.geom.Point;
+import flash.geom.Rectangle;
+import flash.text.TextFieldType;
+import mx.core.FlexVersion;
+import mx.core.IDataRenderer;
+import mx.core.IFlexDisplayObject;
+import mx.core.IFlexModuleFactory;
+import mx.core.IFontContextComponent;
+import mx.core.IToolTip;
+import mx.core.IUITextField;
+import mx.core.UIComponent;
+import mx.core.UITextField;
+import mx.core.mx_internal;
+import mx.events.FlexEvent;
+import mx.events.ToolTipEvent;
+
+use namespace mx_internal;
+
+/**
+ *  Dispatched when the data property changes.
+ *
+ *
When you use a component as an item renderer,
+ *  the data property contains the data to display.
+ *  You can listen for this event and update the component
+ *  when the data property changes.

+ *
+ *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ */
+[Event(name="dataChange", type="mx.events.FlexEvent")]
+
+/**
+ *  Text color of a component label.
+ *  @default 0x0B333C
+ */
+[Style(name="color", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Text color of the component if it is disabled.
+ *  @default 0xAAB3B3
+ */
+[Style(name="disabledColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Number of pixels between children in the vertical direction.
+ *  @default 6
+ */
+[Style(name="verticalGap", type="Number", format="Length", inherit="no")]
+
+/**
+ *  The TileListItemRenderer class defines the default item renderer for the
+ *  HorizontalList and TileList controls.
+ *  By default, the item renderer
+ *  draws the text associated with each item in the list, and an optional icon.
+ *
+ *
You can override the default item renderer by creating a custom item renderer.

+ *
+ *  @see mx.controls.HorizontalList
+ *  @see mx.controls.TileList
+ *  @see mx.core.IDataRenderer
+ *  @see mx.controls.listClasses.IDropInListItemRenderer
+ */
+public class TileListItemRenderer extends UIComponent
+								  implements IDataRenderer,
+								  IDropInListItemRenderer, IListItemRenderer,
+								  IFontContextComponent
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function TileListItemRenderer()
+	{
+		super();
+
+		addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var listOwner:TileBase;
+
+	/**
+	 *  @private
+	 */
+	private var iconClass:Class;
+
+	/**
+	 *  @private
+	 */
+	private var iconOnly:Boolean = false;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties: UIComponent
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  baselinePosition
+    //----------------------------------
+
+    /**
+     *  @private
+     *  The baselinePosition of a TileListItemRenderer is calculated
+     *  for its label.
+     */
+    override public function get baselinePosition():Number
+    {
+		if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+			super.baselinePosition;
+
+		if (!validateBaselinePosition())
+			return NaN;
+
+		return label.y + label.baselinePosition;
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  data
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the data property.
+	 */
+	private var _data:Object;
+
+	[Bindable("dataChange")]
+
+	/**
+	 *  The implementation of the data property as
+	 *  defined by the IDataRenderer interface.  It simply stores
+	 *  the value and invalidates the component
+	 *  to trigger a relayout of the component.
+	 *
+	 *  @see mx.core.IDataRenderer
+	 */
+	public function get data():Object
+	{
+		return _data;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set data(value:Object):void
+	{
+		_data = value;
+
+		invalidateProperties();
+
+		dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+	}
+
+    //----------------------------------
+    //  fontContext
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    public function get fontContext():IFlexModuleFactory
+    {
+        return moduleFactory;
+    }
+
+    /**
+     *  @private
+     */
+    public function set fontContext(moduleFactory:IFlexModuleFactory):void
+    {
+        this.moduleFactory = moduleFactory;
+    }
+
+	//----------------------------------
+	//  icon
+	//----------------------------------
+
+	/**
+	 *  The internal IFlexDisplayObject that displays the icon in this renderer.
+	 */
+	protected var icon:IFlexDisplayObject;
+
+	//----------------------------------
+	//  label
+	//----------------------------------
+
+	/**
+	 *  The internal UITextField that displays the text in this renderer.
+	 */
+	protected var label:IUITextField;
+
+	//----------------------------------
+	//  listData
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the listData property.
+	 */
+	private var _listData:ListData;
+
+	[Bindable("dataChange")]
+
+	/**
+	 *  The implementation of the listData property as
+	 *  defined by the IDropInListItemRenderer interface.
+	 *
+	 *  @see mx.controls.listClasses.IDropInListItemRenderer
+	 */
+	public function get listData():BaseListData
+	{
+		return _listData;
+	}
+
+	/**
+	 *  @private
+	 */
+	public function set listData(value:BaseListData):void
+	{
+		_listData = ListData(value);
+
+		invalidateProperties();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function createChildren():void
+	{
+        super.createChildren();
+
+		createLabel(-1);
+	}
+
+	/**
+	 *  @private
+	 */
+	override protected function commitProperties():void
+	{
+		super.commitProperties();
+
+	    // if the font changed and we already created the label, we will need to
+        // destory it so it can be re-created, possibly in a different swf context.
+		if (hasFontContextChanged() && label != null)
+        {
+      		var index:int = getChildIndex(DisplayObject(label));
+            removeLabel();
+ 			createLabel(index);
+        }
+
+		// remove icon if we're recycled and now have a null data
+		if (icon && !_data)
+		{
+			removeChild(DisplayObject(icon));
+			icon = null;
+			iconClass = null;
+		}
+
+		if (_data)
+		{
+			listOwner = TileBase(_listData.owner);
+
+			if (_listData.icon)
+			{
+				var newIconClass:Class = _listData.icon;;
+
+				if (iconClass != newIconClass)
+				{
+					iconClass = newIconClass;
+
+					if (icon)
+						removeChild(DisplayObject(icon));
+
+					icon = new iconClass();
+					addChild(DisplayObject(icon));
+				}
+			}
+
+			// trace(_data.value);
+			label.text = _listData.label;
+
+			label.multiline = listOwner.variableRowHeight;
+
+			label.wordWrap = listOwner.wordWrap;
+		}
+		else
+		{
+			label.text = " ";
+			toolTip = null;
+		}
+
+	}
+
+	/**
+	 *  @private
+	 */
+	override protected function measure():void
+	{
+		super.measure();
+
+		var h:Number = 0;
+
+		if (icon)
+		{
+			h += icon.measuredHeight;
+		}
+
+		if (label.text == "" || label.text == " " || label.text == null)
+		{
+			// hide the label
+			label.explicitHeight = 0;
+			iconOnly = true;
+		}
+		else
+		{
+			// clear so we use measured value
+			label.explicitHeight = NaN;
+			h += getStyle("verticalGap")
+			iconOnly = false;
+		}
+
+		measuredHeight = label.getExplicitOrMeasuredHeight() + h;
+
+		var paddingLeft:Number = getStyle("paddingLeft");
+		var paddingRight:Number = getStyle("paddingRight");
+
+		measuredWidth = label.getExplicitOrMeasuredWidth() + paddingLeft + paddingRight;
+		if (icon && icon.measuredWidth + paddingLeft + paddingRight > measuredWidth)
+			measuredWidth = icon.measuredWidth + paddingLeft + paddingRight;
+	}
+
+
+	/**
+	 *  @private
+	 */
+	override protected function updateDisplayList(unscaledWidth:Number,
+												  unscaledHeight:Number):void
+	{
+		super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+		var verticalGap:Number = iconOnly ? 0 : getStyle("verticalGap");
+
+		var paddingLeft:Number = getStyle("paddingLeft");
+		var paddingRight:Number = getStyle("paddingRight");
+
+		if (icon)
+		{
+			icon.width = Math.min(unscaledWidth - (paddingLeft + paddingRight), icon.measuredWidth);
+			icon.height = Math.min(Math.max(unscaledHeight - verticalGap - label.getExplicitOrMeasuredHeight(), 0),
+								   icon.measuredHeight);
+			icon.x = paddingLeft + (unscaledWidth - paddingLeft - paddingRight - icon.width) / 2;
+		}
+
+		label.width = unscaledWidth - (paddingLeft + paddingRight);
+		label.height = Math.min(label.getExplicitOrMeasuredHeight(),
+								icon ?
+								Math.max(unscaledHeight - verticalGap - icon.height, 0) :
+								unscaledHeight);
+		label.x = paddingLeft;
+
+		if (listOwner && listOwner.showDataTips)
+		{
+			// By default label is used for dataTip. We show dataTip when
+			// text doesnot fit. If user has specified a dataTipField/dataTipFunction
+			// we always display the tip.
+			if ( label.textWidth > label.width ||
+				 (listOwner.dataTipField && listOwner.dataTipField != "label") ||
+				listOwner.dataTipFunction != null)
+			{
+				toolTip = listOwner.itemToDataTip(_data);
+			}
+			else
+			{
+				toolTip = null;
+			}
+		}
+		else
+		{
+			toolTip = null;
+		}
+
+		var startY:Number;
+		var totalHeight:Number = label.height;
+		if (icon)
+			totalHeight += icon.height + verticalGap;
+
+		var verticalAlign:String = getStyle("verticalAlign");
+		if (verticalAlign == "top")
+		{
+			startY = 0;
+			if (icon)
+			{
+				icon.y = startY;
+				startY += verticalGap + icon.height;
+			}
+			label.y = startY;
+		}
+		else if (verticalAlign == "bottom")
+		{
+			startY = unscaledHeight - label.height;
+			label.y = startY;
+			if (icon)
+			{
+				startY -= verticalGap + icon.height;
+				icon.y = startY;
+			}
+		}
+		else
+		{
+			startY = (unscaledHeight - totalHeight) / 2;
+			if (icon)
+			{
+				icon.y = startY;
+				startY += verticalGap + icon.height;
+			}
+			label.y = startY;
+		}
+
+		var labelColor:Number;
+
+		if (data && parent)
+		{
+			if (!enabled)
+				labelColor = getStyle("disabledColor");
+
+			else if (listOwner.isItemSelected(listData.uid))
+        		labelColor = getStyle("textSelectedColor");
+
+			else if (listOwner.isItemHighlighted(listData.uid))
+        		labelColor = getStyle("textRollOverColor");
+
+			else
+        		labelColor = getStyle("color");
+
+       		label.setColor(labelColor);
+		}
+	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Creates the label and adds it as a child of this component.
+     *
+     *  @param childIndex The index of where to add the child.
+	 *  If -1, the text field is appended to the end of the list.
+     */
+    mx_internal function createLabel(childIndex:int):void
+    {
+        if (!label)
+        {
+			label = IUITextField(createInFontContext(UITextField));
+			label.styleName = this;
+
+            if (childIndex == -1)
+                addChild(DisplayObject(label));
+            else
+                addChildAt(DisplayObject(label), childIndex);
+        }
+    }
+
+    /**
+     *  @private
+     *  Removes the label from this component.
+     */
+    mx_internal function removeLabel():void
+    {
+        if (label)
+        {
+        	removeChild(DisplayObject(label));
+        	label = null;
+        }
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Event handlers
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Positions the tooltip.
+	 *
+	 *  @param The Event object.
+	 */
+	protected function toolTipShowHandler(event:ToolTipEvent):void
+	{
+		var toolTip:IToolTip = event.toolTip;
+
+		// Calculate global position of label.
+		var pt:Point = new Point(0, 0);
+		pt = label.localToGlobal(pt);
+		pt = stage.globalToLocal(pt);
+
+		toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
+
+		var screen:Rectangle = systemManager.screen;
+		var screenRight:Number = screen.x + screen.width;
+		if (toolTip.x + toolTip.width > screenRight)
+			toolTip.move(screenRight - toolTip.width, toolTip.y);
+	}
+
+	/**
+	 *  @private
+	 */
+	mx_internal function getLabel():IUITextField
+	{
+		return label;
+	}
+}
+
+}


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

--- frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as
@@ -43,24 +43,44 @@
  *  when the data property changes.

  *
  *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Event(name="dataChange", type="mx.events.FlexEvent")]

 /**
  *  Text color of a component label.
  *  @default 0x0B333C
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="color", type="uint", format="Color", inherit="yes")]

 /**
  *  Text color of the component if it is disabled.
  *  @default 0xAAB3B3
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="disabledColor", type="uint", format="Color", inherit="yes")]

 /**
  *  Number of pixels between children in the vertical direction.
  *  @default 6
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="verticalGap", type="Number", format="Length", inherit="no")]

@@ -76,6 +96,11 @@
  *  @see mx.controls.TileList
  *  @see mx.core.IDataRenderer
  *  @see mx.controls.listClasses.IDropInListItemRenderer
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TileListItemRenderer extends UIComponent
                                   implements IDataRenderer,
@@ -92,6 +117,11 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function TileListItemRenderer()
     {
@@ -172,6 +202,11 @@
      *  to trigger a relayout of the component.
      *
      *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get data():Object
     {
@@ -216,6 +251,11 @@

     /**
      *  The internal IFlexDisplayObject that displays the icon in this renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var icon:IFlexDisplayObject;

@@ -225,6 +265,11 @@

     /**
      *  The internal UITextField that displays the text in this renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected var label:IUITextField;

@@ -245,6 +290,11 @@
      *  defined by the IDropInListItemRenderer interface.
      *
      *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get listData():BaseListData
     {
@@ -531,6 +581,11 @@
      *  Positions the ToolTip object.
      *
      *  @param The Event object.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     protected function toolTipShowHandler(event:ToolTipEvent):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17101
Author:   rfrishbe@adobe.com
Date:     2010-07-28T18:31:06.934256Z

Log Message:
-----------
Cleaning up lots of code, fixing some bugs, tweaking the API for List/Scroller, and tweaking the kinetics for Scroller.

Major API changes are:

1) Got rid of scrollAxis on IViewport.  We now just use horizontalScrollPolicy/verticalScrollPolicy.
2) No more overlay for horizontalScrollPolicy/verticalScrollPolicy.  Instead, we just key off of inputMode="touch" to determine this
3) spark.events.TouchScrollEvent moved to mx.events.TouchScrollEvent
4) Added new API to help with testing: mx.utils.GetTimerUtil.mx_internal::getTimerFunction

We now use the distance scrolled as well as the velocity of that scroll to determine how far to throw the list

QE notes: Added new API for testing purposes
Doc notes: None
Bugs: SDK-27031, SDK-27021
Reviewer: None - will review with mobile list stuff later (very soon in fact)
Tests run: checkintests, mustella Scroller, List, and ListDND
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/utils/GetTimerUtil.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollingEasing.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/TouchScrollEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ScrollPolicy.as</path>
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/TouchScrollEvent.as" copyfrom-rev="17005" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/TouchScrollEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -21,9 +21,9 @@
 import mx.events.FlexEvent;
 import mx.events.ResizeEvent;
 import mx.events.SandboxMouseEvent;
+import mx.events.TouchScrollEvent;

 import spark.components.Button;
-import spark.events.TouchScrollEvent;
 import spark.events.TrackBaseEvent;

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation/src/mx/automation/tabularData/DataGridTabularData.as
+++ frameworks/projects/automation/src/mx/automation/tabularData/DataGridTabularData.as
@@ -0,0 +1,162 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.tabularData
+{
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationTabularData;
+	import mx.controls.DataGrid;
+	import mx.controls.listClasses.IListItemRenderer;
+	import mx.controls.dataGridClasses.DataGridColumn;
+	import mx.automation.delegates.controls.DataGridAutomationImpl;
+	import mx.controls.listClasses.ListBaseContentHolder;
+	import flash.display.DisplayObject;
+
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	/**
+	 * @private
+	 */
+	public class DataGridTabularData extends ListBaseTabularData
+	{
+		/**
+		 *  Constructor
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function DataGridTabularData(dg:DataGrid)
+		{
+			super(dg);
+			this.dg = dg;
+		}
+
+		/**
+		 *  @private
+		 */
+		private var dg:DataGrid;
+
+		/**
+		 *  @private
+		 */
+		override public function get numColumns():int
+		{
+			return dg.columnCount;
+		}
+
+
+		/**
+		 *  @private
+		 */
+		override public function get columnNames():Array
+		{
+			//override to provide the column names
+			var result:Array = [];
+			var colCount:int = dg.columnCount;
+			var columns:Array = dg.columns;
+			for (var i:int = 0; i < colCount; ++i)
+			{
+				if (columns[i].dataField)
+					result.push(columns[i].dataField);
+				else
+					result.push(columns[i].headerText);
+				//for FileSystemDataGrid of AIR, the dataFiled is empty and the headerText
+				// is directly assigned. To get the headerHeader text in those cases the above
+				// is added.
+			}
+			return result;
+		}
+
+		/**
+		 *  @private
+		 */
+
+
+		override public function get firstVisibleRow():int
+		{
+
+			if (!dg.headerVisible)
+				return super.firstVisibleRow;
+
+			var listItems:Array;
+			if (dg.lockedRowCount == 0)
+			{
+				listItems= dg.rendererArray;
+				return (listItems[1][0]
+					? dg.itemRendererToIndex(listItems[1][0])
+					: 0);
+			}
+			else
+			{
+				listItems = ((dg.automationDelegate) as DataGridAutomationImpl).getCompleteRenderersArray();
+
+				var firstVisibleRow:int = -1;
+				var rowCount:int = listItems.length;
+
+				// the locked rows can be in the visible area or invisible area
+				// so if had locked rows we cannot blindly take the fist row element
+				var index:int = 0;
+				while ((firstVisibleRow < 0)&&(index < rowCount))
+				{
+					firstVisibleRow = (listItems[index][0]
+						? dg.itemRendererToIndex(listItems[index][0])
+						: 0);
+
+					index ++;
+				}
+
+				if (firstVisibleRow < 0)
+					firstVisibleRow = 0;
+
+				return firstVisibleRow;
+			}
+
+
+		}
+
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationValueForData(data:Object):Array
+		{
+			var ret:Array = [];
+			var colCount:int = dg.columnCount;
+			var rowCount:int = dg.rowCount;
+			for (var colNo:int = 0; colNo < colCount; ++colNo)
+			{
+				//since visibleData data is only keyed per row
+				//and doesn't include renderers for each column
+				//we can't optimize by using it
+				//var item:IListItemRenderer = visibleData[itemToUID(data)];
+				var item:IListItemRenderer;
+
+				var c:DataGridColumn = dg.columns[colNo];
+				item = c.getMeasuringRenderer(false,data);
+				if (item.owner == null)
+					(dg.getListContentHolder() as ListBaseContentHolder).addChild(DisplayObject(item));
+				dg.setupRendererFromData(c, item, data);
+
+				if(item is IAutomationObject)
+					ret.push(IAutomationObject(item).automationValue.join(" | "));
+			}
+
+			return ret;
+		}
+
+	}
+}


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

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

 package mx.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22626
Author:   jasonsj@adobe.com
Date:     2011-09-19T22:10:23.057304Z

Log Message:
-----------
Set maxWidth/maxHeight in Callout (SDK-31522). When Callout content grows larger than the screen size, maxWidth and maxHeight keep the callout constrainted to the screen bounds based on horizontalPosition and verticalPosition. Users may override by providing their own maxWidth and maxHeight.
Support minimum hit area in mobile skins. Currently disabled (SDK-31494).

QE notes: Verify that we have tests where the callout is not explicitly sized and where the callout content is larger than the screen size.
Doc notes:
Bugs:
SDK-31522 Callout sized incorrectly when used with SplitViewNavigator
Reviewer: gruehle
Tests run: checkintests, mustella-mobile
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SplitViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as
@@ -107,6 +107,13 @@
     protected var useSymbolColor:Boolean = false;

     /**
+     *  @private
+     *  Toggles transparent, centered, hit-area if the unscaled size is less
+     *  than one-quarter inch square. Physical size is based on applicationDPI.
+     */
+    mx_internal var useMinimumHitArea:Boolean = false;
+
+    /**
      *  Specifies a default width. measuredWidth returns this value
      *  when the computed measuredWidth is less than
      *  measuredDefaultWidth.
@@ -300,7 +307,86 @@
         if (useSymbolColor)
             applySymbolColor();

+        if (useMinimumHitArea)
+            drawMinimumHitArea(unscaledWidth, unscaledHeight);
+
         drawBackground(unscaledWidth, unscaledHeight);
+    }
+
+    /**
+     *  @private
+     *  Make the component's explicitMinWidth property override its skin's.
+     *  This is useful for cases where the skin's minWidth constrains
+     *  the skin's measured size. In those cases the user could set
+     *  explicit limits on the component itself thus relaxing the
+     *  hard-coded limits in the skin. See SDK-24741.
+     */
+    override public function get explicitMinWidth():Number
+    {
+        if (parent is SkinnableComponent)
+        {
+            var parentExplicitMinWidth:Number = SkinnableComponent(parent).explicitMinWidth;
+            if (!isNaN(parentExplicitMinWidth))
+                return parentExplicitMinWidth;
+        }
+        return super.explicitMinWidth;
+    }
+
+    /**
+     *  @private
+     *  Make the component's explicitMinWidth property override its skin's.
+     *  This is useful for cases where the skin's minWidth constrains
+     *  the skin's measured size. In those cases the user could set
+     *  explicit limits on the component itself thus relaxing the
+     *  hard-coded limits in the skin. See SDK-24741.
+     */
+    override public function get explicitMinHeight():Number
+    {
+        if (parent is SkinnableComponent)
+        {
+            var parentExplicitMinHeight:Number = SkinnableComponent(parent).explicitMinHeight;
+            if (!isNaN(parentExplicitMinHeight))
+                return parentExplicitMinHeight;
+        }
+        return super.explicitMinHeight;
+    }
+
+    /**
+     *  @private
+     *  Make the component's explicitMinWidth property override its skin's.
+     *  This is useful for cases where the skin's minWidth constrains
+     *  the skin's measured size. In those cases the user could set
+     *  explicit limits on the component itself thus relaxing the
+     *  hard-coded limits in the skin. See SDK-24741.
+     */
+    override public function get explicitMaxWidth():Number
+    {
+        if (parent is SkinnableComponent)
+        {
+            var parentExplicitMaxWidth:Number = SkinnableComponent(parent).explicitMaxWidth;
+            if (!isNaN(parentExplicitMaxWidth))
+                return parentExplicitMaxWidth;
+        }
+        return super.explicitMaxWidth;
+    }
+
+    /**
+     *  @private
+     *  Make the component's explicitMinWidth property override its skin's.
+     *  This is useful for cases where the skin's minWidth constrains
+     *  the skin's measured size. In those cases the user could set
+     *  explicit limits on the component itself thus relaxing the
+     *  hard-coded limits in the skin. See SDK-24741.
+     */
+    override public function get explicitMaxHeight():Number
+    {
+        if (parent is SkinnableComponent)
+        {
+            var parentExplicitMaxHeight:Number = SkinnableComponent(parent).explicitMaxHeight;
+            if (!isNaN(parentExplicitMaxHeight))
+                return parentExplicitMaxHeight;
+        }
+        return super.explicitMaxHeight;
     }

     //--------------------------------------------------------------------------
@@ -308,6 +394,26 @@
     //  Class methods
     //
     //--------------------------------------------------------------------------
+
+    mx_internal function drawMinimumHitArea(unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        // minimum hit area is 0.25 inches square
+        var minSize:Number = applicationDPI / 4;
+
+        // skip if skin size is larger than minimum
+        if ((unscaledWidth > minSize) && (unscaledHeight > minSize))
+            return;
+
+        // center a transparent hit area larger than the skin
+        var hitAreaWidth:Number = Math.max(minSize, unscaledWidth);
+        var hitAreaHeight:Number = Math.max(minSize, unscaledHeight);
+        var hitAreaX:Number = (unscaledWidth - hitAreaWidth) / 2;
+        var hitAreaY:Number = (unscaledHeight - hitAreaHeight) / 2;
+
+        graphics.beginFill(0, 0);
+        graphics.drawRect(hitAreaX, hitAreaY, hitAreaWidth, hitAreaHeight);
+        graphics.endFill();
+    }

     /**
      *  Positions the children for this skin.


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

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

 package spark.validators.supportClasses
 {


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

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

 package mx.controls
 {


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

--- frameworks/projects/mx/src/mx/events/MenuEvent.as
+++ frameworks/projects/mx/src/mx/events/MenuEvent.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-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: 5364
Author:   hmuller@adobe.com
Date:     2009-03-17T22:06:49.696808Z

Log Message:
-----------
More virtualization bug fixes.  This is the last of the current crop of A/B virtualization bugs.

Thanks to Evtim for the fix for 19388.

QE Notes: sdk-19847, sdk-19367, sdk-19388, sdk-19967
Doc Notes:
Bugs:
Reviewer: Evtim

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

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

--- frameworks/projects/spark/src/spark/components/DataGroup.as
+++ frameworks/projects/spark/src/spark/components/DataGroup.as
@@ -946,7 +946,8 @@
         if (layout && layout.useVirtualLayout)
         {
             // The next time updateDisplayList() runs, virtualLayoutStart,EndIndex
-            // will become oldVirtualLayoutStart,End index.   See finishVirtualLayout().
+            // will become oldVirtualLayoutStart,End index.  The changes
+            // to virtualLayoutStart,EndIndex only affect finishVirtualLayout().
             if (index <= virtualLayoutEndIndex)
             {
                 if (index <= virtualLayoutStartIndex)
@@ -996,12 +997,15 @@
         if (layout && layout.useVirtualLayout)
         {
             // The next time updateDisplayList() runs, virtualLayoutStart,EndIndex
-            // will become oldVirtualLayoutStart,End index.   See finishVirtualLayout().
-            if ((index >= virtualLayoutStartIndex) && (index <= virtualLayoutEndIndex))
-            {
+            // will become oldVirtualLayoutStart,End index.  The changes
+            // to virtualLayoutStart,EndIndex only affect finishVirtualLayout().
+            if (index <= virtualLayoutEndIndex)
+            {
+                if (index <= virtualLayoutStartIndex)
+                    virtualLayoutStartIndex -= 1;
                 virtualLayoutEndIndex -= 1;
                 indexToRenderer.splice(index, 1);
-            }
+            }
         }
         else
             indexToRenderer.splice(index, 1);


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 9034
Author:   jszeto@adobe.com
Date:     2009-08-04T00:16:46.532519Z

Log Message:
-----------
Change the default value of Slider.liveDragging to true

http://bugs.adobe.com/jira/browse/SDK-21923 - Spark Slider controls should set liveDragging to true by default

Changed the global style declaration to set liveDragging = true. Updated ASDoc comments.

QE notes: Update test files
Doc notes: Update docs
Bugs: SDK-21923
Reviewer: Chet
Tests run: Slider
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as
@@ -51,7 +51,7 @@
  *  committed as it is dragged along the track instead
  *  of when the thumb button is released.
  *
- *  @default false
+ *  @default true
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -103,7 +103,7 @@
  *    ligatureLevel="COMMON"
  *    lineHeight="120%"
  *    lineThrough="false"
- *    liveDragging="false"
+ *    liveDragging="true"
  *    local="en"
  *    renderingMode="CFF"
  *    textAlign="START"


Transferred from the Adobe Open Source Subversion Repository

Revision: 9399
Author:   aharui@adobe.com
Date:     2009-08-19T20:39:10.836192Z

Log Message:
-----------
Check in prototypes of ControlBars in Panel and Application, Spark Containers in Halo Navigators, Halo ViewStack in Spark ButtonBar.  APIs should match spec but are subject to change from PARB.  Skins are subject to tweaking after XD review

QE Notes: The following tests will fail and need updating:
gumbo/containers/Panel/Properties/Panel_Properties_position Panel_Properties_rotate
apollo/spark/components/Window/properties/window_properties_titleIcon_tests titleIcon_test8

Doc Notes: None
Bugs: None
Reviewer: Darrell, Glenn, Ryan
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Application, gumbo/components/ButtonBar, gumbo/containers/Panel, apollo/gumbo/spark/Window, containers/ViewStack, containers/Accordion,

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/SparkChromeWindowedApplicationSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NavigatorChild.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IDeferredContentOwner.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/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.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/controls/NavBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatable.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</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/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/INavigatorContent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ApplicationSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -389,7 +389,9 @@
 public class Container extends UIComponent
                        implements IContainer, IDataRenderer,
                        IFocusManagerContainer, IListItemRenderer,
-                       IRawChildrenContainer, IChildList, IVisualElementContainer
+                       IRawChildrenContainer, IChildList, IVisualElementContainer,
+                       INavigatorContent
+
 {
     include "../core/Version.as"

@@ -1305,6 +1307,25 @@
     {
         _defaultButton = value;
         ContainerGlobals.focusedContainer = null;
+    }
+
+    //----------------------------------
+    //  deferredContentCreated
+    //----------------------------------
+
+    /**
+     *  IDeferredContentOwner equivalent of processedDescriptors
+     *
+     *  @see UIComponent#processedDescriptors
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get deferredContentCreated():Boolean
+    {
+        return processedDescriptors;
     }

     //----------------------------------
@@ -4060,6 +4081,7 @@
         }
     }

+
     /**
      *  Iterate through the Array of childDescriptors,
      *  and call the createComponentFromDescriptor() method for each one.
@@ -4111,6 +4133,22 @@
         numChildrenCreated = numChildren - numChildrenBefore;

         processedDescriptors = true;
+    }
+
+    /**
+     *  IDeferredContentOwner equivalent of createComponentsFromDescriptor(true)
+     *
+     *  @see createComponentsFromDescriptors
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function createDeferredContent():void
+    {
+        createComponentsFromDescriptors(true);
+        dispatchEvent(new FlexEvent(FlexEvent.CONTENT_CREATION_COMPLETE));
     }

    /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 20013
Author:   harishs@adobe.com
Date:     2011-01-31T15:32:09.255609Z

Log Message:
-----------
QE notes: Globalization changes. Full cyclone run has been done. Default locale changes and sort bug fixes since Dec 14 2010
Doc notes: ASDOC comments for all classes have been updated.
Bugs: SDK-29132 SDK-29127 SDK-28163  SDK-29075 SDK-28600 SDK-28492 SDK-28856

Reviewer: Gordon Smith, Xie Fang, Zhigang Qi
Tests run: cyclone and checkintests
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/AdvancedStyleClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/NumberValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationValidatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/CollatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/NumberFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ISortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/NumberValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/DateTimeFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/collections/SortField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/SortingCollator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/StringTools.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/LastOperationStatus.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/Sort.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/MatchingCollator.as</path>

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

--- frameworks/projects/spark/src/spark/globalization/StringTools.as
+++ frameworks/projects/spark/src/spark/globalization/StringTools.as
@@ -69,31 +69,36 @@
      *
By using the class in an MXML declaration and inheriting the
      *  locale from the document that contains the declaration.
      *  Example:
-     *  <listing version="3.0">
+     *

      *  <fx:Declarations>
      *         <s:StringTools id="st" />
      *  </fx:Declarations>
-     *  </listing>
+     *

      *

      *
      *
By using an MXML declaration and specifying the locale value in
      *  the list of assignments.
      *  Example:
-     *  <listing version="3.0">
+     *

      *  <fx:Declarations>
      *      <s:StringTools id="st_turkish" locale="tr-TR" />
      *  </fx:Declarations>
-     *  </listing>
+     *

      *

      *
      *
Calling the setStyle method, e.g.
      *  st.setStyle("locale", "tr-TR")

      *

      *
-     *
If the locale style is not set by one of the above techniques, the
-     *  methods of this class that depend on the locale will set a
-     *  lastOperationStatus to LOCALE_UNDEFINED_ERROR.
-     *

+     *

+     *  If the locale style is not set by one of the above
+     *  techniques, the instance of this class will be added as a
+     *  StyleClient to the topLevelApplication and
+     *  will therefore inherit the locale style from the
+     *  topLevelApplication object when the locale
+     *  dependent property getter or locale dependent method is
+     *  called.
+     *

      *
      *  @see flash.globalization.StringTools
      *
@@ -119,8 +124,32 @@
       *  Actual instance of the working flash.globalization.StringTools
       *  instance.
       */
-    private var g11nWorkingInstance:flash.globalization.StringTools;
-
+    private var _g11nWorkingInstance:flash.globalization.StringTools;
+
+    /**
+     *  @private
+     *  If the g11nWorkingInstance has not been defined. Call
+     *  ensureStyleSource to ensure that there is a styleParent. If there is
+     *  not a style parent, then this instance will be added as a style client
+     *  to the topLevelApplication. As a side effect of this, the styleChanged
+     *  method will be called and if there is a locale style defined for the
+     *  topLevelApplication, the createWorkingInstance method will be
+     *  executed creating a g11nWorkingInstance.
+     */
+    private function get g11nWorkingInstance ():
+        flash.globalization.StringTools
+    {
+        if (!_g11nWorkingInstance)
+            ensureStyleSource();
+
+        return _g11nWorkingInstance;
+    }
+
+    private function set g11nWorkingInstance
+        (flashStringTools:flash.globalization.StringTools): void
+    {
+        _g11nWorkingInstance = flashStringTools;
+    }
     //--------------------------------------------------------------------------
     //
     //  Overridden Properties
@@ -147,7 +176,7 @@
     override public function get actualLocaleIDName():String
     {
         if (g11nWorkingInstance)
-            return this.g11nWorkingInstance.actualLocaleIDName;
+            return g11nWorkingInstance.actualLocaleIDName;

         if ((localeStyle === undefined) || (localeStyle === null))
         {
@@ -261,6 +290,7 @@
      */
     public function toLowerCase(s:String):String
     {
+
         if (g11nWorkingInstance)
             return g11nWorkingInstance.toLowerCase(s);

@@ -312,10 +342,7 @@
     }

     /**
-     *  Lists all of the locale ID names supported by this class.
-     *
-     *  @return A vector of strings containing all of the locale ID names
-     *         supported by this class and operating system.
+     *  @copy spark.globalization.SupportedClasses.CollatorBase#getAvailableLocaleIDNames
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1


recursive protection

recursive protection

--- src/com/phylake/fsm/impl/Fsm.as
+++ src/com/phylake/fsm/impl/Fsm.as
@@ -6,15 +6,16 @@

     public class Fsm implements IFsm
     {
-        private var _events:Vector.<IEvent> = new Vector.<IEvent>();
-        private var _currentState:IState;
         public var unmappedEventException:Boolean;
-
+
         /*
           key: IEvent.name
         value: [ITransition]
         */
         private var _eventMap:Object = {};
+        private var _events:Vector.<IEvent> = new Vector.<IEvent>();
+        private var _currentState:IState;
+        private var _inEventLoop:Boolean;

         public function init(value:IState):void
         {
@@ -38,7 +39,10 @@
         public function pushEvent(value:IEvent):void
         {
             _events.push(value);
-            eventLoop();
+            if (!_inEventLoop)
+            {
+                eventLoop();
+            }
         }

         protected function executeAction(action:IAction, event:IEvent):void
@@ -51,7 +55,7 @@

         protected function executeSubmachines(state:IState, event:IEvent):void
         {
-            for each ( var fsm:IFsm in state.subMachines )
+            for each (var fsm:IFsm in state.subMachines)
             {
                 fsm.pushEvent(event);
             }
@@ -59,8 +63,8 @@

         protected function eventLoop():void
         {
-            // with this loop I'm leaving the possibility open to altering
-            // _events outside of pushEvent while still clearing the queue
+            _inEventLoop = true;
+
             var event:IEvent;
             var transition:ITransition;
             var foundTransition:ITransition;
@@ -118,6 +122,8 @@

                 // execute submachines with current event
                 executeSubmachines(currentState, event);
+
+                _inEventLoop = false;
             }
         }
     }


M Camera controller now unlock matrices after changing them, to avoid inconsistency in signal listeners

--- src/aerys/minko/scene/controller/camera/CameraController.as
+++ src/aerys/minko/scene/controller/camera/CameraController.as
@@ -65,17 +65,16 @@

 		private function worldToLocalChangedHandler(worldToLocal : Matrix4x4, propertyName : String) : void
 		{
-			var cameraData	: CameraDataProvider	= _camera.cameraData;
+			var cameraData			: CameraDataProvider	= _camera.cameraData;
+			var cameraWorldToScreen	: Matrix4x4				= cameraData.worldToScreen;
+			var cameraScreenToWorld	: Matrix4x4				= cameraData.screenToWorld;

-			cameraData.worldToScreen.lock()
-				.copyFrom(_camera.worldToLocal)
-				.append(cameraData.projection)
-				.unlock();
-
-			cameraData.screenToWorld.lock()
-				.copyFrom(cameraData.screenToView)
-				.append(_camera.localToWorld)
-				.unlock();
+			cameraWorldToScreen.lock();
+			cameraScreenToWorld.lock();
+			cameraWorldToScreen.copyFrom(_camera.worldToLocal).append(cameraData.projection);
+			cameraScreenToWorld.copyFrom(cameraData.screenToView).append(_camera.localToWorld);
+			cameraWorldToScreen.unlock();
+			cameraScreenToWorld.unlock();
 		}

 		private function viewportSizeChanged(bindings : DataBindings, key : String, newValue : Object) : void
@@ -91,28 +90,30 @@
 		private function updateProjection() : void
 		{
 			var cameraData		: CameraDataProvider	= _camera.cameraData;
-			var screenToView	: Matrix4x4				= cameraData.screenToView;
 			var sceneBindings	: DataBindings			= Scene(_camera.root).bindings;
 			var viewportWidth	: Number				= sceneBindings.getProperty('viewportWidth');
 			var viewportHeight	: Number				= sceneBindings.getProperty('viewportHeight');
 			var ratio			: Number				= viewportWidth / viewportHeight;

-			cameraData.projection.perspectiveFoV(cameraData.fieldOfView, ratio, cameraData.zNear, cameraData.zFar);
+			var projection		: Matrix4x4				= cameraData.projection;
+			var screenToView	: Matrix4x4				= cameraData.screenToView;
+			var screenToWorld	: Matrix4x4				= cameraData.screenToWorld;
+			var worldToScreen	: Matrix4x4				= cameraData.worldToScreen;

-			screenToView.lock()
-				.copyFrom(cameraData.projection)
-				.invert()
-				.unlock();
+			projection.lock();
+			screenToView.lock();
+			screenToWorld.lock();
+			worldToScreen.lock();

-			cameraData.screenToWorld.lock()
-				.copyFrom(cameraData.screenToView)
-				.append(_camera.localToWorld)
-				.unlock();
+			projection.perspectiveFoV(cameraData.fieldOfView, ratio, cameraData.zNear, cameraData.zFar);
+			screenToView.copyFrom(cameraData.projection).invert();
+			screenToWorld.copyFrom(cameraData.screenToView).append(_camera.localToWorld);
+			worldToScreen.copyFrom(_camera.worldToLocal).append(cameraData.projection);

-			cameraData.worldToScreen.lock()
-				.copyFrom(_camera.worldToLocal)
-				.append(cameraData.projection)
-				.unlock();
+			projection.unlock();
+			screenToView.unlock();
+			screenToWorld.unlock();
+			worldToScreen.unlock();
 		}
 	}
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12850
Author:   jimurphy@adobe.com
Date:     2009-12-11T14:57:14.623098Z

Log Message:
-----------
add 6 new DMV projects to the SDK:
automation
automation_air
automation_dmv
automation_flashflexkit
automation_spark
datavisualization

These projects are setup to build in an ant main call.  There are currently several warnings in the datavisualization project that will be cleaned up.  No checkintests exist for these projects as of yet.

I also modified the exisitng projects build files for easier management of the localization targets, bundle and fat-swc. If the projects that I updated:airframework,airspark,framework,playerglobal,rpc,and spark.  All the new projects have been implemented this same way.

QE notes: DMV folks should run through their tests
Doc notes: probably
Bugs: nope
Reviewer:
Tests run: ran the following targets: compile,checkintests,other.locales and doc
Is noteworthy for integration: no

Modified Paths:
--------------
1404 paths were modified

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.supportClasses
+{
+	import flash.display.DisplayObject;
+
+	import mx.automation.Automation;
+	import mx.core.mx_internal;
+
+	import spark.components.supportClasses.Range;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  Range control.
+	 *
+	 *  @see spark.components.supportClasses.Range
+	 *
+	 */
+	public class SparkRangeAutomationImpl extends SparkSkinnableComponentAutomationImpl
+	{
+
+		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.supportClasses.Range, SparkRangeAutomationImpl);
+		}
+
+		/**
+		 *  Constructor.
+		 * @param obj Range object to be automated.
+		 */
+		public function SparkRangeAutomationImpl(obj:spark.components.supportClasses.Range)
+		{
+			super(obj);
+
+		}
+
+
+	}
+
+}