You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/02/13 01:14:39 UTC

[32/37] git commit: [flex-asjs] [refs/heads/spark] - copy of many flex-sdk classes, modified to try to compile on top of the FlexJS base classes. A COMPILE::LATER flag is used to comment out features like multi-swf support and a few other features that

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IRepeaterClient.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IRepeaterClient.as b/frameworks/projects/MX/src/main/flex/mx/core/IRepeaterClient.as
new file mode 100644
index 0000000..78e398e
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IRepeaterClient.as
@@ -0,0 +1,160 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The IRepeaterClient interface defines the APIs for components
+ *  that can have multiple instances created by a Repeater.
+ *  The IRepeaterClient interface is implemented by the UIComponent class
+ *  and so is inherited by all Flex framework controls and containers.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IRepeaterClient
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  instanceIndices
+    //----------------------------------
+
+    /**
+     *  An Array that contains the indices required
+     *  to reference the repeated component instance from its document. 
+     *  This Array is empty unless the component
+     *  is within one or more Repeaters.
+     *  The first element corresponds to the outermost Repeater.
+     *  For example, if the <code>id</code> is <code>"b"</code>
+     *  and <code>instanceIndices</code> is <code>[ 2, 4 ]</code>,
+     *  you would reference it on the document as <code>b[2][4]</code>.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get instanceIndices():Array;
+    
+    /**
+     *  @private
+     */
+    function set instanceIndices(value:Array):void;
+    
+    //----------------------------------
+    //  isDocument
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.UIComponent#isDocument
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get isDocument():Boolean;
+
+    //----------------------------------
+    //  repeaterIndices
+    //----------------------------------
+
+    /**
+     *  An Array that contains the indices of the items in the data
+     *  providers of the Repeaters that produced the component.
+     *  The Array is empty unless the component is within one or more
+     *  Repeaters.
+     *  The first element corresponds to the outermost Repeater component.
+     *  For example, if <code>repeaterIndices</code> is <code>[ 2, 4 ]</code>,
+     *  the outer Repeater component used its <code>dataProvider[2]</code>
+     *  data item and the inner Repeater component used its
+     *  <code>dataProvider[4]</code> data item.
+     *
+     *  <p>This property differs from <code>instanceIndices</code>
+     *  if the <code>startingIndex</code> of any of the Repeater components
+     *  is non-zero.
+     *  For example, even if a Repeater component starts at
+     *  <code>dataProvider</code> item 4, the document reference of the first
+     *  repeated component is <code>b[0]</code>, not <code>b[4]</code>.</p>
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get repeaterIndices():Array;
+    
+    /**
+     *  @private
+     */
+    function set repeaterIndices(value:Array):void;
+
+    //----------------------------------
+    //  repeaters
+    //----------------------------------
+
+    /**
+     *  An Array that contains any enclosing Repeaters of the component.
+     *  The Array is empty unless the component is within one or more Repeaters.
+     *  The first element corresponds to the outermost Repeater. 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get repeaters():Array;
+    
+    /**
+     *  @private
+     */
+    function set repeaters(value:Array):void;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Initializes the <code>instanceIndices</code>,
+     *  <code>repeaterIndices</code>, and <code>repeaters</code> properties.
+     *
+     *  <p>This method is called by the Flex framework.
+     *  Developers should not need to call it.</p>
+     *  
+     *  @param parent The parent Repeater that created this component.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function initializeRepeaterArrays(parent:IRepeaterClient):void;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/ISpriteInterface.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/ISpriteInterface.as b/frameworks/projects/MX/src/main/flex/mx/core/ISpriteInterface.as
new file mode 100644
index 0000000..d7d9757
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/ISpriteInterface.as
@@ -0,0 +1,113 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/*
+ *  The ISprite interface defines the basic set of APIs
+ *  for web version of flash.display.Sprite
+ */
+
+    /**
+     *  @copy flash.display.Sprite#graphics
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+	COMPILE::LATER
+    function get graphics():Graphics;
+
+    /**
+     *  @copy flash.display.Sprite#buttonMode
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get buttonMode():Boolean;
+    function set buttonMode(value:Boolean):void;
+
+    /**
+     *  @copy flash.display.Sprite#startDrag()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void;
+
+    /**
+     *  @copy flash.display.Sprite#stopDrag()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function stopDrag():void;
+
+    /**
+     *  @copy flash.display.Sprite#dropTarget
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get dropTarget():DisplayObject;
+
+    /**
+     *  @copy flash.display.Sprite#hitArea
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get hitArea():Sprite;
+    function set hitArea(value:Sprite):void;
+
+
+    /**
+     *  @copy flash.display.Sprite#useHandCursor
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get useHandCursor():Boolean;
+    function set useHandCursor(value:Boolean):void;
+
+
+    /**
+     *  @copy flash.display.Sprite#soundTransform
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+	COMPILE::LATER
+    function get soundTransform():SoundTransform;
+	COMPILE::LATER
+    function set soundTransform(sndTransform:SoundTransform):void;
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IStateClient.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IStateClient.as b/frameworks/projects/MX/src/main/flex/mx/core/IStateClient.as
new file mode 100644
index 0000000..7787b15
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IStateClient.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The IStateClient interface defines the interface that 
+ *  components must implement to support view states.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IStateClient
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  currentState
+    //----------------------------------
+
+    /**
+     *  The current view state.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get currentState():String;
+    
+    /**
+     *  @private
+     */
+    function set currentState(value:String):void;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IStateClient2.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IStateClient2.as b/frameworks/projects/MX/src/main/flex/mx/core/IStateClient2.as
new file mode 100644
index 0000000..b7cfa08
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IStateClient2.as
@@ -0,0 +1,103 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+    
+import org.apache.flex.events.IEventDispatcher;
+
+/**
+ *  The IStateClient2 interface defines the interface that 
+ *  components must implement to support Flex 4 view state
+ *  semantics.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IStateClient2 extends IEventDispatcher, IStateClient 
+{   
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+    
+    //----------------------------------
+    //  states
+    //----------------------------------
+
+    [ArrayElementType("mx.states.State")]
+
+    /**
+     *  The set of view state objects.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get states():Array;
+
+    /**
+     *  @private
+     */
+    function set states(value:Array):void;
+    
+    
+    //----------------------------------
+    //  transitions
+    //----------------------------------
+    
+    [ArrayElementType("mx.states.Transition")]
+    
+    /**
+     *  The set of view state transitions.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get transitions():Array;
+
+    /**
+     *  @private
+     */
+    function set transitions(value:Array):void;
+    
+    /**
+     *  Determines whether the specified state has been defined on this
+     *  UIComponent. 
+     *
+     *  @param stateName The name of the state being checked. 
+     *
+     *  @return Whether or not the specified state has been defined 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function hasState(stateName:String):Boolean
+    
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/ISystemCursorClient.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/ISystemCursorClient.as b/frameworks/projects/MX/src/main/flex/mx/core/ISystemCursorClient.as
new file mode 100644
index 0000000..fe6ca8f
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/ISystemCursorClient.as
@@ -0,0 +1,59 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+[ExcludeClass]
+
+/**
+ *  The ISystemCursorClient interface defines the interface a component may
+ *  implement to notify the CursorManager whether or not the system cursor
+ *  should be used in conjunction with a custom cursor. 
+ *   
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public interface ISystemCursorClient
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  showSystemCursor
+	//----------------------------------
+	
+	/**
+	 *  True if the system cursor should always be shown when the mouse 
+     *  moves over the component.  If false, the custom cursor will be shown.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get showSystemCursor():Boolean;    
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IToolTip.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IToolTip.as b/frameworks/projects/MX/src/main/flex/mx/core/IToolTip.as
new file mode 100644
index 0000000..9a2efc5
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IToolTip.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+import org.apache.flex.geom.Rectangle;
+
+/**
+ *  The IToolTip interface defines the API that tooltip-like components
+ *  must implement in order to work with the ToolTipManager.
+ *  The ToolTip class implements this interface.
+ *
+ *  @see mx.controls.ToolTip
+ *  @see mx.managers.ToolTipManager
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IToolTip extends IUIComponent
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  screen
+	//----------------------------------
+
+	/**
+	 *  A Rectangle that specifies the size and position
+	 *  of the base drawing surface for this tooltip.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	function get screen():Rectangle;
+
+	//----------------------------------
+	//  text
+	//----------------------------------
+
+	/**
+	 *  The text that appears in the tooltip.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	function get text():String;
+	
+	/**
+	 *  @private
+	 */
+	function set text(value:String):void;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/ITransientDeferredInstance.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/ITransientDeferredInstance.as b/frameworks/projects/MX/src/main/flex/mx/core/ITransientDeferredInstance.as
new file mode 100644
index 0000000..65f31d1
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/ITransientDeferredInstance.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The ITransientDeferredInstance interface extends IDeferredInstance and adds 
+ *  the ability for the user to reset the deferred instance factory to its
+ *  initial state (usually this implies releasing any known references to the
+ *  component, such as the setting the owning document property that refers to
+ *  the instance to null).
+ *
+ *  This additional capability is leveraged by the AddItems states override when
+ *  the desired behavior is to destroy a state-specific element when a state
+ *  no longer applies.
+ * 
+ *  The Flex compiler uses the same automatic coercion rules as with
+ *  IDeferredInstance.
+ * 
+ *  @see mx.states.AddItems
+ *  @see mx.core.IDeferredInstance
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public interface ITransientDeferredInstance extends IDeferredInstance
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Resets the state of our factory to its initial state, clearing any
+     *  references to the cached instance.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function reset():void;
+}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IUIComponent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IUIComponent.as b/frameworks/projects/MX/src/main/flex/mx/core/IUIComponent.as
new file mode 100644
index 0000000..3ff57b3
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IUIComponent.as
@@ -0,0 +1,574 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+COMPILE::AS3
+{
+	import flash.display.DisplayObject;
+	import flash.display.DisplayObjectContainer;
+	import flash.display.Sprite;
+}
+COMPILE::JS
+{
+	import flex.display.DisplayObject;
+	import flex.display.DisplayObjectContainer;
+	import flex.display.Sprite;
+}
+import mx.managers.ISystemManager;
+
+/**
+ *  The IUIComponent interface defines the basic set of APIs
+ *  that you must implement to create a child of a Flex container or list.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IUIComponent extends IFlexDisplayObject
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    //--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  baselinePosition
+    //----------------------------------
+
+    /**
+     *  The y-coordinate of the baseline
+     *  of the first line of text of the component.
+     * 
+     *  <p>This property is used to implement
+     *  the <code>baseline</code> constraint style.
+     *  It is also used to align the label of a FormItem
+     *  with the controls in the FormItem.</p>
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get baselinePosition():Number;
+
+    
+    //----------------------------------
+    //  document
+    //----------------------------------
+
+    /**
+     *  A reference to the document object associated with this component. 
+     *  A document object is an Object at the top of the hierarchy
+     *  of a Flex application, MXML component, or ActionScript component.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get document():Object
+
+    /**
+     *  @private
+     */
+    function set document(value:Object):void
+
+    //----------------------------------
+    //  enabled
+    //----------------------------------
+
+    /**
+     *  Whether the component can accept user interaction. After setting the <code>enabled</code>
+     *  property to <code>false</code>, some components still respond to mouse interactions such 
+     *  as mouseOver. As a result, to fully disable UIComponents,
+     *  you should also set the value of the <code>mouseEnabled</code> property to <code>false</code>.
+     *  If you set the <code>enabled</code> property to <code>false</code>
+     *  for a container, Flex dims the color of the container and of all
+     *  of its children, and blocks user input to the container
+     *  and to all of its children.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get enabled():Boolean;
+
+    /**
+     *  @private
+     */
+    function set enabled(value:Boolean):void;
+
+    //----------------------------------
+    //  explicitHeight
+    //----------------------------------
+
+    /**
+     *  The explicitly specified height for the component, 
+     *  in pixels, as the component's coordinates.
+     *  If no height is explicitly specified, the value is <code>NaN</code>.
+     *
+     *  @see mx.core.UIComponent#explicitHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitHeight():Number;
+
+    /**
+     *  @private
+     */
+    function set explicitHeight(value:Number):void;
+
+    //----------------------------------
+    //  explicitMaxHeight
+    //----------------------------------
+
+    /**
+     *  Number that specifies the maximum height of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#explicitMaxHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitMaxHeight():Number;
+
+    //----------------------------------
+    //  explicitMaxWidth
+    //----------------------------------
+
+    /**
+     *  Number that specifies the maximum width of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#explicitMaxWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitMaxWidth():Number;
+
+    //----------------------------------
+    //  explicitMinHeight
+    //----------------------------------
+
+    /**
+     *  Number that specifies the minimum height of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#explicitMinHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitMinHeight():Number;
+
+    //----------------------------------
+    //  explicitMinWidth
+    //----------------------------------
+
+    /**
+     *  Number that specifies the minimum width of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#explicitMinWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitMinWidth():Number;
+
+    //----------------------------------
+    //  explicitWidth
+    //----------------------------------
+
+    /**
+     *  The explicitly specified width for the component, 
+     *  in pixels, as the component's coordinates.
+     *  If no width is explicitly specified, the value is <code>NaN</code>.
+     *
+     *  @see mx.core.UIComponent#explicitWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get explicitWidth():Number;
+
+    /**
+     *  @private
+     */
+    function set explicitWidth(value:Number):void;
+    
+    //----------------------------------
+    //  focusPane
+    //----------------------------------
+
+    /**
+     *  A single Sprite object that is shared among components
+     *  and used as an overlay for drawing the focus indicator.
+     *  Components share this object if their parent is a focused component,
+     *  not if the component implements the IFocusManagerComponent interface.
+     *
+     *  @see mx.core.UIComponent#focusPane
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get focusPane():Sprite;
+
+    /**
+     *  @private
+     */
+    function set focusPane(value:Sprite):void;
+
+    //----------------------------------
+    //  includeInLayout
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.UIComponent#includeInLayout
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get includeInLayout():Boolean;
+
+    /**
+     *  @private
+     */
+    function set includeInLayout(value:Boolean):void;
+
+    //----------------------------------
+    //  isPopUp
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.UIComponent#isPopUp
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get isPopUp():Boolean;
+
+    /**
+     *  @private
+     */
+    function set isPopUp(value:Boolean):void;
+
+    //----------------------------------
+    //  maxHeight
+    //----------------------------------
+
+    /**
+     *  Number that specifies the maximum height of the component, 
+     *  in pixels, as the component's coordinates.
+     *
+     *  @see mx.core.UIComponent#maxHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get maxHeight():Number;
+
+    //----------------------------------
+    //  maxWidth
+    //----------------------------------
+
+    /**
+     *  Number that specifies the maximum width of the component, 
+     *  in pixels, as the component's coordinates.
+     *
+     *  @see mx.core.UIComponent#maxWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get maxWidth():Number;
+
+    //----------------------------------
+    //  measuredMinHeight
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.UIComponent#measuredMinHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get measuredMinHeight():Number;
+
+    /**
+     *  @private
+     */
+    function set measuredMinHeight(value:Number):void;
+
+    //----------------------------------
+    //  measuredMinWidth
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.UIComponent#measuredMinWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get measuredMinWidth():Number;
+
+    /**
+     *  @private
+     */
+    function set measuredMinWidth(value:Number):void;
+
+    //----------------------------------
+    //  minHeight
+    //----------------------------------
+
+    /**
+     *  Number that specifies the minimum height of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#minHeight
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get minHeight():Number;
+
+    //----------------------------------
+    //  minWidth
+    //----------------------------------
+
+    /**
+     *  Number that specifies the minimum width of the component, 
+     *  in pixels, as the component's coordinates. 
+     *
+     *  @see mx.core.UIComponent#minWidth
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get minWidth():Number;
+
+    //----------------------------------
+    //  owner
+    //----------------------------------
+
+    /**
+     *  @copy mx.core.IVisualElement#owner
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get owner():DisplayObjectContainer;
+
+    /**
+     *  @private
+     */
+    function set owner(value:DisplayObjectContainer):void;
+
+    //----------------------------------
+    //  percentHeight
+    //----------------------------------
+
+    /**
+     *  Number that specifies the height of a component as a 
+     *  percentage of its parent's size.
+     *  Allowed values are 0 to 100.     
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get percentHeight():Number;
+
+    /**
+     *  @private
+     */
+    function set percentHeight(value:Number):void;
+
+    //----------------------------------
+    //  percentWidth
+    //----------------------------------
+
+    /**
+     *  Number that specifies the width of a component as a 
+     *  percentage of its parent's size.
+     *  Allowed values are 0 to 100.     
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get percentWidth():Number;
+
+    /**
+     *  @private
+     */
+    function set percentWidth(value:Number):void;
+
+    //----------------------------------
+    //  systemManager
+    //----------------------------------
+
+    /**
+     *  A reference to the SystemManager object for this component.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get systemManager():ISystemManager;
+
+    /**
+     *  @private
+     */
+    function set systemManager(value:ISystemManager):void;
+    
+    //----------------------------------
+    //  tweeningProperties
+    //----------------------------------
+
+    /**
+     *  Used by EffectManager.
+     *  Returns non-null if a component
+     *  is not using the EffectManager to execute a Tween.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get tweeningProperties():Array;
+
+    /**
+     *  @private
+     */
+    function set tweeningProperties(value:Array):void;
+
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    /**
+     *  Initialize the object.
+     *
+     *  @see mx.core.UIComponent#initialize()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function initialize():void;
+    
+    /**
+     *  @copy mx.core.UIComponent#parentChanged()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function parentChanged(p:DisplayObjectContainer):void;
+    
+    /**
+     *  @copy mx.core.UIComponent#getExplicitOrMeasuredWidth()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getExplicitOrMeasuredWidth():Number;
+
+    /**
+     *  @copy mx.core.UIComponent#getExplicitOrMeasuredHeight()
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getExplicitOrMeasuredHeight():Number;
+    
+    /**
+     *  @copy mx.core.UIComponent#setVisible() 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function setVisible(value:Boolean, noEvent:Boolean = false):void;
+
+    /**
+     *  @copy mx.core.UIComponent#owns() 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function owns(displayObject:DisplayObject):Boolean;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IUID.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IUID.as b/frameworks/projects/MX/src/main/flex/mx/core/IUID.as
new file mode 100644
index 0000000..cd0f321
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IUID.as
@@ -0,0 +1,62 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ *  The IUID interface defines the interface for objects that must have 
+ *  Unique Identifiers (UIDs) to uniquely identify the object.
+ *  UIDs do not need to be universally unique for most uses in Flex.
+ *  One exception is for messages send by data services.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IUID
+{
+	//--------------------------------------------------------------------------
+	//
+	//  Properties
+	//
+	//--------------------------------------------------------------------------
+
+	//----------------------------------
+	//  uid
+	//----------------------------------
+	
+	/**
+	 *  The unique identifier for this object.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get uid():String;
+    
+    /**
+     *  @private
+     */
+    function set uid(value:String):void;
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IVisualElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IVisualElement.as b/frameworks/projects/MX/src/main/flex/mx/core/IVisualElement.as
new file mode 100644
index 0000000..3f1464a
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IVisualElement.as
@@ -0,0 +1,290 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package mx.core
+{
+COMPILE::AS3
+{
+	import flash.display.DisplayObjectContainer;		
+}
+COMPILE::JS
+{
+	import flex.display.DisplayObjectContainer;		
+}
+
+import mx.geom.TransformOffsets;
+
+/**
+ *  The IVisualElement interface defines the minimum properties and methods 
+ *  required for a visual element to be laid out and displayed in a Spark container.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public interface IVisualElement extends ILayoutElement, ILayoutDirectionElement
+{
+
+    /**
+     *  The owner of this IVisualElement object. 
+     *  By default, it is the parent of this IVisualElement object.
+     *  However, if this IVisualElement object is a child component that is
+     *  popped up by its parent, such as the drop-down list of a ComboBox control,
+     *  the owner is the component that popped up this IVisualElement object.
+     *
+     *  <p>This property is not managed by Flex, but by each component.
+     *  Therefore, if you use the <code>PopUpManger.createPopUp()</code> or
+     *  <code>PopUpManger.addPopUp()</code> method to pop up a child component,
+     *  you should set the <code>owner</code> property of the child component
+     *  to the component that popped it up.</p>
+     *
+     *  <p>The default value is the value of the <code>parent</code> property.</p>
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get owner():DisplayObjectContainer;
+    
+    /**
+     *  @private
+     */
+    function set owner(value:DisplayObjectContainer):void;
+    
+    /**
+     *  The parent container or component for this component.
+     *  Only visual elements should have a <code>parent</code> property.
+     *  Non-visual items should use another property to reference
+     *  the object to which they belong.
+     *  By convention, non-visual objects use an <code>owner</code>
+     *  property to reference the object to which they belong.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get parent():DisplayObjectContainer;
+    
+    /**
+     *  Determines the order in which items inside of containers
+     *  are rendered. 
+     *  Spark containers order their items based on their 
+     *  <code>depth</code> property, with the lowest depth in the back, 
+     *  and the higher in the front.  
+     *  Items with the same depth value appear in the order
+     *  they are added to the container.
+     * 
+     *  @default 0
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get depth():Number;
+    
+    /**
+     *  @private
+     */
+    function set depth(value:Number):void;
+
+    /**
+     *  Controls the visibility of this visual element. 
+     *  If <code>true</code>, the object is visible.
+     * 
+     *  <p>If an object is not visible, but the <code>includeInLayout</code> 
+     *  property is set to <code>true</code>, then the object 
+     *  takes up space in the container, but is invisible.</p>
+     * 
+     *  <p>If <code>visible</code> is set to <code>true</code>, the object may not
+     *  necessarily be visible due to its size and whether container clipping 
+     *  is enabled.</p>
+     * 
+     *  <p>Setting <code>visible</code> to <code>false</code>, 
+     *  prevents the component from getting focus.</p>
+     * 
+     *  @default true
+     *  @see ILayoutElement#includeInLayout
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get visible():Boolean;
+    
+    /**
+     *  @private
+     */
+    function set visible(value:Boolean):void;
+    
+    /**
+     *  @copy flash.display.DisplayObject#alpha
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get alpha():Number;
+    
+    /**
+     *  @private
+     */
+    function set alpha(value:Number):void;
+
+
+    /**
+     *  @copy flash.display.DisplayObject#width
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get width():Number;
+    
+    /**
+     *  @private
+     */
+    function set width(value:Number):void;
+
+    /**
+     *  @copy flash.display.DisplayObject#height
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get height():Number;
+    
+    /**
+     *  @private
+     */
+    function set height(value:Number):void;
+
+    /**
+     *  @copy flash.display.DisplayObject#x
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get x():Number;
+    
+    /**
+     *  @private
+     */
+    function set x(value:Number):void;
+
+
+    /**
+     *  @copy flash.display.DisplayObject#y
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get y():Number;
+    
+    /**
+     *  @private
+     */
+    function set y(value:Number):void;
+    
+    /**
+     *  Specifies the optional DesignLayer instance associated with this visual 
+     *  element.  
+     *
+     *  <p>When a DesignLayer is assigned, a visual element must consider the  
+     *  visibility and alpha of its parent layer when ultimately committing its  
+     *  own effective visibility or alpha to its backing DisplayObject 
+     *  (if applicable).</p>
+     *
+     *  <p>A visual element must listen for <code>layerPropertyChange</code>
+     *  notifications from the associated layer parent.  When the 
+     *  <code>effectiveAlpha</code> or <code>effectiveVisibility</code> of the 
+     *  layer changes, the element must then compute its own effective visibility 
+     *  (or alpha) and apply it accordingly.</p>
+     *
+     *  <p>This property should not be set within MXML directly.</p>
+     *  
+     *  <p>The <code>designLayer</code> property is not used for z-order control, 
+     *  please see <code>depth</code>.</p>
+     *
+     *  @see #depth
+     *  @default null
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get designLayer():DesignLayer;
+    
+    /**
+     *  @private
+     */
+    function set designLayer(value:DesignLayer):void;
+
+    /**
+     *  Defines a set of adjustments that can be applied to the object's 
+     *  transform in a way that is invisible to its parent's layout. 
+     *  
+     *  <p>For example, if you want a layout to adjust for an object 
+     *  that is rotated 90 degrees, set the object's 
+     *  <code>rotation</code> property. If you want the layout to <i>not</i> 
+     *  adjust for the object being rotated, 
+     *  set its <code>postLayoutTransformOffsets.rotationZ</code> property.</p>
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+	COMPILE::LATER
+    function get postLayoutTransformOffsets():TransformOffsets;
+    
+    /**
+     *  @private
+     */
+	COMPILE::LATER
+    function set postLayoutTransformOffsets(value:TransformOffsets):void;
+	    
+    /**
+     *  Contains <code>true</code> when the element is in 3D. 
+     *  The element can be in 3D either because
+     *  it has 3D transform properties or it has 3D post layout transform offsets or both.
+     *
+     *  @see #postLayoutTransformOffsets
+     *  @see mx.core.ILayoutElement#hasLayoutMatrix3D
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get is3D():Boolean;
+}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/IVisualElementContainer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/IVisualElementContainer.as b/frameworks/projects/MX/src/main/flex/mx/core/IVisualElementContainer.as
new file mode 100644
index 0000000..ddfccf1
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/IVisualElementContainer.as
@@ -0,0 +1,281 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+
+/**
+ *  The IVisualElementContainer interface defines the minimum properties and methods 
+ *  required for a container to manage Spark components for display.
+ *
+ *  <p>Note that the Spark SkinnableDataContainer and DataGroup containers 
+ *  do not implement this interface. 
+ *  Those containers manage their 
+ *  children through the <code>dataProvider</code> property.</p>
+ *
+ *  @see mx.core.IVisualElement
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public interface IVisualElementContainer
+{
+    //----------------------------------
+    //  Visual Element iteration
+    //----------------------------------
+    
+    /**
+     *  The number of visual elements in this container.
+     *  Visual elements include classes that implement 
+     *  the IVisualElement interface, such as subclasses of
+     *  UIComponent and GraphicElement.
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function get numElements():int;
+    
+    /**
+     *  Returns the visual element at the specified index.
+     *
+     *  @param index The index of the element to retrieve.
+     *
+     *  @return The element at the specified index.
+     * 
+     *  @throws RangeError If the index position does not exist in the child list.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */ 
+    function getElementAt(index:int):IVisualElement
+    
+    //----------------------------------
+    //  Visual Element addition
+    //----------------------------------
+    
+    /**
+     *  Adds a visual element to this container. 
+     *  The element is  added after all other elements   
+     *  and appears top of all other elements.  
+     *  To add a visual element to a specific index position, use 
+     *  the <code>addElementAt()</code> method.
+     * 
+     *  <p>If you add a visual element that already has a different
+     *  container as a parent, the element is removed from 
+     *  the other container.</p>  
+     *
+     *  @param element The visual element to add as a child of this container.
+     *
+     *  @return The element that was added.
+     * 
+     *  @event elementAdd spark.events.ElementExistenceEvent Dispatched when 
+     *  the element is added to the child list.
+     * 
+     *  @throws ArgumentError If the element is the same as the visual container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */   
+    function addElement(element:IVisualElement):IVisualElement;
+    
+    /**
+     *  Adds a visual element to this container. 
+     *  The element is added at the index position specified.  
+     *  An index of 0 represents  the first element in the display list.
+     * 
+     *  <p>If you add a visual element that already has a different
+     *  container as a parent, the element is removed from 
+     *  the other container.</p>  
+     *
+     *  @param element The element to add as a child of this visual container.
+     * 
+     *  @param index The index position to which the element is added. If 
+     *  you specify a currently occupied index position, the child 
+     *  that exists at that position and all higher positions are moved 
+     *  up one position in the child list.
+     *
+     *  @return The element that was added.
+     * 
+     *  @event elementAdd spark.events.ElementExistenceEvent Dispatched when 
+     *  the element is added to the child list.
+     * 
+     *  @throws ArgumentError If the element is the same as the container.
+     * 
+     *  @throws RangeError If the index position does not exist in the child list.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function addElementAt(element:IVisualElement, index:int):IVisualElement;
+    
+    //----------------------------------
+    //  Visual Element removal
+    //----------------------------------
+    
+    /**
+     *  Removes the specified visual element from the child list of 
+     *  this container.  
+     *  The index positions of any elements 
+     *  above the element in this visual container are decreased by 1.
+     *
+     *  @param element The element to be removed from the container.
+     *
+     *  @return The element removed.
+     * 
+     *  @throws ArgumentError If the element parameter is not a child of 
+     *  this visual container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function removeElement(element:IVisualElement):IVisualElement;
+    
+    /**
+     *  Removes a visual element from the specified index position 
+     *  in the container.
+     *  The index positions of any elements 
+     *  above the element in this visual container are decreased by 1.
+     *
+     *  @param index The index of the element to remove.
+     *
+     *  @return The element removed.
+     * 
+     *  @throws RangeError If the index does not exist in the child list.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function removeElementAt(index:int):IVisualElement;
+    
+    /**
+     *  Removes all visual elements from the container.
+     * 
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function removeAllElements():void;
+    
+    //----------------------------------
+    //  Visual Element index
+    //----------------------------------
+    
+    /**
+     *  Returns the index position of a visual element.
+     *
+     *  @param element The visual element.
+     *
+     *  @return The index position of the element in the container.
+     * 
+     *  @throws ArgumentError If the element is not a child of this visual container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */ 
+    function getElementIndex(element:IVisualElement):int;
+    
+    /**
+     *  Changes the position of an existing visual element in the visual container.
+     * 
+     *  <p>When you call the <code>setElementIndex()</code> method and specify an 
+     *  index position that is already occupied, the only positions 
+     *  that change are those in between the elements's former and new position.
+     *  All others stay the same.</p>
+     *
+     *  <p>If a visual element is moved to an index 
+     *  lower than its current index, the index of all elements in between increases
+     *  by 1.  If an element is moved to an index
+     *  higher than its current index, the index of all elements in between 
+     *  decreases by 1.</p>
+     *
+     *  @param element The element for which you want to change the index number.
+     * 
+     *  @param index The resulting index number for the element.
+     * 
+     *  @throws RangeError If the index does not exist in the child list.
+     *
+     *  @throws ArgumentError If the element parameter is not a child 
+     *  of this visual container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function setElementIndex(element:IVisualElement, index:int):void;
+    
+    //----------------------------------
+    //  Visual Element swapping
+    //----------------------------------
+    
+    /**
+     *  Swaps the index of the two specified visual elements. All other elements
+     *  remain in the same index position.
+     *
+     *  @param element1 The first visual element.
+     * 
+     *  @param element2 The second visual element.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function swapElements(element1:IVisualElement, element2:IVisualElement):void;
+    
+    /**
+     *  Swaps the visual elements at the two specified index 
+     *  positions in the  container.  
+     *  All other visual elements remain in the same index position.
+     *
+     *  @param index1 The index of the first element.
+     * 
+     *  @param index2 The index of the second element.
+     * 
+     *  @throws RangeError If either index does not exist in 
+     *  the visual container.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 1.5
+     *  @productversion Flex 4
+     */
+    function swapElementsAt(index1:int, index2:int):void;
+
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/LayoutDirection.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/LayoutDirection.as b/frameworks/projects/MX/src/main/flex/mx/core/LayoutDirection.as
new file mode 100644
index 0000000..3b671c1
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/LayoutDirection.as
@@ -0,0 +1,77 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{    
+    /**
+     *  The LayoutDirection class defines the constant values
+     *  for the <code>layoutDirection</code> style of an IStyleClient and the 
+     *  <code>layoutDirection</code> property of an ILayoutDirectionElement.
+     *  
+     *  Left-to-right layoutDirection is typically used with Latin-style 
+     *  scripts. Right-to-left layoutDirection is used with scripts such as 
+     *  Arabic or Hebrew.
+     * 
+     *  If an IStyleClient, set the layoutDirection style to undefined to
+     *  inherit the layoutDirection from its ancestor.
+     * 
+     *  If an ILayoutDirectionElement, set the layoutDirection property to null to
+     *  inherit the layoutDirection from its ancestor.
+     * 
+     *  @see mx.styles.IStyleClient
+     *  @see mx.core.ILayoutDirectionElement
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10
+     *  @playerversion AIR 2.0
+     *  @productversion Flex 4.1
+     */
+    public final class LayoutDirection
+    {
+        include "Version.as";
+        
+        //--------------------------------------------------------------------------
+        //
+        //  Class constants
+        //
+        //--------------------------------------------------------------------------
+        
+        /**
+         *  Specifies left-to-right layout direction for a style client or a
+         *  visual element.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.0
+         *  @productversion Flex 4.1
+         */
+        public static const LTR:String = "ltr";
+        
+        /**
+         *  Specifies right-to-left layout direction for a style client or a
+         *  visual element.
+         * 
+         *  @langversion 3.0
+         *  @playerversion Flash 10
+         *  @playerversion AIR 2.0
+         *  @productversion Flex 4.1
+         */
+        public static const RTL:String = "rtl";
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1f6418c4/frameworks/projects/MX/src/main/flex/mx/core/LayoutElementUIComponentUtils.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MX/src/main/flex/mx/core/LayoutElementUIComponentUtils.as b/frameworks/projects/MX/src/main/flex/mx/core/LayoutElementUIComponentUtils.as
new file mode 100644
index 0000000..bf97a0d
--- /dev/null
+++ b/frameworks/projects/MX/src/main/flex/mx/core/LayoutElementUIComponentUtils.as
@@ -0,0 +1,576 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package mx.core
+{
+COMPILE::LATER
+{
+import flash.geom.Matrix;
+import flash.geom.Matrix3D;
+import flash.geom.Point;
+
+import mx.utils.MatrixUtil;
+}
+
+[ExcludeClass]
+
+/**
+ *  @private
+ *  Helper class to implement the ILayoutElement interface for IUIComponent
+ *  classes.
+ */
+public class LayoutElementUIComponentUtils
+{
+
+    include "../core/Version.as";
+
+	public function LayoutElementUIComponentUtils()
+	{
+		
+	}
+    //--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    //--------------------------------------------------------------------------
+
+    // When changing these constants, make sure you change
+    // the constants with the same name in UIComponent    
+    private static const DEFAULT_MAX_WIDTH:Number = 10000;
+    private static const DEFAULT_MAX_HEIGHT:Number = 10000;
+
+    /**
+     *  @return Returns the preferred width (untransformed) of the IUIComponent.
+     *  Takes into account measured width, explicit width, explicit min width
+     *  and explicit max width.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    private static function getPreferredUBoundsWidth(obj:IUIComponent):Number
+    {
+        // explicit trumps measured. measuredWidth should already be
+        // constraint between min & max during measure phase.
+        var result:Number = obj.getExplicitOrMeasuredWidth();
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            result = (obj.scaleX == 0) ? 0 : result / obj.scaleX;
+        }
+        return result;
+    }
+
+    /**
+     *  @return Returns the preferred height (untransformed) of the IUIComponent.
+     *  Takes into account measured height, explicit height, explicit min height
+     *  and explicit max height.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    private static function getPreferredUBoundsHeight(obj:IUIComponent):Number
+    {
+        // explicit trumps measured. measuredWidth should already be
+        // constraint between min & max during measure phase. 
+        var result:Number = obj.getExplicitOrMeasuredHeight();
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            result = (obj.scaleY == 0) ? 0 : result / obj.scaleY;
+        }
+        return result;
+    }
+    
+    private static function getMinUBoundsWidth(obj:IUIComponent):Number
+    {
+        // explicit trumps explicitMin trumps measuredMin.
+        // measuredMin is restricted by explicitMax.
+        var minWidth:Number;
+        if (!isNaN(obj.explicitMinWidth))
+        {
+            minWidth = obj.explicitMinWidth;
+        }
+        else
+        {
+            minWidth = isNaN(obj.measuredMinWidth) ? 0 : obj.measuredMinWidth;
+            if (!isNaN(obj.explicitMaxWidth))
+                minWidth = Math.min(minWidth, obj.explicitMaxWidth);
+        }
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            minWidth = (obj.scaleX == 0) ? 0 : minWidth / obj.scaleX;
+        }
+        return minWidth;
+    }
+    
+    private static function getMinUBoundsHeight(obj:IUIComponent):Number
+    {
+        // explicit trumps explicitMin trumps measuredMin.
+        // measuredMin is restricted by explicitMax.
+        var minHeight:Number;
+        if (!isNaN(obj.explicitMinHeight))
+        {
+            minHeight = obj.explicitMinHeight;
+        }
+        else
+        {
+            minHeight = isNaN(obj.measuredMinHeight) ? 0 : obj.measuredMinHeight;
+            if (!isNaN(obj.explicitMaxHeight))
+                minHeight = Math.min(minHeight, obj.explicitMaxHeight);
+        }
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            minHeight = (obj.scaleY == 0) ? 0 : minHeight / obj.scaleY;
+        }
+        return minHeight;
+    }
+    
+    private static function getMaxUBoundsWidth(obj:IUIComponent):Number
+    {
+        // explicit trumps explicitMax trumps Number.MAX_VALUE.
+        var maxWidth:Number;
+        if (!isNaN(obj.explicitMaxWidth))
+            maxWidth = obj.explicitMaxWidth;
+        else
+            maxWidth = DEFAULT_MAX_WIDTH;
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            maxWidth = (obj.scaleX == 0) ? 0 : maxWidth / obj.scaleX;
+        }
+        return maxWidth;
+    }
+    
+    private static function getMaxUBoundsHeight(obj:IUIComponent):Number
+    {
+        // explicit trumps explicitMax trumps Number.MAX_VALUE.
+        var maxHeight:Number;
+        if (!isNaN(obj.explicitMaxHeight))
+            maxHeight = obj.explicitMaxHeight;
+        else
+            maxHeight = DEFAULT_MAX_HEIGHT;
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            maxHeight = (obj.scaleY == 0) ? 0 : maxHeight / obj.scaleY;
+        }
+        return maxHeight;
+    }
+    
+
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getPreferredBoundsWidth(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        var width:Number = getPreferredUBoundsWidth(obj);
+
+		/*
+        if (transformMatrix)
+        {
+			width = MatrixUtil.transformSize(width, getPreferredUBoundsHeight(obj), transformMatrix).x;
+        }
+		*/
+        return width;
+    }
+
+    public static function getPreferredBoundsHeight(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        var height:Number = getPreferredUBoundsHeight(obj);
+
+		/*
+        if (transformMatrix)
+        {
+                height = MatrixUtil.transformSize(getPreferredUBoundsWidth(obj), height, transformMatrix).y;
+        }
+		*/
+        return height;
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getMinBoundsWidth(obj:IUIComponent/*, transformMatrix:Matrix*/):Number
+    {
+        var width:Number = getMinUBoundsWidth(obj);
+
+		/*
+        if (transformMatrix)
+        {
+			width = MatrixUtil.transformSize(width, getMinUBoundsHeight(obj), transformMatrix).x;
+        }
+		*/
+
+        return width;
+    }
+
+    public static function getMinBoundsHeight(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        var height:Number = getMinUBoundsHeight(obj);
+
+		/*
+        if (transformMatrix)
+        {
+			height = MatrixUtil.transformSize(getMinUBoundsWidth(obj), height, transformMatrix).y;
+        }
+		*/
+
+        return height;
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getMaxBoundsWidth(obj:IUIComponent/*, transformMatrix:Matrix*/):Number
+    {
+        var width:Number = getMaxUBoundsWidth(obj);
+		/*
+        if (transformMatrix)
+        {
+			width = MatrixUtil.transformSize(width, getMaxUBoundsHeight(obj), transformMatrix).x;
+        }
+		*/
+		
+        return width;
+    }
+
+    public static function getMaxBoundsHeight(obj:IUIComponent/*, transformMatrix:Matrix*/):Number
+    {
+        var height:Number = getMaxUBoundsHeight(obj);
+		/*
+        if (transformMatrix)
+        {
+			height = MatrixUtil.transformSize(getMaxUBoundsWidth(obj), height, transformMatrix).y;
+        }
+		*/
+		
+        return height;
+    }
+    
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getBoundsXAtSize(obj:IUIComponent, width:Number, height:Number/*, transformMatrix:Matrix*/):Number
+    {
+        //if (!transformMatrix)
+            return obj.x;
+        
+			/*
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 obj.explicitWidth,
+                                                 obj.explicitHeight,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));
+
+        // If we couldn't fit at all, default to the minimum size
+        if (!fitSize)
+            fitSize = new Point(getMinUBoundsWidth(obj), getMinUBoundsHeight(obj));
+            
+        var pos:Point = new Point();
+        MatrixUtil.transformBounds(fitSize.x, fitSize.y,
+                                   transformMatrix,
+                                   pos);
+        return pos.x;
+		*/
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getBoundsYAtSize(obj:IUIComponent, width:Number, height:Number/*, transformMatrix:Matrix*/):Number
+    {
+        //if (!transformMatrix)
+            return obj.y;
+        
+		/*
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 obj.explicitWidth,
+                                                 obj.explicitHeight,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));
+
+        // If we couldn't fit at all, default to the minimum size
+        if (!fitSize)
+            fitSize = new Point(getMinUBoundsWidth(obj), getMinUBoundsHeight(obj));
+            
+        var pos:Point = new Point();
+        MatrixUtil.transformBounds(fitSize.x, fitSize.y,
+                                   transformMatrix,
+                                   pos);
+        return pos.y;
+		*/
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getLayoutBoundsWidth(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        var width:Number = obj.width;
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            width = (obj.scaleX == 0) ? 0 : width / obj.scaleX;
+        }
+
+		/*
+        if (transformMatrix)
+        {
+            var height:Number = obj.height;
+            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            {
+                // We are already taking scale into account from the transform,
+                // so adjust here since IUIComponent mixes it with width/height
+                height = (obj.scaleY == 0) ? 0 : height / obj.scaleY;
+            }
+            
+            // By default the IUIComponent's registration point is the same
+            // as its untransformed border top-left corner, which is (0,0).
+            width = MatrixUtil.transformBounds(width, height,
+                                               transformMatrix,
+                                               new Point()).x;
+        }
+		*/
+        return width;
+    }
+
+    public static function getLayoutBoundsHeight(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        var height:Number = obj.height;
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            height = (obj.scaleY == 0) ? 0 : height / obj.scaleY;
+        }
+
+		/*
+        if (transformMatrix)
+        {
+            var width:Number = obj.width;
+            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            {
+                // We are already taking scale into account from the transform,
+                // so adjust here since IUIComponent mixes it with width/height
+                width = (obj.scaleX == 0) ? 0 : width / obj.scaleX;
+            }
+            
+            // By default the IUIComponent's registration point is the same
+            // as its untransformed border top-left corner, which is (0,0).
+            height = MatrixUtil.transformBounds(width, height,
+                                                transformMatrix,
+                                                new Point()).y;
+        }
+		*/
+        return height;
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function getLayoutBoundsX(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        //if (transformMatrix == null)
+            return obj.x;
+
+		/*
+        var width:Number = obj.width;
+        var height:Number = obj.height;
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            width = (obj.scaleX == 0) ? 0 : width / obj.scaleX;
+            height = (obj.scaleY == 0) ? 0 : height / obj.scaleY;
+        }
+        
+		// We are already taking scale into account from the transform,
+		// so adjust here since IUIComponent mixes it with width/height
+		var pos:Point = new Point();
+		MatrixUtil.transformBounds(width, height,
+                            	   transformMatrix,
+                            	   pos);
+        return pos.x;
+		*/
+    }
+
+    public static function getLayoutBoundsY(obj:IUIComponent/*,transformMatrix:Matrix*/):Number
+    {
+        //if (transformMatrix == null)
+            return obj.y;
+
+		/*
+        var width:Number = obj.width;
+        var height:Number = obj.height;
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            width = (obj.scaleX == 0) ? 0 : width / obj.scaleX;
+            height = (obj.scaleY == 0) ? 0 : height / obj.scaleY;
+        }
+        
+        // We are already taking scale into account from the transform,
+        // so adjust here since IUIComponent mixes it with width/height
+        var pos:Point = new Point();
+        MatrixUtil.transformBounds(width, height,
+                                   transformMatrix,
+                                   pos);
+        return pos.y;
+		*/
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function setLayoutBoundsPosition(obj:IUIComponent,x:Number, y:Number/*, transformMatrix:Matrix*/):void
+    {
+		/*
+        if (transformMatrix)
+        {
+            //race("Setting actual position to " + x + "," + y);
+            //race("\tcurrent x/y is " + obj.x + "," + obj.y); 
+            //race("\tcurrent actual position is " + actualPosition.x + "," + actualPosition.y);
+            x = x - getLayoutBoundsX(obj,transformMatrix) + obj.x;
+            y = y - getLayoutBoundsY(obj,transformMatrix) + obj.y;
+        }
+		*/
+        obj.move(x, y);
+    }
+
+    /**
+     *  @inheritDoc
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    public static function setLayoutBoundsSize(obj:IUIComponent,width:Number,
+                                               height:Number/*,
+                                               transformMatrix:Matrix*/):void
+    {
+        //if (!transformMatrix)
+        //{
+            if (isNaN(width))
+                width = getPreferredUBoundsWidth(obj);
+            if (isNaN(height))
+                height = getPreferredUBoundsHeight(obj);
+    
+            if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+            {
+                // We are already taking scale into account from the transform,
+                // so adjust here since IUIComponent mixes it with width/height
+                width *= obj.scaleX;
+                height *= obj.scaleY;
+            }
+            obj.setActualSize(width, height);
+            return;
+        //}
+
+		/*
+        var fitSize:Point = MatrixUtil.fitBounds(width, height, transformMatrix,
+                                                 obj.explicitWidth,
+                                                 obj.explicitHeight,
+                                                 getPreferredUBoundsWidth(obj),
+                                                 getPreferredUBoundsHeight(obj),
+                                                 getMinUBoundsWidth(obj),
+                                                 getMinUBoundsHeight(obj),
+                                                 getMaxUBoundsWidth(obj),
+                                                 getMaxUBoundsHeight(obj));
+
+        // If we couldn't fit at all, default to the minimum size
+        if (!fitSize)
+            fitSize = new Point(getMinUBoundsWidth(obj), getMinUBoundsHeight(obj));
+
+        if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_0)
+        {
+            // We are already taking scale into account from the transform,
+            // so adjust here since IUIComponent mixes it with width/height
+            obj.setActualSize(fitSize.x * obj.scaleX, fitSize.y * obj.scaleY);
+        }
+        else
+            obj.setActualSize(fitSize.x, fitSize.y);
+		*/
+    }
+}
+}