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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 16665
Author:   rfrishbe@adobe.com
Date:     2010-06-24T22:40:15.397962Z

Log Message:
-----------
Initial checkin for touch-enabled Lists.  This has not been code reviewed or spec-approved.  There will be lots of changes that will occur with this, but this will allow people to easily create touch-enabled Lists

QE notes: None
Doc notes: None
Bugs: -
Reviewer: None - this will get reviewed later
Tests run: checkintests, full mustella run (some tests failed and were off by a few pixels)
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/MobileThemeClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TouchScrollingEasing.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/VScrollBarThumbSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/events/TouchScrollEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarTrackSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ScrollPolicy.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarThumbSkin.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/HScrollBarSkin.as</path>

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

--- frameworks/projects/framework/src/mx/events/TouchInteractionEvent.as
+++ frameworks/projects/framework/src/mx/events/TouchInteractionEvent.as
@@ -0,0 +1,43 @@
+package spark.events
+{
+import flash.display.DisplayObject;
+import flash.events.Event;
+import flash.geom.Point;
+
+public class TouchScrollEvent extends Event
+{
+
+    public static const TOUCH_SCROLL_STARTING:String = "touchScrollStarting";
+    public static const TOUCH_SCROLL_START:String = "touchScrollStart";
+    public static const TOUCH_SCROLL_DRAG:String = "touchScrollDrag";
+    public static const TOUCH_SCROLL_THROW:String = "touchScrollThrow";
+    public static const TOUCH_SCROLL_THROW_ANIMATION_END:String = "touchScrollThrowAnimationEnd";
+    public static const TOUCH_SCROLL_END:String = "touchScrollEnd";
+
+    public function TouchScrollEvent(type:String, bubbles:Boolean = false,
+                              cancelable:Boolean = false)
+    {
+        super(type, bubbles, cancelable);
+    }
+
+    public var dragX:Number;
+    public var dragY:Number;
+    public var throwVelocity:Point;
+    public var scrollingObject:DisplayObject;
+
+    /**
+     *  @private
+     */
+    override public function clone():Event
+    {
+        var clonedEvent:TouchScrollEvent = new TouchScrollEvent(type, bubbles, cancelable);
+
+        clonedEvent.dragX = dragX;
+        clonedEvent.dragY = dragY;
+        clonedEvent.throwVelocity = throwVelocity;
+        clonedEvent.scrollingObject = scrollingObject;
+
+        return clonedEvent;
+    }
+}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5545
Author:   jimurphy@adobe.com
Date:     2009-03-25T19:00:52.330680Z

Log Message:
-----------
1st pass of rename according to the spec http://opensource.adobe.com/wiki/display/flexsdk/Dropping+the+Fx+Prefix

Flex now requires CSS Style declarations to declare @namespace rules and disambiguate between halo and spark components using CSS 3 namespace prefixes on type selectors. At compile time, this namespace information will be used to map type names to qualified ActionScript class names. At runtime, type selectors are matched on qualified ActionScript class name (for example mx.controls.Button rather than just Button). Flex 3 applications must be compiled with -compatibility-version=3.0.0 to get unqualified CSS type selector behavior.

QE: Yes, this build may help in updating test cases to use the new namespaces and class names.
Dev: Not yet
Doc: Not yet

Modified Paths:
--------------
748 paths were modified

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

--- frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as
+++ frameworks/projects/spark/src/spark/filters/DisplacementMapFilter.as
@@ -1,4 +1,4 @@
-package mx.filters
+package spark.filters
 {


--- as3/com/netease/protobuf/Extension.as
+++ as3/com/netease/protobuf/Extension.as
@@ -10,7 +10,7 @@
 package com.netease.protobuf {
 	import flash.utils.*
 	public final class Extension {
-		public static function repeaedReadFunction(f:Function):Function {
+		public static function repeatedReadFunction(f:Function):Function {
 			return function (input:IDataInput,
 					object:Array, fieldNumber:uint):void {
 				var a:Array = object[fieldNumber]
@@ -27,7 +27,7 @@
 				object[fieldNumber] = f(input)
 			}
 		}
-		public static function repeatedMessageReadFuction(c:Class):Function {
+		public static function repeatedMessageReadFunction(c:Class):Function {
 			return function (input:IDataInput,
 					object:Array, fieldNumber:uint):void {
 				var a:Array = object[fieldNumber]


Remove unused function.

Remove unused function.

--- bin/Data/Scripts/Editor/EditorView.as
+++ bin/Data/Scripts/Editor/EditorView.as
@@ -2000,44 +2000,6 @@
     }
 }

-Vector3 GetScreenCollision(IntVector2 pos)
-{
-    Ray cameraRay = camera.GetScreenRay(float(pos.x) / activeViewport.viewport.rect.width, float(pos.y) / activeViewport.viewport.rect.height);
-    Vector3 res = cameraNode.position + cameraRay.direction * Vector3(0, 0, newNodeDistance);
-
-    bool physicsFound = false;
-    if (editorScene.physicsWorld !is null)
-    {
-        if (!runUpdate)
-            editorScene.physicsWorld.UpdateCollisions();
-
-        PhysicsRaycastResult result = editorScene.physicsWorld.RaycastSingle(cameraRay, camera.farClip);
-
-        if (result.body !is null)
-        {
-            physicsFound = true;
-            result.position;
-        }
-    }
-
-    if (editorScene.octree is null)
-        return res;
-
-    RayQueryResult result = editorScene.octree.RaycastSingle(cameraRay, RAY_TRIANGLE, camera.farClip,
-        DRAWABLE_GEOMETRY, 0x7fffffff);
-
-    if (result.drawable !is null)
-    {
-        // take the closer of the results
-        if (physicsFound && (cameraNode.position - res).length < (cameraNode.position - result.position).length)
-            return res;
-        else
-            return result.position;
-    }
-
-    return res;
-}
-
 Drawable@ GetDrawableAtMousePostion()
 {
     IntVector2 pos = ui.cursorPosition;


Transferred from the Adobe Open Source Subversion Repository

Revision: 19169
Author:   chiedozi@adobe.com
Date:     2010-12-08T21:41:44.966503Z

Log Message:
-----------
The ViewMenu now properly closes when the back key is pressed in a TabbedViewNavigatorApplication

QE notes:
Doc notes:
Bugs:SDK-28795
Reviewer: Jason Szeto
Tests run: checkintests
Is noteworthy for integration: No

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigatorApplication.as
@@ -270,7 +270,11 @@
      */
     override protected function backKeyUpHandler(event:KeyboardEvent):void
     {
-        if (navigator)
+		super.backKeyUpHandler(event);
+
+		if (viewMenuOpen)
+			viewMenuOpen = false;
+		else if (navigator)
             navigator.backKeyUpHandler();
     }


Improved SysClk edgeLengths

Improved SysClk edgeLengths

--- src/Modules/SysDelayClock.as
+++ src/Modules/SysDelayClock.as
@@ -8,7 +8,7 @@
 	 */
 	public class SysDelayClock extends Module {

-		public var edgeLength:int = 1;
+		private var _edgeLength:int = 1;
 		public function SysDelayClock(X:int, Y:int, EdgeLength:int = 1) {
 			super(X, Y, "SysClock", Module.CAT_TIME, 0, 1, 0);
 			configuration = getConfiguration();
@@ -30,7 +30,7 @@
 		}

 		override public function setByConfig():void {
-			edgeLength = configuration.value;
+			_edgeLength = configuration.value;
 		}

 		override public function renderDetails():String {
@@ -52,6 +52,10 @@
 			return NO_EDGE;
 		}

+		public function get edgeLength():int {
+			return U.state ? Math.min(_edgeLength, U.state.time.clockPeriod - 1) : _edgeLength;
+		}
+
 		override protected function getSaveValues():Array {
 			var values:Array = super.getSaveValues();
 			values.push(edgeLength);


http request: Correctly determine content-length

--- src/com/axis/http/request.as
+++ src/com/axis/http/request.as
@@ -19,7 +19,8 @@
       buffer.readBytes(dummy, 0, index + 4);

       var parsed:Object = parse(dummy.toString());
-      if (parsed['content-length'] && int(parsed['content-length']) > buffer.bytesAvailable) {
+      if (parsed.headers['content-length'] &&
+          int(parsed.headers['content-length']) > buffer.bytesAvailable) {
         /* Headers parsed fine, but full body is not here yet. */
         buffer.position = 0;
         return false;


http-request: Stray 'trace', and spelling fix.

--- src/com/axis/http/request.as
+++ src/com/axis/http/request.as
@@ -41,7 +41,7 @@
       ret.proto = status.proto;
       ret.version = status.version;
       ret.code = uint(status.code);
-      ret.messsage = status.message;
+      ret.message = status.message;

       ret.headers = {};
       for each (var header:String in lines) {
@@ -64,7 +64,7 @@
             hdr['www-authenticate'] = {};

           if (/^basic/i.test(val)) {
-            var basicRealm:RegExp = /basic realm=\"([^\"]+)\"/i;
+            var basicRealm:RegExp = /realm=\"([^\"]+)\"/i;
             hdr['www-authenticate'].basicRealm = basicRealm.exec(val)[1];
           }

@@ -75,7 +75,6 @@
               if (2 !== kv.length) continue;

               if (kv[0].toLowerCase() === 'realm') kv[0] = 'digestRealm';
-              trace(kv[0]);
               hdr['www-authenticate'][kv[0]] = kv[1].replace(/^"(.*)"$/, '$1');
             }
           }


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/TextInputAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/TextInputAutomationImpl.as
@@ -0,0 +1,174 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.controls
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import flash.events.KeyboardEvent;
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.TextFieldAutomationHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.core.mx_internal;
+	import mx.core.IUITextField;
+	import mx.controls.TextInput;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  TextInput control.
+	 *
+	 *  @see mx.controls.TextInput
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class TextInputAutomationImpl extends UIComponentAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(TextInput, TextInputAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj TextInput object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function TextInputAutomationImpl(obj:TextInput)
+		{
+			super(obj);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get  textInput():TextInput
+		{
+			return uiComponent as TextInput;
+		}
+
+		/**
+		 *  @private
+		 *  Generic record/replay logic for textfields.
+		 */
+		private var automationHelper:TextFieldAutomationHelper;
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden properties
+		//
+		//--------------------------------------------------------------------------
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [ textInput.text ];
+		}
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function replayAutomatableEvent(interaction:Event):Boolean
+		{
+			return ((automationHelper &&
+				automationHelper.replayAutomatableEvent(interaction)) ||
+				super.replayAutomatableEvent(interaction));
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Event handlers
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Method which gets called after the component has been initialized.
+		 *  This can be used to access any sub-components and act on the component.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		override protected function componentInitialized():void
+		{
+			super.componentInitialized();
+			var textField:IUITextField = textInput.getTextField();
+			automationHelper = new TextFieldAutomationHelper(uiComponent, uiAutomationObject, textField)
+		}
+
+		/**
+		 *  @private
+		 *  Prevent duplicate ENTER key recordings.
+		 */
+		override protected function keyDownHandler(event:KeyboardEvent):void
+		{
+			;
+		}
+
+	}
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 17474
Author:   gruehle@adobe.com
Date:     2010-08-25T00:50:18.671504Z

Log Message:
-----------
MobileTextField event fixes:
* set doubleClickEnabled to true by default to match behavior of RichEditableText
* dispatch a CHANGING event
* Add new TextInputOperation that is sent with CHANGING event.

QE notes: none
Doc notes: we should have an example of using a CHANGING event to cancel keyboard input
Bugs: SDK-27568, SDK-27567
Reviewer: Ryan
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/MobileTextField.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/TextInputOperation.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/build.xml</path>

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

--- frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -13,6 +13,7 @@
 {
 import flash.events.Event;
 import flash.events.KeyboardEvent;
+import flash.events.TextEvent;
 import flash.geom.Rectangle;
 import flash.text.Font;
 import flash.text.TextField;
@@ -104,9 +105,16 @@
     {
         super();

+        // RichEditableText is double-clickable by default, so we will be too.
+        doubleClickEnabled = true;
+
         // Add a high priority change handler so we can capture the event
         // and re-dispatch as a TextOperationEvent
         addEventListener(Event.CHANGE, changeHandler, false, 100);
+
+        // Add a textInput handler so we can capture and re-dispatch as
+        // a TextOperationEvent "changing" event.
+        addEventListener(TextEvent.TEXT_INPUT, textInputHandler);

         // Add a key down listener to listen for enter key
         addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
@@ -683,6 +691,21 @@
         }
     }

+    /**
+     *  @private
+     */
+    private function textInputHandler(event:TextEvent):void
+    {
+        // Dispatch a "changing" event
+        var e:TextOperationEvent = new TextOperationEvent(TextOperationEvent.CHANGING);
+        var operation:TextInputOperation = new TextInputOperation();
+        operation.text = event.text;
+        e.operation = operation;
+
+        if (!dispatchEvent(e))
+            event.preventDefault();
+    }
+
     //--------------------------------------------------------------------------
     //
     //  Variables


Bug 618378 - Vector.slice(a,b) with a>b will OOM (r=lhansen)

--- core/VectorImpl.as
+++ core/VectorImpl.as
@@ -121,6 +121,8 @@
 private function _slice(start: Number=0, end: Number=0x7fffffff) {
     var first:uint = clamp( start, length );
     var limit:uint = clamp( end, length );
+    if (limit < first)
+        limit = first;
     var result = newThisType();
     result.private::_spliceHelper(0, limit-first, 0, this, first);


resolution return value

resolution return value

Changed the resolution return value from streamStatus function to return
an object.

--- src/Player.as
+++ src/Player.as
@@ -205,7 +205,7 @@
       }
       var status:Object = {
         'fps': (this.ns) ? Math.floor(this.ns.currentFPS + 0.5) : null,
-        'resolution': (this.ns) ? (meta.width + 'x' + meta.height) : null,
+        'resolution': (this.ns) ? { width: meta.width, height: meta.height } : null,
         'playbackSpeed': (this.ns) ? 1.0 : null,
         'protocol': (this.urlParsed) ? this.urlParsed.protocol: null,
         'audio': (this.ns) ? this.streamHasAudio : null,


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/ToggleButtonBarAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/ToggleButtonBarAutomationImpl.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Updated test case.

Updated test case.

--- src/avm2/tests/regress/correctness/verifier.as
+++ src/avm2/tests/regress/correctness/verifier.as
@@ -1,6 +1,6 @@
 package {
   trace("--");
-  /*
+
   class A {
     static var sa : int = 1;
     public var pa : int;
@@ -40,7 +40,7 @@
     function boo() {
       var b = f + 1;
       function car() {
-        var c = f + b + 1;
+        var c = f + b + 1w;
         function baz() {
           with (A) {
             with (B) {
@@ -188,8 +188,16 @@
     a.push(1, 2, 3);
   })();

-  */
-
+  (function () {
+    trace(typeof new Array(0));
+  })();
+
+  (function () {
+    var x;
+    with (7) {
+      trace(valueOf());
+    }
+  })();
 }

 function beforeX(x:X) {


OFC-487 BP form:Failure of the system to retrive all the species under specified code AND space to complete the code eg ACA/....???

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/TaxonAttributePresenter.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/presenter/TaxonAttributePresenter.as
@@ -30,7 +30,7 @@
 	 * */
 	public class TaxonAttributePresenter extends CompositeAttributePresenter {

-		private static const MAX_RESULTS:int = 10;
+		private static const MAX_RESULTS:int = 400;
 		private static const SEARCH_BY_CODE:String = "byCode";
 		private static const SEARCH_BY_SCIENTIFIC_NAME:String = "byScientificName";
 		private static const SEARCH_BY_VERNACULAR_NAME:String = "byVernacularName";


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridHeaderRenderer.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridHeaderRenderer.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.advancedDataGridClasses
 {


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

--- frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridRendererProvider.as
+++ frameworks/projects/advancedgrids/src/mx/controls/advancedDataGridClasses/AdvancedDataGridRendererProvider.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.controls.advancedDataGridClasses
 {


remove unnecessary line break

remove unnecessary line break

--- src/com/axis/rtspclient/FLVMux.as
+++ src/com/axis/rtspclient/FLVMux.as
@@ -105,7 +105,6 @@
       container.writeUTFBytes(contents); // String
       return 1 + 2 + contents.length;
     }
-

     private function parseSPS(sps:BitArray):Object {
       var nalhdr:uint      = sps.readBits(8);


Stopped scrollbar from displaying, fixes visual problems when using themes.

--- src/justpinegames/Logi/Console.as
+++ src/justpinegames/Logi/Console.as
@@ -117,6 +117,7 @@
                 consoleItemRenderer.height = 20;
                 return consoleItemRenderer;
             };
+            _list.scrollBarDisplayMode = Scroller.SCROLL_BAR_DISPLAY_MODE_NONE;

             _consoleContainer.addChild(_list);


Added counter to badge

Added counter to badge

--- swfcat.as
+++ swfcat.as
@@ -4,6 +4,7 @@
     import flash.display.StageAlign;
     import flash.display.StageScaleMode;
     import flash.text.TextField;
+    import flash.text.TextFormat;
     import flash.net.Socket;
     import flash.events.Event;
     import flash.events.IOErrorEvent;
@@ -33,19 +34,31 @@
         // Socket to facilitator.
         private var s_f:Socket;

+        /* TextField for debug output. */
         private var output_text:TextField;

         private var fac_addr:Object;

         private var num_proxy_pairs:int = 0;

-        [Embed(source="badge.png")]
+        /* Badge with a client counter */
+        [Embed(source="badge_con_counter.png")]
         private var BadgeImage:Class;
+        private var client_count_tf:TextField;
+        private var client_count_fmt:TextFormat;

         public function puts(s:String):void
         {
             output_text.appendText(s + "\n");
             output_text.scrollV = output_text.maxScrollV;
+        }
+
+        public function update_client_count():void
+        {
+            if (String(num_proxy_pairs).length == 1)
+                client_count_tf.text = "0" + String(num_proxy_pairs);
+            else
+                client_count_tf.text = String(num_proxy_pairs);
         }

         public function swfcat()
@@ -61,6 +74,24 @@
             output_text.backgroundColor = 0x001f0f;
             output_text.textColor = 0x44cc44;

+            /* Setup client counter for badge. */
+            client_count_fmt = new TextFormat();
+            client_count_fmt.color = 0xFFFFFF;
+            client_count_fmt.align = "center";
+            client_count_fmt.font = "courier-new";
+            client_count_fmt.bold = true;
+            client_count_fmt.size = 10;
+            client_count_tf = new TextField();
+            client_count_tf.width = 20;
+            client_count_tf.height = 17;
+            client_count_tf.background = false;
+            client_count_tf.defaultTextFormat = client_count_fmt;
+            client_count_tf.x=47;
+            client_count_tf.y=3;
+
+            /* Update the client counter on badge. */
+            update_client_count();
+
             puts("Starting.");
             // Wait until the query string parameters are loaded.
             this.loaderInfo.addEventListener(Event.COMPLETE, loaderinfo_complete);
@@ -74,8 +105,12 @@

             if (this.loaderInfo.parameters["debug"])
                 addChild(output_text);
-            else
+            else {
                 addChild(new BadgeImage());
+                /* Tried unsuccessfully to add counter to badge. */
+                /* For now, need two addChilds :( */
+                addChild(client_count_tf);
+            }

             fac_spec = this.loaderInfo.parameters["facilitator"];
             if (fac_spec) {
@@ -148,6 +183,10 @@

             num_proxy_pairs++;
             proxy_pair = new ProxyPair(this, client_addr, DEFAULT_TOR_ADDR);
+
+            /* Update the client count on the badge. */
+            update_client_count();
+
             proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                 proxy_pair.log("Complete.");
                 num_proxy_pairs--;


Add a "relay" parameter.

Add a "relay" parameter.

--- swfcat.as
+++ swfcat.as
@@ -43,6 +43,7 @@
         private var output_text:TextField;

         private var fac_addr:Object;
+        private var relay_addr:Object;

         /* Number of proxy pairs currently connected (up to
            MAX_NUM_PROXY_PAIRS). */
@@ -157,6 +158,11 @@
                 puts("Error: Facilitator spec must be in the form \"host:port\".");
                 return;
             }
+            relay_addr = get_param_addr("relay", DEFAULT_RELAY_ADDR);
+            if (!relay_addr) {
+                puts("Error: Relay spec must be in the form \"host:port\".");
+                return;
+            }

             main();
         }
@@ -229,7 +235,7 @@
             /* Update the client count on the badge. */
             update_client_count();

-            proxy_pair = new ProxyPair(this, client_addr, DEFAULT_RELAY_ADDR);
+            proxy_pair = new ProxyPair(this, client_addr, relay_addr);
             proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                 proxy_pair.log("Complete.");


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as
@@ -0,0 +1,247 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.delegates.components.supportClasses
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import flash.events.KeyboardEvent;
+	import flash.events.MouseEvent;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObject;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.automation.tabularData.ContainerTabularData;
+	import mx.core.EventPriority;
+	import mx.core.mx_internal;
+
+	import spark.components.Scroller;
+	import spark.components.supportClasses.GroupBase;
+	import spark.core.IViewport;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  GroupBase control.
+	 *
+	 *  @see spark.components.supportClasses.GroupBase
+	 *
+	 */
+	public class SparkGroupBaseAutomationImpl extends UIComponentAutomationImpl
+	{
+		include "../../../../core/Version.as";
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(spark.components.supportClasses.GroupBase, SparkGroupBaseAutomationImpl);
+		}
+
+		/**
+		 *  Constructor.
+		 * @param obj GroupBase object to be automated.
+		 */
+		public function SparkGroupBaseAutomationImpl(obj:spark.components.supportClasses.GroupBase)
+		{
+			super(obj);
+			obj.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler,
+				false, EventPriority.DEFAULT+1, true );
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get grpBase():GroupBase
+		{
+			return uiComponent as GroupBase;
+		}
+
+
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return super.automationName;
+		}
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return  super.automationValue;
+		}
+
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  Replays click interactions on the button.
+		 *  If the interaction was from the mouse,
+		 *  dispatches MOUSE_DOWN, MOUSE_UP, and CLICK.
+		 *  If interaction was from the keyboard,
+		 *  dispatches KEY_DOWN, KEY_UP.
+		 *  Button's KEY_UP handler then dispatches CLICK.
+		 *
+		 *  @param event ReplayableClickEvent to replay.
+		 */
+		override public function replayAutomatableEvent(event:Event):Boolean
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+
+			if (event is MouseEvent && event.type == MouseEvent.CLICK)
+				return help.replayClick(uiComponent, MouseEvent(event));
+
+			else if (event is MouseEvent && event.type == MouseEvent.MOUSE_WHEEL)
+				return help.replayMouseEvent(uiComponent, event as MouseEvent);
+
+			else if (event is KeyboardEvent)
+				return help.replayKeyboardEvent(uiComponent, KeyboardEvent(event));
+
+			else
+				return super.replayAutomatableEvent(event);
+		}
+
+		override public function createAutomationIDPart(child:IAutomationObject):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPart(uiAutomationObject, child);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function resolveAutomationIDPart(part:Object):Array
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpResolveIDPart(uiAutomationObject, part);
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+			return help.helpCreateIDPartWithRequiredProperties(uiAutomationObject, child,properties);
+
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function getAutomationChildren():Array
+		{
+			var n:int = grpBase.numChildren;
+			var childArray:Array = new Array();
+
+			for ( var i:int = 0; i<n ; i++)
+			{
+				var obj:Object = grpBase.getChildAt(i);
+
+				// here if are getting scrollers, we need to add the viewport's children as the actual children
+				// instead of the scroller
+				if(obj is spark.components.Scroller)
+				{
+					var scroller:spark.components.Scroller = obj as spark.components.Scroller;
+					var viewPort:IViewport =  scroller.viewport;
+					if(viewPort is IAutomationObject)
+						childArray.push(viewPort);
+					if(scroller.horizontalScrollBar)
+						childArray.push(scroller.horizontalScrollBar);
+					if(scroller.verticalScrollBar)
+						childArray.push(scroller.verticalScrollBar);
+				}
+				else
+					childArray.push(obj as IAutomationObject);
+			}
+			return childArray;
+		}
+
+		/**
+		 *  @private
+		 */
+		protected function getInternalScroller():spark.components.Scroller
+		{
+			var n:int = grpBase.numChildren;
+			var childArray:Array = new Array();
+
+			for ( var i:int = 0; i<n ; i++)
+			{
+				var obj:Object = grpBase.getChildAt(i);
+
+				// here if are getting scrollers, we need to add the viewport's children as the actual children
+				// instead of the scroller
+				if(obj is spark.components.Scroller)
+					return obj as spark.components.Scroller;
+			}
+
+			return null;
+		}
+		/**
+		 *  @private
+		 */
+		override public function get automationTabularData():Object
+		{
+			return new ContainerTabularData(uiAutomationObject);
+		}
+
+		/**
+		 *  @private
+		 */
+		private function mouseWheelHandler(event:MouseEvent):void
+		{
+			if(event.target == uiComponent)
+			{
+				recordAutomatableEvent(event, true);
+			}
+		}
+
+		override protected function keyDownHandler(event:KeyboardEvent):void
+		{
+
+			if( event.target == getInternalScroller())
+				recordAutomatableEvent(event);
+		}
+
+	}
+
+}


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkDropDownListBaseAutomationImpl.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Some more work on time

Some more work on time


generateCompoundIterativeTask(): added check for restart

Change-Id: I6274d77b62414671313db76f7320950678ee7996

--- WeaveCore/src/weave/core/StageUtils.as
+++ WeaveCore/src/weave/core/StageUtils.as
@@ -492,6 +492,7 @@
 				if (iTask >= iterativeTasks.length)
 					return 1;

+				var i:int = iTask; // need to detect if iTask changes
 				var iterate:Function = iterativeTasks[iTask] as Function;
 				var progress:Number;
 				if (iterate.length)
@@ -500,8 +501,12 @@
 				}
 				else
 				{
-					while ((progress = iterate()) < 1 && getTimer() < stopTime) { }
+					while (iTask == i && (progress = iterate()) < 1 && getTimer() < stopTime) { }
 				}
+				// if iTask changed as a result of iterating, we need to restart
+				if (iTask != i)
+					return 0;
+
 				var totalProgress:Number = (iTask + progress) / iterativeTasks.length;
 				if (progress == 1)
 					iTask++;


fixed bug generating debug id from qualified class name

--- WeaveJS/src/weavejs/util/DebugUtils.as
+++ WeaveJS/src/weavejs/util/DebugUtils.as
@@ -56,7 +56,7 @@
 			if (!idString)
 			{
 				var idNumber:int = _nextId++;
-				var className:String = Weave.className(object).split(':').pop();
+				var className:String = Weave.className(object).split('.').pop();
 				idString = className + '#' + idNumber;

 				// save lookup from object to idString


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

--- frameworks/projects/mx/src/mx/controls/ButtonBar.as
+++ frameworks/projects/mx/src/mx/controls/ButtonBar.as
@@ -235,6 +235,8 @@
 [IconFile("ButtonBar.png")]

 [MaxChildren(0)]
+
+[Alternative(replacement="spark.components.ButtonBar", since="4.0")]

 /**
  *  The ButtonBar control defines a horizontal or vertical group of


Transferred from the Adobe Open Source Subversion Repository

Revision: 3615
Author:   jimurphy@adobe.com
Date:     2008-10-14T02:23:18.365152Z

Log Message:
-----------
Merged 3.0.x revisions 3562,3592,3612 -> trunk
integrate:
AIK: 20081013
coretech:1.360354
flex-messaging-common.jar: 4.0.0.3605

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-messaging-common.jar</path>
<path kind="file" action="M">/flex/sdk/trunk/in/air/win/AIR Integration Kit.zip</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/in/air/mac/AIR Integration Kit.tbz2</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/rideau.jar</path>

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

--- frameworks/projects/mx/src/mx/controls/DateField.as
+++ frameworks/projects/mx/src/mx/controls/DateField.as
@@ -580,6 +580,8 @@
     public function DateField()
     {
         super();
+
+        addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
     }

     //--------------------------------------------------------------------------
@@ -2447,6 +2449,17 @@
     /**
      *  @private
      */
+    private function removedFromStageHandler(event:Event):void
+    {
+        // Ensure we've unregistered ourselves from PopupManager, else
+        // we'll be leaked.
+        addedToPopupManager = false;
+        PopUpManager.removePopUp(_dropdown);
+    }
+
+    /**
+     *  @private
+     */
     private function dropdown_changeHandler(
                         event:CalendarLayoutChangeEvent):void
     {


CameraAction is not final anymore to allow AR camera actions in minko-in2ar

--- src/aerys/minko/scene/action/camera/CameraAction.as
+++ src/aerys/minko/scene/action/camera/CameraAction.as
@@ -12,7 +12,7 @@
 	import aerys.minko.type.math.Matrix3D;
 	import aerys.minko.type.math.Vector4;

-	public final class CameraAction implements IAction
+	public class CameraAction implements IAction
 	{
 		private var _cameraData	: CameraData	= null;


Fix indent & if statement space.

Fix indent & if statement space.

--- bin/Data/Scripts/Editor/EditorScene.as
+++ bin/Data/Scripts/Editor/EditorScene.as
@@ -522,10 +522,10 @@

 bool ShowLayerMover()
 {
-  if(ui.focusElement is null)
-    return ShowLayerEditor();
-  else
-    return false;
+    if (ui.focusElement is null)
+        return ShowLayerEditor();
+    else
+        return false;
 }

 void SetSceneModified()


15 Tiny baby tweaks to StringUtil

15 Tiny baby tweaks to StringUtil

--- raw/src/org/yellcorp/string/StringUtil.as
+++ raw/src/org/yellcorp/string/StringUtil.as
@@ -77,34 +77,25 @@

     // these can be handy for making E4X expressions a little more succinct
-    public static function beginsWith(query:String, begin:String, caseSensitive:Boolean = true):Boolean
+    public static function startsWith(query:String, start:String, caseSensitive:Boolean = true):Boolean
     {
-        if (caseSensitive)
+        if (!caseSensitive)
         {
-            return query.substr(0, begin.length) == begin;
+            query = query.toLocaleUpperCase();
+            start = start.toLocaleUpperCase();
         }
-        else
-        {
-            // do this here because toLocaleUpperCase could potentially change
-            // the length of the string, i.e. German ß --> SS
-            begin = begin.toLocaleUpperCase();
-            return query.toLocaleUpperCase().substr(0, begin.length) == begin;
-        }
+        return query.slice(0, start.length) == start;
     }

     public static function endsWith(query:String, end:String, caseSensitive:Boolean = true):Boolean
     {
-        if (caseSensitive)
+        if (!caseSensitive)
         {
-            return query.substr(query.length-end.length) == end;
+            query = query.toLocaleUpperCase();
+            end = end.toLocaleUpperCase();
         }
-        else
-        {
-            end = end.toLocaleUpperCase();
-            query = query.toLocaleUpperCase();
-            return query.substr(query.length-end.length) == end;
-        }
+        return query.slice(-end.length) == end;
     }
 }
 }


Mirrored a change in mvcs.Context to nometa.Context.

--- src/org/robotlegs/nometa/Context.as
+++ src/org/robotlegs/nometa/Context.as
@@ -48,10 +48,10 @@
 		{
 			injector.mapValue(DisplayObjectContainer, contextView);
 			injector.mapValue(IInjector, injector);
-			injector.mapValue(IEventDispatcher, this);
+			injector.mapValue(IEventDispatcher, eventDispatcher);
 			injector.mapValue(ICommandMap, commandMap);
 			injector.mapValue(IMediatorMap, mediatorMap);
 		}

 	}
-}+}


added toString() and toNumber()

added toString() and toNumber()

--- WeaveJS/src/weavejs/data/key/QKey.as
+++ WeaveJS/src/weavejs/data/key/QKey.as
@@ -15,7 +15,9 @@

 package weavejs.data.key
 {
+	import weavejs.api.data.ICSVParser;
 	import weavejs.api.data.IQualifiedKey;
+	import weavejs.data.CSVParser;

 	/**
 	 * This class is internal to QKeyManager because instances
@@ -23,14 +25,21 @@
 	 */
 	internal class QKey implements IQualifiedKey
 	{
+		private static const DELIMITER:String = '#';
+		private static var csvParser:ICSVParser;
+		private static var serial:uint = 0;
+
 		public function QKey(keyType:String, localName:*)
 		{
 			kt = keyType;
 			ln = localName;
+			_toNumber = serial++;
 		}

 		private var kt:String;
 		private var ln:*;
+		private var _toNumber:Number;
+		private var _toString:String;

 		/**
 		 * This is the namespace of the QKey.
@@ -48,11 +57,24 @@
 			return ln;
 		}

+		public function toNumber():Number
+		{
+			return _toNumber;
+		}
+
 		// This is a String containing both the namespace and the local name of the QKey
-		//	public function toString():String
-		//	{
-		//		// The # sign is used in anticipation that a key type will be a URI.
-		//		return kt + '#' + ln;
-		//	}
+		public function toString():String
+		{
+			// The # sign is used in anticipation that a key type will be a URI.
+			if (!_toString)
+			{
+				if (!csvParser)
+					csvParser = new CSVParser(false, DELIMITER);
+				_toString = csvParser.createCSVRow([kt, ln]);
+				if (!(ln is String))
+					_toString += DELIMITER + typeof ln;
+			}
+			return _toString;
+		}
 	}
 }


added triggerColumns() function for testing

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -519,5 +519,14 @@

 			return newText;
 		}
+
+		/**
+		 * For testing purposes.
+		 */
+		public function triggerColumns():void
+		{
+			Weave.getDescendants(root, getDefinition('ReferencedColumn'))
+				.forEach(function(column:ILinkableObject):void { getCallbacks(column).triggerCallbacks(); });
+		}
 	}
 }


Weave.registerClass() now adds FLEXJS_CLASS_INFO to the prototype if missing, specifying that the class implements ILinkableObject.

--- WeaveJS/src/Weave.as
+++ WeaveJS/src/Weave.as
@@ -455,6 +455,12 @@
 			var shortName:String = name.split('.').pop().split(':').pop();
 			if (shortName != name)
 				registerClass(shortName, definition);
+
+			if (!definition.prototype.FLEXJS_CLASS_INFO)
+				definition.prototype.FLEXJS_CLASS_INFO = {
+					names: [{ name: shortName, qName: name}],
+					interfaces: [weavejs.api.core.ILinkableObject]
+				};
 		}

 		/**


fixed display bug by expanding root later

--- WeaveUI/src/weave/ui/CustomTree.as
+++ WeaveUI/src/weave/ui/CustomTree.as
@@ -306,11 +306,16 @@
 					firstVisibleItem = _firstVisibleItem;
 			}

+			callLater(expandRootLater);
+
+			// selectedItems must be set last to avoid a bug where the Tree scrolls to the top.
+			selectedItems = _selectedItems;
+		}
+
+		private function expandRootLater():void
+		{
 			if (showRoot && _rootItem && !isItemOpen(_rootItem))
 				expandItem(_rootItem, true);
-
-			// selectedItems must be set last to avoid a bug where the Tree scrolls to the top.
-			selectedItems = _selectedItems;
 		}

 		/**


Added proper error handling that lets the CSS parser/loader drop segments for @imports that can't be loaded instead of throwing exceptions

--- src/reprise/css/CSS.as
+++ src/reprise/css/CSS.as
@@ -295,7 +295,14 @@
 		protected function parseCSSVariables() : void
 		{
 			for (var i : int = 0; i < m_cssSegments.length; i++)
-			{
+			{
+				if (m_cssSegments[i] is CSSImport)
+				{
+					log('w CSS import not loaded: ' + CSSImport(m_cssSegments[i]).url());
+					m_cssSegments.splice(i, 1);
+					i--;
+					continue;
+				}
 				var seg : CSSSegment = CSSSegment(m_cssSegments[i]);
 				var parts : Array = seg.content().split('@define ');

@@ -465,8 +472,7 @@
 		}
 		protected function imagePreloader_complete(event : CommandEvent) : void
 		{
-			log("i preloading complete");
-			dispatchEvent(new CommandEvent(Event.COMPLETE, event.success));
+			notifyComplete(true);
 		}

 		protected function parseCSSSegment(segment : CSSSegment) : Boolean


Added next(), prev(), and swap(), useful functions for quick state/menu-switching purposes, etc.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -352,6 +352,45 @@
 			_seed = (_seed * 16807) % 2147483647;
 			return (_seed / 2147483647) * amount;
 		}
+
+		/**
+		 * Returns the next item after current in the list of options.
+		 * @param	current		The currently selected item (must be one of the options).
+		 * @param	options		An array of all the items to cycle through.
+		 * @param	loop		If true, will jump to the first item after the last item is reached.
+		 * @return	The next item in the list.
+		 */
+		public static function next(current:*, options:Array, loop:Boolean = true):*
+		{
+			if (loop) return options[(options.indexOf(current) + 1) % options.length];
+			return options[Math.max(options.indexOf(current) + 1, options.length - 1)];
+		}
+
+		/**
+		 * Returns the item previous to the current in the list of options.
+		 * @param	current		The currently selected item (must be one of the options).
+		 * @param	options		An array of all the items to cycle through.
+		 * @param	loop		If true, will jump to the last item after the first is reached.
+		 * @return	The previous item in the list.
+		 */
+		public static function prev(current:*, options:Array, loop:Boolean = true):*
+		{
+			if (loop) return options[((options.indexOf(current) - 1) + options.length) % options.length];
+			return options[Math.max(options.indexOf(current) - 1, 0)];
+		}
+
+		/**
+		 * Swaps the current item between a and b. Useful for quick state/string/value swapping.
+		 * @param	current		The currently selected item.
+		 * @param	a			Item a.
+		 * @param	b			Item b.
+		 * @return	Returns a if current is b, and b if current is a.
+		 */
+		public static function swap(current:*, a:*, b:*):*
+		{
+			return current == a ? b : a;
+		}
+
 		/**
 		 * Creates a color value by combining the chosen RGB values.
 		 * @param	R		The red value of the color, from 0 to 255.


Version 1.2.

Version 1.2.

--- net/flashpunk/FP.as
+++ net/flashpunk/FP.as
@@ -19,7 +19,7 @@
 		/**
 		 * The FlashPunk major version.
 		 */
-		public static const VERSION:String = "1.1";
+		public static const VERSION:String = "1.2";

 		/**
 		 * Width of the game.


minor refactor and added position(), last(), first() and hasProperty() XPath special functions

--- src/aerys/minko/scene/SceneIterator.as
+++ src/aerys/minko/scene/SceneIterator.as
@@ -12,11 +12,14 @@
 	import flash.utils.flash_proxy;
 	import flash.utils.getQualifiedClassName;

+	import mx.messaging.channels.StreamingAMFChannel;
+
 	public dynamic class SceneIterator extends Proxy
 	{
 		private static const TYPE_CACHE	: Dictionary		= new Dictionary(true);
 		private static const OPERATORS	: Vector.<String>	= new <String>[
-			"//", "/", "[", "]", "..", ".", "~=", "?=", "=", "@", "*", "(", ")"
+			'//', '/', '[', ']', '..', '.', '~=', '?=', '=', '@', '*', '(', ')',
+			'>=', '>', '<=', '<', '==', '='
 		];
 		private static const REGEX_TRIM	: RegExp			= /^\s+|\s+$/;

@@ -45,13 +48,13 @@
 			return _selection.toString();
 		}

-		override flash_proxy function setProperty(name : *, value : *):void
-		{
-			var propertyName : String = name;
-
-			for each (var node : ISceneNode in _selection)
-				getValueObject(node, _modifier)[propertyName] = value;
-		}
+//		override flash_proxy function setProperty(name : *, value : *):void
+//		{
+//			var propertyName : String = name;
+//
+//			for each (var node : ISceneNode in _selection)
+//				getValueObject(node, _modifier)[propertyName] = value;
+//		}

 		override flash_proxy function getProperty(name : *) : *
 		{
@@ -83,19 +86,19 @@
 			return _selection[int(index - 1)];
 		}

-		override flash_proxy function callProperty(name:*, ...parameters):*
-		{
-			var methodName : String = name;
-
-			for each (var node : ISceneNode in _selection)
-			{
-				var method : Function = getValueObject(node, _modifier)[methodName];
-
-				method.apply(null, parameters);
-			}
-
-			return this;
-		}
+//		override flash_proxy function callProperty(name:*, ...parameters):*
+//		{
+//			var methodName : String = name;
+//
+//			for each (var node : ISceneNode in _selection)
+//			{
+//				var method : Function = getValueObject(node, _modifier)[methodName];
+//
+//				method.apply(null, parameters);
+//			}
+//
+//			return this;
+//		}

 		private function initialize(path : String, selection : Vector.<ISceneNode>) : void
 		{
@@ -189,11 +192,11 @@
 			{
 				var token : String	= getToken(true);

-				if (token == "true")
+				if (token == 'true')
 					value = true;
-				else if (token == "false")
+				else if (token == 'false')
 					value = false;
-				else if (token.indexOf("0x") == 0)
+				else if (token.indexOf('0x') == 0)
 					value = parseInt(token, 16);
 			}

@@ -286,7 +289,7 @@
 			// apply predicates
 			var token : String = getToken();

-			while (token == "[")
+			while (token == '[')
 			{
 				nextToken(token);
 				parsePredicate();
@@ -305,7 +308,17 @@

 			var index	: int	= parseInt(propertyName);

-			if (index.toString() == propertyName)
+			if (propertyName == 'hasController')
+				filterOnController();
+			if (propertyName == 'hasProperty')
+				filterOnProperty();
+			else if (propertyName == 'position')
+				filterOnPosition();
+			else if (propertyName == 'last')
+				filterLast();
+			else if (propertyName == 'first')
+				filterFirst();
+			else if (index.toString() == propertyName)
 			{
 				if (index < _selection.length)
 				{
@@ -315,50 +328,42 @@
 				else
 					_selection.length = 0;
 			}
-			else if (propertyName == 'hasController')
-			{
-				checkNextToken('(');
-				filterOnController(getToken(true));
-				checkNextToken(')');
-			}
 			else
-			{
-				var operator	: String	= getToken(true);
-				var value		: Object	= getValueToken();
-
-				if (operator == "~=")
-					filterOnRegExp(propertyName, String(value), isBinding);
-				else
-					filterOnValue(propertyName, value, isBinding);
-			}
-
-			checkNextToken("]");
-		}
-
-		private function filterOnRegExp(propertyName : String, regExpString : String, isBinding : Boolean) : void
-		{
-			var numNodes	: int		= _selection.length;
-
-			for (var i : int = numNodes - 1; i >= 0; --i)
-			{
-				var node		: ISceneNode	= _selection[i];
-				var nodeValue 	: String		= null;
-
-				if (isBinding && (node['bindings'] is DataBindings))
-					nodeValue = String((node['bindings'] as DataBindings).getProperty(propertyName));
-				else
-					nodeValue = String(getValueObject(node, propertyName));
-
-				var matches		: Array			= nodeValue.match(regExpString);
-
-				if (!matches || matches.length == 0)
-					removeFromSelection(i);
-			}
-		}
-
-		private function filterOnValue(propertyName : String, value : Object, isBinding : Boolean) : void
-		{
-			var numNodes	: int	= _selection.length;
+				filterOnValue(propertyName, isBinding);
+
+			checkNextToken(']');
+		}
+
+		private function filterLast() : void
+		{
+			checkNextToken('(');
+			checkNextToken(')');
+
+			_selection[0] = _selection[uint(_selection.length - 1)];
+			_selection.length = 1;
+		}
+
+		private function filterFirst() : void
+		{
+			checkNextToken('(');
+			checkNextToken(')');
+
+			_selection.length = 1;
+		}
+
+		private function filterOnValue(propertyName : String, isBinding : Boolean = false) : void
+		{
+			var operator	: String	= getToken(true);
+			var chunks		: Array		= [propertyName];
+
+			while (operator == '.')
+			{
+				chunks.push(getToken(true));
+				operator = getToken(true);
+			}
+
+			var value		: Object	= getValueToken();
+			var numNodes	: uint		= _selection.length;

 			for (var i : int = numNodes - 1; i >= 0; --i)
 			{
@@ -368,16 +373,53 @@
 				if (isBinding && (node['bindings'] is DataBindings))
 					nodeValue = (node['bindings'] as DataBindings).getProperty(propertyName);
 				else
-					nodeValue = getValueObject(node, propertyName);
-
-				if (nodeValue != value)
-					removeFromSelection(i);
-			}
-		}
-
-		private function filterOnController(controllerName : Object) : Object
-		{
-			var numNodes	: int		= _selection.length;
+				{
+					try
+					{
+						nodeValue = getValueObject(node, chunks);
+						if (!compare(operator, nodeValue, value))
+							removeFromSelection(i);
+					}
+					catch (e : Error)
+					{
+						removeFromSelection(i);
+					}
+				}
+
+			}
+		}
+
+		private function compare(operator : String, a : Object, b : Object) : Boolean
+		{
+			switch (operator)
+			{
+				case '>' :
+					return a > b;
+				case '>=' :
+					return a >= b;
+				case '<' :
+					return a >= b;
+				case '<=' :
+					return a <= b;
+				case '=' :
+				case '==' :
+					return a == b;
+				case '~=' :
+					var matches	: Array	= String(a).match(b);
+
+					return matches && matches.length != 0;
+				default:
+					throw new Error('Unknown comparison operator \'' + operator + '\'');
+			}
+		}
+
+		private function filterOnController() : Object
+		{
+			checkNextToken('(');
+			var controllerName : String = getToken(true);
+			checkNextToken(')');
+
+			var numNodes	: uint	= _selection.length;

 			for (var i : int = numNodes - 1; i >= 0; --i)
 			{
@@ -404,24 +446,78 @@
 			return null;
 		}

-		private function getValueObject(source : Object, modifier : String) : Object
-		{
-			if (modifier)
-			{
-				var tokens : Array = modifier.split(".");
-
-				for each (var token : String in tokens)
-					source = source[token];
-			}
+		private function filterOnPosition() : void
+		{
+			checkNextToken('(');
+			checkNextToken(')');
+
+			var operator 	: String 	= getToken(true);
+			var value 		: uint 		= uint(parseInt(getToken(true)));
+
+			switch (operator)
+			{
+				case '>':
+					++value;
+				case '>=':
+					_selection = _selection.slice(value);
+					break;
+				case '<':
+					--value;
+				case '<=':
+					_selection = _selection.slice(0, value);
+					break;
+				case '=':
+				case '==':
+					_selection[0] = _selection[value];
+					_selection.length = 1;
+				default:
+					throw new Error('Unknown comparison operator \'' + operator + '\'');
+			}
+		}
+
+		private function filterOnProperty() : void
+		{
+			checkNextToken('(');
+
+			var chunks		: Array 	= [getToken(true)];
+			var operator	: String 	= getToken(true);
+
+			while (operator == '.')
+			{
+				chunks.push(operator);
+				operator = getToken(true);
+			}
+
+			if (operator != ')')
+				throwParseError(')', operator);
+
+			var numNodes : uint	= _selection.length;
+			for (var i : int = numNodes - 1; i >= 0; --i)
+			{
+				try
+				{
+					getValueObject(_selection[i], chunks);
+				}
+				catch (e : Error)
+				{
+					removeFromSelection(i);
+				}
+			}
+		}
+
+		private function getValueObject(source : Object, chunks : Array) : Object
+		{
+			if (chunks)
+				for each (var chunk : String in chunks)
+					source = source[chunk];

 			return source;
 		}

-		private function removeFromSelection(index : int) : void
-		{
-			var numNodes : int = _selection.length;
-
-			--numNodes;
+		private function removeFromSelection(index : uint) : void
+		{
+			var numNodes : uint = _selection.length - 1;
+
 			_selection[index] = _selection[numNodes];
 			_selection.length = numNodes;
 		}
@@ -438,8 +534,7 @@
 										 got		: String) : void
 		{
 			throw new Error(
-				"Parse error: expected '" + expected
-				+ "', got '" + got + "'."
+				'Parse error: expected \'' + expected + '\', got \'' + got + '\'.'
 			);
 		}
 	}


Update Matrix4x4.as

Update Matrix4x4.as

After call compareTo, the TMP_VECTOR.length==32 and toString returns the 32 numbers.

--- src/aerys/minko/type/math/Matrix4x4.as
+++ src/aerys/minko/type/math/Matrix4x4.as
@@ -1135,7 +1135,8 @@

         public function toString() : String
         {
-            return '[Matrix4x4 (' + getRawData(TMP_VECTOR) + ']';
+        	TMP_VECTOR.length = 16;
+            return '[Matrix4x4 (' + getRawData(TMP_VECTOR) + ')]';
         }
 	}
 }


add Matrix4x4.toString()

add Matrix4x4.toString()

--- src/aerys/minko/type/math/Matrix4x4.as
+++ src/aerys/minko/type/math/Matrix4x4.as
@@ -1090,5 +1090,10 @@
 				getScale(_scale);
 			}
 		}
+
+        public function toString() : String
+        {
+            return '[Matrix4x4 (' + getRawData(TMP_VECTOR) + ']';
+        }
 	}
 }


remove Utils class, not needed anymore

remove Utils class, not needed anymore

--- src/com/google/analytics/core/Utils.as
+++ src/com/google/analytics/core/Utils.as
@@ -1,71 +0,0 @@
-/*
- * Copyright 2008 Adobe Systems Inc., 2008 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributor(s):
- *   Zwetan Kjukov <zwetan@gmail.com>.
- *   Marc Alcaraz <ekameleon@gmail.com>.
- */
-
-package com.google.analytics.core
-{
-    /**
-     * Core utilities.
-     */
-    public class Utils
-    {
-
-        /**
-         * This function takes a raw string, and removes all leading and trailing whitespaces (space, new line, CR, tab).
-         * If the inner option is true, trim also whitespaces within the string.
-         */
-        public static function trim( raw:String, everything:Boolean = false ):String
-        {
-            if( raw == "" )
-            {
-                return "";
-            }
-
-            var whitespaces:Array = [" ","\n","\r","\t"];
-            var str:String = raw;
-
-            if( everything )
-            {
-                var i:int;
-                for( i=0; i<whitespaces.length && (str.indexOf( whitespaces[i] ) > -1); i++)
-                {
-                    str = str.split( whitespaces[i] ).join( "" );
-                }
-            }
-            else
-            {
-                var iLeft:int;
-                var iRight:int;
-
-                for( iLeft = 0; (iLeft < str.length) && (whitespaces.indexOf( str.charAt( iLeft ) ) > -1) ; iLeft++ )
-                    {
-                    }
-                str = str.substr( iLeft );
-
-                for( iRight = str.length - 1; (iRight >= 0) && (whitespaces.indexOf( str.charAt( iRight ) ) > -1) ; iRight-- )
-                    {
-                    }
-                str = str.substring( 0, iRight + 1 );
-            }
-
-            return str;
-        }
-
-    }
-}


checking for corner case when there are zero records in numeric column

--- WeaveASJS/src/weavejs/data/source/CSVDataSource.as
+++ WeaveASJS/src/weavejs/data/source/CSVDataSource.as
@@ -617,7 +617,7 @@
 		private function stringsToNumbers(strings:Array, forced:Boolean):Array
 		{
 			var nonNumber:String = null;
-			var foundNumber:Boolean = false;
+			var foundNumber:Boolean = forced;
 			var numbers:Array = new Array(strings.length);
 			var i:int = strings.length;
 			outerLoop: while (i--)


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

--- frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
+++ frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2010 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: 7163
Author:   aharui@adobe.com
Date:     2009-05-21T02:19:55.813792Z

Log Message:
-----------
Initial checkin of frame 1 cleanup.  In an RSL linkage, more classes will now come from the RSL because they are no longer needed in frame 1, and the size of the application SWF will be smaller.

QE Notes: None
Doc Notes: Maybe.  All new classes should be undocumented, but it might be worth checking that and any changes to interfaces
Bugs:
Reviewer: darrell
tests: checkintests mustella/MarshallPlan

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ActiveWindowManager.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/RSLEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Menu.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/MarshalPopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IEmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.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/managers/systemClasses/EventProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwcDependencyRules.java</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/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/core/EmbeddedFontRegistry.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/EmbeddedFont.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/managers/SystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ResourceModuleRSLItem.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/ISWFBridgeProvider.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/FocusManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/resources/ResourceManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IMarshalSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EventListenerRequest.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/ToolTipManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/tools/dependencychecker/frameworkSwcExceptionsList.txt</path>
<path kind="file" action="M">/flex/sdk/trunk/mustella/MustellaResultsParser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.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/managers/SystemManagerGlobals.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SWFBridgeGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/Window.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework_textLayout/src/mx/core/UITLFTextField.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/DragManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/Request.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/framework/src/mx/styles/CSSStyleDeclaration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IActiveWindowManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Application.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/PopUpManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/messaging/config/LoaderConfig.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IFocusManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/DownloadProgressBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/ISystemManagerChildManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/marshalClasses/CursorManagerMarshalMixin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/PopUpData.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ISWFBridgeGroup.as</path>

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as
@@ -520,23 +520,12 @@
         // Calculate global position of label.
         var sm:ISystemManager = systemManager.topLevelSystemManager;
         var sbRoot:DisplayObject = sm.getSandboxRoot();
-        var screen:Rectangle;
+        var screen:Rectangle = sm.getVisibleApplicationRect();;
         var pt:Point = new Point(0, 0);
         pt = label.localToGlobal(pt);
         pt = sbRoot.globalToLocal(pt);

         toolTip.move(pt.x, pt.y + (height - toolTip.height) / 2);
-
-        if (sm != sbRoot)
-        {
-            var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
-                                    false, false,
-                                    "getVisibleApplicationRect");
-            sbRoot.dispatchEvent(request);
-            screen = Rectangle(request.value);
-        }
-        else
-            screen = sm.getVisibleApplicationRect();

         var screenRight:Number = screen.x + screen.width;
         pt.x = toolTip.x;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4489
Author:   chaase@adobe.com
Date:     2009-01-12T21:51:55.997718Z

Log Message:
-----------
Workaround for Flash bug where final column/row are repeated during the transition, causing a cark border artifact. Workaround is to have the shader output alpha=0 for any pixel not in specified bounds (only works if shader specifies width/height, as we do for FxWipe and now do for FxCrossFade).
Also fixed some minor asdoc errors.

QE Notes: None
Doc Notes: None
Bugs:
Reviewer: Corey

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxWipe.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxWipe.pbk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxCrossFade.pbj</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxCrossFade.pbk</path>

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

--- frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
+++ frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
@@ -111,7 +111,7 @@
      *   shaderEffect.shaderProperties = {direction : 1};</listing>
      * or in MXML code, this:<listing version="3.0">
      *   <FxAnimateShaderTransition
-     *       shaderCode="&64;Embed(source="MyShader.pbj", mimeType="application/octet-stream")"
+     *       shaderCode="&64;Embed(source='MyShader.pbj', mimeType='application/octet-stream')"
      *       shaderProperties="{{direction : 1}}}"/>
      * </listing>
      *


- nitpicking

- nitpicking

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

--- src/reprise/controls/LabelButton.as
+++ src/reprise/controls/LabelButton.as
@@ -72,7 +72,10 @@
 		{
 			m_labelDisplay = Label(addComponent('label', null, Label));
 			m_labelDisplay.label = m_label;
-			if (m_label) setLabel(m_label);
+			if (m_label)
+			{
+				setLabel(m_label);
+			}
 		}

 		/**


Fix for RTE in FLEX-33382

Fix for RTE in FLEX-33382

git-svn-id: f8d5f742b420a6a114b58659a4f85f335318e53c@1442453 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/projects/mx/src/mx/controls/ComboBox.as
+++ frameworks/projects/mx/src/mx/controls/ComboBox.as
@@ -1759,7 +1759,7 @@
         if (!initialized || show == _showingDropdown)
             return;

-        if (inTween)
+        if (inTween && tween)
             tween.endTween();

         // Subclasses may extend to do pre-processing
@@ -1916,7 +1916,7 @@
      */
     private function destroyDropdown():void
     {
-        if (inTween)
+        if (inTween && tween)
             tween.endTween();

         displayDropdown(false, null, false);


update kdp version to v3.6.18

update kdp version to v3.6.18

--- kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
+++ kdp3Lib/src/com/kaltura/kdpfl/ApplicationFacade.as
@@ -32,7 +32,7 @@
 		/**
 		 * The current version of the KDP.
 		 */
-		public var kdpVersion : String = "v3.6.17";
+		public var kdpVersion : String = "v3.6.18";

 		/**
 		 * save any mediator name that is registered to this array in order to delete at any time


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

--- frameworks/projects/framework/src/mx/utils/SHA256.as
+++ frameworks/projects/framework/src/mx/utils/SHA256.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.utils
 {


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

--- frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
+++ frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2005-2007 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: 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@1253197 13f79535-47bb-0310-9956-ffa450edef68

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

 package mx.charts.renderers
 {


handle text-align

handle text-align

--- frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
+++ frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
@@ -82,6 +82,11 @@
 			if (paddingRight == null) paddingRight = padding;
 			tf.leftMargin = paddingLeft;
 			tf.rightMargin = paddingRight;
+            var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align");
+            if (align == "center")
+                tf.align = "center";
+            else if (align == "right")
+                tf.align = "right";

 			defaultTextFormat = tf;
 			super.text = value;


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

--- frameworks/projects/framework/src/mx/skins/halo/BrokenImageBorderSkin.as
+++ frameworks/projects/framework/src/mx/skins/halo/BrokenImageBorderSkin.as
@@ -1,13 +1,3 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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.skins.halo
 {