http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DateFieldView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DateFieldView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DateFieldView.as
deleted file mode 100644
index f709a1f..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DateFieldView.as
+++ /dev/null
@@ -1,192 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{      
-    import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IDateChooserModel;
-       import org.apache.flex.core.IFormatBead;
-       import org.apache.flex.core.IParent;
-       import org.apache.flex.core.IPopUpHost;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.UIBase;
-       import org.apache.flex.core.ValuesManager;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-       import org.apache.flex.utils.UIUtils;
-       import org.apache.flex.utils.PointUtils;
-       import org.apache.flex.geom.Point;
-       import org.apache.flex.html.DateChooser;
-       import org.apache.flex.html.TextButton;
-       import org.apache.flex.html.TextInput;
-       
-       /**
-        * The DateFieldView class is a bead for DateField that creates the
-        * input and button controls. This class also handles the pop-up 
-        * mechanics.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public class DateFieldView extends BeadViewBase implements IBeadView
-       {
-               /**
-                *  constructor.
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function DateFieldView()
-               {
-               }
-               
-               private var _textInput:TextInput;
-               private var _button:TextButton;
-               
-               /**
-                *  The TextButton that triggers the display of the DateChooser 
pop-up.
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function get menuButton():TextButton
-               {
-                       return _button;
-               }
-               
-               /**
-                *  The TextInput that displays the date selected.
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function get textInput():TextInput
-               {
-                       return _textInput;
-               }
-               
-               /**
-                *  @copy org.apache.flex.core.IBead#strand
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               override public function set strand(value:IStrand):void
-               {       
-                       super.strand = value;
-                       
-                       _textInput = new TextInput();
-                       UIBase(_strand).addElement(_textInput);
-                       _textInput.width = 100;
-                       _textInput.height = 18;
-                       
-                       _button = new TextButton();
-                       _button.text = "M";
-                       UIBase(_strand).addElement(_button);
-                       _button.x = _textInput.width;
-                       _button.y = _textInput.y;
-                       
-                       
IEventDispatcher(_strand).addEventListener("beadsAdded",handleBeadsAdded);
-               }
-               
-               private function handleBeadsAdded(event:Event):void
-               {
-                       var formatter:IFormatBead = 
_strand.getBeadByType(IFormatBead) as IFormatBead;
-                       
formatter.addEventListener("formatChanged",handleFormatChanged);
-               }
-               
-               private function handleFormatChanged(event:Event):void
-               {
-                       var formatter:IFormatBead = event.target as IFormatBead;
-                       _textInput.text = formatter.formattedString;
-               }
-               
-               private var _popUp:DateChooser;
-               
-               /**
-                *  The pop-up component that holds the selection list.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function get popUp():DateChooser
-               {
-                       return _popUp;
-               }
-               
-               private var _popUpVisible:Boolean;
-               
-               /**
-                *  This property is true if the pop-up selection list is 
currently visible.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function get popUpVisible():Boolean
-               {
-                       return _popUpVisible;
-               }
-               public function set popUpVisible(value:Boolean):void
-               {
-                       if (value != _popUpVisible)
-                       {
-                               _popUpVisible = value;
-                               if (value)
-                               {
-                                       if (!_popUp)
-                                       {
-                                               _popUp = new DateChooser();
-                                               _popUp.width = 210;
-                                               _popUp.height = 220;
-                                       }
-                                       
-                                       var model:IDateChooserModel = 
_strand.getBeadByType(IDateChooserModel) as IDateChooserModel;
-                                       _popUp.selectedDate = 
model.selectedDate;
-                                       
-                                       var host:IPopUpHost = 
UIUtils.findPopUpHost(UIBase(_strand));
-                                       var point:Point = new Point(_button.x, 
_button.y+_button.height);
-                                       var p2:Point = 
PointUtils.localToGlobal(point, _strand);
-                                       var p3:Point = 
PointUtils.globalToLocal(p2, host);
-                                       _popUp.x = p3.x;
-                                       _popUp.y = p3.y;
-                                       
-                                       host.addElement(_popUp);
-                               }
-                               else
-                               {
-                                       UIUtils.removePopUp(_popUp);
-                               }
-                       }
-               }
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DownArrowButtonView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DownArrowButtonView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DownArrowButtonView.as
deleted file mode 100644
index c68a633..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DownArrowButtonView.as
+++ /dev/null
@@ -1,111 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.Graphics;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-
-    import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IStrand;
-    import org.apache.flex.core.IBeadView;
-    import org.apache.flex.events.Event;
-       
-    /**
-     *  The DownArrowButtonView class is the view for
-     *  the down arrow button in a ScrollBar and other controls.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public class DownArrowButtonView extends BeadViewBase implements 
IBeadView
-       {               
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function DownArrowButtonView()
-               {
-                       upView = new Shape();
-                       downView = new Shape();
-                       overView = new Shape();
-
-                       drawView(upView.graphics, 0xf8f8f8);
-                       drawView(downView.graphics, 0xd8d8d8);
-                       drawView(overView.graphics, 0xe8e8e8);
-               }
-               
-               private function drawView(g:Graphics, bgColor:uint):void
-               {
-                       g.lineStyle(1);
-                       g.beginFill(bgColor);
-                       g.drawRoundRect(0, 0, ScrollBarView.FullSize, 
ScrollBarView.FullSize, ScrollBarView.ThirdSize);
-                       g.endFill();
-                       g.lineStyle(0);
-                       g.beginFill(0);
-                       g.moveTo(ScrollBarView.QuarterSize, 
ScrollBarView.QuarterSize);
-                       g.lineTo(ScrollBarView.ThreeQuarterSize, 
ScrollBarView.QuarterSize);
-                       g.lineTo(ScrollBarView.HalfSize, 
ScrollBarView.ThreeQuarterSize);
-                       g.lineTo(ScrollBarView.QuarterSize, 
ScrollBarView.QuarterSize);
-                       g.endFill();
-               }
-               
-               private var shape:Shape;
-               
-        /**
-         *  @copy org.apache.flex.core.IBead#strand
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-                       shape = new Shape();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, ScrollBarView.FullSize, 
ScrollBarView.FullSize);
-                       shape.graphics.endFill();
-                       SimpleButton(value).upState = upView;
-                       SimpleButton(value).downState = downView;
-                       SimpleButton(value).overState = overView;
-                       SimpleButton(value).hitTestState = shape;
-
-            
SimpleButton(_strand).addEventListener("widthChanged",sizeChangeHandler);
-            
SimpleButton(_strand).addEventListener("heightChanged",sizeChangeHandler);
-        }
-                               
-               private var upView:Shape;
-               private var downView:Shape;
-               private var overView:Shape;
-        
-        private function sizeChangeHandler(event:Event):void
-        {
-            SimpleButton(_strand).scaleX = SimpleButton(_strand).width / 
ScrollBarView.FullSize;
-            SimpleButton(_strand).scaleY = SimpleButton(_strand).height / 
ScrollBarView.FullSize;
-        }
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DropDownListView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DropDownListView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DropDownListView.as
deleted file mode 100644
index 1334227..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/DropDownListView.as
+++ /dev/null
@@ -1,300 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.DisplayObject;
-       import flash.display.DisplayObjectContainer;
-       import flash.display.Graphics;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-       import flash.display.Sprite;
-       import flash.text.TextFieldType;
-       
-       import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.CSSTextField;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IPopUpHost;
-       import org.apache.flex.core.ISelectionModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.ValuesManager;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-    import org.apache.flex.utils.SolidBorderUtil;
-    
-    /**
-     *  The DropDownListView class is the default view for
-     *  the org.apache.flex.html.DropDownList class.
-     *  It displays a simple text label with what appears to be a
-     *  down arrow button on the right, but really, the entire
-     *  view is the button that will display or dismiss the dropdown.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public class DropDownListView extends BeadViewBase implements 
IDropDownListView, IBeadView
-       {
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function DropDownListView()
-               {
-            upSprite = new Sprite();
-            downSprite = new Sprite();
-            overSprite = new Sprite();
-                       upTextField = new CSSTextField();
-                       downTextField = new CSSTextField();
-                       overTextField = new CSSTextField();
-            upSprite.addChild(upTextField);
-            overSprite.addChild(overTextField);
-            downSprite.addChild(downTextField);
-            upTextField.parentDrawsBackground = true;
-            downTextField.parentDrawsBackground = true;
-            overTextField.parentDrawsBackground = true;
-                       upTextField.selectable = false;
-                       upTextField.type = TextFieldType.DYNAMIC;
-                       downTextField.selectable = false;
-                       downTextField.type = TextFieldType.DYNAMIC;
-                       overTextField.selectable = false;
-            overTextField.type = TextFieldType.DYNAMIC;
-            // auto-size collapses if no text
-                       //upTextField.autoSize = "left";
-                       //downTextField.autoSize = "left";
-                       //overTextField.autoSize = "left";
-
-            upArrows = new Shape();
-            overArrows = new Shape();
-            downArrows = new Shape();
-            upSprite.addChild(upArrows);
-                       overSprite.addChild(overArrows);
-                       downSprite.addChild(downArrows);
-            drawArrows(upArrows);
-            drawArrows(overArrows);
-            drawArrows(downArrows);
-
-               }
-
-        
-               private var selectionModel:ISelectionModel;
-               
-               private var shape:Shape;
-               
-        /**
-         *  @copy org.apache.flex.core.IBead#strand
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;;
-            selectionModel = value.getBeadByType(ISelectionModel) as 
ISelectionModel;
-            selectionModel.addEventListener("selectedIndexChanged", 
selectionChangeHandler);
-            selectionModel.addEventListener("dataProviderChanged", 
selectionChangeHandler);
-                       shape = new Shape();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, 10, 10);
-                       shape.graphics.endFill();
-                       SimpleButton(value).upState = upSprite;
-                       SimpleButton(value).downState = downSprite;
-                       SimpleButton(value).overState = overSprite;
-                       SimpleButton(value).hitTestState = shape;
-                       if (selectionModel.selectedIndex !== -1)
-                               text = selectionModel.selectedItem.toString();
-            else
-                text = "^W_";
-            upTextField.height = upTextField.textHeight + 4;
-            downTextField.height = downTextField.textHeight + 4;
-            overTextField.height = overTextField.textHeight + 4;
-            if (selectionModel.selectedIndex == -1)
-                text = "";
-            
-            IEventDispatcher(value).addEventListener("heightChanged", 
changeHandler);
-            IEventDispatcher(value).addEventListener("widthChanged", 
changeHandler);
-                       changeHandler(null);
-               }
-               
-               private function selectionChangeHandler(event:Event):void
-               {
-            if (selectionModel.selectedItem == null)
-                text = "";
-            else if (selectionModel.labelField != null)
-                text = 
selectionModel.selectedItem[selectionModel.labelField].toString();
-            else
-                text = selectionModel.selectedItem.toString();
-               }
-               
-        private function changeHandler(event:Event):void
-        {
-            var ww:Number = DisplayObject(_strand).width;
-            var hh:Number = DisplayObject(_strand).height;
-            
-            upArrows.x = ww - upArrows.width - 6;            
-            overArrows.x = ww - overArrows.width - 6;            
-            downArrows.x = ww - downArrows.width - 6;
-            upArrows.y = (hh - upArrows.height) / 2;            
-            overArrows.y = (hh - overArrows.height) / 2;            
-            downArrows.y = (hh - downArrows.height) / 2;
-
-                       upTextField.width = upArrows.x;
-                       downTextField.width = downArrows.x;
-                       overTextField.width = overArrows.x;
-                       upTextField.height = hh;
-                       downTextField.height = hh;
-                       overTextField.height = hh;
-            
-            drawBorder(upSprite, 0xf8f8f8, ww, hh);
-            drawBorder(overSprite, 0xe8e8e8, ww, hh);
-            drawBorder(downSprite, 0xd8d8d8, ww, hh);
-            
-                       shape.graphics.clear();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, ww, hh);
-                       shape.graphics.endFill();
-        }
-        
-               private var upTextField:CSSTextField;
-               private var downTextField:CSSTextField;
-               private var overTextField:CSSTextField;
-        private var upSprite:Sprite;
-        private var downSprite:Sprite;
-        private var overSprite:Sprite;
-        private var upArrows:Shape;
-        private var downArrows:Shape;
-        private var overArrows:Shape;
-               
-        private function drawBorder(sprite:Sprite, color:uint, ww:Number, 
hh:Number):void
-        {
-            SolidBorderUtil.drawBorder(sprite.graphics, 0, 0,
-                ww, hh,
-                0x808080, color, 1, 1, 4);
-        }
-        
-        private function drawArrows(shape:Shape):void
-        {
-            var g:Graphics = shape.graphics;
-            g.beginFill(0);
-            g.moveTo(8, 0);
-            g.lineTo(12, 4);
-            g.lineTo(4, 4);
-            g.lineTo(8, 0);
-            g.endFill();
-            g.beginFill(0);
-            g.moveTo(8, 10);
-            g.lineTo(12, 6);
-            g.lineTo(4, 6);
-            g.lineTo(8, 10);
-            g.endFill();
-        }
-            
-       /**
-         *  The text that is displayed in the view.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function get text():String
-               {
-                       return upTextField.text;
-               }
-        
-        /**
-         *  @private
-         */
-               public function set text(value:String):void
-               {
-            var ww:Number = DisplayObject(_strand).width;
-            var hh:Number = DisplayObject(_strand).height;
-                       upTextField.text = value;
-                       downTextField.text = value;
-                       overTextField.text = value;
-               }
-               
-        private var _popUp:IStrand;
-        
-        /**
-         *  The dropdown/popup that displays the set of choices.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get popUp():IStrand
-        {
-            if (!_popUp)
-            {
-                var popUpClass:Class = 
ValuesManager.valuesImpl.getValue(_strand, "iPopUp") as Class;
-                _popUp = new popUpClass() as IStrand;
-            }
-            return _popUp;
-        }
-        
-        private var _popUpVisible:Boolean;
-        
-        /**
-         *  A flag that indicates whether the dropdown/popup is
-         *  visible.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get popUpVisible():Boolean
-        {
-            return _popUpVisible;
-        }
-        
-        /**
-         *  @private
-         */
-        public function set popUpVisible(value:Boolean):void
-        {
-            if (value != _popUpVisible)
-            {
-                _popUpVisible = value;
-                if (value)
-                {
-                                       var root:Object = 
DisplayObject(_strand).root;
-                                       var host:DisplayObjectContainer = 
DisplayObject(_strand).parent;
-                    while (host && !(host is IPopUpHost))
-                        host = host.parent;
-                    if (host)
-                        IPopUpHost(host).addElement(popUp);
-                }
-                else
-                {
-                    DisplayObject(_popUp).parent.removeChild(_popUp as 
DisplayObject);                    
-                }
-            }
-        }
-        
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HRuleView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HRuleView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HRuleView.as
deleted file mode 100644
index 3c7e092..0000000
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HRuleView.as
+++ /dev/null
@@ -1,87 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.Bitmap;
-       import flash.display.Loader;
-       import flash.display.LoaderInfo;
-       import flash.net.URLRequest;
-       
-       import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IImageModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.UIBase;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-       
-       /**
-        *  The ImageView class creates the visual elements of the 
org.apache.flex.html.Image component.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public class HRuleView extends BeadViewBase implements IBeadView
-       {
-               /**
-                *  constructor.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function HRuleView()
-               {
-               }
-               
-               /**
-                *  @copy org.apache.flex.core.IBead#strand
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-                       
-                       
IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange);
-                       
IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
-            
IEventDispatcher(_strand).addEventListener("sizeChanged",handleSizeChange);
-                       
-                       handleSizeChange(null);
-               }
-                               
-               /**
-                * @private
-                */
-               private function handleSizeChange(event:Object):void
-               {
-                       var ui:UIBase = _strand as UIBase;
-            ui.graphics.clear();
-            ui.graphics.beginFill(0);
-            ui.graphics.drawRect(0, 0, ui.width, 1);
-            ui.graphics.endFill();
-               }
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarThumbView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarThumbView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarThumbView.as
deleted file mode 100644
index 05a41b6..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarThumbView.as
+++ /dev/null
@@ -1,120 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.DisplayObject;
-       import flash.display.Graphics;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-       
-       import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.events.Event;
-       import org.apache.flex.events.IEventDispatcher;
-       import org.apache.flex.html.supportClasses.ScrollBar;
-       
-    /**
-     *  The HScrollBarThumbView class is the view for
-     *  the thumb button in a Horizontal ScrollBar.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public class HScrollBarThumbView extends BeadViewBase implements 
IBeadView
-       {
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function HScrollBarThumbView()
-               {
-               }
-               
-               private function drawView(g:Graphics, bgColor:uint):void
-               {
-            var ww:Number = DisplayObject(_strand).width;
-            g.clear();
-                       g.lineStyle(1);
-                       g.beginFill(bgColor);
-                       g.drawRoundRect(0, 0, ww, ScrollBarView.FullSize, 
ScrollBarView.HalfSize);
-                       g.endFill();
-               }
-               
-               private var shape:Shape;
-               
-        /**
-         *  @copy org.apache.flex.core.IBead#strand
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-            
-            upView = new Shape();
-            downView = new Shape();
-            overView = new Shape();
-            
-            drawView(upView.graphics, 0xc8c8c8);
-            drawView(downView.graphics, 0xc8c8c8);
-            drawView(overView.graphics, 0xb8b8b8);
-
-            shape = new Shape();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, ScrollBarView.FullSize, 
ScrollBarView.FullSize);
-                       shape.graphics.endFill();
-                       SimpleButton(value).upState = upView;
-                       SimpleButton(value).downState = downView;
-                       SimpleButton(value).overState = overView;
-                       SimpleButton(value).hitTestState = shape;
-            IEventDispatcher(_strand).addEventListener("widthChanged", 
widthChangedHandler);
-               }
-
-        private function widthChangedHandler(event:Event):void
-        {
-                       DisplayObject(_strand).scaleY = 1.0;
-                       DisplayObject(_strand).scaleX = 1.0;
-                       
-            var ww:Number = DisplayObject(_strand).width;
-            drawView(upView.graphics, 0xc8c8c8);
-            drawView(downView.graphics, 0xc8c8c8);
-            drawView(overView.graphics, 0xb8b8b8);
-            
-            shape.graphics.clear();
-            shape.graphics.beginFill(0xCCCCCC);
-            shape.graphics.drawRect(0, 0, ww, ScrollBarView.FullSize);
-            shape.graphics.endFill();
-        }
-        
-               private var upView:Shape;
-               private var downView:Shape;
-               private var overView:Shape;
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarTrackView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarTrackView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarTrackView.as
deleted file mode 100644
index de6a3af..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarTrackView.as
+++ /dev/null
@@ -1,118 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.DisplayObject;
-       import flash.display.Graphics;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-       
-    import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.events.Event;
-       
-    /**
-     *  The HScrollBarTrackView class is the view for
-     *  the track in a Horizontal ScrollBar.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public class HScrollBarTrackView extends BeadViewBase implements 
IBeadView
-       {
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function HScrollBarTrackView()
-               {
-               }
-               
-               private function drawView(g:Graphics, bgColor:uint):void
-               {
-                       var w:Number = SimpleButton(_strand).width;
-                       
-                       g.clear();
-                       g.lineStyle(1, 0x808080);
-                       g.beginFill(bgColor);
-                       g.drawRect(0, 0, w, ScrollBarView.FullSize);
-                       g.endFill();
-                       g.lineStyle(0);
-               }
-
-               private function widthChangeHandler(event:Event):void
-               {
-                       DisplayObject(_strand).scaleY = 1.0;
-                       DisplayObject(_strand).scaleX = 1.0;
-                       
-                       var w:Number = SimpleButton(_strand).width;
-                       
-                       drawView(upView.graphics, 0xf8f8f8);
-                       drawView(downView.graphics, 0xd8d8d8);
-                       drawView(overView.graphics, 0xe8e8e8);  
-                       shape.graphics.clear();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, ScrollBarView.FullSize, 
w);
-                       shape.graphics.endFill();
-                       
-               }
-               
-               private var shape:Shape;
-               
-        /**
-         *  @copy org.apache.flex.core.IBead#strand
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-                       
-                       upView = new Shape();
-                       downView = new Shape();
-                       overView = new Shape();
-                       
-                       drawView(upView.graphics, 0xf8f8f8);
-                       drawView(downView.graphics, 0xd8d8d8);
-                       drawView(overView.graphics, 0xe8e8e8);
-                       
-                       SimpleButton(value).addEventListener("widthChanged", 
widthChangeHandler);
-                       shape = new Shape();
-                       SimpleButton(value).upState = upView;
-                       SimpleButton(value).downState = downView;
-                       SimpleButton(value).overState = overView;
-                       SimpleButton(value).hitTestState = shape;
-               }
-
-               private var upView:Shape;
-               private var downView:Shape;
-               private var overView:Shape;
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarView.as
deleted file mode 100644
index 68fe11f..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/HScrollBarView.as
+++ /dev/null
@@ -1,99 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.DisplayObject;
-       
-    import org.apache.flex.core.IBead;
-       import org.apache.flex.core.IBeadLayout;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IScrollBarModel;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.IUIBase;
-       import org.apache.flex.core.Strand;
-       import org.apache.flex.core.UIBase;
-       import org.apache.flex.core.ValuesManager;
-    import org.apache.flex.events.IEventDispatcher;
-    import org.apache.flex.events.Event;
-       import org.apache.flex.html.Button;
-       import 
org.apache.flex.html.beads.controllers.ButtonAutoRepeatController;
-
-    /**
-     *  The HScrollBarView class is the default view for
-     *  the org.apache.flex.html.supportClasses.HScrollBar class.
-     *  It implements the classic desktop-like HScrollBar.
-     *  A different view would implement more modern scrollbars that hide 
themselves
-     *  until hovered over with the mouse.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public class HScrollBarView extends ScrollBarView implements IBeadView, 
IStrand, IScrollBarView
-       {
-        /**
-         *  Constructor.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function HScrollBarView()
-               {
-               }
-
-        /**
-         *  @copy org.apache.flex.core.IBead#strand
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-                       
-                       UIBase(value).setHeight(ScrollBarView.FullSize, true);
-            
-            // TODO: (aharui) put in values impl
-                       _increment = new Button();
-                       Button(_increment).addBead(new RightArrowButtonView());
-            Button(_increment).addBead(new ButtonAutoRepeatController());
-                       _decrement = new Button();
-                       Button(_decrement).addBead(new LeftArrowButtonView());
-            Button(_decrement).addBead(new ButtonAutoRepeatController());
-                       _track = new Button();                          
-                       Button(_track).addBead(new HScrollBarTrackView());
-                       _thumb = new Button();                          
-                       Button(_thumb).addBead(new HScrollBarThumbView());
-            
-            UIBase(value).addChild(_decrement);
-            UIBase(value).addChild(_increment);
-            UIBase(value).addChild(_track);
-            UIBase(value).addChild(_thumb);
-            
-            IEventDispatcher(_strand).addEventListener("widthChanged", 
changeHandler);
-
-            layout.layout();
-               }
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBackgroundBead.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBackgroundBead.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBackgroundBead.as
deleted file mode 100644
index 2590a9a..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBackgroundBead.as
+++ /dev/null
@@ -1,35 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import org.apache.flex.core.IBead;
-
-    /**
-     *  The IBackgroundBead interface is a marker interface for beads
-     *  that draw backgrounds.
-     * 
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface IBackgroundBead extends IBead
-       {
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBorderBead.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBorderBead.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBorderBead.as
deleted file mode 100644
index 3e4fc39..0000000
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IBorderBead.as
+++ /dev/null
@@ -1,35 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import org.apache.flex.core.IBead;
-
-    /**
-     *  The IBackgroundBead interface is a marker interface for beads
-     *  that draw backgrounds.
-     * 
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface IBorderBead extends IBead
-       {
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IComboBoxView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IComboBoxView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IComboBoxView.as
deleted file mode 100644
index 650d300..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IComboBoxView.as
+++ /dev/null
@@ -1,78 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-    import org.apache.flex.core.IBeadView;
-    import org.apache.flex.core.IStrand;
-    
-       /**
-        *  The IComboBoxView interface provides the protocol for any bead that
-        *  creates the visual parts for a org.apache.flex.html.ComboBox 
control.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public interface IComboBoxView extends IBeadView
-       {
-               /**
-                *  The string appearing in the input area for the ComboBox.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               function get text():String;
-               function set text(value:String):void;
-               
-               /**
-                *  The HTML string appearing in the input area for the 
ComboBox.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               function get html():String;
-               function set html(value:String):void;
-               
-               /**
-                *  The component housing the selection list.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               function get popUp():IStrand;
-               
-               /**
-                *  Determines whether or not the pop-up with the selection 
list is visible or not.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               function get popUpVisible():Boolean;
-               function set popUpVisible(value:Boolean):void;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDataGridView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDataGridView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDataGridView.as
deleted file mode 100644
index 8f04d11..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDataGridView.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import org.apache.flex.core.IBeadView;
-       
-       /**
-        *  The IDataGridView interface marks as a component as being the bead 
that
-        *  can create the visual pieces for a org.apache.flex.html.DataGrid. 
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public interface IDataGridView extends IBeadView
-       {
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDropDownListView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDropDownListView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDropDownListView.as
deleted file mode 100644
index 688bcc5..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IDropDownListView.as
+++ /dev/null
@@ -1,57 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-    import org.apache.flex.core.IBeadView;
-    import org.apache.flex.core.IStrand;
-
-    /**
-     *  The IDropDownListView interface is the interface for views for
-     *  the org.apache.flex.html.DropDownList.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface IDropDownListView extends IBeadView
-       {
-        
-        /**
-         *  @copy org.apache.flex.html.beads.DropDownListView#popup
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        function get popUp():IStrand;
-        
-        /**
-         *  @copy org.apache.flex.html.beads.DropDownListView#popupVisible
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        function get popUpVisible():Boolean;
-        function set popUpVisible(value:Boolean):void;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IGraphicsDrawing.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IGraphicsDrawing.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IGraphicsDrawing.as
deleted file mode 100644
index 91d1838..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IGraphicsDrawing.as
+++ /dev/null
@@ -1,36 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-    /**
-     *  The IGraphicsDrawing interface is a marker interface for beads
-     *  that draw into the graphics layer.  This helps a bead determine
-     *  if it is the first of many graphics drawing beads so it can
-     *  know whether or not to clear the graphics layer before drawing.
-     * 
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface IGraphicsDrawing
-       {
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IListView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IListView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IListView.as
deleted file mode 100644
index f9159ce..0000000
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IListView.as
+++ /dev/null
@@ -1,48 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{      
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IItemRendererParent;
-       import org.apache.flex.core.IStrand;
-
-       /**
-        *  The IListView interface provides the protocol for any bead that
-        *  creates the visual parts for a org.apache.flex.html.List control.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public interface IListView extends IBeadView
-       {
-               /**
-                *  The component which parents all of the itemRenderers for 
each
-                *  datum being displayed by the List component.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               function get dataGroup():IItemRendererParent;
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IScrollBarView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IScrollBarView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IScrollBarView.as
deleted file mode 100644
index c42daa7..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/IScrollBarView.as
+++ /dev/null
@@ -1,80 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.DisplayObject;
-       
-       import org.apache.flex.core.IScrollBarModel;
-       import org.apache.flex.core.IStrand;
-
-    /**
-     *  The IScrollBarView interface is the interface for views for
-     *  the org.apache.flex.html.supportClasses.ScrollBar.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface IScrollBarView
-       {
-        /**
-         *  The down arrow button in a vertical ScrollBar or right arrow
-         *  button in a horizontal ScrollBar
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               function get increment():DisplayObject;
-        
-        /**
-         *  The up arrow button in a vertical ScrollBar or left arrow
-         *  button in a horizontal ScrollBar
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               function get decrement():DisplayObject;
-
-        /**
-         *  The track in a ScrollBar
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               function get track():DisplayObject;
-        
-        /**
-         *  The thumb in a ScrollBar
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               function get thumb():DisplayObject;
-               
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISliderView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISliderView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISliderView.as
deleted file mode 100644
index 3ad1743..0000000
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISliderView.as
+++ /dev/null
@@ -1,60 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-    COMPILE::AS3
-    {
-        import flash.display.DisplayObject;            
-    }
-       import org.apache.flex.core.IBead;
-       
-       /**
-        *  The ISliderView interface provides the protocol for any bead that
-        *  creates the visual parts for a org.apache.flex.html.Slider control.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public interface ISliderView extends IBead
-       {
-               /**
-                *  The component used for the track area of the 
org.apache.flex.html.Slider.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-        COMPILE::AS3
-               function get track():DisplayObject;
-               
-               /**
-                *  The component used for the thumb button of the 
org.apache.flex.html.Slider.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-        COMPILE::AS3
-               function get thumb():DisplayObject;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISpinnerView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISpinnerView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISpinnerView.as
deleted file mode 100644
index eb6adaa..0000000
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ISpinnerView.as
+++ /dev/null
@@ -1,61 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-    COMPILE::AS3
-    {
-        import flash.display.DisplayObject;            
-    }
-       
-       import org.apache.flex.core.IBead;
-       
-       /**
-        *  The ISpinnerView interface provides the protocol for any bead that
-        *  creates the visual parts for a org.apache.flex.html.Spinner control.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public interface ISpinnerView extends IBead
-       {
-               /**
-                *  The component used to increment the 
org.apache.flex.html.Spinner value.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-        COMPILE::AS3
-               function get increment():DisplayObject;
-               
-               /**
-                *  The component used to decrement the 
org.apache.flex.html.Spinner value.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-        COMPILE::AS3
-               function get decrement():DisplayObject;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextFieldView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextFieldView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextFieldView.as
deleted file mode 100644
index e94ee34..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextFieldView.as
+++ /dev/null
@@ -1,44 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import org.apache.flex.core.CSSTextField;
-
-    /**
-     *  The ITextFieldView interface is the interface for views for
-     *  the use a CSSTextField to display text.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface ITextFieldView
-       {
-        /**
-         *  The org.apache.flex.core.CSSTextField used to display text.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               function get textField():CSSTextField;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextItemRenderer.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextItemRenderer.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextItemRenderer.as
deleted file mode 100644
index 0877b05..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ITextItemRenderer.as
+++ /dev/null
@@ -1,45 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import org.apache.flex.core.ISelectableItemRenderer;
-
-    /**
-     *  The ITextItemRenderer interface is the interface for
-     *  for org.apache.flex.core.IItemRenderer that display text.
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 10.2
-     *  @playerversion AIR 2.6
-     *  @productversion FlexJS 0.0
-     */
-       public interface ITextItemRenderer extends ISelectableItemRenderer
-       {
-        /**
-         *  The text to be displayed in the item renderer.
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        function get text():String;
-        function set text(value:String):void;
-       }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
deleted file mode 100644
index b0ee998..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
+++ /dev/null
@@ -1,276 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-       import flash.display.Loader;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-       import flash.display.Sprite;
-       import flash.events.Event;
-       import flash.net.URLRequest;
-       import flash.text.TextField;
-       import flash.text.TextFieldType;
-       
-       import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.CSSTextField;
-       import org.apache.flex.core.IBead;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IStrand;
-       import org.apache.flex.core.IStrandWithModel;
-       import org.apache.flex.core.ValuesManager;
-       import org.apache.flex.html.beads.models.ImageAndTextModel;
-    import org.apache.flex.utils.SolidBorderUtil;
-       
-       /**
-        *  The ImageButtonView class provides an image-only view
-        *  for the standard Button. Unlike the CSSButtonView, this
-        *  class does not support background and border; only images
-        *  for the up, over, and active states.
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public class ImageAndTextButtonView extends BeadViewBase implements 
IBeadView, IBead
-       {
-               /**
-                *  Constructor.
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function ImageAndTextButtonView()
-               {
-                       upSprite = new Sprite();
-                       downSprite = new Sprite();
-                       overSprite = new Sprite();
-            upTextField = new CSSTextField();
-            downTextField = new CSSTextField();
-            overTextField = new CSSTextField();
-            upTextField.selectable = false;
-            upTextField.type = TextFieldType.DYNAMIC;
-            downTextField.selectable = false;
-            downTextField.type = TextFieldType.DYNAMIC;
-            overTextField.selectable = false;
-            overTextField.type = TextFieldType.DYNAMIC;
-            upTextField.autoSize = "left";
-            downTextField.autoSize = "left";
-            overTextField.autoSize = "left";
-               }
-               
-               /**
-                *  @copy org.apache.flex.core.IBead#strand
-                *  
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-            textModel = IStrandWithModel(value).model as ImageAndTextModel;
-            textModel.addEventListener("textChange", textChangeHandler);
-            textModel.addEventListener("htmlChange", htmlChangeHandler);
-            textModel.addEventListener("imageChange", imageChangeHandler);
-                       
-                       shape = new Shape();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, 10, 10);
-                       shape.graphics.endFill();
-                       SimpleButton(value).upState = upSprite;
-                       SimpleButton(value).downState = downSprite;
-                       SimpleButton(value).overState = overSprite;
-                       SimpleButton(value).hitTestState = shape;
-                       
-                       setupBackground(upSprite, upTextField, 0xCCCCCC);
-                       setupBackground(overSprite, overTextField, 0xFFCCCC, 
"hover");
-                       setupBackground(downSprite, downTextField, 0x808080, 
"active");
-            upTextField.styleParent = value;
-            downTextField.styleParent = value;
-            overTextField.styleParent = value;
-
-               }
-               
-               private var upSprite:Sprite;
-               private var downSprite:Sprite;
-               private var overSprite:Sprite;
-               private var shape:Shape;
-        
-        private var textModel:ImageAndTextModel;
-               
-        /**
-         *  The URL of an icon to use in the button
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get image():String
-        {
-            return textModel.image;
-        }
-                
-               /**
-                * @private
-                */
-               private function setupBackground(sprite:Sprite, 
textField:CSSTextField, color:uint, state:String = null):void
-               {
-                       var backgroundImage:Object = image;
-                       if (backgroundImage)
-                       {
-                               var loader:Loader = new Loader();
-                               sprite.addChildAt(loader, 0);
-                sprite.addChild(textField);
-                               var url:String = backgroundImage as String;
-                               loader.load(new URLRequest(url));
-                               
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, function 
(e:flash.events.Event):void { 
-                    var padding:int = 2;
-                    var borderWidth:int = 1;
-                                       updateHitArea();
-                    loader.x = padding;
-                    textField.x = loader.width + padding;
-                    textField.y = padding;
-                    loader.y = (textField.height + padding + padding - 
loader.height) / 2;
-                    sprite.graphics.clear();
-                    sprite.graphics.beginFill(color);
-                    sprite.graphics.drawRect(0, 0, sprite.width, 
sprite.height);
-                    sprite.graphics.endFill();
-                    SolidBorderUtil.drawBorder(sprite.graphics, 
-                        0, 0, textField.x + textField.width + padding, 
textField.height + padding + padding,
-                        0x000000, color, borderWidth);
-                               });
-                       }
-               }
-        
-        private function textChangeHandler(event:Event):void
-        {
-            text = textModel.text;
-        }
-        
-        private function htmlChangeHandler(event:Event):void
-        {
-            html = textModel.html;
-        }
-               
-        private function imageChangeHandler(event:Event):void
-        {
-            setupBackground(upSprite, upTextField, 0xCCCCCC);
-            setupBackground(overSprite, overTextField, 0xFFCCCC, "hover");
-            setupBackground(downSprite, downTextField, 0x808080, "active");
-        }
-        
-        /**
-         *  The CSSTextField in the up state
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public var upTextField:CSSTextField;
-        
-        /**
-         *  The CSSTextField in the down state
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public var downTextField:CSSTextField;
-        
-        /**
-         *  The CSSTextField in the over state
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public var overTextField:CSSTextField;
-        
-        /**
-         *  @copy org.apache.flex.html.core.ITextModel#text
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get text():String
-        {
-            return upTextField.text;
-        }
-        
-        /**
-         *  @private
-         */
-        public function set text(value:String):void
-        {
-            upTextField.text = value;
-            downTextField.text = value;
-            overTextField.text = value;
-            shape.graphics.clear();
-            shape.graphics.beginFill(0xCCCCCC);
-            shape.graphics.drawRect(0, 0, upSprite.width, upSprite.height);
-            shape.graphics.endFill();
-            
-        }
-        
-        /**
-         *  @copy org.apache.flex.html.core.ITextModel#text
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-        public function get html():String
-        {
-            return upTextField.htmlText;
-        }
-        
-        /**
-         *  @private
-         */
-        public function set html(value:String):void
-        {
-            upTextField.htmlText = value;
-            downTextField.htmlText = value;
-            overTextField.htmlText = value;
-        }
-
-        /**
-                * @private
-                */
-               private function updateHitArea():void
-               {
-                       shape.graphics.clear();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, upSprite.width, 
upSprite.height);
-                       shape.graphics.endFill();
-                       
-               }
-       }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageButtonView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageButtonView.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageButtonView.as
deleted file mode 100644
index 7e81263..0000000
--- 
a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ImageButtonView.as
+++ /dev/null
@@ -1,158 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.flex.html.beads
-{
-COMPILE::AS3 {
-       import flash.display.Loader;
-       import flash.display.Shape;
-       import flash.display.SimpleButton;
-       import flash.display.Sprite;
-       import flash.events.Event;
-    import flash.events.IOErrorEvent;
-       import flash.net.URLRequest;
-
-       import org.apache.flex.core.UIButtonBase;
-}
-
-    import org.apache.flex.core.BeadViewBase;
-       import org.apache.flex.core.IBead;
-       import org.apache.flex.core.IBeadView;
-       import org.apache.flex.core.IStrand;
-    import org.apache.flex.core.ValuesManager;
-    import org.apache.flex.events.Event;
-
-       /**
-        *  The ImageButtonView class provides an image-only view
-        *  for the standard Button. Unlike the CSSButtonView, this
-        *  class does not support background and border; only images
-        *  for the up, over, and active states.
-        *
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public class ImageButtonView extends BeadViewBase implements IBeadView, 
IBead
-       {
-               /**
-                *  Constructor.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function ImageButtonView()
-               {
-                       COMPILE::AS3 {
-                               upSprite = new Sprite();
-                               downSprite = new Sprite();
-                               overSprite = new Sprite();
-                       }
-               }
-
-               /**
-                *  @copy org.apache.flex.core.IBead#strand
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               override public function set strand(value:IStrand):void
-               {
-                       super.strand = value;
-
-                       COMPILE::AS3 {
-                               shape = new Shape();
-                               shape.graphics.beginFill(0xCCCCCC);
-                               shape.graphics.drawRect(0, 0, 10, 10);
-                               shape.graphics.endFill();
-                               SimpleButton(value).upState = upSprite;
-                               SimpleButton(value).downState = downSprite;
-                               SimpleButton(value).overState = overSprite;
-                               SimpleButton(value).hitTestState = shape;
-
-                               setupBackground(upSprite);
-                               setupBackground(overSprite, "hover");
-                               setupBackground(downSprite, "active");
-                       }
-               }
-
-               COMPILE::AS3 {
-                       private var upSprite:Sprite;
-                       private var downSprite:Sprite;
-                       private var overSprite:Sprite;
-                       private var shape:Shape;
-               }
-
-               /**
-                * @private
-                */
-               COMPILE::AS3
-               private function setupBackground(sprite:Sprite, state:String = 
null):void
-               {
-                       var backgroundImage:Object = 
ValuesManager.valuesImpl.getValue(_strand, "background-image", state);
-                       if (backgroundImage)
-                       {
-                               var loader:Loader = new Loader();
-                               sprite.addChildAt(loader, 0);
-                               var url:String = backgroundImage as String;
-                               loader.load(new URLRequest(url));
-                
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function 
(e:IOErrorEvent):void {
-                    trace(e);
-                    e.preventDefault();
-                });
-                               
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, function 
(e:flash.events.Event):void {
-                    var host:UIButtonBase = UIButtonBase(_strand);
-                    if (isNaN(host.explicitWidth) && isNaN(host.percentWidth))
-                    {
-                        host.setWidth(loader.content.width);
-                        if (host.parent)
-                            host.parent.dispatchEvent(new 
org.apache.flex.events.Event("layoutNeeded"));
-                    }
-                    else
-                        loader.content.width = host.width;
-
-                    if (isNaN(host.explicitHeight) && 
isNaN(host.percentHeight))
-                    {
-                        host.setHeight(loader.content.height);
-                        if (host.parent)
-                            host.parent.dispatchEvent(new 
org.apache.flex.events.Event("layoutNeeded"));
-                    }
-                    else
-                        loader.content.height = host.height;
-                    updateHitArea();
-                               });
-                       }
-               }
-
-               /**
-                * @private
-                */
-               COMPILE::AS3
-               private function updateHitArea():void
-               {
-                       shape.graphics.clear();
-                       shape.graphics.beginFill(0xCCCCCC);
-                       shape.graphics.drawRect(0, 0, upSprite.width, 
upSprite.height);
-                       shape.graphics.endFill();
-               }
-       }
-}

Reply via email to