views:

9

answers:

1

How can the vertical line gap of Label be changed?

+1  A: 

I'm assuming you are asking about changing the space between lines when a spark Label is showing multiple lines of text. To do that, you set the lineHeight style to a percent value:

ActionScript:

myLabel.setStyle("lineHeight", "140%");

MXML:

<s:Label lineHeight="140%"/>

According to the documentation the default value is 120%. Hope that helps.

Wade Mueller
Perfect! thanks..
Yeti