          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
+        COMPILE::AS3
         public function removeBead(value:IBead):IBead	
         {
             var n:int = _beads.length;

         */
        public function removeElement(c:Object, dispatchEvent:Boolean = true):void
        {
            if (c is IUIBase)
            {
                removeChild(IUIBase(c).element as DisplayObject);
            }
            else
                removeChild(c as DisplayObject);
        }
        
        /**

         */
        public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
        {
            COMPILE::AS3 {
                if (c is IUIBase)
                {
                    addChildAt(IUIBase(c).element as DisplayObject, index);
                    IUIBase(c).addedToParent();
                }
                else
                    addChildAt(c as DisplayObject, index);
            }
            COMPILE::JS {
                var children:Array = internalChildren();
                if (index >= children.length)
                    addElement(c);
                else
                {
                    element.insertBefore(c.positioner,
                        children[index]);
                    c.addedToParent();
                }

            }
        }

        /**
