用ToggleButtonBar定义一套用来维护按钮选择状态的纵向或横向的按钮组.代码如下: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" initialize……