Well, its a long silence. I am currently developing an AIR application which will contain games. While I was trying to customise the TileList, to my surprise, it behave a little buggy. I was trying to make a horizontal scrollbar appear in the component as thelist is vast. By default Flex have me a vertical scrollbar.My first reaction was, ok.May be the default settings do that.But the only workable HOraizontal Scrollbar came in after I set direction=”vertical”. After a googling a bit I found this( by Arno Manders), which confirmed me that this is the way to go. Thought I would share it immediately as somebody out there may be trying the same as me.
My final code looks as this
<mx:TileList id=”gamesList”
itemRenderer=”Comp_Thumbnail”
itemClick=”{this.onGameClick(event);}”
width=”658″ height=”220″ verticalCenter=”0″ horizontalCenter=”0″
direction=”vertical”
horizontalScrollPolicy=”on”/>
Happy Flashing
December 14, 2008 at 12:49 am |
didn’t work!