views:

193

answers:

1

So if I want to imitate a link in as3, when I set

myFormat.underline = true;

the underline is directly underneath my text. Is there any way I can set the spacing of that underland? Thanks.

A: 

You can draw a line instead of using the underline. Then space it how ever you want. Just make it the same color as the text.

Something like this in AS 3:

myItem.graphics.lineStyle(1);
myItem.graphics.moveTo(0,0); ///This is where we start drawing
myItem.graphics.lineTo(350, 600);
Todd Moses
which class would i need to import?
DesignedByDave
Drawing the lines does work, however some of the links end up being 2 lines than 1. soo I'm not sure if it's gonna work.
DesignedByDave
You can draw one line or two. It will work. It is just vector drawing so any 2D effect is easy to achieve.
Todd Moses