Question : add a two line label on button component

thats it, can (and how) do i add two lines to a flash button component label?

i'd like my button to read

"register
online"

instead of

"register online"

also would like it to align center.

Answer : add a two line label on button component


// if want to default align (left-align):
btn.label = "register\nonline";

// if want to center-align the text
btn.labelPath.html =  true;
btn.labelPath.htmlText = "

register\nonline

";
Random Solutions  
 
programming4us programming4us