Transferred from the Adobe Open Source Subversion Repository

Revision: 2790
Author:   gosmith@adobe.com
Date:     2008-08-08T22:08:51.675681Z

Log Message:
-----------
Infrastructure for CSS support in TextGraphicElement.

TextGraphicElement now has stubs that implement the same two CSS interfaces that UIComponent implements, namely ISimpleStyleClient and IStyleClient.

Reviewer: Deepa
Bugs: -
QA: No
Doc: No

Modified Paths:
--------------
<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/framework/src/mx/core/UITextField.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/controls/dataGridClasses/DataGridItemRenderer.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/flex4/src/flex/graphics/graphicsClasses/TextGraphicElement.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/styles/StyleProtoChain.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -19,17 +19,24 @@
 import flash.text.engine.FontPosture;
 import flash.text.engine.FontWeight;
 import flash.text.engine.Kerning;
+import flash.utils.getQualifiedClassName;

 import flex.graphics.IDisplayObjectElement;

 import text.model.TextAlign;
 import text.model.VerticalAlign;
+
+import mx.core.mx_internal;
+import mx.styles.CSSStyleDeclaration;
+import mx.styles.ISimpleStyleClient;
+import mx.styles.IStyleClient;
+import mx.styles.StyleManager;

 /**
  *  Documentation is not currently available.
  */
 public class TextGraphicElement extends GraphicElement
-	implements IDisplayObjectElement
+	implements IDisplayObjectElement, ISimpleStyleClient, IStyleClient
 {
 	include "../../core/Version.as";

@@ -49,7 +56,7 @@

 	//--------------------------------------------------------------------------
 	//
-	//  Overridden properties: IDisplayObjectElement
+	//  Overridden properties: GraphicElement
 	//
 	//--------------------------------------------------------------------------

@@ -582,6 +589,152 @@
 			invalidateDisplayList();
 		}
 	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties: ISimpleStyleClient
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  styleName
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the styleName property.
+     */
+    private var _styleName:Object /* String, CSSStyleDeclaration, or UIComponent */;
+
+    [Inspectable(category="General")]
+
+    /**
+	 *  Documentation is not currently available.
+     */
+    public function get styleName():Object /* String, CSSStyleDeclaration, or UIComponent */
+    {
+        return _styleName;
+    }
+
+    /**
+     *  @private
+     */
+    public function set styleName(
+        value:Object /* String, CSSStyleDeclaration, or UIComponent */):void
+    {
+        // to be implemented
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties: IStyleClient
+	//
+	//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  className
+    //----------------------------------
+
+    /**
+	 *  Documentation is not currently available.
+     */
+    public function get className():String
+    {
+        var name:String = getQualifiedClassName(this);
+
+        // If there is a package name, strip it off.
+        var index:int = name.indexOf("::");
+        if (index != -1)
+            name = name.substr(index + 2);
+
+        return name;
+    }
+
+    //----------------------------------
+    //  inheritingStyles
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the inheritingStyles property.
+     */
+    private var _inheritingStyles:Object =
+        StyleManager.mx_internal::STYLE_UNINITIALIZED;
+
+    [Inspectable(environment="none")]
+
+    /**
+	 *  Documentation is not currently available.
+     */
+    public function get inheritingStyles():Object
+    {
+        return _inheritingStyles;
+    }
+
+    /**
+     *  @private
+     */
+    public function set inheritingStyles(value:Object):void
+    {
+        _inheritingStyles = value;
+    }
+
+    //----------------------------------
+    //  nonInheritingStyles
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the nonInheritingStyles property.
+     */
+    private var _nonInheritingStyles:Object =
+        StyleManager.mx_internal::STYLE_UNINITIALIZED;
+
+    [Inspectable(environment="none")]
+
+    /**
+	 *  Documentation is not currently available.
+     */
+    public function get nonInheritingStyles():Object
+    {
+        return _nonInheritingStyles;
+    }
+
+    /**
+     *  @private
+     */
+    public function set nonInheritingStyles(value:Object):void
+    {
+        _nonInheritingStyles = value;
+    }
+
+    //----------------------------------
+    //  styleDeclaration
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the styleDeclaration property.
+     */
+    private var _styleDeclaration:CSSStyleDeclaration;
+
+    [Inspectable(environment="none")]
+
+    /**
+	 *  Documentation is not currently available.
+     */
+    public function get styleDeclaration():CSSStyleDeclaration
+    {
+        return _styleDeclaration;
+    }
+
+    /**
+     *  @private
+     */
+    public function set styleDeclaration(value:CSSStyleDeclaration):void
+    {
+        _styleDeclaration = value;
+    }

 	//--------------------------------------------------------------------------
 	//
@@ -651,10 +804,106 @@

 	//--------------------------------------------------------------------------
 	//
+	//  Methods: ISimpleStyleClient
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function styleChanged(styleProp:String):void
+    {
+        // to be implemented
+    }
+
+	//--------------------------------------------------------------------------
+	//
+	//  Methods: IStyleClient
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function getStyle(styleProp:String):*
+    {
+        return StyleManager.isInheritingStyle(styleProp) ?
+               _inheritingStyles[styleProp] :
+               _nonInheritingStyles[styleProp];
+    }
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function setStyle(styleProp:String, newValue:*):void
+    {
+        // to be implemented
+    }
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function clearStyle(styleProp:String):void
+    {
+        setStyle(styleProp, undefined);
+    }
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function getClassStyleDeclarations():Array
+    {
+        // to be implemented
+        return null;
+    }
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function notifyStyleChangeInChildren(
+                        styleProp:String, recursive:Boolean):void
+    {
+        // to be implemented
+    }
+
+    /**
+     *  Documentation is not currently available.
+     */
+    public function regenerateStyleCache(recursive:Boolean):void
+    {
+        // to be implemented
+    }
+
+	/**
+	 *  Documentation is not currently available.
+	 */
+    public function registerEffects(effects:Array /* of String */):void
+    {
+        // to be implemented
+    }
+
+	//--------------------------------------------------------------------------
+	//
 	//  Methods
 	//
 	//--------------------------------------------------------------------------

+    /**
+     *  Documentation is not currently available.
+     */
+    public function stylesInitialized():void
+    {
+    }
+
+    /**
+     *  @private
+     *  Documentation is not currently available.
+     */
+    mx_internal function initProtoChain():void
+    {
+        // to be implemented
+    }
+
 	/**
 	 *  Documentation is not currently available.
 	 */


Transferred from the Adobe Open Source Subversion Repository

Revision: 12633
Author:   dsubrama@adobe.com
Date:     2009-12-08T00:08:59.596563Z

Log Message:
-----------
Metadata nits as requested by Builder/Catalyst.

Vertical/HorizontalLayout paddingLeft/Right/Top/Bottom properties do not need the minValue field since its perfectly legal to have negative padding values.

Spark text classes need the [Inspectable(category="General")] metadata for the text property.

QE notes: None
Doc notes: None
Bugs: SDK-24565
Reviewer: Hans
Tests run: Checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.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/components/RichEditableText.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
@@ -448,6 +448,8 @@
     //  text
     //----------------------------------

+    [Inspectable(category="General")]
+
     /**
      *  @private
      */


F Group was not changed when it started extending AbstractSceneNode. As a result, all signals and matrix processing was done 2 times. This is now fixed.

--- src/aerys/minko/scene/node/Group.as
+++ src/aerys/minko/scene/node/Group.as
@@ -25,30 +25,13 @@
 	{
 		use namespace minko_scene;

-		private static var _id			: uint							= 0;
-
 		minko_scene var _children		: Vector.<ISceneNode>			= null;
 		minko_scene var _numChildren	: uint							= 0;
-
-		private var _name				: String						= null;
-		private var _root				: ISceneNode					= null;
-		private var _parent				: Group							= null;

 		private var _numDescendants		: uint							= 0;
-		private var _transform			: Matrix4x4						= new Matrix4x4();
-		private var _localToWorld		: Matrix4x4						= new Matrix4x4();
-		private var _worldToLocal		: Matrix4x4						= new Matrix4x4();
-
-		private var _controllers		: Vector.<AbstractController>	= new <AbstractController>[];
-
-		private var _added				: Signal						= new Signal('Group.added');
-		private var _removed			: Signal						= new Signal('Group.removed');
-		private var _addedToScene		: Signal						= new Signal('Group.addedToScene');
-		private var _removedFromScene	: Signal						= new Signal('Group.removedFromScene');
+
 		private var _descendantAdded	: Signal						= new Signal('Group.descendantAdded');
 		private var _descendantRemoved	: Signal						= new Signal('Group.descendantRemoved');
-		private var _controllerAdded	: Signal						= new Signal('Group.controllerAdded');
-		private var _controllerRemoved	: Signal						= new Signal('Group.controllerRemoved');

 		/**
 		 * The number of children.
@@ -83,11 +66,8 @@

 		protected function initialize() : void
 		{
-			_root = this;
-			_name = AbstractSceneNode.getDefaultSceneName(this);
 			_children = new <ISceneNode>[];

-			transform.changed.add(transformChangedHandler);
 			descendantAdded.add(descendantAddedHandler);
 			descendantRemoved.add(descendantRemovedHandler);
 		}
@@ -236,28 +216,6 @@
 			return position < _numChildren ? _children[position] : null;
 		}

-		public function getDescendantsByName(name 			: String,
-											 descendants 	: Vector.<ISceneNode> = null) : Vector.<ISceneNode>
-		{
-			descendants ||= new Vector.<ISceneNode>();
-
-			var numChildren	: int 	= numChildren;
-
-			for (var i : int = 0; i < numChildren; ++i)
-			{
-				var child : ISceneNode = _children[i];
-				var group : Group = child as Group;
-
-				if (child.name == name)
-					descendants.push(child);
-
-				if (group)
-					group.getDescendantsByName(name, descendants);
-			}
-
-			return descendants;
-		}
-
 		public function getDescendantsByType(type 			: Class,
 											 descendants 	: Vector.<ISceneNode> = null) : Vector.<ISceneNode>
 		{


M Databindings.add is now Databindings.addProvider

--- src/aerys/minko/scene/controller/mesh/HLSAController.as
+++ src/aerys/minko/scene/controller/mesh/HLSAController.as
@@ -231,13 +231,13 @@
 		protected function targetAddedHandler(ctrl		: HLSAController,
 											  target	: Mesh) : void
 		{
-			target.bindings.add(_dataProvider);
+			target.bindings.addProvider(_dataProvider);
 		}

 		protected function targetRemovedHandler(ctrl	: HLSAController,
 												target	: Mesh) : void
 		{
-			target.bindings.remove(_dataProvider);
+			target.bindings.removeProvider(_dataProvider);
 		}

 	}


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

--- frameworks/projects/charts/src/mx/charts/ColumnChart.as
+++ frameworks/projects/charts/src/mx/charts/ColumnChart.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.charts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 10345
Author:   preilly@adobe.com
Date:     2009-09-17T18:18:01.445296Z

Log Message:
-----------
* Updated two way data binding to work more intuitively by having the
  primary execute successfully first.

QE notes: A follow on checkin will address the couple of new mxunit
          databinding failures.
Doc notes: We should document that with two way data bindings, the
           primary will be fired first if the primary hasn't had a
           previous value.  The primary data binding being the
           location of the @{} expression.
Bugs: SDK-21860
Reviewer: Carol
Cycloner: Gaurav
Tests run: checkintests, mxunit databinding
Is noteworthy for integration: No
Code-level description of changes:

  modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

    Modified generateBindingsSetupFunction() to call
    generateIsTwoWayPrimaryAssignment() and added
    generateIsTwoWayPrimaryAssignment().

  modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm

    Modified emitBindingsSetup macro to set isTwoWayPrimary on the
    primary Binding of a two way data binding.

  modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java

    Renamed isConstructTwoWay variable to isTwoWayPrimary and updated accessor.

  modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java
  modules/compiler/src/java/flex2/compiler/mxml/builder/ServiceRequestBuilder.java
  modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
  modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraphBuilder.java
  modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java
  modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java

    Updated to reflect changes to BindingExpression.

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

    Added isTwoWayPrimary variable and modified execute() to call
    execute() on the twoWayCounterPart if there is one and hasHadValue
    is false.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/XMLBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AnonymousObjectGraphBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/BindingExpression.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/binding/Binding.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ServiceRequestBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/binding/Binding.as
+++ frameworks/projects/framework/src/mx/binding/Binding.as
@@ -164,6 +164,14 @@
     public var twoWayCounterpart:Binding;

     /**
+     *  @private
+     *  If there is a twoWayCounterpart, hasHadValue is false, and
+     *  isTwoWayPrimary is true, then the twoWayCounterpart will be
+     *  executed first.
+     */
+    public var isTwoWayPrimary:Boolean;
+
+    /**
      *  @private
      *  True if a wrapped function call does not throw an error.  This is used by
      *  innerExecute() to tell if the srcFunc completed successfully.
@@ -286,6 +294,13 @@
             {
                 registerDisabledExecute(o);
             }
+            return;
+        }
+
+        if (twoWayCounterpart && !twoWayCounterpart.hasHadValue && twoWayCounterpart.isTwoWayPrimary)
+        {
+            twoWayCounterpart.execute();
+            hasHadValue = true;
             return;
         }

@@ -302,13 +317,13 @@

         try
         {
-	    isExecuting = true;
-	    wrapFunctionCall(this, innerExecute, o);
+            isExecuting = true;
+            wrapFunctionCall(this, innerExecute, o);
         }
         catch(error:Error)
         {
-	    // Certain errors are normal during binding execution, so we swallow them.
-	    // 1507 - invalid null argument
+            // Certain errors are normal during binding execution, so we swallow them.
+            // 1507 - invalid null argument
             if (error.errorID != 1507)
                 throw error;
         }


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

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

 import mx.core.mx_internal;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18641
Author:   chiedozi@adobe.com
Date:     2010-11-17T01:26:13.734827Z

Log Message:
-----------
Updated MobileApplication api names.

MobileApplicationBase
backKeyHandler renamed to backKeyUpHandler
menuKeyHandler renamed to menuKeyUpHandler
sessionCachingEnabled renamed to persistNavigatorState
persistApplicationState() renamed to saveNavigatorState
restoreApplicationSate() renamed to loadNavigatorState
registerPersistenceClassAliases removed
nativeApplication_invokeHandler() renamed to invokeHandler()
nativeApplication_deactivateHandler() renamed to deactivateHandler()

PersistenceManager
flush() renamed to save() and return success boolean
initialize() renamed to load() and return success boolean
The applicationVersion shared object property was renamed to versionNumber.

View
deserializePersistedData() renamed to deserializeData()

ViewNavigatorBase
restoreViewData() renamed loadViewData()

Events
APPLICATION_PERSIST and APPLICATION_RESTORE removed from the framework
APPLICATION_PERSISTING renamed to NAVIGATOR_STATE_SAVING
APPLICATION_RESTORING renamed to NAVIGATOR_STATE_LOADING

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/IPersistenceManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/View.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/TabbedMobileApplication.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/core/managers/PersistenceManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileApplicationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ViewNavigator.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -37,24 +37,6 @@
 {
     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    // The following constants are used to indicate whether the developer
-    // has explicitly set one of the navigator template properties.  This
-    // allows us to properly store these set properties if the navigator skin
-    // changes.
-
-    // TODO (chiedozi): Just use a variable instead of a bitfield
-    /**
-     *  @private
-     */
-    private static const NAVIGATORS_PROPERTY_FLAG:uint = 1 << 0;
-    private static const MAINTAIN_NAVIGATION_STACK_PROPERTY_FLAG:uint = 1 << 1;
-
-    //--------------------------------------------------------------------------
-    //
     //  Skin Parts
     //
     //--------------------------------------------------------------------------
@@ -98,6 +80,11 @@
      *  @private
      */
     private var navigatorProperties:Object = {};
+
+    /**
+     *  @private
+     */
+    private var maintainNavigationStackPropSet:Boolean = false;

     //----------------------------------
     //  activeView
@@ -196,11 +183,7 @@
     public function set navigators(value:Vector.<ViewNavigatorBase>):void
     {
         if (navigator)
-        {
             navigator.navigators = value;
-            navigatorProperties = BitFlagUtil.update(navigatorProperties as uint,
-                NAVIGATORS_PROPERTY_FLAG, value != null);
-        }
         else
             navigatorProperties.navigators = value;
     }
@@ -240,8 +223,7 @@
         if (navigator)
         {
             navigator.maintainNavigationStack = value;
-            navigatorProperties = BitFlagUtil.update(navigatorProperties as uint,
-                MAINTAIN_NAVIGATION_STACK_PROPERTY_FLAG, true);
+            maintainNavigationStackPropSet = true;
         }
         else
             navigatorProperties.maintainNavigationStack = value;
@@ -256,9 +238,9 @@
     /**
      *  @private
      */
-    override protected function nativeApplication_invokeHandler(event:InvokeEvent):void
-    {
-        super.nativeApplication_invokeHandler(event);
+    override protected function invokeHandler(event:InvokeEvent):void
+    {
+        super.invokeHandler(event);

         // Set the stage focus to the navigator's active view
         if (systemManager.stage.focus == null && navigator)
@@ -273,61 +255,47 @@
     /**
      *  @private
      */
-    override protected function nativeApplication_deactivateHandler(event:Event):void
+    override protected function deactivateHandler(event:Event):void
     {
         if (navigator && navigator.activeView)
             navigator.activeView.setActive(false);

         // super is called after so that the active view can get the
         // viewDeactive event before the persistence process begins.
-        super.nativeApplication_deactivateHandler(event);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function backKeyHandler(event:KeyboardEvent):void
-    {
-        if (navigator)
-            navigator.backKeyHandler();
-    }
-
-    /**
-     *  @private
-     */
-    // TODO (chiedozi): PARB
-    override protected function persistApplicationState():void
-    {
-        super.persistApplicationState();
+        super.deactivateHandler(event);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function backKeyUpHandler(event:KeyboardEvent):void
+    {
+        if (navigator)
+            navigator.backKeyUpHandler();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function saveNavigatorState():void
+    {
+        super.saveNavigatorState();

         if (navigators.length > 0)
             persistenceManager.setProperty("navigatorState", navigator.saveViewData());
     }
-
-    /**
-     *  @private
-     */
-    override protected function registerPersistenceClassAliases():void
-    {
-        super.registerPersistenceClassAliases();
-
-        // Register aliases for custom classes that will be written to
-        // persistence store by navigator
-        registerClassAlias("ViewDescriptor", ViewDescriptor);
-        registerClassAlias("NavigationStack", NavigationStack);
-    }
-
-    /**
-     *  @private
-     */
-    override protected function restoreApplicationState():void
-    {
-        super.restoreApplicationState();
+
+    /**
+     *  @private
+     */
+    override protected function loadNavigatorState():void
+    {
+        super.loadNavigatorState();

         var savedState:Object = persistenceManager.getProperty("navigatorState");

         if (savedState)
-            navigator.restoreViewData(savedState);
+            navigator.loadViewData(savedState);
     }

     //--------------------------------------------------------------------------
@@ -352,15 +320,12 @@
             if (navigatorProperties.navigators !== undefined)
             {
                 navigator.navigators = navigatorProperties.navigators;
-                newNavigatorProperties = BitFlagUtil.update(newNavigatorProperties,
-                    NAVIGATORS_PROPERTY_FLAG, true);
             }

             if (navigatorProperties.maintainNavigationStack !== undefined)
             {
                 navigator.maintainNavigationStack = navigatorProperties.maintainNavigationStack;
-                newNavigatorProperties = BitFlagUtil.update(newNavigatorProperties,
-                    MAINTAIN_NAVIGATION_STACK_PROPERTY_FLAG, true);
+                maintainNavigationStackPropSet = true;
             }

             // Set the stage focus to the navigator
@@ -377,10 +342,13 @@

         if (instance == navigator)
         {
-        	// FIXME (chiedozi): maintainNavigationStack check ISSET
-            // Always want to save the navigation stack
-            navigatorProperties = {navigators:navigator.navigators,
-                                   maintainNavigationStack:navigator.maintainNavigationStack};
+        	// Always want to save the navigation stack
+            var newNavigatorProperties:Object = {navigationStack: navigator.navigationStack};
+
+            if (maintainNavigationStackPropSet)
+                newNavigatorProperties.maintainNavigationStack = navigator.maintainNavigationStack;
+
+            navigatorProperties = newNavigatorProperties;
         }
     }
 }


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

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

 package mx.automation.delegates.controls


Transferred from the Adobe Open Source Subversion Repository

Revision: 23247
Author:   cframpto@adobe.com
Date:     2011-12-20T19:21:13.134833Z

Log Message:
-----------
Remove ADOBE SYSTEMS license and replace with Apache license in headers - frameworks.  A 2nd pass will be needed to get the files not handled up by the scripts.

Modified Paths:
--------------
4959 paths were modified

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

--- frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
+++ frameworks/projects/charts/src/mx/charts/series/AreaSeries.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2009 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: 11163
Author:   dloverin@adobe.com
Date:     2009-10-26T20:35:33.260693Z

Log Message:
-----------
Changes to turn on the per-module style feature by default.

The feature can be turned off by compiling with -isolateStyles=false.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex, Paul
Tests run: checkintests, all mustella
Is noteworthy for integration: Yes.

Summary of changes:

frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
Propagate the module factory in setFlexContent.

frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
Implement IFlexModule

frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/Alert.as
Set moduleFactory to parent if parent is an IFlexModuleFactory.

frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/controls/RadioButton.as
Move getting style declaration from the constructor to the override of the module factory setter.

frameworks/projects/framework/src/mx/controls/SWFLoader.as
Handle the “get parent module factory” request from an embedded swf.

frameworks/projects/framework/src/mx/core/Container.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/framework/src/mx/core/UIComponent.as
Defer setting styles until a module factory is set.

frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as
Set the module factory of an added child.

frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
Set the module factory of the tooltip to be the same as the target.

frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as
Rename parameter based on PARB feedback.

frameworks/projects/framework/src/mx/styles/IStyleModule.as
Add setStyleDeclarations per spec.

frameworks/projects/framework/src/mx/styles/StyleManager.as
Deprecate old static StyleManager API.

frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as
Use IStyleModule.setStyleDeclarations.

frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
A fix to get the correct style manager and pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
Pass styleManager in CSSStyleDeclaration.

frameworks/projects/spark/src/spark/components/Group.as
Propagate moduleFactory in elementAdded().

modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
Rename –create-style-manager option to –isloateStyles. The option has been changed from hidden to advanced.

modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
Fix bug to not add a default factory that is not needed.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
Initialize styles in a module factory setter override.

modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm
Changed emitComponentInitializers_1 to not emit style related code if the document implements IFlexModule. Created emitComponentStyleInitializers to emit those styles.

modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
Generate code to match ClassDef.vm and ClassDefLib.vm changes.

modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
Add IFlexModuleFactory to standard imports.

modules/compiler/src/java/flex2/configuration_en.properties
Rename –create-style-manager option to –isloateStyles.

modules/compiler/src/java/flex2/tools/PreLink.java
Rename –create-style-manager option to –isloateStyles.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/menuClasses/MenuBarItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</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/framework/src/mx/styles/StyleManagerImpl.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/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.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/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.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/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java</path>

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

--- frameworks/projects/framework/src/mx/modules/ModuleManager.as
+++ frameworks/projects/framework/src/mx/modules/ModuleManager.as
@@ -632,6 +632,7 @@

         limbo = null;
         factoryInfo = null;
+        parentModuleFactory = null;
         _loaded = false;
         _setup = false;
         _ready = false;


Crash fix.

Crash fix.

--- HLSPlugin/src/com/kaltura/hls/HLSLoader.as
+++ HLSPlugin/src/com/kaltura/hls/HLSLoader.as
@@ -105,7 +105,7 @@
 				item = new DynamicStreamingItem(curStream.uri, curStream.bandwidth, curStream.width, curStream.height);
 				curStream.dynamicStream = item;
 				items.push(item);
-				if ( !curStream.manifest.streamEnds ) isDVR = true;
+				if ( !(curStream.manifest ? curStream.manifest.streamEnds : false) ) isDVR = true;

 				// Create dynamic streaming items for the backup streams
 				if (!curStream.backupStream)


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

--- frameworks/projects/mx/src/mx/events/ListEvent.as
+++ frameworks/projects/mx/src/mx/events/ListEvent.as
@@ -0,0 +1,556 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+
+import flash.events.Event;
+import mx.controls.listClasses.IListItemRenderer;
+
+/**
+ *   The ListEvent class represents events associated with items
+ *   in list-based controls such as List, Tree, Menu, and DataGrid.
+ *
+ *  @see mx.controls.List
+ *  @see mx.controls.listClasses.ListBase
+ */
+public class ListEvent extends Event
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Class constants
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  The ListEvent.CHANGE constant defines the value of the
+     *  type property of the ListEvent object for a
+     *  change event, which indicates that selection
+     *  changed as a result of user interaction.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer that was
+     *        clicked.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.CHANGE

+     *

+     *
+     *  @eventType change
+     */
+    public static const CHANGE:String = "change";
+
+    /**
+     *  The ListEvent.ITEM_EDIT_BEGIN constant defines the value of the
+     *  type property of the event object for a
+     *  itemEditBegin event, which indicates that an
+     *  item is ready to be edited.
+     *
+     *
The default listener for this event performs the following actions:

+     *
+     *

+     *
Creates an item editor object via a call to the
+     *    createItemEditor() method.

+     *
Copies the data property
+     *    from the item to the editor. By default, the item editor object is an instance
+     *    of the TextInput control. You use the itemEditor property of the
+     *    list control to specify a custom item editor class.

+     *
+     *
Set the itemEditorInstance property of the list control
+     *    to reference the item editor instance.

+     *

+     *
+     *
You can write an event listener for this event to modify the data passed to
+     *  the item editor. For example, you might modify the data, its format, or other information
+     *  used by the item editor.

+     *
+     *
You can also create an event listener to specify the item editor used to
+     *  edit the item. For example, you might have two different item editors.
+     *  Within the event listener you can examine the data to be edited or
+     *  other information, and open the appropriate item editor by doing the following:

+     *
+     *

+     *
Call preventDefault() to stop Flex from calling
+     *         the createItemEditor() method as part
+     *         of the default event listener.

+     *
Set the itemEditor property to the appropriate editor.

+     *
Call the createItemEditor() method.

+     *

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

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer for the item
+     *       that is being edited.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_EDIT_BEGIN

+     *

+     *
+     *  @eventType itemEditBegin
+     */
+    public static const ITEM_EDIT_BEGIN:String = "itemEditBegin";
+
+    /**
+     *  The ListEvent.ITEM_EDIT_END constant defines the value of the
+     *  type property of the ListEvent object for a
+     *  itemEditEnd event, which indicates that an edit
+     *  session is ending.
+     *
+     *
The list components have a default handler for this event that copies the data
+     *  from the item editor to the data provider of the list control.
+     *  The default event listener performs the following actions:

+     *
+     *

+     *
Uses the editorDataField property of the list control to determine
+     *    the property of the item editor containing the new data and updates
+     *    the data provider item with that new data.  Since the default item editor
+     *    is the TextInput control, the default value of the editorDataField property
+     *    is "text", to specify that the text property of the
+     *    TextInput contains the new item data.

+     *
+     *
Calls the destroyItemEditor() method to close the item editor.

+     *

+     *
+     *
You typically write an event listener for this event to perform the following actions:

+     *

+     *
In your event listener, you can modify the data returned by the editor
+     *    to the list component. For example, you can reformat the data before returning
+     *    it to the list control. By default, an item editor can only return a single value.
+     *    You must write an event listener for the itemEditEnd event
+     *    if you want to return multiple values.

+     *
+     *
In your event listener, you can examine the data entered into the item editor.
+     *    If the data is incorrect, you can call the preventDefault() method
+     *    to stop Flex from passing the new data back to the list control and from closing
+     *    the editor.

+     *

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

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer for the item
+     *        that was edited.

+     *
reason	A constant defining the reason for the event.
+     *       The value must be a member of the ListEventReson class.

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_EDIT_END

+     *

+     *
+     *  @eventType itemEditEnd
+     */
+    public static const ITEM_EDIT_END:String = "itemEditEnd"
+
+    /**
+     *  The ListEvent.ITEM_FOCUS_IN constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemFocusIn event, which indicates that an item
+     *  has received the focus.
+     *
+     *
The properties of the event object have the following values:

+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item editor instance for
+     *        the item that is being edited.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_FOCUS_IN

+     *

+     *
+     *  @eventType itemFocusIn
+     */
+    public static const ITEM_FOCUS_IN:String = "itemFocusIn";
+
+    /**
+     *  The ListEvent.ITEM_FOCUS_OUT constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemFocusOut event, which indicates that an item
+     *  has lost the focus.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item editor instance for the
+     *        item that was being edited.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_FOCUS_OUT

+     *

+     *
+     *  @eventType itemFocusOut
+     */
+    public static const ITEM_FOCUS_OUT:String = "itemFocusOut";
+
+    /**
+     *  The ListEvent.ITEM_EDIT_BEGINNING constant defines the value of the
+     *  type property of the ListEvent object for a
+     *  itemEditBeginning event, which indicates that the user has
+     *  prepared to edit an item, for example, by releasing the mouse button
+     *  over the item.
+     *
+     *
The default listener for this event sets the List.editedItemPosition
+     *  property to the item that has focus, which starts the item editing session.

+     *
+     *
You typically write your own event listener for this event to
+     *  disallow editing of a specific item or items.
+     *  Calling the preventDefault() method from within your own
+     *  event listener for this event prevents the default listener from executing.

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

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	true

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer for the item
+     *       that will be edited. This property is null if this event is
+     *       generated by keyboard, as the item to be edited may be off-screen.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_EDIT_BEGIN

+     *

+     *
+     *  @eventType itemEditBeginning
+     */
+    public static const ITEM_EDIT_BEGINNING:String = "itemEditBeginning";
+
+    /**
+     *  The ListEvent.ITEM_CLICK constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemClick event, which indicates that the
+     *  user clicked the mouse over a visual item in the control.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer that was
+     *        clicked.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_CLICK

+     *

+     *
+     *  @eventType itemClick
+     */
+    public static const ITEM_CLICK:String = "itemClick";
+
+    /**
+     *  The ListEvent.ITEM_DOUBLE_CLICK constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemDoubleClick event, which indicates that the
+     *  user double clicked the mouse over a visual item in the control.
+     *
+     *
To receive itemDoubleClick events, you must set the component's
+     *  doubleClickEnabled property to true.

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

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer that was
+     *        double clicked.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_DOUBLE_CLICK

+     *

+     *
+     *  @eventType itemDoubleClick
+     */
+    public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick";
+
+    /**
+     *  The ListEvent.ITEM_ROLL_OUT constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemRollOut event, which indicates that the user rolled
+     *  the mouse pointer out of a visual item in the control.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer that was
+     *        rolled out.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_ROLL_OUT

+     *

+     *
+     *  @eventType itemRollOut
+     */
+    public static const ITEM_ROLL_OUT:String = "itemRollOut";
+
+    /**
+     *  The ListEvent.ITEM_ROLL_OVER constant defines the value of the
+     *  type property of the ListEvent object for an
+     *  itemRollOver event, which indicates that the user rolled
+     *  the mouse pointer over a visual item in the control.
+     *
+     *
The properties of the event object have the following values:

+     *
+     *

+     *
Property	Value

+     *
bubbles	false

+     *
cancelable	false

+     *
columnIndex	 The zero-based index of the
+     *        column associated with the event.

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

+     *
itemRenderer	The item renderer that was
+     *        rolled over.

+     *
reason	null

+     *
rowIndex	The zero-based index of the
+     *        item associated with the event.

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

+     *
Type	ListEvent.ITEM_ROLL_OVER

+     *

+     *
+     *  @eventType itemRollOver
+     */
+    public static const ITEM_ROLL_OVER:String = "itemRollOver";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *  Normally called by the Flex control and not used in application code.
+     *
+     *  @param type The event type; indicates the action that caused the event.
+     *
+     *  @param bubbles Specifies whether the event can bubble
+     *  up the display list hierarchy.
+     *
+     *  @param cancelable Specifies whether the behavior
+     *  associated with the event can be prevented.
+     *
+     *  @param columnIndex The zero-based index of the column that contains
+     *  the renderer.
+     *
+     *  @param rowIndex The zero-based index of the row that contains
+     *  the renderer, or for editing events, the index of the item in
+     *  the data provider that is being edited
+     *
+     *  @param reason The reason for an itemEditEnd event.
+     *
+     *  @param itemRenderer The item renderer for the data provider item.
+     */
+    public function ListEvent(type:String, bubbles:Boolean = false,
+                              cancelable:Boolean = false,
+                              columnIndex:int = -1, rowIndex:int = -1,
+                              reason:String = null,
+                              itemRenderer:IListItemRenderer = null)
+    {
+        super(type, bubbles, cancelable);
+
+        this.columnIndex = columnIndex;
+        this.rowIndex = rowIndex;
+        this.reason = reason;
+        this.itemRenderer = itemRenderer;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  columnIndex
+    //----------------------------------
+
+    /**
+     *  The zero-based index of the column that contains
+     *  the item renderer where the event occurred.
+     */
+    public var columnIndex:int;
+
+    //----------------------------------
+    //  itemRenderer
+    //----------------------------------
+
+    /**
+     *  The item renderer where the event occurred.
+     *  You can access the data provider item using this property.
+     */
+    public var itemRenderer:IListItemRenderer;
+
+    //----------------------------------
+    //  reason
+    //----------------------------------
+
+    /**
+     *  The reason the itemEditEnd event was dispatched.
+     *  Valid only for events with type ITEM_EDIT_END.
+     *  The possible values are defined in the ListEventReason class.
+     *
+     *  @see ListEventReason
+     */
+    public var reason:String;
+
+    //----------------------------------
+    //  rowIndex
+    //----------------------------------
+
+    /**
+     *  In the zero-based index of the row that contains
+     *  the item renderer where the event occured, or for editing events,
+     *  the index of the item in the data provider that is being edited.
+     */
+    public var rowIndex:int;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: Event
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        return new ListEvent(type, bubbles, cancelable,
+                             columnIndex, rowIndex, reason, itemRenderer);
+    }
+}
+
+}


Make getSound() private

Make getSound() private

--- Impetus.as
+++ Impetus.as
@@ -13,14 +13,18 @@

             if(ExternalInterface.available)
             {
-                ExternalInterface.addCallback('getSound', this.getSound);
                 ExternalInterface.addCallback('playNew', this.playNew);

                 ExternalInterface.call("console.log", "Impetus loaded. (https://github.com/JWhile/Impetus)");
             }
         }

-        public function getSound(url:String):ImpetusSound
+        public function playNew(url:String):void
+        {
+            this.getSound(url).playNew();
+        }
+
+        private function getSound(url:String):ImpetusSound
         {
             var len:int = this.sounds.length;

@@ -38,10 +42,5 @@

             return s;
         }
-
-        public function playNew(url:String):void
-        {
-            this.getSound(url).playNew();
-        }
     }
 }


Add playNew method to Impetus & ExternalInterface callbacks

--- Impetus.as
+++ Impetus.as
@@ -14,6 +14,7 @@
             if(ExternalInterface.available)
             {
                 ExternalInterface.addCallback('getSound', this.getSound);
+                ExternalInterface.addCallback('playNew', this.playNew);

                 ExternalInterface.call("console.log", "Impetus loaded. (https://github.com/JWhile/Impetus)");
             }
@@ -37,5 +38,10 @@

             return s;
         }
+
+        public function playNew(url:String):void
+        {
+            this.getSound(url).playNew();
+        }
     }
 }


fixed RenderingController.effectPassesChangedHandler() to not configure draw calls when Shader.enabled is set to false and ShaderInstance.program is consequently null

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -478,10 +478,7 @@
 				var drawCalls		: Vector.<DrawCall>	= _meshToDrawCalls[mesh];

 				for each (var oldDrawCall : DrawCall in drawCalls)
-				{
-					var oldPassInstance	: ShaderInstance = _drawCallToPassInstance[oldDrawCall];
-					unbind(oldPassInstance, oldDrawCall, meshBindings);
-				}
+					unbind(_drawCallToPassInstance[oldDrawCall], oldDrawCall, meshBindings);

 				drawCalls.length = 0;

@@ -495,6 +492,9 @@

 					// create drawcall
 					var newDrawCall		: DrawCall			= new DrawCall();
+
+					if (passInstance.program == null)
+						continue ;

 					newDrawCall.configure(
 						passInstance.program,


Transferred from the Adobe Open Source Subversion Repository

Revision: 19234
Author:   jasonsj@adobe.com
Date:     2010-12-09T19:58:57.680529Z

Log Message:
-----------
Added ASDoc to indicate incompatibility of StyleableTextField with effects

QE notes:
Doc notes:
Bugs:
SDK-28359 StyleableTextField RTEs when used with spark transform effects
Reviewer: none
Tests run: none
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -74,7 +74,8 @@

 /**
  *  The StyleableTextField class is a text primitive for use in ActionScript
- *  skins and item renderers. It cannot be used in MXML markup.
+ *  skins and item renderers. It cannot be used in MXML markup and is not
+ *  compatible with effects.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10.1


Also test updatePublishedFileFile

Also test updatePublishedFileFile

--- test/src/FRESteamWorksTest.as
+++ test/src/FRESteamWorksTest.as
@@ -145,8 +145,10 @@
 			if(result){
 				log("readFileFromCloud('test.txt') == "+readFileFromCloud('test.txt') );
 				log("fileDelete('test.txt') == "+Steamworks.fileDelete('test.txt'));
+				log("fileDelete('updated_test.txt') == "+Steamworks.fileDelete('updated_test.txt'));
 			} else {
 				log("writeFileToCloud('test.txt','click') == "+writeFileToCloud('test.txt','click'));
+				log("writeFileToCloud('updated_test.txt',...) == "+writeFileToCloud('updated_test.txt','updated content'));
 			}
 		}

@@ -210,6 +212,12 @@
 				"Test updated description");
 			log("updatePublishedFileDescription(...) == " + res);
 			if(!res) return;
+
+			if(Steamworks.fileExists("updated_test.txt")) {
+				res = Steamworks.updatePublishedFileFile(handle, "updated_test.txt");
+				log("updatePublishedFileFile(...) == " + res);
+				if(!res) return;
+			}

 			res = Steamworks.updatePublishedFileTitle(handle, "Updated test title");
 			log("updatePublishedFileTitle(...) == " + res);


Switched ComboBox to CustomComboBox.

Switched ComboBox to CustomComboBox.

Change-Id: Iea8627f8bd86a17220a5d2ec0e24964021d8cd32

--- WeaveClient/src/weave/SearchEngineUtils.as
+++ WeaveClient/src/weave/SearchEngineUtils.as
@@ -44,8 +44,9 @@
 	import weave.data.KeySets.KeySet;
 	import weave.ui.AlertTextBox;
 	import weave.ui.AlertTextBoxEvent;
+	import weave.ui.CustomComboBox;
 	import weave.ui.CustomContextMenuManager;
-	import weave.utils.ProbeTextUtils;
+	import weave.utils.ProbeTextUtils;

 	public class SearchEngineUtils
 	{
@@ -127,7 +128,7 @@
 				{
 					if(currentContextMenuItem.enabled)
 					{
-						var combobox:ComboBox = new ComboBox(); //ComboBox to hold the service names
+						var combobox:CustomComboBox = new CustomComboBox(); //ComboBox to hold the service names
 						var urlAlert:AlertTextBox = AlertTextBox.show("Custom URL",null);
 						var hbox:HBox = new HBox();
 						var label:Label = new Label();


Modify requestTell() to accept an optional localFeedback parameter, defaulting to
ChatCodes.PLACE_CHAT_TYPE that gets used for any feedback generated from the tell process.  This
will allow chat systems that display tells in a custom way (tabs) to distinguish tell-related
feedback from other feedback.

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

--- src/as/com/threerings/crowd/chat/client/ChatDirector.as
+++ src/as/com/threerings/crowd/chat/client/ChatDirector.as
@@ -441,8 +441,11 @@
      * @param target the username of the user to which the tell message should be delivered.
      * @param msg the contents of the tell message.
      * @param rl an optional result listener if you'd like to be notified of success or failure.
-     */
-    public function requestTell (target :Name, msg :String, rl :ResultListener) :void
+     * @param feedbackLocaltype this local type will be used for both TellFeedbackMessages, and
+     *                          regular feedback that is dispatched for away/idle messages.
+     */
+    public function requestTell (target :Name, msg :String, rl :ResultListener,
+        feedbackLocaltype :String = ChatCodes.PLACE_CHAT_TYPE) :void
     {
         // make sure they can say what they want to say
         var message :String = filter(msg, target, true);
@@ -458,13 +461,13 @@
                 "m.tell_failed", MessageBundle.taint(target), reason);
             var tfm :TellFeedbackMessage = new TellFeedbackMessage(target, msg, true);
             tfm.bundle = _bundle;
-            dispatchMessage(tfm, ChatCodes.PLACE_CHAT_TYPE);
+            dispatchMessage(tfm, feedbackLocaltype);
             if (rl != null) {
                 rl.requestFailed(null);
             }
         };
         var success :Function = function (idleTime :Long, awayMessage :String) :void {
-            dispatchMessage(new TellFeedbackMessage(target, message), ChatCodes.PLACE_CHAT_TYPE);
+            dispatchMessage(new TellFeedbackMessage(target, message), feedbackLocaltype);
             addChatter(target);
             if (rl != null) {
                 rl.requestCompleted(target);
@@ -476,7 +479,7 @@
                 if (awayMessage != null) {
                     var msg :String = MessageBundle.tcompose(
                         "m.recipient_afk", target, awayMessage);
-                    displayFeedback(_bundle, msg);
+                    displaySystem(_bundle, msg, SystemMessage.FEEDBACK, feedbackLocaltype);
                 }
             }

@@ -489,7 +492,7 @@
                 var rmsg :String = MessageBundle.compose(
                     "m.recipient_idle", MessageBundle.taint(target),
                     TimeUtil.getTimeOrderString(idle, TimeUtil.MINUTE));
-                displayFeedback(_bundle, rmsg);
+                displaySystem(_bundle, rmsg, SystemMessage.FEEDBACK, feedbackLocaltype);
             }
         };
         _cservice.tell(_cctx.getClient(), target, message, new TellAdapter(failure, success));


MF-46 Scale by main container

MF-46 Scale by main container

--- src/com/merlinds/miracle_tool/services/DecodeService.as
+++ src/com/merlinds/miracle_tool/services/DecodeService.as
@@ -12,7 +12,6 @@
 	import flash.display.Loader;
 	import flash.display.LoaderInfo;
 	import flash.events.Event;
-	import flash.geom.Point;
 	import flash.system.LoaderContext;
 	import flash.utils.ByteArray;


Remove hard-coded default skinURL.

Remove hard-coded default skinURL.

--- src/goplayer/ConfigurationParser.as
+++ src/goplayer/ConfigurationParser.as
@@ -14,7 +14,6 @@
       // XXX: Clean up the host stuff.
       result.host = parameters.host || "staging.streamio.se"
       result.skinURL = parameters.skin
-        || "http://" + result.host + "/swfs/goplayer-black-skin.swf"
       result.movieID = parameters.movie
       result.trackerID = parameters.tracker || "global"
       result.bitratePolicy = getBitratePolicy("bitrate", BitratePolicy.BEST)


fixed wrong parameters

fixed wrong parameters

--- WeaveData/src/weave/services/WeaveDataServlet.as
+++ WeaveData/src/weave/services/WeaveDataServlet.as
@@ -101,7 +101,7 @@

 		public function getEntityIdsByMetadata(publicMetadata:Object, entityType:int):AsyncToken // returns int[]
 		{
-			return invoke(getEntityIdsByMetadata, [{"publicMetadata": publicMetadata}, entityType]);
+			return invoke(getEntityIdsByMetadata, arguments);
 		}

 		public function getEntitiesById(ids:Array):AsyncToken // returns DataEntity[]


Fixed port positioning rules

Fixed port positioning rules

--- src/Components/Port.as
+++ src/Components/Port.as
@@ -173,15 +173,10 @@
 			if (U.state.grid.moduleContentsAtPoint(Loc))
 				return false;

-			for each (var carrier:Carrier in U.state.grid.carriersAtPoint(Loc)) {
-				if (isSource()) {
-					if (carrier.getSource())
-						return false;
-				} else {
-					if (!carrier.isSource())
-						return false;
-				}
-			}
+			for each (var carrier:Carrier in U.state.grid.carriersAtPoint(Loc))
+				if (isSource() == carrier.isSource() ||
+					(getSource() && carrier.getSource() != getSource()))
+					return false;

 			return true;
 		}


Issue #74: Handle case where no featured web maps are available.

--- src/com/esri/builder/controllers/WebMapController.as
+++ src/com/esri/builder/controllers/WebMapController.as
@@ -290,6 +290,10 @@
             queryParams.ofType(PortalItem.TYPE_WEB_MAP).withSortField("name").withLimit(ITEMS_QUERY_LIMIT);
             responder.token = portalGroup.queryItems(queryParams, new AsyncResponder(groupItems_resultHandler, portal_faultHandler, responder));
         }
+        else
+        {
+            Model.instance.webmapState = 'nomatch';
+        }
     }

     private function groupItems_resultHandler(queryResult:PortalQueryResult, responder:CallResponder):void


added removeKeyboardActionBinding & removeGamepadActionBinding

--- src/com/zehfernando/input/binding/KeyActionBinder.as
+++ src/com/zehfernando/input/binding/KeyActionBinder.as
@@ -706,6 +706,7 @@
 		 *

 		 *
 		 * @see flash.ui.Keyboard
+		 * @see #removeKeyboardActionBinding()
 		 */
 		public function addKeyboardActionBinding(__action:String, __keyCode:int = -1, __keyLocation:int = -1):void {
 			// TODO: use KeyActionBinder.KEY_LOCATION_ANY as default param? The compiler doesn't like constants.
@@ -713,6 +714,40 @@
 			// Create a binding to be verified later
 			bindings.push(new BindingInfo(__action, new KeyboardBinding(__keyCode >= 0 ? __keyCode : KeyboardBinding.KEY_CODE_ANY, __keyLocation >= 0 ? __keyLocation : KeyboardBinding.KEY_LOCATION_ANY)));
 			prepareAction(__action);
+		}
+
+		/**
+		 * Removes an action bound to a keyboard key.
+		 *
+		 * @param action		An arbitrary String id identifying the action that should be dispatched once this
+		 *						key combination is detected.
+		 * @param keyCode		The code of a key, as expressed in AS3's Keyboard constants.
+		 * @param keyLocation	The code of a key's location, as expressed in AS3's KeyLocation constants. If a
+		 *						value of -1 or NaN is passed, the key location is never taken into
+		 *						consideration when detecting whether the passed action should be fired.
+		 *
+		 * @see flash.ui.Keyboard
+		 * @see #addGamepadActionBinding()
+		 */
+		public function removeKeyboardActionBinding(__action:String, __keyCode:int = KEY_CODE_ANY, __keyLocation:int = KEY_LOCATION_ANY):void {
+			var bindingsToRemove:Vector.<BindingInfo> = new <BindingInfo>[];
+
+			for each(var binding:BindingInfo in bindings) {
+				if(binding.action == __action) {
+					var keyboardBinding:KeyboardBinding = binding.binding as KeyboardBinding;
+					if(keyboardBinding && keyboardBinding.keyCode == __keyCode && keyboardBinding.keyLocation == __keyLocation) {
+						// store the binding to remove later, and fake a deactivate event
+						bindingsToRemove[bindingsToRemove.length] = binding;
+						onKeyUp(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, __keyCode, __keyLocation));
+					}
+				}
+			}
+
+			for each(binding in bindingsToRemove) {
+				bindings.splice(bindings.indexOf(binding), 1);
+			}
+
+			consumeAction(__action);
 		}

 		/**
@@ -757,11 +792,49 @@
 		 * @see GamepadControls
 		 * @see #isActionActivated()
 		 * @see #getActionValue()
+		 * @see #removeGamepadActionBinding()
 		 */
 		public function addGamepadActionBinding(__action:String, __controlId:String, __gamepadIndex:int = -1):void {
 			// Create a binding to be verified later
 			bindings.push(new BindingInfo(__action, new GamepadBinding(__controlId, __gamepadIndex >= 0 ? __gamepadIndex : GamepadBinding.GAMEPAD_INDEX_ANY)));
 			prepareAction(__action);
+		}
+
+		/**
+		 * Removes an action bound to a game controller button, trigger, or axis.
+		 *
+		 * @param action		An arbitrary String id identifying the action that should be no longer bound.
+		 * @param controlId		The id code of a GameInput contol, as an String. Use one of the constants from
+		 *						GamepadControls.
+		 * @param gamepadIndex	The int of the gamepad that you want to restrict this action to. Use 0 for the
+		 *						first gamepad (player 1), 1 for the second one, and so on. If a value of -1 or
+		 *						NaN is passed, the gamepad index is never taken into consideration
+		 *						when detecting whether the passed action should be fired.
+		 *
+		 * @see GamepadControls
+		 * @see #addGamepadActionBinding()
+		 * @see #isActionActivated()
+		 * @see #getActionValue()
+		 */
+		public function removeGamepadActionBinding(__action:String, __controlId:String, __gamepadIndex:int = GAMEPAD_INDEX_ANY):void {
+			var bindingsToRemove:Vector.<BindingInfo> = new <BindingInfo>[];
+			for each(var binding:BindingInfo in bindings) {
+				if(binding.action == __action) {
+					var gamepadBinding:GamepadBinding = binding.binding as GamepadBinding;
+
+					if(gamepadBinding && gamepadBinding.controlId == __controlId && gamepadBinding.gamepadIndex == __gamepadIndex) {
+						// store the binding to remove later, and fake a deactivate event
+						bindingsToRemove[bindingsToRemove.length] = binding;
+						interpretGameInputControlChanges(gamepadBinding.controlId, 0, 0, 1, 0);
+					}
+				}
+			}
+
+			for each(binding in bindingsToRemove) {
+				bindings.splice(bindings.indexOf(binding), 1);
+			}
+
+			consumeAction(__action);
 		}

 		/**


move *_ANY constants under constants header section

--- src/com/zehfernando/input/binding/KeyActionBinder.as
+++ src/com/zehfernando/input/binding/KeyActionBinder.as
@@ -21,12 +21,12 @@

 		// More info: https://github.com/zeh/key-action-binder

+		// Constants
+		public static const VERSION:String = "1.8.7";
+
 		public static const GAMEPAD_INDEX_ANY:uint = 81653811;
 		public static const KEY_CODE_ANY:uint = 81653812;
 		public static const KEY_LOCATION_ANY:uint = 81653813;
-
-		// Constants
-		public static const VERSION:String = "1.8.7";

 		[Embed(source = "controllers.json", mimeType='application/octet-stream')]
 		private static const JSON_CONTROLLERS:Class;


Ensure we use type of instance, not just type of property declaration

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -668,6 +668,13 @@
                                     objectFactory.trackObjectById(partObj, partID);
                                 }
                             }
+
+                            // use whatever class info we were given
+                            if (partObj)
+                            {
+                                partClass = XObjUtils.getClass(partObj);
+                                partClassName = XObjUtils.getClassName(partObj);
+                            }
                         }
                         else
                         {


Fix bug in handling of tracked resources by id OR href

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -595,9 +595,9 @@
                                 if (!existingByID)
                                 {
                                     partObj = existing;
-                                    if (partObj.hasOwnProperty("id"))
+                                    partID = getIDProperty(partObj);
+                                    if (partID)
                                     {
-                                        partObj.id = partID;
                                         // register it!
                                         objectFactory.trackObjectById(partObj, partID);
                                     }
@@ -615,9 +615,9 @@
                             else // node has no ID, so use whatever we get
                             {
                                 partObj = existing;
-                                if (partObj.hasOwnProperty("id"))
+                                partID = getIDProperty(partObj);
+                                if (partID)
                                 {
-                                    partID = partObj.id;
                                     // register it!
                                     objectFactory.trackObjectById(partObj, partID);
                                 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 18357
Author:   jasonsj@adobe.com
Date:     2010-10-28T22:43:40.124825Z

Log Message:
-----------
Mobile Theme feature work:
Implemented borderVisible and prompt for mobile TextInputSkin
Fixed focus exclusions for CheckBox and RadioButton
Fixed promptDisplay bug in TextInput
Moved textShadowAlpha and textShadowColor to BasicInheritingTextStyles from ActionBar and Button
Added leading and letterSpacing to BasicInheritingTextStyles

QE notes: Update mustella bitmaps for Button and RadioButton
Doc notes:
Bugs:
SDK-28239 Fixed visuals for Button and RadioButton skin
Reviewer: gruehle, aharui
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_up.fxg</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/assets/Button_down.fxg</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/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.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/assets/RadioButton_upSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/StyleableTextFieldTextStyles.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/assets/Button_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_down.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/CheckBoxSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/RadioButton_downSelected.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/assets/CheckBox_up.fxg</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/styles/metadata/StyleableTextFieldTextStyles.as
+++ frameworks/projects/mobilecomponents/src/spark/styles/metadata/StyleableTextFieldTextStyles.as
@@ -88,8 +88,7 @@
 /**
  *  Additional vertical space between lines of text.
  *
- *
The default value is 2.

- *
The default value for the ComboBox control is 0.

+ *
The default value is 0.

  *
  *  @langversion 3.0
  *  @playerversion Flash 10.1


Making Result internal (external API is through its interfaces)

--- driver/src/main/flex/org/postgresql/db/Result.as
+++ driver/src/main/flex/org/postgresql/db/Result.as
@@ -2,7 +2,7 @@

     import org.postgresql.event.ResultEvent;

-    public class Result extends ResultBase implements IResult, IResultHandler {
+    internal class Result extends ResultBase implements IResult, IResultHandler {

         private var _affectedRows:int;
         private var _oid:int;


--- as3/com/netease/protobuf/SimpleWebRPC.as
+++ as3/com/netease/protobuf/SimpleWebRPC.as
@@ -14,10 +14,10 @@
 	public final class SimpleWebRPC {
 		private var urlPrefix:String
 		public function SimpleWebRPC(urlPrefix:String) {
-			this.urlPrefix = urlPrefix;
+			this.urlPrefix = urlPrefix
 		}

-		private static const REF:Dictionary = new Dictionary();
+		private static const REF:Dictionary = new Dictionary

 		public function send(qualifiedMethodName:String,
 							 input:IExternalizable,


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

--- frameworks/projects/mx/src/mx/containers/DividerState.as
+++ frameworks/projects/mx/src/mx/containers/DividerState.as
@@ -0,0 +1,47 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.containers
+{
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  States of a BoxDivider.
+ */
+public final class DividerState
+{
+	include "../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    public static const DOWN:String = "down";
+
+    /**
+     *  @private
+     */
+    public static const OVER:String = "over";
+
+    /**
+     *  @private
+     */
+    public static const UP:String = "up";
+}
+
+}


Fixed setter functions for UIBase percentWidth and percentHeight.

--- frameworks/projects/Core/as/src/org/apache/flex/core/UIBase.as
+++ frameworks/projects/Core/as/src/org/apache/flex/core/UIBase.as
@@ -253,13 +253,21 @@
          */
 		public function set percentWidth(value:Number):void
 		{
-			if (_percentWidth == value)
-				return;
-
-			if (!isNaN(value))
-				_explicitWidth = NaN;
-
-			_percentWidth = value;
+			COMPILE::AS3 {
+				if (_percentWidth == value)
+					return;
+
+				if (!isNaN(value))
+					_explicitWidth = NaN;
+
+				_percentWidth = value;
+			}
+			COMPILE::JS {
+				this._percentWidth = value;
+				this.positioner.style.width = value.toString() + '%';
+				if (!isNaN(value))
+					this._explicitWidth = NaN;
+			}

 			dispatchEvent(new Event("percentWidthChanged"));
 		}
@@ -288,13 +296,22 @@
          */
 		public function set percentHeight(value:Number):void
 		{
-			if (_percentHeight == value)
-				return;
-
-			if (!isNaN(value))
-				_explicitHeight = NaN;
-
-			_percentHeight = value;
+			COMPILE::AS3 {
+				if (_percentHeight == value)
+					return;
+
+				if (!isNaN(value))
+					_explicitHeight = NaN;
+
+				_percentHeight = value;
+			}
+
+			COMPILE::JS {
+				this._percentHeight = value;
+				this.positioner.style.height = value.toString() + '%';
+				if (!isNaN(value))
+					this._explicitHeight = NaN;
+			}

 			dispatchEvent(new Event("percentHeightChanged"));
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 6223
Author:   gruehle@adobe.com
Date:     2009-04-23T19:36:59.037094Z

Log Message:
-----------
Updates to revision 6205. SystemManager uses the Spark download progress bar if no others are defined. Updated ASDoc comments on SparkDownloadProgressBar. Made SparkDownloadProgressBar.initCompleteHandler() protected so QE can override for testing.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.as</path>

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -66,7 +66,7 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.messaging.config.LoaderConfig;
-import mx.preloaders.DownloadProgressBar;
+import mx.preloaders.SparkDownloadProgressBar;
 import mx.preloaders.Preloader;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceBundle;
@@ -184,7 +184,7 @@
  *
  *
The SystemManager is the first display class created within an application.
  *  It is responsible for creating an mx.preloaders.Preloader that displays and
- *  mx.preloaders.DownloadProgressBar while the application finishes loading,
+ *  mx.preloaders.SparkDownloadProgressBar while the application finishes loading,
  *  then creates the mx.core.Application instance.

  *
  *  @langversion 3.0
@@ -2031,7 +2031,7 @@

         var preloaderDisplayClass:Class = info()["preloader"] as Class;
         if (usePreloader && !preloaderDisplayClass)
-            preloaderDisplayClass = DownloadProgressBar;
+            preloaderDisplayClass = SparkDownloadProgressBar;

         // Put cross-domain RSL information in the RSL list.
         var rslList:Array = [];


Transferred from the Adobe Open Source Subversion Repository

Revision: 3139
Author:   jimurphy@adobe.com
Date:     2008-09-08T15:42:37.788151Z

Log Message:
-----------
Merged 3.0.x revisions [3074,3079-3080,3086,3094,3096,3098,3101-3102,3104,3108,3114,3123,3125-3126] -> trunk

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FocusRequestDirection.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.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/events/EventListenerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/SecurityUtil.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/airframework/src/mx/managers/WindowedSystemManager.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/managers/SystemManager.as</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/SandboxMouseEvent.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/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterDragManagerEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.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/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InvalidateRequestData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeProvider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/InterManagerRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/SWFBridgeRequest.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/mx/src/mx/controls/sliderClasses/Slider.as
+++ frameworks/projects/mx/src/mx/controls/sliderClasses/Slider.as
@@ -1712,6 +1712,8 @@
             n = thumbs.numChildren;
             for (i = n - 1; i >= 0; i--)
             {
+                // we don't need to bother to remove the event listeners here
+                // they will be removed by the garbage collector automatically
                 thumbs.removeChildAt(i);
             }
         }