Delete mtApplicationNoTUI.as

Delete mtApplicationNoTUI.as

--- mtApplicationNoTUI.as
+++ mtApplicationNoTUI.as
@@ -1,291 +0,0 @@
-package touchAll.demos.multimediaTouchDemo
-{
-	import flash.ui.*;
-	import flash.display.*;
-	import flash.events.Event;
-	//import flash.events.TouchEvent;
-	import flash.events.MouseEvent;
-	import flash.events.KeyboardEvent;
-
-	import touchAll.ITouchAll;
-	import touchAll.multimedia.Multimedia;
-
-	import org.tuio.*;
-	import org.tuio.connectors.*;
-	import org.tuio.debug.*;
-	import org.tuio.gestures.*;
-
-	/**
-	 * @author Gonçalo Amador
-	 */
-	[SWF(width="1280", height="720", frameRate="60", backgroundColor="#ffffff")]
-	public class MultimediaNoTouchAllDemo extends MovieClip implements ITouchAll
-	{
-		/* global variables */
-		private var background:Sprite = new Sprite;
-		private var packets_count:uint = 0;
-		private var log:String = "";
-		private var mouseCursor:Sprite;
-
-		private var tc:TuioClient;
-		private var tm:TuioManager;
-		private var gm:GestureManager;
-
-		private var multimedia:Multimedia = new Multimedia(stage);
-
-		public function MultimediaNoTouchAllDemo():void
-		{
-			if (stage) init();
-			else addEventListener(Event.ADDED_TO_STAGE, init);
-		}
-
-		private function init(e:Event = null):void
-		{
-			removeEventListener(Event.ADDED_TO_STAGE, init);
-
-			/* LOAD STAGE CONTENT */
-			backgroundLoader();
-			multimedia.setBackground(background);
-			multimedia.backgroundMultimediaEventListenersLoader();
-
-			/* load images */
-			multimedia.addImage("resources/summer.jpg");
-			multimedia.addImage("resources/palacio.jpg");
-			multimedia.addImage("resources/lake.jpg");
-			multimedia.addImage("resources/forest.jpg");
-			//multimedia.addImage("file:///G:/touch/Source%20Code/TouchProject/bin/resources/forest.jpg");
-
-			/* load an SWF */
-			//multimedia.addSWF("resources/test.swf");
-
-			/* load an MP4 and FLV */
-			multimedia.addVideo("resources/South Park Mac vs. PC.mp4");
-			multimedia.addVideo("resources/South Park Mac vs. PC vs. Linux.flv");
-
-			/* stage set up */
-			stageLoader();
-			stageEventListenersLoader();
-
-			/* tuio set up */
-			tuioLoader();
-		}
-
-		/* BACKGROUND FUNCTIONS */
-		/**
-		 * load default stage background
-		 */
-		public function backgroundLoader():void {
-			/*
-			 * Set blend mode "ALPHA" and
-			 * fill background at the starting position (0,0), with rgb color 0xFFFFFF and alpha blending 1
-			 */
-			background.blendMode = BlendMode.ALPHA;
-			background.graphics.beginFill(0xFFFFFF,1);
-			background.graphics.drawRect(0,0,stage.stageWidth,stage.stageHeight);
-			background.graphics.endFill();
-
-			/* set activate doubleClick mouse checks */
-			trace("set activate doubleClick mouse checks.");
-			background.doubleClickEnabled = true;
-
-			/* add the background to the stage */
-			trace("add the background to the stage.");
-			stage.addChild(background);
-		}
-
-		/**
-		 * stage set up
-		 */
-		public function stageLoader():void {
-			/* STAGE SET UP */
-			trace("STAGE SET UP.");
-			stage.stageWidth = 1280;
-			stage.stageHeight = 720;
-
-			/* AIR stage settings */
-			trace("AIR stage settings.");
-			//stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
-			stage.scaleMode = StageScaleMode.NO_SCALE;
-			stage.align = StageAlign.TOP_LEFT;
-
-			/* set activate doubleClick mouse checks */
-			trace("set activate doubleClick mouse checks.");
-			stage.doubleClickEnabled = true;
-
-			/* load an circle to track mouse cursor */
-			trace("load an circle to track mouse cursor.");
-			addMouseCursor();
-		}
-
-		/**
-		 * stage event listeners set up
-		 */
-		public function stageEventListenersLoader():void {
-			/* STAGE EVENT LISTENERS */
-			/* add stage keyboard event listeners */
-			trace("add stage keyboard event listeners.");
-			stage.addEventListener(KeyboardEvent.KEY_DOWN, showTuioNetworkPacketsLog);
-
-			/* add stage mouse event listeners */
-			trace("add stage mouse event listeners.");
-			stage.addEventListener(MouseEvent.MOUSE_MOVE, followMouse);
-			stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
-			stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
-		}
-
-		/**
-		 * Show total tuio events captured log
-		 */
-		private function packetsCount(e:TuioEvent):void {
-			var date:Date = new Date();
-			packets_count++;
-
-			log += packets_count + " Packet captured TuioEvent at " + date.fullYear;
-
-			if ((date.month + 1) < 10) {
-				log += "-0" + (date.month + 1);
-			}
-			else {
-				log += "-" + (date.month + 1);
-			}
-
-			if (date.date < 10) {
-				log += "-0" + date.date;
-			}
-			else {
-				log += "-" + date.date;
-			}
-
-			if (date.hours < 10) {
-				log += " 0" + date.hours;
-			}
-			else {
-				log += " " + date.hours;
-			}
-
-			if (date.minutes < 10) {
-				log += ":0" + date.minutes;
-			}
-			else {
-				log += ":" + date.minutes;
-			}
-
-			if (date.seconds < 10) {
-				log += ":0" + date.seconds;
-			}
-			else {
-				log += ":" + date.seconds;
-			}
-
-			if (date.milliseconds < 10) {
-				log += ".00" + date.milliseconds;
-			} else if (date.milliseconds < 100) {
-				log += ".0" + date.milliseconds;
-			}
-			else {
-				log += "." + date.milliseconds;
-			}
-
-			log += "\n";
-		}
-
-		/**
-		 * handle stage "F1" keyboard events
-		 */
-		private function showTuioNetworkPacketsLog(e:KeyboardEvent):void {
-			if (e.keyCode == Keyboard.F1) {
-				trace("touch hold.");
-				trace(log);
-				trace("Packets captured " + packets_count + "\n");
-			}
-		}
-
-		/**
-		 * display a circle where mouse cursor is
-		 */
-		private function addMouseCursor():void {
-			/* Create a Sprite instance called mouseCursor */
-			mouseCursor = new Sprite;
-
-			/*
-			 * Set blend mode "DARKEN" and
-			 * fill a circle at the starting position (0,0) of radius 5, with rgb color '_color' and alpha blending 1 or
-			 * draw a circle with line thickness 1.1, with rgb color '_color' and alpha blending 1.
-			 */
-			//mouseCursor.blendMode = BlendMode.DARKEN;
-			//mouseCursor.graphics.beginFill(0x770000, 1);
-			mouseCursor.graphics.lineStyle(1.1, 0x000000, 1, false, LineScaleMode.NONE);
-			mouseCursor.graphics.drawCircle(0, 0, 20);
-			//mouseCursor.graphics.endFill();
-
-			/* set circle center at mouse coursor position */
-			mouseCursor.x = mouseCursor.mouseX;
-			mouseCursor.y = mouseCursor.mouseY;
-
-			/* set circle visibility default value */
-			mouseCursor.visible = false;
-
-			/* add the circle to the stage */
-			stage.addChild(mouseCursor);
-		}
-
-		/**
-		 * handle mouse movement events for the circle
-		 */
-		private function followMouse(e:MouseEvent):void {
-			if (mouseCursor != null) {
-				mouseCursor.x = stage.mouseX;
-				mouseCursor.y = stage.mouseY;
-			}
-		}
-
-		/**
-		 * handle mouse down events for circle
-		 */
-		private function mouseDown(e:MouseEvent):void {
-			if (mouseCursor != null) {
-				mouseCursor.visible = true;
-			}
-		}
-
-		/**
-		 * handle mouse up events for circle
-		 */
-		private function mouseUp(e:MouseEvent):void {
-			if (mouseCursor != null) {
-				mouseCursor.visible = false;
-			}
-		}
-
-		/**
-		 * tuio set up
-		 */
-		public function tuioLoader():void {
-			var tc:TuioClient;
-
-			trace("tuioClient UDP connector.")
-			tc = new TuioClient(new UDPConnector("127.0.0.1", 3333));
-
-			trace("tuioDebug on.")
-			tc.addListener(TuioDebug.init(stage));
-
-			/* tuioManager setup (a container which processes the Tuio tracking data received by the given TuioClient) creation */
-			trace("tuioManager on.")
-			tm = TuioManager.init(stage, tc);
-
-			/* add tuioManager tuio event listeners */
-			tm.addEventListener(TuioEvent.ADD, packetsCount);
-			tm.addEventListener(TuioEvent.REMOVE, packetsCount);
-			tm.addEventListener(TuioEvent.UPDATE, packetsCount);
-
-			trace("gestureManager on.")
-			gm = GestureManager.init(stage, tc);
-
-			GestureManager.addGesture(new DragGesture());
-			GestureManager.addGesture(new ZoomGesture());
-			GestureManager.addGesture(new RotateGesture());
-			GestureManager.addGesture(new PressTapGesture());
-			GestureManager.addGesture(new OneDownOneMoveGesture());
-		}
-	}
-}


Re-dispatch the UNLOAD event through the gameControl.

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

--- src/as/com/threerings/ezgame/EZGameControl.as
+++ src/as/com/threerings/ezgame/EZGameControl.as
@@ -96,6 +96,14 @@
 [Event(name="GameEnded", type="com.threerings.ezgame.StateChangedEvent")]

 /**
+ * Dispatched when the game client is unloaded and you should clean up any Timers or
+ * other bits left hanging.
+ *
+ * @eventType flash.events.Event.UNLOAD
+ */
+[Event(name="unload", type="flash.events.Event")]
+
+/**
  * Dispatched when a property has changed in the shared game state.
  *
  * @eventType com.threerings.ezgame.PropertyChangedEvent.TYPE
@@ -143,6 +151,9 @@

         // set up our focusing click handler
         disp.root.addEventListener(MouseEvent.CLICK, handleRootClick);
+
+        // set up the unload event to propogate
+        disp.root.loaderInfo.addEventListener(Event.UNLOAD, dispatch);

         // TODO: this should only be available if the game uses it
         _seating = new SeatingControl(this);


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

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


Transferred from the Adobe Open Source Subversion Repository

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18286
Author:   dloverin@adobe.com
Date:     2010-10-22T14:19:42.189298Z

Log Message:
-----------
Final DataGrid editor PARB changes plus bug fixes.

Removed cancel() from GridItemEditor.
ComboBoxGridItemEditor's width is now sized to fit in the cell.

QE notes: None.
Doc notes: None.
Bugs: SDK-28260, SDK-28291, SDK-28258
Reviewer: Hans
Tests run: cyclone
Is noteworthy for integration: No.

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

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

--- frameworks/projects/spark/src/spark/components/Grid.as
+++ frameworks/projects/spark/src/spark/components/Grid.as
@@ -3092,7 +3092,7 @@
      *  @playerversion AIR 2.0
      *  @productversion Flex 4.5
      */
-    public function getItemRendererAt(rowIndex:int, columnIndex:int):IVisualElement
+    public function getItemRendererAt(rowIndex:int, columnIndex:int):IGridItemRenderer
     {
         return gridLayout.getItemRendererAt(rowIndex, columnIndex);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12861
Author:   hmuller@adobe.com
Date:     2009-12-11T21:02:33.282715Z

Log Message:
-----------
SDK-21643 - Unconditionally clear selectedIndices when the List dataProvider property is set.
SDK-21645 - Remove invalid (proposed)selectedIndices elements

QE notes:
Doc notes:
Bugs: sdk-21643, sdk-21645
Reviewer:
Tests run: List, ButtonBar, TabBar
Is noteworthy for integration: no

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

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

--- frameworks/projects/spark/src/spark/components/List.as
+++ frameworks/projects/spark/src/spark/components/List.as
@@ -21,6 +21,7 @@
 import flash.text.TextField;
 import flash.ui.Keyboard;

+import mx.collections.IList;
 import mx.core.DragSource;
 import mx.core.EventPriority;
 import mx.core.IFactory;
@@ -496,6 +497,27 @@
     {
         super.useVirtualLayout = value;
     }
+
+    /**
+     *  @private
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    override public function set dataProvider(value:IList):void
+    {
+        // Uconditionally clear the selection, see SDK-21645
+        if (!isEmpty(_proposedSelectedIndices) || !isEmpty(selectedIndices))
+        {
+            _proposedSelectedIndices.length = 0;
+            multipleSelectionChanged = true;
+            invalidateProperties();
+        }
+        super.dataProvider = value;
+    }
+

     //--------------------------------------------------------------------------
     //
@@ -926,6 +948,15 @@

     /**
      *  @private
+     *  Used to filter _proposedSelectedIndices.
+     */
+    private function isValidIndex(item:int, index:int, v:Vector.<int>):Boolean
+    {
+        return (dataProvider != null) && (item >= 0) && (item < dataProvider.length);
+    }
+
+    /**
+     *  @private
      *  Let ListBase handle single selection and afterwards come in and
      *  handle multiple selection via the commitMultipleSelection()
      *  helper method.
@@ -937,6 +968,8 @@

         var oldSelectedIndex:Number = _selectedIndex;
         var oldCaretIndex:Number = _caretIndex;
+
+        _proposedSelectedIndices = _proposedSelectedIndices.filter(isValidIndex);

         // Ensure that multiple selection is allowed and that proposed
         // selected indices honors it. For example, in the single


Transferred from the Adobe Open Source Subversion Repository

Revision: 18118
Author:   chiedozi@adobe.com
Date:     2010-10-11T06:05:33.778705Z

Log Message:
-----------
ViewNavigator now dispatches a private "viewChangeComplete" event when the active view is changed.  TabbedViewNavigator will forwards these events.

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

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

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

--- frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
+++ frameworks/projects/mobilecomponents/src/spark/components/TabbedViewNavigator.as
@@ -33,7 +33,6 @@

 import spark.components.supportClasses.ButtonBarBase;
 import spark.components.supportClasses.ViewNavigatorBase;
-import spark.core.ContainerDestructionPolicy;
 import spark.effects.Animate;
 import spark.effects.animation.MotionPath;
 import spark.effects.animation.SimpleMotionPath;
@@ -624,6 +623,8 @@
                     navigator.activeView.removeEventListener(PropertyChangeEvent.PROPERTY_CHANGE,
                                                                 view_propertyChangeHandler);

+                // Private event dispatched when a view has finished transitioning
+                navigator.removeEventListener("viewChangeComplete", navigator_viewChangeCompleteHandler);
                 navigator.removeEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_elementAddHandler);
                 navigator.removeEventListener(ElementExistenceEvent.ELEMENT_REMOVE, navigator_elementRemoveHandler);
             }
@@ -634,6 +635,7 @@
             {
                 navigator = navigators[_selectedIndex];

+                navigator.addEventListener("viewChangeComplete", navigator_viewChangeCompleteHandler);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_ADD, navigator_elementAddHandler);
                 navigator.addEventListener(ElementExistenceEvent.ELEMENT_REMOVE, navigator_elementRemoveHandler);

@@ -657,6 +659,10 @@
                 }
             }

+            selectedIndexAdjusted = false;
+            dataProviderChanged = false;
+            selectedIndexChanged = false;
+
             // Dispatch selection change event
             if (hasEventListener(IndexChangeEvent.CHANGE))
             {
@@ -666,10 +672,6 @@

                 dispatchEvent(e);
             }
-
-            selectedIndexAdjusted = false;
-            dataProviderChanged = false;
-            selectedIndexChanged = false;
         }

         if (tabBarVisibilityChanged)
@@ -911,6 +913,16 @@
         }

         return savedData;
+    }
+
+    /**
+     *  @private
+     *  Redispatches the child navigators COMPLETE event.
+     */
+    private function navigator_viewChangeCompleteHandler(event:Event):void
+    {
+        if (hasEventListener("viewChangeComplete"))
+            dispatchEvent(event);
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 19635
Author:   aharui@adobe.com
Date:     2011-01-07T00:25:18.039632Z

Log Message:
-----------
revert the layout changes from svn 18635.  Management feels that there isn't enough time to thoroughly test the changes.

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/layoutClasses/PriorityQueue.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Application.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/RichEditableText.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/UIComponent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/controls/SWFLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/BitmapImage.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/BasicLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/IconItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Group.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewNavigatorSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/PopUpAnchor.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LinearLayoutVector.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/events/FlexEvent.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airspark/src/spark/components/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/IContainerInvalidating.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ILayoutManagerContainerClient.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TabbedViewNavigatorApplicationSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/IStyleManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/core/ILayoutElement.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobiletheme/src/spark/skins/mobile/TextAreaSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/gridClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/core/Window.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/TextFieldGridItemRendererInclude.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/core/Container.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/LayoutManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Application.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as
@@ -11,16 +11,9 @@

 package spark.skins.mobile
 {
-import mx.core.IContainerInvalidating;
-import mx.core.ILayoutElement;
-import mx.core.mx_internal;
-import mx.managers.ILayoutManagerContainerClient;
-
 import spark.components.Group;
 import spark.components.SkinnableContainer;
 import spark.skins.mobile.supportClasses.MobileSkin;
-
-use namespace mx_internal;

 /**
  *  ActionScript-based skin for SkinnableContainer.
@@ -121,46 +114,12 @@
     /**
      *  @private
      */
-    override mx_internal function validateEstimatedSizesOfChild(child:ILayoutElement):void
-    {
-        var cw:Number;
-        var ch:Number;
-        var c:Number;
-        var oldcw:Number = child.estimatedWidth;
-        var oldch:Number = child.estimatedHeight;
-        // the child contentGroup is constrained to the size of the skin
-        cw = estimatedWidth;
-        if (isNaN(cw) && !isNaN(explicitWidth))
-            cw = explicitWidth;
-        ch = estimatedHeight;
-        if (isNaN(ch) && !isNaN(explicitHeight))
-            ch = explicitHeight;
-
-        child.setEstimatedSize(cw, ch);
-        if (child is ILayoutManagerContainerClient)
-        {
-            var sameWidth:Boolean = isNaN(cw) && isNaN(oldcw) || cw == oldcw;
-            var sameHeight:Boolean = isNaN(ch) && isNaN(oldch) || ch == oldch;
-            if (!(sameHeight && sameWidth))
-            {
-                if (child is IContainerInvalidating)
-                    IContainerInvalidating(child).invalidateEstimatedSizesOfChildren();
-                ILayoutManagerContainerClient(child).validateEstimatedSizesOfChildren();
-            }
-        }
-    }
-
-    /**
-     *  @private
-     */
     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         graphics.clear();

         super.updateDisplayList(unscaledWidth, unscaledHeight);

-        // contentGroup is constrained to the size of the skin.
-        // if you change this, also update validateEstimatedSizesOfChild
         contentGroup.setLayoutBoundsSize(unscaledWidth, unscaledHeight);
         contentGroup.setLayoutBoundsPosition(0, 0);


Transferred from the Adobe Open Source Subversion Repository

Revision: 20684
Author:   rfrishbe@adobe.com
Date:     2011-03-08T19:14:07.872274Z

Log Message:
-----------
ASDoc changes: some cleanups and clarifying mobile vs. spark where appropriate

QE notes: -
Doc notes:
Bugs: SDK-29845
Reviewer: Carol F
Tests run: checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/wireframe/src/spark/skins/wireframe/DefaultItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/ActionBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mobilecomponents/src/spark/components/LabelItemRenderer.as</path>

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

--- frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
+++ frameworks/projects/spark/src/spark/styles/metadata/BasicInheritingTextStyles.as
@@ -71,6 +71,8 @@
  *
  *  @see flashx.textLayout.formats.ITextLayoutFormat#color
  *  @see spark.components.supportClasses.StyleableTextField#style:color
+ *
+ *  @default 0x000000
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -156,6 +158,9 @@
  *
  *
For the Mobile theme, see
  *  spark.components.supportClasses.StyleableTextField Style fontFamily.

+ *
+ *
The default value for the Spark theme is Arial.
+ *  The default value for the Mobile theme is _sans.

  *
  *  @see flashx.textLayout.formats.ITextLayoutFormat#fontFamily
  *  @see spark.components.supportClasses.StyleableTextField#style:fontFamily
@@ -192,6 +197,9 @@
  *
  *
For the Mobile theme, see
  *  spark.components.supportClasses.StyleableTextField Style fontSize

+ *
+ *
The default value for the Spark theme is 12.
+ *  The default value for the Mobile theme is 24.

  *
  *  @see flashx.textLayout.formats.ITextLayoutFormat#fontSize
  *  @see spark.components.supportClasses.StyleableTextField#style:fontSize


Added explicit cast from Object to Class to ConstructorInjectionPoint#applyInjection to make stricter code analysis tools happy

--- src/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as
+++ src/org/swiftsuspenders/injectionpoints/ConstructorInjectionPoint.as
@@ -32,21 +32,22 @@

 		override public function applyInjection(target : Object, injector : Injector) : Object
 		{
+			var ctor : Class = Class(target);
 			var p : Array = gatherParameterValues(target, injector);
 			//the only way to implement ctor injections, really!
 			switch (p.length)
 			{
-				case 0 : return (new target());
-				case 1 : return (new target(p[0]));
-				case 2 : return (new target(p[0], p[1]));
-				case 3 : return (new target(p[0], p[1], p[2]));
-				case 4 : return (new target(p[0], p[1], p[2], p[3]));
-				case 5 : return (new target(p[0], p[1], p[2], p[3], p[4]));
-				case 6 : return (new target(p[0], p[1], p[2], p[3], p[4], p[5]));
-				case 7 : return (new target(p[0], p[1], p[2], p[3], p[4], p[5], p[6]));
-				case 8 : return (new target(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]));
-				case 9 : return (new target(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]));
-				case 10 : return (new target(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]));
+				case 0 : return (new ctor());
+				case 1 : return (new ctor(p[0]));
+				case 2 : return (new ctor(p[0], p[1]));
+				case 3 : return (new ctor(p[0], p[1], p[2]));
+				case 4 : return (new ctor(p[0], p[1], p[2], p[3]));
+				case 5 : return (new ctor(p[0], p[1], p[2], p[3], p[4]));
+				case 6 : return (new ctor(p[0], p[1], p[2], p[3], p[4], p[5]));
+				case 7 : return (new ctor(p[0], p[1], p[2], p[3], p[4], p[5], p[6]));
+				case 8 : return (new ctor(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]));
+				case 9 : return (new ctor(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]));
+				case 10 : return (new ctor(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]));
 			}
 			return null;
 		}


vpaid changes need to work on size

vpaid changes need to work on size

--- plugins/vastPlugin/src/vastPluginCode.as
+++ plugins/vastPlugin/src/vastPluginCode.as
@@ -167,6 +167,11 @@
 			_linearAds.omitTimestamp = omitTimestamp;
 			_nonlinearAds = new NonLinearAdProxy (this);
 			_linearAds.addEventListener(VastLinearAdProxy.SIGNAL_END, endSubsequence);
+		}
+
+		public function resize(widht:Number,height:Number):void
+		{
+			_linearAds.
 		}


small optimization in ViewMap

small optimization in ViewMap

--- src/org/robotlegs/base/ViewMap.as
+++ src/org/robotlegs/base/ViewMap.as
@@ -223,7 +223,7 @@
 				for (var i:int = 0; i < len; i++)
 				{
 					var packageName:String = mappedPackages[i];
-					if (packageName == className.substr(0, packageName.length))
+					if (className.indexOf(packageName) == 0)
 					{
 						injectInto(e.target);
 						return;


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.core
 {


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4983
Author:   jimurphy@adobe.com
Date:     2009-02-17T14:34:38.683626Z

Log Message:
-----------
Merge 3.x revisions 4981 -> trunk

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

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

--- frameworks/projects/framework/src/mx/managers/SystemManager.as
+++ frameworks/projects/framework/src/mx/managers/SystemManager.as
@@ -2933,10 +2933,6 @@
 			addEventListener(SWFBridgeRequest.HIDE_MOUSE_CURSOR_REQUEST, hideMouseCursorRequestHandler);
 			addEventListener(SWFBridgeRequest.SHOW_MOUSE_CURSOR_REQUEST, showMouseCursorRequestHandler);
 			addEventListener(SWFBridgeRequest.RESET_MOUSE_CURSOR_REQUEST, resetMouseCursorRequestHandler);
-
-            // This listener is intended to run before any other KeyboardEvent listeners
-            // so that it can redispatch a cancelable=true copy of the event.
-            addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true, 1000);
 		}

 	    var docFrame:int = (totalFrames == 1)? 0 : 1;
@@ -3068,25 +3064,20 @@
 		Singleton.registerClass("mx.managers::IToolTipManager2",
 			Class(getDefinitionByName("mx.managers::ToolTipManagerImpl")));

-		if (Capabilities.playerType == "Desktop")
-		{
-			Singleton.registerClass("mx.managers::IDragManager",
-				Class(getDefinitionByName("mx.managers::NativeDragManagerImpl")));
+        var dragManagerClass:Class = null;

 			// Make this call to create a new instance of the DragManager singleton.
-			// This will allow the application to receive NativeDragEvents that originate
-			// from the desktop.
-			// if this class is not registered, it's most likely because the NativeDragManager is not
-			// linked in correctly. all back to old DragManager.
-			if (Singleton.getClass("mx.managers::IDragManager") == null)
-				Singleton.registerClass("mx.managers::IDragManager",
-					Class(getDefinitionByName("mx.managers::DragManagerImpl")));
-		}
-		else
-		{
-			Singleton.registerClass("mx.managers::IDragManager",
-				Class(getDefinitionByName("mx.managers::DragManagerImpl")));
-		}
+        // Try to link in the NativeDragManager first. This will allow the
+        // application to receive NativeDragEvents that originate from the
+        // desktop.  If it can't be found, then we're
+        // not in AIR, and it can't be linked in, so we should just work off of
+        // the regular Flex DragManager.
+        dragManagerClass = Class(getDefinitionByName("mx.managers::NativeDragManagerImpl"));
+
+        if (dragManagerClass == null)
+            dragManagerClass = Class(getDefinitionByName("mx.managers::DragManagerImpl"));
+
+        Singleton.registerClass("mx.managers::IDragManager", dragManagerClass);

 		var textFieldFactory:TextFieldFactory; // ref to cause TextFieldFactory to be linked in
 		Singleton.registerClass("mx.core::ITextFieldFactory",


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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

 package mx.core
 {


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

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

 package mx.charts.chartClasses
 {


Stop RTE when itemToLabel (a user defined function) returns null

--- frameworks/projects/advancedgrids/src/mx/controls/listClasses/AdvancedListBase.as
+++ frameworks/projects/advancedgrids/src/mx/controls/listClasses/AdvancedListBase.as
@@ -7542,25 +7542,29 @@
         for (i; i != stopIndex; i++)
         {
             var itmStr:String = itemToLabel(iterator.current);
-
-            itmStr = itmStr.substring(0, str.length);
-            if (str == itmStr || str.toUpperCase() == itmStr.toUpperCase())
-            {
-                iterator.seek(cursorPos, 0);
-                scrollToIndex(i);
-                commitSelectedIndex(i);
-                var item:IListItemRenderer = indexToItemRenderer(i);
-                var pt:Point = itemRendererToIndices(item);
-                var evt:ListEvent = new ListEvent(ListEvent.CHANGE);
-                evt.itemRenderer = item;
-                if (pt)
-                {
-                    evt.columnIndex = pt.x;
-                    evt.rowIndex = pt.y;
-                }
-                dispatchEvent(evt);
-                return true;
-            }
+
+			if (itmStr)
+			{
+	            itmStr = itmStr.substring(0, str.length);
+
+	            if (str == itmStr || str.toUpperCase() == itmStr.toUpperCase())
+	            {
+	                iterator.seek(cursorPos, 0);
+	                scrollToIndex(i);
+	                commitSelectedIndex(i);
+	                var item:IListItemRenderer = indexToItemRenderer(i);
+	                var pt:Point = itemRendererToIndices(item);
+	                var evt:ListEvent = new ListEvent(ListEvent.CHANGE);
+	                evt.itemRenderer = item;
+	                if (pt)
+	                {
+	                    evt.columnIndex = pt.x;
+	                    evt.rowIndex = pt.y;
+	                }
+	                dispatchEvent(evt);
+	                return true;
+	            }
+			}

             try
             {


Transferred from the Adobe Open Source Subversion Repository

Revision: 12024
Author:   jszeto@adobe.com
Date:     2009-11-20T01:42:15.626998Z

Log Message:
-----------
http://bugs.adobe.com/jira/browse/SDK-22414 - DropDownList doesn't respect typicalItem

The default size of DropDownList and ComboBox will remain the same. If typicalItem is set, then the component will size itself to fit that item.

When typicalItem is set:

In DropDownList.measure, we set the labelDisplay to the typicalItem, force validation of the skin, set the labelDisplay's size to its measured size and then restore the labelDisplay to the selectedItem. The component sets labelIDisplay's width and height because we want typicalItem to take priority over the an explicit width and height set in the skin. The default skin sets an explicit width on the labelDisplay in order to prevent the DropDownList from changing size when the selectedItem changes. If typicalItem is set back to null, then the component restores the original width/height of the labelDisplay.

In ComboBox.commitProperties, we set the textInput.widthInChars to the length of the typicalItem.

QE notes: Need tests for typicalItem
Doc notes: Update the ASDoc for DropDownList.typicalItem and ComboBox.typicalItem. Mention typicalItem in class comments
Bugs: SDK-22414
Reviewer: Alex, Glenn
Tests run: checkintests, DropDownList, ComboBox
Is noteworthy for integration: Should Builder promote this property to be of higher importance?

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as
@@ -501,7 +501,7 @@
      *  @private
      *  Called by the initialize() method of UIComponent
      *  to hook in the accessibility code.
-     */
+     */
     override protected function initializeAccessibility():void
     {
         if (DropDownListBase.createAccessibilityImplementation != null)
@@ -623,7 +623,7 @@
      *  Called whenever we need to update the text passed to the labelDisplay skin part
      */
     // TODO (jszeto): Make this protected and make the name more generic (passing data to skin)
-    mx_internal function updateLabelDisplay():void
+    mx_internal function updateLabelDisplay(displayItem:* = undefined):void
     {
         // DropDownList and ComboBox will override this function
     }
@@ -785,7 +785,7 @@
                         if (arrowKeysWrapFocus && currentIndex == 0)
                             proposedNewIndex = dataProvider.length - 1;
                         else
-                            proposedNewIndex = currentIndex - 1;
+                        proposedNewIndex = currentIndex - 1;
                         event.preventDefault();
                         break;
                     }
@@ -795,7 +795,7 @@
                         if (arrowKeysWrapFocus && currentIndex == (dataProvider.length - 1))
                             proposedNewIndex = 0;
                         else
-                            proposedNewIndex = currentIndex + 1;
+                        proposedNewIndex = currentIndex + 1;
                         event.preventDefault();
                         break;
                     }


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

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

 package mx.messaging.messages
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 17841
Author:   hmuller@adobe.com
Date:     2010-09-24T15:36:59.172298Z

Log Message:
-----------
The ColumnHeaderBar classes have been substantially revised simplified and some of the horizontal scrolling flashing has been eliminated.  I've temporarily removed the column header bar event handling code since we weren't using it.   It will be restored when the column resizing feature is added.

The new versions of ColumnHeaderBar and ColumnHeaderBarLayout only depend on Grid (not GridDimensions or GridLayout).

QE notes: Failing mustella tests (bitmap and geometry changes) have been excluded
Doc notes:
Bugs: SDK-27967
Reviewer: Kevin
Tests run: checkin, mustella cyclone
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRendererSkin.mxml</path>
<path kind="file" action="A">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/spark-manifest.xml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridRowNode.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ColumnHeaderBarLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/IGridRowBackground.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/SparkClasses.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ColumnHeaderBar.as</path>
<path kind="file" action="D">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DefaultColumnHeaderRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridColumn.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/skins/spark/DataGridSkin.mxml</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GridRowList.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/DataGridAccImpl.as
@@ -307,7 +307,7 @@
             return null;

         if (dgAccInfo.isColumnHeader)
-            return dgAccInfo.dataGrid.columnHeaderBar.dataGroup.getElementAt(childID-1);
+            return dgAccInfo.dataGrid.columnHeaderBar.getElementAt(childID-1);

         // TODO: return correct height for rows and cells as incorrect height
         // is being returned


Transferred from the Adobe Open Source Subversion Repository

Revision: 10467
Author:   gruehle@adobe.com
Date:     2009-09-21T19:57:44.869335Z

Log Message:
-----------
Re-commit 10435. Broken tests have been excluded.

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ApplicationBackground.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableContainerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/BorderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Border.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/BorderStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin.mxml</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -88,6 +88,31 @@
  *  @productversion Flex 4
  */
 [Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes", theme="spark")]
+
+/**
+ *  Alpha level of the background for this component.
+ *  Valid values range from 0.0 to 1.0.
+ *
+ *  @default 1.0
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundAlpha", type="Number", inherit="no", theme="spark")]
+
+/**
+ *  Background color of a component.
+ *
+ *  @default 0xFFFFFF
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+[Style(name="backgroundColor", type="uint", format="Color", inherit="no", theme="spark")]

 /**
  *  The alpha of the content background for this component.


improved behavior of initSelectableAttribute().

--- WeaveData/src/weave/utils/ColumnUtils.as
+++ WeaveData/src/weave/utils/ColumnUtils.as
@@ -670,8 +670,13 @@
 					outputRC.setColumnReference(null, null);
 			}

+			var foundGlobalColumn:Boolean = false;
+			if (selectableAttribute is DynamicColumn)
+				foundGlobalColumn = (selectableAttribute as DynamicColumn).targetPath != null;
+			if (selectableAttribute is ExtendedDynamicColumn)
+				foundGlobalColumn = (selectableAttribute as ExtendedDynamicColumn).internalDynamicColumn.targetPath != null;
 			var outputDC:DynamicColumn = ColumnUtils.hack_findInternalDynamicColumn(selectableAttribute as IColumnWrapper);
-			if (outputDC && (outputDC.getInternalColumn() == null || outputDC.targetPath == null))
+			if (outputDC && (outputDC.getInternalColumn() == null || !foundGlobalColumn))
 			{
 				if (inputCol)
 				{


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 5063
Author:   jvroom@adobe.com
Date:     2009-02-25T00:07:49.407457Z

Log Message:
-----------
Bugs: SDK-14811 - avoid errors when strings are sent to an HTTPService operation
      - Also changed how HTTPMultiService works when argumentNames is not set.  Now this works just
      like HTTPService when called with just one argument.  If you specify more than one argument
      and do not set argument names, an error is thrown.
      - code cleanups: add braces where needed, removed a temp variable
      - do not set contentType metadata since we do not have the complete list of content types
      - fixed problems with HTTPMultiService.contentType and requestFormat not being inherited
        properly.
QE: yes: verify SDK-14811 is fixed - it would be good to have a few more HTTPService test cases:
        * send(String) with contentType = CONTENT_TYPE_FORM
        * send(XML) with contentType = CONTENT_TYPE_FORM (verify it works like in 2.0.1?)
        * send(Object) with contentType = CONTENT_TYPE_FORM where there is one property which is
          an Array.
Reviewers: Pete, Mete
Doc: no
Checkintests: pass

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.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/rpc/http/Operation.as</path>

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

--- frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
+++ frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
@@ -471,14 +471,24 @@
     //  contentType
     //----------------------------------

-    [Inspectable(enumeration="application/x-www-form-urlencoded,application/xml", defaultValue="application/x-www-form-urlencoded", category="General")]
+    // These are not all of the allowed values and mxmlc is now enforcing the value is in this list.  We could add this back if
+    // there was wildcard support.
+    //[Inspectable(enumeration="application/x-www-form-urlencoded,application/xml", defaultValue="application/x-www-form-urlencoded", category="General")]
     /**
      *  Type of content for service requests.
      *  The default is application/x-www-form-urlencoded which sends requests
      *  like a normal HTTP POST with name-value pairs. application/xml send
      *  requests as XML.
      */
-    public var contentType:String = CONTENT_TYPE_FORM;
+    private var _contentType:String = CONTENT_TYPE_FORM;
+    public function get contentType():String
+    {
+        return _contentType;
+    }
+    public function set contentType(ct:String):void
+    {
+        _contentType = ct;
+    }

     //----------------------------------
     //  showBusyCursor
@@ -585,7 +595,9 @@
         if (ctype == CONTENT_TYPE_XML)
         {
             if (parameters is String && xmlEncode == null)
+            {
                 paramsToSend = parameters as String;
+            }
             else if (!(parameters is XMLNode) && !(parameters is XML))
             {
                 if (xmlEncode != null)
@@ -640,19 +652,26 @@
             paramsToSend = {};
             var val:Object;

-            //get all dynamic and all concrete properties from the parameters object
-            var classinfo:Object = ObjectUtil.getClassInfo(parameters);
-
-            for each (var p:* in classinfo.properties)
-            {
-                val = parameters[p];
-                if (val != null)
+            if (typeof(parameters) == "object")
+            {
+                //get all dynamic and all concrete properties from the parameters object
+                var classinfo:Object = ObjectUtil.getClassInfo(parameters);
+
+                for each (var p:* in classinfo.properties)
                 {
-                    if (val is Array)
-                        paramsToSend[p] = val;
-                    else
-                        paramsToSend[p] = val.toString();
+                    val = parameters[p];
+                    if (val != null)
+                    {
+                        if (val is Array)
+                            paramsToSend[p] = val;
+                        else
+                            paramsToSend[p] = val.toString();
+                    }
                 }
+            }
+            else
+            {
+                paramsToSend = parameters;
             }
         }
         else


Transferred from the Adobe Open Source Subversion Repository

Revision: 8957
Author:   chaase@adobe.com
Date:     2009-07-31T17:46:23.194626Z

Log Message:
-----------
Fixes bug with scrollbar behavior when fixedThumbSize behavior is enabled. Previously, the thumb was treated as if it were variable size (the default), where the size was related to the pageSize. This meant that a smaller thumb would never reach the end of the track. The new behavior ensures that the smaller fixed-size thumb covers the full range of the track.

QE Notes: We should add tests for fixedThumbSize cases
Doc Notes: None
Bugs: SDK-22370
Reviewer: Hans
API Change: No
Is noteworthy for integration: Yes
tests: checkintests mustella/gumbo/components/ScrollBar mustella/gumbo/components/Scroller

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as</path>

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

--- frameworks/projects/spark/src/spark/components/VScrollBar.as
+++ frameworks/projects/spark/src/spark/components/VScrollBar.as
@@ -176,8 +176,15 @@
         var thumbSize:Number = trackSize;
         if (range > 0)
         {
-            thumbSize = Math.min((pageSize / (range + pageSize)) * trackSize, trackSize)
-            thumbSize = Math.max(thumb.minHeight, thumbSize);
+            if (getStyle("fixedThumbSize") === false)
+            {
+                thumbSize = Math.min((pageSize / (range + pageSize)) * trackSize, trackSize)
+                thumbSize = Math.max(thumb.minHeight, thumbSize);
+            }
+            else
+            {
+                thumbSize = thumb ? thumb.height : 0;
+            }
             thumbPos = (value - minimum) * ((trackSize - thumbSize) / range);
         }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 4005
Author:   rfrishbe@adobe.com
Date:     2008-11-04T01:07:38.597640Z

Log Message:
-----------
Change in the way item renderers lay them selves out.  Before we were using 100% width and 100% height.  Now, we're using horizontalAlign and verticalAlign to accomplish this, which are properties added to VerticalLayout and HorizontalLayout, respectively.  horizontalAlign takes values "left", "center", "right", "justify", and "contentJustify".  "justify" sizes all elements to the width of the component.  "contentJustify" sizes all elements to the size of the largest child (with a minimum of the width of the parent component).  Similar, verticalAlign takes "top", "middle", "bottom", "justify", and "contentJustify".

The default List skin sets the VerticalLayout's horizontalAlign to "contentJustify."  Most lists should use "contentJustify" or "justify" if you don't want scrollbars.  If you want to change your list to a horizontal list, you change the layout to a horizontal layout.  However, you must set the verticalAlign property on the horizontal layout correctly--otherwise it'll default to "top" and probably won't do what you want.

Ran checkintests and the following mustella tests: layout, list, Group, DataGroup, FxDataContainer, and FxContainer.  Some DataGroup tests were failing but should be because of an unrelated, local change.  All other tests are passing.

QE Notes: Failing tests are excluded.  Please update them (I think all just need to add verticalAlign="contentJustify" in the horizontal layout case) and re-include them.  Also, please write tests for this new functionality.
Doc Notes: None
Bugs: SDK-17198
Reviewer: Evtim

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDataContainerSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalAlign.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalAlign.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/flex4test.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/LayoutBase.as</path>

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

--- frameworks/projects/spark/src/spark/layouts/VerticalAlign.as
+++ frameworks/projects/spark/src/spark/layouts/VerticalAlign.as
@@ -0,0 +1,56 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2008 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.layout
+{
+
+/**
+ *  Enumerated type for the HorizontalLayout's verticalAlign
+ *  property.
+ *
+ * @see HorizontalLayout#verticalAlign
+ */
+public final class VerticalAlign
+{
+    /**
+     *  Vertically align children to the top of the container.
+     */
+    public static const TOP:String = "top";
+
+    /**
+     *  Vertically align children in the middle of the container.
+     */
+    public static const MIDDLE:String = "middle";
+
+    /**
+     *  Vertically align children to the bottom of the container.
+     */
+    public static const BOTTOM:String = "bottom";
+
+    /**
+     *  Justify the children with respect to the container.  This
+     *  uniformly sizes all children to be the same height as the
+     *  container.
+     */
+    public static const JUSTIFY:String = "justify";
+
+    /**
+     *  Content justify the children with respect to the container.  This
+     *  uniformly sizes all children to be the content height of the container.
+     *  The content height of the container is the size of the largest child.
+     *  If all children are smaller than the height of the container, then
+     *  all the children will be sized to the height of the container.
+     */
+    public static const CONTENT_JUSTIFY:String = "contentJustify";
+
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 4314
Author:   gruehle@adobe.com
Date:     2008-12-15T22:40:02.103600Z

Log Message:
-----------
Initial checkin of style support in the Spark skins. See the "Styling Gumbo Components" spec for details.

QE Notes: Bitmap compares will be different for many skins. Joan will update the bitmaps.
Doc Notes: See spec for details.
Bugs: -
Reviewer: Corey

Modified Paths:
--------------
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/assets</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultItemRenderer.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxFocusSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/ItemRenderer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarDownButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/mxml-2009-manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarUpButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/manifest.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerIncrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVSliderTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextInputSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/SparkSkin.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerDecrButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxComponent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarRightButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxTextAreaSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxToggleButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxSpinnerSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarTrackSkin.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/SparkColorStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxCheckBoxSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxScrollBarLeftButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxRadioButtonSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHSliderThumbSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxHScrollBarSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxVScrollBarTrackSkin.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>

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

--- frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
+++ frameworks/projects/spark/src/spark/skins/spark/FocusSkin.as
@@ -142,6 +142,7 @@
         rect.x = rect.y = 0;
         rect.width = bitmapData.width;
         rect.height = bitmapData.height;
+        glowFilter.color = focusObject.getStyle("focusColor");
         bitmapData.applyFilter(bitmapData, rect, filterPt, glowFilter);

         if (!bitmap)


 - changed
 	- TextInput::getValue returns empty String if placeholder-text is shown!

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

--- src/reprise/controls/TextInput.as
+++ src/reprise/controls/TextInput.as
@@ -152,7 +152,7 @@

 		public function getValue() : Object
 		{
-			return getLabel();
+			return getLabel() == m_placeholder ? '' : getLabel();
 		}
 		public override function setValue(value : *) : void
 		{
@@ -170,6 +170,11 @@
 				setLabel(value);
 			}
 		}
+		public function getPlaceholderAttribute() : String
+		{
+			return m_placeholder;
+		}
+
 		public override function didSucceed():Boolean
 		{
 			if (m_validator || !m_required || !m_placeholder)


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

--- frameworks/projects/advancedgrids/src/mx/styles/metadata/GapStyles.as
+++ frameworks/projects/advancedgrids/src/mx/styles/metadata/GapStyles.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.
 //
 ////////////////////////////////////////////////////////////////////////////////


Fix typo

Fix typo

--- common1/src/nt/lib/util/assert.as
+++ common1/src/nt/lib/util/assert.as
@@ -4,7 +4,7 @@

 	/**
 	 * debug 异常抛出类
-	 * @param b 值为flase则抛出异常
+	 * @param b 值为 false 则抛出异常
 	 * @param m 如果错误类为空则抛出该错误信息
 	 * @param errorClass 错误类
 	 */


made xml on schema bindable

made xml on schema bindable

--- as3/xobjas3/src/com/rpath/xobj/Schema.as
+++ as3/xobjas3/src/com/rpath/xobj/Schema.as
@@ -141,6 +141,7 @@
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
+    [Bindable] // <murf
     public function get xml():XML
     {
         return _xml;


Cleaning up Missing clips

Cleaning up Missing clips

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

--- src/flash/display/ConstrainedSprite.as
+++ src/flash/display/ConstrainedSprite.as
@@ -8,28 +8,32 @@
 		private var _height:Number;

 		public function ConstrainedSprite() {
-			addEventListener(Event.ADDED, addedHandler);
+//			addEventListener(Event.ADDED, addedHandler);
 		}

-		private function addedHandler(event:Event):void {
-			var child:DisplayObject = event.target as DisplayObject;
-			if(child.parent == this) {
-				drawChild(child);
-			}
-		}
+//		private function addedHandler(event:Event):void {
+//			var child:DisplayObject = event.target as DisplayObject;
+//			if(child.parent == this) {
+//				drawChild(child);
+//			}
+//		}

 		public function draw():void {
 			drawChildren();
 		}

 		override public function set width(width:Number):void {
-			_width = width;
-			drawChildren();
+			if(width != _width) {
+				_width = width;
+				drawChildren();
+			}
 		}

 		override public function set height(height:Number):void {
-			_height = height;
-			drawChildren();
+			if(height != _height) {
+				_height = height;
+				drawChildren();
+			}
 		}

 		private function drawChildren():void {
@@ -39,7 +43,8 @@
 		}

 		private function shouldDrawChild(child:DisplayObject):Boolean {
-			return (!isNaN(_width) &&
+			return (
+					!isNaN(_width) &&
 					!isNaN(_height) &&
 					_width != 0 &&
 					_height != 0 &&
@@ -50,14 +55,13 @@
 		private function drawChild(child:DisplayObject):void {
 			if(shouldDrawChild(child)) {
 				var rect:Rectangle;
-				var childWidth:Number = child.hasOwnProperty('videoWidth') ? Object(child).videoWidth : child.width;
-				var childHeight:Number = child.hasOwnProperty('videoHeight') ? Object(child).videoHeight: child.height;

-				rect = constrainedSize(childWidth, childHeight, _width, _height);
+				rect = constrainedSize(child.width, child.height, _width, _height);
 				child.width = rect.width;
 				child.height = rect.height;
 				child.x = Math.round((_width/2) - (child.width/2));
 				child.y = Math.round((_height/2) - (child.height/2));
+				//trace(">> drawing child with: ", child, rect, "vis", child.visible, "actual w", child.width, "actual h", child.height, "x", child.x, "y", child.y);
 			}
 		}


Added the ability to specify default values on the CSSPropertyInjectory

--- src/flexlib/css/CSSPropertyInjector.as
+++ src/flexlib/css/CSSPropertyInjector.as
@@ -37,7 +37,7 @@
  *
  *  @author Adam Flater
  */
-public class CSSPropertyInjector
+public dynamic class CSSPropertyInjector
 {

     //--------------------------------------------------------------------------
@@ -163,7 +163,7 @@
         //  and styles.. and one of these values has changed...
         //  the style declaration is retreived and applied
         if ( ( __target != null || __targets != null ) &&
-             ( __styles != null || useIntrospection == true ) &&
+             ( __styles != null || __useIntrospection == true ) &&
              __styleName != null &&
              ( __targetChanged == true || __targetsChanged == true ||
                __styleNameChanged == true || __stylesChanged == true ) )
@@ -241,10 +241,19 @@
     {
         for each ( var style : String in styles )
         {
-            if ( target.hasOwnProperty( style ) &&
-                 __cssStyleDeclaration.getStyle( style ) != null )
-            {
-                target[ style ] = __cssStyleDeclaration.getStyle( style );
+            if ( target.hasOwnProperty( style ) )
+            {
+                //  Look for a value for [style] in the CSSStyeDeclaration
+                if ( __cssStyleDeclaration.getStyle( style ) != null )
+                {
+                    target[ style ] = __cssStyleDeclaration.getStyle( style );
+                }
+                //  If the CSSStyeDeclaration lookup is null.. Look for a
+                //  default value on the CSSPropertyInjector
+                else if ( this[ style ] != null )
+                {
+                    target[ style ] = this[ style ];
+                }
             }
         }
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 23243
Author:   cframpto@adobe.com
Date:     2011-12-20T00:59:57.384047Z

Log Message:
-----------
In frameworks, remove Adobe headers from all files except xml/mxml file types.  There are also a few .txt files that are license files that I didn't touch yet.

Modified Paths:
--------------
2361 paths were modified

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

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