Transferred from the Adobe Open Source Subversion Repository

Revision: 14095
Author:   cframpto@adobe.com
Date:     2010-02-10T17:33:30.511669Z

Log Message:
-----------
Merge 14076 from 4.x branch to trunk.

Revision: 14076
Author:   cframpto@adobe.com
Date:     2010-02-09 15:23:15 -0800 (Tue, 09 Feb 2010)
Log Message:
***********
Add UIComponent.mapKeycodeForLayoutDirection().  This should be called by any keyDownHandlers() which handles Keyboard.LEFT and Keyboard.RIGHT, and optionally for Keyboard.UP and Keyboard.DOWN, if they behave like Keyboard.LEFT and Keyboard.RIGHT.  If the layoutDirection="rtl", it maps LEFT to RIGHT, RIGHT to LEFT, UP to RIGHT and DOWN to LEFT.  This allows the keyDownHandler() to perform the correct action without adding lots of special case code to the key handling code.

QE notes: For layoutDirection="rtl" need to test LEFT, RIGHT, UP and DOWN keys.
Doc notes: None
Bugs: SDK-25330
Reviewed By: Hans
Tests run: checkintests
Is noteworthy for integration: No

Ticket Links:
***********
    http://bugs.adobe.com/jira/browse/SDK-25330

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/MenuBar.as</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks</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/spark/src/spark/components/RadioButton.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/controls/Tree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPanel.as</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/frameworks/projects/framework/src/mx/controls/CalendarLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/Container.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/TileBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/sliderClasses/SliderThumb.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/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as
@@ -480,19 +480,23 @@

         super.keyDownHandler(event);

-        switch (event.keyCode)
+        // If rtl layout, need to swap LEFT/UP for RIGHT/DOWN so correct action
+        // is done.
+        var keyCode:int = mapKeycodeForLayoutDirection(event, true);
+
+        switch (keyCode)
         {
             case Keyboard.UP:
             case Keyboard.LEFT:
             {
-                adjustCaretIndex(-1);
+                    adjustCaretIndex(-1);
                 event.preventDefault();
                 break;
             }
             case Keyboard.DOWN:
             case Keyboard.RIGHT:
             {
-                adjustCaretIndex(+1);
+                    adjustCaretIndex(+1);
                 event.preventDefault();
                 break;
             }


Transferred from the Adobe Open Source Subversion Repository

Revision: 8745
Author:   gruehle@adobe.com
Date:     2009-07-23T03:47:51.107903Z

Log Message:
-----------
Add "inactive" skin state to scroll bars. The inactive state is set when there is no content to scroll through (or maximum <= minimum).

QE notes: Tests need to be added for the new state.
Doc notes: New skin state added to ScrollBar. ASDoc added.
Bugs: SDK-18039
Reviewer: Hans
Tests run: checkintests, qe cyclone
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/HScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/HScrollBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -33,6 +33,17 @@
 import spark.effects.easing.Sine;

 use namespace mx_internal;
+
+/**
+ *  Inactive State
+ *  This is the state when there is no content to scroll through (maximum <= minimum).
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[SkinState("inactive")]

 /**
  *  @copy spark.components.supportClasses.GroupBase#symbolColor
@@ -313,6 +324,32 @@
     //--------------------------------------------------------------------------

     /**
+     *  @private
+     *  Invalidate the skin state when minimum is changed.
+     */
+    override public function set minimum(value:Number):void
+    {
+        if (value == super.minimum)
+            return;
+
+        super.minimum = value;
+        invalidateSkinState();
+    }
+
+    /**
+     *  @private
+     *  Invalidate the skin state when maximum is changed.
+     */
+    override public function set maximum(value:Number):void
+    {
+        if (value == super.maximum)
+            return;
+
+        super.maximum = value;
+        invalidateSkinState();
+    }
+
+    /**
      *  @inheritDoc
      *
      *  @langversion 3.0
@@ -500,6 +537,17 @@
             pageSizeChanged = false;
         }
     }
+
+    /**
+     *  @private
+     */
+    override protected function getCurrentSkinState():String
+    {
+        if (maximum <= minimum)
+            return "inactive";
+
+        return super.getCurrentSkinState();
+    }

     /**
      *  @private


Moved our custom hit-testing here from MsoySprite.
I was hoping to have our nice transparent-pixels-don't-count hitting
for every media container, including any game icon decoration over
an avatar's head, but after moving this I remembered that it may
be pointless, as it *never matters*- flash simply doesn't use this
method to test mouse-overness. So it may be moot, unless we do mouse-over
polling like we do in the RoomView, which is too expensive to do everywhere..

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

--- src/as/com/threerings/flash/MediaContainer.as
+++ src/as/com/threerings/flash/MediaContainer.as
@@ -21,7 +21,7 @@

 package com.threerings.flash {

-//import flash.display.Bitmap;
+import flash.display.Bitmap;
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.display.Loader;
@@ -136,6 +136,7 @@
         } else {
             setupSwfOrImage(url);
         }
+        didShowNewMedia();
     }

     /**
@@ -160,15 +161,23 @@
         addChildAt(disp, 0);
         _media = disp;
         updateContentDimensions(disp.width, disp.height);
-    }
-
-    /**
-     * A place where subclasses can initialize things prior to showing
-     * new media.
+        didShowNewMedia();
+    }
+
+    /**
+     * A place where subclasses can initialize things prior to showing new media.
      */
     protected function willShowNewMedia () :void
     {
         _initialized = false;
+    }
+
+    /**
+     * A place where subclasses can configure things after we've setup new media.
+     */
+    protected function didShowNewMedia () :void
+    {
+        // nothing right now, but call super() you overriders.
     }

     /**
@@ -363,6 +372,53 @@
         // do nothing in base MediaContainer
     }

+    /**
+     * Note: This method is NOT used in normal mouseOver calculations.
+     * Normal mouseOver stuff seems to be completely broken for transparent
+     * images: the transparent portion is a 'hit'. I've (Ray) tried
+     * just about everything to fix this, more than once.
+     *
+     * But if someone *does* call this method (we do, in whirled), then
+     * attempt to do the right thing.
+     */
+    override public function hitTestPoint (
+        x :Number, y :Number, shapeFlag :Boolean = false) :Boolean
+    {
+        // if we're holding a bitmap, do something smarter than the
+        // flash built-in and actually check for *GASP* transparent pixels!
+        try {
+            if (shapeFlag && _media is Loader &&
+                    // the childAllowsParent check here causes a security
+                    // violation if it doesn't. WHAT THE FLYING FUCK.
+                    Loader(_media).contentLoaderInfo.childAllowsParent &&
+                    (Loader(_media).content is Bitmap)) {
+                var b :Bitmap = Bitmap(Loader(_media).content);
+                var p :Point = b.globalToLocal(new Point(x, y));
+                // check that it's within the content bounds, and then check the bitmap directly
+                if (p.x >= 0 && p.x <= getMaxContentWidth() && p.y >= 0 &&
+                        p.y <= getMaxContentHeight() &&
+                        b.bitmapData.hitTest(new Point(0, 0), 0, p)) {
+                    return true;
+
+                } else {
+                    // the bitmap was not hit, see if other children were hit...
+                    for (var ii :int = numChildren - 1; ii >= 0; ii--) {
+                        var child :DisplayObject = getChildAt(ii);
+                        if (child != _media && child.hitTestPoint(x, y, shapeFlag)) {
+                            return true;
+                        }
+                    }
+                    return false;
+                }
+            }
+        } catch (err :Error) {
+            // nada
+        }
+
+        // normal hit testing
+        return super.hitTestPoint(x, y, shapeFlag);
+    }
+
     override public function toString () :String
     {
         return "MediaContainer[url=" + _url + "]";


add a getPlayerVersion method.

add a getPlayerVersion method.

--- src/org/mangui/chromeless/ChromelessPlayer.as
+++ src/org/mangui/chromeless/ChromelessPlayer.as
@@ -49,6 +49,7 @@
             ExternalInterface.addCallback("getType",_getType);
             ExternalInterface.addCallback("getmaxBufferLength",_getmaxBufferLength);
             ExternalInterface.addCallback("getbufferLength",_getbufferLength);
+            ExternalInterface.addCallback("getPlayerVersion",_getPlayerVersion);
             // Connect calls to JS.
             ExternalInterface.addCallback("playerLoad",_load);
             ExternalInterface.addCallback("playerPlay",_play);
@@ -116,6 +117,7 @@
         private function _getType():String { return _hls.getType(); };
         private function _getbufferLength():Number { return _hls.getBufferLength(); };
         private function _getmaxBufferLength():Number { return _hls.maxBufferLength; };
+        private function _getPlayerVersion():Number { return 2; };

         /** Javascript calls. **/
         private function _load(url:String):void { _hls.load(url); };


LinkableVariable now avoids calling setSessionState() from dispose()

--- WeaveJS/src/weavejs/core/LinkableVariable.as
+++ WeaveJS/src/weavejs/core/LinkableVariable.as
@@ -257,7 +257,8 @@
 		override public function dispose():void
 		{
 			super.dispose();
-			setSessionState(null);
+			_sessionStateInternal = undefined;
+			_sessionStateExternal = undefined;
 		}
 	}
 }


updating button frp, LAML git

updating button frp, LAML git

git-svn-id: 02605e11d3a461bc7e12f3f3880edf4b0c8dcfd0@3828 3e7533ad-8678-4d30-8e38-00a379d3f0d0

--- src/laml/display/Button.as
+++ src/laml/display/Button.as
@@ -1,14 +1,23 @@
 package laml.display {
+	import flash.display.Bitmap;
+	import flash.display.BitmapData;
 	import flash.display.DisplayObject;
 	import flash.display.SimpleButton;
 	import flash.events.MouseEvent;

-
+	[Event(name='click', type='MouseEvent')]
+	[Event(name='mouseDown', type='MouseEvent')]
+	[Event(name='mouseMove', type='MouseEvent')]
+	[Event(name='mouseOut', type='MouseEvent')]
+	[Event(name='mouseOver', type='MouseEvent')]
+	[Event(name='mouseUp', type='MouseEvent')]
 	public class Button extends Component {
-		private var _buttonView:SimpleButton;
-
-		public function Button() {
-		}
+		protected const UP_STATE:String = "UpState";
+		protected const OVER_STATE:String = "OverState";
+		protected const DOWN_STATE:String = "DownState";
+		protected const HIT_TEST_STATE:String = "HitTestState";
+
+		protected var _buttonView:SimpleButton;

 		override protected function initialize():void {
 			super.initialize();
@@ -20,9 +29,31 @@

 		override protected function createChildren():void {
 			super.createChildren();
+			createView();
+			createStates();
+		}
+
+		protected function createView():void {
 			buttonView = new SimpleButton();
-			createButtonEventListeners(buttonView);
-			buttonView.useHandCursor = true;
+			decorateButtonViewEventListeners(buttonView);
+		}
+
+		protected function createStates():void {
+			if(defaultUpState) {
+				upState = defaultUpState;
+			}
+
+			if(defaultOverState) {
+				overState = defaultOverState;
+			}
+
+			if(defaultDownState) {
+				downState = defaultDownState;
+			}
+
+			if(defaultHitTestState) {
+				hitTestState = defaultHitTestState;
+			}
 		}

 		override protected function commitProperties():void {
@@ -30,12 +61,22 @@
 			if(!hitTestState) {
 				hitTestState = upState;
 			}
+			if(!overState) {
+				overState = upState;
+			}
+			if(!downState) {
+				downState = overState || upState;
+			}
 		}

 		override protected function updateDisplayList(w:Number, h:Number):void {
+			updateSize(w, h);
+			super.updateDisplayList(w, h);
+		}
+
+		protected function updateSize(w:Number, h:Number):void {
 			buttonView.width = w;
 			buttonView.height = h;
-			super.updateDisplayList(w, h);
 		}

 		public function set upState(upState:DisplayObject):void {
@@ -46,10 +87,6 @@
 			return model.upState;
 		}

-		protected function validateUpState(newValue:*, oldValue:*):void {
-			buttonView.upState = newValue;
-		}
-
 		public function set overState(overState:DisplayObject):void {
 			model.overState = overState;
 		}
@@ -58,10 +95,6 @@
 			return model.overState;
 		}

-		protected function validateOverState(newValue:*, oldValue:*):void {
-			buttonView.overState = newValue;
-		}
-
 		public function set downState(downState:DisplayObject):void {
 			model.downState = downState;
 		}
@@ -70,10 +103,6 @@
 			return model.downState;
 		}

-		protected function validateDownState(newValue:*, oldValue:*):void {
-			buttonView.downState = newValue;
-		}
-
 		public function set hitTestState(hitTestState:DisplayObject):void {
 			model.hitTestState = hitTestState;
 		}
@@ -82,8 +111,44 @@
 			return model.hitTestState;
 		}

+		protected function validateUpState(newValue:*, oldValue:*):void {
+			buttonView.upState = newValue;
+		}
+
+		protected function validateOverState(newValue:*, oldValue:*):void {
+			buttonView.overState = newValue;
+		}
+
+		protected function validateDownState(newValue:*, oldValue:*):void {
+			buttonView.downState = newValue;
+		}
+
 		protected function validateHitTestState(newValue:*, oldValue:*):void {
 			buttonView.hitTestState = newValue;
+		}
+
+		public function get defaultUpState():DisplayObject {
+			var alias:String = unQualifiedClassName + UP_STATE;
+			return getBitmapByName(alias);
+		}
+
+		public function get defaultOverState():DisplayObject {
+			var alias:String = unQualifiedClassName + OVER_STATE;
+			return getBitmapByName(alias);
+		}
+
+		public function get defaultDownState():DisplayObject {
+			var alias:String = unQualifiedClassName + DOWN_STATE;
+			return getBitmapByName(alias);
+		}
+
+		public function get defaultHitTestState():DisplayObject {
+			if(width > 0 && height > 0) {
+				var bitmapData:BitmapData = new BitmapData(width, height);
+				return new Bitmap(bitmapData);
+			}
+
+			return null;
 		}

 		public function set buttonView(simpleButton:SimpleButton):void {
@@ -91,19 +156,29 @@
 				view.removeChild(_buttonView);
 			}
 			_buttonView = view.addChild(simpleButton) as SimpleButton;
+			_buttonView.useHandCursor = true;
 		}

 		public function get buttonView():SimpleButton {
 			return _buttonView;
 		}

-		protected function createButtonEventListeners(button:SimpleButton):void {
-			button.addEventListener(MouseEvent.CLICK, mouseClickHandler);
+		protected function decorateButtonViewEventListeners(button:SimpleButton):void {
+			button.addEventListener(MouseEvent.CLICK, clickHandler);
+			button.addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler);
+			button.addEventListener(MouseEvent.MOUSE_MOVE, mouseEventHandler);
+			button.addEventListener(MouseEvent.MOUSE_OUT, mouseEventHandler);
+			button.addEventListener(MouseEvent.MOUSE_OVER, mouseEventHandler);
+			button.addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler);
 		}

-		protected function mouseClickHandler(event:MouseEvent):void {
-			trace(" CLICk ");
+		protected function clickHandler(mouseEvent:MouseEvent):void {
+			mouseEventHandler(mouseEvent);
 		}
-
+
+		protected function mouseEventHandler(mouseEvent:MouseEvent):void {
+			var event:MouseEvent = new MouseEvent(mouseEvent.type);
+			dispatchEvent(event);
+		}
 	}
 }


Default applications to no-scale and top-left

git-svn-id: 00225d326fbeb9978ee2ea3564602c0fe18eb5d2@1440063 13f79535-47bb-0310-9956-ffa450edef68

--- frameworks/as/src/org/apache/flex/core/Application.as
+++ frameworks/as/src/org/apache/flex/core/Application.as
@@ -19,6 +19,9 @@
 package org.apache.flex.core
 {
     import flash.display.Sprite;
+	import flash.display.StageAlign;
+	import flash.display.StageScaleMode;
+
     import flash.events.Event;

     import org.apache.flex.utils.MXMLDataInterpreter;
@@ -37,12 +40,18 @@
         public function Application()
         {
             super();
+			if (stage)
+			{
+				stage.align = StageAlign.TOP_LEFT;
+				stage.scaleMode = StageScaleMode.NO_SCALE;
+			}
+
             loaderInfo.addEventListener(Event.INIT, initHandler);
         }

         private function initHandler(event:Event):void
         {
-            MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
+	        MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);

             ValuesManager.valuesImpl = valuesImpl;


why u no test drive your bugfix, lazy villain

--- test/robotlegs/bender/extensions/mediatorMap/impl/DefaultMediatorManagerTest.as
+++ test/robotlegs/bender/extensions/mediatorMap/impl/DefaultMediatorManagerTest.as
@@ -102,7 +102,7 @@
 				actual.push(phase);
 			});
 			const mapping:IMediatorMapping = new MediatorMapping(createTypeFilter([Sprite]), SomeMediator);
-			factory.createMediators(view, Sprite, [mapping])
+			factory.createMediators(view, Sprite, [mapping]);
 			factory.removeMediators(view);
 			assertThat(actual, array(expected));
 		}
@@ -122,6 +122,15 @@
 			delayAssertion(function():void {
 				assertThat(mediator.initialized, isTrue());
 			}, 50)
+		}
+
+		[Test]
+		public function mediator_is_given_NonDisplayObject_view():void
+		{
+			const expected:Number = 1.5;
+			const mapping:IMediatorMapping = new MediatorMapping(createTypeFilter([Number]), SomeMediator);
+			const mediator:SomeMediator = factory.createMediators(expected, Number, [mapping])[0];
+			assertThat(mediator.view, equalTo(expected));
 		}

 		/*============================================================================*/


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

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


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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

 package mx.managers
 {


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

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

 package mx.managers
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 11995
Author:   doug.lee@ssbbartgroup.com
Date:     2009-11-19T18:50:30.831767Z

Log Message:
-----------
Updated all AccImpls that use MSAA constants (except TextLayout) to
use the new AccConst references instead of hard-coding hex numbers and
local copies of the constants.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LabelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextInputAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowedApplicationAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/PanelAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SliderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/CheckBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateFieldAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/NumericStepperAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TitleWindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/LinkButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/RadioButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ToggleButtonAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/accessibility/WindowAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DateChooserAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TitleWindowAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/SliderBaseAccImpl.as
@@ -18,6 +18,7 @@
 import flash.utils.getQualifiedClassName;

 import mx.accessibility.AccImpl;
+import mx.accessibility.AccConst;
 import mx.core.UIComponent;
 import mx.core.mx_internal;

@@ -40,65 +41,6 @@

     //--------------------------------------------------------------------------
     //
-    //  Class constants
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private static const ROLE_SYSTEM_INDICATOR:uint = 0x27;
-
-    /**
-     *  @private
-     */
-    private static const ROLE_SYSTEM_PUSHBUTTON:uint = 0x2B;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_SELECTABLE:uint = 0x00200000;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_SELECTED:uint = 0x00000002;
-
-    /**
-     *  @private
-     */
-    private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_FOCUS:uint = 0x8005;
-
-    /**
-     *  @private
-     */
-    private static const EVENT_OBJECT_VALUECHANGE:uint = 0x800E;
-
-
-
-
-    //--------------------------------------------------------------------------
-    //
     //  Class methods
     //
     //--------------------------------------------------------------------------
@@ -157,7 +99,7 @@
     {
         super(master);

-        role = 0x33; // ROLE_SYSTEM_SLIDER
+        role = AccConst.ROLE_SYSTEM_SLIDER;

         master.addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
     }
@@ -183,12 +125,12 @@
             case 1:
             case 3:
             {
-                childRole = ROLE_SYSTEM_INDICATOR;
+                childRole = AccConst.ROLE_SYSTEM_INDICATOR;
                 break;
             }
             case 2:
             {
-                childRole = ROLE_SYSTEM_PUSHBUTTON;
+                childRole = AccConst.ROLE_SYSTEM_PUSHBUTTON;
                 break;
             }
             default:
@@ -325,7 +267,7 @@
             case "change":
             {
                 Accessibility.sendEvent(master, 0,
-                                        EVENT_OBJECT_VALUECHANGE, true);
+                                        AccConst.EVENT_OBJECT_VALUECHANGE, true);
                 break;
             }
         }
@@ -339,7 +281,7 @@
      */
     private function focusInHandler(event:Event):void
     {
-        Accessibility.sendEvent(master, 0, EVENT_OBJECT_FOCUS);
+        Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_FOCUS);
     }
 }
-}+}


qnd: support in "allowCookies" flashvar

qnd: support in "allowCookies" flashvar

git-svn-id: 3f608e5a9a704dd448217c0a64c508e7f145cfa1@85789 6b8eccd3-e8c5-4e7d-8186-e12b5326b719

--- plugins/closedcaptionsFlexible_plugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
+++ plugins/closedcaptionsFlexible_plugin/src/com/kaltura/kdpfl/plugin/component/ClosedCaptionsMediator.as
@@ -217,7 +217,7 @@
 							switchActiveCCFile( ccObj );
 						}

-						if ( ccObj.language )
+						if (_flashvars.allowCookies=="true" && ccObj.language )
 						{
 							try
 							{


Transferred from the Adobe Open Source Subversion Repository

Revision: 10355
Author:   dsubrama@adobe.com
Date:     2009-09-17T20:50:21.870117Z

Log Message:
-----------
Coordinated check-in of SDK and FXGUtils integration for the bitmap-related changes for FXG 2.0 compliancy. This includes several API changes documented below:

1. BitmapGraphic is now BitmapImage in FXG. All this requires is changing the mapping in fxg-manifest.xml
2. BitmapGraphic and BitmapFill's resizeMode property is renamed to fillMode
3. BitmapResizeMode const class is now named BitmapFillMode
4. BitmapFillMode's noScale enum is now called clip
5. Border's backgroundImageResizeMode style is now called backgroundImageFillMode

QE notes: Joan's updated tests
Doc notes: Yes - the API renames needs to be reflected in the documentation
Bugs: N/A
Reviewer: Evtim for SDK, Corey for FXGUtils stuff
Tests run: FXG static and runtime
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/fills/BitmapFillNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/text/AbstractTextNode.java</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/FirstBaselineOffset.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRichTextLeafNode.java</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapResizeMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/ResizeMode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/examples/BitmapImageExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/text/AbstractCharacterTextNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/GripperSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v1_0_Handler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/RestoreButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/halo-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFill.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/strokes/AbstractStrokeNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacCloseButtonSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/FillMode.java</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapResizeMode.as" copyfrom-rev="10282" action="A">/flex/sdk/trunk/frameworks/projects/framework/src/mx/graphics/BitmapFillMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ImageHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RectNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGException_en.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/LinkTarget.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacMinimizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacMaximizeButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/CloseButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/AbstractFXGNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/GraphicContentNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRichTextNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/BitmapGraphicNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/TitleBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXG_v2_0_Handler.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGConstants.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/VerticalAlign.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/LinkNode.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/spark/skins/spark/windowChrome/MacTitleBarSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/primitives/BitmapImage.as
+++ frameworks/projects/spark/src/spark/primitives/BitmapImage.as
@@ -27,7 +27,7 @@
 import flash.net.URLRequest;
 import flash.system.LoaderContext;

-import mx.graphics.BitmapResizeMode;
+import mx.graphics.BitmapFillMode;

 import spark.primitives.supportClasses.GraphicElement;

@@ -113,50 +113,50 @@
     private var previousUnscaledHeight:Number;

     //----------------------------------
-    //  resizeMode
+    //  fillMode
     //----------------------------------

     /**
      *  @private
      */
-    protected var _resizeMode:String = BitmapResizeMode.SCALE;
-
-    [Inspectable(category="General", enumeration="noScale,repeat,scale", defaultValue="scale")]
-
-    /**
-     *  The resizeMode determines how the bitmap fills in the dimensions. If you set the value
+    protected var _fillMode:String = BitmapFillMode.SCALE;
+
+    [Inspectable(category="General", enumeration="clip,repeat,scale", defaultValue="scale")]
+
+    /**
+     *  The fillMode determines how the bitmap fills in the dimensions. If you set the value
      *  of this property in a tag, use the string (such as "repeat"). If you set the value of
-     *  this property in ActionScript, use the constant (such as BitmapResizeMode.NOSCALE).
+     *  this property in ActionScript, use the constant (such as BitmapFillMode.CLIP).
      *
-     *  When set to BitmapResizeMode.NOSCALE ("noScale"), the bitmap
+     *  When set to BitmapFillMode.clip ("clip"), the bitmap
      *  ends at the edge of the region.
      *
-     *  When set to BitmapResizeMode.REPEAT ("repeat"), the bitmap
+     *  When set to BitmapFillMode.REPEAT ("repeat"), the bitmap
      *  repeats to fill the region.
      *
-     *  When set to BitmapResizeMode.SCALE ("scale"), the bitmap
+     *  When set to BitmapFillMode.SCALE ("scale"), the bitmap
      *  stretches to fill the region.
      *
-     *  @default BitmapResizeMode.SCALE
+     *  @default BitmapFillMode.SCALE
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public function get resizeMode():String
-    {
-        return _resizeMode;
-    }
-
-    /**
-     *  @private
-     */
-    public function set resizeMode(value:String):void
-    {
-        if (value != _resizeMode)
-        {
-            _resizeMode = value;
+    public function get fillMode():String
+    {
+        return _fillMode;
+    }
+
+    /**
+     *  @private
+     */
+    public function set fillMode(value:String):void
+    {
+        if (value != _fillMode)
+        {
+            _fillMode = value;
             invalidateDisplayList();
         }
     }
@@ -366,16 +366,16 @@
         var fillWidth:Number = unscaledWidth;
         var fillHeight:Number = unscaledHeight;

-        switch(_resizeMode)
-        {
-            case BitmapResizeMode.REPEAT:
+        switch(_fillMode)
+        {
+            case BitmapFillMode.REPEAT:
                 if (_bitmapData)
                 {
                     repeatBitmap = true;
                 }
             break;

-            case BitmapResizeMode.SCALE:
+            case BitmapFillMode.SCALE:
                 if (_bitmapData)
                 {
                     fillScaleX = unscaledWidth / _bitmapData.width;
@@ -383,7 +383,7 @@
                 }
             break;

-            case BitmapResizeMode.NOSCALE:
+            case BitmapFillMode.CLIP:
                 if (_bitmapData)
                 {
                     fillWidth = Math.min(unscaledWidth, _bitmapData.width);
@@ -392,8 +392,8 @@
             break;
         }

-        // If no scaleGrid is defined or if resizeMode != SCALE, just draw the entire rect
-        if (_resizeMode != BitmapResizeMode.SCALE ||
+        // If no scaleGrid is defined or if fillMode != SCALE, just draw the entire rect
+        if (_fillMode != BitmapFillMode.SCALE ||
             isNaN(_scaleGridTop) ||
             isNaN(_scaleGridBottom) ||
             isNaN(_scaleGridLeft) ||


The larger point is, we shouldn't throw an uninformative NPE.

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

--- src/as/com/threerings/ezgame/EZGameControl.as
+++ src/as/com/threerings/ezgame/EZGameControl.as
@@ -165,9 +165,7 @@
      */
     public function get (propName :String, index :int = -1) :Object
     {
-        if (_gameData == null) {
-            return null;
-        }
+        checkIsConnected();

         var value :Object = _gameData[propName];
         if (index >= 0) {
@@ -572,6 +570,10 @@
             } catch (err :Error) {
                 trace("Unable to call ez code: " + err);
             }
+
+        } else {
+            // if _funcs is null, this will almost certainly throw an error..
+            checkIsConnected();
         }
     }

@@ -583,6 +585,18 @@
         // var args
         args.unshift(name);
         callEZCode.apply(this, args);
+    }
+
+    /**
+     * Throw an error if we're not connected.
+     */
+    protected function checkIsConnected () :void
+    {
+        if (!isConnected()) {
+            throw new IllegalOperationError("The game is not connected " +
+                "to The Whirled, please check isConnected(). If false, your " +
+                "game is being viewed standalone and should adjust.");
+        }
     }

     /**


No longer including subfolder name in default session state export
filename

Change-Id: I70b2649c03240ad2f2a48aeccc82404bb873c006

--- WeaveUI/src/weave/application/VisApplication.as
+++ WeaveUI/src/weave/application/VisApplication.as
@@ -985,7 +985,8 @@
 					if (_usingDeprecatedFlashVar)
 						reportError(DEPRECATED_FLASH_VAR_MESSAGE);
 				}
-				Weave.fileName = fileName;
+				if (fileName)
+					Weave.fileName = fileName.split('/').pop();
 			}
 			catch (error:Error)
 			{


call BitmapData.dispose() to dispose each temporary bitmap data object when TextureResource.setContentFromBitmapData() has been called to free the memory as soon as possible

--- src/aerys/minko/type/loader/TextureLoader.as
+++ src/aerys/minko/type/loader/TextureLoader.as
@@ -99,10 +99,13 @@
 			if (assetObject is Bitmap || assetObject is BitmapData)
 			{
 				var bitmapData : BitmapData = assetObject as BitmapData;
+
 				if (bitmapData == null)
 					bitmapData = Bitmap(assetObject).bitmapData;

 				_textureResource.setContentFromBitmapData(bitmapData, _mipmap);
+				bitmapData.dispose();
+
 				_isComplete = true;
 				_complete.execute(this, _textureResource);
 			}
@@ -139,6 +142,7 @@
 				bytes.position = 0;

 				var loader : Loader = new Loader();
+
 				loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadBytesCompleteHandler);
 				loader.loadBytes(bytes);
 			}
@@ -150,7 +154,11 @@

 			if (displayObject is Bitmap)
 			{
-				_textureResource.setContentFromBitmapData(Bitmap(displayObject).bitmapData, _mipmap);
+				var bitmapData : BitmapData = Bitmap(displayObject).bitmapData;
+
+				_textureResource.setContentFromBitmapData(bitmapData, _mipmap);
+				bitmapData.dispose();
+
 				_isComplete = true;
 				_complete.execute(this, _textureResource);
 			}
@@ -160,7 +168,10 @@

 				className = className.substr(className.lastIndexOf(':') + 1);
 				_isComplete = true;
-				throw new Error('No texture can be created from an object of type \'' + className + '\'');
+
+				throw new Error(
+					'No texture can be created from an object of type \'' + className + '\''
+				);
 			}
 		}


CompilerOptions: fixed value of INCLUDE_NAMESPACES constant

--- src/com/as3mxml/asconfigc/CompilerOptions.as
+++ src/com/as3mxml/asconfigc/CompilerOptions.as
@@ -74,7 +74,7 @@

 		//library options
 		public static const INCLUDE_CLASSES:String = "include-classes";
-		public static const INCLUDE_NAMESPACES:String = "include-namespace";
+		public static const INCLUDE_NAMESPACES:String = "include-namespaces";
 		public static const INCLUDE_SOURCES:String = "include-sources";
 	}
 }


Fixed wrong offsets in rcCalcBounds method.

--- as3_lib/src/recastnavigation/recast/RCConfig.as
+++ as3_lib/src/recastnavigation/recast/RCConfig.as
@@ -153,7 +153,7 @@

 			var verts_ptr:int = mallocNumberVector(verts);
 			var nv:int = verts.length / 3;
-			internal_rcCalcBounds(verts_ptr, nv, ptr + OFFSET_WIDTH, ptr + OFFSET_HEIGHT);
+			internal_rcCalcBounds(verts_ptr, nv, ptr + OFFSET_BMIN, ptr + OFFSET_BMAX);
 			CModule.free(verts_ptr);

 		}


Added getAllMetadata()

Added getAllMetadata()

--- WeaveAPI/src/weave/api/data/ColumnMetadata.as
+++ WeaveAPI/src/weave/api/data/ColumnMetadata.as
@@ -31,5 +31,12 @@
 		public static const DATE_FORMAT:String = "dateFormat";
 		public static const MIN:String = "min";
 		public static const MAX:String = "max";
+
+		public static function getAllMetadata(column:IAttributeColumn):Object
+		{
+			var meta:Object = {};
+			column.getMetadataPropertyNames().forEach(function(n:*):*{ meta[n] = column.getMetadata(n); });
+			return meta;
+		}
 	}
 }


fix coding style

fix coding style

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -710,8 +710,8 @@

 			if (drawCalls != null)
 			{
-				var numCalls	: uint				= drawCalls.length;
-				var frame		: uint				= mesh.frame;
+				var numCalls	: uint	= drawCalls.length;
+				var frame		: uint	= mesh.frame;

 				for (var callId : uint = 0; callId < numCalls; ++callId)
 				{


fix _numDrawCalls/_numEnabledDrawCalls update un RenderingController

--- src/aerys/minko/scene/controller/scene/RenderingController.as
+++ src/aerys/minko/scene/controller/scene/RenderingController.as
@@ -244,8 +244,7 @@
 			applyBindingChanges();

 			_numEnabledPasses = 0;
-			_numDrawCalls = 0;
-
+
 			var context			: Context3DResource	= viewport.context3D;
 			var backBuffer 		: RenderTarget		= getRenderingBackBuffer(viewport.backBuffer);
 			var numPasses		: uint 				= _passes.length;
@@ -272,8 +271,6 @@
 			var previousCall	: DrawCall			= null;
 			var passes			: Array				= _passes.concat();

-			_numEnabledDrawCalls = 0;
-
 			for (passId = 0; passId < numPasses; ++passId)
 			{
 				var pass			: ShaderInstance	= passes[passId];
@@ -312,11 +309,9 @@

 				for (var j : uint = 0; j < numCalls; ++j)
 				{
-					_numDrawCalls++;
 					call = calls[j];
 					if (call.enabled)
 					{
-						_numEnabledDrawCalls++;
 						numTriangles += call.apply(context, previousCall);
 						previousCall = call;
 					}
@@ -587,6 +582,8 @@

 				drawCalls[instanceId] = drawCall;
 				++_numDrawCalls;
+                if (drawCall.enabled)
+                    ++_numEnabledDrawCalls;

 				// retain the instance, update indexes, watch for invalidation, give to renderingList.
 				bindShaderInstance(passInstance, drawCall, meshBindings);
@@ -617,6 +614,9 @@
     			var numDrawCalls	: uint	            = drawCalls.length;

     			unbindEffectInstance(effectInstance, meshBindings);
+
+                if (_numDrawCalls == 0)
+                    throw new Error();

     			for (var drawCallId : uint = 0; drawCallId < numDrawCalls; ++drawCallId)
     			{
@@ -624,6 +624,9 @@
     				var drawCall		: DrawCall			= drawCalls[drawCallId];
     				var passInstance	: ShaderInstance	= _drawCallToPassInstance[drawCall];

+                    if (drawCall.enabled)
+                        --_numEnabledDrawCalls;
+
     				unbindShaderInstance(passInstance, drawCall, meshBindings);
     			}
     			_numDrawCalls -= numDrawCalls;


Bug 407894: left some unnecessary traces in the code, was caught by the differential testing.

--- test/acceptance/as3/ShellClasses/toplevel.as
+++ test/acceptance/as3/ShellClasses/toplevel.as
@@ -131,17 +131,13 @@
             if ( (t2 & (t2 -1)) == 0 )
                 count++;
         }
-        var d2:Date = new Date()
-        trace("DATE FIDD: " + Math.abs(new Date(d1) - new Date(d2)))
-
         if (count == 10)
             return false;
         else
             return true;
     }

-    trace(notPower2());
-    AddTestCase("System getTimer NOT power of 2, bug 407894",
+    AddTestCase("System getTimer bug 407894",
       true,
       notPower2());

@@ -153,5 +149,5 @@
     System.trace(["trace message ln \n","trace message cr \r"]);
     System.write("write message to stdout");
     System.exit(0);
-
+


don't use timer for consuming fetch bin result

--- src/org/hola/JSURLStream.as
+++ src/org/hola/JSURLStream.as
@@ -183,6 +183,9 @@
             var prev : Number = _resource.position;
             var len : Number =
                 Math.min(fetchBinStream.bytesAvailable, 128*1024);
+            // XXX arik: seems that flashls already have timer to process data
+            // so no need for this one
+            len = fetchBinStream.bytesAvailable;
             if (len)
             {
                 fetchBinStream.readBytes(_resource, _resource.length, len);


updated test suite

updated test suite

--- test/AllTests.as
+++ test/AllTests.as
@@ -9,11 +9,6 @@

 	import as3spec.*;
 	import com.gigya.WildfireTest;
-	import controllers.ApplicationControllerTest;
-	import controllers.OrdersControllerTest;
-	import controllers.ProductsControllerTest;
-	import models.domain.OrderTest;
-	import models.domain.ProductTest;
 	import ras3r.HashTest;
 	import ras3r.reaction_view.helpers.BoxHelperTest;
 	import ras3r.reaction_view.helpers.ComboBoxHelperTest;
@@ -26,24 +21,12 @@
 	import ras3r.ReactionControllerTest;
 	import ras3r.ReactionViewTest;
 	import ras3r.reactive_resource.ResponseTest;
-	import views.layouts.ApplicationLayoutTest;
-	import views.orders.NewOrderTest;
-	import views.orders.PayOrderTest;
-	import views.orders.ReviewOrderTest;
-	import views.orders.ShowOrderTest;
-	import views.orders.SubtotalOrderTest;
-	import views.products.ShowProductTest;

 	public class AllTests extends Suite
 	{
 		public function AllTests ()
 		{
 			add(com.gigya.WildfireTest);
-			add(controllers.ApplicationControllerTest);
-			add(controllers.OrdersControllerTest);
-			add(controllers.ProductsControllerTest);
-			add(models.domain.OrderTest);
-			add(models.domain.ProductTest);
 			add(ras3r.HashTest);
 			add(ras3r.reaction_view.helpers.BoxHelperTest);
 			add(ras3r.reaction_view.helpers.ComboBoxHelperTest);
@@ -56,13 +39,6 @@
 			add(ras3r.ReactionControllerTest);
 			add(ras3r.ReactionViewTest);
 			add(ras3r.reactive_resource.ResponseTest);
-			add(views.layouts.ApplicationLayoutTest);
-			add(views.orders.NewOrderTest);
-			add(views.orders.PayOrderTest);
-			add(views.orders.ReviewOrderTest);
-			add(views.orders.ShowOrderTest);
-			add(views.orders.SubtotalOrderTest);
-			add(views.products.ShowProductTest);
 		}
 	}
 }


trace removed

trace removed

--- srceditor/com/benoitfreslon/layoutmanager/BFSprite.as
+++ srceditor/com/benoitfreslon/layoutmanager/BFSprite.as
@@ -7,7 +7,6 @@
 	dynamic public class BFSprite extends BFObject {

 		public function BFSprite() {
-			trace("BFSprite");
 			super();
 			mainClass = "starling.display.Sprite";
 		}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5097
Author:   gauravj@adobe.com
Date:     2009-02-27T02:06:23.424936Z

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

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

Modified Paths:
--------------
<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/airframework/src/mx/controls/fileSystemClasses/FileSystemTreeDataDescriptor.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/fileSystemClasses/FileSystemControlHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemRawChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode.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/airframework/src/mx/events/FlexNativeWindowBoundsEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as</path>

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

--- frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as
+++ frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as
@@ -33,6 +33,10 @@
  *  @see mx.core.Window
  *  @see mx.core.WindowedApplication
  *
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class StatusBar extends UIComponent
 {
@@ -46,6 +50,10 @@

     /**
      *  Constructor.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function StatusBar():void
     {
@@ -89,6 +97,10 @@
      *  The string that appears in the status bar, if it is visible.
      *
      *  @default ""
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public function get status():String
     {
@@ -113,6 +125,10 @@

     /**
      *  A reference to the UITextField that displays the status bar's text.
+     *
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
      */
     public var statusTextField:IUITextField;


Transferred from the Adobe Open Source Subversion Repository

Revision: 8679
Author:   jimurphy@adobe.com
Date:     2009-07-20T13:23:31.007823Z

Log Message:
-----------
These are Asdoc edit from 3.x rev 8623.  I somehow missed committing these when they were supposed to be committed during my previous merge.

bug: no
qa: no
doc: no
checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Consumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicProducer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingConnectionHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/CallResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MultiTopicConsumer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/MessageResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingAMFChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ConfigMap.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/Responder.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/StreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/XMLLoadEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/IResponder.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Producer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/SecureStreamingHTTPChannel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/events/WSDLLoadEvent.as</path>

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

--- frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as
+++ frameworks/projects/rpc/src/mx/messaging/messages/HTTPRequestMessage.as
@@ -63,6 +63,7 @@
      *  Indicates the content type of this message.
      *  This value must be understood by the destination this request is sent to.
      *
+     *
The following example sets the contentType property:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -109,6 +110,7 @@
      *  This is the URL that the content of this message, found in the
      *  body property, will be sent to, using the method specified.
      *
+     *
The following example sets the url property:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -159,6 +161,7 @@
      *
HTTPRequestMessage.TRACE_METHOD

      *

      *
+     *
The following example sets the method property:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -203,6 +206,7 @@
     /**
      *  Indicates that the content of this message is XML.
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_XML;
@@ -221,6 +225,7 @@
     /**
      *  Indicates that the content of this message is a form.
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -240,6 +245,7 @@
      *  Indicates that the content of this message is XML meant for a SOAP
      *  request.
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_SOAP_XML;
@@ -258,6 +264,7 @@
     /**
      *  Indicates that the method used for this request should be "post".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -276,6 +283,7 @@
     /**
      *  Indicates that the method used for this request should be "get".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -294,6 +302,7 @@
     /**
      *  Indicates that the method used for this request should be "put".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -312,6 +321,7 @@
     /**
      *  Indicates that the method used for this request should be "head".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -330,6 +340,7 @@
     /**
      *  Indicates that the method used for this request should be "delete".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -348,6 +359,7 @@
     /**
      *  Indicates that the method used for this request should be "options".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;
@@ -366,6 +378,7 @@
     /**
      *  Indicates that the method used for this request should be "trace".
      *
+     *
The following example uses this constant:

      *

      *      var msg:HTTPRequestMessage = new HTTPRequestMessage();
      *      msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM;


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkApplicationAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkApplicationAutomationImpl.as
@@ -0,0 +1,243 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+	import flash.display.DisplayObject;
+	import flash.display.DisplayObjectContainer;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationManager2;
+	import mx.automation.IAutomationObject;
+	import mx.core.mx_internal;
+
+	import spark.components.Application;
+	import spark.core.IViewport;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  Application class.
+	 *
+	 *  @see spark.components.Application
+	 *
+	 */
+	public class SparkApplicationAutomationImpl extends SparkSkinnableContainerAutomationImpl
+	{
+
+		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.Application, SparkApplicationAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj Application object to be automated.
+		 */
+		public function SparkApplicationAutomationImpl(obj:spark.components.Application)
+		{
+			super(obj);
+			recordClick = true;
+		}
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			var am:IAutomationManager2 = Automation.automationManager2;
+			return am.getUniqueApplicationId();
+		}
+
+		/**
+		 *  @private
+		 */
+		protected function get application():spark.components.Application
+		{
+			return uiComponent as spark.components.Application;
+		}
+
+		/**
+		 *  @private
+		 */
+		override protected function componentInitialized():void
+		{
+			super.componentInitialized();
+			// Override for situations where an app is loaded into another
+			// application. Find the Flex loader that contains us.
+			var owner:IAutomationObject = application.owner as IAutomationObject;
+
+			if ((!owner)  && application.systemManager.isTopLevel() == false)
+			{
+				try
+				{
+					var findAP:DisplayObject = application.parent;
+
+					owner = findAP as IAutomationObject;
+					while (findAP && !(owner))
+					{
+						findAP = findAP.parent;
+						owner = findAP as IAutomationObject;
+					}
+
+					application.owner = owner as DisplayObjectContainer;
+				}
+				catch (e:Error)
+				{
+				}
+			}
+		}
+
+
+		override public function getAutomationChildren():Array
+		{
+			var childList:Array = new Array();
+
+			var am:IAutomationManager2 = Automation.automationManager2;
+
+			// we need to add popup children
+
+			var tempChildren1:Array  = am.getPopoupChildren();
+			var n:int = 0;
+			var i:int = 0;
+
+			if(tempChildren1)
+			{
+				n = tempChildren1.length;
+				for (i = 0; i < n ; i++)
+					childList.push(tempChildren1[i] as IAutomationObject);
+			}
+
+			// Add the children in Control Bar first
+			// For Halo application, control bar used to be an object of type
+			// ApplicationControlBar which used to contain all the controls
+			// that are intended to appear in control bar. It had a property to dock.
+			// But in spark application, all the contents of control bar are added as
+			// direct children of a group which inturn is a child of Application.
+			// Group doesn't have a property to dock. So we assume we need not handle
+			// that case for spark applications. Also the controls in controlBarGroup
+			// are added as direct children of application as in the case of the controls
+			// in contentGroup
+			var tempChildren:Array  = getControlBarChildren();
+			if(tempChildren)
+			{
+				n = tempChildren.length;
+				for ( i = 0; i < n ; i++)
+				{
+					childList.push(tempChildren[i] as IAutomationObject);
+				}
+			}
+
+			n = application.contentGroup.numChildren;
+			for (i = 0; i < n ; i++)
+			{
+				var obj:Object = application.contentGroup.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)
+						childList.push(viewPort);
+					if(scroller.horizontalScrollBar)
+						childList.push(scroller.horizontalScrollBar);
+					if(scroller.verticalScrollBar)
+						childList.push(scroller.verticalScrollBar);
+				}
+				else
+					childList.push(obj as IAutomationObject);
+			}
+
+			tempChildren =  application.repeaters;
+			if (tempChildren)
+			{
+				n = tempChildren.length;
+				for (i = 0; i < n ; i++)
+				{
+					childList.push(tempChildren[i] as IAutomationObject);
+				}
+			}
+
+			var scrollBars:Array = getScrollBars(application, application.contentGroup);
+			n = scrollBars ? scrollBars.length :0;
+
+			for ( i=0; i<n ; i++)
+			{
+				childList.push(scrollBars[i]);
+			}
+
+			return childList;
+		}
+
+		/**
+		 *  @private
+		 */
+		private function getControlBarChildren():Array
+		{
+			var childrenList:Array = new Array();
+			if(application.controlBarGroup != null)
+			{
+				var n:int = application.controlBarGroup.numChildren;
+				for (var i:int = 0; i < n ; i++)
+				{
+					var obj:Object = application.controlBarGroup.getChildAt(i);
+					childrenList.push(obj);
+				}
+			}
+			return childrenList;
+		}
+
+		override public function getAutomationChildAt(index:int):IAutomationObject
+		{
+			var controlBarChildren:Array = getControlBarChildren();
+			if(index < controlBarChildren.length)
+				return  controlBarChildren[index] as IAutomationObject;
+
+			var numChildren:int = application.contentGroup.numChildren;
+			numChildren += controlBarChildren;
+			if(index < numChildren )
+				return   application.contentGroup.getChildAt(index) as IAutomationObject;
+			else
+			{
+				index = index - numChildren;
+				var scrollBars:Array = getScrollBars(application,application.contentGroup);
+				if(scrollBars && index < scrollBars.length)
+					return scrollBars[index];
+			}
+			return null;
+		}
+
+	}
+
+}


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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as
@@ -0,0 +1,87 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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
+{
+	import flash.display.DisplayObject;
+	import flash.events.KeyboardEvent;
+	import flash.ui.Keyboard;
+
+	import mx.automation.Automation;
+	import mx.core.mx_internal;
+
+	import spark.automation.delegates.components.supportClasses.SparkButtonBaseAutomationImpl;
+	import spark.components.RadioButton;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  RadioButton control.
+	 *
+	 *  @see spark.components.RadioButton
+	 *
+	 */
+	public class SparkRadioButtonAutomationImpl extends SparkButtonBaseAutomationImpl
+	{
+		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.RadioButton, SparkRadioButtonAutomationImpl);
+		}
+
+		/**
+		 *  Constructor.
+		 * @param obj RadioButton object to be automated.
+		 */
+		public function SparkRadioButtonAutomationImpl(obj:spark.components.RadioButton)
+		{
+			super(obj);
+
+		}
+
+		/**
+		 *  @private
+		 *  Support the use of keyboard within the group.
+		 */
+		override protected function keyDownHandler(event:KeyboardEvent):void
+		{
+			switch (event.keyCode)
+			{
+				case Keyboard.DOWN:
+				case Keyboard.UP:
+				case Keyboard.LEFT:
+				case Keyboard.RIGHT:
+					//for form defaults:
+				case Keyboard.ENTER:
+					recordAutomatableEvent(event);
+					break;
+			}
+		}
+
+
+	}
+
+}


correct KEY_ESC to KEY_ESCAPE

correct KEY_ESC to KEY_ESCAPE

--- DroneAnarchy/Resources/Scripts/LevelManager.as
+++ DroneAnarchy/Resources/Scripts/LevelManager.as
@@ -568,7 +568,7 @@
 	{
 		int key = eventData["key"].GetInt();

-		if(key == KEY_ESC)
+		if(key == KEY_ESCAPE)
 			globalVars["STATUS_ID"] = LSTATUS_QUIT;
 		else if(levelState_ == LS_OUTGAME)
 		{


Change 20090309-bargull-tGm by bargull@dell--p4--2-53 on 2009-03-09 02:14:09
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: handle invalid files in SoundMC

New Features:

Bugs Fixed: LPP-7880 (SWF8: mp3 loading responds with error-swf / onerror not dispatched) (partial)

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Invalid files still send onLoad(true), so check Sound.duration as a simple means to identify valid mp3-files.
Also call LzLoader#doError() instead of LzView#resourceloaderror() in order to remove requests properly from load-queue.

Tests:
testcase at bugreport
examples/music/music.lzx

git-svn-id: d62bde4b5aa582fdf07c8d403e53e0399a7ed285@13220 fa20e4f9-1d0a-0410-b5f3-dc9c16b8b17c

--- WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
+++ WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
@@ -1,7 +1,7 @@
 /**
   * LzSoundMC.as
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @topic Kernel
@@ -148,9 +148,10 @@
   * @access private
   */
 SoundMC.prototype.loadDone = function (success) {
-    if (success != true) {
-        // LzLoader -> LzSprite -> LzView
-        this.loader.owner.owner.resourceloaderror();
+    // @devnote Loading invalid files still results in a successful load,
+    // therefore check duration to identify valid mp3-files (LPP-7880)
+    if (success != true || this._sound.duration == 0) {
+        this.loader.doError(this.loader.mc);
         if ($debug) {
             Debug.warn("failed to load %w", this.reqobj.url);
         }


fixed bug in DebugUtils.replaceUnknownObjectsInState()

--- WeaveJS/src/weavejs/utils/DebugUtils.as
+++ WeaveJS/src/weavejs/utils/DebugUtils.as
@@ -268,7 +268,10 @@
 				for each (var obj:Object in stateToModify)
 				{
 					if (DynamicState.isDynamicState(obj) && !Weave.getDefinition(obj[DynamicState.CLASS_NAME]))
+					{
+						obj[DynamicState.CLASS_NAME] = Weave.className(LinkableHashMap);
 						obj[DynamicState.SESSION_STATE] = replaceUnknownObjectsInState(obj[DynamicState.SESSION_STATE], obj[DynamicState.CLASS_NAME]);
+					}
 				}
 			}
 			else if (!JS.isPrimitive(stateToModify))


remove the idle timer

remove the idle timer

--- src/com/google/analytics/core/IdleTimer.as
+++ src/com/google/analytics/core/IdleTimer.as
@@ -1,129 +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
-{
-    import com.google.analytics.debug.DebugConfiguration;
-    import com.google.analytics.debug.VisualDebugMode;
-    import com.google.analytics.v4.Configuration;
-
-    import flash.display.DisplayObject;
-    import flash.display.Stage;
-    import flash.events.MouseEvent;
-    import flash.events.TimerEvent;
-    import flash.utils.Timer;
-    import flash.utils.getTimer;
-
-    /**
-     * The Idle Timer class.
-     */
-    public class IdleTimer
-    {
-        private var _loop:Timer;
-        private var _session:Timer;
-        private var _debug:DebugConfiguration;
-        private var _stage:Stage;
-        private var _buffer:Buffer;
-
-        private var _lastMove:int;
-        private var _inactivity:Number;
-
-        /* note:
-           the timer will loop every <delay> seconds
-           on each loop
-           we compare the <last mouse move time> to the <current time>
-           and if the result is equal or bigger than the
-           <inativity> seconds we start a sessionTimer
-           -> if the mouse move again we reset the sessionTimer
-           -> if the mouse does not move till we reach the end of the sessionTimeout
-              we reset the session
-        */
-        /**
-        * Create an instance of the IdleTimer
-        *
-        * @param delay number of seconds to check for idle
-        * @param inactivity number of seconds to check for inactivity
-        * @param sessionTimeout number of seconds to end the session
-        */
-        public function IdleTimer( config:Configuration, debug:DebugConfiguration,
-                                   display:DisplayObject, buffer:Buffer )
-        {
-            var delay:Number          = config.idleLoop;
-            var inactivity:Number     = config.idleTimeout;
-            var sessionTimeout:Number = config.sessionTimeout;
-
-            _loop       = new Timer( delay * 1000 ); //milliseconds
-            _session    = new Timer( sessionTimeout * 1000, 1 ); //milliseconds
-
-            _debug      = debug;
-            _stage      = display.stage;
-            _buffer     = buffer;
-            _lastMove   = getTimer();
-            _inactivity = inactivity * 1000; //milliseconds
-
-            _loop.addEventListener( TimerEvent.TIMER, checkForIdle );
-            _session.addEventListener( TimerEvent.TIMER_COMPLETE, endSession );
-            _stage.addEventListener( MouseEvent.MOUSE_MOVE, onMouseMove );
-
-            _debug.info( "delay: " + delay + "sec , inactivity: " + inactivity + "sec, sessionTimeout: " + sessionTimeout, VisualDebugMode.geek );
-
-            _loop.start();
-        }
-
-        private function onMouseMove( event:MouseEvent ):void
-        {
-            _lastMove = getTimer();
-
-            if( _session.running )
-            {
-                _debug.info( "session timer reset", VisualDebugMode.geek );
-                _session.reset();
-            }
-        }
-
-        public function checkForIdle( event:TimerEvent ):void
-        {
-            var current:int = getTimer();
-
-            if( (current - _lastMove) >= _inactivity )
-            {
-                if( !_session.running )
-                {
-                    _debug.info( "session timer start", VisualDebugMode.geek );
-                    _session.start();
-                }
-            }
-
-        }
-
-        public function endSession( event:TimerEvent ):void
-        {
-            _session.removeEventListener( TimerEvent.TIMER_COMPLETE, endSession );
-            _debug.info( "session timer end session", VisualDebugMode.geek );
-            _session.reset();
-            _buffer.resetCurrentSession();
-            _debug.info( _buffer.utmb.toString(), VisualDebugMode.geek );
-            _debug.info( _buffer.utmc.toString(), VisualDebugMode.geek );
-
-            _session.addEventListener( TimerEvent.TIMER_COMPLETE, endSession );
-        }
-
-    }
-}


Added timestamp to server messages.

Added timestamp to server messages.

--- bin/Data/AngelScript/Ingame/NetworkHandler.as
+++ bin/Data/AngelScript/Ingame/NetworkHandler.as
@@ -29,7 +29,8 @@
         protected void HandleServerMessage (VariantMap &eventData)
         {
             VectorBuffer messageData = eventData ["Data"].GetBuffer ();
-            stateUi.AddChatMessage ("{Server} : " + messageData.ReadString ());
+            stateUi.AddChatMessage ("{" + time.timeStamp.Substring (11, 8) +
+                                    " Server} : " + messageData.ReadString ());
         }

         protected void HandlePlayerSpawned (VariantMap &eventData)


Transferred from the Adobe Open Source Subversion Repository

Revision: 6122
Author:   chaase@adobe.com
Date:     2009-04-10T14:30:17.762458Z

Log Message:
-----------
Various refactorings/renamings/changes from effects PARB review.

QE Notes: mx/effects and spark/effects currently broken (and disabled) due to these API changes. Matt is fixing.
Doc Notes: None
Bugs:
Reviewer: Hans
tests: checkintests, mustella tests/ListDataEffects

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOutBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformMove.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EaseInOut.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/EasingFraction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Power.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/events/EffectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/TweenEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/FadeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Animate.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/RepeatBehavior.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/spark-manifest.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/NumberArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformScale.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffect.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateFilter.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Animate3DInstance.as</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as" copyfrom-rev="5944" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/SimpleMotionPath.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateColorInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/Resize.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateFilterInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/easing/Sine.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/Rotate3DInstance.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/events/AnimationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/interpolation/ArrayInterpolator.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/IEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransform.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/RotateInstance.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/animation/IAnimationTarget.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/ResizeInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/MotionPath.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimationProperty.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/MoveInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/effects/AnimateTransformRotate.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateFilterInstance.as
@@ -121,9 +121,6 @@
      */
     override protected function setValue(property:String, value:Object):void
     {
-        if (roundValues && (value is Number))
-            value = Math.round(Number(value));
-
         bitmapFilter[property] = value;
     }