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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2011 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.
 //
 ////////////////////////////////////////////////////////////////////////////////
 package spark.skins.mobile


Transferred from the Adobe Open Source Subversion Repository

Revision: 21974
Author:   jszeto@adobe.com
Date:     2011-08-13T04:39:10.916633Z

Log Message:
-----------
SpinnerList Bug Fixes

SDK-31149 - SpinnerListSkin should split updateDisplayList into layoutContents and drawBackground

SDK-31148 - SpinnerListContainer layout should have verticalAlign="center" by default

SDK-31075 - Date spinner in DATE_TIME mode is sluggish

Optimize VerticalSpinnerLayout to move the scrollRect and only update when a new item is needed

SDK-31053 - SpinnerList does not dispatch change event when user taps on item to have it snap into selection

Added dispatchChangeEvent parameter to animateToSelectedIndex and set it to true on item click

SDK-31001 - NumericDataProvider only supports sequences of increasing values

StepSize now supports negative values. If stepSize is negative, then the maximum is the first value

SDK-30892 - SpinnerListContainer doesn't respect the backgroundColor/backgroundAlpha styles

Exclude these two styles

QE notes: none
Doc notes: none
Bugs:
Reviewer: Tom Kraikit, Evtim, Kyu
Tests run: checkintests
Is noteworthy for integration: no

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/components/SpinnerListContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/framework/bundles/en_US/collections.properties</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/mobilecomponents/src/spark/layouts/VerticalSpinnerLayout.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/4.y/frameworks/projects/spark/src/spark/collections/NumericDataProvider.as</path>

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

--- frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
+++ frameworks/projects/mobiletheme/src/spark/skins/mobile/SpinnerListContainerSkin.as
@@ -240,6 +240,7 @@
 			contentGroup = new Group();
 			var hLayout:HorizontalLayout = new HorizontalLayout();
 			hLayout.gap = 0;
+            hLayout.verticalAlign = "middle";
 			contentGroup.layout = hLayout;
 			contentGroup.id = "contentGroup";
 			addChild(contentGroup);


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

--- frameworks/projects/automation/src/mx/automation/delegates/containers/ViewStackAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/containers/ViewStackAutomationImpl.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.automation.delegates.containers
 {


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/RadioButtonAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/RadioButtonAutomationImpl.as
@@ -0,0 +1,137 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.controls
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import flash.events.KeyboardEvent;
+	import flash.ui.Keyboard;
+
+	import mx.automation.Automation;
+	import mx.automation.AutomationIDPart;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.controls.RadioButton;
+	import mx.core.EventPriority;
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  RadioButton control.
+	 *
+	 *  @see mx.controls.RadioButton
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class RadioButtonAutomationImpl extends ButtonAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(RadioButton, RadioButtonAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj RadioButton object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function RadioButtonAutomationImpl(obj:RadioButton)
+		{
+			super(obj);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get radioButton():RadioButton
+		{
+			return uiComponent as RadioButton;
+		}
+
+		/**
+		 *  @private
+		 *  Replays click interactions on the button.
+		 *  If the interaction was from the mouse,
+		 *  dispatches MOUSE_DOWN, MOUSE_UP, and CLICK.
+		 *  If interaction was from the keyboard,
+		 *  dispatches KEY_DOWN, KEY_UP.
+		 *  Button's KEY_UP handler then dispatches CLICK.
+		 *
+		 *  @param event ReplayableClickEvent to replay.
+		 */
+		override public function replayAutomatableEvent(event:Event):Boolean
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+
+			if (event is KeyboardEvent)
+				return help.replayKeyboardEvent(uiComponent, KeyboardEvent(event));
+			else
+				return super.replayAutomatableEvent(event);
+		}
+
+		/**
+		 *  @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;
+			}
+		}
+
+	}
+}


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

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

 package mx.automation.tabularData
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 4363
Author:   dloverin@adobe.com
Date:     2008-12-19T15:44:31.082489Z

Log Message:
-----------
Remove FxApplication properties: application, historyManagementEnabled, resetHistory.

QE Notes: None
Doc Notes: None
Bugs: SDK-16418
Reviewer: Alex
tests: checkintests, Application, controls, containers/Accordion, containers/ApplicationControlBar, containers/ControlBar

FxApplication.as
    Remove application, historyManagementEnabled, resetHistory properties.
UIComponentAccImpl.as
FlexPrintJob.as
BrowserManagerImpl.as
HistoryManagerImpl.as
IBrowserManager.as
    Recode references to historyManagementEnabled and resetHistory.
ControlBar.as
    Fix SDK-16418, ApplicationControlBar does not work in Gumbo in 2009 namespace

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxApplication.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/HistoryManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/UIComponentAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/printing/FlexPrintJob.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/IBrowserManager.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as</path>

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

--- frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
+++ frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
@@ -257,7 +257,8 @@
      */
     public function init(defaultFragment:String = "", defaultTitle:String = ""):void
     {
-		ApplicationGlobals.application.historyManagementEnabled = false;
+        if ("historyManagementEnabled" in ApplicationGlobals.application)
+		  ApplicationGlobals.application.historyManagementEnabled = false;

 		setup(defaultFragment, defaultTitle);
 	}
@@ -267,7 +268,7 @@
 	 *  prepare the BrowserManager for further calls from the HistoryManager.  Use
 	 *  of HistoryManager and setFragment calls from the application is
 	 *  not supported, so the init() method sets
-	 *  Application.application.historyManagementEnabled to false to disable
+	 *  ApplicationGlobals.application.historyManagementEnabled to false to disable
 	 *  the HistoryManager
      */
 	public function initForHistoryManager():void


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

--- frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
+++ frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as
@@ -1,11 +1,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-//  ADOBE SYSTEMS INCORPORATED
-//  Copyright 2008 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: 17491
Author:   aharui@adobe.com
Date:     2010-08-26T18:31:34.581497Z

Log Message:
-----------
Handle clipped sub-apps

QE notes: none
Doc notes: New optional parameter to SystemManager.getVisibleApplicationRect
Bugs: SDK-26478
Reviewer: Darrell
Tests run: checkintests mustella/MarshallPlan
Is noteworthy for integration: yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/DateField.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/treeClasses/TreeItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/dataGridClasses/DataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/SystemManagerProxy.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/TileListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/MenuBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/ISystemManager.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark_dmv/src/mx/controls/advancedDataGridClasses/FTEAdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/PopUpButton.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HSlider.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/Menu.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/datavisualization/src/mx/controls/advancedDataGridClasses/AdvancedDataGridItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/listClasses/ListItemRenderer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/mx/src/mx/controls/ColorPicker.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/mx/controls/dataGridClasses/FTEDataGridItemRenderer.as</path>

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

--- frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as
+++ frameworks/projects/framework/src/mx/managers/systemClasses/MarshallingSupport.as
@@ -2253,10 +2253,12 @@

     public function getVisibleApplicationRectHandler(event:Request):void
     {
+		var skipToSandboxRoot:Boolean = event.value.skipToSandboxRoot;
+
         var sbRoot:DisplayObject = systemManager.getSandboxRoot();
         var screen:Rectangle;

-        if (systemManager != sbRoot)
+        if (skipToSandboxRoot && systemManager != sbRoot)
         {
             var request:InterManagerRequest = new InterManagerRequest(InterManagerRequest.SYSTEM_MANAGER_REQUEST,
                                     false, false,
@@ -2269,7 +2271,7 @@
         }
         else
         {
-            event.value = getVisibleApplicationRect(event.value as Rectangle);
+            event.value = getVisibleApplicationRect(event.value.bounds as Rectangle);
             event.preventDefault();
         }

@@ -2304,6 +2306,16 @@
             bridge.dispatchEvent(bridgeRequest);
             bounds = Rectangle(bridgeRequest.data);
         }
+		else if (!systemManager.isTopLevel())
+		{
+			var obj:DisplayObjectContainer = DisplayObject(systemManager).parent.parent;
+
+			if ("getVisibleApplicationRect" in obj)
+			{
+				var visibleRect:Rectangle = obj["getVisibleApplicationRect"](true);
+				bounds = bounds.intersection(visibleRect);
+			}
+		}

         return bounds;
     }


def: 5085 expose "votes" for playlist item renderer

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

--- plugins/playlistApiPlugin/src/com/kaltura/kdpfl/plugin/component/PlaylistEntryVO.as
+++ plugins/playlistApiPlugin/src/com/kaltura/kdpfl/plugin/component/PlaylistEntryVO.as
@@ -59,6 +59,11 @@
 			return entry.plays;
 		}

+		public function get votes():int
+		{
+			return entry.votes;
+		}
+
 		public function get entryId():String
 		{
 			return entry.entryId;


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

--- frameworks/projects/automation/src/mx/automation/delegates/core/ScrollControlBaseAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/core/ScrollControlBaseAutomationImpl.as
@@ -0,0 +1,229 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2009 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.automation.delegates.core
+{
+	import flash.display.DisplayObject;
+	import flash.events.Event;
+	import flash.events.MouseEvent;
+
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.events.AutomationRecordEvent;
+	import mx.controls.scrollClasses.ScrollBar;
+	import mx.core.EventPriority;
+	import mx.core.mx_internal;
+	import mx.core.ScrollControlBase;
+	import mx.events.ScrollEvent;
+	import mx.events.ScrollEventDirection;
+	import mx.events.ScrollEventDetail;
+	import mx.automation.IAutomationObject;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines the methods and properties required to perform instrumentation for the
+	 *  ScrollControlBase class.
+	 *
+	 *  @see mx.core.ScrollControlBase
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class ScrollControlBaseAutomationImpl extends UIComponentAutomationImpl
+	{
+		include "../../../core/Version.as";
+
+		//--------------------------------------------------------------------------
+		//
+		//  Class methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Registers the delegate class for a component class with automation manager.
+		 *
+		 *  @param root The SystemManger of the application.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public static function init(root:DisplayObject):void
+		{
+			Automation.registerDelegateClass(ScrollControlBase, ScrollControlBaseAutomationImpl);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Constructor.
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  Constructor.
+		 * @param obj ScrollControlBase object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ScrollControlBaseAutomationImpl(obj:ScrollControlBase)
+		{
+			super(obj);
+
+			obj.addEventListener(Event.ADDED, childAddedHandler, false, 0, true);
+			obj.addEventListener(MouseEvent.MOUSE_WHEEL, mouseScrollHandler, false, EventPriority.DEFAULT+1, true);
+
+			addScrollRecordHandlers();
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Variables
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 * @private
+		 */
+		protected function get sBase():ScrollControlBase
+		{
+			return uiComponent as ScrollControlBase;
+		}
+
+		//--------------------------------------------------------------------------
+		//  Overridden Methods
+		//--------------------------------------------------------------------------
+
+		/**
+		 * Replays ScrollEvents. ScrollEvents are replayed
+		 * by calling ScrollBar.scrollIt on the appropriate (horizontal or vertical)
+		 * scrollBar.
+		 *
+		 *  @param event The event to replay.
+		 *
+		 *  @return true if the replay was successful. Otherwise, returns false.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		override public function replayAutomatableEvent(event:Event):Boolean
+		{
+			if (event is ScrollEvent)
+			{
+				var se:ScrollEvent = ScrollEvent(event);
+
+				var position:Number = se.position;
+				var direction:String = se.direction;
+				var delegate:IAutomationObject;
+
+				switch (direction)
+				{
+					case ScrollEventDirection.VERTICAL:
+					{
+						if (!(sBase.scroll_verticalScrollBar && sBase.scroll_verticalScrollBar.enabled))
+							return false;
+						delegate = sBase.scroll_verticalScrollBar as IAutomationObject;
+						delegate.replayAutomatableEvent(event);
+						break;
+					}
+
+					case ScrollEventDirection.HORIZONTAL:
+					{
+						if (!(sBase.scroll_horizontalScrollBar && sBase.scroll_horizontalScrollBar.enabled))
+							return false;
+						//                  sBase.horizontalScrollPosition = position;
+						delegate = sBase.scroll_horizontalScrollBar as IAutomationObject;
+						delegate.replayAutomatableEvent(event);
+						break;
+					}
+
+					default:
+					{
+						return false;
+					}
+				}
+				return true;
+			}
+			else if (event is MouseEvent && event.type == MouseEvent.MOUSE_WHEEL)
+			{
+				var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+				help.replayMouseEvent(uiComponent, event as MouseEvent);
+				return true;
+			}
+
+			return super.replayAutomatableEvent(event);
+		}
+
+		//--------------------------------------------------------------------------
+		//
+		//  Event handlers
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 * @private
+		 */
+		private function childAddedHandler(ev:Event):void
+		{
+			if(ev.target is ScrollBar)
+			{
+				ev.target.addEventListener(AutomationRecordEvent.RECORD,
+					scrollBar_recordHandler, false, 0, true);
+			}
+		}
+
+		private function addScrollRecordHandlers():void
+		{
+			var scrollBar:ScrollBar = sBase.scroll_verticalScrollBar ;
+			if(scrollBar)
+				scrollBar.addEventListener(AutomationRecordEvent.RECORD,
+					scrollBar_recordHandler, false, 0, true);
+			scrollBar = sBase.scroll_horizontalScrollBar ;
+			if(scrollBar)
+				scrollBar.addEventListener(AutomationRecordEvent.RECORD,
+					scrollBar_recordHandler, false, 0, true);
+		}
+
+		/**
+		 * @private
+		 */
+		private function mouseScrollHandler(event:MouseEvent):void
+		{
+			recordAutomatableEvent(event);
+		}
+
+		/**
+		 *  @private
+		 */
+		private function scrollBar_recordHandler(event:AutomationRecordEvent):void
+		{
+			if (event.automationObject == sBase.scroll_verticalScrollBar ||
+				event.automationObject == sBase.scroll_horizontalScrollBar)
+			{
+				if (event.replayableEvent is ScrollEvent &&
+					ScrollEvent(event.replayableEvent).detail != ScrollEventDetail.THUMB_TRACK)
+					recordAutomatableEvent(event.replayableEvent);
+			}
+		}
+
+	}
+}


added throwIfNotFound option to Weave.getDefinition()


Transferred from the Adobe Open Source Subversion Repository

Revision: 14483
Author:   smgilson@adobe.com
Date:     2010-03-01T19:01:18.459430Z

Log Message:
-----------
merge 14456: Adding ASDoc version tags classes

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkRangeAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkRadioButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkPanelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarAutomationImpl.as</path>
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirFunctionsHelper.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSkinnableContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkValueChangeAutomationEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBarBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkNavigatorContentAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkDataGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTrackBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation/src/mx/automation/events/EventDetails.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/events/SparkListItemSelectEvent.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTabBarAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonBarButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableContainerBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/mediaClasses/SparkMuteButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_air/src/mx/automation/air/AirDragManagerAutomationHandler.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/SOAPResult.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkTextBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTitleWindowAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkTileGroupAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkToggleButtonAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkSpinnerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccConst.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkLabelAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkBorderContainerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkGroupBaseAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/SparkVideoPlayerAutomationImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkSkinnableComponentAutomationImpl.as</path>

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkButtonBaseAutomationImpl.as
@@ -33,11 +33,16 @@
  *  ButtonBase control.
  *
  *  @see spark.components.supportClasses.ButtonBase
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 3
  *
  */
 public class SparkButtonBaseAutomationImpl extends SparkSkinnableComponentAutomationImpl
 {
-	include "../../../../core/Version.as";
+    include "../../../../core/Version.as";

     //--------------------------------------------------------------------------
     //
@@ -49,6 +54,11 @@
      *  Registers the delegate class for a component class with automation manager.
      *
      *  @param root The SystemManger of the application.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 3
      */
     public static function init(root:DisplayObject):void
     {
@@ -58,6 +68,11 @@
     /**
      *  Constructor.
      * @param obj ButtonBase object to be automated.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 3
      */
     public function SparkButtonBaseAutomationImpl(obj:spark.components.supportClasses.ButtonBase)
     {
@@ -148,6 +163,11 @@
      *  Button's KEY_UP handler then dispatches CLICK.
      *
      *  @param event ReplayableClickEvent to replay.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 3
      */
     override public function replayAutomatableEvent(event:Event):Boolean
     {


UPDATE  FLEX-33166 Mobile TextInput with native StageTextInput cannot be included in scrollable forms - prevent touch scrolling from being initiated in a TextInput

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -516,7 +516,7 @@
      *  The IEditableText that may be present
      *  in any skin assigned to this component.
      *  This is RichEditableText for the Spark theme
-     *  and StyleableStageText for the Mobile theme.
+     *  and StyleableStageText/ScrollableStageText for the Mobile theme.
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -1719,15 +1719,15 @@
             if (getStyle("interactionMode") == InteractionMode.TOUCH && !touchHandlersAdded)
             {
                 addEventListener(MouseEvent.MOUSE_DOWN, touchMouseDownHandler);
-                addEventListener(TouchInteractionEvent.TOUCH_INTERACTION_START,
-                    touchInteractionStartHandler);
+                addEventListener(TouchInteractionEvent.TOUCH_INTERACTION_STARTING,
+                        touchInteractionStartingHandler);
                 touchHandlersAdded = true;
             }
             else if (getStyle("interactionMode") == InteractionMode.MOUSE && touchHandlersAdded)
             {
                 removeEventListener(MouseEvent.MOUSE_DOWN, touchMouseDownHandler);
-                removeEventListener(TouchInteractionEvent.TOUCH_INTERACTION_START,
-                    touchInteractionStartHandler);
+                removeEventListener(TouchInteractionEvent.TOUCH_INTERACTION_STARTING,
+                        touchInteractionStartingHandler);
                 touchHandlersAdded = false;
             }
         }
@@ -2606,23 +2606,23 @@
      */
     private function touchMouseUpHandler(event:Event):void
     {
-        /*
-         We set the focus on the component on mouseUp to activate the softKeyboard
+        /*
+         We set the focus on the component on mouseUp to activate the softKeyboard
          We only set focus if the following conditions are met:
          1. mouseUp occurs on this component
          2. mouseDown occured on any subcomponent besides the textDisplay OR
          mouseDown occurred on textDisplay and mouseUp did not occur on textDisplay
-
+
          The mouseDown and mouseUp on textDisplay case is handled by the Player
-        */
-        if ((event.target is DisplayObject && contains(DisplayObject(event.target)))
+        */
+        if ((event.target is DisplayObject && contains(DisplayObject(event.target)))
             && (delaySetFocus ||
              (mouseDownTarget == textDisplay && event.target != textDisplay)))
         {
             if (textDisplay)
                 textDisplay.setFocus();
         }
-
+
         clearMouseDownState();
     }

@@ -2630,19 +2630,10 @@
      * @private
      * Called if we are inside of a Scroller and the user has started a scroll gesture
      */
-    private function touchInteractionStartHandler(event:TouchInteractionEvent):void
-    {
-        // if in iOS and keyboard is up and scrolling is occurring, drop the keyboard
-        var topLevelApp:Application = FlexGlobals.topLevelApplication as Application;
-        if (isIOS && topLevelApp && topLevelApp.isSoftKeyboardActive && editable)
-        {
-            // set focus
-            stage.focus = null;
-        }
-
-        // Clear out the state because starting a scroll gesture should never
-        // open the soft keyboard
-        clearMouseDownState();
+    private function touchInteractionStartingHandler(event:TouchInteractionEvent):void
+    {
+        //   don't allow initiating scrolling from a TextInput on mobile anymore
+          event.preventDefault();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 9467
Author:   gosmith@adobe.com
Date:     2009-08-21T21:46:43.117874Z

Log Message:
-----------
Completed the ASDoc for the nine documented Spark text classes. No more "Documentation is not currently available." Instead, there may now be too much of it. :)

QE notes: Please review the new doc and give me feedback
Doc notes: Please review and edit
Bugs: None
Reviewer: None
Tests run: ant checkintests
Is noteworthy for integration: No

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextSelectionHighlighting.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/SimpleText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/events/TextOperationEvent.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTextBase.as
@@ -40,7 +40,7 @@
 /**
  *  Dispached after the selectionAnchorPosition and/or
  *  selectionActivePosition properties have changed
- *  due to a user interaction.
+ *  for any reason.
  *
  *  @eventType mx.events.FlexEvent.SELECTION_CHANGE
  *
@@ -101,10 +101,10 @@
  */
 [Style(name="focusColor", type="uint", format="Color", inherit="yes", theme="spark")]

-
 /**
- *  The base class for skinnable components that include RichEditableText
- *  in their skin.
+ *  The base class for skinnable components, such as the Spark TextInput
+ *  and TextArea, that include an instance of RichEditableText in their skin
+ *  to provide rich text display, scrolling, selection, and editing.
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -230,12 +230,42 @@
         return getBaselinePositionForPart(textDisplay);
     }

-
-    //--------------------------------------------------------------------------
-    //
-    //  Properties
-    //
-    //--------------------------------------------------------------------------
+    //----------------------------------
+    //  maxWidth
+    //----------------------------------
+
+    /**
+     *  @private
+     */
+    override public function get maxWidth():Number
+    {
+        if (textDisplay)
+            return textDisplay.maxWidth;
+
+        // want the default to be default max width for UIComponent
+        var v:* = textDisplayProperties.maxWidth;
+        return (v === undefined) ? super.maxWidth : v;
+    }
+
+    /**
+     *  @private
+     */
+    override public function set maxWidth(value:Number):void
+    {
+        if (textDisplay)
+        {
+            textDisplay.maxWidth = value;
+            textDisplayProperties = BitFlagUtil.update(
+                uint(textDisplayProperties), MAX_WIDTH_PROPERTY_FLAG, true);
+        }
+        else
+        {
+            textDisplayProperties.maxWidth = value;
+        }
+
+        // Generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }

     //--------------------------------------------------------------------------
     //
@@ -248,7 +278,7 @@
     //----------------------------------

     /**
-     *  @copy flash.text.TextField#displayAsPassword
+     *  @copy spark.primitives.RichEditableText#displayAsPassword
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -291,9 +321,7 @@
     //----------------------------------

     /**
-     *  Specifies whether the user is allowed to edit the text in this control.
-     *
-     *  @default true
+     *  @copy spark.primitives.RichEditableText#editable
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -335,8 +363,7 @@
     //----------------------------------

     /**
-     *  A flag that indicates whether the IME should
-     *  be enabled when the component receives focus.
+     *  @copy spark.primitives.RichEditableText#enableIME
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -353,18 +380,7 @@
     //----------------------------------

     /**
-     *  Specifies the IME (input method editor) mode.
-     *  The IME enables users to enter text in Chinese, Japanese, and Korean.
-     *  Flex sets the specified IME mode when the control gets the focus,
-     *  and sets it back to the previous value when the control loses the focus.
-     *
-     *
The flash.system.IMEConversionMode class defines constants for the
-     *  valid values for this property.
-     *  You can also specify null to specify no IME.

-     *
-     *  @default null
-     *
-     *  @see flash.system.IMEConversionMode
+     *  @copy spark.primitives.RichEditableText#imeMode
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -406,14 +422,7 @@
     //----------------------------------

     /**
-     *  The maximum number of characters that the RichEditableText can contain,
-     *  as entered by a user.
-     *  A script can insert more text than maxChars allows;
-     *  the maxChars property indicates only how much text a user can enter.
-     *  If the value of this property is 0,
-     *  a user can enter an unlimited amount of text.
-     *
-     *  @default 0
+     *  @copy spark.primitives.RichEditableText#maxChars
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -451,48 +460,11 @@
     }

     //----------------------------------
-    //  maxWidth
-    //----------------------------------
-
-    /**
-     *  @private
-     */
-    override public function get maxWidth():Number
-    {
-        if (textDisplay)
-            return textDisplay.maxWidth;
-
-        // want the default to be default max width for UIComponent
-        var v:* = textDisplayProperties.maxWidth;
-        return (v === undefined) ? super.maxWidth : v;
-    }
-
-    /**
-     *  @private
-     */
-    override public function set maxWidth(value:Number):void
-    {
-        if (textDisplay)
-        {
-            textDisplay.maxWidth = value;
-            textDisplayProperties = BitFlagUtil.update(
-                uint(textDisplayProperties), MAX_WIDTH_PROPERTY_FLAG, true);
-        }
-        else
-        {
-            textDisplayProperties.maxWidth = value;
-        }
-
-        // Generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    //----------------------------------
     //  restrict
     //----------------------------------

     /**
-     *  @copy flash.text.TextField#restrict
+     *  @copy spark.primitives.RichEditableText#restrict
      *
      *  @default null
      *
@@ -536,10 +508,7 @@
     //----------------------------------

     /**
-     *  Specifies whether the text can be selected.
-     *  Making the text selectable lets you copy text from the control.
-     *
-     *  @default true;
+     *  @copy spark.primitives.RichEditableText#selectable
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -588,13 +557,7 @@
     [Bindable("selectionChange")]

     /**
-     *  The active position of the selection.
-     *  The "active" point is the end of the selection
-     *  which is changed when the selection is extended.
-     *  The active position may be either the start
-     *  or the end of the selection.
-     *
-     *  @default -1
+     *  @copy spark.primitives.RichEditableText#selectionActivePosition
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -618,13 +581,7 @@
     [Bindable("selectionChange")]

     /**
-     *  The anchor position of the selection.
-     *  The "anchor" point is the stable end of the selection
-     *  when the selection is extended.
-     *  The anchor position may be either the start
-     *  or the end of the selection.
-     *
-     *  @default -1
+     *  @copy spark.primitives.RichEditableText#selectionAnchorPosition
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -641,13 +598,7 @@
     //----------------------------------

     /**
-     *  Determines when text selections should be highlighted.
-     *
-     *  Possible values are ALWAYS, WHEN_FOCUSED, and WHEN_ACTIVE.
-     *
-     *  @see mx.components.TextSelectionHighlighting
-     *
-     *  @default null
+     *  @copy spark.primitives.RichEditableText#selectionHighlighting
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -690,7 +641,7 @@
     //----------------------------------

     /**
-     *  The text String displayed by this component.
+     *  @copy spark.primitives.RichEditableText#text
      *
      *  @langversion 3.0
      *  @playerversion Flash 10
@@ -743,7 +694,7 @@
     [SkinPart(required="false")]

     /**
-     *  The RichEditableText that must be present
+     *  The RichEditableText that may be present
      *  in any skin assigned to this component.
      *
      *  @langversion 3.0
@@ -878,12 +829,82 @@
     //
     //--------------------------------------------------------------------------

-    //----------------------------------
-    //  content
-    //----------------------------------
-
-    // TextArea has this, TextInput does not.
-
+    /**
+     *  @copy spark.primitives.RichEditableText#insertText()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function insertText(text:String):void
+    {
+        if (!textDisplay)
+            return;
+
+        textDisplay.insertText(text);
+
+        // This changes text so generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
+    /**
+     *  @copy spark.primitives.RichEditableText#appendText()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function appendText(text:String):void
+    {
+        if (!textDisplay)
+            return;
+
+        textDisplay.appendText(text);
+
+        // This changes text so generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
+    /**
+     *  @copy spark.primitives.RichEditableText#selectRange()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function selectRange(anchorIndex:int, activeIndex:int):void
+    {
+        if (!textDisplay)
+            return;
+
+        textDisplay.selectRange(anchorIndex, activeIndex);
+
+        // This changes the selection so generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
+    /**
+     *  @copy spark.primitives.RichEditableText#selectAll()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function selectAll():void
+    {
+        if (!textDisplay)
+            return;
+
+        textDisplay.selectAll();
+
+        // This changes the selection so generate an UPDATE_COMPLETE event.
+        invalidateProperties();
+    }
+
     /**
      *  @private
      */
@@ -910,10 +931,6 @@
         invalidateProperties();
      }

-    //----------------------------------
-    //  heightInLines
-    //----------------------------------
-
     /**
      *  @private
      */
@@ -947,10 +964,6 @@
         // Generate an UPDATE_COMPLETE event.
         invalidateProperties();
     }
-
-    //----------------------------------
-    //  textFlow
-    //----------------------------------

     /**
      *  @private
@@ -995,10 +1008,6 @@
         invalidateProperties();
     }

-    //----------------------------------
-    //  widthInChars
-    //----------------------------------
-
     /**
      *  The default width for the Text components, measured in characters.
      *  The width of the "M" character is used for the calculation.
@@ -1036,82 +1045,6 @@

         // Generate an UPDATE_COMPLETE event.
         invalidateProperties();
-    }
-
-    /**
-     *  Selects the entire text range.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function selectAll():void
-    {
-        if (!textDisplay)
-            return;
-
-        textDisplay.selectAll();
-
-        // This changes the selection so generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    /**
-     *  @copy flashx.textLayout.edit.ISelectionManager#selectRange()
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function selectRange(anchorIndex:int, activeIndex:int):void
-    {
-        if (!textDisplay)
-            return;
-
-        textDisplay.selectRange(anchorIndex, activeIndex);
-
-        // This changes the selection so generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    /**
-     *  @copy spark.primitives.RichEditableText#insertText()
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function insertText(text:String):void
-    {
-        if (!textDisplay)
-            return;
-
-        textDisplay.insertText(text);
-
-        // This changes text so generate an UPDATE_COMPLETE event.
-        invalidateProperties();
-    }
-
-    /**
-     *  @copy spark.primitives.RichEditableText#appendText()
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
-     */
-    public function appendText(text:String):void
-    {
-        if (!textDisplay)
-            return;
-
-        textDisplay.appendText(text);
-
-        // This changes text so generate an UPDATE_COMPLETE event.
-        invalidateProperties();
     }

     /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 3509
Author:   jimurphy@adobe.com
Date:     2008-10-07T18:19:17.646255Z

Log Message:
-----------
Rename of flex -> mx.

For compatibility reasons it was decided that the new functionality remain integrated with the old framework, although we will continue to build two separate SWCs, one with primarily existing framework classes, and one with new Flex 4 classes. This change removes duplicate names from the Flex 4 framework to avoid class name overlapping with the old framework code.  The naming overlap consists of two major areas:  New Components, and New Effects

Modified Paths:
--------------
386 paths were modified

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateColorInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateColorInstance.as
@@ -8,10 +8,10 @@
 //  in accordance with the terms of the license agreement accompanying it.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package flex.effects.effectClasses
+package mx.effects.effectClasses
 {
-import flex.effects.PropertyValuesHolder;
-import flex.effects.interpolation.ColorInterpolator;
+import mx.effects.PropertyValuesHolder;
+import mx.effects.interpolation.ColorInterpolator;

 import mx.styles.StyleManager;

@@ -19,24 +19,24 @@
  * The instance of the Tint effect, which animates a change in
  * color by interpolating the from/to values per color channel
  */
-public class TintInstance extends AnimateInstance
+public class FxAnimateColorInstance extends FxAnimateInstance
 {
     /**
-     * copy flex.effects.Tint#colorFrom
+     * copy mx.effects.Tint#colorFrom
      */
     public var colorFrom:uint;

     /**
-     * copy flex.effects.Tint#colorTo
+     * copy mx.effects.Tint#colorTo
      */
     public var colorTo:uint;

     /**
-     * copy flex.effects.Tint#colorPropertyName
+     * copy mx.effects.Tint#colorPropertyName
      */
     public var colorPropertyName:String;

-    public function TintInstance(target:Object)
+    public function FxAnimateColorInstance(target:Object)
     {
         super(target);
     }


Transferred from the Adobe Open Source Subversion Repository

Revision: 12651
Author:   smgilson@adobe.com
Date:     2009-12-08T15:04:12.651288Z

Log Message:
-----------
ASDoc prep for L10N, and add a few new examples

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/VolumeBar.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/VideoDisplayExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/ScrubBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/VideoPlayerExample.mxml</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/mediaClasses/examples/DynamicStreamingVideoSourceExample.mxml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/MuteButton.as</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/mediaClasses/examples</path>
<path kind="dir" action="A">/flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/mediaClasses</path>

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

--- frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
+++ frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoSource.as
@@ -16,14 +16,33 @@

 /**
  *  The DynamicStreamingVideoSource class represents a streaming video source and can be
- *  used for streaming pre-recorded video or live streaming video.  In addition,
- *  it can support a single stream or multiple streams associated with different
+ *  used for streaming pre-recorded video or live streaming video.
+ *  You use this class to define a video stream for the VideoPlayer and VideoDisplay controls.
+ *
+ *
This class supports a single stream or multiple streams associated with different
  *  bitrates.  The VideoPlayer and VideoDisplay
  *  classes can take a DynamicStreamingVideoSource instance as its source
- *  property.
+ *  property.

+ *
+ *  @mxml
+ *
+ *
The <s:DynamicStreamingVideoSource> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:DynamicStreamingVideoSource
+ *    Properties
+ *    host=""
+ *    initialIndex="0"
+ *    streamType="any"
+ *  />
+ *

  *
  *  @see spark.components.VideoPlayer
  *  @see spark.components.VideoDisplay
+ *  @see spark.components.mediaClasses.DynamicStreamingVideoItem
+ *
+ *  @includeExample examples/DynamicStreamingVideoSourceExample.mxml
  *
  *  @langversion 3.0
  *  @playerversion Flash 10
@@ -58,9 +77,14 @@
     [Inspectable(category="General")]

     /**
-     *  The uri pointing to the location of the server.
-     *  This should be a String, but it's typed as an Object
-     *  to support any future changes.
+     *  The URI of the location of the video server.
+     *  While this property is of type Object, pass
+     *  the URI as a String.
+     *
+     *
Use the streamName property of the
+     *  DynamicStreamingVideoItem class to specify stream name on the server.

+     *
+     *  @see spark.components.mediaClasses.DynamicStreamingVideoItem#streamName
      *
      *  @langversion 3.0
      *  @playerversion Flash 10


Return resource name instead of null if not found

--- collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/i18n/Message.as
+++ collect-flex/collect-flex-client/src/main/flex/org/openforis/collect/i18n/Message.as
@@ -3,6 +3,7 @@

 	/**
 	 * @author Mino Togna
+	 * @author S. Ricci
 	 * */
 	public class Message {

@@ -10,7 +11,12 @@
 		}

 		public static function get(resource:String, parameters:Array=null, bundle:String="messages"):String {
-			return ResourceManager.getInstance().getString(bundle, resource, parameters);
+			var message:String = ResourceManager.getInstance().getString(bundle, resource, parameters);
+			if(message != null) {
+				return message;
+			} else {
+				return resource;
+			}
 		}
 	}
 }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 18875
Author:   smgilson@adobe.com
Date:     2010-11-30T21:18:42.267112Z

Log Message:
-----------
ASDoc updates on formatters

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

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/globalization/supportClasses/GlobalizationBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/CurrencyFormatter.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as</path>

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

--- frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as
+++ frameworks/projects/spark/src/spark/formatters/supportClasses/NumberFormatterBase.as
@@ -25,14 +25,33 @@
 use namespace mx_internal;

 /**
- * NumberFormatterBase is a base class for the
- * NumberFormatter and CurrencyFormatter classes.
+ *  The NumberFormatterBase class is a base class for the
+ *  NumberFormatter and CurrencyFormatter classes.
+ *
+ *  @mxml
The <s:NumberFormatterBase> tag inherits all of the tag
+ *  attributes of its superclass and adds the following tag attributes:

+ *
+ *

+ *  <s:NumberFormatterBase
+ *    Properties
+ *    decimalSeparator="locale and OS dependent"
+ *    digitsType="locale and OS dependent"
+ *    errorText="null"
+ *    fractionalDigits="locale and OS dependent"
+ *    groupingPattern="locale and OS dependent"
+ *    groupingSeparator="locale and OS dependent"
+ *    leadingZero="locale and OS dependent"
+ *    negativeSymbol="locale and OS dependent"
+ *    trailingZeros="locale and OS dependent"
+ *    useGrouping="locale and OS dependent"
+ *  />
+ *

  *
  *  @see spark.formatters.CurrencyFormatter
  *  @see spark.formatters.NumberFormatter
  *
  *  @langversion 3.0
- *  @playerversion Flash 10.1
+ *  @playerversion Flash 10
  *  @playerversion AIR 2.5
  *  @productversion Flex 4.5
  */
@@ -66,7 +85,7 @@
      *  Constructor.
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -116,7 +135,7 @@
      *  @inheritDoc
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -157,15 +176,15 @@
      *  The decimal separator character used for formatting or parsing
      *  numbers that have a decimal part.
      *
+     *
The default value is dependent on the locale and operating system.

+
      *  @throws TypeError if this property is assigned a null value.
      *
-     *  The default value is dependent on the locale and operating system.
-     *
-     *  @see spark.formatters.CurrencyFormatter.format()
-     *  @see spark.formatters.NumberFormatter.format()
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @see spark.formatters.CurrencyFormatter#format()
+     *  @see spark.formatters.NumberFormatter#format()
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -191,20 +210,20 @@
      *
      *
Different languages and regions use different sets of
      *  characters to represent the
-     *  digits 0 through 9.  This property defines the set of digits
-     *  to be used.

+     *  digits 0 through 9.
+     *  This property defines the set of digits to be used.

      *
      *
The value of this property represents the Unicode value for
      *  the zero digit of a decimal digit set.
      *  The valid values for this property are defined in the
      *  NationalDigitsType class.

      *
-     *  The default value is dependent on the locale and operating system.
+     *
The default value is dependent on the locale and operating system.

      *
      *  @see flash.globalization.NationalDigitsType
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -247,7 +266,7 @@
      *  @see spark.globalization.LastOperationStatus
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -278,21 +297,21 @@
      *  separator.
      *
      *
Numbers are rounded to the number of digits specified by this
-     *  property. The rounding scheme
-     *  varies depending on the user's operating system.

+     *  property. The rounding scheme
+     *  varies depending on the application user's operating system.

      *
      *
When the trailingZeros property is set to
      *  true, the fractional portion of the
-     *  number (after the decimal separaotr) is padded with trailing zeros
+     *  number (after the decimal separator) is padded with trailing zeros
      *  until its length matches the value of this
      *  fractionalDigits property.

      *
-     *  @default dependent on the locale and operating system.
+     *
The default value is dependent on the locale and operating system.

      *
      *  @see #trailingZeros
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -377,15 +396,15 @@
      *  being used.
      *

      *
+     *
The default value is dependent on the locale and operating system.

+     *
      *  @throws TypeError if this property is assigned a null value.
-     *
-     *  The default value is dependent on the locale and operating system.
      *
      *  @see #groupingSeparator
      *  @see #useGrouping
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -414,17 +433,17 @@
      *  property is initially set based on the locale that is selected
      *  when the formatter object is constructed.

      *
+     *
The default value is dependent on the locale and operating system.

+     *
      *  @throws TypeError if this property is assigned a null value.
      *
-     *
The default value is dependent on the locale and operating system.

-     *
-     *  @see spark.formatters.CurrencyFormatter.format()
-     *  @see spark.formatters.NumberFormatter.format()
+     *  @see spark.formatters.CurrencyFormatter#format()
+     *  @see spark.formatters.NumberFormatter#format()
      *  @see #useGrouping
      *  @see #groupingPattern
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -508,17 +527,17 @@
      *

      *
      *
+     *
The default value is dependent on the locale and operating system.

+     *
      *  @throws TypeError if this property is assigned a null value.
      *
-     *
The default value is dependent on the locale and operating system.

-     *
-     *  @see spark.formatters.CurrencyFormatter.format()
-     *  @see spark.formatters.NumberFormatter.format()
+     *  @see spark.formatters.CurrencyFormatter#format()
+     *  @see spark.formatters.NumberFormatter#format()
      *
      *  @see #trailingZeros
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -557,7 +576,7 @@
      *  @see #format()
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -640,14 +659,14 @@
      *

      *

      *
+     *
The default value is dependent on the locale and operating system.

+     *
      *  @throws TypeError if this property is assigned a null value.
-     *
-     *
The default value is dependent on the locale and operating system.

      *
      *  @see #leadingZero
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */
@@ -690,7 +709,7 @@
      *  @see #groupingSeparator
      *
      *  @langversion 3.0
-     *  @playerversion Flash 10.1
+     *  @playerversion Flash 10
      *  @playerversion AIR 2.5
      *  @productversion Flex 4.5
      */


Fixed config

Fixed config

It's now possible to set the configuration of the player when a stream
is not initiated

--- src/Player.as
+++ src/Player.as
@@ -148,8 +148,10 @@
     public function setConfig(iconfig:Object):void {
       if (iconfig.buffer !== undefined) {
         config.buffer = iconfig.buffer;
-        this.ns.bufferTime = config.buffer;
-        this.client.forceBuffering();
+        if (this.ns) {
+          this.ns.bufferTime = config.buffer;
+          this.client.forceBuffering();
+        }
       }

       if (iconfig.scaleUp !== undefined) {


gpu curve

gpu curve

--- src/flash/__native/GLGraphicsPath.as
+++ src/flash/__native/GLGraphicsPath.as
@@ -58,6 +58,12 @@
 				var y0:Number = poly.array[poly.length - 1];
 				var d:Number = Math.abs(x0 - anchorX) + Math.abs(y0 - anchorY);
 				var step:Number = 5 / d;
+				if (step>.5){
+					step = .5;
+				}
+				if (step<0.01){
+					step = 0.01;
+				}
 				for (var t1:Number = step; t1 <= 1; t1 += step ){
 					var t0:Number = 1 - t1;
 					var q0x:Number = t0 * x0 + t1 * controlX;


Transferred from the Adobe Open Source Subversion Repository

Revision: 4611
Author:   chaase@adobe.com
Date:     2009-01-22T00:30:21.783682Z

Log Message:
-----------
Various bug fixes in effects, mostly in the area of seeking, auto-reversing, and shader transitions.

QE Notes: None
Doc Notes: None
Bugs: sdk-17783, sdk-18767, sdk-18759, sdk-18461, sdk-18309, sdk-18013, sdk-18688
Reviewer: Jason
Tests: checkintests, Mustella: Effects, gumbo/effects, ListDataEffects

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/SetAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/UnconstrainItemAction.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/framework/src/mx/effects/AddChildAction.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/Parallel.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/SetPropertyAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveChildAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/effectClasses/FxAnimateShaderTransitionInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/FxAnimateShaderTransition.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/effects/Animation.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/AddItemAction.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/framework/src/mx/effects/SetStyleAction.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/RemoveItemAction.as</path>

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
@@ -21,6 +21,7 @@
 import mx.containers.Panel;
 import mx.core.Application;
 import mx.core.UIComponent;
+import mx.effects.FxAnimateShaderTransition;
 import mx.effects.PropertyValuesHolder;
 import mx.events.AnimationEvent;

@@ -170,21 +171,28 @@
             }
         if (!bitmapFrom)
             if (propertyChanges &&
-                (propertyChanges.start["visible"] == false) ||
-                (propertyChanges.start["parent"] == null))
+                (propertyChanges.start["visible"] == false ||
+                 propertyChanges.start["parent"] == null))
                 if (bitmapTo)
                     bitmapFrom = new BitmapData(bitmapTo.width, bitmapTo.height, true, 0);
                 else
                     bitmapFrom = new BitmapData(1, 1, true, 0);
         if (!bitmapTo)
             if (propertyChanges &&
-                (propertyChanges.end["visible"] == false) ||
-                (propertyChanges.end["parent"] == null))
+                (propertyChanges.end["visible"] == false ||
+                 propertyChanges.end["parent"] == null))
                 if (bitmapFrom)
                     bitmapTo = new BitmapData(bitmapFrom.width, bitmapFrom.height, true, 0);
                 else
                     bitmapTo = new BitmapData(1, 1, true, 0);

+        // Last-ditch effort - if we don't have bitmaps yet, then just grab a
+        // snapshot of the current target
+        if (!bitmapFrom)
+            bitmapFrom = FxAnimateShaderTransition.getSnapshot(target);
+        if (!bitmapTo)
+            bitmapTo = FxAnimateShaderTransition.getSnapshot(target);
+
         // Fix up the visibility if it's becoming visible
         if (propertyChanges &&
             !propertyChanges.start["visible"] &&
@@ -268,5 +276,16 @@
     {
         return shader[property];
     }
+
+    /**
+     * Override FXAnimate's setupStyleMapEntry to avoid the need to
+     * validate our properties against the 'target' (since we actually
+     * set properties on our associated filter instance).
+     *
+     * @private
+     */
+    override protected function setupStyleMapEntry(property:String):void
+    {
+    }
 }
 }


fix AbstractSceneNode transforms get* methods to get the TransformController as fast as possible

--- src/aerys/minko/scene/node/AbstractSceneNode.as
+++ src/aerys/minko/scene/node/AbstractSceneNode.as
@@ -367,19 +367,37 @@

 		minko_scene function getLocalToWorldTransformUnsafe(forceUpdate : Boolean = false) : Matrix4x4
 		{
-			return _transformController.getLocalToWorldTransform(this, forceUpdate);
+            var transformController : TransformController = _root
+                ? (_root is AbstractSceneNode
+                    ? (_root as AbstractSceneNode)._transformController
+                    : _root.getControllersByType(TransformController)[0] as TransformController)
+                : _transformController;
+
+            return transformController.getLocalToWorldTransform(this, forceUpdate);
 		}

         minko_scene function getWorldToLocalTransformUnsafe(forceUpdate : Boolean = false) : Matrix4x4
         {
-            return _transformController.getWorldToLocalTransform(this, forceUpdate);
+            var transformController : TransformController = _root
+                ? (_root is AbstractSceneNode
+                    ? (_root as AbstractSceneNode)._transformController
+                    : _root.getControllersByType(TransformController)[0] as TransformController)
+                : _transformController;
+
+            return transformController.getWorldToLocalTransform(this, forceUpdate);
         }

 		public function getLocalToWorldTransform(forceUpdate 	: Boolean 	= false,
 												 output 		: Matrix4x4 = null) : Matrix4x4
 		{
+            var transformController : TransformController = _root
+                ? (_root is AbstractSceneNode
+                    ? (_root as AbstractSceneNode)._transformController
+                    : _root.getControllersByType(TransformController)[0] as TransformController)
+                : _transformController;
+
 			output ||= new Matrix4x4();
-			output.copyFrom(_transformController.getLocalToWorldTransform(this, forceUpdate));
+			output.copyFrom(transformController.getLocalToWorldTransform(this, forceUpdate));

 			return output;
 		}
@@ -387,8 +405,14 @@
 		public function getWorldToLocalTransform(forceUpdate 	: Boolean 	= false,
 												 output			: Matrix4x4 = null) : Matrix4x4
 		{
+            var transformController : TransformController = _root
+                ? (_root is AbstractSceneNode
+                    ? (_root as AbstractSceneNode)._transformController
+                    : _root.getControllersByType(TransformController)[0] as TransformController)
+                : _transformController;
+
             output ||= new Matrix4x4();
-            output.copyFrom(_transformController.getWorldToLocalTransform(this, forceUpdate));
+            output.copyFrom(transformController.getWorldToLocalTransform(this, forceUpdate));

 			return output;
 		}


This is already output by SimpleStreamableObject...

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

--- src/as/com/threerings/crowd/data/PlaceConfig.as
+++ src/as/com/threerings/crowd/data/PlaceConfig.as
@@ -20,9 +20,6 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 package com.threerings.crowd.data {
-
-import com.threerings.util.ClassUtil;
-import com.threerings.util.StringBuilder;

 import com.threerings.io.ObjectInputStream;
 import com.threerings.io.ObjectOutputStream;
@@ -83,13 +80,5 @@
     {
         return null; // not used
     }
-
-    // documentation inherited
-    override protected function toStringBuilder (buf :StringBuilder) :void
-    {
-        buf.append("type=").append(ClassUtil.shortClassName(this));
-        buf.append(", ");
-        super.toStringBuilder(buf);
-    }
 }
 }


introduce HLSEvent.WARNING

introduce HLSEvent.WARNING

useful to track potentially recoverable errors such as MANIFEST_LOAD_ERROR/FRAGMENT_LOAD_ERROR/FRAGMENT_PARSING_ERROR ...

--- src/com/pivotshare/hls/loader/FragmentLoader.as
+++ src/com/pivotshare/hls/loader/FragmentLoader.as
@@ -620,8 +620,10 @@
             the playlist on webserver is from SN [51-61]
             the one in memory is from SN [50-60], and we are trying to load SN50.
              */
+            var hlsError : HLSError = new HLSError(HLSError.FRAGMENT_LOADING_ERROR, _fragCurrent.url, "I/O Error while loading fragment:" + message);
+            _hls.dispatchEvent(new HLSEvent(HLSEvent.WARNING, hlsError));
             CONFIG::LOGGING {
-                Log.error("I/O Error while loading fragment:" + message);
+                Log.warn(hlsError.msg);
             }
             if (HLSSettings.fragmentLoadMaxRetry == -1 || _fragRetryCount < HLSSettings.fragmentLoadMaxRetry) {
                 _loadingState = LOADING_FRAGMENT_IO_ERROR;
@@ -633,6 +635,7 @@
                 _fragRetryCount++;
                 _fragRetryTimeout = Math.min(HLSSettings.fragmentLoadMaxRetryTimeout, 2 * _fragRetryTimeout);
             } else {
+                _hls.dispatchEvent(new HLSEvent(HLSEvent.WARNING, hlsError));
                 var level : Level = _levels[_fragCurrent.level];
                 // if we have redundant streams left for that level, switch to it
                 if(level.redundantStreamId < level.redundantStreamsNb) {


Transferred from the Adobe Open Source Subversion Repository

Revision: 15022
Author:   smgilson@adobe.com
Date:     2010-03-25T15:54:41.112390Z

Log Message:
-----------
Add ASDoc version tags

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

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkToggleButtonBaseAutomationImpl.as

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

--- frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkToggleButtonBaseAutomationImpl.as
+++ frameworks/projects/automation_spark/src/spark/automation/delegates/components/supportClasses/SparkToggleButtonBaseAutomationImpl.as
@@ -11,56 +11,71 @@

 package spark.automation.delegates.components.supportClasses
 {
-	import flash.display.DisplayObject;
-
-	import mx.automation.Automation;
-	import mx.core.mx_internal;
-
-	import spark.components.supportClasses.ToggleButtonBase;
-
-	use namespace mx_internal;
-
-	[Mixin]
-	/**
-	 *
-	 *  Defines methods and properties required to perform instrumentation for the
-	 *  ToggleButtonBase control.
-	 *
-	 *  @see spark.components.supportClasses.ToggleButtonBase
-	 *
-	 */
-	public class SparkToggleButtonBaseAutomationImpl 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.supportClasses.ToggleButtonBase, SparkToggleButtonBaseAutomationImpl);
-		}
-
-		/**
-		 *  Constructor.
-		 * @param obj ToggleButtonBase object to be automated.
-		 */
-		public function SparkToggleButtonBaseAutomationImpl(obj:spark.components.supportClasses.ToggleButtonBase)
-		{
-			super(obj);
-
-		}
-
-
-	}
-
+    import flash.display.DisplayObject;
+
+    import mx.automation.Automation;
+    import mx.core.mx_internal;
+
+    import spark.components.supportClasses.ToggleButtonBase;
+
+    use namespace mx_internal;
+
+    [Mixin]
+    /**
+     *
+     *  Defines methods and properties required to perform instrumentation for the
+     *  ToggleButtonBase control.
+     *
+     *  @see spark.components.supportClasses.ToggleButtonBase
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     *
+     */
+    public class SparkToggleButtonBaseAutomationImpl 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.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public static function init(root:DisplayObject):void
+        {
+            Automation.registerDelegateClass(spark.components.supportClasses.ToggleButtonBase, SparkToggleButtonBaseAutomationImpl);
+        }
+
+        /**
+         *  Constructor.
+         *  @param obj ToggleButtonBase object to be automated.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 9
+         *  @playerversion AIR 1.5
+         *  @productversion Flex 4
+         */
+        public function SparkToggleButtonBaseAutomationImpl(obj:spark.components.supportClasses.ToggleButtonBase)
+        {
+            super(obj);
+
+        }
+
+
+    }
+
 }


starting to fix docs for RectangleAlignment. need to do more

--- src/ktu/utils/align/RectangleAlignment.as
+++ src/ktu/utils/align/RectangleAlignment.as
@@ -33,7 +33,7 @@

 	/**
 	 *
-	 * The VizAlignment class represents how you would like to align targets.

+	 * The RectangleAlignment class is a smaller interface for aligning Rectangle only.

 	 *

 	 * Each alignment needs two (2) things:

 	 *  how you wish to align the targets.


Missing eol.

Missing eol.

git-svn-id: a15b1a68d1eb0b178e64880bb702e768ba372808@1519 f9a80dcf-8710-0410-9714-9a4fb6817a1c

--- build-aux/urbi.as
+++ build-aux/urbi.as
@@ -100,4 +100,4 @@
     fatal "cannot run $URBI_SERVER --version"
   fi
 }
-])+])


- change: added some null object exception guards and some cleanup to BitmapResourceCacheItem

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

--- src/reprise/external/BitmapResourceCacheItem.as
+++ src/reprise/external/BitmapResourceCacheItem.as
@@ -44,9 +44,9 @@
 		public function BitmapResourceCacheItem(loader : ImageResource)
 		{
 			m_loader = loader;
-			m_loader.addEventListener(Event.COMPLETE, loader_complete);
-			m_loader.addEventListener(ResourceEvent.PROGRESS, loader_progress);
-			m_loader.addEventListener(Event.CANCEL, loader_cancel);
+			m_loader.addEventListener(Event.COMPLETE, loader_complete, false, 0, true);
+			m_loader.addEventListener(ResourceEvent.PROGRESS, loader_progress, false, 0, true);
+			m_loader.addEventListener(Event.CANCEL, loader_cancel, false, 0, true);
 		}

 		public function loader() : ImageResource
@@ -62,6 +62,8 @@
 		public function destroy() : void
 		{
 			m_bitmapDataReference.dispose();
+			m_loader = null;
+			m_targets = null;
 		}

 		public function addTarget(target : BitmapResource) : void
@@ -80,7 +82,7 @@
 			m_loader.setRetryTimes(Math.max(m_loader.retryTimes(), target.retryTimes()));
 			m_loader.setTimeout(Math.max(m_loader.timeout(), target.timeout()));
 			m_loader.setForceReload(m_loader.forceReload() || target.forceReload());
-			target.addEventListener(Event.CANCEL, target_cancel);
+			target.addEventListener(Event.CANCEL, target_cancel, false, 0, true);

 			if (target.cacheBitmap() && !target.forceReload())
 			{
@@ -181,20 +183,19 @@
 			}
 			m_targets = null;

-			dispatchEvent(e);
+			dispatchEvent(e);
 		}

 		protected function loader_progress(e:ResourceEvent) : void
 		{
-			if (!m_targets)
+			if (!m_targets || !m_loader)
 			{
 				return;
 			}
-			var i : Number = m_targets.length;
-			var target : BitmapResource;
+			var i : int = m_targets.length;
 			while (i--)
 			{
-				target = BitmapResource(m_targets[i]);
+				var target : BitmapResource = BitmapResource(m_targets[i]);
 				target.setBytesLoaded(m_loader.bytesLoaded());
 				target.setBytesTotal(m_loader.bytesTotal());
 				target.updateProgress();


Transferred from the Adobe Open Source Subversion Repository

Revision: 4960
Author:   gosmith@adobe.com
Date:     2009-02-14T02:23:27.721068Z

Log Message:
-----------
Decreased the number of Gumbo style buckets.

Combined AdvancedCharacterFormatTextStyles.as, AdvancedParagraphFormatTextStyles.as, and AdvancedContainerFormatTextStyles.as into AdvancedTextLayoutFormatStyles.as.

Combined BasicCharacterFormatTextStyles.as, BasicParagraphFormatTextStyles.as, and BasicContainerFormatTextStyles.as into BasicTextLayoutFormatStyles.as.

The reason for doing this is that TLF combined its CharacterFormat, ParagraphFormat, and ContainerFormat classes into a single TextLayoutFormat.

QE Notes: None
Doc Notes: None
Bugs: None
Reviewer: None; no functional change

Modified Paths:
--------------
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxScroller.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicContainerFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedParagraphFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicCharacterFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxTextBase.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicParagraphFormatTextStyles.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/AdvancedContainerFormatTextStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/FxSlider.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxButton.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/BasicTextLayoutFormatStyles.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/SkinnableContainer.as
+++ frameworks/projects/spark/src/spark/components/SkinnableContainer.as
@@ -58,12 +58,8 @@
  */
 [Event(name="elementRemove", type="mx.events.ElementExistenceEvent")]

-include "../styles/metadata/AdvancedCharacterFormatTextStyles.as"
-include "../styles/metadata/AdvancedContainerFormatTextStyles.as"
-include "../styles/metadata/AdvancedParagraphFormatTextStyles.as"
-include "../styles/metadata/BasicCharacterFormatTextStyles.as"
-include "../styles/metadata/BasicContainerFormatTextStyles.as"
-include "../styles/metadata/BasicParagraphFormatTextStyles.as"
+include "../styles/metadata/AdvancedTextLayoutFormatStyles.as"
+include "../styles/metadata/BasicTextLayoutFormatStyles.as"
 include "../styles/metadata/SelectionFormatTextStyles.as"

 /**


Transferred from the Adobe Open Source Subversion Repository

Revision: 10597
Author:   jimurphy@adobe.com
Date:     2009-09-25T18:49:20.077385Z

Log Message:
-----------
Merged gumbo_beta2 revisions 10484-10485,10547 -> trunk

Modified Paths:
--------------
<path kind="dir" action="M">/flex/sdk/trunk</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/halo/defaults.css</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransformInstance.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstance.as</path>

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/CompositeEffectInstance.as
@@ -13,6 +13,8 @@
 {

 import flash.events.Event;
+import flash.system.ApplicationDomain;
+
 import mx.core.mx_internal;
 import mx.effects.EffectInstance;
 import mx.effects.IEffectInstance;
@@ -294,31 +296,67 @@
 		}
 	}

-	/**
-	 *  @private
-	 *  Check if we have a RotateInstance in one of our childSets array elements
-	 */
-	mx_internal function hasRotateInstance():Boolean
-	{
-		if (childSets)
-		{
-			for (var i:int = 0; i < childSets.length; i++)
-			{
-				if (childSets[i].length > 0)
-				{
-					var compChild:CompositeEffectInstance = childSets[i][0] as CompositeEffectInstance;
-
-					if (childSets[i][0] is RotateInstance || (compChild && compChild.hasRotateInstance()))
-					{
-						return true;
-					}
-				}
-			}
-		}
-
-		return false;
-	}
-
+    /**
+     *  @private
+     *  Check if we have a RotateInstance in one of our childSets array elements
+     */
+    mx_internal function hasRotateInstance():Boolean
+    {
+        if (childSets)
+        {
+            for (var i:int = 0; i < childSets.length; i++)
+            {
+                if (childSets[i].length > 0)
+                {
+                    var compChild:CompositeEffectInstance = childSets[i][0] as CompositeEffectInstance;
+
+                    if (childSets[i][0] is RotateInstance || (compChild && compChild.hasRotateInstance()))
+                    {
+                        return true;
+                    }
+                }
+            }
+        }
+
+        return false;
+    }
+
+    private static var resizeEffectType:Class;
+    private static var resizeEffectLoaded:Boolean = false;
+
+    /**
+     *  @private
+     *  Check if we have a ResizeInstance in one of our childSets array elements
+     */
+    mx_internal function hasResizeInstance():Boolean
+    {
+        if (childSets)
+        {
+            if (!resizeEffectLoaded)
+            {
+                resizeEffectLoaded = true;
+                if (ApplicationDomain.currentDomain.hasDefinition("spark.effects.supportClasses.ResizeInstance"))
+                    resizeEffectType = Class(ApplicationDomain.currentDomain.
+                        getDefinition("spark.effects.supportClasses.ResizeInstance"));
+            }
+            if (resizeEffectType)
+                for (var i:int = 0; i < childSets.length; i++)
+                {
+                    if (childSets[i].length > 0)
+                    {
+                        var compChild:CompositeEffectInstance = childSets[i][0] as CompositeEffectInstance;
+
+                        if (childSets[i][0] is resizeEffectType || (compChild && compChild.hasResizeInstance()))
+                        {
+                            return true;
+                        }
+                    }
+                }
+        }
+
+        return false;
+    }
+
 	/**
 	 *  @private
 	 */