Flex 4中给borderContainer 加滚动条

有时候场景的内容显示不下时,需要给borderContainer组件加上滚动条,但是该组件无此属性,但可以通过嵌套Scroller组件的方法来实现,具体操作如下 :

<s:BorderContainer width="955" height="600">	
		<s:Scroller width="100%" height="100%">
			<s:Group id="myScroller">
				<s:BorderContainer  width="300" height="300"/>//此处用代码创建时,group组件要加上id,同时group组件删除则报错。
			</s:Group>
		</s:Scroller>		
</s:BorderContainer>
原文地址:https://www.cnblogs.com/wqing/p/2371546.html