简体   繁体   中英

as3 text formatting, Underline spacing?

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.

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM