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

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


Transferred from the Adobe Open Source Subversion Repository

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/HideShowEffectTargetFilter.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/HideShowEffectTargetFilter.as
@@ -0,0 +1,87 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2005-2006 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.effects.effectClasses
+{
+
+import mx.effects.EffectTargetFilter;
+
+/**
+ *  HideShowEffectTargetFilter is a subclass of EffectTargetFilter
+ *  that handles the logic for filtering targets that have been shown or hidden
+ *  by modifying their visible property.
+ *  If you set the Effect.filter property to hide
+ *  or show, one of these is used.
+ */
+public class HideShowEffectTargetFilter extends EffectTargetFilter
+{
+    include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function HideShowEffectTargetFilter()
+	{
+		super();
+
+		filterProperties = [ "visible" ];
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  show
+	//----------------------------------
+
+	/**
+	 *  Determines if this is a show or hide filter.
+	 *
+	 *  @default true
+	 */
+	public var show:Boolean = true;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function defaultFilterFunction(
+									propChanges:Array,
+									instanceTarget:Object):Boolean
+	{
+		var n:int = propChanges.length;
+		for (var i:int = 0; i < n; i++)
+		{
+			var props:PropertyChanges = propChanges[i];
+
+			if (props.target == instanceTarget)
+				return props.end["visible"] == show;
+		}
+
+		return false;
+	}
+}
+
+}


MF-23 Add to shader color and multiplier to shader

--- src/com/merlinds/miracle_tool/controllers/converters/ColorConverter.as
+++ src/com/merlinds/miracle_tool/controllers/converters/ColorConverter.as
@@ -5,6 +5,9 @@
  */
 package com.merlinds.miracle_tool.controllers.converters {
 	import com.merlinds.debug.log;
+
+	import flash.debugger.enterDebugger;
+	import flash.geom.ColorTransform;

 	public class ColorConverter {

@@ -16,6 +19,11 @@
 		private static const B:int = 2;
 		/** Index of alpha chanel **/
 		private static const A:int = 3;
+		//
+		private static const MR:int = 4;
+		private static const MG:int = 5;
+		private static const MB:int = 6;
+		private static const MA:int = 7;

 		private var _color:Array;//RGBA
 		private var _colorEffect:ColorEffect;
@@ -27,7 +35,7 @@
 		}

 		public function convertToArray(xml:XMLList):Array {
-			_color = [0, 0, 0, 1];
+			_color = [0, 0, 0, 0, 0, 0, 0, 0];
 			/* get attributes from Color node
 			 * Node example:
 			 * Additional =
@@ -49,7 +57,6 @@
 				var method:Function = _methods[_colorEffect.type];
 				method.apply(this);
 			}
-			trace(_color);
 			return _color;
 		}
 		//} endregion PUBLIC METHODS ===================================================
@@ -70,12 +77,24 @@

 		private function tint():void {
 			log(this, "tint");
+			var colorTransform:ColorTransform = new ColorTransform(_colorEffect.tintMultiplier,
+					_colorEffect.tintMultiplier, _colorEffect.tintMultiplier, 1);
+			colorTransform.color = _colorEffect.tintColor;
+			_color[R] = colorTransform.redOffset / 255;
+			_color[G] = colorTransform.greenOffset / 255;
+			_color[B] = colorTransform.blueOffset / 255;
+			_color[A] = 1;//colorTransform.alphaOffset / 255;
+			_color[MR] = _colorEffect.tintMultiplier;
+			_color[MG] = _colorEffect.tintMultiplier;
+			_color[MB] = _colorEffect.tintMultiplier;
+			_color[MA] = 1;//colorTransform.alphaMultiplier;
 		}

 		private function additional():void {
 			log(this, "additional");
 			this.alpha();//In colorEffect can be alpha multiplier
 		}
+
 		//} endregion PRIVATE\PROTECTED METHODS ========================================

 		//==============================================================================
@@ -112,7 +131,13 @@
 		for(var i:int = 0; i < data.length(); i++){
 			var name:String = data[i].name();
 			if(this.hasOwnProperty(name)){
-				this[name] = data[i];
+				if(name == "tintColor"){
+					var hex:String = data[i];
+					hex = hex.replace("#", "0x");
+					this[name] = hex;
+				}else{
+					this[name] = data[i];
+				}
 			}
 		}
 		//define type of the color effect


Transferred from the Adobe Open Source Subversion Repository

Revision: 20558
Author:   egeorgie@adobe.com
Date:     2011-03-02T22:10:48.057790Z

Log Message:
-----------
Fix for http://bugs.adobe.com/jira/browse/SDK-29659 CrossFadeViewTransition incorrectly positions outgoing View

In this change:
- Whenever view transition is making use of snapshots:
  1. remember position of snapshots in global coordinates.
  2. after snapshot is added to the transitionGroup, update its local position so that its global position matches the remembered one.

QE notes: Generall pass of zoom, slide, flip and cross fade transitions
Doc notes:
Bugs: SDK-29659
Reviewer: Chiedo
Tests run: manual mustella cyclone
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/CrossFadeViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/FlipViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ViewTransitionBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/ZoomViewTransition.as
@@ -15,6 +15,7 @@
 import flash.display.BlendMode;
 import flash.display.DisplayObjectContainer;
 import flash.events.Event;
+import flash.geom.Point;

 import mx.core.UIComponent;
 import mx.core.mx_internal;
@@ -110,7 +111,14 @@
     /**
      *  @private
      */
-    private var targetShapshot:BitmapImage;
+    private var targetSnapshot:BitmapImage;
+
+    /**
+     *  @private
+     *  Stores the location of the cached navigator in the global coordinate space
+     *  so that the transition can properly position it when added to the display list.
+     */
+    private var targetSnapshotGlobalPosition:Point = new Point();

     /**
      *  @private
@@ -205,7 +213,7 @@

         var oldVisibility:Boolean = endView.visible;
         endView.visible = false;
-        cachedNavigator = getSnapshot(targetNavigator, 0);
+        cachedNavigator = getSnapshot(targetNavigator, 0, cachedNavigatorGlobalPosition);
         endView.visible = oldVisibility;
     }

@@ -220,19 +228,30 @@
     {
         super.captureEndValues();

-        // Set targetShapshot to the snapshot that we will be
+        // Set targetSnapshot to the snapshot that we will be
         // transitioning in or out.
         if (consolidatedTransition)
         {
-            targetShapshot = (mode == ZoomViewTransitionMode.OUT) ?
-                cachedNavigator :
-                getSnapshot(targetNavigator.skin, 0);
+            if (mode == ZoomViewTransitionMode.OUT)
+            {
+                targetSnapshot = cachedNavigator;
+                targetSnapshotGlobalPosition = cachedNavigationGroupGlobalPosition.clone();
+            }
+            else
+            {
+                targetSnapshot = getSnapshot(targetNavigator.skin, 0, targetSnapshotGlobalPosition);
+            }
         }
         else
         {
-            targetShapshot = (mode == ZoomViewTransitionMode.OUT) ?
-                getSnapshot(startView, 0) :
-                getSnapshot(endView, 0);
+            if (mode == ZoomViewTransitionMode.OUT)
+            {
+                targetSnapshot = getSnapshot(startView, 0, targetSnapshotGlobalPosition);
+            }
+            else
+            {
+                targetSnapshot = getSnapshot(endView, 0, targetSnapshotGlobalPosition);
+            }
         }
     }

@@ -272,8 +291,8 @@
                 endView.visible = false;
         }

-        if (targetShapshot)
-            transitionGroup.addElement(targetShapshot);
+        if (targetSnapshot)
+            addCachedElementToGroup(transitionGroup, targetSnapshot, targetSnapshotGlobalPosition);

         transitionGroup.validateNow();

@@ -309,17 +328,20 @@
         // Add a group to contain our snapshot view of the original navigator.
         cachedNavigatorGroup = new Group();
         cachedNavigatorGroup.includeInLayout = false;
-        cachedNavigatorGroup.addElement(cachedNavigator);
+
+        // On zoom out, place the cachedNavigator above the targetNavigator
+		var index:int = getComponentChildIndex(targetNavigator, targetNavigator.parent as UIComponent);
+		if (mode == ZoomViewTransitionMode.OUT)
+            index++;
+        addComponentToContainerAt(cachedNavigatorGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent, index);
+
         cachedNavigator.includeInLayout = false;
-
-		var targetNavigatorIndex:int = getComponentChildIndex(targetNavigator, targetNavigator.parent as UIComponent);
-
+        addCachedElementToGroup(cachedNavigatorGroup, cachedNavigator, cachedNavigatorGlobalPosition);
+
         // Add our temporary transition group to our target navigator's parent
         // so we can make it and the original navigator siblings.
         if (mode == ZoomViewTransitionMode.OUT)
         {
-            addComponentToContainerAt(cachedNavigatorGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent, targetNavigatorIndex + 1);
-
             // We'll be zooming out our cachedNavigatorGroup.
             transitionGroup = cachedNavigatorGroup;
         }
@@ -327,12 +349,11 @@
         {
             transitionGroup = new Group();
             transitionGroup.includeInLayout = false;
-            addComponentToContainerAt(cachedNavigatorGroup, DisplayObjectContainer(targetNavigator).parent as UIComponent, targetNavigatorIndex);

             // We'll be zooming in our snapshot of the new navigator. Host our
             // snapshot and make sure it's rendered.
             cachedNavigatorGroup.addElement(transitionGroup);
-            transitionGroup.addElement(targetShapshot);
+            addCachedElementToGroup(transitionGroup, targetSnapshot, targetSnapshotGlobalPosition);
             cachedNavigatorGroup.validateNow();

             // Hide our real navigator.


Transferred from the Adobe Open Source Subversion Repository

Revision: 20135
Author:   cframpto@adobe.com
Date:     2011-02-04T17:17:14.255516Z

Log Message:
-----------
Fixup ASdoc for text styles and properties in TextArea/TextInput/SkinnableTextBase which are common to spark and mobile text but have different descriptions/values.  We are restricted to how we can format the doc since there can only be one @copy and it must be last.  In addition, we do not want the summary line to be "Not supported for the mobile theme".  Stephen Gilson and I worked out a template which uses @see rather than @copy since there can be multiple @see tags.  Look at SkinnableTextBase.editable for an example when mobile supports the property and SkinnableTextBase.typicalText for an example when mobile does not support the property.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicNonInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/SelectionFormatTextStyles.as</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/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -623,7 +623,7 @@
      *  Specifies whether the text is editable, true,
      *  or not, false.
      *
-     *  @default false
+     *  @default true if type is TextFieldType.INPUT, otherwise false.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10.1


Transferred from the Adobe Open Source Subversion Repository

Revision: 17576
Author:   chiedozi@adobe.com
Date:     2010-09-03T21:23:14.276425Z

Log Message:
-----------
Fixed an RTE in SlideViewTransition that occurred when transitioning between two views that hide the actionBar.

QE notes:
Doc notes:
Bugs: SDK-27742
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration:

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/effects/SlideViewTransition.as

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

--- frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
+++ frameworks/projects/mobilecomponents/src/spark/transitions/SlideViewTransition.as
@@ -295,8 +295,8 @@
         if (!fullScreenAnimation)
         {
             fullScreenAnimation = cachedActionBar &&
-                                  (actionBar.height != cachedActionBar.height) ||
-                                  (actionBar.width != cachedActionBar.width);
+                                  ((actionBar.height != cachedActionBar.height) ||
+                                   (actionBar.width != cachedActionBar.width));
         }

         // Create the animation


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

--- frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/LegendItemAutomationImpl.as
+++ frameworks/projects/automation_dmv/src/mx/automation/delegates/charts/LegendItemAutomationImpl.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.charts
 {


Fountains are only creatable for item locations

--- flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
+++ flexEditor/src/org/arisgames/editor/components/PlaceMarkerEditorView.as
@@ -87,6 +87,7 @@
 		errorText.text = placeMark.errorText;
 		qrCode.text = placeMark.qrCode;
 		qrImage.addEventListener(MouseEvent.CLICK, handleQRImageClick);
+		if(this.placeMark.contentType != AppConstants.CONTENTTYPE_ITEM_VAL) this.fountainPopupButton.visible = false;
 		if(placeMark.isFountain) this.fountainPopupButton.label = "Edit Fountain Settings";


Resolve conflict

Resolve conflict

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
@@ -90,15 +90,9 @@

         switch (applicationDPI)
         {
-<<<<<<< HEAD
-
-			case DPIClassification.DPI_640:
-			{
-=======
 			case DPIClassification.DPI_640:
 			{
 				// Note provisional may need changes
->>>>>>> develop
 				borderSize = 2;
 				layoutShadowHeight = 12;
 				layoutContentGroupHeight = 172;
@@ -115,11 +109,6 @@
 				layoutShadowHeight = 9;
 				layoutContentGroupHeight = 130;
 				layoutTitleGroupHorizontalPadding = 40;
-<<<<<<< HEAD
-
-=======
-
->>>>>>> develop
 				borderClass = spark.skins.mobile480.assets.ActionBarBackground;

 				break;


Transferred from the Adobe Open Source Subversion Repository

Revision: 18126
Author:   gruehle@adobe.com
Date:     2010-10-11T18:03:16.346900Z

Log Message:
-----------
Change name MobileTextField to StyleableTextField.

QE notes: Tests using MobileTextField by name will need updating.
Doc notes: Docs mentioning MobileTextField will need updating.
Bugs: SDK-27849
Reviewer: Ryan
Tests run: checkintests, QE cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" copyfrom-path="/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as" copyfrom-rev="18115" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/styles/metadata/MobileTextFieldTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.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/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="A">/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/mobilecomponents/src/MobileComponentsClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/MobileIconItemRenderer.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/ActionBarSkin.as
@@ -25,7 +25,7 @@

 import spark.components.ActionBar;
 import spark.components.Group;
-import spark.components.supportClasses.MobileTextField;
+import spark.components.supportClasses.StyleableTextField;
 import spark.core.IDisplayText;
 import spark.core.SpriteVisualElement;
 import spark.layouts.HorizontalAlign;
@@ -372,22 +372,22 @@
 import mx.core.mx_internal;
 import mx.events.FlexEvent;

-import spark.components.supportClasses.MobileTextField;
+import spark.components.supportClasses.StyleableTextField;
 import spark.core.IDisplayText;

 use namespace mx_internal;

 /**
  *  @private
- *  Component that holds MobileTextFields to produce a drop shadow effect.
+ *  Component that holds StyleableTextFields to produce a drop shadow effect.
  */
 class TitleDisplayComponent extends UIComponent implements IDisplayText
 {
     private static var TEXT_WIDTH_PADDING:Number =
         UITextField.TEXT_WIDTH_PADDING + 1;

-    private var titleDisplay:MobileTextField;
-    private var titleDisplayShadow:MobileTextField;
+    private var titleDisplay:StyleableTextField;
+    private var titleDisplayShadow:StyleableTextField;
     private var title:String;
     private var titleChanged:Boolean;
     public var descent:Number;
@@ -402,7 +402,7 @@
     {
         super.createChildren();

-        titleDisplay = MobileTextField(createInFontContext(MobileTextField));
+        titleDisplay = StyleableTextField(createInFontContext(StyleableTextField));
         titleDisplay.styleProvider = this;
         titleDisplay.editable = false;
         titleDisplay.selectable = false;
@@ -412,7 +412,7 @@
             titleDisplay_valueCommitHandler);

         titleDisplayShadow =
-            MobileTextField(createInFontContext(MobileTextField));
+            StyleableTextField(createInFontContext(StyleableTextField));
         titleDisplayShadow.styleProvider = this;
         titleDisplayShadow.colorName = "textShadowColor";
         titleDisplayShadow.editable = false;


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

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


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

--- frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as
+++ frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package spark.primitives


Transferred from the Adobe Open Source Subversion Repository

Revision: 11463
Author:   smgilson@adobe.com
Date:     2009-11-05T15:28:57.969428Z

Log Message:
-----------
ASDoc edits for update spark item renderer arch

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/IItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DefaultComplexItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/AdvancedInheritingTextStyles.as
@@ -80,7 +80,7 @@
 [Style(name="paragraphSpaceBefore", type="Number", format="length", inherit="yes")]

 /**
- *  @copy flashx.textLayout.formats.paragraphStartIndent
+ *  @copy flashx.textLayout.formats.ITextLayoutFormat#paragraphStartIndent
  *
  *  @langversion 3.0
  *  @playerversion Flash 10


Transferred from the Adobe Open Source Subversion Repository

Revision: 20678
Author:   smgilson@adobe.com
Date:     2011-03-08T16:12:39.807806Z

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

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/ConstraintLayout.as</path>

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

--- frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as
+++ frameworks/projects/spark/src/spark/validators/supportClasses/GlobalizationUtils.as
@@ -103,6 +103,8 @@
      *  @returns Boolean true if a codepoint
      *  is a numeric digit, and false if not.
      *
+     *  @return true if a codepoint is a numeric digit.
+     *
      *  @langversion 3.0
      *  @playerversion Flash 10.1
      *  @playerversion AIR 2.5


using ColumnUtils.getTitle()

using ColumnUtils.getTitle()

Change-Id: Ibff6fdf33018877c5e1aa2f5f9d707676dfdec01

--- WeaveUI/src/weave/ui/CustomDataGrid/DataGridColumnForQKey.as
+++ WeaveUI/src/weave/ui/CustomDataGrid/DataGridColumnForQKey.as
@@ -25,6 +25,7 @@
 	import weave.api.data.IAttributeColumn;
 	import weave.api.data.IQualifiedKey;
 	import weave.data.KeySets.SortedKeySet;
+	import weave.utils.ColumnUtils;

 	public class DataGridColumnForQKey extends DataGridColumn
 	{
@@ -46,8 +47,7 @@

 		override public function get headerText():String
 		{
-			var title:String = attrColumn ? attrColumn.getMetadata(ColumnMetadata.TITLE) : '';
-			return super.headerText || title;
+			return super.headerText || ColumnUtils.getTitle(attrColumn);
 		}

 		private function _labelFunction(item:Object, column:DataGridColumn):String


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

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

--- frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridGroupRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/olapDataGridClasses/OLAPDataGridGroupRenderer.as
@@ -0,0 +1,458 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.controls.olapDataGridClasses
+{
+
+import flash.display.DisplayObject;
+import flash.display.InteractiveObject;
+import flash.events.Event;
+import flash.events.MouseEvent;
+import flash.geom.Point;
+import flash.geom.Rectangle;
+import flash.utils.getDefinitionByName;
+
+import mx.controls.OLAPDataGrid;
+import mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
+import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
+import mx.controls.listClasses.BaseListData;
+import mx.controls.listClasses.IDropInListItemRenderer;
+import mx.controls.listClasses.IListItemRenderer;
+import mx.core.IDataRenderer;
+import mx.core.IFlexDisplayObject;
+import mx.core.IToolTip;
+import mx.core.SpriteAsset;
+import mx.core.UIComponent;
+import mx.core.IUITextField;
+import mx.core.UITextField;
+import mx.events.FlexEvent;
+import mx.events.ToolTipEvent;
+
+import mx.olap.IOLAPAxisPosition;
+import mx.olap.IOLAPMember;
+
+import mx.core.mx_internal;
+
+use namespace mx_internal;
+
+//--------------------------------------
+//  Events
+//--------------------------------------
+
+/**
+ *  Dispatched when the data property changes.
+ *
+ *
When you use a component as an item renderer,
+ *  the data property contains the data to display.
+ *  You can listen for this event and update the component
+ *  when the data property changes.

+ *
+ *  @eventType mx.events.FlexEvent.DATA_CHANGE
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Event(name="dataChange", type="mx.events.FlexEvent")]
+
+//--------------------------------------
+//  Styles
+//--------------------------------------
+
+/**
+ *  Text color of a component label.
+ *  The default value is 0x0B333C.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="color", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Color of the component if it is disabled.
+ *  The default value is 0xAAB3B3.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledColor", type="uint", format="Color", inherit="yes")]
+
+/**
+ *  Color of the component if it is disabled.
+ *  The default value is 0xAAB3B3.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="horizontalAlign", type="String", inherit="no")]
+
+
+/**
+ *  The OLAPDataGridGroupRenderer class defines the default item renderer for a group renderer for
+ *  the OLAPDataGrid control. An instance of this class is the default value of the
+ *  OLAPDataGrid.groupItemRenderer property.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPDataGridGroupRenderer extends UIComponent
+       implements IDataRenderer, IDropInListItemRenderer, IListItemRenderer
+{
+	include "../../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function OLAPDataGridGroupRenderer()
+    {
+        super();
+
+        // InteractiveObject variables.
+        mouseEnabled = false;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private var listOwner:OLAPDataGrid;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  data
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the data property.
+     */
+    private var _data:Object;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the data property as
+     *  defined by the IDataRenderer interface.
+     *
+     *  @see mx.core.IDataRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get data():Object
+    {
+        return _data;
+    }
+
+    /**
+     *  @private
+     */
+    public function set data(value:Object):void
+    {
+        _data = value;
+
+        invalidateProperties();
+
+        dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
+    }
+
+
+    //----------------------------------
+    //  label
+    //----------------------------------
+
+    /**
+     *  The internal UITextField that displays the text in this renderer.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    protected var label:IUITextField;
+
+    //----------------------------------
+    //  listData
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Storage for the listData property.
+     */
+    private var _listData:AdvancedDataGridListData;
+
+    [Bindable("dataChange")]
+
+    /**
+     *  The implementation of the listData property as
+     *  defined by the IDropInListItemRenderer interface.
+     *
+     *  @see mx.controls.listClasses.IDropInListItemRenderer
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get listData():BaseListData
+    {
+        return _listData;
+    }
+
+    /**
+     *  @private
+     */
+    public function set listData(value:BaseListData):void
+    {
+        _listData = AdvancedDataGridListData(value);
+
+        invalidateProperties();
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    override protected function createChildren():void
+    {
+        super.createChildren();
+
+        if (!label)
+        {
+            label = IUITextField(createInFontContext(UITextField));
+            label.styleName = this;
+            addChild(DisplayObject(label));
+        }
+
+        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);
+    }
+
+    /**
+     *  @private
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        if (_data)
+        {
+            listOwner = OLAPDataGrid(_listData.owner);
+
+            label.text = _listData.label;
+            label.multiline = listOwner.variableRowHeight;
+            label.wordWrap = listOwner.wordWrap;
+
+            if (_data is AdvancedDataGridColumn)
+                label.wordWrap = listOwner.columnHeaderWordWrap(_data as AdvancedDataGridColumn);
+            else
+                label.wordWrap = listOwner.rowHeaderWordWrap(_data.members[_listData.columnIndex] as IOLAPMember);
+
+            label.multiline = listOwner.variableRowHeight;
+
+            if (listOwner.showDataTips)
+            {
+                if (label.textWidth > label.width ||
+                    listOwner.dataTipFunction != null)
+                {
+                    toolTip = listOwner.itemToDataTip(_data);
+                }
+                else
+                {
+                    toolTip = null;
+                }
+            }
+            else
+            {
+                toolTip = null;
+            }
+        }
+        else
+        {
+            label.text = " ";
+            toolTip = null;
+        }
+
+        invalidateDisplayList();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function measure():void
+    {
+        super.measure();
+
+        var w:Number = _data ? _listData.indent : 0;
+
+
+        // guarantee that label width isn't zero because it messes up ability to measure
+        if (label.width < 4 || label.height < 4)
+        {
+            label.width = 4;
+            label.height = 16;
+        }
+
+        if (isNaN(explicitWidth))
+        {
+            w += label.getExplicitOrMeasuredWidth();
+            measuredWidth = w;
+        }
+        else
+        {
+            label.width = Math.max(explicitWidth - w, 4);
+        }
+
+        measuredHeight = label.getExplicitOrMeasuredHeight();
+    }
+
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+                                                  unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+        var startx:Number = _data ? _listData.indent : 0;
+
+        var horizontalAlign:String = getStyle("horizontalAlign");
+        if (horizontalAlign == "left")
+        {
+            label.x = startx;
+        }
+        else if (horizontalAlign == "right")
+        {
+            label.x = unscaledWidth - label.width + 2; // 2 for gutter
+        }
+        else
+        {
+            label.x = (unscaledHeight - label.height) / 2 + startx;
+        }
+        label.setActualSize(unscaledWidth - label.x, unscaledHeight);
+
+		//label.x = startx;
+
+        var verticalAlign:String = getStyle("verticalAlign");
+        if (verticalAlign == "top")
+        {
+            label.y = 0;
+        }
+        else if (verticalAlign == "bottom")
+        {
+            label.y = unscaledHeight - label.height + 2; // 2 for gutter
+        }
+        else
+        {
+            label.y = (unscaledHeight - label.height) / 2;
+        }
+
+        var labelColor:Number;
+
+        if (data && parent)
+        {
+            if (!enabled)
+                labelColor = getStyle("disabledColor");
+
+            else if (listOwner.isItemHighlighted(listData.uid))
+                labelColor = getStyle("textRollOverColor");
+
+            else if (listOwner.isItemSelected(listData.uid))
+                labelColor = getStyle("textSelectedColor");
+
+            else
+                labelColor = getStyle("color");
+
+            label.setColor(labelColor);
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    mx_internal function getLabel():IUITextField
+    {
+        return label;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Event handlers
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    private function toolTipShowHandler(event:ToolTipEvent):void
+    {
+        var toolTip:IToolTip = event.toolTip;
+		var xPos:int = DisplayObject(systemManager).mouseX + 11;
+        var yPos:int = DisplayObject(systemManager).mouseY + 22;
+        // Calculate global position of label.
+        var pt:Point = new Point(xPos, yPos);
+        pt = DisplayObject(systemManager).localToGlobal(pt);
+        pt = DisplayObject(systemManager.getSandboxRoot()).globalToLocal(pt);
+
+        toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
+
+        var screen:Rectangle = toolTip.screen;
+        var screenRight:Number = screen.x + screen.width;
+        if (toolTip.x + toolTip.width > screenRight)
+            toolTip.move(screenRight - toolTip.width, toolTip.y);
+    }
+}
+
+}


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridBase.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: 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@1251893 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.automation.delegates.charts
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 18279
Author:   chiedozi@adobe.com
Date:     2010-10-21T21:54:20.944908Z

Log Message:
-----------
PARB changes
updatePropertiesForView was renamed updateControlsForView
exitApplicationOnBackKey is now mx_internal in ViewNavigator and MobileApplication classes

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ViewNavigatorBase.as
@@ -139,6 +139,7 @@
     //  exitApplicationOnBackKey
     //----------------------------------
     /**
+     *  @private
      *  This method determines if a device's default back key handler can
      *  be canceled.  For example, by default, when the back key is pressed
      *  on android devices, the application exits.  By returning true, that
@@ -155,7 +156,7 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function get exitApplicationOnBackKey():Boolean
+    mx_internal function get exitApplicationOnBackKey():Boolean
     {
         return true;
     }
@@ -504,7 +505,7 @@
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
-    public function updatePropertiesForView(view:View):void
+    public function updateControlsForView(view:View):void
     {
     }


remove trace

remove trace

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -541,9 +541,6 @@
         if (result == null)
             return result;

-        if (propName == "file")
-            trace("file");
-
         if (makeArray || makeArrayCollection)
         {
             var existing:* = result[propName];


Transferred from the Adobe Open Source Subversion Repository

Revision: 11195
Author:   smgilson@adobe.com
Date:     2009-10-27T20:34:07.705746Z

Log Message:
-----------
Fix broken ASDoc links

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/IConstraintLayout.as

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

--- frameworks/projects/framework/src/mx/containers/utilityClasses/IConstraintLayout.as
+++ frameworks/projects/framework/src/mx/containers/utilityClasses/IConstraintLayout.as
@@ -24,10 +24,9 @@
  *  @see mx.containers.Canvas
  *  @see mx.containers.Panel
  *  @see mx.core.Application
- *  @see mx.containers.utilityClasses.ConstraintColumn;
- *  @see mx.containers.utilityClasses.ConstraintRow;
- *  @see mx.modules.Module;
- *  @see mx.styles.metadata.AnchorStyles;
+ *  @see mx.containers.utilityClasses.ConstraintColumn
+ *  @see mx.containers.utilityClasses.ConstraintRow
+ *  @see mx.modules.Module
  *
  *  @langversion 3.0
  *  @playerversion Flash 9
@@ -36,57 +35,57 @@
  */
 public interface IConstraintLayout
 {
-	//--------------------------------------------------------------------------
-	//
-	//  Properties
-	//
-	//--------------------------------------------------------------------------
-
-	//----------------------------------
-	//  constraintColumns
-	//----------------------------------
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  constraintColumns
+    //----------------------------------

-	/**
-	 *  An Array of ConstraintColumn instances that partition this container.
-	 *  The ConstraintColumn instance at index 0 is the left-most column;
-	 *  indices increase from left to right.
-	 *
-	 *  @default []
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	function get constraintColumns():Array /* of ConstraintColumn */;
-
-	/**
-	 *  @private
-	 */
-	function set constraintColumns(value:Array /* of ConstraintColumn */):void;
-
-	//----------------------------------
-	//  constraintRows
-	//----------------------------------
-
-	/**
-	 *  An Array of ConstraintRow instances that partition this container.
-	 *  The ConstraintRow instance at index 0 is the top-most row;
-	 *  indices increase from top to bottom.
-	 *
-	 *  @default []
-	 *
-	 *  @langversion 3.0
-	 *  @playerversion Flash 9
-	 *  @playerversion AIR 1.1
-	 *  @productversion Flex 3
-	 */
-	function get constraintRows():Array /* of ConstraintRow */;
-
-	/**
-	 *  @private
-	 */
-	function set constraintRows(value:Array /* of ConstraintRow */):void;
+    /**
+     *  An Array of ConstraintColumn instances that partition this container.
+     *  The ConstraintColumn instance at index 0 is the left-most column;
+     *  indices increase from left to right.
+     *
+     *  @default []
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get constraintColumns():Array /* of ConstraintColumn */;
+
+    /**
+     *  @private
+     */
+    function set constraintColumns(value:Array /* of ConstraintColumn */):void;
+
+    //----------------------------------
+    //  constraintRows
+    //----------------------------------
+
+    /**
+     *  An Array of ConstraintRow instances that partition this container.
+     *  The ConstraintRow instance at index 0 is the top-most row;
+     *  indices increase from top to bottom.
+     *
+     *  @default []
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get constraintRows():Array /* of ConstraintRow */;
+
+    /**
+     *  @private
+     */
+    function set constraintRows(value:Array /* of ConstraintRow */):void;
 }

 }


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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/FormAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/FormAutomationImpl.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: 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@1264420 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/NavigationStack.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 Adobe Systems Incorporated
-//  All Rights Reserved.
-//
-//  NOTICE: Adobe permits you to use, modify, and distribute this file
-//  in accordance with the terms of the license agreement accompanying it.
+//  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
+//
+//      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: 12733
Author:   smgilson@adobe.com
Date:     2009-12-09T18:19:48.608649Z

Log Message:
-----------
ASDoc l10n prep

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/treeClasses/MXTreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.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/core/ILayoutElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IRepeater.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/mx/controls/listClasses/MXItemRenderer.as</path>

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

--- frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
+++ frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as
@@ -171,7 +171,8 @@
      *  The implementation of the data property as
      *  defined by the IDataRenderer interface.
      *
-     *  The value is ignored.  Only the listData property is used.
+     *
The value is ignored.  Only the listData property is used.

+     *
      *  @see mx.core.IDataRenderer
      *
      *  @langversion 3.0
@@ -250,7 +251,8 @@

     /**
      *  Storage for the inline inheriting styles on this object.
-     *  This CSSStyleDeclaration is created the first time that setStyle()
+     *  This CSSStyleDeclaration object is created the first time that
+     *  the setStyle() method
      *  is called on this component to set an inheriting style.
      *
      *  @langversion 3.0


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as
@@ -72,7 +72,7 @@
             }
             default:
             {
-                // default PPI160
+                // default DPI_160
                 minHeight = 6;
                 paddingBottom = HScrollBarThumbSkin.PADDING_BOTTOM_DEFAULTDPI;
                 paddingHorizontal = HScrollBarThumbSkin.PADDING_HORIZONTAL_DEFAULTDPI;


removed empty comment

removed empty comment

--- frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
+++ frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridHeader.as
@@ -1661,7 +1661,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-    private var resizeGraphic:IFlexDisplayObject; //
+    private var resizeGraphic:IFlexDisplayObject;

     /**
      *  @private


Transferred from the Adobe Open Source Subversion Repository

Revision: 20149
Author:   klin@adobe.com
Date:     2011-02-04T21:39:31.000080Z

Log Message:
-----------
Add and update [Inspectable] metadata across spark components.

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TileGroup.as</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/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
@@ -371,6 +371,7 @@
      *  @productversion Flex 4
      */
     [Bindable("dataProviderChanged")]
+    [Inspectable(category="Data")]

     public function get dataProvider():IList
     {
@@ -396,6 +397,8 @@
     //  itemRenderer
     //----------------------------------

+    [Inspectable(category="Data")]
+
     /**
      *  @copy spark.components.DataGroup#itemRenderer
      *
@@ -430,6 +433,8 @@
     //  itemRendererFunction
     //----------------------------------

+    [Inspectable(category="Data")]
+
     /**
      *  @copy spark.components.DataGroup#itemRendererFunction
      *
@@ -464,6 +469,8 @@
     //  layout
     //----------------------------------

+    [Inspectable(category="General")]
+
     /**
      *  @copy spark.components.supportClasses.GroupBase#layout
      *
@@ -500,6 +507,8 @@
     //  typicalItem
     //----------------------------------

+    [Inspectable(category="Data")]
+
     /**
      *  @copy spark.components.DataGroup#typicalItem
      *


Transferred from the Adobe Open Source Subversion Repository

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

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

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

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

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

--- frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
+++ frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as
@@ -37,6 +37,7 @@
 import spark.components.DataGrid;
 import spark.components.Grid;
 import spark.components.supportClasses.GroupBase;
+import spark.core.IGraphicElement;
 import spark.layouts.supportClasses.LayoutBase;

 use namespace mx_internal;
@@ -2190,13 +2191,20 @@
                 {
                     if (validatingElt is ILayoutManagerClient)
                         UIComponentGlobals.layoutManager.validateClient(ILayoutManagerClient(validatingElt), true);
+                    else if (validatingElt is IGraphicElement)
+                        validateGraphicElement(IGraphicElement(validatingElt));
                     else
                         validatingElt.validateNow();
                 }
                 renderer.setLayoutBoundsSize(width, height);
             }
             if (validatingElt)
-                validatingElt.validateNow();
+            {
+                if (validatingElt is IGraphicElement)
+                    validateGraphicElement(IGraphicElement(validatingElt));
+                else
+                    validatingElt.validateNow();
+            }
         }

         renderer.setLayoutBoundsPosition(x, y);
@@ -2208,6 +2216,20 @@
         }
     }

+    /*
+     * For graphic elements we don't want to call validateNow() since it calls
+     * validateClient on the parent of the graphic element which is the GridLayer.
+     * Every time a graphic element is added to the GridLayer a redraw is requested of the
+     * GridLayer which includes validating all the existing graphic elements.  The redraw of the
+     * GridLayer will be done later.
+     */
+    private function validateGraphicElement(graphicElt:IGraphicElement):void
+    {
+        graphicElt.validateProperties();
+        graphicElt.validateSize();
+        graphicElt.validateDisplayList();
+    }
+
     private function layoutGridElementR(elt:IVisualElement, bounds:Rectangle):void
     {
         if (bounds)


Transferred from the Adobe Open Source Subversion Repository

Revision: 22564
Author:   tkraikit@adobe.com
Date:     2011-09-14T19:50:07.656843Z

Log Message:
-----------
Update ASDoc "@productversion Flex 4.5.2" => "@productversion Flex 4.6"

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/OnDemandDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DateSpinnerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/graphics/BitmapScaleMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ContentBackgroundAppearance.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/src/mx/core/FlexVersion.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ArrowDirection.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/FormatPattern.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentNavigationButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/DropDownController.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/core/ISoftKeyboardHintClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/CalloutArrow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutActionBarSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/YearProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/calendarClasses/DateSelectorDisplayMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/ToggleSwitch.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledBackButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListScrollerSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/ScrollSnappingMode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/StageTextSkinBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultTransparentActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/ToggleSwitchSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateAndTimeProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/CalloutPosition.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImageSource.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/components/SkinnablePopUpContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SplitViewNavigator.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/Callout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/StageTextInputSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableStageText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/preloaders/SplashScreenImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/DateSpinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/CalendarDate.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/CalloutSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/DefaultBeveledActionButtonSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/globalization/supportClasses/DateTimeFormatterEx.as</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
+++ frameworks/projects/mobilecomponents/src/spark/components/calendarClasses/DateSpinnerItemRenderer.as
@@ -26,7 +26,7 @@
  *
  *  @langversion 3.0
  *  @playerversion AIR 3
- *  @productversion Flex 4.5.2
+ *  @productversion Flex 4.6
  */
 public class DateSpinnerItemRenderer extends SpinnerListItemRenderer
 {
@@ -35,7 +35,7 @@
 	 *
 	 *  @langversion 3.0
 	 *  @playerversion AIR 3
-	 *  @productversion Flex 4.5.2
+	 *  @productversion Flex 4.6
 	 */
 	public function DateSpinnerItemRenderer()
 	{


Fixed the Editor so it does not change the opacity of the 'popup' window (e.g. menu popup or file selector) when hiding the UI. The string representation of the accel key is now auto computed instead of passing by parameter manually.

--- Bin/Data/Scripts/Editor/EditorUI.as
+++ Bin/Data/Scripts/Editor/EditorUI.as
@@ -110,10 +110,11 @@
     {
         Menu@ fileMenu = CreateMenu("File");
         Window@ filePopup = fileMenu.popup;
-        filePopup.AddChild(CreateMenuItem("New scene", 'N', QUAL_SHIFT | QUAL_CTRL, "Ctrl+Shift+N"));
-        filePopup.AddChild(CreateMenuItem("Open scene...", 'O', QUAL_CTRL, "Ctrl+O"));
-        filePopup.AddChild(CreateMenuItem("Save scene", 'S', QUAL_CTRL, "Ctrl+S"));
-        filePopup.AddChild(CreateMenuItem("Save scene as...", 'S', QUAL_SHIFT | QUAL_CTRL, "Ctrl+Shift+S"));
+        filePopup.vars["Popup"] = "File";
+        filePopup.AddChild(CreateMenuItem("New scene", 'N', QUAL_SHIFT | QUAL_CTRL));
+        filePopup.AddChild(CreateMenuItem("Open scene...", 'O', QUAL_CTRL));
+        filePopup.AddChild(CreateMenuItem("Save scene", 'S', QUAL_CTRL));
+        filePopup.AddChild(CreateMenuItem("Save scene as...", 'S', QUAL_SHIFT | QUAL_CTRL));
         filePopup.AddChild(CreateMenuDivider());

         Menu@ loadNodeMenu = CreateMenuItem("Load node");
@@ -139,19 +140,20 @@
     {
         Menu@ editMenu = CreateMenu("Edit");
         Window@ editPopup = editMenu.popup;
-        editPopup.AddChild(CreateMenuItem("Cut", 'X', QUAL_CTRL, "Ctrl+X"));
-        editPopup.AddChild(CreateMenuItem("Copy", 'C', QUAL_CTRL, "Ctrl+C"));
-        editPopup.AddChild(CreateMenuItem("Paste", 'V', QUAL_CTRL, "Ctrl+V"));
-        editPopup.AddChild(CreateMenuItem("Delete", KEY_DELETE, QUAL_ANY, "Del"));
-        editPopup.AddChild(CreateMenuItem("Select all", 'A', QUAL_CTRL, "Ctrl+A"));
+        editPopup.vars["Popup"] = "Edit";
+        editPopup.AddChild(CreateMenuItem("Cut", 'X', QUAL_CTRL));
+        editPopup.AddChild(CreateMenuItem("Copy", 'C', QUAL_CTRL));
+        editPopup.AddChild(CreateMenuItem("Paste", 'V', QUAL_CTRL));
+        editPopup.AddChild(CreateMenuItem("Delete", KEY_DELETE, QUAL_ANY));
+        editPopup.AddChild(CreateMenuItem("Select all", 'A', QUAL_CTRL));
         editPopup.AddChild(CreateMenuDivider());
         editPopup.AddChild(CreateMenuItem("Reset position"));
         editPopup.AddChild(CreateMenuItem("Reset rotation"));
         editPopup.AddChild(CreateMenuItem("Reset scale"));
-        editPopup.AddChild(CreateMenuItem("Enable/disable", 'E', QUAL_CTRL, "Ctrl+E"));
-        editPopup.AddChild(CreateMenuItem("Unparent", 'U', QUAL_CTRL, "Ctrl+U"));
+        editPopup.AddChild(CreateMenuItem("Enable/disable", 'E', QUAL_CTRL));
+        editPopup.AddChild(CreateMenuItem("Unparent", 'U', QUAL_CTRL));
         editPopup.AddChild(CreateMenuDivider());
-        editPopup.AddChild(CreateMenuItem("Toggle update", 'P', QUAL_CTRL, "Ctrl+P"));
+        editPopup.AddChild(CreateMenuItem("Toggle update", 'P', QUAL_CTRL));
         AdjustAccelIndent(editPopup);
         uiMenuBar.AddChild(editMenu);
     }
@@ -159,6 +161,7 @@
     {
         Menu@ createMenu = CreateMenu("Create");
         Window@ createPopup = createMenu.popup;
+        createPopup.vars["Popup"] = "Create";
         createPopup.AddChild(CreateMenuItem("Box"));
         createPopup.AddChild(CreateMenuItem("Cone"));
         createPopup.AddChild(CreateMenuItem("Cylinder"));
@@ -171,8 +174,9 @@
     {
         Menu@ viewMenu = CreateMenu("View");
         Window@ viewPopup = viewMenu.popup;
-        viewPopup.AddChild(CreateMenuItem("Hierarchy", 'H', QUAL_CTRL, "Ctrl+H"));
-        viewPopup.AddChild(CreateMenuItem("Attribute inspector", 'I', QUAL_CTRL, "Ctrl+I"));
+        viewPopup.vars["Popup"] = "View";
+        viewPopup.AddChild(CreateMenuItem("Hierarchy", 'H', QUAL_CTRL));
+        viewPopup.AddChild(CreateMenuItem("Attribute inspector", 'I', QUAL_CTRL));
         viewPopup.AddChild(CreateMenuItem("Editor settings"));
         viewPopup.AddChild(CreateMenuItem("Editor preferences"));
         AdjustAccelIndent(viewPopup);
@@ -184,7 +188,7 @@
     uiMenuBar.AddChild(spacer);
 }

-Menu@ CreateMenuItem(const String&in title, int accelKey = 0, int accelQual = 0, const String&in accel = "", int padding = 16)
+Menu@ CreateMenuItem(const String&in title, int accelKey = 0, int accelQual = 0, int padding = 16)
 {
     Menu@ menu = Menu(title);
     menu.style = uiStyle;
@@ -200,12 +204,7 @@
     if (accelKey != 0)
     {
         menuText.layoutMode = LM_HORIZONTAL;
-        Text@ accelKeyText = Text();
-        accelKeyText.SetStyle(uiStyle, "EditorMenuText");
-        accelKeyText.horizontalAlignment = HA_RIGHT;
-        accelKeyText.indent = 1;
-        accelKeyText.text = accel;
-        menuText.AddChild(accelKeyText);
+        menuText.AddChild(CreateAccelKeyText(accelKey, accelQual));
     }

     return menu;
@@ -222,6 +221,7 @@
 Window@ CreatePopup(Menu@ baseMenu)
 {
     Window@ popup = Window();
+    popup.vars["Popup"] = baseMenu.name;
     popup.style = uiStyle;
     popup.SetLayout(LM_VERTICAL, 1, IntRect(2, 6, 2, 6));
     baseMenu.popup = popup;
@@ -232,7 +232,7 @@

 Menu@ CreateMenu(const String&in title)
 {
-    Menu@ menu = CreateMenuItem(title, 0, 0, "", 8);
+    Menu@ menu = CreateMenuItem(title, 0, 0, 8);
     menu.name = "";
     menu.SetFixedWidth(menu.width);
     CreatePopup(menu);
@@ -240,34 +240,59 @@
     return menu;
 }

+Text@ CreateAccelKeyText(int accelKey, int accelQual)
+{
+    Text@ accelKeyText = Text();
+    accelKeyText.SetStyle(uiStyle, "EditorMenuText");
+    accelKeyText.horizontalAlignment = HA_RIGHT;
+    accelKeyText.indent = 1;
+
+    String text;
+    if (accelKey == KEY_DELETE)
+        text = "Del";
+    else if (accelKey == KEY_SPACE)
+        text = "Space";
+    else
+        text.AppendUTF8(accelKey);
+    if (accelQual & QUAL_ALT > 0)
+        text = "Alt+" + text;
+    if (accelQual & QUAL_SHIFT > 0)
+        text = "Shift+" + text;
+    if (accelQual & QUAL_CTRL > 0)
+        text = "Ctrl+" + text;
+    accelKeyText.text = text;
+
+    return accelKeyText;
+}
+
 void AdjustAccelIndent(Window@ popup)
 {
-	// Find the maximum menu text width
-	int maxWidth = 0;
+    // Find the maximum menu text width
+    int maxWidth = 0;
     for (uint i = 0; i < popup.numChildren; ++i)
     {
-    	UIElement@ element = popup.children[i];
-    	if (element.type != menuType)	// Skip if not menu item
-    		continue;
-
-    	int width = element.children[0].width;
-    	if (width > maxWidth)
-    		maxWidth = width;
+        UIElement@ element = popup.children[i];
+        if (element.type != menuType)	// Skip if not menu item
+            continue;
+
+        int width = element.children[0].width;
+        if (width > maxWidth)
+            maxWidth = width;
     }

     // Adjust the indent spacing to slightly wider than the maximum width
     maxWidth += 20;
     for (uint i = 0; i < popup.numChildren; ++i)
     {
-    	UIElement@ element = popup.children[i];
-    	if (element.type != menuType)
-    		continue;
-
-    	element = element.children[0];
-    	if (element.numChildren == 0)	// Skip if menu text does not have accel
-    		continue;
-
-    	element.children[0].indentSpacing = maxWidth;
+        UIElement@ element = popup.children[i];
+        if (element.type != menuType)
+            continue;
+
+        element = element.children[0];
+        if (element.numChildren == 0)	// Skip if menu text does not have accel
+            continue;
+
+        element.children[0].indentSpacing = maxWidth;
     }
 }

@@ -282,6 +307,7 @@
     uiFileSelector.path = initialPath;
     uiFileSelector.SetButtonTexts(ok, cancel);
     uiFileSelector.SetFilters(filters, initialFilter);
+    uiFileSelector.window.vars["Popup"] = "FileSelector";

     CenterDialog(uiFileSelector.window);
 }
@@ -621,7 +647,8 @@
     Array<UIElement@> children = ui.root.GetChildren();
     for (uint i = 0; i < children.length; ++i)
     {
-        if (children[i].type != textType)
+        // Texts and popup windows are excluded
+        if (children[i].type != textType && !children[i].vars.Contains("Popup"))
             children[i].opacity = opacity;
     }
 }


Removed debug logging.

Removed debug logging.

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

--- src/as/com/threerings/util/MessageBundle.as
+++ src/as/com/threerings/util/MessageBundle.as
@@ -79,8 +79,6 @@

         // if we have a parent, try getting the string from them
         if (_parent != null) {
-            trace("Trying to retrieve " + key + " from parent bundle: " +
-                _parent);
             var value :String = _parent.getResourceString(key, false);
             if (value != null) {
                 return value;


SimpleSignal is simpler and safer

SimpleSignal is simpler and safer

--- src/com/zehfernando/signals/SimpleSignal.as
+++ src/com/zehfernando/signals/SimpleSignal.as
@@ -9,9 +9,7 @@

 		// Properties
 		private var functions:Vector.<Function>;
-		private var functionsDuplicate:Vector.<Function>;			// For dispatching

-		private var ifd:int;										// i for dispatching (to limit garbage collection)
 		private var ifr:int;										// i for removal (to limit garbage collection)

 		// ================================================================================================================
@@ -50,12 +48,19 @@
 		}

 		public function dispatch(...__args:Array):void {
-			functionsDuplicate = functions.concat();
+			var functionsDuplicate:Vector.<Function> = functions.concat();
 			functionsDuplicate.fixed = true;
-			for (ifd = 0; ifd < functionsDuplicate.length; ifd++) {
-				functionsDuplicate[ifd].apply(undefined, __args);
+			for (var i:int = 0; i < functionsDuplicate.length; i++) {
+				functionsDuplicate[i].apply(undefined, __args);
 			}
-			functionsDuplicate = null;
+		}
+
+
+		// ================================================================================================================
+		// ACCESSOR INTERFACE ---------------------------------------------------------------------------------------------
+
+		public function get numItems():uint {
+			return functions.length;
 		}
 	}
 }