explorers’ club


Dashed HRule & VRule Components
Monday, July 2, 2007, 6:36 pm
Filed under: actionScript, components, flex

No biggie.  This isn’t an original concept in the least bit. But I figure I will add to the stew and present my own modified HRule and VRule.  These guys took maybe a total of 20 minutes to make.  I got so sick of programmatically doing dashed lines, I figured what the hell, let’s just make em.

I decided to keep the same relative package and class names as well. So instead of mx.controls.HRule, you would use com.jwopitz.controls.HRule.

The only use issue is that in order to see the dashes, you just declare the style dashLength="some number". Its default is 0 so you can use these guys just as you would a normal mx.controls.HRule.

You can play with them here. I will be adding these guys to the jwo_lib soon.