forgot this one

forgot this one

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

--- WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
+++ WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
@@ -459,7 +459,7 @@
           o Plays a multiframe resource starting at the specified framenumber
           o Plays from the current frame if framenumber is null
       */
-      public function play( framenumber:int ):void {
+      public function play( framenumber:* ):void {
       }

@@ -467,7 +467,7 @@
           o Stops a multiframe resource at the specified framenumber
           o Stops at the current frame if framenumber is null
       */
-      public function stop( framenumber:int ):void {
+      public function stop( framenumber:*, rel:* = null ):void {
       }

@@ -554,8 +554,8 @@
           o if recursive is true, the sprite destroys all its children as well
       */
       public function destroy( ):void {
-	//PBR
-	if (parent)
+    //PBR
+    if (parent)
           parent.removeChild(this);
       }


fixed bug where 'save session state to server' wasn't appearing right away

--- WeaveClient/src/weave/VisApplication.as
+++ WeaveClient/src/weave/VisApplication.as
@@ -248,6 +248,7 @@
 					{
 						_this.enabled = true;
 						adminService = pendingAdminService;
+						setupVisMenuItems(); // make sure 'save session state to server' is shown
 						applicationComplete();
 					};
 					var faultHandler:Function = function(..._):void


fixed performance and crash issues

fixed performance and crash issues

--- WeaveJS/src/weavejs/util/JSByteArray.as
+++ WeaveJS/src/weavejs/util/JSByteArray.as
@@ -98,7 +98,7 @@

 			this.data = (data !== undefined) ? data : [];
 			if (endian !== undefined) this.endian = endian;
-			this.length = data.length;
+			this.length = this.data.length;

 			this.stringTable = [];
 			this.objectTable = [];
@@ -214,8 +214,8 @@
 			var sig1:String = (((b2 & 0xF) << 16) | (b3 << 8) | b4).toString(2);
 			var sig2:String = ((b5 >> 7) ? '1' : '0');
 			var sig3:String = (((b5 & 0x7F) << 24) | (b6 << 16) | (b7 << 8) | b8).toString(2);	// significand = bits 12..63
-			while (sig3.length < 31)
-				sig3 = '0' + sig3;
+			if (sig3.length < 31)
+				sig3 = '0000000000000000000000000000000'.substr(0, 31 - sig3.length) + sig3;

 			var sig:int = parseInt(sig1 + sig2 + sig3, 2);
 			if (sig == 0 && exp == -1023)
@@ -357,8 +357,8 @@
 			var sig1:String = (((b2 & 0xF) << 16) | (b3 << 8) | b4).toString(2);
 			var sig2:String = ((b5 >> 7) ? '1' : '0');
 			var sig3:String = (((b5 & 0x7F) << 24) | (b6 << 16) | (b7 << 8) | b8).toString(2);	// significand = bits 12..63
-			while (sig3.length < 31)
-				sig3 = '0' + sig3;
+			if (sig3.length < 31)
+				sig3 = '0000000000000000000000000000000'.substr(0, 31 - sig3.length) + sig3;

 			var sig:int = parseInt(sig1 + sig2 + sig3, 2);
 			if (sig == 0 && exp == -1023)
@@ -755,16 +755,11 @@
 					return this.objectTable[(ref >> 1)];

 				len = (ref >> 1);
-
-				var ba:JSByteArray = new JSByteArray();
-
+
+				var ba:JSByteArray = new JSByteArray(data.slice(this.pos, this.pos += len));
+
 				this.objectTable.push(ba);
-
-				for (i = 0; i < len; i++)
-				{
-					ba.writeByte(this.readByte());
-				}
-
+
 				return ba;
 			}


Transferred from the Adobe Open Source Subversion Repository

Revision: 5101
Author:   gauravj@adobe.com
Date:     2009-02-27T05:22:45.887116Z

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

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

Modified Paths:
--------------
663 paths were modified

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

--- frameworks/projects/framework/src/mx/effects/effectClasses/ZoomInstance.as
+++ frameworks/projects/framework/src/mx/effects/effectClasses/ZoomInstance.as
@@ -50,6 +50,11 @@
  *
  *  @see mx.effects.Zoom
  *  @see mx.events.TweenEvent
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
  */
 public class ZoomInstance extends TweenEffectInstance
 {
@@ -65,6 +70,11 @@
 	 *  Constructor.
 	 *
 	 *  @param target The Object to animate with this effect.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public function ZoomInstance(target:Object)
 	{
@@ -154,6 +164,11 @@
 	 *  toggles between a big and small state without moving the mouse.
 	 *
 	 *  @default false
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var captureRollEvents:Boolean;

@@ -166,6 +181,11 @@
 	 *  or registration point.
 	 *  The default value is target.width / 2,
 	 *  which is the center of the target.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var originX:Number;

@@ -178,6 +198,11 @@
 	 *  or registration point.
 	 *  The default value is target.height / 2,
 	 *  which is the center of the target.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var originY:Number;

@@ -189,6 +214,11 @@
 	 *  Number that represents the scale at which to start the height zoom,
 	 *  as a percent between 0.01 and 1.0.
 	 *  The default value is 0.01, which is very small.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var zoomHeightFrom:Number;

@@ -200,6 +230,11 @@
 	 *  Number that represents the scale at which to complete the height zoom,
 	 *  as a percent between 0.01 and 1.0.
 	 *  The default value is 1.0, which is the object's normal size.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var zoomHeightTo:Number;

@@ -211,6 +246,11 @@
 	 *  Number that represents the scale at which to start the width zoom,
 	 *  as a percent between 0.01 and 1.0.
 	 *  The default value is 0.01, which is very small.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var zoomWidthFrom:Number;

@@ -222,6 +262,11 @@
 	 *  Number that represents the scale at which to complete the width zoom,
 	 *  as a percent between 0.01 and 1.0.
 	 *  The default value is 1.0, which is the object's normal size.
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
 	 */
 	public var zoomWidthTo:Number;


Transferred from the Adobe Open Source Subversion Repository

Revision: 20149
Author:   klin@adobe.com
Date:     2011-02-04T21:39:31.000080Z

Log Message:
-----------
Add and update [Inspectable] metadata across spark components.

QE notes: No
Doc notes: No
Bugs: SDK-28942
Reviewer: Carol
Tests run: cyclone server, checkintests
Is noteworthy for integration: Yes

Modified Paths:
--------------
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/HGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/NumericStepper.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/SliderBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ComboBox.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/TileGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Button.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/List.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/DropDownListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Spinner.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGrid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/VGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Image.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Grid.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBarBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/Range.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/Panel.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/modules/ModuleLoader.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/ButtonBar.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/mediaClasses/DynamicStreamingVideoItem.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as</path>
<path kind="file" action="M">/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as</path>

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

--- frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
@@ -265,6 +265,8 @@
     // maximum
     //---------------------------------

+    [Inspectable(category="General", defaultValue="100.0")]
+
     /**
      *  @private
      *  Overidden so that this property can be the source of a binding expression.
@@ -290,6 +292,8 @@
     // minimum
     //---------------------------------

+    [Inspectable(category="General", defaultValue="0.0")]
+
     /**
      *  @private
      *  Overidden so that this property can be the source of a binding expression.
@@ -372,6 +376,7 @@
     //---------------------------------

     [Bindable(event="valueCommit")]  // Warning: must match the Bindable tag in Range
+    [Inspectable(category="General", defaultValue="0.0")]

     /**
      *  @private


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

--- frameworks/projects/automation/src/mx/automation/delegates/controls/ButtonAutomationImpl.as
+++ frameworks/projects/automation/src/mx/automation/delegates/controls/ButtonAutomationImpl.as
@@ -0,0 +1,180 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.MouseEvent;
+	import flash.events.KeyboardEvent;
+	import flash.ui.Keyboard;
+	import mx.automation.Automation;
+	import mx.automation.IAutomationObjectHelper;
+	import mx.automation.delegates.core.UIComponentAutomationImpl;
+	import mx.controls.Button;
+	import mx.core.EventPriority;
+	import mx.core.mx_internal;
+
+	use namespace mx_internal;
+
+	[Mixin]
+	/**
+	 *
+	 *  Defines methods and properties required to perform instrumentation for the
+	 *  Button control.
+	 *
+	 *  @see mx.controls.Button
+	 *
+	 *
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public class ButtonAutomationImpl 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(Button, ButtonAutomationImpl);
+		}
+
+		/**
+		 *  Constructor.
+		 * @param obj Button object to be automated.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function ButtonAutomationImpl(obj:Button)
+		{
+			super(obj);
+
+			obj.addEventListener(KeyboardEvent.KEY_UP, btnKeyUpHandler, false, EventPriority.DEFAULT+1, true);
+			obj.addEventListener(MouseEvent.CLICK, clickHandler, false, EventPriority.DEFAULT+1, true);
+		}
+
+		/**
+		 *  @private
+		 *  storage for the owner component
+		 */
+		protected function get btn():Button
+		{
+			return uiComponent as Button;
+		}
+
+		/**
+		 *  @private
+		 */
+		private var ignoreReplayableClick:Boolean;
+
+		//----------------------------------
+		//  automationName
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationName():String
+		{
+			return btn.label || btn.toolTip || super.automationName;
+		}
+
+		//----------------------------------
+		//  automationValue
+		//----------------------------------
+
+		/**
+		 *  @private
+		 */
+		override public function get automationValue():Array
+		{
+			return [ btn.label || btn.toolTip ];
+		}
+
+		/**
+		 *  @private
+		 */
+		protected function clickHandler(event:MouseEvent):void
+		{
+			if (!ignoreReplayableClick)
+				recordAutomatableEvent(event);
+			ignoreReplayableClick = false;
+		}
+
+		/**
+		 *  @private
+		 */
+		private function btnKeyUpHandler(event:KeyboardEvent):void
+		{
+			if (!btn.enabled)
+				return;
+
+			if (event.keyCode == Keyboard.SPACE)
+			{
+				// we need to ignore recording a click being dispatched here
+				ignoreReplayableClick = true;
+				recordAutomatableEvent(event);
+			}
+		}
+
+
+		//--------------------------------------------------------------------------
+		//
+		//  Overridden methods
+		//
+		//--------------------------------------------------------------------------
+
+		/**
+		 *  @private
+		 *  Replays click interactions on the button.
+		 *  If the interaction was from the mouse,
+		 *  dispatches MOUSE_DOWN, MOUSE_UP, and CLICK.
+		 *  If interaction was from the keyboard,
+		 *  dispatches KEY_DOWN, KEY_UP.
+		 *  Button's KEY_UP handler then dispatches CLICK.
+		 *
+		 *  @param event ReplayableClickEvent to replay.
+		 */
+		override public function replayAutomatableEvent(event:Event):Boolean
+		{
+			var help:IAutomationObjectHelper = Automation.automationObjectHelper;
+
+			if (event is MouseEvent && event.type == MouseEvent.CLICK)
+				return help.replayClick(uiComponent, MouseEvent(event));
+			else if (event is KeyboardEvent)
+				return help.replayKeyboardEvent(uiComponent, KeyboardEvent(event));
+			else
+				return super.replayAutomatableEvent(event);
+		}
+
+	}
+
+}


Update AttributeEditor.

Update AttributeEditor.

--- bin/Data/Scripts/Editor/AttributeEditor.as
+++ bin/Data/Scripts/Editor/AttributeEditor.as
@@ -1491,70 +1491,26 @@

 void InitVectorStructs()
 {
-    // Fill vector structure data
-    Array<String> billboardVariables = {
-        "Billboard Count",
-        "   Position",
-        "   Size",
-        "   UV Coordinates",
-        "   Color",
-        "   Rotation",
-        "   Direction",
-        "   Is Enabled"
-    };
-    vectorStructs.Push(VectorStruct("BillboardSet", "Billboards", billboardVariables, 1));
-
-    Array<String> animationStateVariables = {
-        "Anim State Count",
-        "   Animation",
-        "   Start Bone",
-        "   Is Looped",
-        "   Weight",
-        "   Time",
-        "   Layer"
-    };
-    vectorStructs.Push(VectorStruct("AnimatedModel", "Animation States", animationStateVariables, 1));
-
-    Array<String> staticModelGroupInstanceVariables = {
-        "Instance Count",
-        "   NodeID"
-    };
-    vectorStructs.Push(VectorStruct("StaticModelGroup", "Instance Nodes", staticModelGroupInstanceVariables, 1));
-
-    Array<String> splinePathInstanceVariables = {
-        "Control Point Count",
-        "   NodeID"
-    };
-    vectorStructs.Push(VectorStruct("SplinePath", "Control Points", splinePathInstanceVariables, 1));
-
-    Array<String> crowdManagerFilterTypeVariables = {
-        "Query Filter Type Count",
-        "   Include Flags",
-        "   Exclude Flags",
-        "   >AreaCost"
-    };
-    vectorStructs.Push(VectorStruct("CrowdManager", "Filter Types", crowdManagerFilterTypeVariables, 1));
-
-    Array<String> crowdManagerAreaCostVariables = {
-        "   Area Count",
-        "      Cost"
-    };
-    vectorStructs.Push(VectorStruct("CrowdManager", "   >AreaCost", crowdManagerAreaCostVariables, 1));
-
-    Array<String> crowdManagerObstacleAvoidanceTypeVariables = {
-        "Obstacle Avoid. Type Count",
-        "   Velocity Bias",
-        "   Desired Velocity Weight",
-        "   Current Velocity Weight",
-        "   Side Bias Weight",
-        "   Time of Impact Weight",
-        "   Time Horizon",
-        "   Grid Size",
-        "   Adaptive Divs",
-        "   Adaptive Rings",
-        "   Adaptive Depth"
-    };
-    vectorStructs.Push(VectorStruct("CrowdManager", "Obstacle Avoidance Types", crowdManagerObstacleAvoidanceTypeVariables, 1));
+    Array<String> categories = GetObjectCategories();
+    for (int categoryIndex = 0; categoryIndex < categories.length; categoryIndex++)
+    {
+        Array<String> objectsNames = GetObjectsByCategory(categories[categoryIndex]);
+        for (int objectIndex = 0; objectIndex < objectsNames.length; objectIndex++)
+        {
+            String objectName = objectsNames[objectIndex];
+            Array<AttributeInfo> attributes = GetObjectsAttriuteInfos(objectName);
+
+            for (int attributeIndex = 0; attributeIndex < attributes.length; attributeIndex++)
+            {
+                AttributeInfo attribute = attributes[attributeIndex];
+                if (attribute.type == VAR_VARIANTVECTOR and attribute.variantStructureElementsNames.length > 0)
+                {
+                    Array<String> elementsNames = attribute.variantStructureElementsNames;
+                    vectorStructs.Push(VectorStruct(objectName, attribute.name, elementsNames, 1));
+                }
+            }
+        }
+    }
 }

 VectorStruct@ GetVectorStruct(Array<Serializable@>@ serializables, uint index)


change viewer

change viewer

--- src/com/merlinds/miracle_tool/viewer/ViewerView.as
+++ src/com/merlinds/miracle_tool/viewer/ViewerView.as
@@ -11,6 +11,7 @@
 	import com.merlinds.miracle.Miracle;
 	import com.merlinds.miracle.display.MiracleImage;
 	import com.merlinds.miracle.utils.Asset;
+	import com.merlinds.miracle.utils.MtfReader;
 	import com.merlinds.miracle_tool.models.AppModel;

 	import flash.display.Sprite;
@@ -27,6 +28,7 @@
 		private var _model:AppModel;
 		private var _assets:Vector.<Asset>;
 		private var _window:Window;
+		private var _name:String;

 		public function ViewerView(model:AppModel = null) {
 			super();
@@ -55,25 +57,19 @@
 			var n:int = _assets.length;
 			for(var i:int = 0; i < n; i++){
 				var asset:Asset = _assets[i];
-				if(asset.type == Asset.TEXTURE_TYPE){
+				if(asset.type == Asset.TIMELINE_TYPE){
 					//parse output
 					_window = new Window(this, 0, 0, "Chose mesh");
-					var list:List = new List(_window, 0, 0, this.getTexture(asset.output));
-					_window.x = this.stage.stageWidth - _window.width >> 1;
-					_window.y = this.stage.stageHeight - _window.height >> 1;
+					var list:List = new List(_window, 0, 0, this.getAnimations(asset.output));
+					_window.x = this.stage.stageWidth - _window.width;
 					list.addEventListener(Event.SELECT, this.selectAnimationHandler);
 				}
 			}
-
-		}
-
-		private function getTexture(bytes:ByteArray):Array {
-			var result:Array = [1, 2, 3];
-			return result;
 		}

 		private function getAnimations(bytes:ByteArray):Array {
-			var result:Array = [1, 2, 3];
+			var result:Array = [];
+
 			return result;
 		}
 		//} endregion PRIVATE\PROTECTED METHODS ========================================
@@ -100,11 +96,17 @@
 			stream.close();
 			//parse
 			if(_assets == null)_assets = new <Asset>[];
-			_assets.push(new Asset(_model.viewerInput.name, byteArray));
+			var asset:Asset = new Asset(_model.viewerInput.name, byteArray);
+			if(asset.type == Asset.TIMELINE_TYPE){
+				_name = asset.name;
+			}
+			_assets.push(asset);
 //			var name:String = asset.name;
 			if(_assets.length > 1){
 				this.choseAnimation();
 				Miracle.createScene(_assets, 1);
+				Miracle.currentScene.createImage(_name)
+						.addEventListener(Event.ADDED_TO_STAGE, this.imageAddedToStage);
 				Miracle.resume();
 			}else{
 				this.createHandler(true);
@@ -113,14 +115,10 @@

 		private function selectAnimationHandler(event:Event):void {
 			var list:List = event.target as List;
-			list.removeEventListener(event.type, this.selectAnimationHandler);
 			log(this, "selectAnimationHandler", list.selectedItem);
-			this.removeChild(_window);
-			_window = null;
 			//add animation to miracle
 			var name:String = list.selectedItem.toString();
-			Miracle.currentScene.createImage(name)
-			 .addEventListener(Event.ADDED_TO_STAGE, this.imageAddedToStage);
+
 		}

 		private function imageAddedToStage(event:Event):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@1252804 13f79535-47bb-0310-9956-ffa450edef68

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


Duplicate variable definition.

Duplicate variable definition.

--- src/org/igniterealtime/xiff/core/XMPPConnection.as
+++ src/org/igniterealtime/xiff/core/XMPPConnection.as
@@ -832,7 +832,7 @@
 				// Start the callback for this IQ if one exists
 				if ( pendingIQs[iq.id] !== undefined )
 				{
-					var callbackInfo:* = pendingIQs[iq.id];
+					callbackInfo = pendingIQs[iq.id];

 					if (callbackInfo.errorFunc != null)
 					{


FLEX-34065 Fix ADG RTE when grouped columns is empty array

--- frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -2370,8 +2370,15 @@
             // Force visibleColumns to be recomputed now so if there are lockedColumns and
             // updateSubContent() is called before updateDisplayList() is called,
             // visibleColumns will be correct.
-            if (horizontalScrollPosition > visibleHeaderInfos.length)
-                horizontalScrollPosition = visibleHeaderInfos.length - 1;
+			if (visibleHeaderInfos)
+			{
+				if (horizontalScrollPosition > visibleHeaderInfos.length)
+					horizontalScrollPosition = visibleHeaderInfos.length - 1;
+			}
+			else
+			{
+				horizontalScrollPosition = 0;
+			}
         }

         super.commitProperties();


Transferred from the Adobe Open Source Subversion Repository

Revision: 5128
Author:   gauravj@adobe.com
Date:     2009-03-02T15:32:50.808182Z

Log Message:
-----------
Removing [ExcludeClass] from mx.controls.listClasses.ListBaseContentHolder

QE Notes: None.
Doc Notes: None.
Bugs: SDK-18028
tests: checkintests

Modified Paths:
--------------
/flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBaseContentHolder.as

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

--- frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
+++ frameworks/projects/mx/src/mx/controls/listClasses/ListBaseContentHolder.as
@@ -39,12 +39,6 @@
  *  @productversion Flex 3
  */
 [Style(name="backgroundColor", type="uint", format="Color", inherit="no")]
-
-//--------------------------------------
-//  Other metadata
-//--------------------------------------
-
-[ExcludeClass]

 /**
  *  The ListBaseContentHolder class defines a container in a list-based control


StringConstants wasn't counting name clashes correctly

--- raw/src/org/yellcorp/tools/StringConstants.as
+++ raw/src/org/yellcorp/tools/StringConstants.as
@@ -56,7 +56,7 @@
         for each (var v:String in values)
         {
             name = generateName(v);
-            count = counters[name] = 1 + counters[name];
+            count = counters[name] = 1 + int(counters[name]);
             if (count > 1)
             {
                 name += count;


Set gameconfig to an empty object until populated by the backend.

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

--- src/as/com/threerings/ezgame/EZGameControl.as
+++ src/as/com/threerings/ezgame/EZGameControl.as
@@ -612,9 +612,8 @@
     {
         // get our gamedata
         _gameData = o.gameData;
-        _gameConfig = o.gameConfig;
-        if (_gameConfig == null) {
-            _gameConfig = {};
+        if (o.gameConfig != null) {
+            _gameConfig = o.gameConfig;
         }

         // and functions
@@ -684,7 +683,7 @@
     protected var _gameData :Object;

     /** Contains any custom game configuration data. */
-    protected var _gameConfig :Object;
+    protected var _gameConfig :Object = {};

     /** Contains functions exposed to us from the EZGame host. */
     protected var _funcs :Object;


Ray tummy-scratching.

Ray tummy-scratching.

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

--- src/as/com/threerings/flex/CommandComboBox.as
+++ src/as/com/threerings/flex/CommandComboBox.as
@@ -39,7 +39,7 @@
      * The field of the selectedItem object used as the argument to the
      * command or function. If null, the entire selectedItem is passed as the argument.
      */
-    public var argField :String;
+    public var dataField :String;

     /**
      * Create a command combobox.
@@ -47,11 +47,11 @@
      * @param cmdOrFn either a String, which will be the CommandEvent command to dispatch,
      *        or a function, which will be called when changed.
      */
-    public function CommandComboBox (cmdOrFn :* = null, argField :String = "data")
+    public function CommandComboBox (cmdOrFn :* = null, dataField :String = "data")
     {
         CommandButton.validateCmd(cmdOrFn);
         _cmdOrFn = cmdOrFn;
-        this.argField = argField;
+        this.dataField = dataField;

         addEventListener(ListEvent.CHANGE, handleChange);
     }
@@ -73,14 +73,14 @@
     }

     /**
-     * Handy function to lookup an option based on argField and set it as the selected item.
+     * Handy function to lookup an option based on dataField and set it as the selected item.
      * This probably only works for Array dataProviders.
      */
     public function setSelectedValue (value :Object) :void
     {
         for (var ii :int = 0; ii < dataProvider.length; ++ii) {
-            var v :Object = (this.argField != null) ?
-                dataProvider[ii][this.argField] : dataProvider[ii];
+            var v :Object = (this.dataField != null) ?
+                dataProvider[ii][this.dataField] : dataProvider[ii];
             if (v == value) {
                 this.selectedIndex = ii;
                 return;
@@ -92,12 +92,12 @@
     }

     /**
-     * The value that will be passed to the command or function based on argField and the
+     * The value that will be passed to the command or function based on dataField and the
      * current selected item.
      */
     public function getSelectedValue () :Object
     {
-        return (this.argField != null) ? this.selectedItem[this.argField] : this.selectedItem;
+        return (this.dataField != null) ? this.selectedItem[this.dataField] : this.selectedItem;
     }

     protected function handleChange (event :ListEvent) :void


Transferred from the Adobe Open Source Subversion Repository

Revision: 17443
Author:   clucier@adobe.com
Date:     2010-08-23T16:49:10.917557Z

Log Message:
-----------
AnimateTransitionShaderInstance no longer caches the original target filter list (this
proved problematic in the case where the filter list changed at some point while
the effect was active).

QE notes: None
Doc notes: None
Bugs: SDK-26287
Reviewer: Jason
Tests run: Checkin
Is noteworthy for integration: No

Modified Paths:
--------------
/private/flex/sdk/branches/hero_private/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as

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

--- frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
+++ frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransitionShaderInstance.as
@@ -163,22 +163,6 @@
      *  @productversion Flex 4
      */
     protected var shader:Shader;
-
-    /**
-     * @private
-     * Cache the filters set on the target when the effect begins.
-     * We will assign our own filters during the effect, so we should
-     * restore the old filters when we're done
-     */
-    private var previousFilters:Array;
-
-    /**
-     * @private
-     * The filters that we will assign during the animation. This is
-     * a concatenation of our shaderFilter plus any filters that were
-     * already on the target.
-     */
-    private var previousPlusShaderFilters:Array;

     /**
      *  @private
@@ -211,14 +195,7 @@
      *  @private
      */
     override public function play():void
-    {
-        // Buggy seeking behavior of Sequence sometimes causes an instance
-        // to play twice, causing problems with our temporary filters variables.
-        // If this variable is not null, then we must be playing already; don't
-        // play again.
-        if (previousPlusShaderFilters != null)
-            return;
-
+    {
         // Only dispose bitmaps that are not provided by the caller
         disposeFrom = (bitmapFrom == null);
         disposeTo = (bitmapTo == null);
@@ -382,8 +359,7 @@
             return;

         shader.data.progress.value = [value];
-        if (previousPlusShaderFilters != null)
-            target.filters = previousPlusShaderFilters;
+        target.filters = [shaderFilter].concat(acquireFilters());
     }

     /**
@@ -396,9 +372,7 @@
         if (!hasBitmaps)
             return;

-        previousFilters = target.filters;
-        previousPlusShaderFilters = [shaderFilter].concat(previousFilters);
-        target.filters = previousPlusShaderFilters;
+        target.filters = [shaderFilter].concat(target.filters);;
     }

     /**
@@ -411,9 +385,8 @@
         if (!hasBitmaps)
             return;

-        target.filters = (previousFilters != null) ? previousFilters : [];
-        previousFilters = null;
-        previousPlusShaderFilters = null;
+        target.filters = acquireFilters();
+
         if (disposeFrom)
             bitmapFrom.dispose();
         if (disposeTo)
@@ -421,6 +394,25 @@
     }

     /**
+     * Acquires the current list of filters for our target, *excluding*
+     * our active shader filter.
+     * @private
+     */
+    private function acquireFilters():Array
+    {
+        var filters:Array = target.filters;
+        for (var i:int=0; i < filters.length; i++)
+        {
+            if (filters[i] == shaderFilter)
+            {
+                filters.splice(i, 1);
+                break;
+            }
+        }
+        return filters;
+    }
+
+    /**
      * @private
      */
     override public function animationEnd(animation:Animation):void


fixed natural jenks break error when only one record was added

--- WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
+++ WeaveData/src/weave/data/BinningDefinitions/NaturalJenksBinningDefinition.as
@@ -290,14 +290,16 @@

 			// the lower_class_limits matrix is used as indexes into itself
 			// here: the `kClassCount` variable is reused in each iteration.
-			while (countNum >=2)
-			{
-				var id:Number = _lower_class_limits[kClassCount][countNum] -2;
-				kClass[countNum -1] = _sortedValues[id];
-				kClassCount = _lower_class_limits[kClassCount][countNum] -1;
-				countNum --;
-			}
-
+			if(kClassCount>countNum) // we only do this step if the number of values is greater than the number of bins.
+			{
+				while (countNum >=2)
+				{
+					var id:Number = _lower_class_limits[kClassCount][countNum] -2;
+					kClass[countNum -1] = _sortedValues[id];
+					kClassCount = _lower_class_limits[kClassCount][countNum] -1;
+					countNum --;
+				}
+			}
 			// check to see if the 0 and 1 in the array are the same - if so, set 0
 			// to 0:
 			if (kClass[0] == kClass[1])
@@ -334,7 +336,15 @@
 					/* Get the index of the next break */
 					maxIndex = _previousSortedValues.lastIndexOf(kClass[iBin+1]);
 				}
-				_tempNumberClassifier.max.value = _previousSortedValues[maxIndex];
+
+				if(maxIndex == -1)
+				{
+					_tempNumberClassifier.max.value = _tempNumberClassifier.min.value ;
+				}
+				else
+				{
+					_tempNumberClassifier.max.value = _previousSortedValues[maxIndex];
+				}
 				_tempNumberClassifier.minInclusive.value = true;
 				_tempNumberClassifier.maxInclusive.value = true;


Adds support for manually kicking off an instance's destruction with Injector#destroyInstance

--- src/org/swiftsuspenders/injection/Injector.as
+++ src/org/swiftsuspenders/injection/Injector.as
@@ -255,28 +255,6 @@
 		}

 		/**
-		 * Uses the TypeDescription the injector associates with the given instance's
-		 * type to iterate over all [PreDestroy] methods in the instance, supporting
-		 * automated destruction.
-		 *
-		 * @param instance The instance to destroy
-		 */
-		public function destroyInstance(instance : Object) : void
-		{
-			if (!instance)
-			{
-				return;
-			}
-			const type : Class = _reflector.getClass(instance);
-			const typeDescription : TypeDescription = getTypeDescription(type);
-			for (var preDestroyHook : PreDestroyInjectionPoint = typeDescription.preDestroyMethods;
-			     preDestroyHook; preDestroyHook = PreDestroyInjectionPoint(preDestroyHook.next))
-			{
-				preDestroyHook.applyInjection(instance, type, this);
-			}
-		}
-
-		/**
 		 * Indicates whether the injector can supply a response for the specified dependency either
 		 * by using a mapping of its own or by querying one of its ancestor injectors.
 		 *
@@ -385,15 +363,25 @@
 		}

 		/**
-		 * Returns a description of the given type containing its constructor, injection points
-		 * and post construct and pre destroy hooks
-		 *
-		 * @param type The type to describe
-		 * @return The TypeDescription containing all information the injector has about the type
-		 */
-		public function getTypeDescription(type : Class) : TypeDescription
-		{
-			return _reflector.describeInjections(type);
+		 * Uses the TypeDescription the injector associates with the given instance's
+		 * type to iterate over all [PreDestroy] methods in the instance, supporting
+		 * automated destruction.
+		 *
+		 * @param instance The instance to destroy
+		 */
+		public function destroyInstance(instance : Object) : void
+		{
+			if (!instance)
+			{
+				return;
+			}
+			const type : Class = _reflector.getClass(instance);
+			const typeDescription : TypeDescription = getTypeDescription(type);
+			for (var preDestroyHook : PreDestroyInjectionPoint = typeDescription.preDestroyMethods;
+			     preDestroyHook; preDestroyHook = PreDestroyInjectionPoint(preDestroyHook.next))
+			{
+				preDestroyHook.applyInjection(instance, type, this);
+			}
 		}

 		/**
@@ -447,9 +435,31 @@
 			return _applicationDomain;
 		}

+		/**
+		 * Instructs the injector to use the description for the given type when constructing or
+		 * destroying instances.
+		 *
+		 * The description consists details for the constructor, all properties and methods to
+		 * inject into during construction and all methods to invoke during destruction.
+		 *
+		 * @param type
+		 * @param description
+		 */
 		public function addTypeDescription(type : Class, description : TypeDescription) : void
 		{
 			_classDescriptor.addDescription(type, description);
+		}
+
+		/**
+		 * Returns a description of the given type containing its constructor, injection points
+		 * and post construct and pre destroy hooks
+		 *
+		 * @param type The type to describe
+		 * @return The TypeDescription containing all information the injector has about the type
+		 */
+		public function getTypeDescription(type : Class) : TypeDescription
+		{
+			return _reflector.describeInjections(type);
 		}


Let's print a stack trace when there's an error in the completeCallback,
it could be a ways inside it and we want to help people debug.

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

--- src/as/com/threerings/util/MultiLoader.as
+++ src/as/com/threerings/util/MultiLoader.as
@@ -244,7 +244,8 @@
         try {
             _complete(thisResult);
         } catch (err :Error) {
-            trace("MultiLoader: Could not call completeCallback: " + err);
+            trace("MultiLoader: Error calling completeCallback [result=" + thisResult + "].");
+            trace("Cause: " + err.getStackTrace());
         }
     }


Added loadClasses(), for convenience of the common pattern of loading
stuff into an ApplicationDomain.

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

--- src/as/com/threerings/util/MultiLoader.as
+++ src/as/com/threerings/util/MultiLoader.as
@@ -150,6 +150,27 @@
     }

     /**
+     * Loads classes into the specified ApplicationDomain.
+     * The complete callback receives either the same ApplicationDomain or no arguments.
+     */
+    public static function loadClasses (
+        sources :Object, appDom :ApplicationDomain, completeCallback :Function) :void
+    {
+        var complete :Function = function (retval :Object) :void {
+            switch (completeCallback.length) {
+            default:
+                completeCallback();
+                break;
+            case 1:
+                completeCallback(appDom);
+                break;
+            }
+        };
+
+        getLoaders(sources, complete, false, appDom);
+    }
+
+    /**
      * Coordinate loading some asynchronous objects.
      *
      * @param sources An Array, Dictionary, or Object of sources, or just a single source.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8
Author:   open-source-svn-admin@adobe.com
Date:     2007-12-15T01:49:31.087529Z

Log Message:
-----------
The beginning of the open-source Flex SDK.

Populated the flex/sdk/trunk directory with an open-source subset of files from //depot/flex/sdk/...@191097 in the Faramir Perforce server. This changelist is a bit past the 3.0rc0 build.

The Ant scripts will not successfully build yet. They need to be adapted to the open-source subset.

Modified Paths:
--------------
2532 paths were modified

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

--- frameworks/projects/mx/src/mx/containers/accordionClasses/AccordionHeader.as
+++ frameworks/projects/mx/src/mx/containers/accordionClasses/AccordionHeader.as
@@ -0,0 +1,272 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  ADOBE SYSTEMS INCORPORATED
+//  Copyright 2003-2007 Adobe Systems Incorporated
+//  All Rights Reserved.
+//
+//  NOTICE: Adobe permits you to use, modify, and distribute this file
+//  in accordance with the terms of the license agreement accompanying it.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.containers.accordionClasses
+{
+
+import flash.display.DisplayObject;
+import flash.events.Event;
+import flash.events.MouseEvent;
+import mx.containers.Accordion;
+import mx.controls.Button;
+import mx.core.Container;
+import mx.core.FlexVersion;
+import mx.core.EdgeMetrics;
+import mx.core.IDataRenderer;
+import mx.core.IFlexDisplayObject;
+import mx.core.mx_internal;
+import mx.styles.CSSStyleDeclaration;
+import mx.styles.ISimpleStyleClient;
+import mx.styles.StyleManager;
+
+use namespace mx_internal;
+
+[AccessibilityClass(implementation="mx.accessibility.AccordionHeaderAccImpl")]
+
+/**
+ *  The AccordionHeader class defines the appearance of the navigation buttons
+ *  of an Accordion.
+ *  You use the getHeaderAt() method of the Accordion class to get a reference
+ *  to an individual AccordionHeader object.
+ *
+ *  @see mx.containers.Accordion
+ */
+public class AccordionHeader extends Button implements IDataRenderer
+{
+	include "../../core/Version.as";
+
+	//--------------------------------------------------------------------------
+	//
+	//  Class mixins
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 *  Placeholder for mixin by AccordionHeaderAccImpl.
+	 */
+	mx_internal static var createAccessibilityImplementation:Function;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 */
+	public function AccordionHeader()
+	{
+		super();
+
+		// Since we play games with allowing selected to be set without
+		// toggle being set, we need to clear the default toggleChanged
+		// flag here otherwise the initially selected header isn't
+		// drawn in a selected state.
+		toggleChanged = false;
+		mouseFocusEnabled = false;
+		tabEnabled = false;
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Variables
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private var focusObj:DisplayObject;
+
+	/**
+	 *  @private
+	 */
+	private var focusSkin:IFlexDisplayObject;
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  data
+	//----------------------------------
+
+	/**
+	 *  @private
+	 *  Storage for the _data property.
+	 */
+	private var _data:Object;
+
+	/**
+	 *  Stores a reference to the content associated with the header.
+	 */
+	override public function get data():Object
+	{
+		return _data;
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function set data(value:Object):void
+	{
+		_data = value;
+	}
+
+	//----------------------------------
+	//  selected
+	//----------------------------------
+
+	/**
+	 *  @private
+	 */
+	override public function set selected(value:Boolean):void
+	{
+		_selected = value;
+
+		invalidateDisplayList();
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: UIComponent
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function createChildren():void
+	{
+		super.createChildren();
+
+		if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)
+		{
+			// AccordionHeader has a bit of a conflict here. Our styleName points to
+			// our parent Accordion, which has padding values defined. We also have
+			// padding values defined on our type selector, but since class selectors
+			// take precedence over type selectors, the type selector padding values
+			// are ignored. Force them in here.
+			var styleDecl:CSSStyleDeclaration = StyleManager.getStyleDeclaration(className);
+
+			if (styleDecl)
+			{
+				var value:Number = styleDecl.getStyle("paddingLeft");
+				if (!isNaN(value))
+					setStyle("paddingLeft", value);
+				value = styleDecl.getStyle("paddingRight");
+				if (!isNaN(value))
+					setStyle("paddingRight", value);
+			}
+		}
+	}
+
+	/**
+	 *  @private
+	 */
+	override protected function initializeAccessibility():void
+	{
+		if (AccordionHeader.createAccessibilityImplementation != null)
+			AccordionHeader.createAccessibilityImplementation(this);
+	}
+
+	/**
+	 *  @private
+	 */
+	override public function drawFocus(isFocused:Boolean):void
+	{
+		// Accordion header focus is drawn inside the control.
+		if (isFocused && !isEffectStarted)
+		{
+			if (!focusObj)
+			{
+				var focusClass:Class = getStyle("focusSkin");
+
+				focusObj = new focusClass();
+
+				var focusStyleable:ISimpleStyleClient = focusObj as ISimpleStyleClient;
+				if (focusStyleable)
+					focusStyleable.styleName = this;
+
+				addChild(focusObj);
+
+				// Call the draw method if it has one
+				focusSkin = focusObj as IFlexDisplayObject;
+			}
+
+			if (focusSkin)
+			{
+				focusSkin.move(0, 0);
+				focusSkin.setActualSize(unscaledWidth, unscaledHeight);
+			}
+			focusObj.visible = true;
+
+			dispatchEvent(new Event("focusDraw"));
+		}
+		else if (focusObj)
+		{
+			focusObj.visible = false;
+		}
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden methods: Button
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override mx_internal function layoutContents(unscaledWidth:Number,
+											     unscaledHeight:Number,
+											     offset:Boolean):void
+	{
+		super.layoutContents(unscaledWidth, unscaledHeight, offset);
+
+		// Move the focus object to front.
+		// AccordionHeader needs special treatment because it doesn't
+		// show focus by having the standard focus ring display outside.
+		if (focusObj)
+			setChildIndex(focusObj, numChildren - 1);
+	}
+
+	//--------------------------------------------------------------------------
+	//
+	//  Overridden event handlers: Button
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	override protected function rollOverHandler(event:MouseEvent):void
+	{
+		super.rollOverHandler(event);
+
+		// The halo design specifies that accordion headers overlap
+		// by a pixel when layed out. In order for the border to be
+		// completely drawn on rollover, we need to set our index
+		// here to bring this header to the front.
+		var accordion:Accordion = Accordion(parent);
+		if (accordion.enabled)
+		{
+			accordion.rawChildren.setChildIndex(this,
+				accordion.rawChildren.numChildren - 1);
+		}
+	}
+}
+
+}


Transferred from the Adobe Open Source Subversion Repository

Revision: 13013
Author:   gosmith@adobe.com
Date:     2009-12-16T23:05:06.067124Z

Log Message:
-----------
Added ASDoc for the Spark ListBaseAccImpl, ListAccImpl, DropDownListAccImpl, ComboBoxAccImpl, ButtonBarBaseAccImpl, and TabBarAccImpl, based on the opensource specs.

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

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as</path>

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

--- frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as
+++ frameworks/projects/spark/src/spark/accessibility/DropDownListBaseAccImpl.as
@@ -12,209 +12,315 @@
 package spark.accessibility
 {

-    import flash.accessibility.Accessibility;
-    import flash.events.Event;
-
+import flash.accessibility.Accessibility;
+import flash.events.Event;
+
 import mx.accessibility.AccConst;
-    import mx.core.UIComponent;
-    import mx.core.mx_internal;
-    import mx.accessibility.AccImpl;
-    import spark.components.supportClasses.DropDownListBase;
-
-    use namespace mx_internal;
-
-    /**
-     *  DropDownListBaseAccImpl is a subclass of AccessibilityImplementation
-     *  which implements accessibility for the DropDownListBase class.
+import mx.core.UIComponent;
+import mx.core.mx_internal;
+import mx.accessibility.AccImpl;
+import spark.components.supportClasses.DropDownListBase;
+
+use namespace mx_internal;
+
+/**
+ *  DropDownListAccImpl is the accessibility implementation class
+ *  for spark.componenents.DropDownList.
+ *
+ *
When a Spark DropDownList is created,
+ *  its accessibilityImplementation property
+ *  is set to an instance of this class.
+ *  The Flash Player then uses this class to allow MSAA clients
+ *  such as screen readers to see and manipulate the DropDownList.
+ *  See the mx.accessibility.AccImpl and
+ *  flash.accessibility.AccessibilityImplementation classes
+ *  for background information about accessibility implementation
+ *  classes and MSAA.

+ *
+ *
Children

+ *
+ *
The MSAA children of a DropDownList are its list items.
+ *  The number of children is the number of items
+ *  in the dataProvider
+ *  not just the number of visible renderers.

+ *
+ *
As described below, the accessibility of the list items
+ *  is managed by the DropDownList;
+ *  the accessibilityImplementation
+ *  and accessibilityProperties of the item renderers
+ *  are ignored by the Flash Player.

+ *
+ *
Role

+ *
+ *
The MSAA Role of a DropDownList is ROLE_SYSTEM_COMBOBOX.

+ *
+ *
The Role of each list item is ROLE_SYSTEM_LISTITEM.

+ *
+ *
Name

+ *
+ *
The MSAA Name of a DropDownList is, by default, an empty string.
+ *  When wrapped in a FormItem element, the Name is the FormItem's label.
+ *  To override this behavior,
+ *  set the DropDownList's accessibilityName property.

+ *
+ *
The Name of each list item is determined by the DropDownList's
+ *  itemToLabel() method.

+ *
+ *
When the Name of the DropDownList or one of its items changes,
+ *  a DropDownList dispatches the MSAA event EVENT_OBJECT_NAMECHANGE
+ *  with the proper childID for a list item or 0 for itself.

+ *
+ *
Description

+ *
+ *
The MSAA Description of a DropDownList is, by default,
+ *  an empty string, but you can set the DropDownList's
+ *  accessibilityDescription property.

+ *
+ *
The Description of each list item is the empty string.

+ *
+ *
State

+ *
+ *
The MSAA State of a DropDownList is a combination of:
+ *

+ *
STATE_SYSTEM_UNAVAILABLE (when enabled is false)

+ *
STATE_SYSTEM_FOCUSABLE (when enabled is true)

+ *
STATE_SYSTEM_FOCUSED
+ *    (when enabled is true and the DropDownList has focus)

+ *
STATE_SYSTEM_EXPANDED (when it is open)

+ *
STATE_SYSTEM_COLLAPSED (when it is closed)

+ *

+ *
+ *
The State of a list item is a combination of:
+ *

+ *
STATE_SYSTEM_FOCUSABLE

+ *
STATE_SYSTEM_FOCUSED (when it has focus)

+ *
STATE_SYSTEM_SELECTABLE

+ *
STATE_SYSTEM_SELECTED (when it is selected)

+ *

+ *
+ *
When the State of the DropDownList or one of its list items changes,
+ *  a DropDownList dispatches the MSAA event EVENT_OBJECT_STATECHANGE
+ *  with the proper childID for the list item or 0 for itself.

+ *
+ *
Value

+ *
+ *
The MSAA Value of a DropDownList is the MSAA Name
+ *  of the currently selected list item.

+ *
+ *
The Value of each list item is the empty string.

+ *
+ *
When the Value of the DropDownList changes,
+ *  it dispatches the MSAA event EVENT_OBJECT_VALUECHANGE.

+ *
+ *
Location

+ *
+ *
The MSAA Location of a DropDownList or a list item
+ *  is its bounding rectangle.

+ *
+ *
Default Action

+ *
+ *
A DropDownList does not have an MSAA DefaultAction

+ *
+ *
The DefaultAction of a list item is "Double click".

+ *
+ *
Focus

+ *
+ *
The DropDownList itself can receive focus, as well as its list items
+ *  (either while the DropDownList is collapsed or expanded).
+ *  The EVENT_OBJECT_FOCUS is fired when this happens.

+ *
+ *
Selection

+ *
+ *
The DropDownList allows a single item to be selected,
+ *  in which case an EVENT_OBJECT_SELECTION event is fired.

+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public class DropDownListBaseAccImpl extends ListBaseAccImpl
+{
+    include "../core/Version.as";
+
+    //-------------------------------------------------------------------------
+    //
+    //  Class methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Enables accessibility in the DropDownListBase class.
+     *
+     *
This method is called by application startup code
+     *  that is autogenerated by the MXML compiler.
+     *  Afterwards, when instances of DropDownListBase are initialized,
+     *  their accessibilityImplementation property
+     *  will be set to an instance of this class.

      *
      *  @langversion 3.0
      *  @playerversion Flash 10
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    public class DropDownListBaseAccImpl extends ListBaseAccImpl
-    {
-        include "../core/Version.as";
+    public static function enableAccessibility():void
+    {
+        DropDownListBase.createAccessibilityImplementation =
+            createAccessibilityImplementation;
+    }
+
+    /**
+     *  @private
+     *  Creates a DropDownListBase AccessibilityImplementation object.
+     *  This method is called from UIComponent's
+     *  initializeAccessibility() method.
+     */
+    mx_internal static function createAccessibilityImplementation(
+        component:UIComponent):void
+    {
+        component.accessibilityImplementation =
+            new DropDownListBaseAccImpl(component);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Constructor.
+     *
+     *  @param master The UIComponent instance that this AccImpl instance
+     *  is making accessible.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    public function DropDownListBaseAccImpl(master:UIComponent)
+    {
+        super(master);

-        //-------------------------------------------------------------------------
-        //
-        //  Class methods
-        //
-        //--------------------------------------------------------------------------
+        role = AccConst.ROLE_SYSTEM_COMBOBOX;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden properties: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  eventsToHandle
+    //----------------------------------
+
+    /**
+     *  @private
+     *  Array of events that we should listen for from the master component.
+     */
+    override protected function get eventsToHandle():Array
+    {
+        return super.eventsToHandle.concat(["open", "close"]);
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: AccessibilityImplementation
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  IAccessible method for returning the value of the DropDownListBase
+     *  (which would be the text of the item selected).
+     *  The DropDownListBase should return the content of the selected item as the value.
+     *
+     *  @param childID uint
+     *
+     *  @return Value String
+     */
+    override public function get_accValue(childID:uint):String
+    {
+        if (childID == 0)
+            return getName(DropDownListBase(master).selectedIndex + 1);
+        return null;
+    }
+
+    /**
+     *  @private
+     */
+    override public function get_accState(childID:uint):uint
+    {
+        var accState:uint = super.get_accState(childID);

-        /**
-         *  Enables accessibility in the DropDownListBase class.
-         *
-         *
This method is called by application startup code
-         *  that is autogenerated by the MXML compiler.
-         *  Afterwards, when instances of DropDownListBase are initialized,
-         *  their accessibilityImplementation property
-         *  will be set to an instance of this class.

-         *
-         *  @langversion 3.0
-         *  @playerversion Flash 10
-         *  @playerversion AIR 1.5
-         *  @productversion Flex 4
-         */
-        public static function enableAccessibility():void
+        if (childID == 0)
         {
-            DropDownListBase.createAccessibilityImplementation =
-                createAccessibilityImplementation;
+            if (DropDownListBase(master).isDropDownOpen)
+                accState |= AccConst.STATE_SYSTEM_EXPANDED;
+            else
+                accState |= AccConst.STATE_SYSTEM_COLLAPSED;
         }

-        /**
-         *  @private
-         *  Creates a DropDownListBase AccessibilityImplementation object.
-         *  This method is called from UIComponent's
-         *  initializeAccessibility() method.
-         */
-        mx_internal static function createAccessibilityImplementation(
-            component:UIComponent):void
+        return accState;
+    }
+
+    //--------------------------------------------------------------------------
+    //
+    //  Overridden event handlers: AccImpl
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  @private
+     *  Override the generic event handler.
+     *  All AccImpl must implement this
+     *  to listen for events from its master component.
+     */
+    override protected function eventHandler(event:Event):void
+    {
+        switch (event.type)
         {
-            component.accessibilityImplementation =
-                new DropDownListBaseAccImpl(component);
-        }
-
-        //--------------------------------------------------------------------------
-        //
-        //  Constructor
-        //
-        //--------------------------------------------------------------------------
-
-        /**
-         *  Constructor.
-         *
-         *  @param master The UIComponent instance that this AccImpl instance
-         *  is making accessible.
-         *
-         *  @langversion 3.0
-         *  @playerversion Flash 10
-         *  @playerversion AIR 1.5
-         *  @productversion Flex 4
-         */
-        public function DropDownListBaseAccImpl(master:UIComponent)
-        {
-            super(master);
-
-            role = AccConst.ROLE_SYSTEM_COMBOBOX;
-        }
-
-        //--------------------------------------------------------------------------
-        //
-        //  Overridden properties: AccImpl
-        //
-        //--------------------------------------------------------------------------
-
-        //----------------------------------
-        //  eventsToHandle
-        //----------------------------------
-
-        /**
-         *  @private
-         *  Array of events that we should listen for from the master component.
-         */
-        override protected function get eventsToHandle():Array
-        {
-            return super.eventsToHandle.concat(["open", "close"]);
-        }
-
-        //--------------------------------------------------------------------------
-        //
-        //  Overridden methods: AccessibilityImplementation
-        //
-        //--------------------------------------------------------------------------
-
-        /**
-         *  @private
-         *  IAccessible method for returning the value of the DropDownListBase
-         *  (which would be the text of the item selected).
-         *  The DropDownListBase should return the content of the selected item as the value.
-         *
-         *  @param childID uint
-         *
-         *  @return Value String
-         */
-        override public function get_accValue(childID:uint):String
-        {
-            if (childID == 0)
-                return getName(DropDownListBase(master).selectedIndex + 1);
-            return null;
-        }
-
-        /**
-         *  @private
-         */
-        override public function get_accState(childID:uint):uint
-        {
-            var accState:uint = super.get_accState(childID);
-
-            if (childID == 0)
-            {
-                if (DropDownListBase(master).isDropDownOpen)
-                    accState |= AccConst.STATE_SYSTEM_EXPANDED;
-                else
-                    accState |= AccConst.STATE_SYSTEM_COLLAPSED;
-            }
-
-            return accState;
-        }
-
-        //--------------------------------------------------------------------------
-        //
-        //  Overridden event handlers: AccImpl
-        //
-        //--------------------------------------------------------------------------
-
-        /**
-         *  @private
-         *  Override the generic event handler.
-         *  All AccImpl must implement this
-         *  to listen for events from its master component.
-         */
-        override protected function eventHandler(event:Event):void
-        {
-            switch (event.type)
-            {
-                case "open":
+            case "open":
+            {
+                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
+
+                var index:uint = DropDownListBase(master).selectedIndex;
+                if (index >= 0)
                 {
-                    Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
-
-                    var index:uint = DropDownListBase(master).selectedIndex;
-                    if (index >= 0)
-                    {
-                        Accessibility.sendEvent(master, index + 1,
-                            AccConst.EVENT_OBJECT_FOCUS);
-                    }
+                    Accessibility.sendEvent(master, index + 1,
+                        AccConst.EVENT_OBJECT_FOCUS);
+                }
+                break;
+            }
+            case "close":
+            {
+                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
+                Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_FOCUS);
+                break;
+            }
+            case "change":
+            {
+                if (!(DropDownListBase(master).isDropDownOpen))
+                {
+                    Accessibility.sendEvent(master, 0,
+                        AccConst.EVENT_OBJECT_VALUECHANGE, true);
                     break;
                 }
-                case "close":
-                {
-                    Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_STATECHANGE);
-                    Accessibility.sendEvent(master, 0, AccConst.EVENT_OBJECT_FOCUS);
+            }
+            case "caretChange":
+            {
+                if (!(DropDownListBase(master).isDropDownOpen))
                     break;
-                }
-                case "change":
-                {
-                    if (!(DropDownListBase(master).isDropDownOpen))
-                    {
-                        Accessibility.sendEvent(master, 0,
-                            AccConst.EVENT_OBJECT_VALUECHANGE, true);
-                        break;
-                    }
-                }
-                case "caretChange":
-                {
-                    if (!(DropDownListBase(master).isDropDownOpen))
-                        break;
-                }
-                default:
-                {
-                    super.eventHandler(event);
-                    break;
-                }
+            }
+            default:
+            {
+                super.eventHandler(event);
+                break;
             }
         }
-
-    }
-
+    }
 }
+
+}


[FWR-j9J3LsxC] Recorder: minor improvements.

--- src/main/flashwavrecorder/Recorder.as
+++ src/main/flashwavrecorder/Recorder.as
@@ -16,60 +16,56 @@

   public class Recorder extends Sprite {

-    public var recorderInterface:RecorderJSInterface;
-    public var saveButton:InteractiveObject;
+    private var _recorderInterface:RecorderJSInterface;
+    private var _saveButton:InteractiveObject;

     public function Recorder() {
       stage.align = StageAlign.TOP_LEFT;
       stage.scaleMode = StageScaleMode.NO_SCALE;
       var microphoneRecorder:MicrophoneRecorder = new MicrophoneRecorder();
       var permissionPanel:MicrophonePermissionPanel = new MicrophonePermissionPanel(microphoneRecorder.mic, stage);
-      recorderInterface = new RecorderJSInterface(microphoneRecorder, permissionPanel);
+      _recorderInterface = new RecorderJSInterface(microphoneRecorder, permissionPanel);

-      var url:String = this.root.loaderInfo.parameters["upload_image"];
-      if(url) {
-        saveButton = createSaveImage(url);
+      var url:String = root.loaderInfo.parameters["upload_image"];
+      if (url) {
+        _saveButton = createSaveImage(url);
       } else {
-        saveButton = createSaveLink();
+        _saveButton = createSaveLink();
         ready();
       }
     }

-    public function ready():void {
-      addChild(saveButton);
+    private function ready():void {
+      addChild(_saveButton);

-      recorderInterface.saveButton = saveButton;
+      _recorderInterface.saveButton = _saveButton;

-      saveButton.addEventListener(MouseEvent.MOUSE_UP, mouseReleased);
-      saveButton.visible = false;
+      _saveButton.addEventListener(MouseEvent.MOUSE_UP, mouseReleased);
+      _saveButton.visible = false;

-      recorderInterface.ready(saveButton.width, saveButton.height);
-    }
-
-    public function save():void {
-      recorderInterface.save();
+      _recorderInterface.ready(_saveButton.width, _saveButton.height);
     }

     private function mouseReleased(event:MouseEvent):void {
-      save();
+      _recorderInterface.save();
     }

     private function createSaveLink():Sprite {
       var format:ElementFormat = new ElementFormat();
       var fontColor:Number = 0x0000EE;
-      if(this.root.loaderInfo.parameters["font_color"]) {
-        fontColor = parseInt(this.root.loaderInfo.parameters["font_color"], 16);
+      if (root.loaderInfo.parameters["font_color"]) {
+        fontColor = parseInt(root.loaderInfo.parameters["font_color"], 16);
       }
       var fontSize:Number = 12;
-      if(this.root.loaderInfo.parameters["font_size"]) {
-        fontSize = parseInt(this.root.loaderInfo.parameters["font_size"], 10);
+      if (root.loaderInfo.parameters["font_size"]) {
+        fontSize = parseInt(root.loaderInfo.parameters["font_size"], 10);
       }
       format.color = fontColor;
       format.fontSize = fontSize;
       var textBlock:TextBlock = new TextBlock();
       var saveText:String = "Save";
-      if(this.root.loaderInfo.parameters["save_text"]) {
-        saveText = this.root.loaderInfo.parameters["save_text"];
+      if (root.loaderInfo.parameters["save_text"]) {
+        saveText = root.loaderInfo.parameters["save_text"];
       }
       textBlock.content = new TextElement(saveText, format);
       var textLine:TextLine = textBlock.createTextLine();
@@ -80,14 +76,14 @@
       saveLink.addChild(textLine);
       textLine.y = textLine.ascent;

-      if(this.root.loaderInfo.parameters["background_color"]) {
-        saveLink.graphics.beginFill(parseInt(this.root.loaderInfo.parameters["background_color"], 16));
+      if (root.loaderInfo.parameters["background_color"]) {
+        saveLink.graphics.beginFill(parseInt(root.loaderInfo.parameters["background_color"], 16));
         saveLink.graphics.drawRect(0, 0, saveLink.width, saveLink.height);
       }

       saveLink.graphics.lineStyle(1, fontColor);
-      saveLink.graphics.moveTo(0, textLine.height-1);
-      saveLink.graphics.lineTo(saveLink.width, textLine.height-1);
+      saveLink.graphics.moveTo(0, textLine.height - 1);
+      saveLink.graphics.lineTo(saveLink.width, textLine.height - 1);

       return saveLink;
     }
@@ -108,7 +104,7 @@
     }

     private function imageIoErrorHandler(event:Event):void {
-      saveButton = createSaveLink();
+      _saveButton = createSaveLink();
       ready();
     }
   }


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 7910
Author:   egeorgie@adobe.com
Date:     2009-06-17T01:41:55.138890Z

Log Message:
-----------
P-ARB changes:

* IGraphicElement sharedIndex -> DisplayObjectSharingMode
* ScrollUnit -> NavigationUnit
* LayoutBase.getDestinationIndex -> LayoutBase.getNavigationDestinationIndex, param order reversed!!!!
* mouseOpaque -> mouseEnabledWhereTransparent
* various other small renames and changes to non-public APIs

Doc Notes: None
Bugs: N/A
Reviewer: Deepa
tests: checkintests

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Scroller.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DataGroup.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/GraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/WheelLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/DropDownList.as</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/InvalidatingSprite.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/HScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IViewport.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/TextGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/Group.as</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/ScrollUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/HorizontalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/NavigationUnit.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/IGraphicElement.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableDataContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/TileLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/VScrollBar.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/SkinnableContainer.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/List.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/supportClasses/LayoutBase.as</path>
<path kind="file" action="A">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/core/DisplayObjectSharingMode.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/GroupBase.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex4/src/spark/layouts/VerticalLayout.as</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as</path>

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

--- frameworks/projects/spark/src/spark/components/HScrollBar.as
+++ frameworks/projects/spark/src/spark/components/HScrollBar.as
@@ -12,7 +12,7 @@
 package spark.components
 {
 import spark.components.supportClasses.ScrollBar;
-import spark.core.ScrollUnit;
+import spark.core.NavigationUnit;
 import spark.core.IViewport;
 import mx.core.ILayoutElement;
 import mx.events.PropertyChangeEvent;
@@ -243,7 +243,7 @@
             // implementation.
             oldPageSize = pageSize;
             pageSize = Math.abs(viewport.getHorizontalScrollPositionDelta(
-                (increase) ? ScrollUnit.PAGE_RIGHT : ScrollUnit.PAGE_LEFT));
+                (increase) ? NavigationUnit.PAGE_RIGHT : NavigationUnit.PAGE_LEFT));
         }
         super.page(increase);
         if (viewport)
@@ -258,7 +258,7 @@
         if (viewport)
         {
             var vpPageSize:Number = Math.abs(viewport.getHorizontalScrollPositionDelta(
-                (newValue > value) ? ScrollUnit.PAGE_RIGHT : ScrollUnit.PAGE_LEFT));
+                (newValue > value) ? NavigationUnit.PAGE_RIGHT : NavigationUnit.PAGE_LEFT));
             super.animatePaging(newValue, vpPageSize);
             return;
         }
@@ -306,7 +306,7 @@
             // implementation.
             oldStepSize = stepSize;
             stepSize = Math.abs(viewport.getHorizontalScrollPositionDelta(
-                (increase) ? ScrollUnit.RIGHT : ScrollUnit.LEFT));
+                (increase) ? NavigationUnit.RIGHT : NavigationUnit.LEFT));
         }
         super.step(increase);
         if (viewport)


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

--- frameworks/projects/charts/src/mx/charts/chartClasses/CartesianCanvasValue.as
+++ frameworks/projects/charts/src/mx/charts/chartClasses/CartesianCanvasValue.as
@@ -1,14 +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.charts.chartClasses
 {


Transferred from the Adobe Open Source Subversion Repository

Revision: 7954
Author:   hmuller@adobe.com
Date:     2009-06-18T15:43:15.080808Z

Log Message:
-----------
Range et al PARB changes, Opus #3.

@privatized the mx_internal overrides in HScrollBar.  Removed @langversion etc ASDoc boilerplate from mx_internal methods in ScrollBar, H,VScrollBar.

QE Notes: ASDoc change only
Doc Notes:
Bugs:
Reviewer:

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

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

--- frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
+++ frameworks/projects/spark/src/spark/components/supportClasses/ScrollBarBase.as
@@ -630,11 +630,6 @@
    /**
     *  @private
     *  Called when the viewport's width or height value changes. Does nothing by default.
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 10
-    *  @playerversion AIR 1.5
-    *  @productversion Flex 4
     */
     mx_internal function viewportResizeHandler(event:ResizeEvent):void
     {
@@ -643,11 +638,6 @@
    /**
     *  @private
     *  Called when the viewport's contentWidth value changes. Does nothing by default.
-    *
-    *  @langversion 3.0
-    *  @playerversion Flash 10
-    *  @playerversion AIR 1.5
-    *  @productversion Flex 4
     */
     mx_internal function viewportContentWidthChangeHandler(event:PropertyChangeEvent):void
     {
@@ -656,11 +646,6 @@
     /**
      *  @private
      *  Called when the viewport's contentHeight value changes. Does nothing by default.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
      */
     mx_internal function viewportContentHeightChangeHandler(event:PropertyChangeEvent):void
     {
@@ -669,11 +654,6 @@
     /**
      *  @private
      *  Called when the viewport's horizontalScrollPosition value changes. Does nothing by default.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
      */
     mx_internal function viewportHorizontalScrollPositionChangeHandler(event:PropertyChangeEvent):void
     {
@@ -682,11 +662,6 @@
     /**
      *  @private
      *  Called when the viewport's verticalScrollPosition value changes. Does nothing by default.
-     *
-     *  @langversion 3.0
-     *  @playerversion Flash 10
-     *  @playerversion AIR 1.5
-     *  @productversion Flex 4
      */
     mx_internal function viewportVerticalScrollPositionChangeHandler(event:PropertyChangeEvent):void
     {


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

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

 package mx.effects.effectClasses
 {


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

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


samll fix for ASDoc

samll fix for ASDoc

--- src/com/google/analytics/v4/Tracker.as
+++ src/com/google/analytics/v4/Tracker.as
@@ -200,6 +200,7 @@
             {
                 //init GASO
                 LOG::P{ _log.w( "Site Overlay is not supported" ); }
+                (void); //to prevent ASDoc to complain if logs not included
             }

             var data:String = "";


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

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


Transferred from the Adobe Open Source Subversion Repository

Revision: 23246
Author:   cframpto@adobe.com
Date:     2011-12-20T17:40:08.069454Z

Log Message:
-----------
Rollback 23243.  If comment followed header it was stripped as well.

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

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

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


FLEX-34885 Making sure that the changes for this ticket haven't introduced the bug of removing a null from the collection when an item's Bindable property changes. Looks all right.


Transferred from the Adobe Open Source Subversion Repository

Revision: 8466
Author:   srahim@adobe.com
Date:     2009-07-08T22:16:20.752266Z

Log Message:
-----------
Added @includeexample tags to include ASDoc examples for RadioButton, RadioButtonGroup

QE Notes: None
Doc Notes: None
Bugs: -
checkintests: passed

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

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

--- frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
+++ frameworks/projects/spark/src/spark/components/RadioButtonGroup.as
@@ -110,7 +110,7 @@
  *  </pre>
  *
  *  @see spark.components.RadioButton
- *
+ *  @includeExample examples/RadioButtonGroupExample.mxml
  *  @langversion 3.0
  *  @playerversion Flash 10
  *  @playerversion AIR 1.5


Transferred from the Adobe Open Source Subversion Repository

Revision: 7743
Author:   clucier@adobe.com
Date:     2009-06-11T13:53:10.203664Z

Log Message:
-----------
Moving away from using namespace qualifiers in most cases in the SDK.  We've run into a few cases now where the use of qualifiers in code that is called excessively can slow things down.
Bugs: SDK-21337
Reviewer: Ryan, Paul
QE Notes: None
Tests: Ran several random Mustella test groups, checkintests.

Modified Paths:
--------------
106 paths were modified

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

--- frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as
+++ frameworks/projects/airframework/src/mx/managers/WindowedSystemChildrenList.as
@@ -16,6 +16,8 @@
 import flash.geom.Point;
 import mx.core.IChildList;
 import mx.core.mx_internal;
+
+use namespace mx_internal;

 [ExcludeClass]

@@ -119,7 +121,7 @@
 	 */
 	public function addChild(child:DisplayObject):DisplayObject
 	{
-		owner.mx_internal::rawChildren_addChildAt(
+		owner.rawChildren_addChildAt(
 			child, owner[upperBoundReference]);
 		owner[upperBoundReference]++;
 		return child;
@@ -134,7 +136,7 @@
 	 */
 	public function addChildAt(child:DisplayObject, index:int):DisplayObject
 	{
-		owner.mx_internal::rawChildren_addChildAt(
+		owner.rawChildren_addChildAt(
 			child, owner[lowerBoundReference] + index);
 		owner[upperBoundReference]++;
 		return child;
@@ -149,11 +151,11 @@
 	 */
 	public function removeChild(child:DisplayObject):DisplayObject
 	{
-		var index:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		var index:int = owner.rawChildren_getChildIndex(child);
 		if (owner[lowerBoundReference] <= index &&
 			index < owner[upperBoundReference])
 		{
-			owner.mx_internal::rawChildren_removeChild(child);
+			owner.rawChildren_removeChild(child);
 			owner[upperBoundReference]--;
 		}
 		return child;
@@ -169,7 +171,7 @@
 	public function removeChildAt(index:int):DisplayObject
 	{
 		var child:DisplayObject =
-			owner.mx_internal::rawChildren_removeChildAt(
+			owner.rawChildren_removeChildAt(
 				index + owner[lowerBoundReference]);
 		owner[upperBoundReference]--;
 		return child;
@@ -185,7 +187,7 @@
   	public function getChildAt(index:int):DisplayObject
   	{
 		var retval:DisplayObject =
-			owner.mx_internal::rawChildren_getChildAt(
+			owner.rawChildren_getChildAt(
 				owner[lowerBoundReference] + index);
 		return retval;
   	}
@@ -199,7 +201,7 @@
 	 */
   	public function getChildByName(name:String):DisplayObject
   	{
-		return owner.mx_internal::rawChildren_getChildByName(name);
+		return owner.rawChildren_getChildByName(name);
   	}

 	/**
@@ -211,7 +213,7 @@
 	 */
   	public function getChildIndex(child:DisplayObject):int
   	{
-		var retval:int = owner.mx_internal::rawChildren_getChildIndex(child);
+		var retval:int = owner.rawChildren_getChildIndex(child);
 		retval -= owner[lowerBoundReference];
 		return retval;
 	}
@@ -225,7 +227,7 @@
 	 */
 	public function setChildIndex(child:DisplayObject, newIndex:int):void
 	{
-		owner.mx_internal::rawChildren_setChildIndex(
+		owner.rawChildren_setChildIndex(
 			child, owner[lowerBoundReference] + newIndex);
 	}

@@ -238,7 +240,7 @@
 	 */
 	public function getObjectsUnderPoint(point:Point):Array
 	{
-		return owner.mx_internal::rawChildren_getObjectsUnderPoint(point);
+		return owner.rawChildren_getObjectsUnderPoint(point);
 	}

 	/**
@@ -250,13 +252,13 @@
 	 */
 	public function contains(child:DisplayObject):Boolean
 	{
-		if (owner.mx_internal::rawChildren_contains(child))
+		if (owner.rawChildren_contains(child))
 		{
 			while (child.parent != owner && child.parent != child.stage)
 			{
 				child = child.parent;
 			}
-			var childIndex:int = owner.mx_internal::rawChildren_getChildIndex(child);
+			var childIndex:int = owner.rawChildren_getChildIndex(child);
 			if (childIndex >= owner[lowerBoundReference] &&
 				childIndex < owner[upperBoundReference])
 			{