Transferred from the Adobe Open Source Subversion Repository

Revision: 7918
Author:   chaase@adobe.com
Date:     2009-06-17T16:55:30.271215Z

Log Message:
-----------
Round 2 of effects PARB changes. Some renames and removals of properties/functions, including:
AnimateTransform: removed 18 MotionPath properties, added applyChangesPostLayout property (replaces affectLayout property in subclasses), removed addMotionPath/addPostLayoutMotionPath protected functions
Animation: removed seek(), reverse()
SimpleMotionPath: removed 'duration' arg in constructor

QE Notes: Mustella will break on some of these changes (no surprise, just needs minor updates)
Doc Notes: API updates
Bugs: none
Reviewer: Jason
Tests: checkintests

Modified Paths:
--------------
<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/Move3D.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/Rotate.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/AnimateTransitionShaderInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Scale3D.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/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Rotate3D.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/flex4/src/spark/effects/Scale.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
@@ -21,6 +21,7 @@
 import mx.resources.ResourceManager;

 import spark.effects.animation.Animation;
+import spark.effects.animation.Keyframe;
 import spark.effects.animation.MotionPath;
 import spark.effects.animation.SimpleMotionPath;
 import spark.primitives.supportClasses.GraphicElement;
@@ -237,8 +238,9 @@
             shader.data.from.input = bitmapFrom;
             shader.data.to.input = bitmapTo;

-            motionPaths = new <MotionPath>[
-                new SimpleMotionPath("progress", 0, 1, duration)];
+            motionPaths = new <MotionPath>[new MotionPath("progress")];
+            motionPaths[0].keyframes = new <Keyframe>[new Keyframe(0, 0),
+                new Keyframe(duration, 1)];

             // auto-set width/height if exposed in shader
             if ("width" in shader.data)


Transferred from the Adobe Open Source Subversion Repository

Revision: 8487
Author:   smgilson@adobe.com
Date:     2009-07-09T18:57:21.985536Z

Log Message:
-----------
final checkin to update the namespace in ASDoc MXML syntax descriptions for Spark components

QE Notes: None
Doc Notes: None
Bugs: -
Checkintests: passed

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/MotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CallAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateColor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Keyframe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Move.as
+++ frameworks/projects/spark/src/spark/effects/Move.as
@@ -43,7 +43,7 @@
  *
  *  @mxml
  *
- *
The <mx:Move> tag
+ *
The <s:Move> tag
  *  inherits all of the tag attributes of its of its superclass,
  *  and adds the following tag attributes:

  *


Transferred from the Adobe Open Source Subversion Repository

Revision: 1280
Author:   jimurphy@adobe.com
Date:     2008-04-18T00:47:49.350652Z

Log Message:
-----------
merge 3.0.x[1266:1266] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/SimpleXMLDecoder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</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/rpc/src/mx/rpc/soap/Operation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/xml/QualifiedResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/Producer.as
+++ frameworks/projects/rpc/src/mx/messaging/Producer.as
@@ -135,6 +135,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     * @private
+     */
     override protected function internalSend(message:IMessage, waitForClientId:Boolean = true):void
     {
         if (subtopic.length > 0)


Transferred from the Adobe Open Source Subversion Repository

Revision: 12280
Author:   smgilson@adobe.com
Date:     2009-11-30T17:45:36.448234Z

Log Message:
-----------
ASDoc updates in preperation for localization

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Wipe.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/WipeDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/CrossFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Rotate3D.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Scale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/SetAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/Scale.as
+++ frameworks/projects/spark/src/spark/effects/Scale.as
@@ -54,6 +54,8 @@
  *   />
  *  </pre>
  *
+ *  @includeExample examples/ScaleEffectExample.mxml
+ *
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


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

--- frameworks/projects/advancedgrids/src/mx/collections/SummaryObject.as
+++ frameworks/projects/advancedgrids/src/mx/collections/SummaryObject.as
@@ -0,0 +1,53 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.collections
+{
+/**
+ *  The SummaryObject class defines the object used to store information when
+ *  performing custom data summaries on grouped data.
+ *  Use the SummaryRow.summaryObjectFunction property and the
+ *  SummaryField.summaryFunction property to add the
+ *  custom summary logic to your application.
+ *
+ *  @see mx.collections.SummaryField
+ *  @see mx.collections.SummaryRow
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public dynamic class SummaryObject
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function SummaryObject()
+    {
+        super();
+    }
+
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 9349
Author:   preilly@adobe.com
Date:     2009-08-17T18:32:37.403687Z

Log Message:
-----------
* Added support for using getStyle() in Mxml data binding expressions.
  In addition to the existing "function return watcher" data binding
  functionality, we register to listen for style related change events
  when we see a function marked with [Bindable(style="true")].
  UIComponent's and TextGraphicElement's styleChanged() will now
  dispatch events for "getStyle()" FunctionReturnWatchers to handle.
  When null or "styleName" is passed into styleChanged(), we dispatch
  an "allStylesChanged" event.

QE notes: mxunit test to follow
Doc notes:
Bugs: SDK-20394
Reviewer: Glenn, Pete F, Peter D
Tests run: checkintests, mxunit databinding
Is noteworthy for integration: only if you want to start using it.
Code-level description of changes:

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java

    Modified generateWatcher() to do the AST equivalent of the
    WatcherSetupUtil.vm change.

  modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher.java

    Removed unused isNew variable and added isStyleWatcher variable.

    Modified shouldWriteSelf() to return true if isStyleWatcher is true.

  modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm

    Modified writeFunctionReturnWatcher macro to add a true arg to the
    FunctionReturnWatcher constructor call when isStyleWatcher() is
    true.

  modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java

    Modified evaluate(Context, MetaDataNode) to skip reporting an
    error for no events when style is true.

  modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java

    Replaced insideCallExpression boolean with callExpressionStack
    Stack.  The "!insideCallExpression" checks were replaced with
    callExpressionStack.isEmpty().

    Modified addBindables() to handle [Bindable(style="true")].

    Made argumentListStack and resetSet more strongly typed.

  frameworks/projects/framework/src/mx/core/UIComponent.as

    Modified styleChanged() to dispatch a "<styleName>Changed" event.

    Added Bindable metadata to getStyle().

  frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as

    Added isStyle variable.

    Modified setupParentObj() to remove the listener for
    "<styleName>Changed" and "allStylesChanged" from the previous
    parent and add listeners to the new parent when isStyle is true.

    Modified eventHandler to notifyListeners() when isStyle is true.

  frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as

    Similar changes to UIComponent.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/WatcherSetupUtil.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableFirstPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/FunctionReturnWatcher.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassEvaluator.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as
+++ frameworks/projects/framework/src/mx/binding/FunctionReturnWatcher.as
@@ -43,7 +43,8 @@
 										  parameterFunction:Function,
 										  events:Object,
                                           listeners:Array,
-                                          functionGetter:Function = null)
+                                          functionGetter:Function = null,
+                                          isStyle:Boolean = false)
     {
 		super(listeners);

@@ -52,6 +53,7 @@
         this.parameterFunction = parameterFunction;
         this.events = events;
         this.functionGetter = functionGetter;
+        this.isStyle = isStyle;
     }

 	//--------------------------------------------------------------------------
@@ -69,7 +71,7 @@

 	/**
  	 *  @private
-     *  The document is what we need to use toe execute the parameter function.
+     *  The document is what we need to use to execute the parameter function.
      */
     private var document:Object;

@@ -107,6 +109,18 @@
      */
     private var functionGetter:Function;

+    /**
+     *  Storage for the isStyle property.  This will be true, when
+     *  watching a function marked with [Bindable(style="true")].  For
+     *  example, UIComponent.getStyle().
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 4
+     */
+    private var isStyle:Boolean;
+
 	//--------------------------------------------------------------------------
 	//
 	//  Overridden methods
@@ -177,35 +191,72 @@
     private function setupParentObj(newParent:Object):void
     {
 		var eventDispatcher:IEventDispatcher;
-        var p:String;
-
+        var eventName:String;
+
+        // Remove listeners from the old "watched" object.
         if (parentObj != null &&
-            parentObj is IEventDispatcher &&
-            events != null)
+            parentObj is IEventDispatcher)
         {
             eventDispatcher = parentObj as IEventDispatcher;
-
-			for (p in events)
-            {
-                eventDispatcher.removeEventListener(p, eventHandler);
+
+            // events can be null when watching a function marked with
+            // [Bindable(style="true")].
+            if (events != null)
+            {
+                for (eventName in events)
+                {
+                    if (eventName != "__NoChangeEvent__")
+                    {
+                        eventDispatcher.removeEventListener(eventName, eventHandler);
+                    }
+                }
+            }
+
+            if (isStyle)
+            {
+                // For example, if the data binding expression is
+                // {getStyle("color")}, the eventName will be
+                // "colorChanged".
+                eventName = parameterFunction.apply(document) + "Changed";
+                eventDispatcher.removeEventListener(eventName, eventHandler);
+                eventDispatcher.removeEventListener("allStylesChanged", eventHandler);
             }
         }

 		parentObj = newParent;

+        // Add listeners the new "watched" object.
         if (parentObj != null &&
-            parentObj is IEventDispatcher &&
-            events != null)
+            parentObj is IEventDispatcher)
         {
             eventDispatcher = parentObj as IEventDispatcher;

-            for (p in events)
-            {
-                if (p != "__NoChangeEvent__")
-				{
-                    eventDispatcher.addEventListener(
-						p, eventHandler, false, EventPriority.BINDING, true);
-				}
+            // events can be null when watching a function marked with
+            // [Bindable(style="true")].
+            if (events != null)
+            {
+                for (eventName in events)
+                {
+                    if (eventName != "__NoChangeEvent__")
+                    {
+                        eventDispatcher.addEventListener(eventName, eventHandler,
+                                                         false,
+                                                         EventPriority.BINDING,
+                                                         true);
+                    }
+                }
+            }
+
+            if (isStyle)
+            {
+                // For example, if the data binding expression is
+                // {getStyle("color")}, the eventName will be
+                // "colorChanged".
+                eventName = parameterFunction.apply(document) + "Changed";
+                eventDispatcher.addEventListener(eventName, eventHandler, false,
+                                                 EventPriority.BINDING, true);
+                eventDispatcher.addEventListener("allStylesChanged", eventHandler, false,
+                                                 EventPriority.BINDING, true);
             }
         }
     }
@@ -223,7 +274,17 @@
     {
         updateFunctionReturn();

-        notifyListeners(events[event.type]);
+        // events can be null when watching a function marked with
+        // [Bindable(style="true")].
+        if (events != null)
+        {
+            notifyListeners(events[event.type]);
+        }
+
+        if (isStyle)
+        {
+            notifyListeners(true);
+        }
     }
 }


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
+++ frameworks/projects/framework/src/mx/graphics/LinearGradientStroke.as
@@ -0,0 +1,549 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.graphics
+{
+
+import flash.display.GradientType;
+import flash.display.Graphics;
+import mx.core.mx_internal;
+
+/**
+ *  The LinearGradientStroke class lets you specify a gradient filled stroke.
+ *  You use the LinearGradientStroke class, along with the GradientEntry class,
+ *  to define a gradient stroke.
+ *
+ *  @see mx.graphics.Stroke
+ *  @see mx.graphics.GradientEntry
+ *  @see mx.graphics.RadialGradient
+ *  @see flash.display.Graphics
+ */
+public class LinearGradientStroke extends GradientBase implements IStroke
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param weight Specifies the line weight, in pixels.
+     *  This parameter is optional,
+     *  with a default value of 0.
+     *
+     *  @param pixelHinting A Boolean value that specifies
+     *  whether to hint strokes to full pixels.
+     *  This affects both the position of anchors of a curve
+     *  and the line stroke size itself.
+     *  With pixelHinting set to true,
+     *  Flash Player and AIR hint line widths to full pixel widths.
+     *  With pixelHinting set to false,
+     *  disjoints can  appear for curves and straight lines.
+     *  This parameter is optional,
+     *  with a default value of false.
+     *
+     *  @param scaleMode A value from the LineScaleMode class
+     *  that specifies which scale mode to use.
+     *  Valid values are LineScaleMode.HORIZONTAL,
+     *  LineScaleMode.NONE, LineScaleMode.NORMAL,
+     *  and LineScaleMode.VERTICAL.
+     *  This parameter is optional,
+     *  with a default value of LineScaleMode.NORMAL.
+     *
+     *  @param caps A value from the CapsStyle class
+     *  that specifies the type of caps at the end of lines.
+     *  Valid values are CapsStyle.NONE,
+     *  CapsStyle.ROUND, and CapsStyle.SQUARE.
+     *  A null value is equivalent to
+     *  CapsStyle.ROUND.
+     *  This parameter is optional,
+     *  with a default value of null.
+     *
+     *  @param joints A value from the JointStyle class
+     *  that specifies the type of joint appearance used at angles.
+     *  Valid values are JointStyle.BEVEL,
+     *  JointStyle.MITER, and JointStyle.ROUND.
+     *  A null value is equivalent to
+     *  JoinStyle.ROUND.
+     *  This parameter is optional,
+     *  with a default value of null.
+     *
+     *  @param miterLimit A number that indicates the limit
+     *  at which a miter is cut off.
+     *  Valid values range from 1 to 255
+     *  (and values outside of that range are rounded to 1 or 255).
+     *  This value is only used if the jointStyle property
+     *  is set to miter.
+     *  The miterLimit value represents the length that a miter
+     *  can extend beyond the point at which the lines meet to form a joint.
+     *  The value expresses a factor of the line thickness.
+     *  For example, with a miterLimit factor of 2.5 and a
+     *  thickness of 10 pixels, the miter is cut off at 25 pixels.
+     *  This parameter is optional,
+     *  with a default value of 0.
+     */
+    public function LinearGradientStroke(weight:Number = 0,
+                                         pixelHinting:Boolean = false,
+                                         scaleMode:String = "normal",
+                                         caps:String = null,
+                                         joints:String = null,
+                                         miterLimit:Number = 0)
+    {
+        super();
+
+        this.weight = weight;
+        this.pixelHinting = pixelHinting;
+        this.scaleMode = scaleMode;
+        this.caps = caps;
+        this.joints = joints;
+        this.miterLimit = miterLimit;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  angle
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the angle property.
+     */
+    private var _rotation:Number = 0.0;
+
+    [Inspectable(category="General")]
+
+    /**
+     *  By default, the LinearGradientStroke defines a transition
+     *  from left to right across the control.
+     *  Use the angle property to control the transition direction.
+     *  For example, a value of 180.0 causes the transition
+     *  to occur from right to left, rather than from left to right.
+     *
+     *  @default 0.0
+     */
+    public function get angle():Number
+    {
+        return _rotation / Math.PI * 180;
+    }
+
+    /**
+     *  @private
+     */
+    public function set angle(value:Number):void
+    {
+        var oldValue:Number = _rotation;
+        _rotation = value / 180 * Math.PI;
+
+        mx_internal::dispatchGradientChangedEvent(
+                            "angle", oldValue, _rotation);
+    }
+
+    //----------------------------------
+    //  caps
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the caps property.
+     */
+    private var _caps:String = null;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General", enumeration="round,square,none", defaultValue="round")]
+
+    /**
+     *  A value from the CapsStyle class
+     *  that specifies the type of caps at the end of lines.
+     *
+     *
Valid values are CapsStyle.NONE,
+     *  CapsStyle.ROUND, and CapsStyle.SQUARE.
+     *  A null value is equivalent to
+     *  CapsStyle.ROUND.

+     *
+     *  @default null
+     */
+    public function get caps():String
+    {
+        return _caps;
+    }
+
+    /**
+     *  @private
+     */
+    public function set caps(value:String):void
+    {
+        var oldValue:String = _caps;
+        if (value != oldValue)
+        {
+            _caps = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "caps", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  interpolationMethod
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the interpolationMethod property.
+     */
+    private var _interpolationMethod:String = "rgb";
+
+    [Inspectable(category="General", enumeration="rgb,linearRGB", defaultValue="rgb")]
+
+    /**
+     *  A value from the InterpolationMethod class
+     *  that specifies which interpolation method to use.
+     *
+     *
Valid values are InterpolationMethod.LINEAR_RGB
+     *  and InterpolationMethod.RGB.

+     *
+     *  @default InterpolationMethod.RGB
+     */
+    public function get interpolationMethod():String
+    {
+        return _interpolationMethod;
+    }
+
+    /**
+     *  @private
+     */
+    public function set interpolationMethod(value:String):void
+    {
+        var oldValue:String = _interpolationMethod;
+        if (value != oldValue)
+        {
+            _interpolationMethod = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "interpolationMethod", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  joints
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the joints property.
+     */
+    private var _joints:String = null;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General", enumeration="round,bevel,miter", defaultValue="round")]
+
+    /**
+     *  A value from the JointStyle class that specifies the type
+     *  of joint appearance used at angles.
+     *
+     *
Valid values are JointStyle.BEVEL,
+     *  JointStyle.MITER, and JointStyle.ROUND.
+     *  A null value is equivalent to
+     *  JoinStyle.ROUND.

+     *
+     *  @default null
+     */
+    public function get joints():String
+    {
+        return _joints;
+    }
+
+    /**
+     *  @private
+     */
+    public function set joints(value:String):void
+    {
+        var oldValue:String = _joints;
+        if (value != oldValue)
+        {
+            _joints = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "joints", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  miterLimit
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the miterLimit property.
+     */
+    private var _miterLimit:Number = 0;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  A number that indicates the limit at which a miter is cut off.
+     *
+     *
Valid values range from 0 to 255
+     *  (and values outside of that range are rounded to 0 or 255).

+     *
+     *
This value is only used if the jointStyle
+     *  is set to JointStyle.MITER.

+     *
+     *
The miterLimit value represents the length that a miter
+     *  can extend beyond the point at which the lines meet to form a joint.
+     *  The value expresses a factor of the line thickness.
+     *  For example, with a miterLimit factor of 2.5
+     *  and a thickness of 10 pixels,
+     *  the miter is cut off at 25 pixels.

+     *
+     *  @default 0
+     */
+    public function get miterLimit():Number
+    {
+        return _miterLimit;
+    }
+
+    /**
+     *  @private
+     */
+    public function set miterLimit(value:Number):void
+    {
+        var oldValue:Number = _miterLimit;
+        if (value != oldValue)
+        {
+            _miterLimit = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "miterLimit", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  pixelHinting
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the pixelHinting property.
+     */
+    private var _pixelHinting:Boolean = false;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  A Boolean value that specifies whether to hint strokes to full pixels.
+     *
+     *
This affects both the position of anchors of a curve
+     *  and the line stroke size itself.

+     *
+     *
With pixelHinting set to true,
+     *  Flash Player and AIR hint line widths to full pixel widths.
+     *  With pixelHinting set to false,
+     *  disjoints can appear for curves and straight lines.

+     *
+     *  @default false
+     */
+    public function get pixelHinting():Boolean
+    {
+        return _pixelHinting;
+    }
+
+    /**
+     *  @private
+     */
+    public function set pixelHinting(value:Boolean):void
+    {
+        var oldValue:Boolean = _pixelHinting;
+        if (value != oldValue)
+        {
+            _pixelHinting = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "pixelHinting", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  scaleMode
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the scaleMode property.
+     */
+    private var _scaleMode:String = "normal";
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General", enumeration="normal,vertical,horizontal,none", defaultValue="normal")]
+
+    /**
+     *  A value from the LineScaleMode class
+     *  that  specifies which scale mode to use.
+     *  Value valids are:
+     *
+     *

+     *

+     *  LineScaleMode.NORMAL—
+     *  Always scale the line thickness when the object is scaled  (the default).
+     *

+     *

+     *  LineScaleMode.NONE—
+     *  Never scale the line thickness.
+     *

+     *

+     *  LineScaleMode.VERTICAL—
+     *  Do not scale the line thickness if the object is scaled vertically
+     *  only.
+     *

+     *

+     *  LineScaleMode.HORIZONTAL—
+     *  Do not scale the line thickness if the object is scaled horizontally
+     *  only.
+     *

+     *

+     *
+     *  @default LineScaleMode.NORMAL
+     */
+    public function get scaleMode():String
+    {
+        return _scaleMode;
+    }
+
+    /**
+     *  @private
+     */
+    public function set scaleMode(value:String):void
+    {
+        var oldValue:String = _scaleMode;
+        if (value != oldValue)
+        {
+            _scaleMode = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "scaleMode", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  spreadMethod
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the spreadMethod property.
+     */
+    private var _spreadMethod:String = "pad";
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General", enumeration="pad,reflect,repeat", defaultValue="pad")]
+
+    /**
+     *  A value from the SpreadMethod class
+     *  that specifies which spread method to use.
+     *
+     *
Value values are SpreadMethod.PAD,
+     *  SpreadMethod.REFLECT,
+     *  and SpreadMethod.REPEAT.

+     *
+     *  @default SpreadMethod.PAD
+     */
+    public function get spreadMethod():String
+    {
+        return _spreadMethod;
+    }
+
+    /**
+     *  @private
+     */
+    public function set spreadMethod(value:String):void
+    {
+        var oldValue:String = _spreadMethod;
+        if (value != oldValue)
+        {
+            _spreadMethod = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "spreadMethod", oldValue, value);
+        }
+    }
+
+    //----------------------------------
+    //  weight
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the weight property.
+     */
+    private var _weight:Number;
+
+    [Bindable("propertyChange")]
+    [Inspectable(category="General")]
+
+    /**
+     *  The line weight, in pixels.
+     *  For many charts, the default value is 1 pixel.
+     */
+    public function get weight():Number
+    {
+        return _weight;
+    }
+
+    /**
+     *  @private
+     */
+    public function set weight(value:Number):void
+    {
+        var oldValue:Number = _weight;
+        if (value != oldValue)
+        {
+            _weight = value;
+
+            mx_internal::dispatchGradientChangedEvent(
+                                "weight", oldValue, value);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Applies the properties to the specified Graphics object.
+     *
+     *  @param g The Graphics object to which the LinearGradientStroke styles
+     *  are applied.
+     */
+    public function apply(g:Graphics):void
+    {
+        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
+                    caps, joints, miterLimit);
+
+        g.lineGradientStyle(GradientType.LINEAR, mx_internal::colors,
+                            mx_internal::alphas, mx_internal::ratios,
+                            null /* matrix */, spreadMethod,
+                            interpolationMethod);
+    }
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5797
Author:   jimurphy@adobe.com
Date:     2009-03-31T15:35:34.544076Z

Log Message:
-----------
Merged revisions 3.x 5505,5526-5527,5535,5540,5542,5572,5616-5617,5656-5657,5671,5674,5683,5687-5688,5690,5698,5708-5709,5713-5716,5719-5723,5726,5728-5729,5736,5752,5754,5761,5774,5780,5784 -> trunk

most of these are user submitted patches! very cool.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/IResourceManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/NavBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/compiler/FlexCompilerShell-license.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/formatters/DateFormatter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/PhoneNumberValidator.as</path>
<path kind="file" copyfrom-path="/flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as" copyfrom-rev="5784" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidatorDomainType.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/NumberValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/validators/CurrencyValidator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/CalendarLayoutChangeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/DataGridEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/Slider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpMenuButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>

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

--- frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as
+++ frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as
@@ -454,9 +454,40 @@
      */
     public function unloadResourceModule(url:String, update:Boolean = true):void
     {
-        throw new Error("unloadResourceModule() is not yet implemented.");
-    }
-
+        // Get the resource module info.
+        var rmi:ResourceModuleInfo = resourceModules[url];
+        if (!rmi)
+            return;
+
+        if (rmi.resourceModule)
+        {
+            // Get the bundles in this module.
+            var bundles:Array = rmi.resourceModule.resourceBundles;
+            if (bundles)
+            {
+               var n:int = bundles.length;
+               for (var i:int = 0; i < n; i++)
+               {
+                   // Remove each bundle.
+                   var locale:String = bundles[i].locale;
+                   var bundleName:String = bundles[i].bundleName;
+                   removeResourceBundle(locale, bundleName);
+               }
+            }
+        }
+
+        // Remove all links to the module.
+        resourceModules[url] = null;
+        delete resourceModules[url];
+
+        // Unload the module.
+        rmi.moduleInfo.unload();
+
+        // Update if necessary.
+        if (update)
+            this.update();
+    }
+
     /**
      *  @copy mx.resources.IResourceManager#addResourceBundle()
      *


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

--- frameworks/projects/charts/src/mx/charts/styles/metadata/TextStyles.as
+++ frameworks/projects/charts/src/mx/charts/styles/metadata/TextStyles.as
@@ -0,0 +1,272 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  Color of text in the component, including the component label.
+ *
+ *  @default 0x0B333C
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="color", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Color of text in the component if it is disabled.
+ *
+ *  @default 0xAAB3B3
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Sets the antiAliasType property of internal TextFields. The possible values are
+ *  "normal" (flash.text.AntiAliasType.NORMAL)
+ *  and "advanced" (flash.text.AntiAliasType.ADVANCED).
+ *
+ *
The default value is "advanced", which enables the FlashType renderer if you are using an
+ *  embedded FlashType font. Set to "normal" to disable the FlashType renderer.

+ *
+ *
This style has no effect for system fonts.

+ *
+ *
This style applies to all the text in a TextField subcontrol;
+ *  you can't apply it to some characters and not others.

+
+ *  @default "advanced"
+ *
+ *  @see flash.text.TextField
+ *  @see flash.text.AntiAliasType
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontAntiAliasType", type="String", enumeration="normal,advanced", inherit="yes")]
+
+/**
+ *  Name of the font to use.
+ *  Unlike in a full CSS implementation,
+ *  comma-separated lists are not supported.
+ *  You can use any font family name.
+ *  If you specify a generic font name,
+ *  it is converted to an appropriate device font.
+ *
+ *  @default "Verdana"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontFamily", type="String", inherit="yes")]
+
+/**
+ *  Sets the gridFitType property of internal TextFields that represent text in Flex controls.
+ *  The possible values are "none" (flash.text.GridFitType.NONE),
+ *  "pixel" (flash.text.GridFitType.PIXEL),
+ *  and "subpixel" (flash.text.GridFitType.SUBPIXEL).
+ *
+ *
This property only applies when you are using an embedded FlashType font
+ *  and the fontAntiAliasType property
+ *  is set to "advanced".

+ *
+ *
This style has no effect for system fonts.

+ *
+ *
This style applies to all the text in a TextField subcontrol;
+ *  you can't apply it to some characters and not others.

+ *
+ *  @default "pixel"
+ *
+ *  @see flash.text.TextField
+ *  @see flash.text.GridFitType
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontGridFitType", type="String", enumeration="none,pixel,subpixel", inherit="yes")]
+
+/**
+ *  Sets the sharpness property of internal TextFields that represent text in Flex controls.
+ *  This property specifies the sharpness of the glyph edges. The possible values are Numbers
+ *  from -400 through 400.
+ *
+ *
This property only applies when you are using an embedded FlashType font
+ *  and the fontAntiAliasType property
+ *  is set to "advanced".

+ *
+ *
This style has no effect for system fonts.

+ *
+ *
This style applies to all the text in a TextField subcontrol;
+ *  you can't apply it to some characters and not others.

+ *
+ *  @default 0
+ *
+ *  @see flash.text.TextField
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontSharpness", type="Number", inherit="yes")]
+
+/**
+ *  Height of the text, in pixels.
+ *
+ *  The default value is 10 for all controls except the ColorPicker control.
+ *  For the ColorPicker control, the default value is 11.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontSize", type="Number", format="Length", inherit="yes")]
+
+/**
+ *  Determines whether the text is italic font.
+ *  Recognized values are "normal" and "italic".
+ *
+ *  @default "normal"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontStyle", type="String", enumeration="normal,italic", inherit="yes")]
+
+/**
+ *  Sets the thickness property of internal TextFields that represent text in Flex controls.
+ *  This property specifies the thickness of the glyph edges.
+ *  The possible values are Numbers from -200 to 200.
+ *
+ *
This property only applies when you are using an embedded FlashType font
+ *  and the fontAntiAliasType property
+ *  is set to "advanced".

+ *
+ *
This style has no effect on system fonts.

+ *
+ *
This style applies to all the text in a TextField subcontrol;
+ *  you can't apply it to some characters and not others.

+ *
+ *  @default 0
+ *
+ *  @see flash.text.TextField
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontThickness", type="Number", inherit="yes")]
+
+/**
+ *  Determines whether the text is boldface.
+ *  Recognized values are "normal" and "bold".
+ *  For LegendItem, the default is "bold".
+ *
+ *  @default "normal"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="fontWeight", type="String", enumeration="normal,bold", inherit="yes")]
+
+/**
+ *  A Boolean value that indicates whether kerning
+ *  is enabled (true) or disabled (false).
+ *  Kerning adjusts the gap between certain character pairs
+ *  to improve readability, and should be used only when necessary,
+ *  such as with headings in large fonts.
+ *  Kerning is supported for embedded FlashType fonts only.
+ *  Certain fonts, such as Verdana, and monospaced fonts,
+ *  such as Courier New, do not support kerning.
+ *
+ *  @default false
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="kerning", type="Boolean", inherit="yes")]
+
+/**
+ *  The number of additional pixels to appear between each character.
+ *  A positive value increases the character spacing beyond the normal spacing,
+ *  while a negative value decreases it.
+ *
+ *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="letterSpacing", type="Number", inherit="yes")]
+
+/**
+ *  Alignment of text within a container.
+ *  Possible values are "left", "right",
+ *  or "center".
+ *
+ *
The default value for most controls is left.
+ *  For the Button, LinkButton, and AccordionHeader components,
+ *  the default value is "center".
+ *  For these components, this property is only recognized when the
+ *  labelPlacement property is set to "left" or
+ *  "right".
+ *  If labelPlacement is set to "top" or
+ *  "bottom", the text and any icon are centered.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="textAlign", type="String", enumeration="left,center,right", inherit="yes")]
+
+/**
+ *  Determines whether the text is underlined.
+ *  Possible values are "none" and "underline".
+ *
+ *  @default "none"
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="textDecoration", type="String", enumeration="none,underline", inherit="yes")]
+
+/**
+ *  Offset of first line of text from the left side of the container, in pixels.
+ *
+ *  @default 0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="textIndent", type="Number", format="Length", inherit="yes")]


FLEX-24296 throw out of range error if passed negative index

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -911,6 +911,14 @@
         {
             // If caller passed in a number such as 5.5, it will be floored.
             var n:Number = parseInt(String(name));
+
+			if (n < 0)
+			{
+				var message:String = resourceManager.getString(
+					"collections", "outOfBounds", [ -1 ]);
+				throw new RangeError(message);
+			}
+
             if (!isNaN(n))
                 index = int(n);
         }


Vector.map can only return a vector of the same type.

How is that useful? Yet another reason to stop using Vector, I guess, but I'm not going to go
changing the convention in this lib.

--- exporter/src/main/as/flump/export/PublishFormat.as
+++ exporter/src/main/as/flump/export/PublishFormat.as
@@ -40,9 +40,9 @@
         if (_libs.length == 1) return _libs[0].md5;

         // for combined libs, use a hash of the concatenated libs' md5s.
-        return MD5.hash(_libs.map(function (lib :XflLibrary, ...ignored) :String {
-            return lib.md5;
-        }).join("|"))
+        var md5s :Vector.<String> = new <String>[];
+        for each (var lib :XflLibrary in _libs) md5s[md5s.length] = lib.md5;
+        return MD5.hash(md5s.join("|"));
     }

     protected function get location () :String {


Signals require a type parameter

Signals require a type parameter

--- runtime/src/main/as/flump/display/LibraryLoader.as
+++ runtime/src/main/as/flump/display/LibraryLoader.as
@@ -3,6 +3,7 @@

 package flump.display {

+import flash.events.ProgressEvent;
 import flash.utils.ByteArray;

 import flump.executor.Executor;
@@ -74,7 +75,7 @@
      * Signal parameters:
      *  * event :flash.events.ProgressEvent
      */
-    public const urlLoadProgressed :Signal = new Signal();
+    public const urlLoadProgressed :Signal = new Signal(ProgressEvent);

     /**
      * Dispatched when a file is found in the Zip archive that is not recognized by Flump.


hsp3utl.asがコンパイルを通らなくなっていたので修正

hsp3utl.asがコンパイルを通らなくなっていたので修正

git-svn-id: 667ccd08e5f160307f6512a0947301cac150914e@171 ceb3ebad-0e53-d446-8596-a45b2b8d79cd

--- package/win32/common/hsp3util.as
+++ package/win32/common/hsp3util.as
@@ -6,8 +6,8 @@

 #module "hsp3util"

-#define WS_VISIBLE 0x10000000
-#define WS_CHILD 0x40000000
+#define WS_VISIBLE 0x10000000
+#define WS_CHILD 0x40000000

 #define PBM_SETSTEP	1028
 #define PBM_STEPIT	1029
@@ -267,7 +267,7 @@

 ;--------------------------------------------------------------------------------

-#deffunc note2array array _p1, str _p2, local mestmp
+#deffunc note2array array _p1, str _p2;, local mestmp

 	;
 	;	s̕sƂɔzϐɑ


Transferred from the Adobe Open Source Subversion Repository

Revision: 12459
Author:   aharui@adobe.com
Date:     2009-12-03T19:16:58.161692Z

Log Message:
-----------
Fix bugs in DG found from MXItemRenderer testing

QE Notes: Might be two DG mustella test failures.
Doc Notes: None
Bugs: SDK-24483, SDK-24451, SDK-24448
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/components/DataGrid

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>

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

--- frameworks/projects/mx/src/mx/controls/DataGrid.as
+++ frameworks/projects/mx/src/mx/controls/DataGrid.as
@@ -1087,6 +1087,26 @@
         invalidateDisplayList();
     }

+    //----------------------------------
+    //  itemRenderer
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function set itemRenderer(value:IFactory):void
+    {
+        super.itemRenderer = value;
+        if (columns)
+        {
+            var n:int = columns.length;
+            for (var i:int = 0; i < n; i++)
+            {
+                columns[i].resetFactories();
+            }
+        }
+    }
+
     /**
      *  @private
      */
@@ -5621,6 +5641,18 @@
                 drawLinesAndColumnGraphics(lockedColumnContent, visibleLockedColumns, { right: 1})
             }
         }
+        else
+        {
+            var lines:Sprite = Sprite(listContent.getChildByName("lines"));
+            if (lines)
+                listContent.setChildIndex(lines, listContent.numChildren - 1);
+            if (lockedColumnCount)
+            {
+                lines = Sprite(lockedColumnContent.getChildByName("lines"));
+                if (lines)
+                    lockedColumnContent.setChildIndex(lines, lockedColumnContent.numChildren - 1);
+            }
+        }
     }

     private var _focusPane:Sprite;


Render mode. Disable render mode when the layout is loaded.

--- src/com/benoitfreslon/layoutmanager/BFTextField.as
+++ src/com/benoitfreslon/layoutmanager/BFTextField.as
@@ -32,7 +32,6 @@
 		public function set border(value:Boolean):void
 		{
 			_border = value;
-			_tf.border = _border;
 			draw();

 		}
@@ -48,7 +47,6 @@
 		{

 			_color = value;
-			_tf.textColor = _color;
 			draw();
 		}
 		private var _color : uint = 0xFFFFFF;
@@ -147,19 +145,29 @@

-		private var _tf:TextField = new TextField();
+		private var _tf:TextField;

 		public function BFTextField() {
 			super();
 			mainClass = "starling.text.TextField";
-			addChild(_tf);
-			_tf.multiline = true;
+			if (!LayoutLoader.renderMode) {
+				_tf = new TextField();
+				addChild(_tf);
+				_tf.multiline = true;
+			}
+
 		}
 		protected override function draw():void
 		{
 			super.draw();
-			//_text  = _text.split("n").join("
");
-			_text = _text.replace("\\n", "
")
+			if (LayoutLoader.renderMode)
+				return;
+
+
+			_text = _text.replace("\\n", "
");
+
+			_tf.textColor = _color;
+			_tf.border = _border;

 			var htmlItalic:String = "";
 			if (_italic)
@@ -170,11 +178,9 @@
 			var htmlUnderline:String = "";
 			if (_underline)
 				htmlUnderline = "";
-
-			_tf.text = "";
-			_tf.htmlText = "";
+
 			_tf.htmlText = "
"+ htmlBold + htmlItalic + htmlUnderline + "" + _text;
-			//_tf.text = _text;
+
 			_tf.width = scaleX*100;
 			_tf.height = scaleY*100;

@@ -186,12 +192,6 @@
 			}
 			_tf.x = -_tf.width / 2;
 			_tf.y = -_tf.height / 2;
-			/*
-			graphics.clear();
-			graphics.beginFill(0x000000, 1);
-			graphics.drawRoundRect(-width/2, -height/2, width/2, height/2, 3, 3);
-			graphics.endFill();
-			*/
 		}
 	}


Convert MediaContainer to be just a subclass of Sprite, so that I can
de-flex the 'world' portions of metasoy.

git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@4506 542714f4-19e9-0310-aa3c-eee0fc999fb1

--- src/as/com/threerings/util/MediaContainer.as
+++ src/as/com/threerings/util/MediaContainer.as
@@ -6,6 +6,7 @@
 import flash.display.Loader;
 import flash.display.LoaderInfo;
 import flash.display.Shape;
+import flash.display.Sprite;

 import flash.errors.IOError;

@@ -30,14 +31,6 @@

 import flash.net.URLRequest;

-import mx.core.ScrollPolicy;
-import mx.core.UIComponent;
-
-import mx.containers.Box;
-import mx.controls.VideoDisplay;
-
-import mx.events.VideoEvent;
-
 import com.threerings.util.StringUtil;

 import com.threerings.media.image.ImageUtil;
@@ -46,7 +39,7 @@
  * A wrapper class for all media that will be placed on the screen.
  * Subject to change.
  */
-public class MediaContainer extends Box
+public class MediaContainer extends Sprite
 {
     /** An event we dispatch when our size is known. */
     public static const SIZE_KNOWN :String = "mediaSizeKnown";
@@ -65,8 +58,6 @@

         mouseEnabled = false;
         mouseChildren = true;
-        verticalScrollPolicy = ScrollPolicy.OFF;
-        horizontalScrollPolicy = ScrollPolicy.OFF;
     }

     /**
@@ -120,11 +111,7 @@
             shutdown(false);
         }

-        if (disp is UIComponent) {
-            addChild(disp);
-        } else {
-            rawChildren.addChild(disp);
-        }
+        addChild(disp);
         _media = disp;
         updateContentDimensions(disp.width, disp.height);
     }
@@ -134,17 +121,17 @@
      */
     protected function setupVideo (url :String) :void
     {
-        var vid :VideoDisplay = new VideoDisplay();
-        vid.autoPlay = false;
-        _media = vid;
-        addChild(vid);
-        vid.addEventListener(ProgressEvent.PROGRESS, loadVideoProgress);
-        vid.addEventListener(VideoEvent.READY, loadVideoReady);
-        vid.addEventListener(VideoEvent.REWIND, videoDidRewind);
-
-        // start it loading
-        vid.source = url;
-        vid.load();
+//        var vid :VideoDisplay = new VideoDisplay();
+//        vid.autoPlay = false;
+//        _media = vid;
+//        addChild(vid);
+//        vid.addEventListener(ProgressEvent.PROGRESS, loadVideoProgress);
+//        vid.addEventListener(VideoEvent.READY, loadVideoReady);
+//        vid.addEventListener(VideoEvent.REWIND, videoDidRewind);
+//
+//        // start it loading
+//        vid.source = url;
+//        vid.load();
     }

     /**
@@ -168,7 +155,7 @@

         // start it loading, add it as a child
         loader.load(new URLRequest(url), getContext(url));
-        rawChildren.addChild(loader);
+        addChild(loader);

         try {
             updateContentDimensions(info.width, info.height);
@@ -215,7 +202,7 @@
         try {
             // remove the mask
             if (_media != null && _media.mask != null) {
-                rawChildren.removeChild(_media.mask);
+                removeChild(_media.mask);
                 _media.mask = null;
             }

@@ -232,34 +219,30 @@
                 }
                 loader.unload();

-                rawChildren.removeChild(loader);
-
-            } else if (_media is VideoDisplay) {
-                var vid :VideoDisplay = (_media as VideoDisplay);
-                // remove any listeners
-                vid.removeEventListener(ProgressEvent.PROGRESS,
-                    loadVideoProgress);
-                vid.removeEventListener(VideoEvent.READY, loadVideoReady);
-                vid.removeEventListener(VideoEvent.REWIND, videoDidRewind);
-
-                // dispose of media
-                vid.pause();
-                try {
-                    vid.close();
-                } catch (ioe :IOError) {
-                    // ignore
-                }
-                vid.stop();
-
-                // remove from hierarchy
-                removeChild(vid);
+                removeChild(loader);
+
+//            } else if (_media is VideoDisplay) {
+//                var vid :VideoDisplay = (_media as VideoDisplay);
+//                // remove any listeners
+//                vid.removeEventListener(ProgressEvent.PROGRESS,
+//                    loadVideoProgress);
+//                vid.removeEventListener(VideoEvent.READY, loadVideoReady);
+//                vid.removeEventListener(VideoEvent.REWIND, videoDidRewind);
+//
+//                // dispose of media
+//                vid.pause();
+//                try {
+//                    vid.close();
+//                } catch (ioe :IOError) {
+//                    // ignore
+//                }
+//                vid.stop();
+//
+//                // remove from hierarchy
+//                removeChild(vid);

             } else if (_media != null) {
-                if (_media is UIComponent) {
-                    removeChild(_media);
-                } else {
-                    rawChildren.removeChild(_media);
-                }
+                removeChild(_media);
             }
         } catch (ioe :IOError) {
             log.warning("Error shutting down media: " + ioe);
@@ -393,27 +376,27 @@
      */
     protected function loadVideoProgress (event :ProgressEvent) :void
     {
-        var vid :VideoDisplay = (event.currentTarget as VideoDisplay);
-        updateContentDimensions(vid.videoWidth, vid.videoHeight);
-
-        updateLoadingProgress(vid.bytesLoaded, vid.bytesTotal);
+//        var vid :VideoDisplay = (event.currentTarget as VideoDisplay);
+//        updateContentDimensions(vid.videoWidth, vid.videoHeight);
+//
+//        updateLoadingProgress(vid.bytesLoaded, vid.bytesTotal);
     }

     /**
      * A callback to receive READY events for video.
      */
-    protected function loadVideoReady (event :VideoEvent) :void
-    {
-        var vid :VideoDisplay = (event.currentTarget as VideoDisplay);
-        updateContentDimensions(vid.videoWidth, vid.videoHeight);
-        updateLoadingProgress(1, 1);
-
-        vid.play();
-
-        // remove the two listeners
-        vid.removeEventListener(ProgressEvent.PROGRESS, loadVideoProgress);
-        vid.removeEventListener(VideoEvent.READY, loadVideoReady);
-    }
+//    protected function loadVideoReady (event :VideoEvent) :void
+//    {
+//        var vid :VideoDisplay = (event.currentTarget as VideoDisplay);
+//        updateContentDimensions(vid.videoWidth, vid.videoHeight);
+//        updateLoadingProgress(1, 1);
+//
+//        vid.play();
+//
+//        // remove the two listeners
+//        vid.removeEventListener(ProgressEvent.PROGRESS, loadVideoProgress);
+//        vid.removeEventListener(VideoEvent.READY, loadVideoReady);
+//    }

     /**
      * Callback function to receive COMPLETE events for swfs or images.
@@ -430,28 +413,15 @@

         updateContentDimensions(info.width, info.height);
         updateLoadingProgress(1, 1);
-
-//        // Bitmap smoothing
-//        if (_media is Loader) {
-//            var l :Loader = Loader(_media);
-//            try {
-//                if (l.content is Bitmap) {
-//                    Bitmap(l.content).smoothing = true;
-//                    trace("--- made bitmap smooth");
-//                }
-//            } catch (er :Error) {
-//                trace("--- error bitmap smooth");
-//            }
-//        }
     }

     /**
      * Called when the video auto-rewinds.
      */
-    protected function videoDidRewind (event :VideoEvent) :void
-    {
-        (_media as VideoDisplay).play();
-    }
+//    protected function videoDidRewind (event :VideoEvent) :void
+//    {
+//        (_media as VideoDisplay).play();
+//    }

     /**
      * Configure the mask for this object.
@@ -465,7 +435,7 @@
         } else {
             mask = new Shape();
             // the mask must be added to the display list (which is wacky)
-            rawChildren.addChild(mask);
+            addChild(mask);
             _media.mask = mask;
         }


replace class Version by core.version

replace class Version by core.version

--- src/com/google/analytics/core/BrowserInfo.as
+++ src/com/google/analytics/core/BrowserInfo.as
@@ -22,12 +22,10 @@
 {
     import com.google.analytics.utils.Environment;
     import com.google.analytics.utils.Variables;
-    import com.google.analytics.utils.Version;
     import com.google.analytics.v4.Configuration;
-
-    /**
-     * The BrowserInfo class.
-     */
+
+    import core.version;
+
     public class BrowserInfo
     {
         private var _config:Configuration;
@@ -97,7 +95,7 @@
         {
             if( _config.detectFlash )
             {
-                var v:Version = _info.flashVersion;
+                var v:version = _info.flashVersion;
                 return v.major+"."+v.minor+" r"+v.build;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 19328
Author:   mhorn@adobe.com
Date:     2010-12-13T20:45:00.405533Z

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

Modified Paths:
--------------
<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/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationAngledButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</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/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderDataTip.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/HSliderTrackSkin.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/HSliderSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HSliderThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/NavigationButtonSkin.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as
@@ -28,7 +28,9 @@
 use namespace mx_internal;

 /**
- *  Base mobile skin for spark.components.TextArea
+ *  Base mobile skin for spark.components.TextArea.
+ *
+ * @see spark.components.TextArea
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -43,6 +45,14 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.5
+     *  @productversion Flex 4.5
+     */
     public function TextAreaSkin()
     {
         super();
@@ -90,6 +100,9 @@
     //
     //--------------------------------------------------------------------------

+    /**
+     *  @copy spark.skins.spark.ApplicationSkin#hostComponent
+     */
     public var hostComponent:TextArea;

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6595
Author:   dsubrama@adobe.com
Date:     2009-05-04T20:00:36.061973Z

Log Message:
-----------
Support for caret state in ItemRenderers and List. Focus management puts renderers in the caret state and selectUponNavigation is partly implemented. This is the first step towards getting DropDownList selection/list keyboard navigation work working. Jason will do the integration/refactoring on the List end with a subsequent check-in.

QA: Hold off till Jason's refactoring work comes in
Checkintests: PASS
Mustella tests: List, ButtonBar - PASS

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/skins/default/DefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBarButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
+++ frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as
@@ -30,6 +30,7 @@
 		<s:State name="normal"/>
 		<s:State name="hovered"/>
 		<s:State name="selected"/>
+        <s:State name="caret"/>
 	</s:states>

 	<s:Rect left="0" right="0" top="0" bottom="0">
@@ -42,6 +43,9 @@
 		<s:fill.selected>
 		    <s:SolidColor color="{selectionColor}" />
 		</s:fill.selected>
+        <s:stroke.caret>
+            <s:SolidColorStroke color="0xFFFF00" />
+        </s:stroke.caret>
 	</s:Rect>
 	<s:SimpleText id="labelElement" verticalCenter="0" left="3" right="3" top="6" bottom="4"/>


Add default parameter to support MXML.

Add default parameter to support MXML.

--- src/org/flintparticles/twoD/actions/TweenToZone.as
+++ src/org/flintparticles/twoD/actions/TweenToZone.as
@@ -64,7 +64,7 @@
 		 *
 		 * @param zone The zone for the particle's position when its energy is 0.
 		 */
-		public function TweenToZone( zone:Zone2D )
+		public function TweenToZone( zone:Zone2D=null )
 		{
 			_zone = zone;
 			priority = -10;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18719
Author:   klin@adobe.com
Date:     2010-11-18T22:06:36.395894Z

Log Message:
-----------
Cleaned up TODOs and fixed some minor bugs.

GridDimensions.as, GridRowNode.as, Grid.as
-renamed insertValuesToVector to insertElementsToVector.
-renamed clear to clearHeights. clearHeights also doesn't reset rowCount anymore.
-optimized finding the max in GridRowNode a little.

GridColumn.as
-Invalidate the grid when headerRenderer changes. Removed the TODOs here because invalidating the Grid will cause IDataGridElements to be invalidated.
-Added Bindable metadata to rendererIsEditable.

(mx) DataGrid.as, FormItem.as, FormHeading.as
-Added Alternative metadata

QE notes: No
Doc notes: No
Bugs: SDK-27958
Reviewer: Hans, Carol
Tests run: cyclone server, checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<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/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridRowNode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridColumnHeaderGroupLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/containers/FormHeading.as</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/components/gridClasses/GridDimensions.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -672,7 +672,6 @@
         if (!grid)
             return;

-        // FIXME (klin): what if alternatingRowColorsBackground is set to null?
         if ((getStyle("alternatingRowColors") as Array) && alternatingRowColorsBackground)
             grid.rowBackground = alternatingRowColorsBackground;
     }