Archive for August, 2006

27
Aug

Flex 2 and horizontal scrollbars

I was mucking about with viewing the flex unit converter at different screen sizes and noticed that when viewed at a size small enough to require a vertical scroll bar, a horizontal scroll bar would also appear. Basically the introduction of the vertical scrollbar adds 16 pixels to the entire movie, without first removing 16 pixels from the root components current width. I guess you can get around this by giving your root component a padding of 16, or adding the "horizontalScrollPolicy='off'" property to the application tag.

Is anyone aware of any other ways to remedy this behaviour?

26
Aug

Flex 2 Unit Converter

This has been on my list of things to do in Flex since it was released. I finally got around to knocking together this units converter (the first three tabs are the only ones that work at the moment). During the development I think I finally grasped (well, got a better grasp anyway ;-) Events in Flex 2. The way that classes communicate also became a little clearer to me during the building of this. The lists in each section are actionscript components that call a Singleton class to do the actual calculation.

Check it out here (right click the movie to view the source - which I originally forgot to enable in the movie!)

I'm interested in feedback from flexers as to how they'd go about creating an interface to something like this. I think tabs is a reasonable way to split up the different unit groups, but want to hear of some other ideas of how the components could be used to create a better UI. 

Here's a link to my original take on unit conversion in Flash. I made this in 2002 using Flash 5! How things have changed…







Categories