Archive for August, 2011

Simple way to hide ScrollBar on Mobile List

Tuesday, August 30th, 2011

I am working on a project where I had the need to hide the scrollbar in my Flex mobile application.  Initially I went down the path of attempting to create skins for the scrollbar and remove the HScrollBar which I wanted to hide, this didn’t work, I then tried to set the visibility in the skin and had problems as well.  After fiddling around with this I realized a simple one line change in my CSS file made this happen.   The following would hide the horizontal scrollbar on all List in your application.

s|List s|HScrollBar
{
skinClass: ClassReference("spark.skins.mobile.supportClasses.MobileSkin");
}