flex Scroller

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
 <s:layout>
  <s:VerticalLayout verticalAlign="middle" horizontalAlign="center"/>
 </s:layout>
 <fx:Declarations>
  <!-- 将非可视元素(例如服务、值对象)放在此处 -->
 </fx:Declarations>
 <s:SkinnableContainer width="100%" height="100%">
  <s:Scroller x="336" y="186" width="159" height="200">
   <s:Group x="13" y="20" width="110" height="102">
    <s:Button x="35" y="19" label="按钮"/>
    <s:Button x="35" y="59" label="按钮"/>
    <s:Button x="35" y="108" label="按钮"/>
    <s:Button x="113" y="19" label="按钮"/>
    <s:Button x="191" y="19" label="按钮" width="62"/>
   </s:Group>
  </s:Scroller>
 </s:SkinnableContainer>
 
 
</s:Application>

你可能感兴趣的:(scroll)