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

--- frameworks/projects/framework/src/mx/managers/HistoryManager.as
+++ frameworks/projects/framework/src/mx/managers/HistoryManager.as
@@ -0,0 +1,163 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.managers
+{
+
+import mx.core.Singleton;
+import mx.core.mx_internal;
+import mx.managers.IHistoryManagerClient;
+
+use namespace mx_internal;
+
+/**
+ *  History management lets users navigate through a Flex application
+ *  using the web browser's Back and Forward navigation commands.
+ *
+ *
In general, you should use the BrowserManager class and deep linking for maintaining state
+ *  in an application and manipulating URLs and browser history, but the HistoryManager class can
+ *  be useful under some circumstances, such as if you are maintaining a legacy Flex application.
+ *  You cannot use the HistoryManager and the BrowserManager classes in the same Flex application,
+ *  even though they use the same set of supporting files.

+ *
+ *
History management is enabled by default for the Accordion and TabNavigator containers.
+ *  This means that if the user selects one of the panes in an Accordion control,
+ *  that user can return to the previous pane by using the browser's Back button or back
+ *  navigation command. History management is disabled by default for the ViewStack
+ *  navigator container.

+ *
+ *
You can disable history management by setting the navigator container's
+ *  historyManagementEnabled property to false.

+ *
+ *
You can also enable history management for other objects
+ *  in an application by registering the objects with the HistoryManager. To register a component
+ *  with the HistoryManager class, you call the HistoryManager class's register()
+ *  method with a reference to a component instance that implements the IHistoryManagerClient interface.
+ *  In the following example, the Application component (this) is registered with
+ *  the HistoryManager class when the Application is initialized:
+ *

+ *  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
+ *    implements="mx.managers.IHistoryManagerClient"
+ *    initialize="mx.managers.HistoryManager.register(this);">
+ *

+ *  You must also implement the saveState() and loadState() methods of the
+ *  IHistoryManagerClient interface to complete the registration of the component. Components that extend
+ *  UIComponent automatically inherit the loadState() method.

+ *
+ *
All methods and properties of the HistoryManager are static,
+ *  so you do not need to create an instance of it.

+ *
+ *  @see mx.managers.BrowserManager
+ *  @see mx.managers.IHistoryManagerClient
+ */
+public class HistoryManager
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Linker dependency on implementation class.
+     */
+    private static var implClassDependency:HistoryManagerImpl;
+
+    /**
+     *  @private
+     *  Storage for the impl getter.
+     *  This gets initialized on first access,
+     *  not at static initialization time, in order to ensure
+     *  that the Singleton registry has already been initialized.
+     */
+    private static var _impl:IHistoryManager;
+
+    /**
+     *  @private
+     *  The singleton instance of HistoryManagerImpl which was
+     *  registered as implementing the IHistoryManager interface.
+     */
+    private static function get impl():IHistoryManager
+    {
+        if (!_impl)
+        {
+            _impl = IHistoryManager(
+                Singleton.getInstance("mx.managers::IHistoryManager"));
+        }
+
+        return _impl;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  DEPRECATED - Initializes the HistoryManager. In general, this does not need to be called
+     *  because any time you add a component with historyManagementEnabled, Flex
+     *  calls this method. However, the HistoryManager will not work correctly if it is
+     *  not initialized from the top-level application. So, if your application does
+     *  not have any HistoryManager enabled components in it and loads other sub-applications
+     *  That do, you must call the HistoryManager.initialize() method in the
+     *  main application, usually from an initialize event handler on the application.
+     *
+     *  @param sm SystemManager for this application.
+     */
+    public static function initialize(sm:ISystemManager):void
+    {
+        // this code is handled in HistoryManagerImpl.getInstance() now
+    }
+
+    /**
+     *  Registers an object with the HistoryManager.
+     *  The object must implement the IHistoryManagerClient interface.
+     *
+     *  @param obj Object to register.
+     *
+     *  @see mx.managers.IHistoryManagerClient
+     */
+    public static function register(obj:IHistoryManagerClient):void
+    {
+        impl.register(obj);
+    }
+
+    /**
+     *  Unregisters an object with the HistoryManager.
+     *
+     *  @param obj Object to unregister.
+     */
+    public static function unregister(obj:IHistoryManagerClient):void
+    {
+        impl.unregister(obj);
+    }
+
+    /**
+     *  Saves the application's current state so it can be restored later.
+     *  This method is automatically called by navigator containers
+     *  whenever their navigation state changes.
+     *  If you registered an interface with the HistoryManager,
+     *  you are responsible for calling the save() method
+     *  when the application state changes.
+     */
+    public static function save():void
+    {
+        impl.save();
+    }
+
+}
+
+}
+


Transferred from the Adobe Open Source Subversion Repository

Revision: 11385
Author:   dloverin@adobe.com
Date:     2009-11-02T23:46:05.006747Z

Log Message:
-----------
Load a style module into the correct style manager.

IStyleManager:
•	Update loadStyleDeclarations() to have the same parameters as StyleManager.loadStyleDeclarations().

StyleManagerImpl:
•	Update loadStyleDeclarations signature.
•	Pass the correct style manager instance to styleModule.setStyleDeclarations().

QE notes: None.
Doc notes: None.
Bugs: SDK-23975
Reviewer: Alex
Tests run: checkintests
Is noteworthy for integration: No.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>

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

--- frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
+++ frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
@@ -1415,10 +1415,12 @@
 	 */
 	public function loadStyleDeclarations(
 						url:String, update:Boolean = true,
-                        trustContent:Boolean = false):
+                        trustContent:Boolean = false,
+                        applicationDomain:ApplicationDomain = null,
+                        securityDomain:SecurityDomain = null):
 						IEventDispatcher
 	{
-		return loadStyleDeclarations2(url, update);
+		return loadStyleDeclarations2(url, update, applicationDomain, securityDomain);
 	}

     /**
@@ -1447,15 +1449,16 @@
 						IEventDispatcher
     {
         var module:IModuleInfo = ModuleManager.getModule(url);
-
+        var thisStyleManager:IStyleManager2 = this;
+
         var readyHandler:Function = function(moduleEvent:ModuleEvent):void
         {
             var styleModule:IStyleModule =
                 IStyleModule(moduleEvent.module.factory.create());

             // Register the style module to use this style manager.
-            moduleEvent.module.factory.registerImplementation("mx.styles::IStyleManager2", instance);
-            styleModule.setStyleDeclarations(instance);
+            moduleEvent.module.factory.registerImplementation("mx.styles::IStyleManager2", thisStyleManager);
+            styleModule.setStyleDeclarations(thisStyleManager);
             styleModules[moduleEvent.module.url].styleModule = styleModule;

             if (update)


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/filters/DropShadowFilter.as
+++ frameworks/projects/spark/src/spark/filters/DropShadowFilter.as
@@ -1,4 +1,4 @@
-package flex.filters
+package mx.filters
 {
 import flash.filters.BitmapFilter;
 import flash.filters.DropShadowFilter;


Add pi to base AS3 class

Add pi to base AS3 class

--- lib/as3/src/org/voisen/crayon/CrayonProgram.as
+++ lib/as3/src/org/voisen/crayon/CrayonProgram.as
@@ -82,6 +82,11 @@
       return Math.cos( params.value );
     }

+    protected function get pi():Number
+    {
+      return Math.PI;
+    }
+
     private function setupParams( defaultParamName:String, params:Object ):Object
     {
       if( params.__default )


Fixed vertical layout problem for hboxes

--- src/laml/layout/FlowLayout.as
+++ src/laml/layout/FlowLayout.as
@@ -29,7 +29,7 @@
 				var len:int = kids.length;
 				for(var i:int; i < len; i++) {
 					child = kids[i] as LayoutableDelegate;
-					result += child.minSize || child.fixed || child.preferred;
+					result += child.fixed || child.preferred || child.minSize;
 				}
 				return result + delegate.gutterSum + delegate.padding;
 			}


Have GameDefinition include all the classes it will naturally require.

git-svn-id: a3e1eb16dde062992de22c830ed8045c8013209a@305 c613c5cb-e716-0410-b11b-feb51c14d237

--- src/as/com/threerings/ezgame/data/GameDefinition.as
+++ src/as/com/threerings/ezgame/data/GameDefinition.as
@@ -104,5 +104,17 @@
         out.writeObject(match);
         out.writeObject(params);
     }
+
+    /** This function is required to ensure that the compiler includes certain classes. */
+    public function fuckingCompiler () :void
+    {
+        var c :Class;
+        // Parameter derivations
+        c = RangeParameter;
+        c = ToggleParameter;
+        c = ChoiceParameter;
+        // MatchConfig derivations
+        c = TableMatchConfig;
+    }
 }
 }


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

--- frameworks/projects/framework/src/mx/core/ComponentDescriptor.as
+++ frameworks/projects/framework/src/mx/core/ComponentDescriptor.as
@@ -0,0 +1,378 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.core
+{
+
+/**
+ *  ComponentDescriptor is the base class for the UIComponentDescriptor class,
+ *  which encapsulates the information that you specified in an MXML tag
+ *  for an instance of a visual component.
+ *  In Flex, non-visual components are treated differently and do not
+ *  have descriptors, but in a future version the ComponentDescriptor
+ *  base class may be used for them as well.
+ *
+ *
Most of the tags in an MXML file describe a tree of UIComponent objects.
+ *  For example, the <mx:Application> tag represents a
+ *  UIComponent object, and its child containers and controls are all
+ *  UIComponent objects.

+ *
+ *
The MXML compiler compiles each of these MXML tags into a
+ *  UIComponentDescriptor instance.
+ *  To be precise, the MXML compiler autogenerates an ActionScript
+ *  data structure which is a tree of UIComponentDescriptor objects.

+ *
+ *
At runtime, the createComponentsFromDescriptors() method
+ *  of the Container class uses the information in the UIComponentDescriptor
+ *  objects in the container's childDescriptors array to create
+ *  the actual UIComponent objects that are the container's children,
+ *  plus deeper descendants as well.
+ *  Depending on the value of the container's creationPolicy,
+ *  property, the descendants might be created at application startup,
+ *  when some part of the component is about to become visible,
+ *  or when the application developer manually calls
+ *  the createComponentsFromDescriptors() method.

+ *
+ *
You do not typically create ComponentDescriptor or UIComponentDescriptor
+ *  instances yourself; you can access the ones that the MXML compiler
+ *  autogenerates, via the childDescriptors array
+ *  of the Container class.

+ *
+ *  @see mx.core.UIComponentDescriptor
+ *  @see mx.core.Container#childDescriptors
+ *  @see mx.core.Container#creationPolicy
+ *  @see mx.core.Container#createComponentsFromDescriptors()
+ */
+public class ComponentDescriptor
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor
+     *
+     *  @param descriptorProperties An Object containing name/value pairs
+     *  for the properties of the ComponentDescriptor object, such as its
+     *  type, id, propertiesFactory
+     *  and events
+     */
+    public function ComponentDescriptor(descriptorProperties:Object)
+    {
+        super();
+
+        for (var p:String in descriptorProperties)
+        {
+            this[p] = descriptorProperties[p];
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  document
+    //----------------------------------
+
+    /**
+     *  A reference to the document Object in which the component
+     *  is to be created.
+     *
+     *  @see mx.core.IUIComponent#document
+     */
+    public var document:Object;
+
+    //----------------------------------
+    //  events
+    //----------------------------------
+
+    /**
+     *  An Object containing name/value pairs for the component's
+     *  event handlers, as specified in MXML.
+     *
+     *
For example, if you write

+     *
+     *

+     *  <mx:DataGrid id="dg" initialize="fetchData(); initDataGrid();"  change="changeHandler(event);"/>
+     *

+     *
+     *
then the descriptor's events property is the Object

+     *
+     *

+     *  { initialize: "__dg_initialize", change: "__dg_change" }
+     *

+     *
+     *
The eventproperty is null
+     *  if no MXML event handlers were specified for the component

+     *
+     *
The strings "__dg_initialize"
+     *  and "__dg_change" are the names of event handler
+     *  methods that the MXML compiler autogenerates.
+     *  The body of these methods contain the ActionScript statements
+     *  that you specified as the values of the event attributes.
+     *  For example, the autogenerated initialize handler is

+     *
+     *

+     *  public function __dg_initialize(event:mx.events.FlexEvent):void
+     *  {
+     *      fetchData();
+     *      initDataGrid();
+     *  }
+     *

+     *
+     *
You should not assume that the autogenerated event handlers
+     *  will always be specified by name; this may change in a future
+     *  version of Flex.

+     *
+     *
This property is used by the Container method
+     *  createComponentsFromDescriptors()
+     *  to register the autogenerated event handlers
+     *  using the addEventListener() method.

+     */
+    public var events:Object;
+
+    //----------------------------------
+    //  id
+    //----------------------------------
+
+    /**
+     *  The identifier for the component, as specified in MXML.
+     *
+     *
For example, if you write

+     *
+     *

+     *  <mx:TextInput id="firstName" text="Enter your first name here"/>
+     *

+     *
+     *
then the descriptor's id property is the String
+     *  "firstName".

+     *
+     *
The id property is null
+     *  if no MXML id was specified for the component.

+     *
+     *
The value of the id property becomes the name
+     *  of a public variable in the MXML document object,
+     *  autogenerated by the MXML compiler.
+     *  The value of this variable is a reference to the UIComponent object
+     *  created from this descriptor.
+     *  This is why you can, for example, reference the TextInput control's
+     *  text property as firstName.text
+     *  from anywhere within the document containing this TextInput instance.

+     *
+     *
If an id is specified, and it isn't the empty string,
+     *  it also becomes the name of the DisplayObject object.
+     *  If an id is not specified or is empty, the DisplayObject
+     *  object's name remains an autogenerated string,
+     *  such as "Button3", as returned by the
+     *  NameUtil.createUniqueName() method.
+     *  The name is used in generating the string returned
+     *  by the toString() method.
+     *  It can also be used to find the component from its parent
+     *  by calling getChildByName().

+     *
+     *  @see flash.display.DisplayObject#name
+     */
+    public var id:String;
+
+    //----------------------------------
+    //  properties
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _properties:Object;
+
+    /**
+     *  An Object containing name/value pairs for the component's properties,
+     *  as specified in MXML.
+     *
+     *
For example, if you write

+     *
+     *

+     *  <mx:TextInput width="150" text="Hello"/>
+     *

+     *
+     *
then the descriptor's properties property
+     *  is the Object

+     *
+     *

+     *  { width: 150, text: "Hello" }
+     *

+     *
+     *
The properties property is null
+     *  if no MXML properties were specified for the component.
+     *  In this case, the component will use default property values.

+     *
+     *
 This Object is produced by calling the function specified by the
+     *  propertiesFactory property, and then cached
+     *  for subsequent access.
+     *  However, when a Repeater produces multiple instances of a component
+     *  from the same descriptor, a fresh copy of the properties
+     *  Object should be produced for each component instance so that they
+     *  don't share property values which are Arrays or Object references.
+     *  The Repeater accomplishes this by calling the
+     *  invalidateProperties() method on the descriptor.

+     *
+     *  @see #propertiesFactory
+     *  @see #invalidateProperties()
+     */
+    public function get properties():Object
+    {
+        if (_properties)
+            return _properties;
+
+        if (propertiesFactory != null)
+            _properties = propertiesFactory.call(document);
+
+        // Propagate the 'document' property, set by the MXML compiler
+        // on the document descriptor, down to all descendant descriptors.
+        if (_properties)
+        {
+            var cd:Array = _properties.childDescriptors;
+            if (cd)
+            {
+                var n:int = cd.length;
+                for (var i:int = 0; i < n; i++)
+                {
+                    cd[i].document = document;
+                }
+            }
+        }
+        else
+        {
+            _properties = {};
+        }
+
+        return _properties;
+    }
+
+    //----------------------------------
+    //  propertiesFactory
+    //----------------------------------
+
+    /**
+     *  A Function that returns an Object containing name/value pairs
+     *  for the component's properties, as specified in MXML.
+     *
+     *
For example, if you write

+     *
+     *

+     *  <mx:TextInput width="150" text="Hello">
+     *

+     *
+     *
then the descriptor's propertiesFactory property
+     *  is the Function:

+     *
+     *

+     *  function():Object { return { width: 150, text: "Hello" }; }
+     *

+     *
+     *
The propertiesFactoryproperty is null
+     *  if no MXML properties were specified for the component.
+     *  In this case, the component will use default property values.

+     *
+     *
The reason that propertyFactory is a
+     *  Function returning an Object rather than an actual Object
+     *  is to allow the tree of ComponentDescriptor objects
+     *  to "unfold" incrementally.
+     *  If all the descriptors in the descriptor tree for the document
+     *  were created at launch time, the time to launch would be greater.

+     *
+     *
The properties property returns a cached Object
+     *  that was produced by this factory function.

+     *
+     *
Note: Event handlers such as click="doSomething();"
+     *  appear in the events Object,
+     *  not in the properties Object.

+     *
+     *  @see #properties
+     */
+    public var propertiesFactory:Function;
+
+    //----------------------------------
+    //  type
+    //----------------------------------
+
+    /**
+     *  The Class of the component, as specified in MXML.
+     *
+     *
For example, if you write

+     *
+     *

+     *  <mx:TextInput/>
+     *

+     *
+     *
then the descriptor's type property
+     *  the Class mx.controls.TextInput.

+     *
+     *
The property is never null for the
+     *  ComponentDescriptor objects created by the MXML compiler,
+     *  because every MXML tag has a tag name such as mx:TextInput.

+     *
+     *
The mapping between an MXML tag and its corresponding class
+     *  is determined by the XML namespace and the "manifest" file,
+     *  if any, that is associated with that namespace.
+     *  For example, the standard Flex namespace
+     *  http://www.adobe.com/2006/mxml
+     *  represented by the mx: prefix is associated (in the flex-config.xml
+     *  file) with the manifest file mxml-manifest.xml,
+     *  and this file has the tag

+     *
+     *

+     *  <component id="TextInput" class="mx.controls.TextInput"/>
+     *

+     *
+     *
which maps the tag name mx:TextInput
+     *  to the Class mx.controls.TextInput.
+     *  Note that the use of a manifest file allows components in single
+     *  XML namespace to map to classes in multiple ActionScript packages.

+     */
+    public var type:Class;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Invalidates the cached properties property.
+     *  The next time you read the properties property,
+     *  the properties are regenerated from the function specified by the
+     *  value of the propertiesFactory property.
+     */
+    public function invalidateProperties():void
+    {
+        _properties = null;
+    }
+
+    /**
+     *  Returns the string "ComponentDescriptor_" plus the value of the
+     *  id property.
+     *
+     *  @return The string "ComponentDescriptor_" plus the value of the
+     *  id property.
+     */
+    public function toString():String
+    {
+        return "ComponentDescriptor_" + id;
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 11586
Author:   klin@adobe.com
Date:     2009-11-09T21:51:48.562271Z

Log Message:
-----------
Fix for Range-based components to behave like the MX Slider instead of the MX NumericStepper. Also, snapInterval now defaults to stepSize if snapInterval is not explicitly set. Various fixes for wireframe skins.

Range.as - Valid values are now increments of snapInterval starting from the minimum value, but are still constrained by the maximum. The maximum is still included in the range. For example, a Slider with min=1, max=10, and snapInterval=2 has a range of [1, 3, 5, 7, 9, 10]. I modified nearestValidValue() to take the minimum into account when calculating the nearest value. Also, added logic to have snapInterval default to stepSize if stepSize is explicitly set and snapInterval is not. Edited ASDocs to reflect these changes.

Spinner.as, NumericStepper.as - Edited ASDocs to reflect the Range changes.

CheckBoxSkin.mxml, RadioButtonSkin.mxml - Added focusSkinExclusions() for the labelDisplay.

HSliderSkin.mxml, VSliderSkin.mxml - Added dataTip.

QE notes: No
Doc notes: No
Bugs: SDK-23264, SDK-23602, SDK-23903, SDK-23907
Reviewer: Hans
Tests run: checkintests, Slider, NumericStepper, ScrollBar
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -712,10 +712,10 @@
      *  Commits the current text of textDisplay
      *  to the value property.
      *  This method uses the nearestValidValue() method
-     *  to round the input value to the closest multiple of
-     *  the snapInterval property,
-     *  and constrains the value to the range defined by the
-     *  maximum and minimum properties.
+     *  to round the input value to the closest valid value.
+     *  Valid values are defined by the sum of the minimum
+     *  with integer multiples of the snapInterval. It is also
+     *  constrained by and includes the maximum property.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 8025
Author:   jszeto@adobe.com
Date:     2009-06-20T00:06:30.253117Z

Log Message:
-----------
NumericStepper keyboard bug

http://bugs.adobe.com/jira/browse/SDK-21887 - NumericStepper no longer increments via keyboard keys

Added keyDown listener in capture phase to NumericStepper. Add/remove listeners in the focusIn/Out handler.

QE Notes: None
Doc Notes: None
Bugs: SDK-21887
Reviewer: Alex

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/components/Spinner.as</path>

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

--- frameworks/projects/spark/src/spark/components/NumericStepper.as
+++ frameworks/projects/spark/src/spark/components/NumericStepper.as
@@ -15,6 +15,7 @@
 import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.FocusEvent;
+import flash.events.KeyboardEvent;

 import mx.core.IIMESupport;
 import mx.events.FlexEvent;
@@ -597,6 +598,25 @@
     //  Event handlers
     //
     //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function focusInHandler(event:FocusEvent):void
+    {
+    	super.focusInHandler(event);
+    	addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function focusOutHandler(event:FocusEvent):void
+    {
+    	super.focusOutHandler(event);
+    	removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
+    }
+

     /**
      *  @private


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

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

 package spark.filters
 {


qnd: add an option to hide the "allowCookies" popup: hideCookiesAlert=true

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@85873 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -617,7 +617,8 @@
 						}
 						else
 						{
-							sendNotification(NotificationType.ALERT, {title: MessageStrings.getString('ALLOW_COOKIES_TITLE'), message: MessageStrings.getString('ALLOW_COOKIES'), buttons: [MessageStrings.getString('ALLOW'), MessageStrings.getString('DISALLOW')], callbackFunction: setAllowCookies, props: {buttonSpacing: 5}});
+							if (!_flashvars.hideCookiesAlert || _flashvars.hideCookiesAlert=="false")
+								sendNotification(NotificationType.ALERT, {title: MessageStrings.getString('ALLOW_COOKIES_TITLE'), message: MessageStrings.getString('ALLOW_COOKIES'), buttons: [MessageStrings.getString('ALLOW'), MessageStrings.getString('DISALLOW')], callbackFunction: setAllowCookies, props: {buttonSpacing: 5}});
 						}
 					}


def: 6752 pause didn't work in livestream when autoPlay was set

--- kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
+++ kdp3Lib/src/com/kaltura/kdpfl/view/media/KMediaPlayerMediator.as
@@ -285,7 +285,6 @@
 				NotificationType.KDP_EMPTY,
 				NotificationType.KDP_READY,
 				LiveStreamCommand.LIVE_STREAM_READY,
-				NotificationType.LIVE_ENTRY,
 				NotificationType.PLAYER_PLAYED,
 				NotificationType.OPEN_FULL_SCREEN,
 				NotificationType.HAS_OPENED_FULL_SCREEN,
@@ -389,7 +388,7 @@
 				case LiveStreamCommand.LIVE_STREAM_READY:
 					//this means that this is a live stream and it is broadcasting now
 					_mediaProxy.vo.isOffline = false;
-					if (_flashvars.autoPlay=="true" ||  _mediaProxy.vo.singleAutoPlay) {
+					if ((_flashvars.autoPlay=="true" && !_hasPlayed) ||  _mediaProxy.vo.singleAutoPlay) {
 						sendNotification(NotificationType.DO_PLAY);
 						_mediaProxy.vo.singleAutoPlay = false;
 					}


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

--- frameworks/projects/framework/src/mx/controls/colorPickerClasses/WebSafePalette.as
+++ frameworks/projects/framework/src/mx/controls/colorPickerClasses/WebSafePalette.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2004-2006 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: 11731
Author:   smgilson@adobe.com
Date:     2009-11-12T21:14:24.811066Z

Log Message:
-----------
ASDoc updates for bugs: SDK-23414, FLEXDOCS-609, FLEXDOCS-552

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/utils/ChangeWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -709,6 +709,8 @@
     /**
      *  @copy spark.components.RichEditableText#selectionHighlighting
      *
+     *  @default TextSelectionHighlighting.WHEN_FOCUSED
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
@@ -880,13 +882,13 @@
         }
     }

-	/**
-	 *  @private
-	 */
-	override protected function getCurrentSkinState():String
-	{
+    /**
+     *  @private
+     */
+    override protected function getCurrentSkinState():String
+    {
         return enabled ? "normal" : "disabled";
-	}
+    }

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 20097
Author:   jasonsj@adobe.com
Date:     2011-02-03T17:48:25.773740Z

Log Message:
-----------
Remove use of minWidth and minHeight where possible from mobile skins to fix constraint use cases. Replace usage of minWidth/minHeight and layoutMeasuredWidth/layoutMeasuredHeight with MobileSkin property measuredDefaultWidth/measuredDefaultHeight.

Use minWidth/minHeight for skins that do not scale down: Beveled buttons, CheckBox, RadioButton, and scroll bars.

Doc notes:
Bugs:
SDK-28715 Cannot size and position button correctly in i4 build.
Reviewer: egeorgie
Tests run: checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/MobileSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarFirstButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/HSliderDataTip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaVScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuItemSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TabbedViewNavigatorTabBarTabSkinBase.as</path>
<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/mobile/ButtonBarLastButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ImageSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/BeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ActionBarButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaHScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</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/HScrollBarSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarMiddleButtonSkin.as
@@ -68,7 +68,7 @@
             }
             default:
             {
-                // default PPI160
+                // default DPI_160
                 upBorderSkin = spark.skins.mobile160.assets.ButtonBarMiddleButton_up;
                 downBorderSkin = spark.skins.mobile160.assets.ButtonBarMiddleButton_down;
                 selectedBorderSkin = spark.skins.mobile160.assets.ButtonBarMiddleButton_selected;


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

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

 package spark.components.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 8654
Author:   jszeto@adobe.com
Date:     2009-07-17T00:20:24.630989Z

Log Message:
-----------
TrackBase mouse handling

http://bugs.adobe.com/jira/browse/SDK-22044 - SkinnableComponent mouse handling needs to be MarshallPlan compliant

I have updated the track based components mouse handlers to be Marshall Plan compliant. The previous code was using the SkinnableComponent.addSystemHandlers which listen for the event on both the systemManager and the stage. I removed addSystemHandler/removeSystemHandler and added the listeners to the sandbox. I also added listeners for the SandboxMouseEvents for MOUSE_UP_SOMEWHERE.

QE notes: Need marshall plan tests for Slider and ScrollBar
Doc notes: None
Bugs: SDK-22044
Reviewer: Glenn, Alex
Tests run: ScrollBar, Scroller, Slider
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<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/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -875,79 +875,6 @@
     //---------------------------------
     //  Utility methods for subclasses
     //---------------------------------
-
-    // FIXME (chaase): These could actually be static functions in a utility
-    // class instead of protected methods in a component superclass. But since
-    // they assume access to the systemManager property of the component, this
-    // seems like the right place for now. If we're trying to save on footprint
-    // at some point, we could extract the methods out of here and pass in
-    // the component as an argument to derive the systemManager instead.
-
-    /**
-     * Add handlers to both the SystemManager and stage objects to track this
-     * event both on and off the stage.
-     *
-     *  @param eventType The event type to handle.
-     *
-     *  @param onstageHandler The handler added to the SystemManager object.
-     *
-     *  @param offstageHandler The handler added to the stage.
-     *  If null or not specified, the onstagehandler
-     *  is used.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function addSystemHandlers(eventType:String, onstageHandler:Function,
-           offstageHandler:Function = null):void
-    {
-        if (offstageHandler == null)
-            offstageHandler = onstageHandler;
-
-        // FIXME (jszeto): Make marshall plan compliant  SDK-22044
-        if (systemManager)
-        {
-            // For on-stage events
-            systemManager.addEventListener(eventType, onstageHandler, true /*capture*/);
-            // For off-stage events
-            systemManager.stage.addEventListener(eventType, offstageHandler);
-        }
-    }
-
-    /**
-     * Removes handlers from both the systemManager and stage objects for this
-     * event.
-     * Parameters passed to this method should match the
-     * parameters supplied to the corresponding addSystemHandlers() method.
-     *
-     *  @param eventType The event type to handle.
-     *
-     *  @param onstageHandler The handler added to the SystemManager object.
-     *
-     *  @param offstageHandler The handler added to the stage.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    protected function removeSystemHandlers(eventType:String, onstageHandler:Function,
-           offstageHandler:Function = null):void
-    {
-        if (offstageHandler == null)
-            offstageHandler = onstageHandler;
-
-        // FIXME (jszeto): Make marshall plan compliant SDK-22044
-        if (systemManager)
-        {
-            // For on-stage events
-            systemManager.removeEventListener(eventType, onstageHandler, true /*capture*/);
-            // For off-stage events
-            systemManager.stage.removeEventListener(eventType, offstageHandler);
-        }
-    }

     /**
      * @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 12747
Author:   mhorn@adobe.com
Date:     2009-12-09T21:22:56.886279Z

Log Message:
-----------
asdoc updates for l10n

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarFirstButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ComboBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerIncrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarLastButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TabBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowCloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerDecrementButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ComboBoxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IFlexModuleFactory.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TitleWindowSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarMiddleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/SpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/SparkSkin.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/frameworks/projects/wireframe/src/spark/skins/wireframe/CheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/TabBarButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericStepperTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/PanelSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ButtonBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/ApplicationSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -207,10 +207,10 @@
     //----------------------------------

     /**
-     *  An Array that lists the skin parts
+     *  Lists the skin parts that are
      *  excluded from bitmaps captured and used to
-     *  show focus.  This list is only used if
-     *  the skin has a null focusSkinExclusions property.
+     *  show focus. This list is only used if
+     *  the skin's focusSkinExclusions property is null.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -777,12 +777,12 @@
      *
      *
Override this function to attach behavior to the part.
      *  If you want to override behavior on a skin part that is inherited from a base class,
-     *  make sure that you do not call the super.partAdded() method.
+     *  do not call the super.partAdded() method.
      *  Otherwise, you should always call the super.partAdded() method.

      *
      *  @param partname The name of the part.
      *
-     *  @param instance The part.
+     *  @param instance The instance of the part.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -812,7 +812,7 @@
      *
      *  @param partname The name of the part.
      *
-     *  @param instance The part.
+     *  @param instance The instance of the part.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -846,7 +846,7 @@
      *  Dynamic skin parts should always be instantiated by this method,
      *  rather than directly by calling the newInstance() method on the factory.
      *  This method creates the part, but does not add it to the display list.
-     *  The componet must call the Group.addElement() method, or the appropriate
+     *  The component must call the Group.addElement() method, or the appropriate
      *  method to add the skin part to the display list.
      *
      *  @param partName The name of the part.
@@ -891,7 +891,7 @@
      *
      *  @param partname The name of the part.
      *
-     *  @param instance The part.
+     *  @param instance The instance of the part.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


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

--- frameworks/projects/charts/src/mx/charts/series/renderData/BubbleSeriesRenderData.as
+++ frameworks/projects/charts/src/mx/charts/series/renderData/BubbleSeriesRenderData.as
@@ -0,0 +1,68 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.charts.series.renderData
+{
+
+import mx.charts.chartClasses.RenderData
+
+/**
+ *  Represents all the information needed by the BubbleSeries to render.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class BubbleSeriesRenderData extends RenderData
+{
+    include "../../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param cache The list of BubbleSeriesItem objects representing the items in the dataProvider.
+     *  @param filteredCache The list of BubbleSeriesItem objects representing the items in the dataProvider that remain after filtering.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function BubbleSeriesRenderData(cache:Array /* of BubbleSeriesItem */ = null,
+                                           filteredCache:Array /* of BubbleSeriesItem */ = null)
+    {
+        super(cache, filteredCache);
+
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():RenderData
+    {
+        return new BubbleSeriesRenderData(cache, filteredCache);
+    }
+}
+
+}


Update version

Update version

--- src/com/merlinds/miracle_tool/controllers/SWFSeparatorCommand.as
+++ src/com/merlinds/miracle_tool/controllers/SWFSeparatorCommand.as
@@ -99,6 +99,7 @@

 		[Inline]
 		private function getElementBounds(element:ElementVO):ElementVO {
+			//TODO create tests for this/ This is one of glitches reason
 			var view:DisplayObject = element.view;
 			var ratio:Number = view.width / view.transform.pixelBounds.width;
 			var topLeftPoint:Point = new Point(view.transform.pixelBounds.x - view.x - this.projectModel.boundsOffset,


Transferred from the Adobe Open Source Subversion Repository

Revision: 11664
Author:   smgilson@adobe.com
Date:     2009-11-11T19:42:00.734447Z

Log Message:
-----------
Update ASDoc comments on new MXItemRenderer classes, and fix a broken HTML tag in Range.as

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>

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

--- frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as
+++ frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as
@@ -20,12 +20,14 @@
 [Exclude(name="listData", kind="property")]

 /**
- *  The MXItemRenderer class is the base class for Spark item renderers in
- *  Halo (mx) classes
+ *  The MXDataGridItemRenderer class defines the Spark item renderer class
+ *  for use with the MX DataGrid control.
+ *  This class lets you use the Spark item renderer architecture with the
+ *  MX DataGrid control.
  *
  *  @mxml
  *
- *
The <s:MXItemRenderer> tag inherits all of the tag
+ *
The <s:MXDataGridItemRenderer> tag inherits all of the tag
  *  attributes of its superclass and adds the following tag attributes:

  *
  *

@@ -34,6 +36,8 @@
  *  />
  *

  *
+ *  @see mx.controls.DataGrid
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
@@ -69,6 +73,8 @@
     /**
      *  The implementation of the listData property
      *  as defined by the IDropInListItemRenderer interface.
+     *  Use this property to access information about the
+     *  data item displayed by the item renderer.
      *
      *  @see mx.controls.listClasses.IDropInListItemRenderer
      *


Transferred from the Adobe Open Source Subversion Repository

Revision: 8393
Author:   jszeto@adobe.com
Date:     2009-07-06T20:46:27.558863Z

Log Message:
-----------
Updated FIXME comments

Changed some to TODOs, removed some and filed bugs for the remainder

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Deepa

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as
@@ -206,7 +206,7 @@
      */
     private function addOpenTriggers():void
     {
-        // FIXME (jszeto): Change this to be mouseDown. Figure out how to not
+        // TODO (jszeto): Change this to be mouseDown. Figure out how to not
         // trigger systemManager_mouseDown.
         if (openButton)
         {
@@ -225,7 +225,7 @@
      */
     private function removeOpenTriggers():void
     {
-        // FIXME (jszeto): Change this to be mouseDown. Figure out how to not
+        // TODO (jszeto): Change this to be mouseDown. Figure out how to not
         // trigger systemManager_mouseDown.
         if (openButton)
         {
@@ -244,7 +244,6 @@
      */
     private function addCloseTriggers():void
     {
-        // FIXME (jszeto): Change these to be marshall plan compliant
         if (openButton)
         {
             if (isNaN(rollOverOpenDelay))
@@ -270,7 +269,6 @@
      */
     private function removeCloseTriggers():void
     {
-        // FIXME (jszeto): Change these to be marshall plan compliant
         if (openButton)
         {
             if (isNaN(rollOverOpenDelay))


Transferred from the Adobe Open Source Subversion Repository

Revision: 7148
Author:   gruehle@adobe.com
Date:     2009-05-20T19:29:46.978196Z

Log Message:
-----------
Add comment AdobePatentID="B976"

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SkinPartExtension.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/Skin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SkinPartEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/SkinnableComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -8,6 +8,8 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
+
+// AdobePatentID="B976"

 package spark.components.supportClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22358
Author:   hmuller@adobe.com
Date:     2011-09-01T18:24:05.872728Z

Log Message:
-----------
When assigning focus to a DataGrid item editor, temporarily disable editor FOCUS_OUT handling.

QE notes:
Doc notes:
Bugs: SDK-31093
Reviewer: Glenn, Darrell
Tests run: checkin, mustella
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as

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

--- frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -294,9 +294,16 @@
                 (column.imeMode == null) ? dataGrid.imeMode : column.imeMode;

         var fm:IFocusManager = grid.focusManager;
-        // trace("setting focus to item editor");
         if (itemEditorInstance is IFocusManagerComponent)
+        {
+            // Temporarily remove the FOCUS_OUT handler: if we give the editor the focus and
+            // it immediately vectors it to a non-editor descendant, like to the mobile soft
+            // keyboard, we don't want to end the editor session.
+
+            itemEditorInstance.removeEventListener(FocusEvent.FOCUS_OUT, editor_focusOutHandler);
             fm.setFocus(IFocusManagerComponent(itemEditorInstance));
+            itemEditorInstance.addEventListener(FocusEvent.FOCUS_OUT, editor_focusOutHandler);
+        }

         lastEditedItemPosition = _editedItemPosition;

@@ -1464,7 +1471,7 @@
         if (event.relatedObject)
         {
             var component:IUIComponent = getIUIComponent(event.relatedObject);
-            if (component && editorOwns(component))
+            if (component && (component && editorOwns(component)))
                 return;
         }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 12629
Author:   clucier@adobe.com
Date:     2009-12-07T23:03:24.738913Z

Log Message:
-----------
The SetStyle override not only resets values that were set as inline styles.  It clears overridden styles so that inherited styles can continue to take effect once the override is removed.

QE notes:  None
Doc notes: None
Bugs: SDK-24563
Reviewer: Glenn
Tests run: Checkin, States
Is noteworthy for integration: No

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as

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

--- frameworks/projects/framework/src/mx/states/SetStyle.as
+++ frameworks/projects/framework/src/mx/states/SetStyle.as
@@ -126,6 +126,12 @@
      *  Storage for the old style value.
      */
     private var oldValue:Object;
+
+    /**
+     *  @private
+     *  True if old value was set as an inline style.
+     */
+    private var wasInline:Boolean;

     /**
      *  @private
@@ -277,41 +283,43 @@
         var context:Object = getOverrideContext(target, parent);
         if (context != null)
         {
-        	appliedTarget = context;
-        	var obj:IStyleClient = IStyleClient(appliedTarget);
-
-	        var relatedProps:Array = RELATED_PROPERTIES[name] ?
-	                                 RELATED_PROPERTIES[name] :
-	                                 null;
-
-	        // Remember the original value so it can be restored later
-	        // after we are asked to remove our override (and only if we
-	        // aren't being asked to re-apply a value).
-	        if (!applied)
-	        {
-	            oldValue = obj.getStyle(name);
-	        }
-
-	        if (relatedProps)
-	        {
-	            oldRelatedValues = [];
-
-	            for (var i:int = 0; i < relatedProps.length; i++)
-	                oldRelatedValues[i] = obj[relatedProps[i]];
-	        }
-
-	        // Set new value
-	        if (value === null)
-	        {
-	            obj.clearStyle(name);
-	        }
-	        else if (oldValue is Number)
-	        {
-	            // The "value" for colors can be several different formats:
-	            // 0xNNNNNN, #NNNNNN or "red". We can't use
-	            // StyleManager.isColorStyle() because that only returns true
-	            // for inheriting color styles and misses non-inheriting styles like
-	            // backgroundColor.
+            appliedTarget = context;
+            var obj:IStyleClient = IStyleClient(appliedTarget);
+
+            var relatedProps:Array = RELATED_PROPERTIES[name] ?
+                                     RELATED_PROPERTIES[name] :
+                                     null;
+
+            // Remember the original value so it can be restored later
+            // after we are asked to remove our override (and only if we
+            // aren't being asked to re-apply a value).
+            if (!applied)
+            {
+                wasInline = obj.styleDeclaration &&
+                    obj.styleDeclaration.getStyle(name) !== undefined;
+                oldValue = wasInline ? obj.getStyle(name) : null;
+            }
+
+            if (relatedProps)
+            {
+                oldRelatedValues = [];
+
+                for (var i:int = 0; i < relatedProps.length; i++)
+                    oldRelatedValues[i] = obj[relatedProps[i]];
+            }
+
+            // Set new value
+            if (value === null)
+            {
+                obj.clearStyle(name);
+            }
+            else if (oldValue is Number)
+            {
+                // The "value" for colors can be several different formats:
+                // 0xNNNNNN, #NNNNNN or "red". We can't use
+                // StyleManager.isColorStyle() because that only returns true
+                // for inheriting color styles and misses non-inheriting styles like
+                // backgroundColor.
                 if (name.toLowerCase().indexOf("color") != -1)
                 {
                     var styleManager:IStyleManager2;
@@ -320,7 +328,7 @@
                     else
                         styleManager = parent.styleManager;

-	                obj.setStyle(name, styleManager.getColorName(value));
+                    obj.setStyle(name, styleManager.getColorName(value));
                 }
                 else if (value is String &&
                          String(value).lastIndexOf("%") ==
@@ -330,17 +338,17 @@
                 }
                 else
                 {
-	                obj.setStyle(name, Number(value));
+                    obj.setStyle(name, Number(value));
                 }
-	        }
-	        else if (oldValue is Boolean)
-	        {
-	            obj.setStyle(name, toBoolean(value));
-	        }
-	        else
-	        {
-	            obj.setStyle(name, value);
-	        }
+            }
+            else if (oldValue is Boolean)
+            {
+                obj.setStyle(name, toBoolean(value));
+            }
+            else
+            {
+                obj.setStyle(name, value);
+            }
         }
         else if (!applied)
         {
@@ -369,29 +377,35 @@
         var obj:IStyleClient = IStyleClient(getOverrideContext(appliedTarget, parent));
         if (obj != null && appliedTarget)
         {
-	        // Restore the old value
-	        if (oldValue is Number)
-	            obj.setStyle(name, Number(oldValue));
-	        else if (oldValue is Boolean)
-	            obj.setStyle(name, toBoolean(oldValue));
-	        else if (oldValue === null)
-	            obj.clearStyle(name);
-	        else
-	            obj.setStyle(name, oldValue);
-
-
-	        var relatedProps:Array = RELATED_PROPERTIES[name] ?
-	                                 RELATED_PROPERTIES[name] :
-	                                 null;
-
-	        // Restore related property values, if needed
-	        if (relatedProps)
-	        {
-	            for (var i:int = 0; i < relatedProps.length; i++)
-	            {
-	                obj[relatedProps[i]] = oldRelatedValues[i];
-	            }
-	        }
+            if (wasInline)
+            {
+                // Restore the old value
+                if (oldValue is Number)
+                    obj.setStyle(name, Number(oldValue));
+                else if (oldValue is Boolean)
+                    obj.setStyle(name, toBoolean(oldValue));
+                else if (oldValue === null)
+                    obj.clearStyle(name);
+                else
+                    obj.setStyle(name, oldValue);
+            }
+            else
+            {
+                obj.clearStyle(name);
+            }
+
+            var relatedProps:Array = RELATED_PROPERTIES[name] ?
+                                     RELATED_PROPERTIES[name] :
+                                     null;
+
+            // Restore related property values, if needed
+            if (relatedProps)
+            {
+                for (var i:int = 0; i < relatedProps.length; i++)
+                {
+                    obj[relatedProps[i]] = oldRelatedValues[i];
+                }
+            }
         }
         else
         {


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

--- frameworks/projects/mx/src/mx/containers/FormHeading.as
+++ frameworks/projects/mx/src/mx/containers/FormHeading.as
@@ -26,6 +26,11 @@
  *  Number of pixels between the label area and the heading text.
  *
  *  @default 14
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="indicatorGap", type="Number", format="Length", inherit="yes")]

@@ -34,6 +39,11 @@
  *  The default value is the length of the longest label in the form.
  *  For FormHeading, the labelWidth
  *  is space to the left of the heading text.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="labelWidth", type="Number", format="Length", inherit="yes")]

@@ -41,6 +51,11 @@
  *  Number of pixels above the heading text.
  *
  *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 [Style(name="paddingTop", type="Number", format="Length", inherit="no")]

@@ -91,6 +106,11 @@
  *  @see mx.containers.FormItem
  *
  *  @includeExample examples/FormExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class FormHeading extends UIComponent
 {
@@ -104,6 +124,11 @@

 	/**
 	 *  Constructor.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function FormHeading()
 	{
@@ -142,6 +167,11 @@

 	/**
 	 *  Form heading text.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function get label():String
 	{


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/mx/src/mx/containers/HDividedBox.as
+++ frameworks/projects/mx/src/mx/containers/HDividedBox.as
@@ -13,6 +13,7 @@
 {

 import mx.core.mx_internal;
+use namespace mx_internal;

 //--------------------------------------
 //  Excluded APIs
@@ -105,7 +106,7 @@
 	{
 		super();

-		mx_internal::layoutObject.direction = BoxDirection.HORIZONTAL;
+		layoutObject.direction = BoxDirection.HORIZONTAL;
 	}

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 1098
Author:   jimurphy@adobe.com
Date:     2008-04-03T21:50:39.896200Z

Log Message:
-----------
Merge 3.0.x -- 362:394, 427:429, 603:608, 644:645, 651:663, 672:676, 755:756, 763:766, 785:790, 812:814, 854:861, 862:866, 866:933,971:1009, 1050:1056 --> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/DefaultDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VRule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeaterClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/VideoError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/Locale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/errors/MessageSerializationError.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/SOAPMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ComponentDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/IViewCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/AbstractWebService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/IMenuItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.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/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ILayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Spacer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Fault.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/XMLListCollection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectTargetFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SliderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ScrollEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/videoClasses/CuePointManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/NumericStepperEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/events/ChannelFaultEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/CursorBookmark.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/IXMLEncoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/LoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/ListCollectionView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/FlexClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/SubscriptionInfo.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/DescribeTypeCache.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/logging/LogLogger.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/rpc/src/mx/messaging/MessageAgent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</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/rpc/src/mx/rpc/events/HeaderEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/ITreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemDragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
+++ frameworks/projects/rpc/src/mx/rpc/events/FaultEvent.as
@@ -163,7 +163,7 @@
      *  @param value MessageFaultEvent reference to extract the appropriate
      *  fault information from.
      *  @param token AsyncToken [optional] associated with this fault.
-     *  @returns FaultEvent
+     *  @return Returns a FaultEvent.
      */
     public static function createEventFromMessageFault(value:MessageFaultEvent, token:AsyncToken = null):FaultEvent
     {
@@ -179,7 +179,7 @@
      *  @param fault Fault that contains the details of the FaultEvent.
      *  @param token AsyncToken [optional] associated with this fault.
      *  @param msg Message [optional] associated with this fault.
-     *  @returns FaultEvent
+     *  @return Returns a FaultEvent.
      */
     public static function createEvent(fault:Fault, token:AsyncToken = null, msg:IMessage = null):FaultEvent
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12952
Author:   cframpto@adobe.com
Date:     2009-12-15T14:38:06.277941Z

Log Message:
-----------
Remove two FIXMEs and fix a comment.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/spark/src/spark/components/Label.as
+++ frameworks/projects/spark/src/spark/components/Label.as
@@ -1228,8 +1228,6 @@

                 // 4. Get the initial truncation position on the target
                 // line given this allowed width.
-                // FIXME (cframpto): What if textLines[truncLineIndex] is a backgroundColor
-                // Shape instead of a TextLine?
                 var truncateAtCharPosition:int = getTruncationPosition(
                     TextLine(textLines[truncLineIndex]), allowedWidth);