我需要创建一个如下图所示的平铺列表。它包含平铺列表末尾的按钮,它应该在滚动条内。我尝试扩展现有的 TileList 没有运气。
示例代码
public class CustomTileList extends TileList {
public function CustomTileList()
{
super();
}
protected var _button : Button ;
public function get button ( ) : Button {
return this._button ;
}
public function set button ( value : Button ) : void {
this._button = value;
}
override protected function createChildren():void
{
super.createChildren();
_button = new Button ();
_button .label = "More";
this.addChildAt( _button , super.numChildren - 1 );
}
}