0

ユーザー画像のリストを含むタイル リストがあり、HScrollBar コンポーネントも 1 つあります。Hscroll バーをスクロールすると、i want to also scroll the tile list. また、タイル リストのデータ プロバイダーの要素数に応じて、HScrollBar のつまみの幅が自動的に調整されるようにします。どうすればできますか?

これが私のコードです

    <components:ExtendedTileList id="lstExpert" horizontalScrollBarStyleName="horizontalScroll" verticalScrollPolicy="off" horizontalScrollPolicy="off"
                                                         dataProvider="{expertsOnline}" height="80" width="100%" direction="vertical" maxRows="1"
                                                         itemRenderer="ExpertItemRenderer">
   </components:ExtendedTileList>
    <mx:HScrollBar id="customScrollExpert" styleName="horizontalScroll"  minScrollPosition="0"                                  lineScrollSize="20" pageScrollSize="20" y="68"
                                           scroll="hscrollbar1_scrollHandler(event)" visible="true" width="110%" height="5"/>

私のスクロールイベントハンドラは

protected function hscrollbar1_scrollHandler(event:ScrollEvent):void
        {

            lstExpert.horizontalScrollPosition=event.target.scrollPosition ;

        }
4

0 に答える 0