Transferred from the Adobe Open Source Subversion Repository

Revision: 11088
Author:   hhillen@paciellogroup.com
Date:     2009-10-22T20:14:16.491190Z

Log Message:
-----------
Spark AccImpl Classes

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextAreaAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
@@ -0,0 +1,345 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.accessibility
+{
+
+import flash.accessibility.Accessibility;
+import flash.events.Event;
+import flash.events.FocusEvent;
+import flash.utils.getQualifiedClassName;
+
+import mx.accessibility.AccImpl;
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+
+import spark.components.supportClasses.Slider;
+
+use namespace mx_internal;
+
+/**
+ *  SliderAccImpl is a subclass of AccessibilityImplementation
+ *  which implements accessibility for the Slider class.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class SliderAccImpl extends AccImpl
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private static const ROLE_SYSTEM_INDICATOR:uint = 0x27;
+
+    /**
+     *  @private
+     */
+    private static const ROLE_SYSTEM_PUSHBUTTON:uint = 0x2B;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
+
+    /**
+     *  @private
+     */
+    private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
+
+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
+
+    /**
+     *  @private
+     */
+    private static const EVENT_OBJECT_VALUECHANGE:uint = 0x800E;
+
+
+
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Enables accessibility in the Slider class.
+     *
+     *
This method is called by application startup code
+     *  that is autogenerated by the MXML compiler.
+     *  Afterwards, when instances of Slider are initialized,
+     *  their accessibilityImplementation property
+     *  will be set to an instance of this class.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public static function enableAccessibility():void
+    {
+        Slider.createAccessibilityImplementation =
+            createAccessibilityImplementation;
+    }
+
+    /**
+     *  @private
+     *  Creates a Slider's AccessibilityImplementation object.
+     *  This method is called from UIComponent's
+     *  initializeAccessibility() method.
+     */
+    mx_internal static function createAccessibilityImplementation(
+                                component:UIComponent):void
+    {
+        component.accessibilityImplementation =
+            new SliderAccImpl(component);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param master The UIComponent instance that this AccImpl instance
+     *  is making accessible.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function SliderAccImpl(master:UIComponent)
+    {
+        super(master);
+
+        role = 0x33; // ROLE_SYSTEM_SLIDER
+
+        master.addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: AccessibilityImplementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Gets the role for the component.
+     *
+     *  @param childID children of the component
+     */
+    override public function get_accRole(childID:uint):uint
+    {
+        var childRole:uint;
+
+        switch (childID)
+        {
+            case 1:
+            case 3:
+            {
+                childRole = ROLE_SYSTEM_INDICATOR;
+                break;
+            }
+            case 2:
+            {
+                childRole = ROLE_SYSTEM_PUSHBUTTON;
+                break;
+            }
+            default:
+            {
+                childRole = role;
+                break;
+            }
+        }
+        return childRole;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  eventsToHandle
+    //----------------------------------
+
+    /**
+     *  @private
+     *    Array of events that we should listen for from the master component.
+     */
+    override protected function get eventsToHandle():Array
+    {
+        return super.eventsToHandle.concat([ "change" ]);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: AccessibilityImplementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  IAccessible method for returning the value of the slider
+     *  (which would be the value of the item selected).
+     *  The slider should return the value of the current thumb as the value.
+     *
+     *  @param childID uint
+     *
+     *  @return Value String
+     */
+    override public function get_accValue(childID:uint):String
+    {
+        var val:Number = Slider(master).value;
+
+        val = (val -  Slider(master).minimum) /
+              (Slider(master).maximum - Slider(master).minimum) * 100;
+
+        return String(val);
+    }
+
+    /**
+     *  @private
+     *  Method to return an array of childIDs, which is fixed for sliders.
+     * (1 = left/top part of trackbar, 2 = thumb, 3 = right/bottom part of trackbar)
+     *
+     *  @return Array
+     */
+    override public function getChildIDArray():Array
+    {
+        return createChildIDArray(3);;
+    }
+
+    /**
+     *  @private
+     *  Method for returning the name of the slider or its sunparts
+     *
+     *
+     *  @param childID uint
+     *
+     *  @return Name String
+     */
+    override protected function getName(childID:uint):String
+    {
+        //TODO: Localize these strings
+        switch(childID)
+        {
+            case 1:
+                return getQualifiedClassName(master) == "HSlider" ? "Page Left" : "Page up";
+            break;
+            case 2:
+                return "Position";
+            break;
+            case 3:
+                return getQualifiedClassName(master) == "HSlider" ? "Page right" : "Page down";
+            break;
+            default:
+                return "";
+            break;
+        }
+    }
+
+    /**
+     *  @private
+     *  IAccessible method for returning the state of the Button.
+     *  States are predefined for all the components in MSAA.
+     *  Values are assigned to each state.
+     *
+     *  @param childID uint
+     *
+     *  @return State uint
+     */
+    override public function get_accState(childID:uint):uint
+    {
+        var accState:uint = getState(childID);
+        return accState;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden event handlers: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Override the generic event handler.
+     *  All AccImpl must implement this to listen
+     *  for events from its master component.
+     */
+    override protected function eventHandler(event:Event):void
+    {
+        // Let AccImpl class handle the events
+        // that all accessible UIComponents understand.
+        $eventHandler(event);
+
+        switch (event.type)
+        {
+            case "change":
+            {
+                Accessibility.sendEvent(master, 0,
+                                        EVENT_OBJECT_VALUECHANGE, true);
+                break;
+            }
+        }
+    }
+
+    /**
+     *  @private
+     *  This is (kind of) a hack to get around the fact that Slider is not
+     *  an IFocusManagerComponent. It forces frocus from accessibility when one of
+     *  its thumbs get focus.
+     */
+    private function focusInHandler(event:Event):void
+    {
+        Accessibility.sendEvent(master, 0, EVENT_OBJECT_FOCUS);
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 12821
Author:   klin@adobe.com
Date:     2009-12-11T01:53:44.666040Z

Log Message:
-----------
Follow-up to SDK-24574. Add try-catch block to two other places where we use bitmapData.draw(). In this case, we allow the bitmaps to remain null. In this failure case, the flag, hasBitmaps, is set and the shader in the AnimateTransitionShaderInstance is not created. This allows the effect to finish, just without input from the shader since it could not capture the bitmaps.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
@@ -274,10 +274,19 @@
         var bmData:BitmapData;
         var tempFilters:Array = target.filters;
         target.filters = [];
-        if (target is GraphicElement)
-            bmData = GraphicElement(target).captureBitmapData(true, 0, false);
-        else
-            bmData = BitmapUtil.getSnapshot(IUIComponent(target));
+
+        try
+        {
+            if (target is GraphicElement)
+                bmData = GraphicElement(target).captureBitmapData(true, 0, false);
+            else
+                bmData = BitmapUtil.getSnapshot(IUIComponent(target));
+        }
+        catch (e:SecurityError)
+        {
+            // Do nothing and let it return null.
+        }
+
         target.filters = tempFilters;

         return bmData;


rm unneeded prints

rm unneeded prints

--- src/org/mangui/hls/HLS.as
+++ src/org/mangui/hls/HLS.as
@@ -89,7 +89,6 @@
             WorkerUtils.start_worker();
             if (!hola_api_inited && ZExternalInterface.avail())
             {
-                ExternalInterface.call('console.log', 'HLS hola_api_inited');
                 hola_api_inited = true;
                 ExternalInterface.addCallback("hola_hls_call", HLS.hola_hls_call);
                 ExternalInterface.addCallback("hola_version", HLS.hola_version);
@@ -106,7 +105,6 @@
             g_curr_hls = this;
             if (ZExternalInterface.avail())
             {
-                ExternalInterface.call('console.log', 'HLS new ', g_curr_id);
                 ExternalInterface.call('window.postMessage',
                     {id: 'flashls.hlsNew', hls_id: g_curr_id}, '*');
             }


try to get this working

try to get this working

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
@@ -28,9 +28,11 @@
 	import flash.text.TextFieldType;

 	import org.apache.flex.core.BeadViewBase;
+    import org.apache.flex.core.CSSTextField;
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IBeadView;
 	import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.ITextModel;
 	import org.apache.flex.core.ValuesManager;

 	/**
@@ -44,7 +46,7 @@
 	 *  @playerversion AIR 2.6
 	 *  @productversion FlexJS 0.0
 	 */
-	public class ImageButtonView extends BeadViewBase implements IBeadView, IBead
+	public class ImageAndTextButtonView extends BeadViewBase implements IBeadView, IBead
 	{
 		/**
 		 *  Constructor.
@@ -54,7 +56,7 @@
 		 *  @playerversion AIR 2.6
 		 *  @productversion FlexJS 0.0
 		 */
-		public function ImageButtonView()
+		public function ImageAndTextButtonView()
 		{
 			upSprite = new Sprite();
 			downSprite = new Sprite();
@@ -106,8 +108,10 @@
 		private var downSprite:Sprite;
 		private var overSprite:Sprite;
 		private var shape:Shape;
-
-        private var _icon:String;
+
+        private var textModel:ITextModel;
+
+        private var _image:String;

         /**
          *  The URL of an icon to use in the button
@@ -117,25 +121,25 @@
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        public function get icon():String
-        {
-            return _icon;
+        public function get image():String
+        {
+            return _image;
         }

         /**
          *  @private
          */
-        public function set text(value:String):void
-        {
-            _icon = value;
+        public function set image(value:String):void
+        {
+            _image = value;
         }

 		/**
 		 * @private
 		 */
-		private function setupBackground(sprite:Sprite, textField:TextField, color:uint, state:String):void
-		{
-			var backgroundImage:Object = ValuesManager.valuesImpl.getValue(_strand, "background-image", state);
+		private function setupBackground(sprite:Sprite, textField:TextField, color:uint, state:String = null):void
+		{
+			var backgroundImage:Object = image;
 			if (backgroundImage)
 			{
 				var loader:Loader = new Loader();


Transferred from the Adobe Open Source Subversion Repository

Revision: 8013
Author:   aharui@adobe.com
Date:     2009-06-19T21:16:34.574718Z

Log Message:
-----------
Update a comment just so I can note that the previous checkin was for SDK-21899, not SDK-21889

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as

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

--- frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as
+++ frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as
@@ -42,17 +42,7 @@

 /**
  *  @private
- *  A SystemManager has various types of children,
- *  such as the Application, popups,
- *  tooltips, and custom cursors.
- *  You can access the just the custom cursors through
- *  the cursors property,
- *  the tooltips via toolTips, and
- *  the popups via popUpChildren.  Each one returns
- *  a SystemChildrenList which implements IChildList.  The SystemManager's
- *  IChildList methods return the set of children that aren't popups, tooltips
- *  or cursors.  To get the list of all children regardless of type, you
- *  use the rawChildrenList property which returns this SystemRawChildrenList.
+ *  MarshallingSupport for FocusManager
  */
 public class FocusManagerMarshalMixin
 {


fixup

fixup

--- src/org/mangui/jwplayer/media/HLSProvider.as
+++ src/org/mangui/jwplayer/media/HLSProvider.as
@@ -152,12 +152,12 @@
             if (cfg.hasOwnProperty('stagevideo') && cfg['stagevideo'].toString() == "false") {
                 _stageEnabled = false;
             }
-            _video = new Video(1920, 960);
+            _video = new Video(1706, 960);
             _video.smoothing = true;
             // Use stageVideo when available
             if (_stageEnabled && RootReference.stage.stageVideos.length > 0) {
                 _stageVideo = RootReference.stage.stageVideos[0];
-                _stageVideo.viewPort = new Rectangle(0, 0, 1920, 960);
+                _stageVideo.viewPort = new Rectangle(0, 0, 1706, 960);
                 _stageVideo.attachNetStream(_hls.stream);
                 Log.info("stage video enabled");
             } else {


Manifest: added time parameter to bypass cache for first playlist request also

--- src/org/mangui/hls/playlist/Manifest.as
+++ src/org/mangui/hls/playlist/Manifest.as
@@ -83,7 +83,7 @@
             _urlloader.addEventListener(IOErrorEvent.IO_ERROR, error);
             _urlloader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, error);

-            if (flushLiveURLcache && type == HLSTypes.LIVE) {
+            if (flushLiveURLcache && (!type || type == HLSTypes.LIVE)) {
                 /*
                 add time parameter to force reload URL, there are some issues with browsers/CDN reloading from cache even if the URL has been updated ...
                 see http://stackoverflow.com/questions/14448219/as3-resetting-urlloader-cache


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

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

 package mx.olap
 {


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

--- frameworks/projects/framework/src/mx/events/EffectEvent.as
+++ frameworks/projects/framework/src/mx/events/EffectEvent.as
@@ -14,6 +14,11 @@
  *  </ul>
  *
  *  @see mx.effects.Effect
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class EffectEvent extends Event
 {
@@ -50,6 +55,11 @@
      *  @see mx.effects.Effect
      *
      *  @eventType effectEnd
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const EFFECT_END:String = "effectEnd";

@@ -78,6 +88,11 @@
      *  @see mx.effects.Effect
      *
      *  @eventType effectStop
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const EFFECT_STOP:String = "effectStop";

@@ -106,6 +121,11 @@
 	 *  @see mx.effects.Effect
      *
      *  @eventType effectStart
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public static const EFFECT_START:String = "effectStart";

@@ -126,6 +146,11 @@
 	 *  @param cancelable Specifies whether the behavior associated with the event can be prevented.
 	 *
 	 *  @param effectInstance The effect instance that triggered the event.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function EffectEvent(eventType:String, bubbles:Boolean = false,
 								cancelable:Boolean = false,
@@ -150,6 +175,11 @@
 	 *  The effect instance object for the event.
 	 *  You can use this property to access the properties of the effect
 	 *  instance object from within your event listener.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var effectInstance:IEffectInstance;


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

--- frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as
+++ frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.rpc.xml
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19621
Author:   cframpto@adobe.com
Date:     2011-01-06T18:06:58.135409Z

Log Message:
-----------
Fix the SkinPart metadata per Gaurav's request and greatly improve performance of renderers which are IGraphicElement.

QE notes:
Doc notes:
Bugs: SDK-28973
Reviewer: Hans
Tests run: cyclone
Is noteworthy for integration:

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

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -659,7 +659,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render the alternatingRowColors style.
@@ -676,7 +676,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render the grid's caret indicator.
@@ -693,7 +693,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="spark.components.GridColumnHeaderGroup")]
+    [SkinPart(required="false")]

     /**
      *  A reference to the GridColumnHeaderGroup object that displays the column headers.
@@ -710,7 +710,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render the vertical separator between columns.
@@ -727,7 +727,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render a background behind
@@ -748,7 +748,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="spark.components.Grid")]
+    [SkinPart(required="false")]

     /**
      *  A reference to the Grid control that displays row and columns.
@@ -765,7 +765,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to provide hover feedback.
@@ -782,7 +782,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render the background of each row.
@@ -799,7 +799,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render the horizontal separator between header rows.
@@ -816,7 +816,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="spark.components.Scroller")]
+    [SkinPart(required="false")]

     /**
      *  A reference to the Scroller control in the skin class
@@ -834,7 +834,7 @@
     //----------------------------------

     [Bindable]
-    [SkinPart(required="false", type="mx.core.IFactory")]
+    [SkinPart(required="false", type="mx.core.IVisualElement")]

     /**
      *  The IVisualElement class used to render selected rows or cells.


Transferred from the Adobe Open Source Subversion Repository

Revision: 18400
Author:   hmuller@adobe.com
Date:     2010-11-01T21:10:50.018719Z

Log Message:
-----------
Changed DefaultGridHeaderRenderer so that its labelDisplay component can be replaced and added a cover for the labelDisplay's maxDisplayedLines property to simplify enabling wrapping in a header renderer.

QE notes:
Doc notes:
Bugs: SDK-28317
Reviewer: Carol
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -177,7 +177,8 @@
  *
  *

  *  The scroll policy affects the measured size of the scroller skin part.  This style
- *  is simply a cover for the scroller skin part's horizontalScrollPolicy.
+ *  is simply a cover for the scroller skin part's horizontalScrollPolicy.  It is not an
+ *  inheriting style so, for example, it will not affect item renderers.
  *

  *
  *  @default ScrollPolicy.AUTO
@@ -211,7 +212,8 @@
  *
  *

  *  The scroll policy affects the measured size of the scroller skin part.  This style
- *  is simply a cover for the scroller skin part's verticalScrollPolicy.
+ *  is simply a cover for the scroller skin part's verticalScrollPolicy.  It is not an
+ *  inheriting style so, for example, it will not affect item renderers.
  *

  *
  *  @default ScrollPolicy.AUTO


Transferred from the Adobe Open Source Subversion Repository

Revision: 16331
Author:   jszeto@adobe.com
Date:     2010-05-27T00:20:51.292460Z

Log Message:
-----------
Form Bug Fixes

SDK-26517 - Form should take into account includeInLayout property when calculating baselineElementPosition

Added logic into Group to find the first element that has includeInLayout == true.

SDK-26509 - Spark Form shows dual error strings in non-stacked layout

Removed error string from FormSkin. Created a StackedFormSKin skin which includes the error string.

SDK-26499 - Spark Form skin should use errorStringDisplay skin part instead of errorStringText

Changed name to errorTextDisplay

SDK-26498 - Spark Form needs more padding around error strings

Added padding to the entire Form

SDK-26503 - Difficult to create custom Spark FormItem skin due to embedded required/error icon assets

Added new requiredIndicatorSource and errorIndicatorSource styles to FormItem. FormItem skins now grab the icons from these styles. Custom skin also have access to these icons.

QE notes: Form layout has changed
Doc notes: none
Bugs: SDK-26517, SDK-26509, SDK-26499, SDK-26498, SDK-26503
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/ErrorIndicator.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormHeadingSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build_framework.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/assets/RequiredIndicator.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/FormTestScript.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/assets/ErrorIndicator.png</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/assets/RequiredIndicator.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/StackedFormSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/FormItem.as
+++ frameworks/projects/spark/src/spark/components/FormItem.as
@@ -28,6 +28,31 @@
  *  - Fix bug when setting errorString = ""
  *  - Review applyErrorText API
  */
+
+/**
+ *  Specifies the image source to use for the error indicator.
+ *
+ *  The default value is "assets/RequiredIndicator.png"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4.5
+ */
+[Style(name="requiredIndicatorSource", type="Class", inherit="no")]
+
+/**
+ *  Specifies the image source to use for the required indicator.
+ *
+ *  The default value is "assets/ErrorIndicator.png"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4.5
+ */
+[Style(name="errorIndicatorSource", type="Class", inherit="no")]
+

 /**
  *  SkinnableContainer with content and multiple properties. The FormItem's children


Transferred from the Adobe Open Source Subversion Repository

Revision: 20231
Author:   mhorn@adobe.com
Date:     2011-02-09T16:29:38.599327Z

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

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

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

--- frameworks/projects/spark/src/spark/components/TextArea.as
+++ frameworks/projects/spark/src/spark/components/TextArea.as
@@ -75,28 +75,26 @@
  *  multiple lines of richly formatted text. It can display horizontal and vertical scrollbars
  *  for scrolling through the text and supports vertical scrolling with the mouse wheel.
  *
- *
It does not include any user interface for changing
+ *
The skin for the Spark theme
+ *  uses the RichEditableText class. This means that the Spark TextArea control supports
+ *  the Text Layout Framework (TLF) library,
+ *  which builds on the Flash Text Engine (FTE).
+ *  In combination, these layers provide text editing with
+ *  high-quality international typography and layout.

+ *
+ *
The skin for the mobile theme uses the StyleableTextField class instead of RichEditableText.
+ *  As a result, TLF-only features are not supported in the mobile theme including
+ *  TextFlow, right-to-left or bidirectional text, and advanced text
+ *  styles.

+ *
+ *
The TextArea control does not include any user interface for changing
  *  the formatting of the text but contains
  *  APIs that you can use to programmatically format text.
  *  For example, you can create a
  *  a button that, when clicked, makes the selected text bold.

  *
- *
The Spark version of TextArea
- *  uses the Text Layout Framework (TLF) library,
- *  which builds on the Flash Text Engine (FTE)
- *  in Flash Player 10.
- *  In combination, these layers provide text editing with
- *  high-quality international typography and layout.
- *  The older MX version of TextArea displays text using the older
- *  TextField class.

- *
- *
The mobile theme uses TextField-based text instead of RichEditableText.
- *  Some TLF-only features are not supported in the mobile theme including
- *  TextFlow, right-to-left or bidirectional text, and advanced text
- *  styles.

- *
  *
The most important differences between Spark TextArea and the
- *  MX TextArea control are as follows:
+ *  MX/mobile TextArea control are as follows:
  *

  *
Spark TextArea offers better typography, better support
  *        for international languages, and better text layout.

@@ -180,10 +178,11 @@
  *  to limit which characters the user can enter.

  *
  *
This control is a skinnable control whose default skin uses a
- *  RichEditableText control to display and edit the text
+ *  RichEditableText class to display and edit the text
  *  and a Scroller control to provide scrollbars.
  *  The RichEditableText can be accessed as textDisplay
- *  and the Scroller as scroller.

+ *  and the Scroller as scroller. When used with the mobile theme, this control uses
+ *  the StyleableTextField class to display and edit text.

  *
  *
The Spark TextArea
  *  can display left-to-right (LTR) text, such as French,


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

--- frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridRendererProvider.as
+++ frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridRendererProvider.as
@@ -0,0 +1,203 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.olapDataGridClasses
+{
+import mx.core.mx_internal;
+import mx.core.IFactory;
+import mx.formatters.Formatter;
+
+use namespace mx_internal;
+
+/**
+ *  The OLAPDataGridRendererProvider class defines the base class for
+ *  assigning item renderers used by the OLAPDataGrid control.
+ *  Use properties of the OLAPDataGridRendererProvider class to
+ *  configure where an item renderer is used in an OLAPDataGrid control.
+ *
+ *
Each cell in an OLAPDataGrid control is a result of an intersection
+ *  between the members along a row and the members along a column of the control.
+ *  However, when you assign an item renderer to an OLAPDataGrid control,
+ *  you only specify the uniqueName and type properties
+ *  for one of the dimensions, either row or column.
+ *  Therefore, you can create a situation where two different item renderers
+ *  are assigned to the same cell of the control.

+ *
+ *
In case of a conflict between two or more item renderers,
+ *  the OLAPDataGrid control applies the item renderer based on the following priorities:

+ *
+ *

+ *
type = OLAPDataGrid.OLAP_MEMBER

+ *
type = OLAPDataGrid.OLAP_LEVEL

+ *
type = OLAPDataGrid.OLAP_HIERARCHY

+ *
type = OLAPDataGrid.OLAP_DIMENSION

+ *

+ *
+ *
Therefore, if an item renderer with a type value of
+ *  OLAPDataGrid.OLAP_LEVEL and an item renderer
+ *  with a type value of OLAPDataGrid.OLAP_HIERARCHY
+ *  are applied to the same cell,
+ *  the OLAPDataGrid control applies the item renderer with a type value
+ *  of OLAPDataGrid.OLAP_LEVEL.

+ *
+ *
If two item renderers have the same value for the type property,
+ *  the OLAPDataGrid control determines which renderer more closely matches
+ *  the item, and uses it.

+ *
+ *  @see mx.controls.OLAPDataGrid
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPDataGridRendererProvider
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // uniqueName
+    //----------------------------------
+
+    private var _uniqueName:String;
+
+    /**
+     *  The unique name of the IOLAPElement to which the renderer is applied.
+     *  For example, "[TimeDim][YearHier][2007]" is a unique name,
+     *  where "2007" is the level belonging to the "YearHier" hierarchy
+     *  of the "TimeDim" dimension.
+     *
+     *
The uniqueName property and the type property
+     *  together specify the target of the item renderer.
+     *  Because the unique name of "[TimeDim][YearHier][2007]"
+     *  specifies a level of an OLAP schema,
+     *  set the type property to OLAPDataGrid.OLAP_LEVEL.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get uniqueName():String
+    {
+        return _uniqueName;
+    }
+
+    /**
+     *  @private
+     */
+    public function set uniqueName(name:String):void
+    {
+        _uniqueName = name;
+    }
+
+    //----------------------------------
+    // type
+    //----------------------------------
+
+    private var _type:int;
+
+    /**
+     *  Specifies whether the renderer is applied to a
+     *  dimension (OLAPDataGrid.OLAP_DIMENSION),
+     *  hierarchy(OLAPDataGrid.OLAP_HIERARCHY),
+     *  level(OLAPDataGrid.OLAP_LEVEL),
+     *  or member (OLAPDataGrid.OLAP_MEMBER) of an axis.
+     *
+     *
Set this property based on the setting of the uniqueName property.
+     *  For example, if the uniqueName property references a hierarchy of an OLAP schema,
+     *  set this property to OLAPDataGrid.OLAP_HIERARCHY.

+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get type():int
+    {
+        return _type;
+    }
+
+    /**
+     *  @private
+     */
+    public function set type(name:int):void
+    {
+        _type = name;
+    }
+
+    //----------------------------------
+    // renderer
+    //----------------------------------
+
+    private var _renderer:IFactory;
+
+    /**
+     *  The renderer object used for customizing the OLAPDataGrid control.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get renderer():IFactory
+    {
+        return _renderer;
+    }
+
+    /**
+     *  @private
+     */
+    public function set renderer(r:IFactory):void
+    {
+        _renderer = r;
+    }
+
+    //----------------------------------
+    // styleName
+    //----------------------------------
+
+    /**
+     *  The name of a CSS style declaration for controlling
+     *  the appearance of the cell.
+     *
+     *
For example, you define the following style in your application,
+     *  and then use the styleName property to associate it with
+     *  a specific hierarchy in an OLAP schema:

+     *
+     *

+     *  <Style>
+     *    .monthStyle
+     *      {
+     *        color:0x755762
+     *        fontSize:14
+     *      }
+     *  </Style>
+     *
+     *  <mx:ODGHeaderRendererProvider
+     *    type="OLAPDataGrid.OLAP_HIERARCHY"
+     *    uniqueName="[Time][Month]" styleName="monthStyle"/>

+     *
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public var styleName:String
+}
+}


No changes

No changes

--- collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/Proxy.as
+++ collect-flex/collect-flex-client/src/generated/flex/org/openforis/collect/Proxy.as
@@ -1,5 +1,5 @@
 /**
- * Generated by Gas3 v2.2.0 (Granite Data Services).
+ * Generated by Gas3 v2.3.0 (Granite Data Services).
  *
  * WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
  * THE GENERATOR.


Cleaning all strings in Printer output for JUnit.

--- src/as3spec/Printer.as
+++ src/as3spec/Printer.as
@@ -24,9 +24,9 @@
       trace('<testsuite name="AllSpecs" errors="' + counter.errors + '" failures="' + counter.failures + '" tests="' + counter.specifications + '" time="' + (counter.time/1000) + '">');
       for(var countName:String in counter.contexts) {
         for each(var specification:Specification in counter.contexts[countName]) {
-          trace('<testcase classname="'+countName+"."+specification.story+'" name="'+specification.story+'" time="'+(specification.time/1000)+'">');
+          trace('<testcase classname="'+countName+"."+clean(specification.story)+'" name="'+clean(specification.story)+'" time="'+(specification.time/1000)+'">');
           if(specification.failure!=null) {
-            trace('<failure type="'+specification.failureType+'"><![CDATA['+specification.failure+']]></failure>');
+            trace('<failure type="'+clean(specification.failureType)+'"><![CDATA['+clean(specification.failure)+']]></failure>');
           }
           trace('</testcase>');
         }
@@ -37,5 +37,10 @@

 		}

+		private function clean(str:String) : String {
+		  var pat:RegExp = /"/g;
+		  return str.replace(pat, "'");
+		}
+
 	}
 }


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

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

 package mx.charts.series.renderData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3555
Author:   gosmith@adobe.com
Date:     2008-10-09T23:56:22.137038Z

Log Message:
-----------
TextInput and TextArea now participate in the FocusManager's tab ring. For example, you can tab to an empty TextInput and start entering text.

The selectionAnchorPosition and selectionActivePosition properties of TextView, TextInput, and TextArea are now read-only, in accordance with the spec for these components. You must use the setSelection() method to set the selection.

Reviewer: Deepa
Bugs: SDK-15894, SDK-15898, SDK-16331, SDK-16332, SDK-16414, SDK-16435, SDK-17224, SDK-17239
QA: Please remove any tests where you set selectionAnchorPosition or selectionActivePosition.
Doc: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -12,14 +12,15 @@
 package mx.components.baseClasses
 {

+import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.FocusEvent;

 import mx.components.TextView;
 import mx.components.baseClasses.FxComponent;
+import mx.events.FlexEvent;
 import mx.events.TextOperationEvent;
-
-import mx.events.FlexEvent;
+import mx.managers.IFocusManagerComponent;

 import flashx.tcal.events.SelectionEvent;
 import flashx.tcal.formats.LineBreak;
@@ -50,7 +51,7 @@
 /**
  *  Documentation is not currently available.
  */
-public class FxTextBase extends FxComponent
+public class FxTextBase extends FxComponent implements IFocusManagerComponent
 {
     include "../../core/Version.as";

@@ -67,6 +68,20 @@
 	{
 		super();
 	}
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  If true, pass calls to drawFocus() up to the parent.
+     *  This is used when a TextInput is part of a composite control
+     *  like NumericStepper or ComboBox;
+     */
+    mx_internal var parentDrawsFocus:Boolean = false;

     //--------------------------------------------------------------------------
     //
@@ -105,11 +120,6 @@
 	 *  @private
 	 */
 	private var _selectionActivePosition:int = -1;
-
-	/**
-	 *  @private
-	 */
-	private var selectionActivePositionChanged:Boolean = false;

 	[Bindable("selectionChange")]

@@ -127,22 +137,6 @@
 		return _selectionActivePosition;
 	}

-	/**
-	 *  @private
-	 */
-	public function set selectionActivePosition(value:int):void
-	{
-		if (value == _selectionActivePosition)
-			return;
-
-		_selectionActivePosition = value;
-		selectionActivePositionChanged = true;
-
-		invalidateProperties();
-
-		dispatchEvent(new FlexEvent(FlexEvent.SELECTION_CHANGE));
-	}
-
 	//----------------------------------
 	//  selectionAnchorPosition
     //----------------------------------
@@ -151,11 +145,6 @@
 	 *  @private
 	 */
 	private var _selectionAnchorPosition:int = -1;
-
-	/**
-	 *  @private
-	 */
-	private var selectionAnchorPositionChanged:Boolean = false;

 	[Bindable("selectionChange")]

@@ -173,22 +162,6 @@
 		return _selectionAnchorPosition;
 	}

-	/**
-	 *  @private
-	 */
-	public function set selectionAnchorPosition(value:int):void
-	{
-		if (value == _selectionAnchorPosition)
-			return;
-
-		_selectionAnchorPosition = value;
-		selectionAnchorPositionChanged = true;
-
-		invalidateProperties();
-
-		dispatchEvent(new FlexEvent(FlexEvent.SELECTION_CHANGE));
-	}
-
     //----------------------------------
 	//  text
     //----------------------------------
@@ -260,18 +233,6 @@
 		{
 			textView.text = _text;
 			textChanged = false;
-		}
-
-		if (selectionAnchorPositionChanged)
-		{
-			textView.selectionAnchorPosition = _selectionAnchorPosition;
-			selectionAnchorPositionChanged = false
-		}
-
-		if (selectionActivePositionChanged)
-		{
-			textView.selectionActivePosition = _selectionActivePosition;
-			selectionActivePositionChanged = false
 		}
 	}

@@ -328,6 +289,100 @@
 		}
 	}

+    /**
+     *  @private
+     *  Focus should always be on the internal TextView.
+     */
+    override public function setFocus():void
+    {
+        textView.setFocus();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function isOurFocus(target:DisplayObject):Boolean
+    {
+        return target == textView || super.isOurFocus(target);
+    }
+
+    /**
+     *  @private
+     *  Forward the drawFocus to the parent, if requested.
+     */
+    override public function drawFocus(isFocused:Boolean):void
+    {
+        if (mx_internal::parentDrawsFocus)
+        {
+            IFocusManagerComponent(parent).drawFocus(isFocused);
+            return;
+        }
+
+        super.drawFocus(isFocused);
+    }
+
+	//--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+    public function setSelection(anchorIndex:int = 0,
+                                 activeIndex:int = int.MAX_VALUE):void
+    {
+        if (!textView)
+            return;
+
+        textView.setSelection(anchorIndex, activeIndex);
+    }
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+    public function insertText(text:String):void
+    {
+        if (!textView)
+            return;
+
+        textView.insertText(text);
+    }
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+    public function appendText(text:String):void
+    {
+        if (!textView)
+            return;
+
+        textView.appendText(text);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function focusInHandler(event:FocusEvent):void
+    {
+        // An editable TCAL Sprite has the concept of "no selection",
+        // represented by (-1, -1), even when the Sprite has focus.
+        // But then no insertion point blinks and you can't enter any text.
+        // So if this component is in that state when it takes focus,
+        // it changes the selection to (0, 0).
+        if (selectionAnchorPosition == -1 && selectionActivePosition == -1)
+            setSelection(0, 0);
+
+        super.focusInHandler(event);
+    }
+
 	//--------------------------------------------------------------------------
     //
     //  Event handlers


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

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

 package mx.effects.effectClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2586
Author:   jimurphy@adobe.com
Date:     2008-07-23T15:42:56.370538Z

Log Message:
-----------
Merged 3.0.x rev. [2567,2582,2584] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/ModalWindowRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as</path>

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

--- frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
+++ frameworks/projects/framework/src/mx/core/CrossDomainRSLItem.as
@@ -197,7 +197,7 @@
             {
                 // B Feature: externalize error message
                 var rslError:ErrorEvent = new ErrorEvent(RSLEvent.RSL_ERROR);
-                rslError.text = "Flex Error #1002: Flash Player 9.0.60 and above is required to support signed RSLs. Problem occurred when trying to load the RSL " +
+                rslError.text = "Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL " +
                                 urlRequest.url +
                                 ".  Upgrade your Flash Player and try again.";
                 super.itemErrorHandler(rslError);


Transferred from the Adobe Open Source Subversion Repository

Revision: 6122
Author:   chaase@adobe.com
Date:     2009-04-10T14:30:17.762458Z

Log Message:
-----------
Various refactorings/renamings/changes from effects PARB review.

QE Notes: mx/effects and spark/effects currently broken (and disabled) due to these API changes. Matt is fixing.
Doc Notes: None
Bugs:
Reviewer: Hans
tests: checkintests, mustella tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.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/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Rotate3DInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/framework/src/mx/effects/IEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/IEffectInstance.as
@@ -13,6 +13,7 @@
 {

 import flash.events.Event;
+
 import mx.effects.effectClasses.PropertyChanges;

 /**
@@ -164,10 +165,10 @@
     //----------------------------------

     /**
-     *  Current position in time of the effect.
-     *  This property has a value between 0 and the actual duration
-     *  (which includes the value of the startDelay,
-     *  repeatCount, and repeatDelay properties).
+     *  Current time position of the effect.
+     *  This property has a value between 0 and the total duration,
+     *  which includes the Effect's startDelay,
+     *  repeatCount, and repeatDelay.
      *
      *  @langversion 3.0
      *  @playerversion Flash 9
@@ -175,6 +176,11 @@
      *  @productversion Flex 3
      */
     function get playheadTime():Number;
+
+    /**
+     * @private
+     */
+    function set playheadTime(value:Number):void;

     //----------------------------------
     //  propertyChanges


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 11273
Author:   aharui@adobe.com
Date:     2009-10-29T18:57:54.403337Z

Log Message:
-----------
Initial check in of MXItemRenderer and friends

QE Notes: New Classes and Code
Doc Notes: New Classes and Code
Bugs: None
Reviewer: Ryan
API Change: yes
Is noteworthy for integration: No
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/BaseListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListData.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses</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/controls/dataGridClasses/DataGridListData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeListData.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/MXItemRendererTestScript.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/tests/basicTests/halo/views/MXItemRendererTests.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml</path>

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

--- frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as
+++ frameworks/projects/spark/src/mx/controls/dataGridClasses/MXDataGridItemRenderer.as
@@ -0,0 +1,87 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.controls.dataGridClasses
+{
+import mx.controls.listClasses.MXItemRenderer;
+
+//--------------------------------------
+//  Excluded APIs
+//--------------------------------------
+
+[Exclude(name="listData", kind="property")]
+
+/**
+ *  The MXItemRenderer class is the base class for Spark item renderers in
+ *  Halo (mx) classes
+ *
+ *  @mxml
+ *
+ *
The <s:MXItemRenderer> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:MXItemRenderer
+ *    Properties
+ *  />
+ *

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class MXDataGridItemRenderer extends MXItemRenderer
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function MXDataGridItemRenderer()
+    {
+        super();
+    }
+
+    //----------------------------------
+    //  dataGridListData
+    //----------------------------------
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the listData property
+     *  as defined by the IDropInListItemRenderer interface.
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get dataGridListData():DataGridListData
+    {
+        return listData as DataGridListData;
+    }
+
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 21646
Author:   smgilson@adobe.com
Date:     2011-07-20T18:07:55.369967Z

Log Message:
-----------
Second set of ASDoc updates for SplashScreenImage.as and SplashScreenImageSource.as.

Fixed broken ASDoc comments in Callout.as

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/Callout.as
+++ frameworks/projects/mobilecomponents/src/spark/components/Callout.as
@@ -58,17 +58,17 @@
  *  displays direction toward the owner.
  *
  *
Callout uses horizontalPosition and
- *  verticalPosition properties to determine the position of the
+ *  verticalPosition properties to determine the position of the
  *  Callout relative to the owner that is specified via the open()
  *  method. Both properties may be set to CalloutPosition.AUTO which selects a
  *  position based on the aspect ratio of the screen for the Callout to fit
  *  with minimal overlap with the owner and and minimal adjustments at the
- *  screen bounds.
+ *  screen bounds.

  *
  *
Once positioned, the Callout positions the arrow on the side adjacent
  *  to the owner, centered as close as possible on the horizontal or vertical
  *  center of the owner as appropriate. The arrow is hidden in cases where
- *  the Callout position is not adjacent to any edge.
+ *  the Callout position is not adjacent to any edge.

  *
  *
You do not create a Callout container as part of the normal layout
  *  of its parent container.


Transferred from the Adobe Open Source Subversion Repository

Revision: 20644
Author:   mhorn@adobe.com
Date:     2011-03-07T18:49:20.181589Z

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonBarSkin.as</path>
<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/ButtonSkinBase.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/TabbedViewNavigatorTabBarFirstTabSkin.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/TabbedViewNavigatorTabBarSkin.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/TextAreaVScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/TextSkinBase.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/TransparentNavigationButtonSkin.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/TabbedViewNavigatorTabBarLastTabSkin.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/ButtonBarButtonClassFactory.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultButtonSkin.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/supportClasses/SelectableButtonSkinBase.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/TabbedViewNavigatorSkin.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/TextAreaHScrollBarThumbSkin.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/HScrollBarThumbSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as
@@ -152,6 +152,14 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Defines the corner radius.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     protected var layoutCornerEllipseSize:uint;

     //--------------------------------------------------------------------------
@@ -165,6 +173,14 @@

     private var borderClass:Class;

+    /**
+     *  Defines the shadow for the Button control's label.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     public var labelDisplayShadow:StyleableTextField;

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 4646
Author:   pfarland@adobe.com
Date:     2009-01-23T18:45:23.310008Z

Log Message:
-----------
As part of the Advanced CSS work, adding support for pseudo-selectors that match component states. There are two scenarios for matching states.

1. For skinnable Spark subclasses of FxComponents, such as FxButton. The pseudo-selector will be matched against the current skin state.

2. For other UIComponents, the pseudo-selector is matched against the currentState. Note that since states are declared at the document level, pseudo-selectors are written to match the component representing the document only (rather than an arbitrary child component of that document). Note that as with styles in general, it is not advised to make changes to inheriting styles at the Application root as this impacts all child components in the display list.

Note that further optimization will be investigated to limit the number of components that are redrawn where a change in state is accompanied by a matching pseudo-selector.

QE: Yes
Doc: Yes, see the Advanced CSS specification for Gumbo.
Checkintests: Pass
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IAdvancedStyleClient.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSCondition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager3.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/framework/src/mx/styles/CSSCondition.as
+++ frameworks/projects/framework/src/mx/styles/CSSCondition.as
@@ -139,7 +139,7 @@
         }
         else if (kind == CSSConditionKind.PSEUDO_CONDITION)
         {
-            if (object.currentState == value)
+            if (object.pseudoSelectorState == value)
                 match = true;
         }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -27,10 +27,12 @@
 import mx.collections.IList;
 import mx.core.EventPriority;
 import mx.core.IFactory;
+import mx.core.INavigatable;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
 import mx.events.CollectionEventKind;
+import mx.events.FlexEvent;
 import mx.managers.IFocusManagerComponent;

 use namespace mx_internal;  //ListBase and List share selection properties that are mx_internal
@@ -209,13 +211,30 @@
     override public function set dataProvider(value:IList):void
     {
         if (dataProvider)
+        {
             dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler);
+            if (dataProvider is INavigatable)
+                dataProvider.removeEventListener(FlexEvent.NAVIGATION_CHANGE, navigationChangeHandler);
+        }

         // not really a default handler, we just want it to run after the datagroup
         if (value)
+        {
             value.addEventListener(CollectionEvent.COLLECTION_CHANGE, resetCollectionChangeHandler, false, EventPriority.DEFAULT_HANDLER);
+            if (value is INavigatable)
+                value.addEventListener(FlexEvent.NAVIGATION_CHANGE, navigationChangeHandler);
+        }

         super.dataProvider = value;
+    }
+
+    /**
+     *  @private
+     */
+    private function navigationChangeHandler(event:Event):void
+    {
+        if (INavigatable(dataProvider).selectedIndex != selectedIndex)
+            selectedIndex = INavigatable(dataProvider).selectedIndex;
     }

     /**
@@ -285,6 +304,8 @@
             setCurrentCaretIndex(index);
             renderer.selected = selected;
         }
+        if (dataProvider is INavigatable && selected)
+            INavigatable(dataProvider).selectedIndex = index;
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 2805
Author:   chaase@adobe.com
Date:     2008-08-11T20:37:18.700675Z

Log Message:
-----------
First checkin for the "Arbitrary Type Interpolation" feature. This feature has a rewritten Tween class (now named flex.effects.Animation). This class supports the old Tween capabilities, but adds functionality such as the ability to supply alternate interpolation objects (to allow animation of non-Number types), a new Easing API, and new 'repeat behavior' that will allow terser looping or reversing animations. The existing new effects were slightly changed to use the new Animation class (instead of Tween), and the superclass of the new effects, AnimateProperties (renamed 'Animate'), is now a subclass of Effect (not TweenEffect).

Added various new interpolation and easing classes, along with the new packages flex.effects.interpolation and flex.effects.easing. Also added new color-interpolation effect, 'Tint'.

Expect slight tweaks to the API during i7, but the bulk of the functionality and API changes are being checked in now.

Reviewed by Jason S.
Testing: checkintests & mustella tests/Effects (passed)

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animation.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimatePropertiesInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/AnimateProperties.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/gumbo-manifest.xml</path>
<path kind="file" action="A">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Fade.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Constant.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Power.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ColorInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/AnimateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/TintInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/IEaser.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Tint.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/IInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/NumberInterpolator.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Resize.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/effectClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/Move.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/events/AnimationEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/flex/effects/interpolation/ArrayInterpolator.as</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateColor.as
+++ frameworks/projects/spark/src/spark/effects/AnimateColor.as
@@ -0,0 +1,63 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 flex.effects
+{
+import flex.effects.effectClasses.TintInstance;
+
+import mx.effects.IEffectInstance;
+
+/**
+ * This effect animates a change in color over time, interpolating
+ * between given from/to color values on a per-channel basis.
+ */
+public class Tint extends Animate
+{
+    /**
+     * The starting color
+     */
+    public var colorFrom:uint;
+
+    /**
+     * The ending color
+     */
+    public var colorTo:uint;
+
+    /**
+     * The name of the color property on the target object affected
+     * by this animation.
+     *
+     * @default "color"
+     */
+    public var colorPropertyName:String = "color";
+
+    /**
+     * Constructs a Tint effect with an optional target object
+     */
+    public function Tint(target:Object=null)
+    {
+        super(target);
+        instanceClass = TintInstance;
+    }
+
+    /**
+     * @inheritDoc
+     */
+    override protected function initInstance(instance:IEffectInstance):void
+    {
+        super.initInstance(instance);
+
+        var tintInstance:TintInstance = TintInstance(instance);
+        tintInstance.colorFrom = colorFrom;
+        tintInstance.colorTo = colorTo;
+        tintInstance.colorPropertyName = colorPropertyName;
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/AnimateColor.as
+++ frameworks/projects/spark/src/spark/effects/AnimateColor.as
@@ -8,9 +8,9 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package mx.effects
+package spark.effects
 {
-import mx.effects.effectClasses.FxAnimateColorInstance;
+import spark.effects.supportClasses.AnimateColorInstance;

 import mx.effects.IEffectInstance;
 import mx.styles.StyleManager;
@@ -19,14 +19,14 @@
  * This effect animates a change in color over time, interpolating
  * between given from/to color values on a per-channel basis.
  *
- *  @includeExample examples/FxAnimateColorEffectExample.mxml
+ *  @includeExample examples/AnimateColorEffectExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-public class FxAnimateColor extends FxAnimate
+public class AnimateColor extends Animate
 {
     include "../core/Version.as";

@@ -79,17 +79,17 @@
     public var colorPropertyName:String = "color";

     /**
-     * Constructs an FxAnimateColor effect with an optional target object
+     * Constructs an AnimateColor effect with an optional target object
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function FxAnimateColor(target:Object=null)
+    public function AnimateColor(target:Object=null)
     {
         super(target);
-        instanceClass = FxAnimateColorInstance;
+        instanceClass = AnimateColorInstance;
     }

     /**
@@ -120,7 +120,7 @@
     {
         super.initInstance(instance);

-        var tintInstance:FxAnimateColorInstance = FxAnimateColorInstance(instance);
+        var tintInstance:AnimateColorInstance = AnimateColorInstance(instance);
         tintInstance.colorFrom = colorFrom;
         tintInstance.colorTo = colorTo;
         tintInstance.colorPropertyName = colorPropertyName;