Accept a text format to use, so the button can match the UI it appears in.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@307 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/SimpleTextButton.as
+++ src/as/com/threerings/flash/SimpleTextButton.as
@@ -27,6 +27,7 @@

 import flash.text.TextField;
 import flash.text.TextFieldAutoSize;
+import flash.text.TextFormat;

 /**
  * Displays a simple button with a rounded rectangle or rectangle for a face.
@@ -35,21 +36,26 @@
 {
     public function SimpleTextButton (
         text :String, rounded :Boolean = true, foreground :uint = 0x003366,
-        background :uint = 0x6699CC, highlight :uint = 0x0066FF, padding :int = 5)
+        background :uint = 0x6699CC, highlight :uint = 0x0066FF, padding :int = 5,
+        textFormat :TextFormat = null)
     {
-        upState = makeFace(text, rounded, foreground, background, padding);
-        overState = makeFace(text, rounded, highlight, background, padding);
-        downState = makeFace(text, rounded, background, highlight, padding);
+        upState = makeFace(text, rounded, foreground, background, padding, textFormat);
+        overState = makeFace(text, rounded, highlight, background, padding, textFormat);
+        downState = makeFace(text, rounded, background, highlight, padding, textFormat);
         hitTestState = upState;
     }

     protected function makeFace (
-        text :String, rounded :Boolean, foreground :uint, background :uint, padding :int) :Sprite
+        text :String, rounded :Boolean, foreground :uint, background :uint,
+        padding :int, textFormat :TextFormat) :Sprite
     {
         var face :Sprite = new Sprite();

         // create the label so that we can measure its size
         var label :TextField = new TextField();
+        if (textFormat) {
+            label.defaultTextFormat = textFormat;
+        }
         label.text = text;
         label.textColor = foreground;
         label.autoSize = TextFieldAutoSize.LEFT;


Allow for unknown attributes or elements to log trace rather than throw exceptions

--- as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
+++ as3/xobjas3/src/com/rpath/xobj/XObjXMLDecoder.as
@@ -340,7 +340,7 @@
                 if (existingObj != result)
                 {
                     // hmmm. mismatched objects ???
-                    /**TRACEDISABLE:trace("mismatched objects for ID "+resultID);*/
+                    trace("mismatched objects for ID "+resultID);
                 }
             }
             else // no old obj
@@ -433,12 +433,12 @@
         {
             if (isArray && (result as Array).length > 0)
             {
-                /**TRACEDISABLE:trace("flushing array");*/
+                trace("flushing array");
                 (result as Array).splice(0);
             }
             else if (isCollection && (result as IList).length > 0)
             {
-                /**TRACEDISABLE:trace("flushing collection");*/
+                trace("flushing collection");
                 (result as IList).removeAll();
             }
         }
@@ -776,7 +776,7 @@
                                     {
                                         if (e.errorID == 1034)
                                         {// must be a non-array thingy. IGNORE
-                                            /**TRACEDISABLE:trace("Ignoring TypeError on promote to Array on" + propertyName);*/
+                                            trace("Ignoring TypeError on promote to Array on" + propertyName);
                                         }
                                         else
                                             throw e;
@@ -935,7 +935,7 @@
                 catch (e:Error)
                 {
                     //throw new Error("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". Check that class is dynamic or attribute name is spelled correctly");
-                    /**TRACEDISABLE:trace("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". " + e + ". Check that class is dynamic or attribute name is spelled correctly");*/
+                    trace("Failed to set attribute "+attrName+"("+attr+") on "+resultTypeName+". Check that class is dynamic or attribute name is spelled correctly");
                 }
             }

@@ -1148,11 +1148,19 @@
             value = existing;
         }

-        // are we just being asked to point at something?
-        if ((result[propName] is IXObjHref) && !(value is IXObjHref))
-            (result[propName] as IXObjHref).href = getIDProperty(value);
-        else
-            result[propName] = value;
+        try
+        {
+            // are we just being asked to point at something?
+            if ((result[propName] is IXObjHref) && !(value is IXObjHref))
+                (result[propName] as IXObjHref).href = getIDProperty(value);
+            else
+                result[propName] = value;
+        }
+        catch (e:ReferenceError)
+        {
+            //throw new Error("Failed to set property "+propName+"("+value+") on "+ XObjUtils.getClassName(result)+". Check that class is dynamic or property name is spelled correctly");
+            trace("Failed to set property "+propName+"("+value+") on "+ XObjUtils.getClassName(result)+". Check that class is dynamic or property name is spelled correctly");
+        }

         return result;
     }


removed unnecessary reportError

removed unnecessary reportError

Change-Id: I2451f67399482961cb92e56ea56e4e7d38dd2e9b

--- WeaveCore/src/weave/core/SessionManager.as
+++ WeaveCore/src/weave/core/SessionManager.as
@@ -650,14 +650,9 @@
 		 */
 		public function getLinkableDescendants(root:ILinkableObject, filter:Class = null):Array
 		{
-			if (root == null)
-			{
-				reportError("SessionManager.getLinkableDescendants(): root cannot be null.");
-				return [];
-			}
-
 			var result:Array = [];
-			internalGetDescendants(result, root, filter, new Dictionary(true), int.MAX_VALUE);
+			if (root)
+				internalGetDescendants(result, root, filter, new Dictionary(true), int.MAX_VALUE);
 			// don't include root object
 			if (result.length > 0 && result[0] == root)
 				result.shift();


Transferred from the Adobe Open Source Subversion Repository

Revision: 5770
Author:   gruehle@adobe.com
Date:     2009-03-30T20:58:54.529722Z

Log Message:
-----------
Add [Alternative] metadata to the Halo components that have a Gumbo replacement.

Bugs: SDK-20190
QA notes: none
Doc notes: Additional ASDoc comments added for many of the classes. These should all be reviewed.
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TileList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Zoom.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToggleButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButtonGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Cubic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Fade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/TweenEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeRight.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Glow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quartic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeLeft.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Linear.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quintic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Tween.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/easing/Quadratic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeDown.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Rotate.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Blur.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/LinkBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Move.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Text.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/HorizontalList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/WipeUp.as</path>

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

--- frameworks/projects/mx/src/mx/containers/Tile.as
+++ frameworks/projects/mx/src/mx/containers/Tile.as
@@ -131,6 +131,13 @@
 //--------------------------------------

 [IconFile("Tile.png")]
+
+/**
+ *  The layout-specific container components in Flex 3 have been replaced by a more generic
+ *  Group component that takes a generic layout. To get similar behavior from the new
+ *  Group component, set the layout property to TileLayout.
+ */
+[Alternative(replacement="spark.components.Group", since="4.0")]

 /**
  *  A Halo Tile container lays out its children


Transferred from the Adobe Open Source Subversion Repository

Revision: 5297
Author:   gruehle@adobe.com
Date:     2009-03-13T16:35:45.870338Z

Log Message:
-----------
More bug fixes for Spark skins for Halo components.

Bugs:
SDK-19660 - The focus for a halo CheckBox or RadioButton with a spark skin is not positioned correctly.
SDK-19603 - Button does not resize to fit icon
SDK-19560 - FxButton is 1px smaller in height than Button
SDK-19548 - Halo Button icons aren't vertically centerred correctly

QA/Doc Notes: A new style is added to Halo button: labelVerticalOffset. This style adjust the vertical position of the label relative to the rest of the Button content. It is only available when compatibility-version is >= 4. ASDoc has been added for this style.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/RadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/CheckBoxSkin.mxml</path>

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

--- frameworks/projects/mx/src/mx/controls/Button.as
+++ frameworks/projects/mx/src/mx/controls/Button.as
@@ -130,6 +130,19 @@
  *  @productversion Flex 3
  */
 [Style(name="horizontalGap", type="Number", format="Length", inherit="no")]
+
+/**
+ *  Number of pixels of vertical offset to apply to the label position.
+ *  Positive numbers move the label down.
+ *
+ *  @default 1
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="labelVerticalOffset", type="Number", format="Length", inherit="no")]

 /**
  *  Number of pixels between the component's bottom border
@@ -2639,6 +2652,9 @@
             buffX += bm.left;
             buffY += bm.top;
         }
+
+        if (FlexVersion.compatibilityVersion >= FlexVersion.VERSION_4_0)
+        	labelY += getStyle("labelVerticalOffset");

         textField.x = Math.round(labelX + buffX);
         textField.y = Math.round(labelY + buffY);


- new Flash controls

- new Flash controls

--- src/flash/FlashMediaElement.as
+++ src/flash/FlashMediaElement.as
@@ -422,7 +422,7 @@
 			seconds = Math.floor(seconds % 60);
 			timeCode += ":" + ((seconds >= 10) ? seconds.toString() : "0" + seconds.toString());
 			return timeCode; //minutes.toString() + ":" + seconds.toString();
-		}
+		}

 		function positionControls() {
 			_controlBarBg.width = stage.stageWidth;


Fix error where an email was not allowed under certain circumstances.

The the errorString on the input field was not reset, so it would keep the phone validator's error string.

Signed-off-by: Zachary Dremann <ce3b90fc162d64a833b972a1c0b301d6c2b46ee2@gmail.com>

--- src/net/zdremann/esuds/CardMachineItemRenderer.as
+++ src/net/zdremann/esuds/CardMachineItemRenderer.as
@@ -199,6 +199,7 @@

 		private function notifSubitBtnClick_Handler(e:MouseEvent):void
 		{
+			notifEmailInput.errorString = "";
 			emailValidator.validate();
 			if (!notifEmailInput.errorString)
 			{


expose properties

expose properties

--- actionscript/src/com/freshplanet/ane/AirAlert/AirPicker.as
+++ actionscript/src/com/freshplanet/ane/AirAlert/AirPicker.as
@@ -65,6 +65,30 @@
 					_cancelCallback();
 			}
 		}
+

+		public function get frame():Rectangle {
+			return _frame;
+		}
+
+		public function get items():Array {
+			return _items;
+		}
+
+		public function get doneLabel():String {
+			return _doneLabel;
+		}
+
+		public function get cancelLabel():String {
+			return _cancelLabel;
+		}
+
+		public function get selectedCallback():Function {
+			return _selectedCallback;
+		}
+
+		public function get cancelCallback():Function {
+			return _cancelCallback;
+		}
 	}
 }


Explicitly set alpha blend mode for toolbar icons. See #799.

--- bin/Data/Scripts/Editor/EditorToolBar.as
+++ bin/Data/Scripts/Editor/EditorToolBar.as
@@ -123,6 +123,7 @@
     icon.defaultStyle = iconStyle;
     icon.style = element.name;
     icon.SetFixedSize(30, 30);
+    icon.blendMode = BLEND_ALPHA;
     element.AddChild(icon);
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 2052
Author:   jimurphy@adobe.com
Date:     2008-06-12T13:27:17.814506Z

Log Message:
-----------
Merged 3.0.x rev [2023] -> trunk

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

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

--- frameworks/projects/framework/src/mx/controls/SWFLoader.as
+++ frameworks/projects/framework/src/mx/controls/SWFLoader.as
@@ -415,7 +415,7 @@
     [Inspectable(defaultValue="true")]

     /**
-     *  A flag that indictes whether content starts loading automatically
+     *  A flag that indicates whether content starts loading automatically
      *  or waits for a call to the load() method.
      *  If true, the content loads automatically.
      *  If false, you must call the load() method.


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

--- frameworks/projects/framework/src/mx/core/FlexMovieClip.as
+++ frameworks/projects/framework/src/mx/core/FlexMovieClip.as
@@ -1,3 +1,13 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 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.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 5330
Author:   clucier@adobe.com
Date:     2009-03-16T19:24:32.723438Z

Log Message:
-----------
Tweaks to default button support. CheckBox, RadioButton, and ComboBox now all fire default button on ENTER when appropriate. Also addressed an initial focus bug.
Bugs: SDK-19039, SDK-19853.
QE Notes: None
Doc Notes: None
Reviewer: Glenn

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IToggleButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CheckBox.as</path>

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

--- frameworks/projects/framework/src/mx/core/IToggleButton.as
+++ frameworks/projects/framework/src/mx/core/IToggleButton.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The IToggleButton interface is a marker interface that indicates that a
+ *  component acts as a toggleable button.  It is used primarily as a filter
+ *  by the framework's default button logic.  This interface is *only* used
+ *  by legacy Halo components.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 4
+ */
+public interface IToggleButton
+{
+
+}
+
+}


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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 2464
Author:   jimurphy@adobe.com
Date:     2008-07-14T19:50:33.449468Z

Log Message:
-----------
add flex 4 to trunk

Modified Paths:
--------------
134 paths were modified

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

--- frameworks/projects/framework/src/mx/filters/BaseFilter.as
+++ frameworks/projects/framework/src/mx/filters/BaseFilter.as
@@ -0,0 +1,22 @@
+package flex.filters
+{
+	import flash.events.EventDispatcher;
+	import flash.events.IEventDispatcher;
+	import flash.events.Event;
+
+	public class BaseFilter extends EventDispatcher
+	{
+		public static const FILTER_CHANGED_TYPE:String = "filterChanged";
+
+		public function BaseFilter(target:IEventDispatcher=null)
+		{
+			super(target);
+		}
+
+		public function notifyFilterChanged():void
+		{
+			dispatchEvent(new Event(FILTER_CHANGED_TYPE));
+		}
+
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 15493
Author:   dloverin@adobe.com
Date:     2010-04-16T15:30:57.446323Z

Log Message:
-----------
Merge revision 15346 from 4.x to trunk

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/tools_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleBase.as</path>

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

--- frameworks/projects/framework/src/mx/modules/ModuleBase.as
+++ frameworks/projects/framework/src/mx/modules/ModuleBase.as
@@ -29,7 +29,7 @@
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-public class ModuleBase extends EventDispatcher
+public class ModuleBase extends EventDispatcher implements IModule
 {
     include "../core/Version.as";
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 17331
Author:   jasonsj@adobe.com
Date:     2010-08-16T17:37:24.374535Z

Log Message:
-----------
Added DiscouragedForProfile metadata for use with FB mobile projects.

QE notes: DiscouragedForProfile features should now be visible in FB
Doc notes: ASDoc content omitted for DiscouragedForProfile where the boilerplate comment is desired
Bugs:
Reviewer: gruehle
Tests run: 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/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.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/TitleWindow.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ToggleButton.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/BorderContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/FormHeading.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.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/RichText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VideoDisplay.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/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Form.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -260,6 +260,8 @@
 [Event(name="caretChange", type="spark.events.GridCaretEvent")]

 [DefaultProperty("dataProvider")]
+
+[DiscouragedForProfile("mobileDevice")]

 /**
  *  TBD


Transferred from the Adobe Open Source Subversion Repository

Revision: 18351
Author:   cframpto@adobe.com
Date:     2010-10-28T19:40:47.134160Z

Log Message:
-----------
Many DataGrid fixes.

DescribeTypeCache.as/describeType
	a string which wasn't a definition would RTE (SDK-28237)

UIFTETestField.as
	explicitWidth/Height always pushed down to FTETextField even if setLayoutBounds set width/height after explcitWidth/Height was set (SDK-27844, SDK-28130)
	alphabetized the properties

GridItemRenderer.as
	should not show dataTip on header (SDK-28212)
	prepare and discard arg names were swapped

DataGrid.as
	if mouse down on a part of the grid where there isn't a row/cell it should be a no-op (SDK-28013)

DefaultGridHeaderRenderer.as
	should show truncation tip if header is truncated (SDK-27259)

TextFieldGridItemRenderInclude.as
	should not show dataTip on header (SDK-28212)

QE notes: setting explicitWidth/Height on the grid IR now does what it should and height/width for text will be reduced by the padding
Doc notes:
Bugs: SDK-28212, SDK-27259, SDK-28237, SDK-27844, SDK-28130
Reviewer: Hans
Tests run: a few cyclones
Is noteworthy for integration:

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="dir" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/textLayout/bin</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/core/UIFTETextField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridItemRenderer.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/framework/src/mx/utils/DescribeTypeCache.as</path>

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

--- frameworks/projects/spark/src/spark/components/DataGrid.as
+++ frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -3760,8 +3760,15 @@
      */
     protected function grid_MouseDownHandler(event:GridEvent):void
     {
+        const isCellSelection:Boolean = isCellSelectionMode();
+
         const rowIndex:int = event.rowIndex;
-        var columnIndex:int = isRowSelectionMode() ? -1 : event.columnIndex;
+        const columnIndex:int = isCellSelection ? event.columnIndex : -1;
+
+        // Clicked on empty place in grid.  Don't change selection or caret
+        // position.
+        if (rowIndex == -1 || isCellSelection && columnIndex == -1)
+            return;

         if (event.ctrlKey)
         {


Transferred from the Adobe Open Source Subversion Repository

Revision: 3973
Author:   rfrishbe@adobe.com
Date:     2008-10-30T20:30:13.007923Z

Log Message:
-----------
Adding IVisualContainer interface.  Group, FxContainer, and FxScroller implement this interface now.  Added owner and parent to IVisualItem.  GraphicElement and UIComponent implement this interface--work had to be done in GraphicElement to do this.  In doing so, elementHost is going to be renamed to parent.  For now, I added parent in GraphicElement and left elementHost in there; however, it is removed from IGraphicElement.  I’ve removed all references to elementHost in our code; however, I think mustella needs to be updated as do mustella tests, so I’m not going to remove elementHost until later.

Most of the changes here are name changes dealing with "elementHost" -> "parent".  If we decide that Gumbo components only support IVisualItems, we should clean up some of the code, but for now, I kept any assumptions that were in the original code (meaning we may be able to support DisplayObjects and old definitions of UIComponents/IUIComponents that aren’t IVisualItems).

I ran checkin tests, Group mustella tests, DataGroup mustella tests, FxContainer mustella tests, graphic tags tests, and all effects Mustella tests.

QE Notes: We will need to update mustella and mustella tests to use elementHost rather than parent.  We can also update mustella to use IVisualContainer rather than what it's doing now.  However, let's wait on these changes for now.  I'll send out an email when we're ready to make these changes and remove elementHost from GraphicElement.
Doc Notes: None
Bugs: -
Reviewer: Chet

Modified Paths:
--------------
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/IVisualContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/RemoveActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/RemoveAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxFadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxFade.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IUIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimate3DInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/AddActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/AddAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -18,6 +18,7 @@

 import mx.components.Group;
 import mx.core.IViewport;
+import mx.core.IVisualContainer;
 import mx.layout.LayoutBase;

 import mx.events.PropertyChangeEvent;
@@ -47,7 +48,8 @@
  *  in the layout when the viewport's content is larger than the viewport itself.</p>
  */

-public class FxScroller extends FxComponent implements IFocusManagerComponent
+public class FxScroller extends FxComponent
+       implements IFocusManagerComponent, IVisualContainer
 {
     include "../core/Version.as";

@@ -284,6 +286,42 @@
                 invalidateSkin();
     		    break;
         }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods: IVisualContainer
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @inheritDoc
+     */
+    public function get numItems():int
+    {
+        return viewport ? 1 : 0;
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function getItemAt(index:int):Object
+    {
+        if (viewport && index == 0)
+            return viewport;
+        else
+            throw new RangeError("Index " + index + " is out of range");
+    }
+
+    /**
+     *  @inheritDoc
+     */
+    public function getItemIndex(item:Object):int
+    {
+        if (item != null && item == viewport)
+            return 0;
+        else
+            throw ArgumentError(item + " is not found in this FxScroller");
     }

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 19966
Author:   jszeto@adobe.com
Date:     2011-01-26T23:11:49.608387Z

Log Message:
-----------
Fix for Filter angle bug

http://bugs.adobe.com/jira/browse/SDK-29055 - DropShadowFilter and BevelFilter only support angles in 0-360, while FXG allows any angle

Removed the metadata restricting the value between 0 and 360. The Player supports values outside of this range, though the documentation says otherwise. I left the Flex documentation the same.

QE notes: none
Doc notes: none
Bugs: SDK-29055
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: yes, fix for TH-12910

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/filters/BevelFilter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/filters/GradientFilter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/filters/DropShadowFilter.as</path>

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

--- frameworks/projects/spark/src/spark/filters/BevelFilter.as
+++ frameworks/projects/spark/src/spark/filters/BevelFilter.as
@@ -152,9 +152,7 @@
     //  angle
     //----------------------------------

-    private var _angle:Number = 45;
-
-    [Inspectable(minValue="0.0", maxValue="360.0")]
+    private var _angle:Number = 45;

     /**
      *   The angle of the bevel, in degrees. Valid values are from 0 to 360.


insert placeholder for null children

insert placeholder for null children

--- mustella/as3/src/mustella/CompareBitmap.as
+++ mustella/as3/src/mustella/CompareBitmap.as
@@ -1248,6 +1248,8 @@
     				childXML = getDisplayListProperties(child);
     				xml.appendChild(childXML);
                 }
+                else
+                    xml.appendChild(<NullChild />);
 			}
 		}
 		return xml;


Streaming error found.

Streaming error found.

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

--- src/as/com/threerings/parlor/data/TableConfig.as
+++ src/as/com/threerings/parlor/data/TableConfig.as
@@ -56,7 +56,7 @@
     {
         out.writeInt(desiredPlayerCount);
         out.writeInt(minimumPlayerCount);
-        out.writeField(teamMemberIndices);
+        out.writeObject(teamMemberIndices);
         out.writeBoolean(privateTable);
     }

@@ -65,7 +65,7 @@
     {
         desiredPlayerCount = ins.readInt();
         minimumPlayerCount = ins.readInt();
-        teamMemberIndices = (ins.readField("[[I") as TypedArray);
+        teamMemberIndices = (ins.readObject() as TypedArray);
         privateTable = ins.readBoolean();
     }
 }


add HP for robot types

add HP for robot types

--- src/battlecode/common/RobotType.as
+++ src/battlecode/common/RobotType.as
@@ -22,7 +22,7 @@
         public static const TANK:String = "TANK";
         public static const COMMANDER:String = "COMMANDER";
         public static const LAUNCHER:String = "LAUNCHER";
-        public static const MISSLE:String = "MISSLE";
+        public static const MISSILE:String = "MISSILE";

         public function RobotType() {
         }
@@ -48,7 +48,7 @@
                 TANK,
                 COMMANDER,
                 LAUNCHER,
-                MISSLE
+                MISSILE
             ];
         }

@@ -77,7 +77,7 @@
                 TANK,
                 COMMANDER,
                 LAUNCHER,
-                MISSLE
+                MISSILE
             ];
         }

@@ -89,9 +89,38 @@
         public static function maxEnergon(type:String):Number {
             switch (type) {
                 case HQ:
-                    return int.MAX_VALUE;
+                    return 2000;
+                case TOWER:
+                    return 1000;
+                case SUPPLYDEPOT:
+                case TECHNOLOGYINSTITUTE:
+                case BARRACKS:
+                case HELIPAD:
+                case TRAININGFIELD:
+                case TANKFACTORY:
+                case HANDWASHSTATION:
+                case AEROSPACELAB:
+                    return 100;
+                case BEAVER:
+                    return 30;
+                case MINER:
+                    return 50;
+                case COMPUTER:
+                    return 1;
                 case SOLDIER:
-                    return 100.0;
+                    return 40;
+                case BASHER:
+                    return 50;
+                case DRONE:
+                    return 70;
+                case TANK:
+                    return 160;
+                case COMMANDER:
+                    return 120;
+                case LAUNCHER:
+                    return 400;
+                case MISSILE:
+                    return 3;
             }
             throw new ArgumentError("Unknown type: " + type);
         }


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

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

 package mx.containers
 {


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

--- frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.as
+++ frameworks/projects/advancedgrids/src/mx/printing/PrintOLAPDataGrid.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@1253045 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 19174
Author:   aharui@adobe.com
Date:     2010-12-08T22:11:50.012232Z

Log Message:
-----------
Handle nested collections better

QE notes: none
Doc notes: none
Bugs: SDK-26315
Reviewer: Corey
Tests run: checkintests mustella full run
Is noteworthy for integration: no

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/collections/ListCollectionView.as

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

--- frameworks/projects/framework/src/mx/collections/ListCollectionView.as
+++ frameworks/projects/framework/src/mx/collections/ListCollectionView.as
@@ -1284,6 +1284,12 @@
                     addItemsToView(event.items, event.location);
                 break;

+                case CollectionEventKind.MOVE:
+                    var n:int = event.items.length;
+                    for (var i:int = 0; i < n; i++)
+                        moveItemInView(event.items[i]);
+                break;
+
                 case CollectionEventKind.RESET:
                     reset();
                 break;


Temporarily actualize CopierTest class.

Temporarily actualize CopierTest class.

--- dolly-framework/src/test/actionscript/dolly/CopierTest.as
+++ dolly-framework/src/test/actionscript/dolly/CopierTest.as
@@ -4,7 +4,7 @@
 import dolly.data.CopyableCloneableClass;
 import dolly.data.ClassLevelCopyableSubclass;
 import dolly.data.PropertyLevelCopyable;
-import dolly.data.PropertyLevelCopyableCloneable;
+import dolly.data.PropertyLevelCopyableCloneableClass;

 import org.as3commons.reflect.Field;
 import org.as3commons.reflect.Type;
@@ -28,7 +28,7 @@
 	private var propertyLevelCopyable:PropertyLevelCopyable;
 	private var propertyLevelCopyableType:Type;

-	private var propertyLevelCopyableCloneable:PropertyLevelCopyableCloneable;
+	private var propertyLevelCopyableCloneable:PropertyLevelCopyableCloneableClass;
 	private var propertyLevelCopyableCloneableType:Type;

 	[Before]
@@ -52,9 +52,7 @@

 		classLevelCopyableCloneable = new CopyableCloneableClass();
 		classLevelCopyableCloneable.property1 = "value 1";
-		classLevelCopyableCloneable.property2 = "value 2";
-		classLevelCopyableCloneable.property3 = "value 3";
-		classLevelCopyableCloneable.writableField = "value 4";
+		classLevelCopyableCloneable.writableField1 = "value 4";
 		classLevelCopyableCloneableType = Type.forInstance(classLevelCopyableCloneable);

 		propertyLevelCopyable = new PropertyLevelCopyable();
@@ -64,11 +62,9 @@
 		propertyLevelCopyable.writableField = "value 4";
 		propertyLevelCopyableType = Type.forInstance(propertyLevelCopyable);

-		propertyLevelCopyableCloneable = new PropertyLevelCopyableCloneable();
+		propertyLevelCopyableCloneable = new PropertyLevelCopyableCloneableClass();
 		propertyLevelCopyableCloneable.property1 = "value 1";
-		propertyLevelCopyableCloneable.property2 = "value 2";
-		propertyLevelCopyableCloneable.property3 = "value 3";
-		propertyLevelCopyableCloneable.writableField = "value 4";
+		propertyLevelCopyableCloneable.writableField1 = "value 4";
 		propertyLevelCopyableCloneableType = Type.forInstance(propertyLevelCopyableCloneable);
 	}

@@ -186,12 +182,8 @@
 		assertNotNull(copy);
 		assertNotNull(copy.property1);
 		assertEquals(copy.property1, classLevelCopyable.property1);
-		assertNotNull(copy.property2);
-		assertEquals(copy.property2, classLevelCopyable.property2);
-		assertNotNull(copy.property3);
-		assertEquals(copy.property3, classLevelCopyable.property3);
-		assertNotNull(copy.writableField);
-		assertEquals(copy.writableField, classLevelCopyable.writableField);
+		assertNotNull(copy.writableField1);
+		assertEquals(copy.writableField1, classLevelCopyable.writableField);
 	}

 	[Test]
@@ -209,15 +201,11 @@

 	[Test]
 	public function testCopyPropertyLevelCopyableCloneable():void {
-		const copy:PropertyLevelCopyableCloneable = Copier.copy(propertyLevelCopyableCloneable);
+		const copy:PropertyLevelCopyableCloneableClass = Copier.copy(propertyLevelCopyableCloneable);
 		assertNotNull(copy);
 		assertNull(copy.property1);
-		assertNotNull(copy.property2);
-		assertEquals(copy.property2, classLevelCopyable.property2);
-		assertNotNull(copy.property3);
-		assertEquals(copy.property3, classLevelCopyable.property3);
-		assertNotNull(copy.writableField);
-		assertEquals(copy.writableField, classLevelCopyable.writableField);
+		assertNotNull(copy.writableField1);
+		assertEquals(copy.writableField1, classLevelCopyable.writableField);
 	}
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 15858
Author:   jszeto@adobe.com
Date:     2010-04-30T22:26:36.717239Z

Log Message:
-----------
Form Feature Work

- Early Integration with FormItemLayout
- Added Form Validation Error support

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/layouts/FormLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/FormItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/StackedFormItemSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/components/Form.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormItemSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormHeadingSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/flex4_5/frameworks/projects/spark/src/spark/skins/spark/FormSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/layouts/FormLayout.as
+++ frameworks/projects/spark/src/spark/layouts/FormLayout.as
@@ -14,9 +14,16 @@
     import mx.containers.utilityClasses.ConstraintColumn;
     import mx.core.IVisualElement;
     import mx.core.UIComponent;
+    import mx.core.mx_internal;

+    import spark.components.FormHeading;
+    import spark.components.FormItem;
     import spark.components.IFormItem;
+    import spark.components.SkinnableContainer;
     import spark.components.supportClasses.GroupBase;
+    import spark.layouts.supportClasses.LayoutBase;
+
+    use namespace mx_internal;

     /**
      *  The default layout for Spark Form skins.
@@ -36,6 +43,8 @@
             super();
         }

+        private var colsMaxWidth:Vector.<Number>;
+
         //--------------------------------------------------------------------------
         //
         //  Overridden Methods
@@ -48,8 +57,10 @@
         override public function measure():void
         {

-            var colsMaxWidth:Vector.<Number>;
-
+
+            var layout:LayoutBase;
+            var fiLayout:FormItemLayout;
+
             // Apply constraint columns before measuring
             const layoutTarget:GroupBase = target;
             if (!layoutTarget)
@@ -62,7 +73,42 @@
             for(var i:int = 0; i < nElts; i++)
             {
                 elt = layoutTarget.getElementAt(i);
-                if (elt is IFormItem)
+
+
+
+                if (elt is GroupBase)
+                    layout = GroupBase(elt).layout;
+                else if (elt is FormItem)
+                    layout = FormItem(elt).skin["layout"];
+                else if (elt is FormHeading)
+                    layout = FormHeading(elt).skin["layout"];
+                else if (elt is SkinnableContainer)
+                    layout = SkinnableContainer(elt).layout;
+
+
+
+                if (layout is FormItemLayout)
+                {
+                    fiLayout = layout as FormItemLayout;
+                    var cols:Vector.<Number> = fiLayout.getMeasuredColumnWidths();
+
+                    if (colsMaxWidth == null)
+                    {
+                        colsMaxWidth = new Vector.<Number>();
+                        for (var j:int = 0; j < cols.length; j++)
+                            colsMaxWidth[j] = 0;
+                    }
+
+                    // TODO add logic to throw RTE if column lengths don't match
+
+                    for (var k:int = 0; k < cols.length; k++)
+                    {
+                        colsMaxWidth[k] = Math.max(colsMaxWidth[k], cols[k]);
+                    }
+                }
+
+
+                /*if (elt is IFormItem)
                 {
                     formItem = IFormItem(elt);
                     var cols:Vector.<Number> = formItem.measuredColumnWidths;
@@ -79,22 +125,61 @@
                         colsMaxWidth[k] = Math.max(colsMaxWidth[k], cols[k]);
                     }

+                }*/
+            }
+
+
+
+            super.measure();
+         }
+
+        override public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+        {
+            super.updateDisplayList(unscaledWidth, unscaledHeight);
+
+            var layout:LayoutBase;
+            var fiLayout:FormItemLayout;
+
+            // Apply constraint columns before measuring
+            const layoutTarget:GroupBase = target;
+            if (!layoutTarget)
+                return;
+
+            const nElts:int = layoutTarget.numElements;
+            var formItem:IFormItem
+            var elt:IVisualElement
+
+            if (colsMaxWidth != null)
+            {
+                var columnMaxWidths:Vector.<Number> = colsMaxWidth.slice(0);
+
+                for(var i:int = 0; i < nElts; i++)
+                {
+                    elt = layoutTarget.getElementAt(i);
+
+                    if (elt is GroupBase)
+                        layout = GroupBase(elt).layout;
+                    else if (elt is FormItem)
+                        layout = FormItem(elt).skin["layout"];
+                    else if (elt is FormHeading)
+                        layout = FormHeading(elt).skin["layout"];
+                    else if (elt is SkinnableContainer)
+                        layout = SkinnableContainer(elt).layout;
+
+                    if (layout is FormItemLayout)
+                    {
+                        fiLayout = layout as FormItemLayout;
+                        fiLayout.setLayoutColumnWidths(columnMaxWidths);
+                    }
+
+                    /*if (elt is IFormItem)
+                    {
+                    formItem = IFormItem(elt);
+                    formItem.layoutColumnWidths = columnMaxWidths;
+                    }*/
                 }
             }
-
-            var columnMaxWidths:Vector.<Number> = colsMaxWidth.slice(0);
-
-            for(i = 0; i < nElts; i++)
-            {
-                elt = layoutTarget.getElementAt(i);
-                if (elt is IFormItem)
-                {
-                    formItem = IFormItem(elt);
-                    formItem.layoutColumnWidths = columnMaxWidths;
-                }
-            }
-            super.measure();
-         }
+        }
     }
 }


Patch to support multiple subscription requests by "krotscheck"

git-svn-id: c197267f952b24206666de142881703007ca05d5@11600 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/org/igniterealtime/xiff/im/Roster.as
+++ src/org/igniterealtime/xiff/im/Roster.as
@@ -23,6 +23,8 @@
  */
 package org.igniterealtime.xiff.im
 {
+	import flash.utils.Dictionary;
+
 	import org.igniterealtime.xiff.collections.ArrayCollection;
 	import org.igniterealtime.xiff.core.*;
 	import org.igniterealtime.xiff.data.*;
@@ -120,14 +122,11 @@
 		 * Store presences of the people in users roster.
 		 */
 		private var _presenceMap:Object = {};
-
-		//FIXME: does not support multiple pending requests
-		private var pendingSubscriptionRequestJID:UnescapedJID;

 		/**
-		 * TODO: List of UnescapedJID which are pending for subscription.
-		 */
-		private var pendingSubscriptionRequests:Array = [];
+		 * List of UnescapedJID which are pending for subscription.
+		 */
+		private var pendingSubscriptionRequests : Dictionary = new Dictionary();

 		/**
 		 *
@@ -178,19 +177,18 @@
 			var callbackMethod:String = null;
 			var subscription:String = RosterExtension.SUBSCRIBE_TYPE_NONE;
 			var askType:String = RosterExtension.ASK_TYPE_NONE;
+			var iqID : String = XMPPStanza.generateID( "add_user_" );

 			if ( requestSubscription == true )
 			{
 				callbackObj = this;
 				callbackMethod = "addContact_result";
-				pendingSubscriptionRequestJID = id;
-				pendingSubscriptionRequests.push(id);
+				pendingSubscriptionRequests[ iqID.toString() ] = id;
 				subscription = RosterExtension.SUBSCRIBE_TYPE_TO;
 				askType = RosterExtension.ASK_TYPE_SUBSCRIBE
 			}

-			var tempIQ:IQ = new IQ( null, IQ.TYPE_SET, XMPPStanza.generateID( "add_user_" ),
-									callbackMethod, callbackObj );
+			var tempIQ:IQ = new IQ( null, IQ.TYPE_SET, iqID, callbackMethod, callbackObj );
 			var ext:RosterExtension = new RosterExtension( tempIQ.getNode() );
 			ext.addItem( id.escaped, null, displayName, groupName ? [ groupName ] :
 						 null );
@@ -209,9 +207,15 @@
 		public function addContact_result( resultIQ:IQ ):void
 		{
 			// Contact was added, request subscription
-			// TODO: Should check the JID of the result
-			requestSubscription( pendingSubscriptionRequestJID );
-			pendingSubscriptionRequestJID = null;
+
+			var iqID : String = resultIQ.id.toString();
+
+			if ( pendingSubscriptionRequests.hasOwnProperty( iqID ) )
+			{
+				var subscriptionId : UnescapedJID = pendingSubscriptionRequests[ iqID ] as UnescapedJID;
+				requestSubscription( subscriptionId );
+				delete( pendingSubscriptionRequests[ iqID ] );
+			}
 		}

 		/**


formatting fix

formatting fix

--- runtime/src/main/as/flump/display/Movie.as
+++ runtime/src/main/as/flump/display/Movie.as
@@ -171,8 +171,7 @@
     }

     /** notify this Movie that it has been added to the Layer after initialization */
-    public function addedToLayer() :void
-    {
+    public function addedToLayer() :void {
         goTo(0);
         _skipAdvanceTime = true;
     }


Movie.play -> Movie.playOnce

Movie.play -> Movie.playOnce

It's not necessarily clear that movies don't loop by default.

Also updated some docs for clarity

--- runtime/src/main/as/flump/display/Movie.as
+++ runtime/src/main/as/flump/display/Movie.as
@@ -73,12 +73,15 @@
     /** @return true if the movie is currently playing. */
     public function get isPlaying () :Boolean { return _playing; }

-    /** Starts playing if not already doing so, and continues to do so indefinitely.  */
+    /** Plays the movie from its current frame. The movie will loop forever.  */
     public function loop () :Movie {
         _playing = true;
         _stopFrame = NO_FRAME;
         return this;
     }
+
+    /** Plays the movie from its current frame, stopping when it reaches its last frame. */
+    public function playOnce () :Movie { return playTo(LAST_FRAME); }

     /**
      * Moves to the given String label or int frame. Doesn't alter playing status or stop frame.
@@ -93,21 +96,15 @@
      * @throws Error if position isn't an int or String, or if it is a String and that String isn't
      * a label on this movie
      */
-    public function goto (position :Object) :Movie {
+    public function goTo (position :Object) :Movie {
         const frame :int = extractFrame(position);
         updateFrame(frame, /*fromSkip=*/true, /*overDuration=*/false);
         return this;
     }

-    /**
-     * Starts playing if not already doing so, and continues to do so to the last frame in the
-     * movie.
-     */
-    public function play () :Movie { return playTo(LAST_FRAME); }
-
    /**
-    * Starts playing if not already doing so, and continues to do so to the given stop label or
-    * frame.
+    * Plays the movie from its current frame. The movie will stop when it reaches the given label
+    * or frame.
     *
     * @param position to int frame or String label to stop at
     *


example

example

--- src/com/kemsky/$.as
+++ src/com/kemsky/$.as
@@ -6,6 +6,18 @@
      * Global function that creates Stream objects
      * @param rest objects used as source for Stream
      * @return created Stream object
+     * @example
+     * <pre>
+     *     var s:Stream = $(1, 2, 3);
+     *     var s:Stream = $([1, 2, 3]);
+     *     var s:Stream = $(new ArrayCollection([1, 2, 3]));
+     *     var s:Stream = $(new ArrayList([1, 2, 3]));
+     *     var s:Stream = $(new Stream([1, 2, 3]));
+     *     var s:Stream = $([1], [2], [3]);//flattens arguments
+     *
+     *     //All expressions are equivalent to:
+     *     var s:Stream = new Stream([1, 2, 3])
+     * </pre>
      */
     public function $(...rest):Stream
     {


Dispatch events indicating we're in an unready state when
we're unloaded.

git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@787 ed5b42cb-e716-0410-a449-f6a68f950b19

--- src/as/com/threerings/flash/media/Mp3AudioPlayer.as
+++ src/as/com/threerings/flash/media/Mp3AudioPlayer.as
@@ -156,10 +156,12 @@
                 // ignore
             }
         }
-        _state = MediaPlayerCodes.STATE_UNREADY;
-        checkNeedTimer();
+        _sound = null;
+        _isComplete = false;
         _lastPosition = NaN;
         _cliData = null;
+        updateState(MediaPlayerCodes.STATE_UNREADY);
+        handlePositionCheck();
     }

     override public function addEventListener (


Stop waiting for ENTER_FRAME to process incoming messages.
This was residual from the initial conversion from Java, but I don't think
it's very necessary on the flash side, and Zell is working to decouple
the presents layer from flash-player specific classes and events like
ENTER_FRAME.
So now we just process everything immediately.
I did some tests, it seems that the flash player dispatches ENTER_FRAME,
then it dispatches any network events, then the frame is rendered.
So our old way of doing things was pointlessly

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

--- src/as/com/threerings/presents/client/ClientDObjectMgr.as
+++ src/as/com/threerings/presents/client/ClientDObjectMgr.as
@@ -78,9 +78,6 @@
         _flushInterval = new Timer(FLUSH_INTERVAL);
         _flushInterval.addEventListener(TimerEvent.TIMER, flushObjects);
         _flushInterval.start();
-
-        client.getStage().addEventListener(
-            Event.ENTER_FRAME, processNextAction);
     }

     // documentation inherited from interface DObjectManager
@@ -96,21 +93,14 @@
         if (oid <= 0) {
             target.requestFailed(oid, new ObjectAccessError("Invalid oid " + oid + "."));
         } else {
-            queueAction(oid, target, true);
+            doSubscribe(oid, target);
         }
     }

     // inherit documentation from the interface DObjectManager
     public function unsubscribeFromObject (oid :int, target :Subscriber) :void
     {
-        queueAction(oid, target, false);
-    }
-
-    protected function queueAction (
-            oid :int, target :Subscriber, subscribe :Boolean) :void
-    {
-        // queue up an action
-        _actions.push(new ObjectAction(oid, target, subscribe));
+        doUnsubscribe(oid, target);
     }

     // inherit documentation from the interface
@@ -157,60 +147,29 @@
      */
     public function processMessage (msg :DownstreamMessage) :void
     {
-        // append it to our queue
-        _actions.push(msg);
-    }
-
-    /**
-     * Invoked on the main client thread to process any newly arrived
-     * messages that we have waiting in our queue.
-     */
-    public function processNextAction (event :Event) :void
-    {
-        while (_actions.length > 0) {
-            doNextAction();
-        }
-    }
-
-    protected function doNextAction () :void
-    {
-        // process the next event on our queue
-        if (_actions.length == 0) {
-            return;
-        }
-
-        var obj :Object = _actions.shift();
         // do the proper thing depending on the object
-        if (obj is EventNotification) {
-            var evt :DEvent = (obj as EventNotification).getEvent();
+        if (msg is EventNotification) {
+            var evt :DEvent = (msg as EventNotification).getEvent();
 //             log.info("Dispatch event: " + evt);
             dispatchEvent(evt);

-        } else if (obj is BootstrapNotification) {
-            _client.gotBootstrap((obj as BootstrapNotification).getData(), this);
-
-        } else if (obj is ObjectResponse) {
-            registerObjectAndNotify((obj as ObjectResponse).getObject());
-
-        } else if (obj is UnsubscribeResponse) {
-            var oid :int = (obj as UnsubscribeResponse).getOid();
+        } else if (msg is BootstrapNotification) {
+            _client.gotBootstrap((msg as BootstrapNotification).getData(), this);
+
+        } else if (msg is ObjectResponse) {
+            registerObjectAndNotify((msg as ObjectResponse).getObject());
+
+        } else if (msg is UnsubscribeResponse) {
+            var oid :int = (msg as UnsubscribeResponse).getOid();
             if (_dead.remove(oid) == null) {
                 log.warning("Received unsub ACK from unknown object [oid=" + oid + "].");
             }

-        } else if (obj is FailureResponse) {
-            notifyFailure((obj as FailureResponse).getOid(), (obj as FailureResponse).getMessage());
-
-        } else if (obj is PongResponse) {
-            _client.gotPong(obj as PongResponse);
-
-        } else if (obj is ObjectAction) {
-            var act :ObjectAction = (obj as ObjectAction);
-            if (act.subscribe) {
-                doSubscribe(act.oid, act.target);
-            } else {
-                doUnsubscribe(act.oid, act.target);
-            }
+        } else if (msg is FailureResponse) {
+            notifyFailure((msg as FailureResponse).getOid(), (msg as FailureResponse).getMessage());
+
+        } else if (msg is PongResponse) {
+            _client.gotPong(msg as PongResponse);
         }
     }

@@ -444,30 +403,6 @@
 import com.threerings.presents.dobj.DObject;
 import com.threerings.presents.dobj.Subscriber;

-/**
- * The object action is used to queue up a subscribe or unsubscribe
- * request.
- */
-class ObjectAction
-{
-    public var oid :int;
-    public var target :Subscriber;
-    public var subscribe :Boolean;
-
-    public function ObjectAction (
-            oid :int, target :Subscriber, subscribe :Boolean)
-    {
-        this.oid = oid;
-        this.target = target;
-        this.subscribe = subscribe;
-    }
-
-    public function toString () :String
-    {
-        return "oid=" + oid + ", target=" + target + ", subscribe=" + subscribe;
-    }
-}
-
 class PendingRequest
 {
     public var oid :int;


Allow zero-arg construction (for unserialization).

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

--- src/as/com/threerings/presents/dobj/ObjectRemovedEvent.as
+++ src/as/com/threerings/presents/dobj/ObjectRemovedEvent.as
@@ -48,7 +48,8 @@
      * remove the specified oid.
      * @param oid the oid to remove from the oid list attribute.
      */
-    public function ObjectRemovedEvent (targetOid :int, name :String, oid :int)
+    public function ObjectRemovedEvent (
+            targetOid :int = 0, name :String = null, oid :int = 0)
     {
         super(targetOid, name);
         _oid = oid;


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

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

 package mx.core
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 13296
Author:   jszeto@adobe.com
Date:     2010-01-06T01:31:52.563455Z

Log Message:
-----------
Change event split into change and valueCommit for list based components

http://bugs.adobe.com/jira/browse/SDK-24803 - When selectedItem/selectedIndex is set programatically, list should dispatch a valueCommit event, not a change event

Refactored selection properties into helper functions which parameterize dispatching changing/change events. Changed all internal setting of the selection properties to use these helper functions.

Updated binding metadata for selection properties.

QE notes: Update tests
Doc notes: Docs should mention valueCommit versus change/changing
Bugs: SDK-24803
Reviewer: Ryan
Tests run: checkintests, ButtonBar, List, ComboBox, DropDownList
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/ComboBox.as
+++ frameworks/projects/spark/src/spark/components/ComboBox.as
@@ -576,13 +576,13 @@
         {
             var itemFromInput:* = getCustomSelectedItem();
             if (itemFromInput != undefined)
-                selectedItem = itemFromInput;
+                setSelectedItem(itemFromInput, true);
             else
-                selectedIndex = NO_SELECTION;
+                setSelectedIndex(NO_SELECTION, true);
         }
         else
         {
-            selectedIndex = actualProposedSelectedIndex;
+            setSelectedIndex(actualProposedSelectedIndex, true);
         }

         textInput.selectRange(-1, -1);


Transferred from the Adobe Open Source Subversion Repository

Revision: 4920
Author:   gosmith@adobe.com
Date:     2009-02-10T21:58:56.126598Z

Log Message:
-----------
ASDoc changes: Don't doc various overrides in TextGraphicElement, TextBox, and TextGraphic. Do doc baselinePosition in GraphicElement.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Jason

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/components/RichText.as
+++ frameworks/projects/spark/src/spark/components/RichText.as
@@ -258,7 +258,7 @@
     [Inspectable(category="General")]

     /**
-     *  The y-coordinate of the baseline of the first line of text.
+     *  @private
      */
     override public function get baselinePosition():Number
     {
@@ -356,7 +356,7 @@
     //--------------------------------------------------------------------------

     /**
-     *  @inheritDoc
+     *  @private
      */
     override protected function measure():void
     {
@@ -378,7 +378,7 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      */
     override protected function updateDisplayList(unscaledWidth:Number,
                                                   unscaledHeight:Number):void
@@ -414,7 +414,7 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      */
     override public function stylesInitialized():void
     {
@@ -424,7 +424,7 @@
     }

     /**
-     *  @inheritDoc
+     *  @private
      */
     override public function styleChanged(styleProp:String):void
     {


Transferred from the Adobe Open Source Subversion Repository

Revision: 22655
Author:   jasonsj@adobe.com
Date:     2011-09-21T00:43:54.462847Z

Log Message:
-----------
Remove extraneous scroll snapping in ensureElementIsVisible().

QE notes:
Doc notes:
Bugs:
SDK-31580 Scroller.ensureElementIsVisible() no longer scrolls keyboard focused elements into view.
Reviewer: eday
Tests run: checkintests, mustella
Is noteworthy for integration: no

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

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

--- frameworks/projects/spark/src/spark/components/Scroller.as
+++ frameworks/projects/spark/src/spark/components/Scroller.as
@@ -1408,9 +1408,9 @@
             // clipped/obscured by the soft keyboard
             var topLevelApp:Application = FlexGlobals.topLevelApplication as Application;
             var eltBounds:Rectangle;
-            var adjustForSoftKeyboard:Boolean = topLevelApp &&
+            var adjustForSoftKeyboard:Boolean = topLevelApp &&
                                                 (!topLevelApp.resizeForSoftKeyboard) &&
-                                                (stage.softKeyboardRect.height > 0);
+                                                (stage && stage.softKeyboardRect.height > 0);

             if (adjustForSoftKeyboard)
             {
@@ -1478,10 +1478,6 @@
                         else if (viewport.horizontalScrollPosition + width < eltBounds.right + focusThickness)
                             viewport.horizontalScrollPosition = eltBounds.right + focusThickness - width;
                     }
-
-                    // Do not snap vertically when increasing the
-                    // verticalScrollPosition for the soft keyboard
-                    snapContentScrollPosition(true, !adjustForSoftKeyboard);
                 }

                 if (doValidateNow && viewport is UIComponent)
@@ -3212,18 +3208,18 @@
     private function snapContentScrollPosition(snapHorizontal:Boolean = true, snapVertical:Boolean = true):void
     {
         if (snapHorizontal)
-    {
-        viewport.horizontalScrollPosition = getSnappedPosition(
-            Math.min(Math.max(minHorizontalScrollPosition, viewport.horizontalScrollPosition), maxHorizontalScrollPosition),
-            HORIZONTAL_SCROLL_POSITION);
+        {
+            viewport.horizontalScrollPosition = getSnappedPosition(
+                Math.min(Math.max(minHorizontalScrollPosition, viewport.horizontalScrollPosition), maxHorizontalScrollPosition),
+                HORIZONTAL_SCROLL_POSITION);
         }

         if (snapVertical)
         {
-        viewport.verticalScrollPosition = getSnappedPosition(
-            Math.min(Math.max(minVerticalScrollPosition, viewport.verticalScrollPosition), maxVerticalScrollPosition),
-            VERTICAL_SCROLL_POSITION);
-    }
+            viewport.verticalScrollPosition = getSnappedPosition(
+                Math.min(Math.max(minVerticalScrollPosition, viewport.verticalScrollPosition), maxVerticalScrollPosition),
+                VERTICAL_SCROLL_POSITION);
+        }
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/mx/src/mx/events/TreeEvent.as
+++ frameworks/projects/mx/src/mx/events/TreeEvent.as
@@ -21,6 +21,11 @@
  *  in tree, such as when a tree branch opens or closes.
  *
  *  @see mx.controls.Tree
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class TreeEvent extends Event
 {
@@ -63,6 +68,11 @@
      *

      *
      *  @eventType itemClose
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ITEM_CLOSE:String = "itemClose";

@@ -97,6 +107,11 @@
      *

      *
      *  @eventType itemOpen
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ITEM_OPEN:String = "itemOpen";

@@ -138,6 +153,11 @@
      *

      *
      *  @eventType itemOpening
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public static const ITEM_OPENING:String = "itemOpening";

@@ -165,6 +185,11 @@
      *
      *  @param triggerEvent If the node opened or closed in response to a
      *  user action, indicates the type of input action.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function TreeEvent(type:String, bubbles:Boolean = false,
                               cancelable:Boolean = false,
@@ -192,6 +217,11 @@
     /**
      *  Whether to animate an opening or closing operation; used for
      *  ITEM_OPENING type events only.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var animate:Boolean;

@@ -203,6 +233,11 @@
      *  Whether to dispatch an event (ITEM_OPEN or
      *  ITEM_CLOSE) after the open or close animation
      *  is complete. Used for ITEM_OPENING type events only.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var dispatchEvent:Boolean;

@@ -215,6 +250,11 @@
      *  If you populate the Tree from XML data, access
      *  the properties for the node as
      *  event.item.@attribute_name.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var item:Object;

@@ -224,6 +264,11 @@

     /**
      *  The ListItemRenderer for the node that closed or opened.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var itemRenderer:IListItemRenderer;

@@ -235,6 +280,11 @@
      *  Used for an ITEM_OPENING type events only.
      *  Indicates whether the item
      *  is opening true, or closing false.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var opening:Boolean;

@@ -245,6 +295,11 @@
     /**
      *  The low level MouseEvent or KeyboardEvent that triggered this
      *  event or null if this event was triggered programatically.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var triggerEvent:Event;


needs to be IEventDispatcher to support binding

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/Application.as
@@ -28,6 +28,7 @@
     import flash.utils.getQualifiedClassName;

     import org.apache.flex.events.Event;
+    import org.apache.flex.events.IEventDispatcher;
     import org.apache.flex.utils.MXMLDataInterpreter;

     //--------------------------------------
@@ -82,7 +83,7 @@
      *  @playerversion AIR 2.6
      *  @productversion FlexJS 0.0
      */
-    public class Application extends Sprite implements IStrand, IFlexInfo, IParent
+    public class Application extends Sprite implements IStrand, IFlexInfo, IParent, IEventDispatcher
     {
         /**
          *  Constructor.


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

--- frameworks/projects/automation/src/mx/automation/events/EventDetails.as
+++ frameworks/projects/automation/src/mx/automation/events/EventDetails.as
@@ -1,14 +1,4 @@

-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.events
 {


Ugly duplicate code, go away :(

Ugly duplicate code, go away :(

--- src/org/jivesoftware/xiff/im/Roster.as
+++ src/org/jivesoftware/xiff/im/Roster.as
@@ -300,18 +300,15 @@
 		private function updateContact( id:String, newName:String, newGroups:Array ):void
 		{
 			// Make sure we already subscribe
-			var l:uint = length;
-			for( var i:uint = 0; i < l; i++ ) {
-				if( id.toLowerCase() == getItemAt( i ).jid.toLowerCase() ) {
-					var tempIQ:IQ = new IQ( null, IQ.SET_TYPE, XMPPStanza.generateID("update_contact_") );
-					var ext:RosterExtension = new RosterExtension( tempIQ.getNode() );
-					var rosterItem:RosterItemVO = getContactInformation( id );
-
-					ext.addItem( id, rosterItem.subscribeType, newName, newGroups );
-					tempIQ.addExtension( ext );
-					myConnection.send( tempIQ );
-					break;
-				}
+			var contact:RosterItemVO = getContactInformation(id);
+			if(contact)
+			{
+				var tempIQ:IQ = new IQ( null, IQ.SET_TYPE, XMPPStanza.generateID("update_contact_") );
+				var ext:RosterExtension = new RosterExtension( tempIQ.getNode() );
+
+				ext.addItem( id, contact.subscribeType, newName, newGroups );
+				tempIQ.addExtension( ext );
+				myConnection.send( tempIQ );
 			}
 		}


Fix overlay workaround pixel dimension.

Fix overlay workaround pixel dimension.

--- lib/src/com/amanitadesign/steam/FRESteamWorks.as
+++ lib/src/com/amanitadesign/steam/FRESteamWorks.as
@@ -64,7 +64,7 @@
 			if (!_redrawContainer || _redrawPixel) return;
 			_redrawPixel = new Sprite();
 			_redrawPixel.width = 1;
-			_redrawPixel.width = 1;
+			_redrawPixel.height = 1;
 			// we need to draw something in the pixel for it to actually trigger
 			// a re-render
 			_redrawPixel.graphics.beginFill(_color);


- bugfix: Fixed ColorTweenPropertyVO

- bugfix: Fixed ColorTweenPropertyVO

git-svn-id: e38e7cdd6ace00d8230583a2d3b43e9a55f5c011@651 bc4816be-ef27-423a-9c4d-fc420be121a2

--- src/reprise/tweens/ColorTweenPropertyVO.as
+++ src/reprise/tweens/ColorTweenPropertyVO.as
@@ -27,26 +27,27 @@
 			super(scope, property, startValue, targetValue, tweenFunction,
 				roundResults, propertyIsMethod, extraParams);
 		}
-
+

 		/***************************************************************************
 		*							private methods								   *
 		***************************************************************************/
-		private function tweenedValue(duration:Number, time:Number) : Number
+		public override function tweenFunction(
+			time:Number, start:Number, change:Number, duration:Number, ...rest) : Number
 		{
 			var args : Array = [time, 0, 1, duration].concat(extraParams);
-			var percent : Number = tweenFunction.apply(null, args);
+			var percent : Number = super.tweenFunction.apply(null, args);

 			var startColorRGB : Object = ColorUtil.number2rgbObject(startValue);
 			var endColorRGB : Object = ColorUtil.number2rgbObject(targetValue);
 			var currentColorRGB : Object = {};

-			currentColorRGB.r = startColorRGB.r +
-				(endColorRGB.r - startColorRGB.r) * percent;
-			currentColorRGB.g = startColorRGB.g +
-				(endColorRGB.g - startColorRGB.g) * percent;
-			currentColorRGB.b = startColorRGB.b +
-				(endColorRGB.b - startColorRGB.b) * percent;
+			currentColorRGB.r = Math.round(startColorRGB.r +
+				(endColorRGB.r - startColorRGB.r) * percent);
+			currentColorRGB.g = Math.round(startColorRGB.g +
+				(endColorRGB.g - startColorRGB.g) * percent);
+			currentColorRGB.b = Math.round(startColorRGB.b +
+				(endColorRGB.b - startColorRGB.b) * percent);

 			return ColorUtil.rgbObject2Number(currentColorRGB);
 		}


FragmentMetrics.as : no need to init value

--- src/org/mangui/hls/model/FragmentMetrics.as
+++ src/org/mangui/hls/model/FragmentMetrics.as
@@ -12,7 +12,7 @@
         public var parsing_begin_time : Number;
         public var parsing_end_time : Number;
         /** fragment size **/
-        public var size : int = 0;
+        public var size : int;

         /** Fragment metrics **/
         public function FragmentMetrics() {


Add method in date utils.

Add method in date utils.

--- actionscript-cafe/src/main/flex/org/servebox/cafe/core/util/DateUtils.as
+++ actionscript-cafe/src/main/flex/org/servebox/cafe/core/util/DateUtils.as
@@ -225,5 +225,17 @@
 			return range;
 		}

+		public static function getDayNumber( date : Date ) : int
+		{
+			if ( date.day == 0 )
+			{
+				return 7;
+			}
+			else
+			{
+				return date.day;
+			}
+		}
+
 	}
 }


additional trace statements

additional trace statements

--- flexEditor/src/org/arisgames/editor/services/AppServices.as
+++ flexEditor/src/org/arisgames/editor/services/AppServices.as
@@ -334,12 +334,15 @@
         if (isNaN(req.requirementId))
         {
             trace("This Requirement doesn't have an Id, so call Create Requirement function On Remote Server..");
-            l = AppDAO.getInstance().getRequirementsServer().createRequirement(gid, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
+			trace("Requirement ID:" + req.requirementId + " Requirement:" + req.requirement + " Detail1:" + req.requirementDetail1 + " Detail2:" + req.requirementDetail2 );
+			l = AppDAO.getInstance().getRequirementsServer().createRequirement(gid, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
         }
         else
         {
             trace("This Requirement has an Id (" + req.requirementId + "), so call Update Requirement function on Remote Server.");
-            l = AppDAO.getInstance().getRequirementsServer().updateRequirement(gid, req.requirementId, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
+			trace("Requirement ID:" + req.requirementId + " Requirement:" + req.requirement + " Detail1:" + req.requirementDetail1 + " Detail2:" + req.requirementDetail2 );
+
+			l = AppDAO.getInstance().getRequirementsServer().updateRequirement(gid, req.requirementId, req.contentType, req.contentId, req.requirement, req.requirementDetail1, req.requirementDetail2, req.requirementDetail3, AppConstants.REQUIREMENT_BOOLEAN_AND_DATABASE);
         }
         l.addResponder(resp);
     }


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

--- frameworks/projects/advancedgrids/src/mx/olap/OLAPSchema.as
+++ frameworks/projects/advancedgrids/src/mx/olap/OLAPSchema.as
@@ -0,0 +1,160 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.olap
+{
+
+import flash.utils.Dictionary;
+import mx.collections.ArrayCollection;
+import mx.collections.IList;
+
+//--------------------------------------
+//  metadata
+//--------------------------------------
+
+[DefaultProperty("cubeArray")]
+
+/**
+ *  The OLAPSchema class represents an OLAP cube or cubes.
+ *
+ *  @mxml
+ *

+ *  The <mx:OLAPSchema> tag inherits all of the tag attributes
+ *  of its superclass, and adds the following tag attributes:
+ *

+ *

+ *  <mx:OLAPSchema
+ *    Properties
+ *       cubeArray=""
+ *  />
+ *
+ *  @see mx.olap.IOLAPSchema
+ *  @see mx.olap.OLAPCube
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public class OLAPSchema implements IOLAPSchema
+{
+    include "../core/Version.as";
+
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    // cubes
+    //----------------------------------
+
+    private var _cubes:Dictionary = new Dictionary;
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function get cubes():IList
+    {
+        var temp:Array = [];
+        for each (var i:Object in _cubes)
+            temp.push(i);
+        return new ArrayCollection(temp);
+    }
+
+    /**
+     *  @private
+     */
+    public function set cubes(value:IList):void
+    {
+        var n:int = value.length;
+        for (var i:int = 0; i < n; ++i)
+        {
+            var cube:IOLAPCube = value.getItemAt(i) as IOLAPCube;
+            _cubes[cube.name] = cube;
+        }
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     */
+    public function addCube(cube:IOLAPCube):Boolean
+    {
+        if (_cubes[cube.name])
+            return false;
+
+        _cubes[cube.name] = cube;
+
+        return true;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function createCube(name:String):IOLAPCube
+    {
+        var c:IOLAPCube;
+        if (!_cubes[name])
+        {
+            c = new OLAPCube(name);
+            _cubes[name] = c;
+        }
+
+        return _cubes[name];
+    }
+
+    /**
+     *  Lets you set the cubes of a schema by passing an Array of IOLAPCube instances.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function set cubeArray(value:Array):void
+    {
+        var tempCubes:ArrayCollection = new ArrayCollection(value);
+        cubes = tempCubes;
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public function getCube(name:String):IOLAPCube
+    {
+        return _cubes[name];
+    }
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5098
Author:   gauravj@adobe.com
Date:     2009-02-27T02:21:27.489350Z

Log Message:
-----------
Update action script files with asdoc version tags.

QE Notes: None.
Doc Notes: Please review and update as necessary.
tests: checkintests

Modified Paths:
--------------
151 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/AnimateColor.as
+++ frameworks/projects/spark/src/spark/effects/AnimateColor.as
@@ -20,6 +20,11 @@
  * between given from/to color values on a per-channel basis.
  *
  *  @includeExample examples/FxAnimateColorEffectExample.mxml
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
  */
 public class FxAnimateColor extends FxAnimate
 {
@@ -40,11 +45,21 @@

     /**
      * The starting color
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var colorFrom:uint = StyleManager.NOT_A_COLOR;

     /**
      * The ending color
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var colorTo:uint = StyleManager.NOT_A_COLOR;

@@ -53,11 +68,21 @@
      * by this animation.
      *
      * @default "color"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public var colorPropertyName:String = "color";

     /**
      * Constructs an FxAnimateColor effect with an optional target object
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function FxAnimateColor(target:Object=null)
     {
@@ -83,6 +108,11 @@

     /**
      * @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     override protected function initInstance(instance:IEffectInstance):void
     {