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.


8 Comments so far
Leave a comment

Man, the summer sun must have gone to my head a baked my brains.

I forgot to load the source. So I will add the swc to my download box to the right. The source can be had at jwo_lib later today.

Comment by jwopitz

Ok so apparently I cannot upload to my box. Alrighty then, I guess you folks will have to wait till I upload to jwo_lib.

Sorry :)

Comment by jwopitz

Can you post the source code?

Comment by Booyah

The source can be downloaded from the project source files here:

http://jwopitz-lib.googlecode.com/svn/trunk/src/com/jwopitz/controls/

Everything should be all set with the project now.

Comment by jwopitz

Thanks, works great!

Comment by Evan

Nice,
Im always having to write dashed lines in Actionscript and I just havent had the time to extend the HRule, VRule classes. And now i dont have to!
Thanks

Comment by Anthony

[...] visit the post here [...]

Pingback by BetaDesigns( Blog ).toString( ); » Dashed VRule and HRule Components

Just wanted to say thanks! You saved me a bunch of time.

Comment by Aaron Hardy




Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>