dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to create a line break in Actionscript 2?

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    94

    How to create a line break in Actionscript 2?

    Hello everybody.

    I have a piece of code were a text variable has two lines but I don't know how to create a line break in actionscript and that is actually shows in the movieclip.

    var theText:String = "This is the first line
    This is the second line";


    Anyone?

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518

    Maybe try something like this...

    Code:
    var theText:String = "This is the first line"+newline+"This is the second line";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center