added missing property activeSurvey

added missing property activeSurvey

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/model/SessionStateBase.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/model/SessionStateBase.as
@@ -1,55 +1,69 @@
-/**
- * Generated by Gas3 v2.2.0 (Granite Data Services).
- *
- * WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
- * THE GENERATOR. INSTEAD, EDIT THE INHERITED CLASS (SessionState.as).
- */
-
-package org.openforis.collect.model {
-
-    import flash.utils.IDataInput;
-    import flash.utils.IDataOutput;
-    import flash.utils.IExternalizable;
-    import org.openforis.idm.model.Record;
-
-    [Bindable]
-    public class SessionStateBase implements IExternalizable {
-
-        private var _activeRecord:Record;
-        private var _sessionId:String;
-        private var _user:User;
-
-        public function set activeRecord(value:Record):void {
-            _activeRecord = value;
-        }
-        public function get activeRecord():Record {
-            return _activeRecord;
-        }
-
-        public function set sessionId(value:String):void {
-            _sessionId = value;
-        }
-        public function get sessionId():String {
-            return _sessionId;
-        }
-
-        public function set user(value:User):void {
-            _user = value;
-        }
-        public function get user():User {
-            return _user;
-        }
-
-        public function readExternal(input:IDataInput):void {
-            _activeRecord = input.readObject() as Record;
-            _sessionId = input.readObject() as String;
-            _user = input.readObject() as User;
-        }
-
-        public function writeExternal(output:IDataOutput):void {
-            output.writeObject(_activeRecord);
-            output.writeObject(_sessionId);
-            output.writeObject(_user);
-        }
-    }
+/**
+ * Generated by Gas3 v2.2.0 (Granite Data Services).
+ *
+ * WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
+ * THE GENERATOR. INSTEAD, EDIT THE INHERITED CLASS (SessionState.as).
+ */
+
+package org.openforis.collect.model {
+
+    import flash.utils.IDataInput;
+    import flash.utils.IDataOutput;
+    import flash.utils.IExternalizable;
+
+    import org.openforis.idm.metamodel.Survey;
+    import org.openforis.idm.model.Record;
+
+    [Bindable]
+    public class SessionStateBase implements IExternalizable {
+
+        private var _activeRecord:CollectRecord;
+        private var _sessionId:String;
+        private var _user:User;
+		private var _activeSurvey:Survey;
+
+        public function set activeRecord(value:CollectRecord):void {
+            _activeRecord = value;
+        }
+        public function get activeRecord():CollectRecord {
+            return _activeRecord;
+        }
+
+        public function set sessionId(value:String):void {
+            _sessionId = value;
+        }
+        public function get sessionId():String {
+            return _sessionId;
+        }
+
+        public function set user(value:User):void {
+            _user = value;
+        }
+        public function get user():User {
+            return _user;
+        }
+
+		public function get activeSurvey():Survey {
+			return _activeSurvey;
+		}
+
+		public function set activeSurvey(value:Survey):void {
+			_activeSurvey = value;
+		}
+
+        public function readExternal(input:IDataInput):void {
+            _activeRecord = input.readObject() as CollectRecord;
+            _sessionId = input.readObject() as String;
+            _user = input.readObject() as User;
+			_activeSurvey = input.readObject() as Survey;
+        }
+
+        public function writeExternal(output:IDataOutput):void {
+            output.writeObject(_activeRecord);
+            output.writeObject(_sessionId);
+            output.writeObject(_user);
+			output.writeObject(_activeSurvey);
+        }
+
+    }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 5288
Author:   rfrishbe@adobe.com
Date:     2009-03-13T01:44:49.712909Z

Log Message:
-----------
A bunch of small bug fixes.

- DataGroup bug around a visualelement being moved to another datagroup (SDK-19680)

- Added removeAllElements method to IVisualElementContainer (SDK-19424)

- Fix up ASDoc/RTE messages for Group/DataGroup/FxContainer when calling addChild(), removeChild(), etc... (SDK-19582)

- Added an mx_internal method, specifically for automation, so mouse event listeners can get added to a Container without adding a mouseshield and changing the behavior of the component (SDK-18864)

- When both skinClass and skinFactory are set, the skin doesn't get reloaded properly when skinFactory changes when it's a non-ClassFactory (SDK-19450)

- autoLayout and typicalItem properties weren't getting proxied properly on FxDataContainer (SDK-19799)

- Tabbing through two focusable items, when one of those items is partially "offscreen", starts the tab loop with the second item instead of the first (SDK-17283)

- Add Icon file for FxVideoDisplay and VideoElement.

- Also fixed up some ASDoc versioning info for stuff that was added in the Flex 4 timeframe but was actually added to the framework project and not the flex4 project.

- Also renaming Group.setMxmlContent -> Group.setMXMLContent to follow proper naming conventions.

QE Notes: I'll update the bug files and let you know which ones we need to add tests for
Doc Notes: -
Bugs: SDK-19680, SDK-19424, SDK-19582, SDK-18864, SDK-19450, SDK-19799, SDK-17283
Reviewer: Jason reviewed most of the changes, Alex reviewed the FocusManager change
tests: checkintests, mustella Group, DataGroup, FxComponent

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/bundles/en_US/components.properties</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/framework/src/mx/core/IVisualElement.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/framework/src/mx/core/IVisualElementContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVideoDisplay.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxVideoDisplay.png</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/VideoElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/VideoElement.png</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/flex4/src/mx/components/FxContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>

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

--- frameworks/projects/mx/src/mx/core/Container.as
+++ frameworks/projects/mx/src/mx/core/Container.as
@@ -2300,6 +2300,29 @@
             }
         }
     }
+
+    /**
+     *  @private
+     *  We're doing special behavior on addEventListener to make sure that
+     *  we successfully capture mouse events, even when there's no background.
+     *  However, this means adding an event listener changes the behavior
+     *  a little, and this can be troublesome for overlapping components
+     *  that now don't get any mouse events.  This is acceptable normally;
+     *  however, automation adds certain events to the Container, and
+     *  it'd be better if automation support didn't modify the behavior of
+     *  the component.  For this reason, especially, we have an mx_internal
+     *  $addEventListener to add event listeners without affecting the behavior
+     *  of the component.
+     */
+    mx_internal function $addEventListener(
+                            type:String, listener:Function,
+                            useCapture:Boolean = false,
+                            priority:int = 0,
+                            useWeakReference:Boolean = false):void
+    {
+        super.addEventListener(type, listener, useCapture,
+                               priority, useWeakReference);
+    }

     /**
      *  @private
@@ -2329,6 +2352,26 @@
                 setStyle("mouseShieldChildren", false);
             }
         }
+    }
+
+    /**
+     *  @private
+     *  We're doing special behavior on removeEventListener to make sure that
+     *  we successfully capture mouse events, even when there's no background.
+     *  However, this means removing an event listener changes the behavior
+     *  a little, and this can be troublesome for overlapping components
+     *  that now don't get any mouse events.  This is acceptable normally;
+     *  however, automation adds certain events to the Container, and
+     *  it'd be better if automation support didn't modify the behavior of
+     *  the component.  For this reason, especially, we have an mx_internal
+     *  $removeEventListener to remove event listeners without affecting the behavior
+     *  of the component.
+     */
+    mx_internal function $removeEventListener(
+                              type:String, listener:Function,
+                              useCapture:Boolean = false):void
+    {
+        super.removeEventListener(type, listener, useCapture);
     }

     //--------------------------------------------------------------------------
@@ -2765,9 +2808,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function get numElements():int
     {
@@ -2778,9 +2821,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function getElementAt(index:int):IVisualElement
     {
@@ -2791,9 +2834,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function getElementIndex(element:IVisualElement):int
     {
@@ -2807,9 +2850,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function addElement(element:IVisualElement):IVisualElement
     {
@@ -2823,9 +2866,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function addElementAt(element:IVisualElement, index:int):IVisualElement
     {
@@ -2839,9 +2882,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function removeElement(element:IVisualElement):IVisualElement
     {
@@ -2855,9 +2898,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function removeElementAt(index:int):IVisualElement
     {
@@ -2868,9 +2911,25 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function removeAllElements():void
+    {
+        for (var i:int = numElements - 1; i >= 0; i--)
+        {
+            removeElementAt(i);
+        }
+    }
+
+    /**
+     *  @inheritDoc
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function setElementIndex(element:IVisualElement, index:int):void
     {
@@ -2884,9 +2943,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function swapElements(element1:IVisualElement, element2:IVisualElement):void
     {
@@ -2902,9 +2961,9 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
      */
     public function swapElementsAt(index1:int, index2:int):void
     {


add maxChars

add maxChars

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
@@ -89,7 +89,28 @@
 			}
 		}

-		/**
+        private var _maxChars:int = 0;
+
+        /**
+         *  The character used to separate the integer and fraction parts of numbers.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function get maxChars():int
+        {
+            return _maxChars;
+        }
+        public function set maxChars(value:int):void
+        {
+            if (_maxChars != value) {
+                _maxChars = value;
+            }
+        }
+
+        /**
 		 * @private
 		 */
 		private function viewChangeHandler(event:Event):void
@@ -99,7 +120,7 @@
 			if (textView) {
 				var textField:CSSTextField = textView.textField;
 				textField.restrict = "0-9" + decimalSeparator;
-
+				textField.maxChars = maxChars;
 				// listen for changes to this textField and prevent non-numeric values, such
 				// as 34.09.94
 				textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput);


only trace actual data

only trace actual data

--- src/org/jivesoftware/xiff/core/XMPPConnection.as
+++ src/org/jivesoftware/xiff/core/XMPPConnection.as
@@ -23,32 +23,28 @@

 package org.jivesoftware.xiff.core
 {
+	import flash.events.DataEvent;
+	import flash.events.Event;
+	import flash.events.EventDispatcher;
+	import flash.events.IOErrorEvent;
+	import flash.events.SecurityErrorEvent;
+	import flash.net.XMLSocket;
+	import flash.xml.XMLDocument;
+	import flash.xml.XMLNode;
+
+	import mx.controls.Alert;
+	import mx.utils.StringUtil;
+
 	import org.jivesoftware.xiff.data.IExtension;
-
-	import org.jivesoftware.xiff.data.XMPPStanza;
 	import org.jivesoftware.xiff.data.IQ;
 	import org.jivesoftware.xiff.data.Message;
 	import org.jivesoftware.xiff.data.Presence;
+	import org.jivesoftware.xiff.data.XMPPStanza;
 	import org.jivesoftware.xiff.data.auth.AuthExtension;
+	import org.jivesoftware.xiff.data.forms.FormExtension;
 	import org.jivesoftware.xiff.data.register.RegisterExtension;
-	import org.jivesoftware.xiff.data.ExtensionClassRegistry;
+	import org.jivesoftware.xiff.events.*;
 	import org.jivesoftware.xiff.exception.SerializationException;
-
-	import flash.xml.XMLNode;
-	import flash.xml.XMLDocument;
-	import flash.net.XMLSocket;
-	import flash.events.Event;
-	import flash.events.ProgressEvent;
-	import flash.events.IOErrorEvent;
-	import flash.events.DataEvent;
-	import flash.events.SecurityErrorEvent;
-
-	import flash.events.EventDispatcher;
-	import flash.events.Event;
-	import org.jivesoftware.xiff.events.*;
-	import org.jivesoftware.xiff.data.im.RosterExtension;
-	import org.jivesoftware.xiff.data.forms.FormExtension;
-	import mx.controls.Alert;

 	/**
 	 * Dispatched when a password change is successful.
@@ -737,7 +733,9 @@
 		 */
 		protected function sendXML( someData:* ):void
 		{
-			trace(someData);
+			if (StringUtil.trim(someData).length > 0) {
+				trace(someData);
+			}
 			// Data is untyped because it could be a string or XML
 			socket.send( someData );
 			var event:OutgoingDataEvent = new OutgoingDataEvent();


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

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

--- frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.as
+++ frameworks/projects/automation_spark/src/spark/automation/tabularData/SparkDataGridTabularData.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 spark.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7120
Author:   gosmith@adobe.com
Date:     2009-05-20T06:46:06.687622Z

Log Message:
-----------
Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.

Removed stale import statements.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: Carol

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditableTextContainerManager.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as
@@ -29,6 +29,8 @@

 import spark.primitives.RichEditableText;
 import spark.components.TextSelectionVisibility;
+
+use namespace mx_internal;

 /**
  *
@@ -143,13 +145,13 @@
      */
     override protected function getUndoManager():IUndoManager
     {
-        if (!textView.mx_internal::undoManager)
+        if (!textView.undoManager)
         {
-            textView.mx_internal::undoManager = new UndoManager();
-            textView.mx_internal::undoManager.undoAndRedoItemLimit = int.MAX_VALUE;
+            textView.undoManager = new UndoManager();
+            textView.undoManager.undoAndRedoItemLimit = int.MAX_VALUE;
         }

-        return textView.mx_internal::undoManager;
+        return textView.undoManager;
     }

     /**
@@ -209,7 +211,7 @@
      */
     override public function focusInHandler(event:FocusEvent):void
     {
-        textView.mx_internal::focusInHandler(event);
+        textView.focusInHandler(event);

         super.focusInHandler(event);
     }


Add type generics to AS3 test file.

Add type generics to AS3 test file.

--- tests/examplefiles/as3_test.as
+++ tests/examplefiles/as3_test.as
@@ -7,7 +7,7 @@
 			private static const ADD_SONG:uint = 1;
 			private static const SONG_DETAIL:uint = 2;

-			private var playList:PlayList = new PlayList();
+			private var playList:PlayList = new PlayList.<T>();

 			private function initApp():void
 			{
@@ -24,7 +24,7 @@
 			}

-			private function sortList(sortField:SortProperty):void
+			private function sortList(sortField:SortProperty.<T>):void
 			{
 				// Make all the sort type buttons enabled.
 				// The active one will be grayed-out below


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

--- frameworks/projects/advancedgrids/src/mx/olap/QueryError.as
+++ frameworks/projects/advancedgrids/src/mx/olap/QueryError.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.olap
 {


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

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

 package mx.events
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12823
Author:   hhillen@paciellogroup.com
Date:     2009-12-11T02:01:40.548617Z

Log Message:
-----------
Added TabBarAccImpl, Moved ButtonBarAccImpl to ButtonBarBaseAccImpl
QE notes: none
Doc notes: none
Bugs: n/a
Reviewer: Gordon
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/components/ButtonBar.as
+++ frameworks/projects/spark/src/spark/components/ButtonBar.as
@@ -39,7 +39,6 @@

 [IconFile("ButtonBar.png")]

-[AccessibilityClass(implementation="spark.accessibility.ButtonBarAccImpl")]

 /**
  *  The ButtonBar control defines a horizontal group of
@@ -116,18 +115,6 @@
 public class ButtonBar extends ButtonBarBase implements IFocusManagerComponent
 {
     include "../core/Version.as";
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class mixins
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     *  Placeholder for mixin by ButtonBarAccImpl.
-     */
-    mx_internal static var createAccessibilityImplementation:Function;

     //--------------------------------------------------------------------------
     //
@@ -265,17 +252,6 @@
         super.setCurrentCaretIndex(value);
     }

-     /**
-     *  @private
-     *  Called by the initialize() method of UIComponent
-     *  to hook in the accessibility code.
-     */
-    override protected function initializeAccessibility():void
-    {
-        if (createAccessibilityImplementation != null)
-            createAccessibilityImplementation(this);
-    }
-

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 6641
Author:   cframpto@adobe.com
Date:     2009-05-05T15:53:49.762827Z

Log Message:
-----------
Back out 6637 and 6639 until I do some more testing.  Even though all the mustella tests are passing I'm seeing some odd behavior.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextInput.as</path>

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

--- frameworks/projects/spark/src/spark/components/TextInput.as
+++ frameworks/projects/spark/src/spark/components/TextInput.as
@@ -104,11 +104,73 @@
     //
     //--------------------------------------------------------------------------

+	//----------------------------------
+	//  widthInChars
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    private var _widthInChars:Number = 15;
+
+    /**
+     *  @private
+     */
+    private var widthInCharsChanged:Boolean = false;
+
+    /**
+     *  The default width for the TextInput, measured in characters.
+     *  The width of the "0" character is used for the calculation,
+     *  since in most fonts the digits all have the same width.
+     *  So if you set this property to 5, it will be wide enough
+     *  to let the user enter 5 digits.
+     *
+     *  @default
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function get widthInChars():Number
+    {
+        return _widthInChars;
+    }
+
+    /**
+     *  @private
+     */
+    public function set widthInChars(value:Number):void
+    {
+        if (value == _widthInChars)
+            return;
+
+        _widthInChars = value;
+        widthInCharsChanged = true;
+
+        invalidateProperties();
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Overridden methods
     //
     //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Pushes various TextInput properties down into the RichEditableText.
+     */
+    override protected function commitProperties():void
+    {
+        super.commitProperties();
+
+        if (widthInCharsChanged)
+		{
+			textView.widthInChars = _widthInChars;
+			widthInCharsChanged = false;
+		}
+	}

     /**
      *  @private
@@ -119,11 +181,14 @@

         if (instance == textView)
         {
+            // Set the RichEditableText to allow only one line of input.
             // In default.css, the TextInput selector has a declaration
             // for lineBreak which sets it to "explicit".  It needs to be on
             // TextInput rather than RichEditableText so that if changed later it
-            // will be inherited.
-
+            // will be inherited.  It needs to be set with the default
+            // before the possibility that it is changed when TextInput is
+            // created.  In this case, setting it here, would overwrite
+            // that change.
             textView.heightInLines = 1;
             textView.multiline = false;
             textView.autoSize = false;


Transferred from the Adobe Open Source Subversion Repository

Revision: 5028
Author:   egeorgie@adobe.com
Date:     2009-02-21T00:02:17.627601Z

Log Message:
-----------
IGraphicElement interface clean-up and optimizations.
Animating a GraphicElement that doesn't share the Group's DO should be now faster and smoother since redrawing it won't redraw the Group anymore.

1. Group doesn't always clear the first sequence of display objects now
2. Moved the shared DO logic almost entirely into Group
3. More granular invalidation for GraphicElements

QE Notes: Make sure we have test that count the number of display objects for a given set of graphic elements and a group
Doc Notes:
Bugs: None
Reviewer: Glenn, Ryan, Jason
tests: None

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/core/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IVisualElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/BitmapGraphic.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/ISharedDisplayObject.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/GraphicElement.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/flex4/src/mx/components/Group.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/baseClasses/ISharedGraphicsDisplayObject.as</path>

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

--- frameworks/projects/spark/src/spark/core/IGraphicElement.as
+++ frameworks/projects/spark/src/spark/core/IGraphicElement.as
@@ -12,144 +12,256 @@
 {
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
-import flash.geom.Transform;
-
-import mx.core.IInvalidating;
+
+import mx.components.Group;
 import mx.core.IVisualElement;

 /**
- *  The IGraphicElement interface is implemented by all child tags of Graphic and Group.
+ *  The IGraphicElement is implemented by IVisualElements that
+ *  take advantage of the parent Group's DisplayObject
+ *  management.
+ *
+ *
One typical use case is DisplayObject sharing.
+ *  Group organizes its
+ *  IGraphicElement children in sequences that share and draw to
+ *  the same DisplayObject.
+ *  The DisplayObject is created by the first element in the
+ *  sequence.

+ *
+ *
Another use case is when an element does not derrive from
+ *  DisplayObject but instead maintains, creates and/or destroys
+ *  its own DisplayObject.  The Group will ensure to
+ *  call the element to create the DisplayObject, add the
+ *  DisplayObject as its child at the correct index as well as
+ *  handle its removal.

+ *
+ *  Typically a Developer will extend the GraphicElement class
+ *  instead of directly implementing the IGraphciElement
+ *  interface as GraphicElement already provides most of the
+ *  required functionality.
  */
-public interface IGraphicElement extends IVisualElement, IInvalidating
+public interface IGraphicElement extends IVisualElement
 {
-
     //--------------------------------------------------------------------------
     //
     //  Properties
     //
     //--------------------------------------------------------------------------

-    /**
-     *  Specifies the level of transparency of the graphic element.
-     *
-     *  @see flash.display.DisplayObject#Alpha
-     */
-    function get alpha():Number;
-    function set alpha(value:Number):void;
-
-    /**
-     *  Specifies the blend mode.
-     *
-     *  @see flash.display.DisplayObject#BlendMode
-     */
-    function get blendMode():String;
-    function set blendMode(value:String):void;
-
-    /**
-     *  The array of IBitmapFilter filters applied to the element.
-     */
-    function get filters():Array;
-    function set filters(value:Array):void;
-
-    /**
-     *  Controls how the mask performs masking on the element.
-     *  Possible values are MaskType.CLIP and MaskType.ALPHA
-     *  A value of MaskType.CLIP means that the mask either displays the pixel
-     *  or doesn't. Strokes and bitmap filters are not used.
-     *  A value of MaskType.ALPHA means that the mask respects opacity and
-     *  will use the strokes and bitmap filters of the mask.
-     */
-    function get maskType():String;
-    function set maskType(value:String):void;
-
-    /**
-     * The mask applied to the element.
-     */
-    function set mask(value:DisplayObject):void;
-    function get mask():DisplayObject;
-
-    /**
-     *  An object with properties pertaining to an element's matrix,
-     *  color transform, and pixel bounds.
-     */
-    function get transform():Transform;
-    function set transform(value:Transform):void;
-
-    /**
-     *  The DisplayObject where the GraphicElement will be drawn.
-     *  This property is automatically assigned by the parent Group of this element.
+    //----------------------------------
+    //  displayObject
+    //----------------------------------
+
+    /**
+     *  The shared DisplayObject where this
+     *  IGraphicElement is drawn.
+     *
+     *  The parent Group sets this property to the
+     *  DisplayObject created by the first
+     *  IGraphicElement in the sequence.
+     *
+     *  Implementers should not create the DisplayObject
+     *  here, but in createDisplayObject().
+     *
+     *  @see #createDisplayObject
+     *  @see #validateDisplayList
+     *  @see #shareIndex
      */
     function get displayObject():DisplayObject;
+
+    /**
+     *  @private
+     */
     function set displayObject(value:DisplayObject):void;

-    /**
-     *  true if the graphic element needs its own unique display object to render into.
-     *  In general, you will not set this property, although if you extend the GraphicElement class, you
-     *  might override the setter.
-     */
-    function get needsDisplayObject():Boolean;
-
-    /**
-     *  true if the another graphic element can use this display object to render into.
-     *  In general, you will not set this property, although if you extend the GraphicElement class, you
-     *  might override the setter.
-     */
-    function get nextSiblingNeedsDisplayObject():Boolean;
-
-    /**
-     *  The DisplayObject where the GraphicElement will be drawn.  This DisplayObject is shared
-     *  between other GraphicElements.  This property is automatically assigned by the
-     *  parent Group of this element.
-     */
-    function get sharedDisplayObject():DisplayObject;
-    function set sharedDisplayObject(value:DisplayObject):void;
+    //----------------------------------
+    //  shareIndex
+    //----------------------------------
+
+    /**
+     *  The index of this IGraphicElement in the sequence
+     *  of elements that share the same DisplayObject.
+     *
+     *  A value of -1 indicates that this element doesn't
+     *  share its displayObject with other elements and its sequence
+     *  doesn't contain any other elements.
+     *
+     *  A value of 0 or greater indicates the position of this element in its
+     *  sequence.
+     *
+     *  A value of 0 also indicates that this element creates the
+     *  DisplayObject for its sequence.
+     *
+     *  Group sets this index before updating the
+     *  displayObject property.
+     *
+     *  @see #displayObject
+     *  @see #createDisplayObject
+     */
+    function get shareIndex():int;
+
+    /**
+     *  @private
+     */
+    function set shareIndex(value:int):void;

     //--------------------------------------------------------------------------
     //
     //  Methods
     //
     //--------------------------------------------------------------------------
-
-    /**
-     * @copy mx.managers.ILayoutManagerClient#validateProperties
+
+    /**
+     *  Creates a new DisplayObject where this IGraphicElement
+     *  is drawn.
+     *
+     *  After the DisplayObject is created, the parent Group
+     *  will assign it to this element's displayObject property as well
+     *  update the display objects of all the other elements in the sequence.
+     *
+     *  Implementers of this method must always create a new DisplayObject instead
+     *  of returning the value of the displayObject property.
+     *
+     *  Group will ensure that this method is called only when needed.
+     *
+     *
If the element wants to participate in the DisplayObject
+     *  sharing, then the new DisplayObject must implement IShareableDisplayObject.
+     *  This interface is being used by the Group to manage invalidation and
+     *  redrawing of the graphic element sequence and typically is not directly
+     *  used by the Developer.

+     *
+     *  To reevaluate the shared sequences, call the parent Group
+     *  graphicElementLayerChanged() method.
+     *
+     *  To force the Group to discard the element's current
+     *  DisplayObject call the parent Group
+     *  discardDisplayObject() method.
+     *
+     *  @return The display object created
+     *  @see #displayObject
+     *  @see mx.components.Group#graphicElementLayerChanged
+     *  @see mx.components.Group#discardDisplayObject
+     */
+    function createDisplayObject():DisplayObject;
+
+    /**
+     *  Determines whether this element can draw itself to the
+     *  sharedDisplayObject of the sequence.
+     *
+     *
Typically implementers will return true when this
+     *  IGraphicElement can cumulatively draw in the shared
+     *  DisplayObject graphics property.
+     *  In all cases where this IGraphicElement needs to set
+     *  properties on the DisplayObject that don't apply to the
+     *  rest of the elements in the sequence this method must return false.
+     *  Examples for such properties are rotation, scale, transform,
+     *  mask, alpha, filters, color transform, 3D, layer, etc.

+     *
+     *
Note that in certain cases the sharedDisplayObject may be
+     *  the parent Group itself.  In the rest of the cases the
+     *  DisplayObject is created by the first element in the sequence.

+     *
+     *
When this IGraphicElement needs to rebuild its sequence,
+     *  it notifies the parent Group by calling its
+     *  graphicElementLayerChanged() method.

+     *
+     *  @return Returns true when this IGraphicElement can draw itself
+     *  to the shared DisplayObject of the sequence.
+     *
+     *  @see #closeSequence
+     *  @see mx.components.Group#graphicElementLayerChanged
+     */
+    function canDrawToShared(sharedDisplayObject:DisplayObject):Boolean;
+
+    /**
+     *  Returns whether the parent Group can append graphic
+     *  elements to this element's shared sequence.
+     *
+     *  This method is called only for elements that already return
+     *  true for canDrawToShared().
+     *
+     *
This method is useful for the cases where a graphic element uses
+     *  the shared DisplayObject in a way that prevents any other
+     *  element from using drawing to it.  For example, if a graphic element
+     *  adds child display objects to the shared DisplayObject,
+     *  it should return false, otherwise any subsequent draws to the
+     *  shared DisplayObject will have the incorrect
+     *  rendering order.

+     *
+     *  @return Returns true when this IGraphicElement can
+     *  have more elements appended to its shared sequence.
+     *
+     *  @see #canDrawToShared
+     *  @see mx.components.Group#graphicElementLayerChanged
+     */
+    function closeSequence():Boolean;
+
+    /**
+     *  Called by Group when an IGraphicElement
+     *  is added to or removed from a Group.
+     *  Developers typically never need to call this method.
+     *
+     *  @param parent The parent group of this IGraphicElement.
+     */
+    function parentChanged(parent:Group):void;
+
+    /**
+     *  Called by the parent Group to validate the properties of
+     *  this element.
+     *
+     *  To ensure this method is called, notify the parent Group
+     *  by calling its graphicElementPropertiesChanged() method.
+     *
+     *  Note that this method may be called even if this element have not
+     *  notified the parent Group.
+     *
+     *  @see #validateSize
+     *  @see #validateDisplayList
      */
     function validateProperties():void;

     /**
-     * @copy mx.managers.ILayoutManagerClient#validateSize
+     *  Called by the parent Group to validate the size of
+     *  this element.
+     *
+     *  When the size of the element changes and is going to affect the
+     *  parent Group layout, the implementer is responsible
+     *  for invalidating the parent's size and display list.
+     *
+     *  To ensure this method is called, notify the parent Group
+     *  by calling its graphicElementSizeChanged() method.
+     *
+     *  Note that this method may be called even if this element have not
+     *  notified the parent Group.
+     *
+     *  @see #validateProperties
+     *  @see #validateDisplayList
      */
     function validateSize(recursive:Boolean = false):void;

     /**
-     * @copy mx.managers.ILayoutManagerClient#validateDisplayList
+     *  Called by the parent Group to redraw this element
+     *  in its displayObject property.
+     *
+     *
If the element is the first in the sequence (shareIndex</cpode>
+     *  is less than or equal to zero) it must clear the displayObject
+     *  graphics and set it up as necessary for drawing the rest of the elements.

+     *
+     *
The element must alway redraw even if it itself has not changed
+     *  since the last time validateDisplayList() was called
+     *  as the parent Group will redraw the whole sequence
+     *  if any of its elements need to be redrawn.

+     *
+     *
To ensure this method is called, notify the parent Group
+     *  by calling its graphicElementSizeChanged() method.

+     *
+     *
Note that this method may be called even if this element have not
+     *  notified the parent Group.

+     *
+     *  @see #displayObject
+     *  @see #validateProperties
+     *  @see #validateSize
      */
     function validateDisplayList():void;
-
-    /**
-     *  Called by Flex when a graphic element object is added to or removed from a parent.
-     *  Developers typically never need to call this method.
-     *
-     *  @param p The parent of this graphic element object.
-     */
-    function parentChanged(p:DisplayObjectContainer):void;
-
-    /**
-     *  Creates a new DisplayObject where the GraphicElement is drawn,
-     *  if one does not already exist.  This methods also assigns the graphic element's
-     *  displayObject property to the newly created DisplayObject.
-     *
-     *  @return The display object created
-     */
-    function createDisplayObject():DisplayObject;
-
-    /**
-     *  This method is called to let the GraphicElement know that the
-     *  display object is no longer needed.  This does not remove the
-     *  display object from the display list.
-     *
-     *  @return The display object that this graphic element owned (null
-     *  if it didn't own one).
-     */
-    function destroyDisplayObject():DisplayObject;
 }
 }


Transferred from the Adobe Open Source Subversion Repository

Revision: 4885
Author:   jszeto@adobe.com
Date:     2009-02-07T00:12:32.609062Z

Log Message:
-----------
Flex SDK Framework - Update mx.filters API and class hierarchy

- Removed BaseFilter.as, BaseDimensionFilter.as, and GradientFilter.as
- Renamed IBitmapFilter.as to IFlexBitmapFilter.as
- Changed IBitmapFilter.clone to createBitmapFilter
- Moved properties and functions from base classes up to filter subclasses
- Changed ColorMatrixFilter constructor parameter from Array to Object
- Added Change metadata to all filter classes
- Changed notifyFilterChanged from public to private
- Added ASDoc comments
- Added copyright info
- Added a number of formatting and style fixes

QE Notes: Need to update tests based on API changes. Missing tests for DisplacementMapFilter.as.
Doc Notes: Need extensive ASDoc review. Consider using @copy for properties that match the flash.filters properties
Bugs: n/a
Reviewer: Gordon

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseDimensionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BevelFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientFilter.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ColorMatrixFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/BlurFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DisplacementMapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/StrokedElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/DropShadowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientBevelFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Parser.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IBitmapFilter.as" copyfrom-rev="4821" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/IFlexBitmapFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ConvolutionFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/filters/BaseFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/GradientGlowFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.as</path>

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

--- frameworks/projects/spark/src/spark/filters/ShaderFilter.as
+++ frameworks/projects/spark/src/spark/filters/ShaderFilter.as
@@ -24,10 +24,15 @@
 import flash.utils.Proxy;
 import flash.utils.flash_proxy;

-import mx.filters.BaseFilter;
-import mx.filters.IBitmapFilter;
+import mx.filters.IFlexBitmapFilter;

 use namespace flash_proxy;
+
+/**
+ *  @review
+ *  Dispatched when a property value has changed.
+ */
+[Event(name="change", type="flash.events.Event")]

 /**
  * The Flex ShaderFilter class abstracts away many of the details of using
@@ -107,19 +112,9 @@
  * </listing>
  */
 public dynamic class ShaderFilter extends Proxy
-    implements IBitmapFilter, IEventDispatcher
+    implements IEventDispatcher, IFlexBitmapFilter
 {
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     * Private storage for incoming properties, queued until
-     * shader is initialized and available.
-     */
-    private var propertyQueue:Object;
+	include "../core/Version.as";

     //--------------------------------------------------------------------------
     //
@@ -138,6 +133,18 @@
         eventDispatcher = new EventDispatcher();
         this.shader = shader;
     }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Variables
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     * Private storage for incoming properties, queued until
+     * shader is initialized and available.
+     */
+    private var propertyQueue:Object;

     //--------------------------------------------------------------------------
     //
@@ -528,9 +535,9 @@
      * Notify of a change to our filter, so that filter stack is ultimately
      * re-applied by the framework.
      */
-    public function notifyFilterChanged():void
-    {
-        dispatchEvent(new Event(BaseFilter.CHANGE));
+    private function notifyFilterChanged():void
+    {
+        dispatchEvent(new Event(Event.CHANGE));
     }

     /**
@@ -538,7 +545,7 @@
      * Returns a native flash.filters.ShaderFilter instance suitable
      * for application in a DisplayObject filter stack.
      */
-    public function clone():BitmapFilter
+    public function createBitmapFilter():BitmapFilter
     {
         var instance:flash.filters.ShaderFilter;
         if (_shader)


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

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

 package mx.controls.olapDataGridClasses
 {


Bug 707086: missed another case that should have been part of changeset 6762:948e3694ac20 (r=fklockii).

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -421,7 +421,7 @@
                             s += '"' + abc.strings[readU32()].replace(/\n/g,"\\n").replace(/\t/g,"\\t") + '"'
                             break
                         case OP_pushnamespace:
-                            s += abc.namespaceFromU32()
+                            s += abc.namespaces[read32()]
                             break
                         case OP_pushint:
                             var i:int = abc.ints[readU32()]


Fix abcdump to dump all functions in the abc (bug 479456 r=lhansen+ tharwood+)

add -abs option to produce abcasm compatible output

refactor doExtract* flags to make them orthogonal.  doExtractAbs=true means
generate abcasm compatible output, doExtractInfo means generate extra info.
(both default true).

if both are enabled, infoPrint() generates // in front of extra info.

fixed bug where not every function referenced by OP_newfunction would be
dumped.  Now, we dump all methods (script, instance, class methods), followed
by all other functions.  It is possible that even methods never referenced by
any trait or any OP_newfunction will also be dumped.

Functions not referenced by a Trait entry don't have a name, and used to print
as "function undefined(...)", now they print as "function(...)", like anonymous
functions in js.

InstanceInfo, ClassInfo, and MethodBodies stats now includes both count and
size.

--- utils/abcdump.as
+++ utils/abcdump.as
@@ -61,8 +61,9 @@
     "      of the input file minus the .swf/.swc extension;",
     "      and <n> is omitted if it is 0.",
     "",
-    " -i   Print information about the ABC, but do not dump the",
-    "      byte code.",
+    " -i   Print information about the ABC, but do not dump the byte code.",
+    "",
+    " -abs Print the bytecode, but no information about the ABC",
     ].join("\n");

     const TAB = "  "
@@ -71,13 +72,13 @@
     var opSizes:Array = new Array(256)

     function dumpPrint(s) {
-        if (!(doExtractAbc || doExtractInfo))
+        if (doExtractAbs)
             print(s);
     }

     function infoPrint(s) {
-        if (doExtractInfo || !doExtractAbc)
-            print(s);
+        if (doExtractInfo)
+            print((doExtractAbs ? "// " : "") + s)
     }

     class Multiname
@@ -152,6 +153,8 @@

     class MethodInfo extends MemberInfo
     {
+        var method_id:int
+        var dumped:Boolean
         var flags:int
         var debugName
         var paramTypes
@@ -163,7 +166,6 @@
         var code_length:uint
         var code:ByteArray
         var activation:Traits
-        var anon:Boolean

         public function toString():String
         {
@@ -172,23 +174,27 @@

         public function format():String
         {
+            var name = this.name ? this.name : "function"
+
+            return name + "(" + paramTypes + "):" + returnType + "\t/* disp_id=" + id + " method_id=" + method_id + " */"
+        }
+
+        function dump(abc:Abc, indent:String, attr:String="")
+        {
+            dumped = true
+            dumpPrint("")
+
+            if (metadata) {
+                for each (var md in metadata)
+                    dumpPrint(indent+md)
+            }
+
             var s:String = ""
             if (flags & NATIVE)
                 s = "native "
-
-            return s + traitKinds[kind] + " " + name + "(" + paramTypes + "):" + returnType + "\t/* disp_id " + id + "*/"
-        }
-
-        function dump(abc:Abc, indent:String, attr:String="")
-        {
-            dumpPrint("")
-
-            if (metadata) {
-                for each (var md in metadata)
-                    dumpPrint(indent+md)
-            }
-
-            dumpPrint(indent+attr+format())
+            s += traitKinds[kind] + " "
+
+            dumpPrint(indent+attr+s+format())
             if (code)
             {
                 dumpPrint(indent+"{")
@@ -268,7 +274,6 @@
                         case OP_newfunction: {
                             var method_id = readU32()
                             s += abc.methods[method_id]
-                            abc.methods[method_id].anon = true
                             break;
                         }
                         case OP_callstatic:
@@ -461,8 +466,8 @@

         public function dump(abc:Abc, indent:String, attr:String="")
         {
-            for each (var m in members)
-                m.dump(abc,indent,attr)
+            for each (var m in members)
+                m.dump(abc, indent, attr)
         }
     }

@@ -696,6 +701,7 @@
             for (var i:int=0; i < method_count; i++)
             {
                 var m = methods[i] = new MethodInfo()
+                m.method_id = i
                 var param_count:int = readU32()
                 m.returnType = names[readU32()]
                 m.paramTypes = []
@@ -778,7 +784,7 @@
                 m.id = -1
                 parseTraits(t)
             }
-            infoPrint("InstanceInfo size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+" %")
+            infoPrint("InstanceInfo count " + count + " size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+" %")
         }

         function parseTraits(t:Traits)
@@ -849,7 +855,7 @@
                 t.init.kind = TRAIT_Method
                 parseTraits(t)
             }
-            infoPrint("ClassInfo size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+"%")
+            infoPrint("ClassInfo count " + count + " size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+"%")
         }

         function parseScriptInfos()
@@ -901,23 +907,22 @@
                 }
                 parseTraits(m.activation = new Traits)
             }
-            infoPrint("MethodBodies size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+" %")
+            infoPrint("MethodBodies count " + count + " size "+(data.position-start)+" "+int(100*(data.position-start)/data.length)+" %")
         }

         function dump(indent:String="")
         {
             for each (var t in scripts)
             {
-                dumpPrint(indent+t.name)
+                dumpPrint("// " + indent+t.name)
                 t.dump(this,indent)
                 t.init.dump(this,indent)
             }

             for each (var m in methods)
             {
-                if (m.anon) {
+                if (!m.dumped)
                     m.dump(this,indent)
-                }
             }

             infoPrint("OPCODE\tSIZE\t% OF "+totalSize)
@@ -1212,12 +1217,17 @@

     function processArg(arg:String)
     {
-        if (arg == '-a')
+        if (arg == '-a') {
             doExtractAbc = true;
-        else if (arg == '-i')
-            doExtractInfo = true;
-        else
-        {
+            doExtractInfo = false
+            doExtractAbs = false
+        } else if (arg == '-i') {
+            // suppress abs output
+            doExtractAbs = false;
+        } else if (arg == '-abs') {
+            // suppress info output
+            doExtractInfo = false
+        } else {
             print('Unknown option '+arg)
             help()
         }
@@ -1234,7 +1244,8 @@

     // main
     var doExtractAbc = false
-    var doExtractInfo = false
+    var doExtractInfo = true
+    var doExtractAbs = true
     var currentFname = ''
     var currentFcount = 0
     for each (var file in System.argv)


Add CRC32 for uint vector

Add CRC32 for uint vector

--- src/aerys/minko/render/shader/compiler/CRC32.as
+++ src/aerys/minko/render/shader/compiler/CRC32.as
@@ -92,6 +92,18 @@
 			return computeForByteArray(TMP_BYTEARRAY);
 		}

+		public static function computeForUintVector(v : Vector.<uint>) : uint
+		{
+			var length		: uint		= v.length;
+
+			TMP_BYTEARRAY.length = TMP_BYTEARRAY.position = 0;
+
+			for (var i : uint = 0; i < length; ++i)
+				TMP_BYTEARRAY.writeUnsignedInt(v[i]);
+
+			return computeForByteArray(TMP_BYTEARRAY);
+		}
+
 		public static function computeForNumberVector(v : Vector.<Number>) : uint
 		{
 			var length		: uint		= v.length;


Transferred from the Adobe Open Source Subversion Repository

Revision: 10633
Author:   dloverin@adobe.com
Date:     2009-09-28T13:24:30.559033Z

Log Message:
-----------
Use styleManager instance instead of StyleManager singleton (framework and compiler generated code)

Modified compiler generated style code for the FlexInit class. The style related changes are only available with the -keep option. AST generation is coming later.

Only the framework project is changed here. The other projects are will be changed soon.

QE notes: None.
Doc notes: None.
Bugs:
Reviewer: Alex and Paul
Tests run: checkintests, all Mustella tests(no new failures)
Is noteworthy for integration: no.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonBarButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/HaloBorder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/accordionClasses/AccordionHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/utilityClasses/CanvasLayout.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/controls/DateChooser.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressIndeterminateSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DateChooserMonthArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/DividedBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/DragManagerImpl.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/skins/halo/ScrollThumbSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColumn.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleModule.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Form.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/IStyleManager2.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/modules/compiler/src/java/flex2/tools/PreLink.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Label.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDefLib.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TitleBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperDownSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/PopUpButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/ProgrammaticSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/TabSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/textClasses/TextRange.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/LayoutContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/AccordionHeaderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/CheckBoxIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/NumericStepperUpSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/RadioButtonIcon.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetStyle.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ComboBoxArrowSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeaderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/FormItem.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridHeader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/MenuBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ProgressBarSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/BusyCursor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/SliderTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ScrollTrackSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/DataGridHeaderBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SetStyleActionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm</path>

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

--- frameworks/projects/mx/src/mx/controls/List.as
+++ frameworks/projects/mx/src/mx/controls/List.as
@@ -62,7 +62,6 @@
 import mx.managers.IFocusManager;
 import mx.managers.IFocusManagerComponent;
 import mx.managers.ISystemManager;
-import mx.styles.StyleManager;
 import mx.collections.ItemWrapper;
 import mx.collections.ModifiedCollectionView;
 import mx.core.IUIComponent;
@@ -1201,7 +1200,7 @@
             return;
         }

-        StyleManager.getColorNames(colors);
+        styleManager.getColorNames(colors);

         var curRow:int = 0;
         var actualRow:int = verticalScrollPosition;