Apache flex Flex工具栏元素

Apache flex Flex工具栏元素,apache-flex,actionscript,toolbar,flex-mx,Apache Flex,Actionscript,Toolbar,Flex Mx,Flex中是否存在类似于c工具栏的工具栏http://msdn.microsoft.com/en-us/library/ms752063.aspx 我正在使用HBox和ClipanEnableScrolling=true 但是当内容更宽时,我需要滚动,就像c默认情况下那样,不,它不需要。可能有一些其他人已经构建的组件。我总是根据需要滚动自己的。我可能会像下面这样做。我相信有更好的方法,但是暴力可以满足我的需要,希望它能帮助你 <s:HGroup width="100%">

Flex中是否存在类似于c工具栏的工具栏http://msdn.microsoft.com/en-us/library/ms752063.aspx

我正在使用HBox和ClipanEnableScrolling=true


但是当内容更宽时,我需要滚动,就像c默认情况下那样,不,它不需要。可能有一些其他人已经构建的组件。我总是根据需要滚动自己的。我可能会像下面这样做。我相信有更好的方法,但是暴力可以满足我的需要,希望它能帮助你

<s:HGroup width="100%">
        <s:Button label="scroll left" click="scrollLeftClick()"/>
        <s:Scroller width="100%" horizontalScrollPolicy="off">
            <s:HGroup>
                <s:Button label="button"/>
                <s:Button label="button"/>
                <s:Button label="button"/>
                <s:Button label="button"/>
                <s:Button label="button"/>
                <s:Button label="button"/>
                ...//as many more buttons as needed
            </s:HGroup>
        </s:Scroller>
        <s:Button label="scroll right" click="scrollRightClick()"/>
    </s:HGroup>
然后,作为分隔符,您可以始终在按钮之间使用以下选项:

<s:Line height="100%">
                    <s:stroke>
                        <s:SolidColorStroke weight="2"/>
                    </s:stroke>
                </s:Line>
然后只需添加scrollLeft和scrollRight的功能,即可移动ScrollPosition,一切都将正常运行。。。从理论上讲,无论如何